# Thread: Having Trouble With ODE Step

1. ## Having Trouble With ODE Step

Hey. Looking through my notes here and I'm having trouble with a jump they've made.

$

e^X+(Ye^X-X)\frac{dX}{dY}=0

$

This can be written as:

$

\frac{dY}{dX}+Y=Xe^{-X}

$

I've been sitting trying to see how the top line can be written as the bottom line but I seem to be stumped.

Any help would be greatly appreciated .

2. $e^{x}+(ye^{x}-x)\frac{dy}{dx}=0$

Mult by $\frac{dx}{dy}$ to get

$e^{x}\frac{dx}{dy}+(ye^{x}-x)=0$

Divide by $e^{x}$ to get

$\frac{dx}{dy}+y-xe^{-x}=0$

3. Ahh, It's seems very simple now. Thanks man .

4. Originally Posted by Macca567
Hey. Looking through my notes here and I'm having trouble with a jump they've made.

$

e^X+(Ye^X-X)\frac{dX}{dY}=0

$

This can be written as:

$

\frac{dY}{dX}+Y=Xe^{-X}

$

I've been sitting trying to see how the top line can be written as the bottom line but I seem to be stumped.

Any help would be greatly appreciated .
It is easy

$e^x + \left(ye^x - x\right)\frac{dx}{dy} = 0$

$e^x\frac{dy}{dx} + e^xy = x$

$\left(e^xy\right)^{'} = x$

$e^xy = \frac{x^2}{2} + C$

$y = \left(\frac{x^2}{2} + C\right)e^{-x}$

5. Originally Posted by Ment
It is easy

$e^x + \left(ye^x - x\right)\frac{dx}{dy} = 0$

$e^x\frac{dy}{dx} + e^xy = x$
The question was how to get to this line! You can't say "It is easy" and them just write it down!

$\left(e^xy\right)^{'} = x$

$e^xy = \frac{x^2}{2} + C$

$y = \left(\frac{x^2}{2} + C\right)e^{-x}$