Introduction
An exponential function such as or multiplies by the same factor every time goes up by . A logarithm answers the reverse question: what power gives this number? This topic covers exponential graphs, the special number , the laws of logarithms, solving equations where the unknown is in a power, exponential growth and decay models, and using logs to turn curves into straight lines.
Why it matters
Bacteria double, money compounds, radioactive atoms decay, a hot drink cools: all exponential. Logarithms are how you get the unknown out of the exponent ("how long until it doubles?"). They are also behind the decibel, pH and Richter scales, which squeeze huge ranges into manageable numbers.
Intuitive explanation
because you multiply by three times to get from to . So logs turn multiplication into addition: , since multiplying by is "multiply by , then by ".
For , the gradient at every point is proportional to . For one special base, , the constant of proportionality is exactly : the gradient of equals . That makes the natural base for growth: a quantity growing at a rate proportional to its size is .
Where comes from: compound interest
Invest £1 at interest for one year, compounded times:
| compounding | value | |
|---|---|---|
| yearly | ||
| monthly | ||
| daily | ||
| every second |
The values approach , the result of growing continuously at a rate equal to the current amount. That is why is the function that equals its own rate of change.
Logarithms count multiplications
means "double times to get ". Logs turn multiplication into addition and powers into multiplication. For three centuries, that is how astronomers and engineers multiplied large numbers: look up two logs in a table, add them, and look up the answer. A slide rule is two logarithmic scales sliding past each other.
Formal definitions
For , and : .
. It is the inverse of : for and for all .
: growth if , decay if . is the initial value (at ).
Notation
- with no base usually means (on calculators).
- means .
- is only defined for .
The laws
Key results
- : plot against ; gradient , intercept .
- : plot against ; gradient , intercept .
passes through , is always positive and has asymptote . is its reflection in : through , asymptote .
Proofs
Let and , so and . Then , so .
∎If then . Take of both sides: , so .
∎Methods
Take logs of both sides (or rewrite with the same base), bring the power down with , and solve. For , use .
is a quadratic in . Solve for , then , rejecting .
Take logs of the data, plot, and read the gradient and intercept from the line of best fit. Then convert back.
The log laws are the index laws, read backwards
Let and , so and . Then:
- , so .
- , so .
- , so .
Change of base
Let , so . Take of both sides: . Hence
All logarithm functions are constant multiples of each other: . Choosing a base just chooses a scale.
Why is the natural base
From first principles, . The limit is , so . Only for is the constant exactly . Every other base carries an awkward factor. Similarly , which is simplest when .
The logarithm as an area
, the area under the hyperbola from to . The multiplication law becomes a geometric fact. Stretching the region horizontally by a factor and squashing it vertically by preserves areas, and it maps the area from to onto the area from to . So
Gregory of Saint-Vincent noticed this in 1647, before anyone had defined .
Turning exponential data into straight lines
- . Plot against : gradient , intercept .
- . Plot against : gradient , intercept .
Scientists use log scales precisely so that these hidden straight lines become visible.
Examples
.
Step-by-step worked examples are in the Worked examples tab.
Common mistakes
There is no law for the log of a sum.
has no solutions. Reject such roots in hidden quadratics.
For the intercept is , so , not the intercept itself.
, but . These are different.
Applications
- Radioactive decay and carbon dating: , half-life .
- Newton's law of cooling: .
- Finance: continuous compounding .
- Science scales: decibels, pH and earthquake magnitudes are logarithmic.
Connections
- Algebraic methods: index laws.
- Functions: is the inverse of ; transformations of exponential graphs.
- Differentiation and integration: , .
- Geometric series: "how many terms" questions need logs.
Summary
- ; is , the inverse of .
- Product, quotient and power laws; change of base.
- Unknown in a power: take logs. Watch for hidden quadratics in or .
- Models : initial value, rate.
- : plot against ; : plot against .
Worked examples
Try each one yourself first, then open the solution.
Write as a single integer.
Show the solution
- 1Power law
.
- 2Quotient law
.
- 3Evaluate
.
Solve .
Show the solution
- 1Combine
.
- 2Remove the log
.
- 3Check the domain
makes undefined, so reject it. .
Solve , giving to 3 significant figures.
Show the solution
- 1Take logs
.
- 2Collect
.
- 3Solve
.
Solve .
Show the solution
- 1Substitute
.
- 2Back to
; .
or
A radioactive sample has mass grams after years. Find the half-life.
Show the solution
- 1Set up
.
- 2Take logs
.
- 3Solve
years.
years
A population is modelled by . When , ; when , . Find , and the population when .
Show the solution
- 1Initial value
.
- 2Find
.
- 3Predict
.
,
A graph of against is a straight line with gradient passing through . Find in terms of .
Show the solution
- 1Model
.
- 2Match
and .
- 3Write the model
.
Sketch , showing the intercept and asymptote.
Show the solution
- 1Start with
Decreasing, through , asymptote .
- 2Reflect and shift
is increasing, through , below the axis. Adding 3 moves it up 3.
- 3Key features
-intercept ; horizontal asymptote as ; -intercept where , .
Through and , asymptote
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Defining exponentials and logs properly (university)
What is ? You cannot multiply by itself " times". Integer powers are repeated multiplication, rational powers are roots, but irrational powers need a genuinely new definition. Analysis gives one, starting from the logarithm.
For : .
In substitute : , and the limits become to . So . Hence .
∎From the definition: is differentiable with , so it is strictly increasing. Also and . So is a bijection from onto .
is the inverse of . Then , and for and any real ,
Everything else is now a theorem:
- Index laws: .
- Consistency: for whole numbers this agrees with repeated multiplication, and for with .
- Continuity: is continuous and differentiable in , so is the limit of , matching intuition.
- The derivative: , by the inverse function rule: .
This approach (log first, via an integral) is used in many analysis courses. The alternative is the power series (see the Differentiation lesson). The two definitions give the same function, which is a theorem in its own right.
No. The Gelfond–Schneider theorem (1934) says that if and are algebraic, , and is irrational, then is transcendental. So is transcendental. This settled Hilbert's 7th problem. Yet there is a one-line proof that some irrational have rational: either is rational (done), or it is not, and then .
Why exponentials are inevitable (university)
Why do exponentials appear everywhere in science? Because they are the only sensible functions that turn addition into multiplication.
If is continuous and for all , then , where .
Let , so .
- Integers: by induction, and (put ), .
- Rationals: , so .
- Reals: every real is a limit of rationals, and is continuous, so for all .
Hence with .
∎Why this matters. Any process whose growth over a time is the growth over followed by the growth over must be exponential. That covers radioactive decay (nuclei do not age), compound interest, and the survival function of a memoryless waiting time. "Memoryless" and "exponential" are the same thing.
Similarly, a continuous with on must be a multiple of . That is why every measure of quantities that combine by multiplying (information, loudness, acidity, earthquake energy) ends up on a log scale.
There are solutions of that are not of the form . They need the axiom of choice to construct: view as a vector space over , choose a basis (a Hamel basis), and define linearly with respect to it. Such have graphs that are dense in the whole plane, and they are not measurable. So the continuity assumption is doing real work.
Orders of growth (university)
As :
where means .
For any and any , .
Write with . For , the binomial theorem gives
which is a constant multiple of . So .
∎For any , .
Put . Then by the previous theorem (with in place of ).
∎for every .
Why: once , each extra factor is less than . (This is also why converges for every .)
Why computer scientists care
An algorithm taking steps (binary search) handles a billion items in steps. One taking steps needs . One taking steps (brute-force search) is hopeless for , since . The great open problem P vs NP asks, roughly, whether many problems that seem to need exponential time can actually be solved in polynomial time.
Logarithms and the primes
The number of primes up to satisfies .
So the "probability" that a number near is prime is about . Near , roughly one number in is prime. Gauss guessed this at age 15 from tables of primes. The proof needed complex analysis and the zeta function (see Sequences and series).
Logarithms as a measure of information (university)
How much information is in a message? Shannon (1948) argued that if two independent events have probabilities and , learning both should give the sum of their separate informations, while their joint probability is the product . Only a logarithm turns products into sums (previous section), so the information in an event of probability must be
A fair coin flip carries bit, and a roll of a fair die carries bits.
For a random variable taking values with probabilities , the entropy (average information) is
is largest, , when all outcomes are equally likely, and it is when one outcome is certain. Entropy is the theoretical limit of data compression: English text has about to bits of information per letter, which is why a zip file of a novel is so much smaller than the original.
Logarithmic scales in science
| scale | definition | a step of 1 means |
|---|---|---|
| decibels | power ( dB ) | |
| pH | less acidic | |
| Richter / moment magnitude | energy | |
| stellar magnitude | brightness |
Human senses work roughly logarithmically (the Weber–Fechner law): we notice ratios, not differences. A increase in loudness feels similar whether the sound is quiet or loud.
Boltzmann's formula , carved on his gravestone in Vienna, defines thermodynamic entropy as the logarithm of the number of microscopic arrangements. It has the same mathematical form as Shannon's entropy. Information theory and the second law of thermodynamics are, at bottom, the same mathematics.
Why does this work?
For , . The limit is a constant ; for it is , for it is The base for which is called . Equivalently , the limit of compounding interest ever more often.
Beyond the syllabus
Mathematical curiosities
In many real data sets (populations, river lengths, accounts) the first digit is with probability : about 30% start with 1 and under 5% with 9. Data spread over several orders of magnitude are roughly uniform on a logarithmic scale.