# Toronto Math Forum

## MAT244-2018S => MAT244--Tests => Quiz-1 => Topic started by: Junya Zhang on January 26, 2018, 02:02:06 PM

Title: Q1-T0701
Post by: Junya Zhang on January 26, 2018, 02:02:06 PM
Question: Find the solution of the given initial value problem.
$$y'-2y=e^{2t}, y(0)=2$$
Solution:
Notice that the given DE is a first order linear ODE.
Let $\mu(t)$ denote an integrating factor for the given DE.
$$\mu(t) = e^{\int -2 dt} = e^{-2t}$$
Multiply the given DE by $\mu(t)$: note that $\mu(t) ≠ 0$ for all $t$
$$e^{-2t}y'- 2e^{-2t}y = e^{-2t} e^{2t}$$
Simplify the equation:
$$\frac{d}{dt} (e^{-2t}y)= 1$$
Integrate both sides with respect to $t$:
$$e^{-2t}y = t + C$$
Isolate $y$:
$$y = (t+C)e^{2t}$$
Since $y(0)=2$, then $2 = (0+C)\cdot e^{0} = C\cdot 1 = C$
Thus, solution to the given IVP is
$$y = (t+2)e^{2t}$$