[Math] Find the general solution of the given differential equation

ordinary differential equations

Find the general solution of the given differential equation

$$\frac{y^2}{2}-2ye^t+(y-e^t)\frac{dy}{dt}=0$$

So we are learning about exact equations and the first step our professor told us to do is check the derivatives of m and n:

$$M: \frac{y^2}{2}-2ye^t $$

$$ N: y-e^t $$

Now, derivatives:

$$M: \frac{\partial \phi}{\partial y}=y-2e^t$$

$$N: \frac{\partial \phi}{\partial t}=e^t$$

but they are not equal, so I'm not sure what to do next or am I not able to do it.

Best Answer

Rearrange the ODE we have

$$\frac{y^2}{2}+yy'=2ye^t+y'e^t$$

Multiplying both sides by $e^t$:

$$e^t\frac{y^2}{2}+e^tyy'=2ye^{2t}+y'e^{2t}\quad (*)$$

Note that

$$LHS=\frac{d}{dt}\left(e^t\frac{y^2}{2}\right),\quad RHS=\frac{d}{dt}(e^{2t}y)$$

Integrating both sides of $(*)$ gives

$$e^ty^2=2e^{2t}y+C\Rightarrow y^2-2e^ty-Ce^{-t}=0$$

Solve for $y$ gives

$$y=\frac{-(-2e^t)\pm\sqrt{4e^{2t}+4Ce^{-t}}}{2}=e^t\pm\sqrt{e^{2t}+Ce^{-t}}$$

Related Question