Logarithm Explorer

Watch how changing the base reshapes the curve, compare it live against ln(x) and logโ‚โ‚€(x), and see why logarithms turn multiplication into addition.

Loading interactive simulation...

why logarithms are everywhere 🖖

Logarithms turn multiplication into addition โ€” that's the whole trick, and it's why they show up everywhere humans need to compress huge ranges into something readable. The pH scale is -logโ‚โ‚€[Hโบ]: each whole step is a 10ร— change in acidity. Decibels are 10ยทlogโ‚โ‚€(power ratio): a quiet room and a jet engine differ by roughly a trillion in raw power, but only by about 120 dB. The Richter/moment magnitude scale works the same way โ€” a magnitude 7 earthquake releases about 32 times more energy than a magnitude 6, not 7/6 times more. Before calculators, engineers carried slide rules that turned this addition trick into a physical ruler: sliding two logarithmically-marked scales let you multiply two numbers just by adding lengths. And in information theory, the number of bits needed to represent something is literally logโ‚‚ of the number of possibilities โ€” every doubling of choices costs exactly one more bit.

a logarithm is just an exponent 🖖

A logarithm asks a backwards question: b to what power gives x? That answer is the logarithm โ€” log_b(x) is simply the exponent. That is why every curve in this tool passes through (1, 0): any base raised to the power 0 equals 1. The two references shown, ln(x) and log10(x), are the same question asked with base e and base 10.

every base is the same curve 🖖

Slide the base and the graphs seem to change shape โ€” but they do not. Change of base gives log_b(x) = ln(x) / ln(b), so each curve is just ln(x) multiplied by a fixed number. The slider only stretches one universal curve vertically. Push the base below 1 and that factor turns negative, flipping the curve upside down; set it exactly to 1 and everything collapses, since ln(1) = 0 means dividing by zero.

Example problems

  • natural log - Natural logarithm case: ln(2) โ‰ˆ 0.693.
  • common log - Common log case: log10(100) = 2.
  • base < 1 - Base below 1 flips the curve: log0.5(4) = -2.
  • change of base - Change-of-base check: log4(16) = 2.
  • near b = 1 - Base just above 1: the curve plunges near-vertical since dividing by ln(1.05) โ‰ˆ 0.049 blows up the result.