Logarithmic Functions
Learning objectives
- Define the logarithm as the inverse of the exponential
- Evaluate logarithms of perfect powers
- Apply the three laws of logarithms
- Solve equations involving logarithms
A logarithm answers the question "what exponent?" Multiplication is repeated addition; exponentiation is repeated multiplication; and the logarithm undoes that repeated multiplication by counting how many times you had to multiply. Once you internalise that, the three laws of logarithms read like obvious arithmetic facts about exponents in disguise.
Definition by inversion
For , , the logarithm base of is the unique number satisfying . We write . Equivalently:
Examples: because ; because ; because .
The three laws
For positive and :
- Product rule: .
- Quotient rule: .
- Power rule: .
Why do these hold? Write and ; then , so its logarithm is . Each rule is just a restatement of an exponent rule, viewed through the logarithm lens.
Two special bases
The natural logarithm uses base : . The common logarithm uses base : in many engineering contexts means by convention. (Pure-math texts often use for instead. Check the convention of the book you are reading.)
Change of base
To convert from base to base :
This is how a calculator that only knows and can compute : as .
- Information Theory: The Shannon entropy measures information content in bits; the logarithm here is the same one you are learning, and it shows up in every compression algorithm (gzip, zstd, mp3).
- Chemistry: The pH scale is -\log_{10}[H^+]; pH 4 is ten times more acidic than pH 5 because of the logarithm. Same trick on the Richter scale (earthquakes), decibel scale (sound), and apparent magnitude (stars).
- Algorithms: Binary search is because doubling the input adds one step; the same logarithm explains why a sorted array of one trillion items can be searched in under 40 comparisons.
(Switch the widget to Product rule mode and slide and . The widget draws b(a) and as separate heights on the logarithm curve, then shows that their sum equals . The product rule is the law made geometric.)
Solving logarithmic equations
To solve , convert to exponential form: . To solve , the same trick gives , so . The general technique: exponential-and-logarithm undo each other, so to remove a logarithm, exponentiate; to remove an exponential, take a logarithm.
Try it
- Predict first: by the product rule, equals ? Switch to Product rule mode, set , and confirm by hand that .
- Switch the base to (slide to about ). Pick a value on the log curve and verify .
- Compute by hand using the change-of-base formula in two different ways (base 3, then natural log), you should get .
Pause: why is for every base? Why is ? Tie both to the exponential definition.
Try it in code
A trap to watch for
The single most common error in pre-calculus: writing . This is wrong. The product rule says , the inside is a product, not a sum. Test: , while . These are not equal. There is no nice identity for the logarithm of a sum; if a problem hands you , leave it. The trap exists because looks like a linear operator (it is written before an argument, like a function), but its action on multiplication, not addition, is what produces the nice identity.
What you now know
You can convert between logarithmic and exponential form, apply the three laws to simplify expressions, change base when needed, and solve simple logarithmic equations by exponentiating. The next chapter generalises functions to mappings between abstract sets, the same definition you learnt in 13.1, but stripped of any reliance on numbers, ready for the rest of mathematics.
Quick check
Mark section complete →
References
- Lang, S. (1971). Basic Mathematics. Springer. Chapter 13 §5, logarithms defined as inverses of exponentials.
- Stewart, J. (2015). Calculus: Early Transcendentals, 8th ed. Cengage. Section 6.3: the three laws and change of base.
- Apostol, T. M. (1967). Calculus, Volume I, 2nd ed. Wiley. Chapter 6: rigorous construction of as an integral and the resulting identities.