๐Ÿ”ข Logarithms and Their Laws

A Level Maths Year 1 ยท Exponentials and Logarithms

Level 3 · Ages 16–17

← Back to topic overview
1 What a Logarithm Is
A logarithm answers the question "what power?". $\log_a b$ is the power you must raise $a$ to in order to get $b$. So $\log_2 8 = 3$ because $2^3 = 8$.
The definition (DfE content area F)
$\log_a b = c \quad\iff\quad a^c = b$     (with $a > 0$, $a \neq 1$, $b > 0$)

The base stays the base. In both forms $a$ is the base; the logarithm $c$ is the index. Moving between the two forms is the single most useful skill on this page.

Index formLog formReading it
$2^5 = 32$$\log_2 32 = 5$$2$ to the power $5$ is $32$
$10^{-2} = 0.01$$\log_{10} 0.01 = -2$Logs can be negative
$9^{1/2} = 3$$\log_9 3 = \tfrac12$Logs can be fractions
$a^0 = 1$$\log_a 1 = 0$True for every base
$a^1 = a$$\log_a a = 1$True for every base
You cannot take the log of zero or a negative number. $a^c$ is always positive, so $\log_a b$ only exists for $b > 0$. This is why log equations sometimes produce answers you must reject.
Worked Example 1 โ€” Evaluating logs without a calculator

Find (a) $\log_4 64$   (b) $\log_8 2$   (c) $\log_3 \tfrac{1}{27}$   (d) $\log_{1/2} 4$.

โ‘ (a) $4^{?} = 64$: $4^3 = 64$, so $\log_4 64 = 3$.
โ‘ก(b) $8^{?} = 2$: $8^{1/3} = \sqrt[3]{8} = 2$, so $\log_8 2 = \tfrac13$.
โ‘ข(c) $\tfrac{1}{27} = 3^{-3}$, so $\log_3 \tfrac{1}{27} = -3$.
โ‘ฃ(d) $\left(\tfrac12\right)^{?} = 4$: $\left(\tfrac12\right)^{-2} = 2^2 = 4$, so $\log_{1/2} 4 = -2$.
Write the number as a power of the base. Everything you know about indices โ€” negative and fractional powers โ€” comes straight back.
2 The Laws of Logarithms

Because logs are indices, each law of indices has a matching law of logs. All the logs in one law must have the same base.

Law of indicesLaw of logarithms
$a^m \times a^n = a^{m+n}$$\log_a x + \log_a y = \log_a(xy)$
$a^m \div a^n = a^{m-n}$$\log_a x - \log_a y = \log_a\left(\dfrac{x}{y}\right)$
$\left(a^m\right)^k = a^{mk}$$k\log_a x = \log_a\left(x^k\right)$
Useful consequences
$\log_a\left(\dfrac1x\right) = -\log_a x$     $\log_a \sqrt{x} = \tfrac12\log_a x$     $\log_a\left(a^k\right) = k$     $a^{\log_a x} = x$
Proof of the multiplication law. Let $\log_a x = m$ and $\log_a y = n$, so $x = a^m$ and $y = a^n$. Then $xy = a^m a^n = a^{m+n}$, and converting back to log form, $\log_a(xy) = m + n = \log_a x + \log_a y$.  $\blacksquare$
There is no law for $\log(x + y)$. $\log 2 + \log 3 = \log 6$, but $\log(2 + 3) = \log 5$, which does not simplify. Likewise $\dfrac{\log x}{\log y} \neq \log\left(\dfrac{x}{y}\right)$ and $(\log x)^2 \neq 2\log x$.
Worked Example 2 โ€” Writing as a single logarithm

Write $2\log 3 + \log 4 - \log 6$ as a single logarithm, and simplify.

โ‘ Deal with the multiplier first: $2\log 3 = \log 3^2 = \log 9$.
โ‘กAdd: $\log 9 + \log 4 = \log 36$.
โ‘ขSubtract: $\log 36 - \log 6 = \log\dfrac{36}{6} = \log 6$.
Order matters: always use the power law to move coefficients inside before adding or subtracting.
Worked Example 3 โ€” Expanding a logarithm

Write $\log_a\left(\dfrac{x^3 y}{z^2}\right)$ in terms of $\log_a x$, $\log_a y$ and $\log_a z$.

โ‘ Division law: $\log_a\left(x^3 y\right) - \log_a\left(z^2\right)$
โ‘กMultiplication law: $\log_a x^3 + \log_a y - \log_a z^2$
โ‘ขPower law: $3\log_a x + \log_a y - 2\log_a z$
Worked Example 4 โ€” Writing logs in terms of given letters

