IB MYP Extended Mathematics · Number
Logarithms
1What a logarithm is
A logarithm answers the question "what power?". If $a^x = b$, then $x = \log_a b$.
- $\log_2 8 = 3$, because $2^3 = 8$.
- $\log_{10} 1000 = 3$, because $10^3 = 1000$.
- $\log_5 \frac{1}{25} = -2$, because $5^{-2} = \frac{1}{25}$.
- $\log_9 3 = \frac{1}{2}$, because $9^{\frac{1}{2}} = 3$.
The two statements $a^x = b$ and $x = \log_a b$ say the same thing in exponential form and logarithmic form. Being able to switch between them is the key skill.
Facts that follow at once:
- $\log_a 1 = 0$, because $a^0 = 1$.
- $\log_a a = 1$, because $a^1 = a$.
- The logarithm of zero or a negative number is not defined, because a positive base raised to any power is positive.
Two bases have their own keys on a calculator: log means base 10, and ln means base $e \approx 2.718$ (the natural logarithm).
Check yourself
What is log₃ 81?
Show the answer
4
3⁴ = 81.
2The laws of logarithms
Because logarithms are powers, they follow from the laws of indices. For the same base:
- Product: $\log_a (xy) = \log_a x + \log_a y$
- Quotient: $\log_a \left(\dfrac{x}{y}\right) = \log_a x - \log_a y$
- Power: $\log_a (x^n) = n\log_a x$
Simplify
- $\log 2 + \log 5 = \log 10 = 1$ (base 10).
- $\log_2 48 - \log_2 3 = \log_2 16 = 4$.
- $2\log_3 6 - \log_3 4 = \log_3 36 - \log_3 4 = \log_3 9 = 2$.
Expand log(x²y/z)
- $\log x^2 + \log y - \log z$.
- $= 2\log x + \log y - \log z$.
Things that are not laws, and common errors:
- $\log(x + y)$ is not $\log x + \log y$.
- $\dfrac{\log x}{\log y}$ is not $\log\left(\dfrac{x}{y}\right)$.
- $(\log x)^2$ is not $2\log x$. The power law applies to $\log(x^2)$.
Check yourself
What is log₆ 4 + log₆ 9?
Show the answer
2
The product law gives log₆ 36, and 6² = 36.
3Solving exponential equations
When the unknown is in the exponent and the bases cannot be matched, take logarithms of both sides and use the power law to bring the exponent down.
Solve 3^x = 20
- $\log 3^x = \log 20$.
- $x\log 3 = \log 20$.
- $x = \dfrac{\log 20}{\log 3} \approx 2.73$.
- Sense check: $3^2 = 9$ and $3^3 = 27$, so $x$ should be between 2 and 3.
Solve 2^(x + 1) = 50
- $(x + 1)\log 2 = \log 50$.
- $x + 1 = \dfrac{\log 50}{\log 2} \approx 5.644$.
- $x \approx 4.64$.
If the bases can be matched, that is quicker: $4^x = 8$ becomes $2^{2x} = 2^3$, so $x = 1.5$.
The change of base rule comes from the same idea: $\log_a b = \dfrac{\log b}{\log a}$. So $\log_2 7 = \dfrac{\log 7}{\log 2} \approx 2.81$.
Check yourself
Solve 5^x = 125.
Show the answer
x = 3
5³ = 125, so no logarithms are needed.
4Solving logarithmic equations
Combine the logarithms into one, then rewrite in exponential form.
Solve log₂(x + 3) = 4
- Exponential form: $x + 3 = 2^4 = 16$.
- $x = 13$.
Solve log₃ x + log₃(x − 2) = 1
- Product law: $\log_3 [x(x - 2)] = 1$.
- Exponential form: $x(x - 2) = 3$.
- $x^2 - 2x - 3 = 0$, so $(x - 3)(x + 1) = 0$.
- $x = 3$ or $x = -1$.
- Check the domain: $\log_3(-1)$ is not defined, so reject $x = -1$.
- Solution: $x = 3$.
Always check that every logarithm in the original equation has a positive input.
If both sides are single logarithms with the same base, the inputs are equal: $\log(2x - 1) = \log(x + 4)$ gives $2x - 1 = x + 4$, so $x = 5$.
Check yourself
Solve log₁₀ x = 3.
Show the answer
x = 1000
In exponential form, x = 10³.
5Logarithms in the real world
Logarithmic scales compress very large ranges: each step of 1 on the scale means multiplying by 10.
- pH = $-\log_{10}[H^+]$. A solution with hydrogen ion concentration $10^{-3}$ has pH 3. A pH of 3 is ten times more acidic than a pH of 4.
- Earthquake magnitude: a magnitude 7 earthquake has 10 times the amplitude of a magnitude 6, and 100 times that of a magnitude 5.
- Sound in decibels: an increase of 10 dB means 10 times the intensity.
Logarithms also find how long exponential growth or decay takes.
Doubling time
- $1,000 is invested at 5% compound interest a year. When does it reach $2,000?
- $1000 \times 1.05^t = 2000$, so $1.05^t = 2$.
- $t = \dfrac{\log 2}{\log 1.05} \approx 14.2$.
- Interest is added yearly, so the amount first exceeds $2,000 after 15 years.
Decay
- A substance loses 12% of its mass each hour. When is half left?
- $0.88^t = 0.5$.
- $t = \dfrac{\log 0.5}{\log 0.88} \approx 5.42$ hours.
The graph of $y = \log_a x$ is the reflection of $y = a^x$ in the line $y = x$: it passes through (1, 0), rises slowly, and has the $y$-axis as an asymptote.
Check yourself
An earthquake of magnitude 8 has how many times the amplitude of one of magnitude 6?
Show the answer
100
Each whole number on the scale is a factor of 10, so two steps is 10².
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera