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
Call the integral I. Take the first function as e2x and the second as sin3x, then apply integration by parts.
I=e2x(−3cos3x)−∫2e2x(−3cos3x)dx
I=−31e2xcos3x+32∫e2xcos3xdx
Second integration by parts
Apply parts again to ∫e2xcos3xdx, with first function e2x and second cos3x.
∫e2xcos3xdx=e2x⋅3sin3x−∫2e2x⋅3sin3xdx
Substituting back:
I=−31e2xcos3x+92e2xsin3x−94∫e2xsin3xdx
The last integral is I itself.
Solving for I
I=−31e2xcos3x+92e2xsin3x−94I
Transpose −94I to the left:
I+94I=913I=91e2x(2sin3x−3cos3x)
I=131e2x(2sin3x−3cos3x)+C
Example 2: ∫excosxdx
Call it I. Take the first function as ex and the second as cosx.
I=exsinx−∫exsinxdx
Apply parts again to ∫exsinxdx:
∫exsinxdx=−excosx+∫excosxdx
Substituting back, the last integral is again I:
I=exsinx+excosx−I
2I=ex(sinx+cosx)
I=21ex(sinx+cosx)+C
Key takeaways
- For ∫eaxsinbxdx and ∫eaxcosbxdx, integrate by parts twice and the original integral returns.
- Once it returns, move it to the other side and divide to solve for I directly.
- ∫e2xsin3xdx=131e2x(2sin3x−3cos3x)+C and ∫excosxdx=21ex(sinx+cosx)+C.