1. Apply integration by parts to the original integral by choosing $u = e^{2x}$ and $\frac{dv}{dx} = \cos 3x$.
Let I=∫e2xcos3xdx.
Using the integration by parts formula ∫udxdvdx=uv−∫vdxdudx:
Let u=e2x⟹dxdu=2e2x
Let dxdv=cos3x⟹v=31sin3x
I=31e2xsin3x−∫32e2xsin3xdx
2. Apply integration by parts a second time to the new integral $\int e^{2x}\sin 3x \, dx$.
For ∫e2xsin3xdx:
Let u=e2x⟹dxdu=2e2x
Let dxdv=sin3x⟹v=−31cos3x
∫e2xsin3xdx=−31e2xcos3x−∫(−31cos3x)(2e2x)dx
=−31e2xcos3x+32∫e2xcos3xdx
=−31e2xcos3x+32I
3. Substitute the result back into the original expression to form an algebraic equation in terms of $I$.
Substitute this back into the initial expansion for I:
I=31e2xsin3x−32(−31e2xcos3x+32I)
I=31e2xsin3x+92e2xcos3x−94I
4. Rearrange to solve for $I$ and include the arbitrary constant of integration $C$.
I+94I=31e2xsin3x+92e2xcos3x
913I=31e2xsin3x+92e2xcos3x
I=139(31e2xsin3x+92e2xcos3x)+C
I=133e2xsin3x+132e2xcos3x+C
Answer13e2x(3sin3x+2cos3x)+C or 133e2xsin3x+132e2xcos3x+C