Groups | Search | Server Info | Login | Register


Groups > comp.soft-sys.math.mathematica > #16878

Re: Differential Equation

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Differential Equation
Date 2014-04-30 05:40 +0000
Message-ID <ljq2d3$l95$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


On 4/29/14 at 1:33 AM, zmmohamadi@gmail.com (Zohreh) wrote:

>I am going to solve the following differential equation:
>dY(x)/dx=A*f(x)-B*Y(x)

>In which A and B are some parameters, f(x) is a function of x, and
>Y(C)=0 (C is a parameter).

>I tried to solve it in Mathematica by DSolve[Y'[x] == A*f[x] -
>B*Y[x], Y[C] == 0, x]

>But I get the following error DSolve::dsfun: "Y[C]==0 cannot be used
>as a function

>I would highly appreciate it if somebody can help me.

=46irst, it is unwise to use a single capital letter as a variable
name as many already have built-in meaning such as C. But, this
isn't the specific problem with your example.

Second, did you look at the documentation for DSolve? If you do,
you will notice the second argument needs to be a function not
an equation. So, try

DSolve[y'[x] == a*f[x] - b*y[x] && y[c] == 0, y[x], x]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar


Thread

Re: Differential Equation Bill Rowe <readnews@sbcglobal.net> - 2014-04-30 05:40 +0000

csiph-web