AP Calculus AB and BC

Integral of 1/(x (ln x)^2): Substitution

The integral of 1 over x times ln x squared is negative 1 over ln x, plus C. Substituting u equal to ln x turns it into the integral of u to the negative 2, and unlike the version with a single logarithm this one converges at infinity.

1x(lnx)2dx=1lnx+C\int \frac{1}{x\left(\ln x\right)^{2}}\,dx = -\frac{1}{\ln x} + C

The substitution

u=lnx,du=dxx    u2du=1lnx+Cu = \ln x, \quad du = \frac{dx}{x} \implies \int u^{-2}du = -\frac{1}{\ln x} + C

The exponent decides convergence

This is the boundary case that separates two famous results. With a single logarithm the integral diverges; with a square it converges.

2dxxlnx=,2dxx(lnx)2=1ln2\int_{2}^{\infty}\frac{dx}{x\ln x} = \infty, \qquad \int_{2}^{\infty}\frac{dx}{x\left(\ln x\right)^{2}} = \frac{1}{\ln 2}

By the integral test the matching series behave the same way, which is why 1nlnn\sum \frac{1}{n\ln n} diverges while 1n(lnn)2\sum \frac{1}{n(\ln n)^{2}} converges.

Common mistakes

  • Answering a logarithm. That is the exponent 1-1 case; here the exponent is 2-2.
  • Starting at x=1x = 1, where ln1=0\ln 1 = 0 makes the integrand undefined.

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 1/(x (ln x)^2)?

It is 1lnx+C-\frac{1}{\ln x} + C.

Does it converge at infinity?

Yes, to 1ln2\frac{1}{\ln 2} from x=2x = 2. The single-logarithm version diverges.