Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Simple Differential Eqn Query' topicStudent Support Forum > General > "Simple Differential Eqn Query"

Next Comment >Help | Reply To Topic
Author Comment/Response
Eddie
12/27/10 10:59am

Hi all,

I am new to mathematica and having some teething problems. I wish to find the particular solution to e^x dy/dx =4 given that y(0)=3
Below is my attempt:
(*Assign the rule above to something like 'sol' if you want to use it as a function*)
eqn=e^x*y'[x]?4
sol=DSolve[eqn,y,x]
ex y˘[x]?4
{{y®Function[{x},C[1]-(4 e-x)/Log[e]]}}
(*verify the solution*)
eqn/.sol
{True}
f[x_]=y/.sol[[1]]
{True}
Function[{x},C[1]-(4 e-x)/Log[e]]
(*equation with intial conditions*)
sol=DSolve[{eqn,y[0]?3},y,x]
Function[{x},C[1]-(4 e-x)/Log[e]]
{{y®Function[{x},(e-x (-4+4 ex+3 ex Log[e]))/Log[e]]}}


Any help will be appreciated. Thanks
Eddie

URL: ,

Subject (listing for 'Simple Differential Eqn Query')
Author Date Posted
Simple Differential Eqn Query Eddie 12/27/10 10:59am
Re: Simple Differential Eqn Query Isaac 02/05/11 06:01am
Next Comment >Help | Reply To Topic