← All Labs
IDEA #33 · THE LOGARITHMIC CURVE

Same shape, different scale

Bacteria, earthquakes, loudness, money: real quantities can grow so violently that on ordinary graph paper the early history flattens into the axis while the recent past shoots off the top. Here you plot the genuine data and then bend the ruler: switch the y-axis (or both axes) to a logarithmic scale, where each step means "ten times as much" instead of "one more." Watch the impossible curve snap into a straight line — and read its growth rate straight off the slope. That is the whole job of a logarithm: it makes explosive change legible.

A QUANTITYgrows explosively
LINEAR AXESunreadable curve
LOG AXESbend the ruler
RESULTa straight line
01

Drive it — bend the axis and watch it straighten

Pick a real-world quantity, then toggle the axes between linear, semi-log (log y) and log-log (both). The badge tells you how straight the data has become. Drag the growth slider to change how fast it explodes — the curve moves, but the straightness on the right scale does not.
DRIVE IT
LINEAR AXES  ·  y vs x
data best straight-line fit decade / tick grid
GROWTH RATE r0.35
DATA POINTS40
TRUE LAW
TAKE LOGS → A STRAIGHT LINE
Straight on Fit slope Straightness R² y range spans
02

Walkthrough — five things to try

A guided tour from unreadable curve to straight line.
WALKTHROUGH
1
See the problem. Start on Bacteria with Linear axes. The population hugs the bottom for hours, then rockets up at the end — you can read the last few hours but the early growth is crushed into an invisible sliver against the axis. The y range spans readout shows why: the data covers several powers of ten, and a linear ruler gives them all the same tiny slice of height.
2
Bend the ruler. Switch to Semi-log (log y). Now each gridline upward means "×10," so a doubling early on gets exactly as much vertical room as a doubling later. The curve snaps straight and the badge flips to green. The early history and the explosive finish are finally visible at the same time.
3
Read the rate off the slope. Drag Growth rate r up and down. On the log axis the line stays straight but tilts — steeper means faster growth. The Fit slope readout is literally the growth rate (in powers of ten per unit x). A straight semi-log plot is the fingerprint of exponential growth, and its slope is the rate.
4
Meet the other straightener. Switch to Metabolic law (how an animal's energy use scales with its body mass, from mouse to whale). On Semi-log it's still curved — but flip to Log-log and it straightens. Power laps like \(y=ax^k\) need both axes bent; the slope you read off is the exponent \(k\).
5
Feel the compression. On Earthquakes and Loudness, a linear plot is almost useless — a magnitude-9 quake releases a billion times the energy of a magnitude-3, and no bar chart can show both. The log axis puts them a few evenly-spaced steps apart. That's why the Richter and decibel scales are already logarithms: nature handed us numbers too big to graph, so we graph their logs instead.
03

Aha

AHA
THE INSIGHT
A logarithm doesn't change the data — it changes the ruler. Measure "how many times ten" instead of "how much," and exponential growth stops being an unreadable cliff and becomes a straight line whose slope is the growth rate.
04

Explanation — why the ruler matters

What a log scale actually does, and the two shapes it straightens.
EXPLANATION

A linear axis measures differences; a log axis measures ratios. On ordinary graph paper, moving up one centimetre always adds the same amount — 10, 20, 30, 40. On a logarithmic axis, moving up one centimetre always multiplies — 1, 10, 100, 1000. Equal spacing means equal factors, not equal amounts. That single change is why a quantity spanning a millionfold range fits on one screen: each power of ten gets its own fair slice of height.

Why exponentials go straight. Exponential growth means a fixed percentage increase per step: \(y = a\,e^{rx}\). Take the logarithm of both sides and it becomes \(\ln y = \ln a + r x\) — the equation of a straight line, with the growth rate \(r\) as its slope. So plotting \(\log y\) against \(x\) (a semi-log plot) turns any exponential into a line. If your data straightens on semi-log paper, it is growing exponentially, and the tilt tells you how fast.

Why power laws need both axes. A power law, \(y = a\,x^{k}\), describes things that scale — an animal's metabolism with its mass, a city's infrastructure with its population, the area of a shape with its length. Take logs of both sides: \(\log y = \log a + k\log x\). Now both variables are logged, so only a log-log plot straightens it, and the slope is the exponent \(k\). Semi-log for exponentials, log-log for power laws — the shape that straightens tells you which law you're looking at.

The scales you already use are logs. The Richter scale, decibels, the pH scale, stellar magnitudes, and the musical octave are all logarithmic — humans invented them precisely because the underlying quantities (earthquake energy, sound intensity, acidity, brightness, pitch) vary over ranges too vast for a linear number to be useful. A magnitude-6 quake isn't twice a magnitude-3; it's about 30,000 times more energetic. The log scale is what lets a single, comfortable number stand in for that avalanche.

Reading a rate from a slope is the working scientist's payoff. Fit a straight line to a semi-log plot and its slope hands you the growth (or decay) constant directly — this is how half-lives, epidemic doubling times, and Moore's-law trends are extracted from noisy data. On a log-log plot, the slope is the scaling exponent, which is how physicists spot power laws hiding in everything from earthquakes to word frequencies.

A caution worth keeping. Because a log axis compresses, it can make wildly different growth rates look similar and can hide the sheer size of the final numbers — a gentle-looking upward line may still be a catastrophe. The log scale is a lens for seeing structure (is it exponential? what's the rate?), not for judging magnitude. The honest analyst shows both, and says which ruler they used.

05

Research note

The two linearizations, and what the applet computes.
RESEARCH NOTE
An exponential straightens under a single log — a semi-log plot:
A power law straightens under a double log — a log-log plot, slope = exponent:
Fixing the base sets the "one step = ×b" meaning of a decade; base 10 is the graphing convention:

What is computed for real: the plotted points are the exact model values — \(N_0e^{rt}\), \(P(1+r)^t\), \(10^{bM+c}\), \(I_0\,10^{L/10}\), \(aM^{k}\) — sampled live and mapped through whichever axis transform you select (identity or \(\log_{10}\)). The green line is a genuine least-squares fit performed in the current axis space, and the reported is the real coefficient of determination — that is why it jumps to ~1.000 exactly when you pick the ruler that matches the law.

Reading: any introductory data-analysis or physics-lab text covers semi-log and log-log paper and "linearizing" a fit. For power laws in nature, see Kleiber's metabolic-scaling law and West/Brown/Enquist's work on allometry; for the log scales in the world, the Richter (energy \(\propto 10^{1.5M}\)) and decibel (\(L=10\log_{10} I/I_0\)) definitions.

Sibling labs in this repo: the exponential story connects to #3 Taylor series (how \(e^x\) is built) and #4 the Lorenz butterfly (Lyapunov time is a log-slope); the "read a slope" habit echoes #23 eigenvalues and the fitting in #17 Monte Carlo.

Idea #33 · The Logarithmic Curve — a self-contained Canvas + KaTeX applet. Bend the ruler; read the rate.