The logarithm in this visualization
The logarithm of to the base , written , is the exponent with : how many times must be multiplied together to give . It exists for , with and . The common bases are 10 (, the common logarithm), (, the natural logarithm) and 2. This page explains the curve by one rule.
On the x axis a chain of points starts at and is multiplied by the same again and again: , and divided by it the other way. For the points spread farther and farther apart along the x axis (for the chain runs the other way), yet on the curve every step has the same height , because : multiplying the numbers adds their logarithms. The yellow notches on the y axis are evenly spaced. Starting from with , the heights are 0, 1, 2, 3: the logarithm counts the factors of . With two steps make one factor of , so each is ½ high — that is where fractional exponents come from. The rule shapes the whole curve: it passes through and ; it flattens, since one more step up needs the same factor, a longer and longer stretch of the x axis; and dividing towards 0 never reaches it, so for the curve falls without bound as .
On a log scale a number sits at the position . The chain then becomes evenly spaced and the curve a straight line: equal ratios are equal distances. A slide rule is two such scales: sliding one along by multiplies every number on it by , and you read products by eye to about three figures. Changing the base only rescales the heights, ; for the curve is turned upside down, . And : scaling the curve sideways by is the same as moving it up by .
Things to notice
- The logarithm turns products into sums, not sums into sums: , while .
- What is halved by is the step in height, not the number: , and .
- Numbers between 0 and 1 have logarithms too, negative ones for : . The base cannot be 1, since every power of 1 is 1; close to 1 the curve becomes very steep ().
- The logarithm grows slowly but without limit: reaches 10 at and 20 at .
- The page writes a value with “=” only when it is exact — , — and with “≈” when it is rounded. It keeps every number exact (decimals, fractions, roots such as √2, and e) to decide which.
Controls
- Drag the solid start to slide the whole chain ( changes); drag any other point of the chain and the multiplier changes so that the point follows your hand. Click a point to read its logarithm above the graph. Drag to change the base on its side of 1; the keys ½, 2, e, 10 jump across. The fields take exact numbers such as
0.5,1/3,√2ore. - Linear | Log turns the x axis into a log scale and back. Slide rule lays a C scale under the axis, its 1 under the start. shows the curve scaled sideways by ; and show the inverse function and its mirror line, on a linear axis with equal scales.
- Presentation mode opens a full-screen view for projectors (← → turn the multiplier to ½, √2, 2, 3, 10; H hides the logarithms).
Related
- A11Compound interest
- A05Function transformations
- D05Derivative
- H13Bayes' theoremPlanned
Further reading: Wikipedia: Logarithm; OpenStax, Algebra and Trigonometry 2e, 6.3 Logarithmic Functions; Wikipedia: Slide rule.