There is no visible product, so write lnx as lnx⋅1. The basic table has no antiderivative of lnx, but its derivative, 1/x, is simple, and dx integrates to x.
The parts for the integral of lnx
Part
Choice
Then
u
lnx
du=dx/x
dv
dx
v=x
2
Apply the formula
The new integrand, x⋅(1/x), is 1, so the logarithm is gone from the integral that remains.
∫lnxdx=xlnx−∫x⋅x1dx=xlnx−x+C
∫lnxdx=xlnx−∫x⋅x1dx=xlnx−x+C
3
Evaluate from 1 to e
Take F(x)=xlnx−x. Differentiating confirms it, since lnx+x⋅(1/x)−1=lnx. Then F(e)−F(1)=(e−e)−(0−1)=1.
F(x)=xlnx−xF′(x)=lnxF(e)−F(1)=1
4
Check the size of the area
On the interval from 1 to e,lnx rises from 0 to 1 and bends downward. The trapezoid under its chord, (e−1)/2≈0.859, lies below the curve, and the rectangle of height 1,e−1≈1.718, lies above it. The value 1 sits between.
Result
∫lnxdx=xlnx−x+C. From 1 to e the integral is exactly 1, the area under y=lnx over that interval.
Your turn
1. One like the example
Find ∫xlnxdx.
Show the answer and explanation
(x2/2)lnx−x2/4+C.
Take u=lnx, which simplifies when differentiated, and dv=xdx, so du=dx/x and v=x2/2. The new integral is of (x2/2)(1/x)=x/2, which gives x2/4. Differentiating the answer gives xlnx+x/2−x/2=xlnx.
∫xlnxdx2x2lnx−4x2+C
2. A variation
Find ∫(lnx)2dx. The integral left after one round is one this example already found.
Show the answer and explanation
x(lnx)2−2xlnx+2x+C.
Take u=(lnx)2 and dv=dx, so du=2lnx⋅(1/x) dx and v=x. Then uv−∫vdu=x(lnx)2−∫2lnxdx. The worked example gives ∫lnxdx=xlnx−x, so the answer is x(lnx)2−2(xlnx−x)+C=x(lnx)2−2xlnx+2x+C.
∫(lnx)2dxx(lnx)2−2xlnx+2x+C
3. Somewhere new
Find ∫arctanxdx. Like lnx,arctanx has a simple derivative and no antiderivative in the basic table.
Show the answer and explanation
xarctanx−21ln(1+x2)+C.
Take u=arctanx and dv=dx, so du=dx/(1+x2) and v=x. Then uv−∫vdu=xarctanx−∫x/(1+x2) dx. That integral is a substitution with w=1+x2, which gives 21ln(1+x2), with no absolute value since 1+x2>0.
∫arctanxdxxarctanx−21ln(1+x2)+C
Keep exploring
Check it by differentiating in Math, then change F(x) to xlnx alone. Its derivative is lnx+1, so the last row turns to ✗. The −x is what cancels the 1.