Re: solve ODE help?
- To: mathgroup at smc.vnet.net
- Subject: [mg72112] Re: [mg72089] solve ODE help?
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Wed, 13 Dec 2006 06:38:27 -0500 (EST)
- References: <200612110955.EAA07170@smc.vnet.net>
use NDSolve or DSolve
On 12/11/06, learner <freephys at gmail.com> wrote:
> Hi, everyone,
> i am new to solve ode in mathematica. i am trying to solve two
> odes(not for hw :)).
> y'+ytan(x)=sin(2x)
>
> I use: NSolve[{Direvative[1][y][x]+y Tan[x]==Sin[2x]},y,x]
>
> and get reply saying that:
> InverseFunction::ifun: Inverse functions are being used. Values may be
> lost for multivalued inverses
>
> {{y[x]->cot[x](sin[2x]-y'[x]}} ,
> the mathematica did not solve the equation??
>
> Furthermore, I add condition that y==2 when x==0 by saying:
>
> NSolve[{Direvative[1][y][x]+y Tan[x]==Sin[2x],y[0]==2},y,x]
>
> but no help ? why?
> thanks
>
>
--
http://chris.chiasson.name/
- References:
- solve ODE help?
- From: "learner" <freephys@gmail.com>
- solve ODE help?