Exercise 21
Not cross-checked
This solution has not been cross-checked against the answer printed in NCERT.
NCERT’s answer
\(\displaystyle \frac{e^{2 x}}{5}(2 \sin x-\cos x)+C\)
Let \(\displaystyle I=\displaystyle\int e^{2x}\sin x\,dx\). Apply parts twice; the original integral reappears and is then solved for algebraically.
First, with \(\displaystyle \sin x\) as the first function and \(\displaystyle e^{2x}\) as the second:
\[I = \frac{e^{2x}}{2}\sin x-\frac12\int e^{2x}\cos x\,dx\]
Apply parts to the new integral, again with the trigonometric factor first:
\[\int e^{2x}\cos x\,dx = \frac{e^{2x}}{2}\cos x+\frac12\int e^{2x}\sin x\,dx = \frac{e^{2x}}{2}\cos x+\frac{I}{2}\]
Substituting back:
\[I = \frac{e^{2x}}{2}\sin x-\frac{e^{2x}}{4}\cos x-\frac{I}{4}\quad\Rightarrow\quad \frac{5I}{4} = \frac{e^{2x}}{4}\left(2\sin x-\cos x\right)\]
\[I = \frac{e^{2x}}{5}\left(2\sin x-\cos x\right)+\mathrm{C}\]
Final answer: \(\displaystyle \dfrac{e^{2x}}{5}\left(2\sin x-\cos x\right)+\mathrm{C}\).