Chalk−1

Math · Calculus II · Worked example

Integrate ln x by parts

Find the integral of lnx, then evaluate it from x=1 to x=e.

∫lnxd⁢x

Try one — Chalk checks each line

Choose u and d⁢v

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 d⁢x integrates to x.

The parts for the integral of lnx
PartChoiceThen
ulnxd⁢u =d⁢x⁢/⁢x
d⁢vd⁢xv=x

Apply the formula

The new integrand, x⋅(1⁢/⁢x), is 1, so the logarithm is gone from the integral that remains.

∫lnxd⁢x=xlnx−∫x⋅1xd⁢x=xlnx−x+C
∫lnxd⁢x=xlnx−∫x⋅1xd⁢x=xlnx−x+C

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

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

∫lnx d⁢x =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 ∫xlnx d⁢x.

Show the answer and explanation

(x2/2)lnx−x2/4+C.

Take u=lnx, which simplifies when differentiated, and d⁢v=x d⁢x, so d⁢u=d⁢x⁢/⁢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.

∫xlnxd⁢xx22lnx−x24+C

2. A variation

Find ∫(lnx)2 d⁢x. The integral left after one round is one this example already found.

Show the answer and explanation

x⁢(lnx)2−2⁢xlnx+2⁢x+C.

Take u=(lnx)2 and d⁢v=d⁢x, so d⁢u=2lnx⋅(1⁢/⁢x) d⁢x and v=x. Then u⁢v−∫v d⁢u =x⁢(lnx)2−∫2lnx d⁢x. The worked example gives ∫lnx d⁢x=xlnx−x, so the answer is x⁢(lnx)2−2⁢(xlnx−x)+C =x⁢(lnx)2−2⁢xlnx+2⁢x+C.

∫(lnx)2d⁢xx⁢(lnx)2−2⁢xlnx+2⁢x+C

3. Somewhere new

Find ∫arctanx d⁢x. Like lnx, arctanx has a simple derivative and no antiderivative in the basic table.

Show the answer and explanation

xarctanx−12ln(1+x2)+C.

Take u=arctanx and d⁢v=d⁢x, so d⁢u=d⁢x⁢/⁢(1+x2) and v=x. Then u⁢v−∫v d⁢u =xarctanx−∫x⁢/⁢(1+x2) d⁢x. That integral is a substitution with w=1+x2, which gives 12ln(1+x2), with no absolute value since 1+x2>0.

∫arctanxd⁢xxarctanx−12ln(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.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check it by differentiating in Math Check the definite integral in Math Study the 5 key terms Open worked example on a board Product rule in Math Reference

Your existing work stays on this device. Examples open as editable copies.