The logarithm as an inverse operation
A logarithm answers the question of which power a base has to be raised to in order to give a number. Learn the definition of log_a b, the conditions on the base and the argument, the common and natural logarithms, and the four properties that turn multiplication into addition.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
- PowersA power is shorthand for multiplying the same factor by itself. Learn the base and the exponent, the laws of exponents, powers of a product and of a quotient, zero and negative exponents, the monotonicity of exponentiation, and scientific notation.
- RootsA root is the inverse of raising to a power. Learn square and cube roots, arithmetic with roots, taking a factor out of a radical and absorbing one under it, estimating and comparing roots, and rationalising a denominator.
Where this is used
Real situations where you count exactly the way this lesson teaches:
- Noise and hearingA conversation runs at about 60 dB and a busy street at 90 dB. The 30 dB gap does not mean half again as loud — it means 10³ = 1000 times the sound power, because the decibel is a logarithmic unit rather than an ordinary scale.
- Saving moneyA deposit pays 5% a year, and the question is after how many years the capital doubles. Solving 1.05ⁿ = 2 gives n = log 2 : log 1.05 ≈ 14.2 years. Without a logarithm all that is left is multiplying year by year and guessing.
- Chemistry laboratoryAcidity is reported as pH = −log[H⁺]. Juice at pH 3 has a hydrogen-ion concentration 100 times higher than tap water at pH 5, although only 2 separates them on the scale — every pH unit is a factor of ten.
- Software developmentA binary search through a sorted set of a million records needs log₂ 1,000,000 ≈ 20 comparisons, while scanning one by one needs 500,000 on average. That difference decides whether a database answers instantly or after a second.
All formulas
Definition of a logarithm
a logarithm is the exponent the base is raised to
Two logarithms straight from the definition
because a⁰ = 1 and a¹ = a
Logarithm of a product
multiplication turns into addition
Logarithm of a quotient
division turns into subtraction
Logarithm of a power
the exponent comes out in front
Inverse operations
raising to a power and taking a logarithm cancel each other
Common and natural logarithm
two bases used so often that they have their own notation
The statement can be read three ways, and each one leaves a different unknown. When the result is unknown, we compute a power. When the base is unknown, we take a root: . That leaves a third possibility — the exponent is unknown:
The answer is , and the operation that produces it is called a logarithm. It is the missing link beside powers and roots: a power asks for the result, a root asks for the base, and a logarithm asks for the exponent.
Definition
Read: the logarithm of to base is the exponent that must be raised to in order to give . The number is called the argument.
The easiest check is to rewrite the logarithm as a power:
The three conditions in brackets are not decoration — each follows from how powers behave:
- and — one raised to any power gives , so the equation would have no solution while would have infinitely many;
- — a power of a positive number is always positive, so no exponent gives . The logarithm of a negative number and of zero does not exist.
Two values follow straight from the definition and are worth knowing by heart:
because and .
Common and natural logarithms
Two bases turn up so often that they have a shorthand:
The common logarithm (base ) sits behind every scale on which the next step means a factor of ten: decibels, pH, the Richter scale. The natural logarithm has base — the number that appears wherever something grows or decays continuously.
Properties
Every property of the logarithm is a law of exponents rewritten. Take and , that is and . Then
which says exactly that the logarithm of a product is the sum of the logarithms:
In the same way dividing powers gives subtraction, and raising a power to a power gives multiplication:
That is the whole story of the logarithm: it turns multiplication into addition and exponentiation into multiplication. Before calculators existed, this is precisely how many-digit numbers were multiplied — by reading logarithms off a table and adding them.
The drawings show the same thing. The numbers run apart faster and faster:
Their logarithms to base sit at equal spacings:
The last pair of formulas states outright that taking a logarithm and raising to a power cancel each other:
What it is for
A logarithm is the answer wherever the unknown sits in the exponent. A deposit paying multiplies the capital by each year, so the question of how many years it takes to double is the equation
The same construction describes radioactive decay, loan repayment and the running time of an algorithm. Logarithms also sit behind every scale on which a step means a factor rather than an increment: 30 decibels of difference is a thousandfold in sound power, and two pH units are a hundredfold in concentration. What that comes to in bels and nepers is what the decibel calculator works out.
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
Common mistakes
- A logarithm of a sum — is not . The rules cover products and quotients, not addition.
- Splitting a logarithm into a quotient of logarithms — is , not .
- A logarithm of a negative number or of zero — it does not exist; the domain of a logarithm is the positive numbers.
- Swapping the base with the argument — , but . The base is the one written below.
- Treating a negative result as an error — is correct: the result may be negative even though the argument may not.
Formula card
Topic: Logarithms
Definition of a logarithm
a logarithm is the exponent the base is raised to
Two logarithms straight from the definition
because a⁰ = 1 and a¹ = a
Logarithm of a product
multiplication turns into addition
Logarithm of a quotient
division turns into subtraction
Logarithm of a power
the exponent comes out in front
Inverse operations
raising to a power and taking a logarithm cancel each other
Common and natural logarithm
two bases used so often that they have their own notation
