AP Calculus BC
Integral of ln x: Answer, Proof, and Mistakes
The integral of ln x is x ln x - x + C, valid for x > 0. Integration by parts produces it: take u = ln x and dv = dx, so du = (1/x) dx and v = x, leaving x ln x minus the integral of 1 dx. Differentiating x ln x - x returns ln x + 1 - 1 = ln x.
How to integrate ln x by parts
The integrand has no inside function for substitution to grab, so -substitution stalls immediately. Integration by parts works because differentiating simplifies it to , while integrates to at no cost.
Choose and . Then and .
The remaining integrand collapses to 1, and .
Check it by differentiating
Differentiate . The product rule gives , and the term contributes . The two constants cancel and leave exactly .
Where the integral of ln x shows up on the AP exam
belongs to Unit 6 (Integration and Accumulation of Change), Topic 6.11, Integrating Using Integration by Parts. Topic 6.11 is BC only, so AB students are never asked to produce this antiderivative, though an AB student can still confirm it by differentiating. Unit 6 carries a weighting of 15 to 20 percent on both AB and BC.
On BC it rarely appears bare. It is usually one step inside a definite integral, an average value, or an accumulation function. The cleanest case runs from 1 to , where both endpoints make friendly.
The same parts choice handles any logarithm base after a change of base, since and the constant pulls straight out of the integral.
Common mistakes with the integral of ln x
- Answering . That is the derivative of , not an antiderivative of it, and the two get reversed constantly under time pressure.
- Answering . Differentiating it gives , so it overshoots by exactly the 1 that the term exists to cancel.
- Reaching for substitution. There is no inner function, so no choice of reduces , and parts is the only elementary route.
- Setting and . Finding then requires the answer you are trying to compute, so the choice is circular.
- Ignoring the domain. needs , so a definite integral reaching down to 0 is improper (Topic 6.13), not a routine FTC evaluation.
- Dropping the on the indefinite integral.
Worked variations on the integral of ln x
Two variations account for most of what BC actually asks. The first keeps the same parts choice, the second changes .
For , take and , so (the chain rule gives , which reduces) and .
For , keep but let , so .
In both cases the logarithm is the factor assigned to , because it is the piece that gets simpler when differentiated, which is the whole reason parts helps here.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
What is the integral of ln x?
for . It comes from integration by parts with and . Differentiating the answer returns , which is the fastest way to confirm it.
Why does integrating ln x require integration by parts?
is not on the basic antiderivative list, and it has no inner function for substitution to target. Parts works because differentiates down to , which cancels against and leaves the trivial .
Is the integral of ln x on the AP Calculus AB exam?
No. Integration by parts is Topic 6.11, which is BC only, so AB is not asked to antidifferentiate . AB students do need from Topic 2.7, and they can use it to verify if the answer is handed to them.
What is the integral of ln x from 1 to e?
It equals 1. Evaluate at the endpoints: at you get , and at you get , so the definite integral is .
What is the integral of log base b of x?
Rewrite with the change of base: . The constant factors out, giving . Only the natural log avoids the extra in the denominator.