AP Calculus AB and BC
Integral of ln(x)/x: Answer, Proof, and Steps
The integral of ln(x)/x is (ln x)^2/2 + C. The substitution u = ln x works because du = dx/x, the other factor in the integrand, so the integral collapses to the integral of u du. Differentiating (ln x)^2/2 returns ln(x)/x, which confirms the answer.
Substituting u = ln x
The integrand contains next to , and is the derivative of . That pairing of a function with its own derivative is the signal for substitution.
Every piece of the integral has a replacement: becomes and becomes .
Convert back to x
The answer must be written in the original variable. Stopping at leaves an undefined letter in the answer and loses credit on the AP exam.
Checking by differentiating
Differentiate the result with the chain rule, treating as an outer square applied to .
The cancels the the power rule brings down, and the chain rule supplies the . The integrand comes back exactly, so the antiderivative is right.
The mistakes students make
- Dropping the and writing . Differentiating that gives , twice the integrand.
- Confusing with . The second one puts in the denominator and integrates to .
- Reaching for integration by parts. It does reach the same answer, but only after the integral reappears on both sides, so substitution is far shorter.
- Writing when is meant. Those are different functions: .
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
Does the answer need absolute value bars?
No. The integrand already requires for to exist, so on the whole domain of the problem is defined and needs no absolute values.
What is the integral of ln(x)/x from 1 to e?
, since and .
How is this different from the integral of 1/(x ln x)?
Both use , but the placement of changes the outcome. Here the integral becomes ; there it becomes , giving .