Key Concepts and Formulas
- Integration by Parts: ∫udv=uv−∫vdu
- Derivative of lnx: dxd(lnx)=x1
Step-by-Step Solution
Step 1: Define the integral and apply integration by parts.
We are given the integral I=∫cos(lnx)dx. We will use integration by parts. Let u=cos(lnx) and dv=dx. Then du=−sin(lnx)⋅x1dx and v=x. Applying integration by parts:
I=∫cos(lnx)dx=xcos(lnx)−∫x(−sin(lnx)⋅x1)dx=xcos(lnx)+∫sin(lnx)dx
Step 2: Apply integration by parts again.
Now, we need to evaluate ∫sin(lnx)dx. Let u=sin(lnx) and dv=dx. Then du=cos(lnx)⋅x1dx and v=x. Applying integration by parts:
∫sin(lnx)dx=xsin(lnx)−∫x(cos(lnx)⋅x1)dx=xsin(lnx)−∫cos(lnx)dx
Step 3: Substitute back into the original integral.
Substituting this result back into the expression for I from Step 1:
I=xcos(lnx)+(xsin(lnx)−∫cos(lnx)dx)=xcos(lnx)+xsin(lnx)−∫cos(lnx)dx
Notice that ∫cos(lnx)dx is just I. So we have:
I=xcos(lnx)+xsin(lnx)−I
Step 4: Solve for I.
Adding I to both sides gives:
2I=xcos(lnx)+xsin(lnx)
Dividing by 2:
I=2x(cos(lnx)+sin(lnx))+C
where C is the constant of integration.
Step 5: Rearrange to match the available options.
We can rewrite the solution as:
I=2x(sin(lnx)+cos(lnx))+C
Common Mistakes & Tips
- Sign Errors: Be extremely careful with the signs when applying integration by parts, especially when differentiating cos(lnx) and sin(lnx).
- Choosing u and dv: The choice of u and dv in integration by parts can significantly impact the complexity of the integral. In this case, choosing dv=dx simplifies the subsequent integration.
- Constant of Integration: Don't forget to add the constant of integration, C, at the end of the process.
Summary
We evaluated the integral ∫cos(lnx)dx using integration by parts twice. By recognizing that the original integral reappeared after the second application of integration by parts, we were able to solve for the integral algebraically. This yielded the solution I=2x(sin(lnx)+cos(lnx))+C.
The final answer is \boxed{\frac{x}{2}[\sin(\log e x) + \cos(\log e x)] + C}, which corresponds to option (C).