Integrate the functions in Exercises 1 to 22.
\(e^{2x} \sin x\)Show solutionHide solution
Let \[I=\int e^{2x}\sin x\,dx.\] Use integration by parts with \[u=\sin x,\qquad dv=e^{2x}dx.\] Then \[du=\cos x\,dx,\qquad v=\frac{e^{2x}}{2}.\] Hence \[I=\frac{e^{2x}\sin x}{2}-\frac12\int e^{2x}\cos x\,dx.\]
Now let \[J=\int e^{2x}\cos x\,dx.\] Integrate by parts again, taking \[u=\cos x,\qquad dv=e^{2x}dx,\] so that \[du=-\sin x\,dx,\qquad v=\frac{e^{2x}}{2}.\] Thus \[J=\frac{e^{2x}\cos x}{2}+\frac12\int e^{2x}\sin x\,dx=\frac{e^{2x}\cos x}{2}+\frac{I}{2}.\]
Substitute this into the expression for \(I\): \[I=\frac{e^{2x}\sin x}{2}-\frac12\left(\frac{e^{2x}\cos x}{2}+\frac{I}{2}\right).\] Therefore \[I=\frac{e^{2x}\sin x}{2}-\frac{e^{2x}\cos x}{4}-\frac{I}{4}.\] Bring \(-\frac{I}{4}\) to the left: \[\frac54 I=\frac{2e^{2x}\sin x-e^{2x}\cos x}{4}=\frac{e^{2x}(2\sin x-\cos x)}{4}.\] Hence \[I=\frac{e^{2x}(2\sin x-\cos x)}{5}+C.\]
Check: Differentiate the answer. \[\frac{d}{dx}\left[\frac{e^{2x}(2\sin x-\cos x)}{5}\right]=\frac{e^{2x}}{5}\left[2(2\sin x-\cos x)+(2\cos x+\sin x)\right]=e^{2x}\sin x,\] which is the given integrand. Thus the result is verified.