# DE Initial Value Problem

• March 3rd 2011, 08:54 PM
salohcinseah
DE Initial Value Problem
Question: dy/dx= e^2x+y , y(0)=3
using variable seperable
i have solved till ln y = 1/2e^2x+c then i am stuck,would any kind soul help me to further solve it?
• March 3rd 2011, 09:14 PM
pickslides
Is your equation $\displaystyle \frac{dy}{dx}= e^{2x}+y$

or $\displaystyle \frac{dy}{dx}= e^{2x+y}$ ??
• March 3rd 2011, 09:27 PM
salohcinseah
oh it the first 1
• March 3rd 2011, 09:38 PM
Prove It
$\displaystyle \frac{dy}{dx} = e^{2x} + y$

$\displaystyle \frac{dy}{dx} - y = e^{2x}$.

This is first order linear, so multiplying both sides by the integrating factor $\displaystyle e^{\int{-1\,dx}} = e^{-x}$ gives

$\displaystyle e^{-x}\,\frac{dy}{dx} - e^{-x}\,y = e^{x}$

$\displaystyle \frac{d}{dx}\left(e^{-x}\,y\right) = e^x$

$\displaystyle e^{-x}\,y = \int{e^x\,dx}$

$\displaystyle e^{-x}\,y = e^x + C$

$\displaystyle y = e^{2x} + Ce^x$.

Now, you know from your initial condition that when $\displaystyle x = 0, y = 3$, so

$\displaystyle 3 = e^{2\cdot 0} + Ce^0$

$\displaystyle 3 = 1 + C$

$\displaystyle C = 2$.

Therefore the solution is

$\displaystyle y = e^{2x} + 2e^{x}$.
• March 3rd 2011, 10:21 PM
salohcinseah
i see thanks