impera Open Impera

A levels Mathematics · Pure: trigonometry, exponentials and logarithms

Laws of logarithms

1What a logarithm is

A logarithm answers the question "what power?":

$$\log_a b = c \Leftrightarrow a^c = b$$

For example, $\log_2 8 = 3$ because $2^3 = 8$, and $\log_{10} 0.01 = -2$ because $10^{-2} = 0.01$.

Facts:

  • $\log_a 1 = 0$ and $\log_a a = 1$.
  • $\log_a(a^x) = x$ and $a^{\log_a x} = x$.
  • You can only take the log of a positive number.

$\log_{10}$ is often written $\lg$ or just $\log$; $\log_e$ is written $\ln$.

Check yourself

What is log₃ 81?

  • 4

  • 3

  • 9

  • 27

Show the answer

4

3⁴ = 81.

2The laws of logarithms

For $a > 0$, $a \neq 1$, and positive $x$ and $y$:

  • 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^k) = k\log_a x$

These follow from the laws of indices.

Worked example

Combining logs

  1. Write $2\log 5 + \log 4 - \log 2$ as a single logarithm.
  2. $= \log 25 + \log 4 - \log 2 = \log\left(\dfrac{25 \times 4}{2}\right) = \log 50$.
Worked example

Expanding

  1. Write $\ln\dfrac{x^3}{\sqrt{y}}$ in terms of $\ln x$ and $\ln y$.
  2. $= 3\ln x - \frac{1}{2}\ln y$.

There is no law for $\log(x + y)$: it does not equal $\log x + \log y$.

Check yourself

What is log 3 + log 4 as a single logarithm?

  • log 12

  • log 7

  • log 0.75

  • log 81

Show the answer

log 12

Adding logs multiplies the numbers.

3Solving exponential equations

To solve $a^x = b$, take logs of both sides:

$$x\log a = \log b \quad \Rightarrow \quad x = \frac{\log b}{\log a}$$

Worked example

Simple equation

  1. Solve $5^x = 30$.
  2. $x = \dfrac{\ln 30}{\ln 5} \approx 2.11$.
Worked example

Unknowns on both sides

  1. Solve $3^{2x + 1} = 4^x$.
  2. $(2x + 1)\ln 3 = x\ln 4$.
  3. $2x\ln 3 - x\ln 4 = -\ln 3$, so $x(2\ln 3 - \ln 4) = -\ln 3$.
  4. $x = \dfrac{-\ln 3}{\ln 9 - \ln 4} = \dfrac{-\ln 3}{\ln 2.25} \approx -1.35$.
Worked example

A disguised quadratic

  1. Solve $4^x - 6 \times 2^x + 8 = 0$.
  2. Let $u = 2^x$, so $4^x = u^2$: $u^2 - 6u + 8 = 0$.
  3. $u = 2$ or $u = 4$, giving $x = 1$ or $x = 2$.
Check yourself

How would you solve 7ˣ = 20?

  • Take square roots

  • Take logs: x = log 20 / log 7

  • Subtract 7 from 20

  • Divide 20 by 7

Show the answer

Take logs: x = log 20 / log 7

The power comes down using the power law.

4Solving logarithmic equations

To solve equations involving logs, combine the logs into a single log, then convert to index form.

Worked example

Two logs

  1. Solve $\log_2 x + \log_2(x - 2) = 3$.
  2. $\log_2[x(x - 2)] = 3$, so $x(x - 2) = 8$.
  3. $x^2 - 2x - 8 = 0$, so $(x - 4)(x + 2) = 0$.
  4. $x = 4$ or $x = -2$. Reject $x = -2$ because $\log_2(-2)$ is undefined.
  5. Solution: $x = 4$.

Always check answers in the original equation: the argument of every log must be positive.

Check yourself

Why is x = −2 rejected in the example?

  • Logs must equal zero

  • The log of a negative number is undefined

  • It does not satisfy the quadratic

  • Negative answers are never allowed

Show the answer

The log of a negative number is undefined

Each log's argument must be positive.

5Change of base

To evaluate a log in an unusual base, use the change of base formula:

$$\log_a b = \frac{\log_c b}{\log_c a}$$

Usually $c = 10$ or $c = e$.

Worked example

Change of base

  1. $\log_4 50 = \dfrac{\ln 50}{\ln 4} \approx 2.82$.
Worked example

Equation in different bases

  1. Solve $\log_3 x = \log_9(x + 6)$.
  2. $\log_9(x + 6) = \dfrac{\log_3(x + 6)}{\log_3 9} = \frac{1}{2}\log_3(x + 6)$.
  3. So $2\log_3 x = \log_3(x + 6)$, giving $x^2 = x + 6$.
  4. $x = 3$ or $x = -2$; reject $-2$. Solution: $x = 3$.
Check yourself

What is log₂ 10 using natural logarithms?

  • ln 10 / ln 2

  • ln 2 / ln 10

  • ln 5

  • ln 10 − ln 2

Show the answer

ln 10 / ln 2

Change of base divides the logs.

6Logarithms and modelling

Logarithms turn exponential and power relationships into straight lines, which makes it easy to find unknown constants from data.

  • If $y = ab^x$, then $\log y = \log a + x\log b$. Plot $\log y$ against $x$: a straight line with gradient $\log b$ and intercept $\log a$.
  • If $y = ax^n$, then $\log y = \log a + n\log x$. Plot $\log y$ against $\log x$: gradient $n$, intercept $\log a$.

If y = axⁿ, plotting log y against log x gives a straight line: gradient n, y-intercept log a.

Worked example

Finding constants

  1. Data fit $y = ax^n$. A graph of $\log y$ against $\log x$ is a straight line through $(0, 0.477)$ with gradient 2.
  2. $n = 2$ and $\log a = 0.477$, so $a = 10^{0.477} \approx 3$.
  3. Model: $y = 3x^2$.
Check yourself

If y = abˣ, which graph is a straight line?

  • y against log x

  • y against x

  • log y against log x

  • log y against x

Show the answer

log y against x

log y = log a + x log b.

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