Question Statement
Evaluate the integral:
∫sin(lnx)dx
Background and Explanation
This integral requires integration by parts, which reverses the product rule for differentiation. Since the integrand is a composition of trigonometric and logarithmic functions, we treat it as a product with 1 and apply integration by parts twice. The key insight is that the second application returns us to the original integral, allowing us to solve for it algebraically.
Solution
Let us denote the integral by I:
I=∫sin(lnx)dx
We rewrite the integrand as a product to prepare for integration by parts:
I=∫sin(lnx)⋅1dx
First application of integration by parts:
Choose:
- u=sin(lnx), which gives du=cos(lnx)⋅x1dx (by the chain rule)
- dv=1dx, which gives v=x
Using the formula ∫udv=uv−∫vdu:
I=sin(lnx)⋅x−∫x⋅cos(lnx)⋅x1dx=xsin(lnx)−∫cos(lnx)dx
Second application of integration by parts:
Now we apply integration by parts to the remaining integral ∫cos(lnx)dx. Again, we treat this as ∫cos(lnx)⋅1dx.
Choose:
- u=cos(lnx), which gives du=−sin(lnx)⋅x1dx
- dv=1dx, which gives v=x
Applying the formula:
∫cos(lnx)dx=cos(lnx)⋅x−∫x⋅(−sin(lnx))⋅x1dx=xcos(lnx)+∫sin(lnx)dx=xcos(lnx)+I
Substituting back and solving for I:
Substitute this result back into our expression for I:
I=xsin(lnx)−[xcos(lnx)+I]=xsin(lnx)−xcos(lnx)−I
Now we have the original integral on both sides. Collecting terms:
2I=xsin(lnx)−xcos(lnx)
Factoring out x:
2I=x[sin(lnx)−cos(lnx)]
Solving for I:
I=2x[sin(lnx)−cos(lnx)]+C
where C is the constant of integration.
- Integration by parts: ∫udv=uv−∫vdu
- Chain rule for differentiation:
- dxd[sin(lnx)]=cos(lnx)⋅x1
- dxd[cos(lnx)]=−sin(lnx)⋅x1
- Cyclic integral technique: When integration by parts returns the original integral, solve algebraically for the unknown integral
Summary of Steps
- Set up: Define I=∫sin(lnx)dx and rewrite as ∫sin(lnx)⋅1dx to prepare for integration by parts.
- First integration by parts: Choose u=sin(lnx) and dv=dx to obtain I=xsin(lnx)−∫cos(lnx)dx.
- Second integration by parts: Apply the same method to ∫cos(lnx)dx with u=cos(lnx), yielding xcos(lnx)+I.
- Substitute: Replace the remaining integral to get I=xsin(lnx)−xcos(lnx)−I.
- Solve algebraically: Rearrange to 2I=x[sin(lnx)−cos(lnx)].
- Final answer: Divide by 2 and add the constant of integration: 2x[sin(lnx)−cos(lnx)]+C.