AP Calculus BC

Integral of ln 2x: Answer, Proof, and Steps

The integral of ln(2x) is x ln(2x) - x + C, valid for x > 0. Integration by parts with u = ln(2x) and dv = dx works because the derivative of ln(2x) is 1/x, which cancels against the x from v and leaves the integral of 1. No factor of 1/2 appears.

ln2xdx=xln2xx+C\int \ln 2x\,dx = x\ln 2x-x + C

Parts with nothing to integrate

There is no antiderivative of ln2x\ln 2x to quote and no second factor to pair it with. The move is to supply one: let dv=dxdv = dx, so v=xv = x, and let uu be the entire integrand.

u=ln2x,du=1xdx,dv=dx,v=xu = \ln 2x, \quad du = \frac{1}{x}\,dx, \quad dv = dx, \quad v = x

That dudu deserves a second look. The chain rule gives ddx[ln2x]=22x=1x\frac{d}{dx}[\ln 2x] = \frac{2}{2x} = \frac{1}{x}, so the inside 2 cancels against itself and ln2x\ln 2x has the same derivative as lnx\ln x.

Running the formula

In uvvduuv - \int v\,du the xx from vv meets the 1x\frac{1}{x} from dudu, and the new integrand is just 1.

ln2xdx=xln2xx1xdx=xln2x1dx\int \ln 2x\,dx = x\ln 2x - \int x\cdot\frac{1}{x}\,dx = x\ln 2x - \int 1\,dx
ln2xdx=xln2xx+C\int \ln 2x\,dx = x\ln 2x - x + C

Check by differentiating: the product rule gives ln2x+x1x1=ln2x+11=ln2x\ln 2x + x\cdot\frac{1}{x} - 1 = \ln 2x + 1 - 1 = \ln 2x.

How it relates to the integral of ln x

For x>0x > 0, ln2x=ln2+lnx\ln 2x = \ln 2 + \ln x, so this answer sits a distance xln2x\ln 2 away from xlnxxx\ln x - x. That gap is a function of xx, not a constant, which is why the two integrals genuinely differ even though the integrands differ by a constant.

The mistake students make

The frequent error is dividing by 2, writing xln2xx2\frac{x\ln 2x - x}{2} by analogy with sin2xdx=cos2x2\int \sin 2x\,dx = -\frac{\cos 2x}{2}. That division applies when the inside coefficient survives differentiation and needs cancelling. In a logarithm it cancels on its own, since ddx[ln2x]=1x\frac{d}{dx}[\ln 2x] = \frac{1}{x}, so there is nothing left to undo.

The second slip is dropping the x-x and answering xln2xx\ln 2x. Differentiating that gives ln2x+1\ln 2x + 1, overshooting by exactly the 1 that the x-x term exists to cancel.

The third is ignoring the domain. ln2x\ln 2x exists only for x>0x > 0, so xln2xxx\ln 2x - x is an antiderivative on (0,)(0, \infty) and nowhere else. A definite integral reaching down to 0 is improper (Topic 6.13) and has to be evaluated as a limit rather than by plugging the endpoint in. Absolute value bars do not extend it either, the way they do for dxx\int\frac{dx}{x}: the integrand itself has no negative branch to repair.

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

Why is there no 1/2 out front the way there is for sin 2x?

Because ddx[ln2x]=1x\frac{d}{dx}[\ln 2x] = \frac{1}{x}, not 2x\frac{2}{x}. The inside coefficient cancels inside the chain rule itself, so the antiderivative has nothing to compensate for.

Can I rewrite the log before integrating?

Yes, and it is a clean shortcut. On the domain x>0x > 0, ln2x=ln2+lnx\ln 2x = \ln 2 + \ln x, so the integral is xln2+xlnxx+Cx\ln 2 + x\ln x - x + C, which factors back to xln2xx+Cx\ln 2x - x + C.

What is the definite integral from 1 to 2?

Evaluate xln2xxx\ln 2x - x at both ends: (2ln42)(ln21)=3ln21(2\ln 4 - 2) - (\ln 2 - 1) = 3\ln 2 - 1, roughly 1.0791.079.