Question Statement
Evaluate the integral:
∫(lnx)2dx
Background and Explanation
This problem requires integration by parts, a technique based on the product rule for differentiation. Since (lnx)2 is a logarithmic function that doesn't have an immediate antiderivative, we apply integration by parts twice—first to reduce the power from 2 to 1, and again to eliminate the logarithm entirely.
Solution
We begin by denoting the integral as I and preparing for integration by parts by introducing a factor of 1:
I=∫(lnx)2⋅1dx
First Application of Integration by Parts
Using the formula ∫udv=uv−∫vdu, we choose:
- u=(lnx)2 (so that du reduces the power)
- dv=1dx (so v=x)
Differentiating u:
dxd(lnx)2=2(lnx)2−1⋅x1=x2lnx
Applying integration by parts:
I=(lnx)2⋅x−∫x⋅x2lnxdx=x(lnx)2−2∫lnxdx
Second Application of Integration by Parts
Now we evaluate ∫lnxdx by applying integration by parts again. Rewrite it as ∫lnx⋅1dx and choose:
Differentiating u:
dxd(lnx)=x1
Applying the formula:
∫lnxdx=lnx⋅x−∫x⋅x1dx=xlnx−∫1dx=xlnx−x
Substituting Back
Replace ∫lnxdx in our expression for I:
I=x(lnx)2−2[xlnx−x]+c=x(lnx)2−2xlnx+2x+c
This can also be written in factored form:
I=x(lnx)2−2x(lnx−1)+c
Or equivalently:
I=x[(lnx)2−2lnx+2]+c
- Integration by Parts: ∫udv=uv−∫vdu (or equivalently ∫u⋅vdx=u∫vdx−∫(dxdu∫vdx)dx)
- Chain Rule for Differentiation: dxd(lnx)n=n(lnx)n−1⋅x1
- Derivative of Natural Log: dxd(lnx)=x1
Summary of Steps
- Set up: Write the integral as I=∫(lnx)2⋅1dx to prepare for integration by parts
- First integration by parts: Choose u=(lnx)2 and dv=dx to obtain x(lnx)2−2∫lnxdx
- Second integration by parts: Apply the same method to ∫lnxdx with u=lnx and dv=dx to get xlnx−x
- Substitute: Replace the remaining integral to obtain x(lnx)2−2(xlnx−x)+c
- Simplify: Expand and factor if desired to reach the final form x(lnx)2−2xlnx+2x+c