Logarithmic Functions

⚡ Key Takeaways

The logarithm is the inverse of exponentiation: log⁡bx\log_b x answers "to what power must bb be raised to get xx?" 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.

💡 The Core Insight

A logarithm is an exponent in disguise. The statement log⁡bx=y\log_b x = y is just another way of writing by=xb^y = x. Everything about logarithms flows from this single equivalence. Because exponents add when you multiply powers (bm⋅bn=bm+nb^m \cdot b^n = b^{m+n}), logarithms convert products into sums. This is the structural reason logarithms exist and the reason they are useful.

Formal Statement

DefinitionLogarithmic Function

For a fixed base bb with b>0b > 0 and b≠1b \neq 1, the logarithm base bb is defined by the equivalence:

1
y=log⁡bx  ⟺  by=x(x>0)\quad y = \log_b x \iff b^y = x \qquad (x > 0)

Derivation hint: This is a definition by inverse — read it as "the logarithm is the exponent." Both directions are the same statement. Here bb is the base, xx is the argument (or antilogarithm), and yy is the logarithm (the resulting exponent). The domain is x∈(0,∞)x \in (0, \infty) and the range is y∈(−∞,∞)y \in (-\infty, \infty). Three special bases have dedicated notation:

  • Common logarithm log⁡10x\log_{10} x, written log⁡x\log x (engineering, scales).
  • Natural logarithm log⁡ex\log_e x, written ln⁡x\ln x, where e≈2.71828e \approx 2.71828 (calculus, growth).
  • Binary logarithm log⁡2x\log_2 x, written lg⁡x\lg x (computer science).
TheoremLaws of Logarithms

For b>0b > 0, b≠1b \neq 1, and positive arguments M,NM, N, and any real pp:

2
log⁡b(MN)=log⁡bM+log⁡bN\quad \log_b(MN) = \log_b M + \log_b N

Derivation hint: Let log⁡bM=m\log_b M = m, log⁡bN=n\log_b N = n, so M=bmM = b^m, N=bnN = b^n; then MN=bm+nMN = b^{m+n}.

3
log⁡b ⁣(MN)=log⁡bM−log⁡bN\quad \log_b\!\left(\frac{M}{N}\right) = \log_b M - \log_b N

Derivation hint: Same substitution; M/N=bm−nM/N = b^{m-n}, so the logarithm is m−nm - n.

4
log⁡b(Mp)=p log⁡bM\quad \log_b(M^p) = p\,\log_b M

Derivation hint: Mp=(bm)p=bmpM^p = (b^m)^p = b^{mp}, so the exponent is mp=plog⁡bMmp = p\log_b M.

5
log⁡bx=log⁡axlog⁡ab(change of base)\quad \log_b x = \frac{\log_a x}{\log_a b} \qquad \text{(change of base)}

Derivation hint: From x=blog⁡bxx = b^{\log_b x}, take log⁡a\log_a of both sides and apply law [4].

TheoremIdentities and Special Values

The definitional equivalence forces several identities directly:

6
log⁡b1=0,log⁡bb=1,log⁡b(bx)=x,blog⁡bx=x\quad \log_b 1 = 0, \qquad \log_b b = 1, \qquad \log_b(b^x) = x, \qquad b^{\log_b x} = x

Derivation hint: Set b0=1b^0 = 1, b1=bb^1 = b; the last two are the inverse-composition statements f−1(f)=idf^{-1}(f) = \mathrm{id} and f(f−1)=idf(f^{-1}) = \mathrm{id}.

Why It Holds / Derivation

ProofThe Product Law from the Exponent Law

We prove equation [2], log⁡b(MN)=log⁡bM+log⁡bN\log_b(MN) = \log_b M + \log_b N. Every other law follows by the same technique. 1. Name the logarithms. Let m=log⁡bMm = \log_b M and n=log⁡bNn = \log_b N. By the definition [1], this means M=bmM = b^m and N=bnN = b^n. 2. Multiply the arguments. Form the product:

MN=bm⋅bn.MN = b^m \cdot b^n.

3. Apply the exponent addition law. Powers of the same base multiply by adding exponents, so:

MN=bm+n.MN = b^{m+n}.

4. Convert back using the definition. The equation MN=bm+nMN = b^{m+n} says, by [1], that log⁡b(MN)=m+n\log_b(MN) = m + n. 5. Substitute the names back. Replacing mm and nn:

log⁡b(MN)=log⁡bM+log⁡bN.■\log_b(MN) = \log_b M + \log_b N. \qquad \blacksquare

The entire content of the proof is that logarithms inherit the additive structure of exponents. The quotient law [3] uses bm/bn=bm−nb^m / b^n = b^{m-n}; the power law [4] uses (bm)p=bmp(b^m)^p = b^{mp}.

∎
JN
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

🧠 Intuition

Think of a logarithm as counting digits, or counting orders of magnitude. The common log log⁡10\log_{10} of a number tells you roughly how many digits it has: log⁡10(1000)=3\log_{10}(1000) = 3, and 10001000 has three zeros. More precisely, log⁡bx\log_b x answers "how many times must I multiply by bb to reach xx?" — 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 xx increases, log⁡bx\log_b x keeps rising but ever more sluggishly, because each new unit of logarithm requires multiplying xx by another whole factor of bb. The curve flattens but never stops, and never turns back down.

Figure
The natural logarithm y=ln⁡xy=\ln x, its inverse y=exy=e^x, and the line y=xy=x
x y y=x y=eˣ y=ln x (1,0) x=0 asymptote

Worked Examples

ExampleSolving 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: N(t)=500⋅2t/3N(t) = 500 \cdot 2^{t/3}. Set N(t)=32000N(t) = 32000.

Steps: 1. Divide: 32000500=64\dfrac{32000}{500} = 64, so 2t/3=642^{t/3} = 64. 2. Recognize 64=2664 = 2^6, so 2t/3=262^{t/3} = 2^6 gives t3=6\dfrac{t}{3} = 6. 3. (General method, if the factor weren't a clean power) take logs:

t3=log⁡264=ln⁡64ln⁡2=4.15890.6931=6.\frac{t}{3} = \log_2 64 = \frac{\ln 64}{\ln 2} = \frac{4.1589}{0.6931} = 6.

4. Solve: t=18t = 18.

t=18 hours\boxed{t = 18 \text{ hours}}
ExampleEarthquake Magnitudes — A Log-Scale Comparison

Given: The Richter magnitude is M=log⁡10(A/A0)M = \log_{10}(A/A_0), where AA is the measured amplitude and A0A_0 a reference. How many times stronger (in amplitude) is a magnitude 7.2 quake than a magnitude 5.4 quake?

Steps: 1. Write each: M1=log⁡10(A1/A0)=7.2M_1 = \log_{10}(A_1/A_0) = 7.2 and M2=log⁡10(A2/A0)=5.4M_2 = \log_{10}(A_2/A_0) = 5.4. 2. Subtract using the quotient law [3]:

M1−M2=log⁡10 ⁣(A1A2)=7.2−5.4=1.8.M_1 - M_2 = \log_{10}\!\left(\frac{A_1}{A_2}\right) = 7.2 - 5.4 = 1.8.

3. Undo the log: A1A2=101.8\dfrac{A_1}{A_2} = 10^{1.8}. 4. Evaluate: 101.8=101⋅100.8≈10×6.31=63.110^{1.8} = 10^{1}\cdot 10^{0.8} \approx 10 \times 6.31 = 63.1.

about 63 times larger amplitude\boxed{\text{about } 63 \text{ times larger amplitude}}

Common Misconceptions

⚠️ Common mistake

The logarithm of a sum is NOT the sum of logarithms. A very common error is to write log⁡b(M+N)=log⁡bM+log⁡bN\log_b(M + N) = \log_b M + \log_b N. This is false. The product law [2] applies only to products: log⁡b(MN)=log⁡bM+log⁡bN\log_b(MN) = \log_b M + \log_b N. There is no simplification for log⁡b(M+N)\log_b(M+N). Other frequent mistakes:

  • log⁡bMlog⁡bN≠log⁡b ⁣(MN)\dfrac{\log_b M}{\log_b N} \neq \log_b\!\left(\dfrac{M}{N}\right). The quotient law gives log⁡bM−log⁡bN\log_b M - \log_b N, a subtraction, not a division of logs.
  • (log⁡bM)p≠plog⁡bM(\log_b M)^p \neq p \log_b M. The power law [4] requires the exponent to be inside the argument: log⁡b(Mp)=plog⁡bM\log_b(M^p) = p\log_b M.
  • log⁡b0\log_b 0 and log⁡b(negative)\log_b(\text{negative}) are undefined in the reals — no real exponent of a positive base yields zero or a negative number.
Counterexample

Test the false "sum rule" with numbers. Take b=10b = 10, M=100M = 100, N=100N = 100:

log⁡10(M+N)=log⁡10(200)≈2.301,\log_{10}(M + N) = \log_{10}(200) \approx 2.301,

but

log⁡10M+log⁡10N=2+2=4.\log_{10}M + \log_{10}N = 2 + 2 = 4.

Since 2.301≠42.301 \neq 4, the sum rule is conclusively wrong. (The correct product law: log⁡10(100⋅100)=log⁡10(10000)=4=2+2\log_{10}(100 \cdot 100) = \log_{10}(10000) = 4 = 2 + 2. ✓)

Connections

connection

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 y=xy = x. The base ee ties logarithms to The Number e and makes ln⁡x\ln x the natural choice in Calculus, where ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} and ∫1x dx=ln⁡∣x∣\int \frac{1}{x}\,dx = \ln|x|. 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

🔬 Where this appears

Historical Development

⏳ History
- 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 log⁡1=0\log 1 = 0 and log⁡10=1\log 10 = 1.
- 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 1/x1/x to the logarithm, birthing the natural log and its series ln⁡(1+x)=x−x22+⋯\ln(1+x)=x-\tfrac{x^2}{2}+\cdots.
- 1748 — Leonhard Euler, in Introductio in analysin infinitorum, defines logarithms as inverses of exponentials, cements the constant ee, 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

open-problem

The clean real-valued logarithm hides genuine subtleties once the domain widens. Extending log⁡\log to negative and complex numbers forces a choice: log⁡z=ln⁡∣z∣+iarg⁡z\log z = \ln|z| + i\arg z, but arg⁡z\arg z is determined only up to multiples of 2π2\pi, 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: ee wins because it makes the derivative cleanest, yet ee 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 log⁡102\log_{10} 2 irrational? — yes, provably) opens into number theory, where many related values resist full classification.

See Also

Exponential Functions · The Number e · Inverse Functions · Laws of Exponents · Logarithmic Scales · Exponential Growth and Decay · Complex Analysis · Calculus