PDA

View Full Version : Easy ODE


Kalidor
Apr22-10, 01:47 PM
y'= \frac{y}{1+e^x}+e^{-x}

It's an easy first order linear inhomogenous eq. I solved it by hand with the formula that one can find anywhere AND with Mathematica, but when I take the derivative to check the solution it comes out wrong and it's freaking me out. Can anyone here post just the plain solution?

Thaakisfox
Apr23-10, 02:56 AM
Just use the method of variating the constant, and you get:

<math>y(x) = C\frac{e^x}{1+e^x}-\frac{2+e^{-x}}{2(1+e^x)} </math>

Thaakisfox
Apr23-10, 02:57 AM
<tex>y(x) = C\frac{e^x}{1+e^x}-\frac{2+e^{-x}}{2(1+e^x)} </tex>

Thaakisfox
Apr23-10, 02:58 AM
oops used the wrong brackets for math mode, so here it is:

y(x) = C\frac{e^x}{1+e^x}-\frac{2+e^{-x}}{2(1+e^x)}