Understanding Logarithms
A logarithm answers the question: what exponent do we need? For instance, 23 = 8, so log2(8) = 3. The relationship works both ways—if ay = x, then loga(x) = y. This inverse relationship makes logarithms invaluable for solving exponential equations.
The base (a) must be positive and not equal to 1. Common choices include:
- Base 10 (common logarithm, written lg or log): used in pH scales, earthquake magnitude ratings, and historical computation
- Base e (natural logarithm, written ln): approximately 2.71828, fundamental in calculus, physics, and biology
- Base 2 (binary logarithm, written log2): essential in computer science and information theory
The Change-of-Base Formula
Most calculators only compute base-10 or natural logarithms. To find a logarithm with an arbitrary base, use the change-of-base formula—dividing the logarithm of your number by the logarithm of your base, both in the same familiar base:
loga(x) = ln(x) ÷ ln(a)
or
loga(x) = log₁₀(x) ÷ log₁₀(a)
x— The number you want to find the logarithm of (must be positive)a— The base of the logarithm (must be positive and not equal to 1)ln(x)— Natural logarithm of xln(a)— Natural logarithm of the base
A Worked Example: Log Base 2
Suppose you need log2(100). Using the change-of-base formula with base 10:
- log₁₀(100) = 2 (since 102 = 100)
- log₁₀(2) ≈ 0.301
- log2(100) = 2 ÷ 0.301 ≈ 6.644
This result means 26.644 ≈ 100. You can verify: 26 = 64 and 27 = 128, so 6.644 falls between them, which makes sense.
Common Pitfalls and Rules
Avoid these frequent mistakes when working with logarithms:
- Never take the log of zero or negative numbers — Logarithms are undefined for x ≤ 0. The domain is strictly positive reals. If you encounter a negative input, check your model or equations—it usually signals an error upstream.
- Watch your notation carefully — Log, ln, and lg can mean different things depending on discipline. In pure mathematics, log often means natural log; in engineering, it often means base 10. Always verify the author's convention before using results from different sources.
- Remember that log<sub>a</sub>(1) always equals zero — No matter the base, log<sub>a</sub>(1) = 0 because a<sup>0</sup> = 1 for any positive a ≠ 1. This identity is surprisingly useful for simplifying expressions.
- The base cannot be 1 or negative — A base of 1 creates division by zero in the change-of-base formula. Negative bases generate complex logarithms outside everyday use. Always ensure your base is positive and greater than 1 (or between 0 and 1 for a decreasing logarithm).
Historical and Modern Context
John Napier published the first logarithm tables in 1614, revolutionizing astronomy and navigation. His innovation reduced multiplication and division of large numbers to simple addition and subtraction of logarithms. Edmund Gunter and William Oughtred later developed the slide rule—a mechanical analog computer using logarithmic scales—which engineers relied on for 350 years until pocket calculators arrived in the 1970s.
Today, logarithms remain central to science and engineering. They appear in earthquake magnitude scales (Richter), sound intensity (decibels), population growth models, radioactive decay, and financial computations like continuous compound interest. Understanding the underlying logic sharpens your mathematical intuition beyond plugging numbers into a tool.