Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

Re: Differential Equation

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Differential Equation
Date 2014-04-30 05:41 +0000
Message-ID <ljq2eb$l9k$1@smc.vnet.net> (permalink)
References <20140429053331.38A5D6A6A@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Did you make any attempt whatsoever to consult the documentation for the proper syntax of DSolve? The correct syntax is

   DSolve[{eqn1, eqn2, ...}, y, x]

or

   DSolve[{eqn1, eqn2, ...}, y[x], x]

In your case:

   DSolve[{Y'[x] == A*f[x] - B*Y[x], Y[C] == 0}, Y[x], x]

Actually, you should avoid using upper-case letters for your own names, since built-in Mathematica names begin with such. Thus it would be much safer to use:

   DSolve[{y'[x] == a f[x] - b y[x], y[c] == 0}, y[x], x]

 
On Apr 29, 2014, at 1:33 AM, Zohreh <zmmohamadi@gmail.com> 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.
>


Murray Eisenberg                                murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower      phone 240 246-7240 (H)
University of Massachusetts               
710 North Pleasant Street                
Amherst, MA 01003-9305






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


Thread

Re: Differential Equation Murray Eisenberg <murray@math.umass.edu> - 2014-04-30 05:41 +0000

csiph-web