Maths Mutt HOME

Logarithms

What is a Logarithm?

If \(a\), \(b\) and \(c\) are real numbers where \(a = b^c\) and \(b > 1\), then the power \(c\) is called the logarithm of the number \(a\) to the base \(b\), and \(c = \log_b a\).

Logarithm definition diagram

The exponential function \(f(x) = a^x\) has an inverse function \(f^{-1}(x) = \log_a x\), obtained by reflecting the graph in the line \(y = x\).

Exponential and logarithmic inverse graphs

If \(y = a^x\), then \(x = \log_a y\).

Logarithm relation diagram
Examples
\[ \text{If } y = 5^x,\quad \text{then } x = \log_5 y. \]
\[ 64 = 2^6,\quad \text{then } 6 = \log_2 64. \]
\[ 4m = \log_n 6,\quad \text{then } 6 = n^{4m} \]
\[ x = 12^y,\quad \text{then } y = \log_12 x \]

Number Base Tables

Base 10

← Increasing  Base 10  Decreasing →

ThousandsHundredsTensUnitsTenths
10001001010.1
\(10^3\)\(10^2\)\(10^1\)\(10^0\)\(10^{-1}\)
\(1000 = 10^3\)\(100 = 10^2\)\(10 = 10^1\)\(1 = 10^0\)\(0.1 = 10^{-1}\)
\(3 = \log_{10} 1000\)\(2 = \log_{10} 100\)\(1 = \log_{10} 10\)\(0 = \log_{10} 1\)\(-1 = \log_{10} 0.1\)

Base 2

← Increasing  Base 2  Decreasing →

EightsFoursTwosUnitsHalves
8421\(\tfrac{1}{2}\)
\(2^3\)\(2^2\)\(2^1\)\(2^0\)\(2^{-1}\)
\(8 = 2^3\)\(4 = 2^2\)\(2 = 2^1\)\(1 = 2^0\)\(\tfrac{1}{2} = 2^{-1}\)
\(3 = \log_2 8\)\(2 = \log_2 4\)\(1 = \log_2 2\)\(0 = \log_2 1\)\(-1 = \log_2 0.5\)

Base 3

← Increasing  Base 3  Decreasing →

Twenty‑sevensNinesThreesUnitsThirds
27931\(\tfrac{1}{3}\)
\(3^3\)\(3^2\)\(3^1\)\(3^0\)\(3^{-1}\)
\(27 = 3^3\)\(9 = 3^2\)\(3 = 3^1\)\(1 = 3^0\)\(\tfrac{1}{3} = 3^{-1}\)
\(3 = \log_3 27\)\(2 = \log_3 9\)\(1 = \log_3 3\)\(0 = \log_3 1\)\(-1 = \log_3 \tfrac{1}{3}\)

Scientific calculators usually have buttons for:

Common logarithms: log (base 10)

Natural logarithms: ln (base \(e\))

\[ \log x = \log_{10} x,\qquad \ln x = \log_e x \]

Converting Between Bases

\[ \log_{a} x = \frac{\log_{b} x}{\log_{b} a} \]

Proof

Let \[ a = b^{\,c} \qquad\text{and}\qquad x = a^{\,d}. \] Then \[ c = \log_{b} a \qquad\text{and}\qquad d = \log_{a} x. \] Now \[ x = a^{d} \] \[ x = (b^{c})^{d} \] \[ x = b^{cd} \] So \[ cd = \log_{b} x. \] Substitute \(c = \log_{b} a\) and \(d = \log_{a} x\): \[ (\log_{b} a)(\log_{a} x) = \log_{b} x. \] Therefore \[ \log_{a} x = \frac{\log_{b} x}{\log_{b} a}. \]
Example
Worked example converting bases
Example

Evaluate \(\log_{3} 81\).

If a calculator is allowed:

\[ \log_{3} 81 = \frac{\log_{10} 81}{\log_{10} 3} \] \[ \log_{3} 81 = \frac{\log 81}{\log 3} \] \[ = 4 \] or \[ \log_{3} 81 = \frac{\ln 81}{\ln 3} \] \[ = 4 \]

Otherwise:

\[ \text{Let } x = \log_{3} 81 \] Then \[ 3^{x} = 81 \] \[ 3^{4} = 81 \quad\Rightarrow\quad \log_{3} 81 = 4 \]

Note:

\[ \frac{\log_{a} b}{\log_{a} c} \;\neq\; \log_{a}\!\left(\frac{b}{c}\right) \]
\[ \frac{\log_{a} b}{\log_{a} c} = x \] Multiply both sides by \(\log_{a} c\): \[ \log_{a} b = x\,\log_{a} c \] Rewrite the right-hand side using the power rule: \[ \log_{a} b = \log_{a}\!\left(c^{x}\right) \] Remove the logarithms: \[ b = c^{x} \]
Example
\[ \frac{\log_{12}\!\left(16g^{2}\right)}{\log_{12}(4g)} = x \] Multiply both sides by \(\log_{12}(4g)\): \[ \log_{12}\!\left(16g^{2}\right) = x\,\log_{12}(4g) \] Rewrite the right-hand side using the power rule: \[ \log_{12}\!\left(16g^{2}\right) = \log_{12}\!\left((4g)^{x}\right) \] Remove the logarithms: \[ 16g^{2} = (4g)^{x} \] Compare bases: \[ x = 2 \]

Log Laws

