TITLE: Integrating Factor - Not getting the answer given?
QUESTION [7 upvotes]: $y' - 4y = t$ 
My integrating factor is $e^{-4t}$
$\int e^{-4t}y'$ - $\int 4e^{-4t}y$ = $\int te^{-4t}$
$\int (e^{-4t}y)'$ = $\int te^{-4t}$
$e^{-4t}y$ = $-4te^{-4t}$ - $e^{-4t}$ 
I end up with $y' = -4t -1 + ce^{4t}$
Where did I go wrong?

REPLY [3 votes]: Let $u=t$, $du=dt$, $dv=e^{-4t}$, and $v=-\cfrac{1}{4}e^{-4t}$, then using integration by parts, $\displaystyle\int te^{-4t}\, dt$ should be
\begin{align}
\int te^{-4t}\, dt&=-\cfrac{t}{4}e^{-4t}+\cfrac{1}{4}\int e^{-4t}\,dt\\
&=-\cfrac{t}{4}e^{-4t}+\cfrac{1}{4}\left(-\cfrac{1}{4}e^{-4t}\right)+C\\
&=-\cfrac{t}{4}e^{-4t}-\cfrac{1}{16}e^{-4t}+C\\
\end{align}