is its own integral
differentiates to itself, so it integrates to itself: . Check: differentiates to .
The area under from x = 0 to x = 1 is .
With a multiple of x in the power, divide by it. differentiates to by the chain rule, so , and in general for any constant a other than 0. For a = −1 that gives . The integral of from 0 to 1 is .
The curve , shaded from x = 0 to x = 1, with the tangent at (1, e). The tangent is y = ex, whose gradient e equals the height of the curve there. The shaded area is .
The gap in the power rule
The power rule integrates to . For , which is , it would give : adding one to −1 makes 0, and there is no dividing by 0.
No power of x can fill the gap. A power differentiates to , and to land on it would need k = 0, which makes the multiplier in front 0 as well. Yet the region under from 1 to 4 plainly has an area, so does have an antiderivative. It is not a power.
ln x fills it
The natural logarithm differentiates to , so for x > 0, .
The area under from 1 to 4 is , since ln 1 = 0. From 1 to e it is ln e − ln 1 = 1 exactly, which is one way to define e: the number at which the area under , measured from 1, reaches 1.
The curve , shaded from x = 1, where its height is 1, to x = 4, where it is 0.25. The shaded area is .
Areas that add when lengths multiply
The area under behaves like a logarithm. The strip from 2 to 4 is the strip from 1 to 2 made twice as wide and half as tall: each point x of the first strip moves to 2x, where the height is half of . Stretching by 2 one way and squashing by 2 the other leaves the area unchanged.
So the area from 1 to 4 is the area from 1 to 2 twice, and ln 4 = 2 ln 2. The same argument works for any a and b: the area from 1 to ab is the area from 1 to a plus the area from 1 to b, so ln(ab) = ln a + ln b.
the region from a to ab is the region from 1 to b stretched a times wider and squashed a times shorter — the same area — so area(1 → ab) = area(1 → a) + area(1 → b)
Set a and b so that ab = 6, and compare the three areas
Under , the gold region runs from 1 to a = 1.5 and has area ln 1.5 = 0.405. The dashed outline runs from 1 to b = 2 and has area ln 2 = 0.693. The green region runs from a to ab = 3: it is the dashed one stretched 1.5 times wider and 1.5 times shorter, so it has the same area. Gold and green together run from 1 to 3, and ln 3 = 1.099 = 0.405 + 0.693. Drag a and b so that ab = 6.
Negative x and the absolute value
For x < 0, ln x has no value, but does. There ln(−x) works instead: by the chain rule it differentiates to . The two cases together are written with an absolute value: , for every x except 0.
So the integral of from −4 to −1 is , negative because the curve is below the axis there.
A definite integral of must not cross 0. Between −1 and 1 the curve has no value at 0, and the region on each side of 0 is infinitely large. Putting the limits into ln|x| would give ln 1 − ln 1 = 0, a number with no meaning here.
Related integrals
A linear bracket underneath divides by its multiplier, as did: . The integral from 0 to 1 is . A constant on top stays outside: .
Another base turns into e. differentiates to , so . The integral from 0 to 3 is .
ln x itself is integrated by parts, with ln x as the part to differentiate and 1 as the part to integrate: . Check with the product rule: x ln x differentiates to ln x + 1, and taking away the derivative of x leaves ln x.
The usual mistakes
Applying the power rule to . It gives , which has no meaning.
Applying the power rule to . The x is in the exponent, not the base, so does not differentiate back to .
Forgetting to divide by a. is ; differentiates to .
Dropping the absolute value. ln x has no value for negative x, while does, so the integral is ln|x| + C.
Integrating across 0. The region is unbounded on both sides of 0, so the integral from −1 to 1 has no value.