Natural logarithm in this visualization
For the natural logarithm is the area under the curve between and : . For the area lies to the right of 1 and counts as positive. For the integral runs from 1 back to x, and the area counts as negative, as it does for any integral whose limits are reversed. So . There is no ln 0: near the curve rises so steeply that the area from 1 down to 0 never ends.
Why the area is a logarithm
Take any , stretch the plane sideways by a and squash it to 1/a of its height: the point goes to . Every small rectangle becomes a times as wide and 1/a times as tall, so it keeps its area. A point of the curve lands on , again on the curve, so for any the region over lands exactly on the region over . Their areas are equal, , and adding the area from 1 to a gives . On the graph, the piece from x to m·x always has area ln m, wherever x is; with Strips on, each rectangle is an m times wider, m times lower copy of its partner in the piece before. It follows that and .
The number e
ln x increases with x, and grows past every number, so there is exactly one x where the area equals 1. That number is called e: , . For a rational q the rule above gives , and because ln is continuous and increasing, for every real x. So ln is the logarithm to base e, the inverse of the exponential function . For any base , , the logarithm is a rescaled copy of it: .
Slope 1/x
Move x to the right by a small h. The area gains a thin strip of width h whose height is close to 1/x, so it grows by about h/x, and the rate tends to 1/x as h shrinks: . This is the fundamental theorem of calculus for this one curve. At the slope is 1, and it falls as x grows: ln x rises forever, but more and more slowly. Each doubling adds only .
Things to notice
- ln turns products into sums, not sums into sums: is in general not .
- Toward 0 the pieces get narrower and taller, each still of area ln m. Infinitely many fit between 0 and 1, so ln x falls without bound as x approaches 0.
Controls
- Drag across either graph to move x; it catches on 1/2, e and whole numbers. The field for x takes fractions, roots such as √2, and e.
- Set the factor m with its knob, which drops into 1.5, 2, e and 3, or type it. Strips puts four rectangles in every piece; Tangent draws the tangent to y = ln x.
- With the keyboard, Tab to the point on y = 1/t and use the left and right arrow keys. Hold Shift for larger steps.