| 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: , |
|