Question Statement
Evaluate the integral:
∫excosxdx
Background and Explanation
This integral requires integration by parts twice. When integrating products of exponential and trigonometric functions, the original integral typically reappears after two applications, allowing you to solve for it algebraically—a technique sometimes called "integration by parts with cyclic repetition."
Solution
Let us denote the integral by I:
I=∫excosxdx
We apply integration by parts using the formula ∫udv=uv−∫vdu.
Choose:
- u=cosx (so that du=−sinxdx)
- dv=exdx (so that v=ex)
Applying the formula:
I=cosx⋅∫exdx−∫(∫exdx)⋅dxd(cosx)dx=cosx⋅ex−∫ex⋅(−sinx)dx=excosx+∫exsinxdx
The new integral ∫exsinxdx also requires integration by parts. Choose:
- u=sinx (so that du=cosxdx)
- dv=exdx (so that v=ex)
Substituting back:
I=excosx+[sinx⋅∫exdx−∫(∫exdx)⋅dxd(sinx)dx]=excosx+sinx⋅ex−∫excosxdx
Notice that the original integral I=∫excosxdx has reappeared on the right-hand side:
I=excosx+exsinx−I
Now we solve this equation for I:
I+I2II=excosx+exsinx+C=ex(cosx+sinx)+C=2ex(cosx+sinx)+c
(Note: We add the constant of integration C when integrating, which becomes c=C/2 after dividing by 2.)
Therefore, the final solution is:
∫excosxdx=2ex(cosx+sinx)+c
- Integration by Parts: ∫udv=uv−∫vdu
- LIATE Rule (for choosing u): Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential—here we chose trigonometric functions as u and exponential as dv
- Cyclic Integration Technique: When the original integral reappears after integration by parts, treat it as an algebraic variable and solve for it
Summary of Steps
- Define I=∫excosxdx to enable algebraic manipulation later
- First integration by parts: Set u=cosx and dv=exdx to obtain I=excosx+∫exsinxdx
- Second integration by parts: Apply the method to ∫exsinxdx with u=sinx and dv=exdx
- Identify the cycle: The original integral I reappears on the right side, giving you I=ex(cosx+sinx)−I
- Solve algebraically: Add I to both sides to get 2I=ex(cosx+sinx)+C
- Isolate the answer: Divide by 2 to obtain I=2ex(cosx+sinx)+c