🧮 Algebra

🔊Logarithms

Ask 2 to what power gives 8 and you have a logarithm — the inverse of exponents, speaking behind earthquake magnitudes and pH.

Multiplication has division at its back, squaring has square roots for company — and exponents? Their inverse is the logarithm. 23=82^3 = 8; asked backwards, "2 to what power gives 8?", the answer 3 is written log28=3\log_2 8 = 3. Do not let the new symbol scare you: it is shorthand for one exponential question.

Rewinding a power

More formally: if ac=ba^c = b, we write logab=c\log_a b = c. The left side asks "how many powers of a make b", and the right side is the answer. Both spellings say the same thing:

25=32log232=52^5 = 32 \quad \Longleftrightarrow \quad \log_2 32 = 5

103=1000lg1000=310^3 = 1000 \quad \Longleftrightarrow \quad \lg 1000 = 3

Checking is always the same move: put c back into the exponent and see whether b returns. This rewind is the same idea as a square root undoing a square — inverse operations exist to run the film backwards.

Power machine, logarithm machine

InteractiveGuess the rule, then rewind

A secret rule hides inside the machine. Feed it numbers and guess the rule!

? ? ?

Output

A rule hides inside the machine: feed it an input, watch the output, and guess the rule. After playing, think backwards — if the rule is x2x^2, the machine that undoes it is the square root; if the rule is 2x2^x, the undo-machine turns 8 back into 3 and 32 back into 5, and that rewinding machine is the logarithm. Inverse machines swap input and output. The formal name for such a machine is a function — they get far more stage time there.

Two laws of logarithms

The most likeable talent of logarithms: they demote hard operations by one level.

In exponent worldIn logarithm worldNumeric check
Multiplyingbecomes addinglg100+lg1000=2+3=5=lg100000\lg 100 + \lg 1000 = 2 + 3 = 5 = \lg 100000
Powersbecome coefficientslog28=log223=3log22=3\log_2 8 = \log_2 2^3 = 3\log_2 2 = 3

Multiply-becomes-add is one glance away: 100=102100 = 10^2 and 1000=1031000 = 10^3, and multiplying the numbers adds the exponents, 2+3=52 + 3 = 5 — so the logarithms add too. Power-becomes-coefficient is just as handy: 8 already is 232^3, and the logarithm simply lifts the exponent 3 down.

Two regulars

Base 10 gives the common logarithm lg, with lg100=2\lg 100 = 2; base e ≈ 2.718 gives the natural logarithm ln, with lne=1\ln e = 1. Different bases, same question.

A ruler for orders of magnitude

Logarithms were born for numbers that leap across many zeros. Scientific notation squeezes big numbers into powers of ten; the logarithm goes further — it reads the exponent straight off as a tick mark: every ×10 in value moves the scale one step.

  • The Richter scale for earthquakes is such a ruler: one step up in magnitude means ten times the ground amplitude. Magnitudes 6 and 4 differ by 2 steps, so the amplitude differs 102=10010^2 = 100 times.
  • The pH of a solution works the same way: it is defined as lgc-\lg c (c the hydrogen ion concentration). pH 3 sits 3 steps below pH 6, so its concentration is 103=100010^3 = 1000 times larger — far more acidic.

Seat numbers on a logarithmic ruler, and wildly different sizes fit into one picture.

Check yourself

Quick quiz

  1. 1. What is log₂32?

  2. 2. log₂4 + log₂8 equals log₂ of what?

  3. 3. Solution A has pH 3 and solution B has pH 6. A's hydrogen ion concentration is how many times that of B?