← Back to all lessons
Class 12Calculus7:17Published 1 Oct 2024

Integration of Exponential Functions Times Trig

Integrate products of an exponential and a trig function using integration by parts and the returning-integral trick, worked through two full examples.

This Class 12 lesson shows how to integrate an exponential function multiplied by a sine or cosine. Applying integration by parts twice brings back the original integral, which you then move to the other side and solve algebraically. Two worked examples make the method concrete and check out to the standard results.

What you'll learn

  • How to integrate a product of an exponential and a trig function by parts
  • Why the original integral reappears after two rounds of integration by parts
  • Moving the repeated integral to the other side and solving for it
  • Working two full examples from first step to final answer

Lesson chapters

0:00Setting up the e^(2x) sin(3x) integral by parts
1:43Second integration by parts
3:11Transposing the repeated integral and solving
4:19Second example: e^x cos x
6:08Collecting terms for the final answer

Lesson notes

Integrating exponential times trigonometric functions

This lesson integrates a product of an exponential function and a trigonometric function. The key idea is that applying integration by parts twice brings the original integral back, so you can treat it as an unknown, move it to the other side, and solve for it algebraically.

Example 1: e2xsin3xdx\int e^{2x}\sin 3x\,dx

Call the integral II. Take the first function as e2xe^{2x} and the second as sin3x\sin 3x, then apply integration by parts.

I=e2x(cos3x3)2e2x(cos3x3)dxI = e^{2x}\left(-\tfrac{\cos 3x}{3}\right) - \int 2e^{2x}\left(-\tfrac{\cos 3x}{3}\right)dx

I=13e2xcos3x+23e2xcos3xdxI = -\tfrac{1}{3}e^{2x}\cos 3x + \tfrac{2}{3}\int e^{2x}\cos 3x\,dx

Second integration by parts

Apply parts again to e2xcos3xdx\int e^{2x}\cos 3x\,dx, with first function e2xe^{2x} and second cos3x\cos 3x.

e2xcos3xdx=e2xsin3x32e2xsin3x3dx\int e^{2x}\cos 3x\,dx = e^{2x}\cdot\tfrac{\sin 3x}{3} - \int 2e^{2x}\cdot\tfrac{\sin 3x}{3}\,dx

Substituting back:

I=13e2xcos3x+29e2xsin3x49e2xsin3xdxI = -\tfrac{1}{3}e^{2x}\cos 3x + \tfrac{2}{9}e^{2x}\sin 3x - \tfrac{4}{9}\int e^{2x}\sin 3x\,dx

The last integral is II itself.

Solving for II

I=13e2xcos3x+29e2xsin3x49II = -\tfrac{1}{3}e^{2x}\cos 3x + \tfrac{2}{9}e^{2x}\sin 3x - \tfrac{4}{9}I

Transpose 49I-\tfrac{4}{9}I to the left:

I+49I=139I=19e2x(2sin3x3cos3x)I + \tfrac{4}{9}I = \tfrac{13}{9}I = \tfrac{1}{9}e^{2x}\left(2\sin 3x - 3\cos 3x\right)

I=113e2x(2sin3x3cos3x)+CI = \tfrac{1}{13}e^{2x}\left(2\sin 3x - 3\cos 3x\right) + C

Example 2: excosxdx\int e^{x}\cos x\,dx

Call it II. Take the first function as exe^{x} and the second as cosx\cos x.

I=exsinxexsinxdxI = e^{x}\sin x - \int e^{x}\sin x\,dx

Apply parts again to exsinxdx\int e^{x}\sin x\,dx:

exsinxdx=excosx+excosxdx\int e^{x}\sin x\,dx = -e^{x}\cos x + \int e^{x}\cos x\,dx

Substituting back, the last integral is again II:

I=exsinx+excosxII = e^{x}\sin x + e^{x}\cos x - I

2I=ex(sinx+cosx)2I = e^{x}\left(\sin x + \cos x\right)

I=12ex(sinx+cosx)+CI = \tfrac{1}{2}e^{x}\left(\sin x + \cos x\right) + C

Key takeaways

  • For eaxsinbxdx\int e^{ax}\sin bx\,dx and eaxcosbxdx\int e^{ax}\cos bx\,dx, integrate by parts twice and the original integral returns.
  • Once it returns, move it to the other side and divide to solve for II directly.
  • e2xsin3xdx=113e2x(2sin3x3cos3x)+C\int e^{2x}\sin 3x\,dx = \tfrac{1}{13}e^{2x}(2\sin 3x - 3\cos 3x) + C and excosxdx=12ex(sinx+cosx)+C\int e^{x}\cos x\,dx = \tfrac{1}{2}e^{x}(\sin x + \cos x) + C.