Logarithm laws summary

Rule 1

\[ \log_{a}(xy) = \log_{a} x + \log_{a} y \]

Rule 2

\[ \log_{a}\!\left(\frac{x}{y}\right) = \log_{a} x - \log_{a} y \]

Rule 3

\[ \log_{a}\!\left(x^{\,n}\right) = n\,\log_{a} x \]

Rule 4

\[ \log_{a}\!\left(\frac{1}{x}\right) = -\log_{a} x \]
Examples
\[ \log_{10} 2 + \log_{10} 500 \] \[ = \log_{10}(2 \times 500) \] \[ = \log_{10}(1000) \] \[ = 3 \]
\[ \log_{3} 63 - \log_{3} 7 \] \[ = \log_{3}\!\left(\frac{63}{7}\right) \] \[ = \log_{3}(9) \] \[ = 2 \]
\[ 5\,\log_{10} 2 \] \[ = \log_{10}\!\left(2^{5}\right) \] \[ = \log_{10}(32) \] \[ \approx 1.51 \text{ (2 d.p.)} \]
\[ \log_{3} 12 - 2\log_{3} 2 \] \[ = \log_{3} 12 - \log_{3}(2^{2}) \] \[ = \log_{3} 12 - \log_{3} 4 \] \[ = \log_{3}\!\left(\frac{12}{4}\right) \] \[ = \log_{3}(3) \] \[ = 1 \]
\[ \frac{1}{2}\,\log_{7} 49 \] \[ = \log_{7}\!\left(49^{1/2}\right) \] \[ = \log_{7}(7) \] \[ = 1 \]
\[ \log_{5} 125 + \log_{8} 64 \] \[ = \frac{\log 125}{\log 5} + \frac{\log 64}{\log 8} \] \[ = 3 + 2 \] \[ = 5 \]
\[ \log_{2} 3 + \log_{2} 2 - \log_{2} 6 - \log_{2} 8 \] \[ = \log_{2} 3 + \log_{2} 2 + \log_{2}\!\left(\frac{1}{6}\right) + \log_{2}\!\left(\frac{1}{8}\right) \] \[ = \log_{2}(6) + \log_{2}\!\left(\frac{1}{48}\right) \] \[ = \log_{2}\!\left(\frac{6}{48}\right) \] \[ = \log_{2}\!\left(\frac{1}{8}\right) \] \[ = -\log_{2}(8) \] \[ = -3 \]

Logarithmic Equations

Examples

Find the value of \(x\)

\[ \log_{a} 16 \;-\; 3\log_{a} x \;=\; \log_{a} 2 \] \[ \Rightarrow\; \log_{a} 16 \;-\; \log_{a}(x^{3}) = \log_{a} 2 \] \[ \Rightarrow\; \log_{a}\!\left(\frac{16}{x^{3}}\right) = \log_{a} 2 \] \[ \Rightarrow\; \frac{16}{x^{3}} = 2 \] \[ \Rightarrow\; 16 = 2x^{3} \] \[ \Rightarrow\; 8 = x^{3} \] \[ \Rightarrow\; x = \sqrt[3]{8} \] \[ \Rightarrow\; x = 2 \]

Find the value of \(x\)

\[ \log_{9}(x-4)\;-\;\log_{9}(x-8)\;=\;\frac12 \] \[ \Rightarrow\; \log_{9}\!\left(\frac{x-4}{x-8}\right) =\frac12 \] \[ \Rightarrow\; \log_{9}\!\left(\frac{x-4}{x-8}\right) =\log_{9}\!\left(9^{1/2}\right) \] \[ \Rightarrow\; \log_{9}\!\left(\frac{x-4}{x-8}\right) =\log_{9}(3) \] \[ \Rightarrow\; \frac{x-4}{x-8}=3 \] \[ \Rightarrow\; x-4 = 3(x-8) \] \[ \Rightarrow\; x-4 = 3x - 24 \] \[ \Rightarrow\; 20 = 2x \] \[ \Rightarrow\; x = 10 \] \[ \Rightarrow\; 3(x-8) = x-4 \] \[ \Rightarrow\; 3x - 24 = x - 4 \] \[ \Rightarrow\; 2x = 20 \] \[ \Rightarrow\; x = 10 \]

Find the value of \(x\)

\[ \log_{4} x \;+\; \log_{16} x = 15 \] \[ \log_{4} x \;+\; \frac{\log_{4} x}{\log_{4} 16} = 15 \] \[ \log_{4} x \;+\; \frac{\log_{4} x}{2} = 15 \] \[ \frac{3}{2}\,\log_{4} x = 15 \] \[ \log_{4} x = \frac{15 \cdot 2}{3} \] \[ \log_{4} x = 10 \] \[ x = 4^{10} \] \[ x = 1\,048\,576 \]

Books

Printed resources available at Amazon

Exponentials and Logarithms

Exponentials and Logarithms (Revision)

View on Amazon

These notes are suitable as a revision aid for anyone studying exponentials and logarithms.

Topics include:

  • Exponentials
  • Growth functions
  • Decay functions
  • Graphs: log scale on Y‑axis only
  • Graphs: log scale on both axes
  • Logarithms
  • Logarithmic equations
  • Graphs of exponential and log functions
  • Exponential functions
  • Logarithmic functions
  • Shifting log graphs

As an Amazon Associate I earn from qualifying purchases.

Maths Mutt logo © Alexander Forrest