Given $\log_a 2 = p$ and $\log_a 3 = q$, express (a) $\log_a 12$   (b) $\log_a 1.5$   (c) $\log_a 0.75$ in terms of $p$ and $q$.

โ‘ (a) $12 = 2^2 \times 3$, so $\log_a 12 = 2\log_a 2 + \log_a 3 = 2p + q$.
โ‘ก(b) $1.5 = \dfrac32$, so $\log_a 1.5 = q - p$.
โ‘ข(c) $0.75 = \dfrac34 = \dfrac{3}{2^2}$, so $\log_a 0.75 = q - 2p$.
Break every number into its prime factors first โ€” the laws then do the rest.
3 Natural Logs and Base 10

Two bases have their own calculator buttons.

NameWrittenBaseInverse of
Common logarithm$\log_{10} x$ or $\lg x$$10$$10^x$
Natural logarithm$\ln x$$e \approx 2.718$$e^x$

The laws are identical for $\ln$. Two facts are used constantly: $\ln\left(e^k\right) = k$ and $e^{\ln x} = x$.

Worked Example 5 โ€” Simplifying with $\ln$ and $e$

Simplify (a) $\ln\left(\dfrac{e^3}{\sqrt e}\right)$   (b) $e^{2\ln 3}$   (c) $e^{\ln 4 + 1}$.

โ‘ (a) $\dfrac{e^3}{e^{1/2}} = e^{5/2}$, so $\ln\left(e^{5/2}\right) = \tfrac52$.
โ‘ก(b) $2\ln 3 = \ln 9$, so $e^{\ln 9} = 9$.
โ‘ข(c) $e^{\ln 4} \times e^{1} = 4e$.
In (b), do not write $e^{2\ln 3} = 2 \times 3$. The $2$ must go inside the log as a power first.
Logs to other bases on a calculator. If your calculator has no $\log_{\square}$ key, use $\log_a b = \dfrac{\ln b}{\ln a}$ (this works with $\log_{10}$ too). For example $\log_2 10 = \dfrac{\ln 10}{\ln 2} \approx 3.322$. It follows from taking $\ln$ of $a^c = b$.
4 Switching Between Forms to Solve Equations

A single log equal to a number is solved by rewriting it in index form. More involved equations โ€” with several logs, or with the unknown in an index โ€” are on the Exponential and Log Equations page.

Worked Example 6 โ€” Simple log equations

Solve (a) $\log_3 x = 4$   (b) $\log_x 49 = 2$   (c) $\log_2(x + 1) = 5$   (d) $\ln(2x) = 3$.

โ‘ (a) $x = 3^4 = 81$.
โ‘ก(b) $x^2 = 49$, so $x = \pm 7$. A base must be positive, so $x = 7$.
โ‘ข(c) $x + 1 = 2^5 = 32$, so $x = 31$.
โ‘ฃ(d) $2x = e^3$, so $x = \tfrac12 e^3 \approx 10.04$.
Worked Example 7 โ€” Combine first, then switch

Solve $\log_2 x + \log_2 8 = 7$.

โ‘ $\log_2 8 = 3$, so $\log_2 x = 4$.
โ‘ก$x = 2^4 = 16$.
โ‘ขCheck: $\log_2 16 + \log_2 8 = 4 + 3 = 7$ โœ“
5 Quick Reference

Definition

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

Special values

$\log_a 1 = 0$,  $\log_a a = 1$

Multiply

$\log x + \log y = \log xy$

Divide

$\log x - \log y = \log \dfrac{x}{y}$

Power

$k\log x = \log x^k$ โ€” do this first.

Reciprocal

$\log\dfrac1x = -\log x$

No law

for $\log(x+y)$ or $\dfrac{\log x}{\log y}$.

Domain

Only positive numbers have logs.

Natural log

$\ln e^k = k$,  $e^{\ln x} = x$

Other bases

$\log_a b = \dfrac{\ln b}{\ln a}$

6 Practice Questions
Question 1

Write in logarithm form: (a) $2^5 = 32$   (b) $10^{-3} = 0.001$   (c) $7^0 = 1$.   Write in index form: (d) $\log_5 125 = 3$.

โ–ถ Show solution

(a) $\log_2 32 = 5$   (b) $\log_{10} 0.001 = -3$   (c) $\log_7 1 = 0$

(d) $5^3 = 125$

Question 2

