Logarithmic Functions
The logarithm is the inverse of exponentiation: answers "to what power must be raised to get ?" Logarithmic functions turn multiplication into addition, taming exponential growth and powering scales from decibels to pH. Used across science, finance, and computing; formalized by John Napier (1614) and reframed as an inverse function by Euler in the 1700s.
A logarithmic function is a function of the form , where the base is a positive real number not equal to 1, and the argument is a positive real number. It is precisely the inverse of the exponential function : the logarithm undoes exponentiation. Logarithms matter because they convert the hard operation of multiplication into the easy operation of addition, a property that drove three centuries of scientific computation and underlies the structure of countless natural and engineered systems. The surprising fact: although logarithms feel like an advanced topic, they were invented before the modern concept of exponents was fully developed — Napier built them to multiply numbers, not to invert powers.
The Core Insight
A logarithm is an exponent in disguise. The statement is just another way of writing . Everything about logarithms flows from this single equivalence. Because exponents add when you multiply powers (), logarithms convert products into sums. This is the structural reason logarithms exist and the reason they are useful.
Formal Statement
Logarithmic Function
For a fixed base with and , the logarithm base is defined by the equivalence:
Here is the base, is the argument (or antilogarithm), and is the logarithm (the resulting exponent). The domain is and the range is .
Three special bases have dedicated notation:
- Common logarithm , written (engineering, scales).
- Natural logarithm , written , where (calculus, growth).
- Binary logarithm , written (computer science).
Laws of Logarithms
For , , and positive arguments , and any real :
Identities and Special Values
The definitional equivalence forces several identities directly:
Why It Holds / Derivation
The Product Law from the Exponent Law
We prove equation [2], . Every other law follows by the same technique.
- Name the logarithms. Let and . By the definition [1], this means and .
- Multiply the arguments. Form the product:
- Apply the exponent addition law. Powers of the same base multiply by adding exponents, so:
- Convert back using the definition. The equation says, by [1], that .
- Substitute the names back. Replacing and :
The entire content of the proof is that logarithms inherit the additive structure of exponents. The quotient law [3] uses ; the power law [4] uses .
John Napier | 1550–1617
A Scottish landowner, theologian, and mathematician, Napier spent twenty years computing his tables of logarithms, published in 1614 as Mirifici Logarithmorum Canonis Descriptio. His motivation was purely practical: astronomers and navigators drowned in multiplying long strings of trigonometric values. Napier's insight was to relate two points moving along lines — one at constant speed, one at speed proportional to its remaining distance — producing a correspondence that turned multiplication into addition. His "logarithms" (from Greek logos, ratio, + arithmos, number) were not yet tied to a clean base, but they launched the modern computational era. Henry Briggs later collaborated with him to rebase the tables on 10.
Building Intuition
Think of a logarithm as counting digits, or counting orders of magnitude. The common log of a number tells you roughly how many digits it has: , and has three zeros. More precisely, answers "how many times must I multiply by to reach ?" — and it allows fractional answers for the in-between values.
The second intuition is compression of scale. Multiplying by 10 only adds 1 to the logarithm. So a logarithmic axis squeezes a vast range — from 1 to 1,000,000 — into a tidy span from 0 to 6. This is why "log scales" appear whenever quantities span enormous ranges (earthquakes, sound, acidity, star brightness).
The third intuition is growth that slows. As increases, keeps rising but ever more sluggishly, because each new unit of logarithm requires multiplying by another whole factor of . The curve flattens but never stops, and never turns back down.
The natural logarithm $y=\ln x$, its inverse $y=e^x$, and the line $y=x$
Worked Examples
Solving an Exponential Equation with Logs
Given: A bacterial colony doubles every 3 hours, starting at 500 cells. After how many hours does it reach 32,000 cells? Model: . Set . Steps:- Divide: , so .
- Recognize , so gives .
- (General method, if the factor weren't a clean power) take logs:
- Solve: .
Earthquake Magnitudes — A Log-Scale Comparison
Given: The Richter magnitude is , where is the measured amplitude and a reference. How many times stronger (in amplitude) is a magnitude 7.2 quake than a magnitude 5.4 quake? Steps:- Write each: and .
- Subtract using the quotient law [3]:
- Undo the log: .
- Evaluate: .
Common Misconceptions
The logarithm of a sum is NOT the sum of logarithms. A very common error is to write . This is false. The product law [2] applies only to products: . There is no simplification for .Other frequent mistakes:
- . The quotient law gives , a subtraction, not a division of logs.
- . The power law [4] requires the exponent to be inside the argument: .
- and are undefined in the reals — no real exponent of a positive base yields zero or a negative number.
Test the false "sum rule" with numbers. Take , , :
Connections
Logarithmic functions sit at the center of a web of related ideas. They are the inverse of Exponential Functions, so every property of one mirrors a property of the other — reflection across . The base ties logarithms to The Number e and makes the natural choice in Calculus, where and . The change-of-base formula [5] connects logarithms in any base, and the laws [2]–[4] are a concrete instance of a Group Isomorphism between multiplication of positive reals and addition of all reals. Logarithms also underlie Inverse Functions generally and feed directly into the study of Exponential Growth and Decay.
Real-World Applications
- Decibels (sound): Loudness dB compresses the enormous range of audible sound intensities into a manageable 0–120 scale.
- pH (chemistry): Acidity turns hydrogen-ion concentrations spanning many orders of magnitude into the familiar 0–14 scale.
- Richter / moment magnitude (seismology): Earthquake energy spans factors of billions; logs make magnitudes comparable (see worked example).
- Information theory (computing): The number of bits to encode equally likely states is ; Shannon entropy is a sum of terms.
- Finance: Continuously compounded returns use , which add cleanly across periods, unlike percentage returns.
- Astronomy (stellar magnitudes): Apparent brightness is logarithmic; a difference of 5 magnitudes equals a factor of 100 in flux.
- Algorithm analysis (CS): Binary search and balanced trees run in time — the log measures how many halvings reach a single element.
Historical Development
- 1614 — John Napier publishes Mirifici Logarithmorum Canonis Descriptio, introducing logarithms to simplify trigonometric multiplication for astronomers and navigators.
- 1617 — Henry Briggs visits Napier; together they conceive base-10 ("common") logarithms with and .
- 1620 — Joost Bürgi independently publishes his own progression-based tables, developed before Napier's but printed later.
- 1624 — Briggs publishes Arithmetica Logarithmica, tables of common logs to 14 decimal places for 1–20,000 and 90,000–100,000.
- 1622 — William Oughtred invents the slide rule, a physical embodiment of the logarithm that would dominate calculation for 350 years.
- 1647–1668 — Gregory of Saint-Vincent and Nicholas Mercator link the area under the hyperbola to the logarithm, birthing the natural log and its series .
- 1748 — Leonhard Euler, in Introductio in analysin infinitorum, defines logarithms as inverses of exponentials, cements the constant , and gives the modern viewpoint.
- 1850s onward — Logarithm tables and slide rules become standard in engineering and science education worldwide.
- 1970s — Electronic calculators render printed tables and slide rules obsolete, though the underlying functions remain everywhere in mathematics.
Subtleties & Limits
The clean real-valued logarithm hides genuine subtleties once the domain widens. Extending to negative and complex numbers forces a choice: , but is determined only up to multiples of , so the complex logarithm is multi-valued. Selecting a "principal branch" introduces a discontinuity (a branch cut), and there is no single global continuous logarithm on the punctured plane — a fact tied to deep ideas in Complex Analysis and topology. Even on the reals, the question "what is the simplest base?" has a non-obvious answer: wins because it makes the derivative cleanest, yet itself is transcendental and was not isolated until long after logarithms were in use. Finally, whether certain logarithms of integers are rational or transcendental (e.g., is irrational? — yes, provably) opens into number theory, where many related values resist full classification.