Algebra & Functions · Natural logarithm

Natural logarithm

For x > 0, ln x is the area under the curve y = 1/t from 1 to x, counted as negative when x < 1. Multiplying x by any factor adds the same area, which makes it a logarithm; its base is the number e where the area reaches 1.

Natural logarithm in this visualization

For x>0x > 0 the natural logarithm ln⁡x\ln x is the area under the curve y=1/ty = 1/t between t=1t = 1 and t=xt = x: ln⁡x=∫1x1t dt\ln x = \int_1^x \frac{1}{t}\, dt. For x>1x > 1 the area lies to the right of 1 and counts as positive. For x<1x < 1 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 ln⁡1=0\ln 1 = 0. There is no ln 0: near t=0t = 0 the curve rises so steeply that the area from 1 down to 0 never ends.

Why the area is a logarithm

Take any a>0a > 0, stretch the plane sideways by a and squash it to 1/a of its height: the point (t,y)(t, y) goes to (at,y/a)(at, y/a). Every small rectangle becomes a times as wide and 1/a times as tall, so it keeps its area. A point (t,1/t)(t, 1/t) of the curve lands on (at,1/(at))(at, 1/(at)), again on the curve, so for any b>0b > 0 the region over [1,b][1, b] lands exactly on the region over [a,ab][a, ab]. Their areas are equal, ∫aabdtt=ln⁡b\int_a^{ab} \frac{dt}{t} = \ln b, and adding the area from 1 to a gives ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b. 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 ln⁡(1/a)=−ln⁡a\ln(1/a) = -\ln a and ln⁡(an)=nln⁡a\ln(a^n) = n \ln a.

The number e

ln x increases with x, and ln⁡(2n)=nln⁡2\ln(2^n) = n \ln 2 grows past every number, so there is exactly one x where the area equals 1. That number is called e: ln⁡e=1\ln e = 1, e≈2.718e \approx 2.718. For a rational q the rule above gives ln⁡(eq)=q\ln(e^q) = q, and because ln is continuous and increasing, ln⁡(ex)=x\ln(e^x) = x for every real x. So ln is the logarithm to base e, the inverse of the exponential function exe^x. For any base b>0b > 0, b≠1b \ne 1, the logarithm is a rescaled copy of it: log⁡bx=ln⁡x/ln⁡b\log_b x = \ln x / \ln b.

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: (ln⁡x)′=1x(\ln x)' = \dfrac{1}{x}. This is the fundamental theorem of calculus for this one curve. At x=1x = 1 the slope is 1, and it falls as x grows: ln x rises forever, but more and more slowly. Each doubling adds only ln⁡2≈0.693\ln 2 \approx 0.693.

Things to notice

  • ln turns products into sums, not sums into sums: ln⁡(a+b)\ln(a + b) is in general not ln⁡a+ln⁡b\ln a + \ln b.
  • 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.

Related