Groups | Search | Server Info | Login | Register


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

Re: Differential Equation

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Differential Equation
Date 2014-04-30 05:40 +0000
Message-ID <ljq2ce$l8s$1@smc.vnet.net> (permalink)
References <20140429053331.38A5D6A6A@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Use correct syntax for DSolve

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


{{Y[x] -> (-E^((-B)*x))*
         (Integrate[A*E^(B*K[1])*
                f[K[1]], {K[1], 1,
                C}] - Integrate[
              A*E^(B*K[1])*f[K[1]],
              {K[1], 1, x}])}}


I also recommend that you avoid using capital letters for, or to start,
user-defined names to avoid potential naming conflicts with Mathematica's
built-in symbols.



Bob Hanlon


On Tue, Apr 29, 2014 at 1:33 AM, Zohreh <zmmohamadi@gmail.com> wrote:

> Dear Friends,
>
> 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.
>
> Best regards.
>
>

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


Thread

Re: Differential Equation Bob Hanlon <hanlonr357@gmail.com> - 2014-04-30 05:40 +0000

csiph-web