Logarithmic and exponential functions
🎯What you need to be able to do
- Use the laws of logarithms fluently in both directions.
- Understand \( \mathrm{e}^{x} \) and \( \ln x \) as inverse functions, and sketch both graphs.
- Solve equations of the form \( a^{x} = b \) by taking logarithms.
- Solve equations and inequalities involving \( \mathrm{e}^{x} \) and \( \ln x \), including hidden quadratics.
- Reduce \( y = ax^{n} \) and \( y = ab^{x} \) to linear form and find the constants from a graph.
- Know the domain restrictions and check solutions against them.
📚The mathematics
What a logarithm is
A logarithm is an exponent, and that one sentence is the whole idea:
So \( \log_2 8 = 3 \) simply records that \( 2^{3} = 8 \). The natural logarithm \( \ln x \) is \( \log_{\mathrm{e}} x \), where \( \mathrm{e} \approx 2.718 \).
The laws
You need these in both directions. Forwards, \( \ln 12 = \ln 4 + \ln 3 \). Backwards, \( 2\ln x - \ln y \) collapses to \( \ln\!\left(\dfrac{x^{2}}{y}\right) \). Collapsing a sum of logarithms into a single logarithm is how you solve almost every logarithmic equation, because once you have \( \log_a A = \log_a B \) you may conclude \( A = B \).
The graphs, and the inverse relationship
\( y = \mathrm{e}^{x} \) passes through \( (0,1) \), rises steeply, and has the \(x\)-axis as a horizontal asymptote — it is never negative and never zero. \( y = \ln x \) passes through \( (1,0) \), rises ever more slowly, and has the \(y\)-axis as a vertical asymptote; it is defined only for \( x > 0 \).
Each is the other reflected in \( y = x \), which is a fast way to recall which asymptote goes where. The relationships worth having automatic:
Solving equations
Exponential equations. Take logarithms of both sides and use the power law to bring the unknown down from the exponent:
When the unknown appears in both exponents, as in \( 5^{2x-1} = 3^{x+2} \), take logarithms immediately and then expand both sides before collecting the \(x\) terms.
Hidden quadratics. \( \mathrm{e}^{2x} - 5\mathrm{e}^{x} + 6 = 0 \) is a quadratic in \( \mathrm{e}^{x} \), since \( \mathrm{e}^{2x} = \left(\mathrm{e}^{x}\right)^{2} \). Substitute \( u = \mathrm{e}^{x} \), solve, then undo. Crucially, reject any non-positive root for \(u\): \( \mathrm{e}^{x} \) is always positive, so \( \mathrm{e}^{x} = -2 \) has no solution. Rejecting it with that reason is a mark.
Logarithmic equations. Collapse to a single logarithm, remove the logarithm, then check every answer against the domain. Solving \( \ln(x) + \ln(x-3) = \ln 4 \) gives \( x^{2} - 3x - 4 = 0 \), so \( x = 4 \) or \( x = -1 \) — but \( x = -1 \) would require \( \ln(-1) \), so it must be discarded. The algebra cannot tell you that; only the domain check can.
Reducing to linear form
This is the sub-topic that produces whole examination questions, and the method is mechanical once you see it. Take logarithms of both sides and compare with \( Y = mX + c \).
Power law, \( y = ax^{n} \):
Plotting \( \ln y \) against \( \ln x \) gives a straight line of gradient \(n\) and intercept \( \ln a \).
Exponential law, \( y = ab^{x} \):
Plotting \( \ln y \) against \( x \) gives a straight line of gradient \( \ln b \) and intercept \( \ln a \).
Note the difference: the power law needs logarithms on both axes, the exponential law on the \(y\)-axis only. Which plot is straight therefore identifies which model applies.
✏️Worked example
(a) Let \( u = \mathrm{e}^{x} \). Then \( u^{2} - 7u + 12 = 0 \), so \( (u-3)(u-4) = 0 \) and \( u = 3 \) or \( u = 4 \). Both are positive, so both are valid:
The question says exact, so leave the answers as \( \ln 3 \) and \( \ln 4 \).
(b) Exponentiate both sides: \( 2x + 1 = \mathrm{e}^{3} = 20.0855 \), so \( 2x = 19.0855 \) and \( x = 9.54 \) to 3 s.f. Check the domain: \( 2x + 1 = 20.09 > 0 \), so the logarithm is defined and the answer stands.
(c) Taking logarithms, \( \ln y = \ln a + x\ln b \), which is a straight line with \( \ln y \) on the vertical axis and \(x\) on the horizontal.
The gradient is \( \ln b \):
The intercept is \( \ln a \), and the line passes through \( (0, 1.6) \), so \( \ln a = 1.6 \) and \( a = \mathrm{e}^{1.6} = 4.95 \).
📝Practise
Work through these, then reveal the answer. Each question targets a different objective from the list above.
1. Solve \( 5^{2x-1} = 12 \), giving your answer to 3 significant figures.
2. Solve \( \log_3(x + 6) - \log_3(x) = 2 \).
3. Solve \( \mathrm{e}^{2x} - \mathrm{e}^{x} - 6 = 0 \).
4. Solve the inequality \( \ln(3x - 2) < 2 \).
5. The variables satisfy \( y = ax^{n} \). A plot of \( \lg y \) against \( \lg x \) is a straight line through \( (0, 0.4) \) with gradient \( -1.5 \). Find \(a\) and \(n\).
6. Given \( \ln y = 2\ln x - \ln(x + 1) + \ln 3 \), express \(y\) in terms of \(x\).
🔗Go deeper — other people’s work
These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.
- Desmos — plot \( \mathrm{e}^{x} \) and \( \ln x \) with \( y = x \) dashed to see the reflection
- Khan Academy — logarithm laws and exponential equations
- Better Explained — an intuitive account of \( \mathrm{e} \) and the natural logarithm