Without a calculator, find (a) $\log_3 81$   (b) $\log_2 \tfrac18$   (c) $\log_{25} 5$   (d) $\log_4 8$.

โ–ถ Show solution

(a) $3^4 = 81$, so $4$.

(b) $\tfrac18 = 2^{-3}$, so $-3$.

(c) $25^{1/2} = 5$, so $\tfrac12$.

(d) $4^{3/2} = \left(\sqrt4\right)^3 = 8$, so $\tfrac32$.

Question 3

Show that $\log_{10} 5 + \log_{10} 4 - \log_{10} 2 = 1$.

โ–ถ Show solution

$\log_{10}\left(\dfrac{5 \times 4}{2}\right) = \log_{10} 10 = 1$.

Question 4

Write $3\ln x - 2\ln y + \ln 5$ as a single logarithm.

โ–ถ Show solution

Power law first: $\ln x^3 - \ln y^2 + \ln 5$.

Combine: $\ln\left(\dfrac{5x^3}{y^2}\right)$.

Question 5

Given $\log_a 2 = p$ and $\log_a 3 = q$, express in terms of $p$ and $q$: (a) $\log_a 18$   (b) $\log_a \tfrac89$   (c) $\log_a \sqrt6$.

โ–ถ Show solution

(a) $18 = 2 \times 3^2$: $\;p + 2q$.

(b) $\tfrac89 = \dfrac{2^3}{3^2}$: $\;3p - 2q$.

(c) $\sqrt6 = (2 \times 3)^{1/2}$: $\;\tfrac12(p + q)$.

Question 6

Find the exact value of $2\log_6 3 + \log_6 4$.

โ–ถ Show solution

$2\log_6 3 = \log_6 9$, so the sum is $\log_6 36$.

$6^2 = 36$, so the value is $2$.

Question 7

Solve (a) $\log_x 64 = 3$   (b) $\log_5(2x - 1) = 2$   (c) $\ln(x - 3) = 1$.

โ–ถ Show solution

(a) $x^3 = 64$, so $x = 4$.

(b) $2x - 1 = 5^2 = 25$, so $x = 13$.

(c) $x - 3 = e$, so $x = 3 + e \approx 5.718$.

Question 8

Write in the form $A + B\ln x$: (a) $\ln\left(e^2x^3\right)$   (b) $\ln\sqrt{ex}$   (c) $\ln\left(\dfrac{x}{e^4}\right)$.

โ–ถ Show solution

(a) $\ln e^2 + \ln x^3 = 2 + 3\ln x$

(b) $\tfrac12\ln(ex) = \tfrac12(\ln e + \ln x) = \tfrac12 + \tfrac12\ln x$

(c) $\ln x - \ln e^4 = -4 + \ln x$

Question 9

Prove that $\log_a\left(\dfrac{x}{y}\right) = \log_a x - \log_a y$.

โ–ถ Show solution

Let $m = \log_a x$ and $n = \log_a y$, so $x = a^m$ and $y = a^n$.

Then $\dfrac{x}{y} = \dfrac{a^m}{a^n} = a^{m-n}$.

Converting to log form: $\log_a\left(\dfrac{x}{y}\right) = m - n = \log_a x - \log_a y$.  $\blacksquare$

Question 10

The pH of a solution is defined by $\text{pH} = -\log_{10} H$, where $H$ is the concentration of hydrogen ions in moles per litre.

(a) Find the pH of a solution with $H = 3.2 \times 10^{-4}$, to 2 decimal places.   (b) Blood has a pH of $7.4$. Find $H$.   (c) Show that multiplying $H$ by $10$ lowers the pH by exactly $1$.   (d) Solution A has pH $3$ and solution B has pH $5$. How many times more concentrated in hydrogen ions is A than B?

โ–ถ Show solution

(a) $\text{pH} = -\log_{10}\left(3.2 \times 10^{-4}\right) \approx 3.49$.

(b) $-\log_{10} H = 7.4 \Rightarrow \log_{10} H = -7.4 \Rightarrow H = 10^{-7.4} \approx 3.98 \times 10^{-8}$ moles per litre.

(c) New pH $= -\log_{10}(10H) = -\left(\log_{10}10 + \log_{10}H\right) = -1 - \log_{10}H = (\text{old pH}) - 1$.

(d) $H_A = 10^{-3}$ and $H_B = 10^{-5}$, so $\dfrac{H_A}{H_B} = 10^{2} = 100$. A is $100$ times as concentrated.

Logarithms and Their Laws · A Level Maths Year 1 · Created with MathJax