impera Open Impera

AP Precalculus · Exponential and logarithmic functions

Logarithmic functions

1Logarithms undo exponentials

The logarithm base $b$ answers the question "what power of $b$ gives $x$?":

$$\log_b x = y \iff b^y = x \qquad (b > 0,\; b \ne 1,\; x > 0)$$

  • $\log_{10} x$ is the common log, written $\log x$.
  • $\log_e x$ is the natural log, written $\ln x$.
  • Since $\log_b$ and $b^x$ are inverses: $\log_b(b^x) = x$ and $b^{\log_b x} = x$.

Examples: $\log_2 8 = 3$ because $2^3 = 8$. $\log_5 \frac{1}{25} = -2$. $\log 1000 = 3$. $\ln e^4 = 4$.

Check yourself

log₃ 81 =

  • 4

  • 9

  • 3

  • 27

Show the answer

4

3⁴ = 81.

2Graphs of logarithmic functions

$f(x) = \log_b x$ is the reflection of $y = b^x$ in the line $y = x$:

  • Domain $(0, \infty)$; range all real numbers.
  • Vertical asymptote $x = 0$: $\lim_{x \to 0^+}\log_b x = -\infty$ (for $b > 1$).
  • Passes through $(1, 0)$ and $(b, 1)$.
  • For $b > 1$: increasing and concave down; it grows very slowly. Equal ratios of input give equal differences of output.

Transformations work as usual: $g(x) = \log_2(x - 3) + 1$ has asymptote $x = 3$ and domain $x > 3$.

Logarithms grow slowly: each doubling of x adds 1 to log₂ x

Check yourself

The domain of f(x) = ln(x + 5) is:

  • x > −5

  • x > 5

  • x ≥ 0

  • All real numbers

Show the answer

x > −5

The input must be positive.

3Laws of logarithms

From the exponent rules:

  • Product: $\log_b(MN) = \log_b M + \log_b N$.
  • Quotient: $\log_b\frac{M}{N} = \log_b M - \log_b N$.
  • Power: $\log_b(M^k) = k\log_b M$.
  • Change of base: $\log_b x = \frac{\ln x}{\ln b} = \frac{\log x}{\log b}$.
Worked example

expand $\log_3\frac{9x^2}{y}$.

  1. $= \log_3 9 + \log_3 x^2 - \log_3 y = 2 + 2\log_3 x - \log_3 y$.
Worked example

condense $2\ln x + \ln 5 - \ln(x + 1)$.

  1. $= \ln x^2 + \ln 5 - \ln(x + 1) = \ln\frac{5x^2}{x + 1}$.
Worked example

evaluate $\log_4 20$ with a calculator: $\frac{\ln 20}{\ln 4} \approx 2.161$.

Warning: $\log(M + N) \ne \log M + \log N$.

Check yourself

log₂ 12 − log₂ 3 =

  • 2

  • log₂ 9

  • 1

  • 4

Show the answer

2

log₂(12/3) = log₂ 4.

4Logarithms in models

Logarithmic scales measure quantities spanning huge ranges, where each unit represents a multiplication:

  • pH $= -\log[\text{H}^+]$: a drop of 1 pH unit means 10 times more acidic.
  • Decibels $L = 10\log\frac{I}{I_0}$: +10 dB means 10 times the intensity.
  • Richter magnitude: +1 means 10 times the amplitude.
Worked example

one sound is 1000 times as intense as another. The difference in decibels is $10\log 1000 = 30$ dB.

Logarithmic functions also model quantities that keep increasing but ever more slowly (e.g. learning curves).

Check yourself

Solution A has pH 3 and solution B has pH 6. A has [H⁺] that is:

  • 3 times B's

  • Half of B's

  • 2 times B's

  • 1000 times B's

Show the answer

1000 times B's

Each pH unit is a factor of 10.

5Going deeper: evaluating, graphing and reading logarithmic scales

Definition: $\log_b x = y$ means $b^y = x$ (b > 0, b ≠ 1, x > 0). A logarithm is an exponent. The logarithm base b is the inverse of the exponential base b.

Evaluating without a calculator: ask "b to what power gives x?"

  • $\log_2 32 = 5$.
  • $\log_3 \frac{1}{9} = -2$.
  • $\log_{10} 0.001 = -3$.
  • $\log_5 \sqrt{5} = \frac{1}{2}$.
  • $\log_b 1 = 0$ and $\log_b b = 1$ for every base.
  • $\ln e^4 = 4$.

Change of base: $\log_b x = \frac{\ln x}{\ln b} = \frac{\log x}{\log b}$.

Worked example

$\log_5 20 = \frac{\ln 20}{\ln 5} = \frac{2.996}{1.609} = 1.861$. Check: $5^{1.861} \approx 20$.

Properties (from the exponent rules)

  • $\log_b(xy) = \log_b x + \log_b y$.
  • $\log_b\left(\frac{x}{y}\right) = \log_b x - \log_b y$.
  • $\log_b(x^n) = n\log_b x$.
  • $b^{\log_b x} = x$ and $\log_b(b^x) = x$.

Worked example (expanding): $\log\left(\frac{x^3\sqrt{y}}{z}\right) = 3\log x + \frac{1}{2}\log y - \log z$.

Worked example (condensing): $2\ln x + \ln 5 - \ln(x + 1) = \ln\left(\frac{5x^2}{x + 1}\right)$.

The graph of $y = \log_b x$ (b > 1)

  • Domain x > 0; range all real numbers.
  • Vertical asymptote x = 0.
  • Passes through (1, 0) and (b, 1).
  • Increasing and concave down: it grows without bound, but ever more slowly.
  • Reflection of $y = b^x$ in the line y = x.

Worked example (transformed): $g(x) = 2\log_3(x + 4) - 1$.

  1. Shift left 4: vertical asymptote x = −4; domain x > −4.
  2. Key point: (1, 0) on $\log_3 x$ goes to (−3, −1).
  3. g(5) = 2 log₃ 9 − 1 = 2(2) − 1 = 3.

Multiplicative inputs, additive outputs: each time the input is multiplied by b, the output increases by 1. For $\log_2$: inputs 1, 2, 4, 8 give outputs 0, 1, 2, 3.

Logarithmic scales compress huge ranges.

  • pH = −log[H⁺]: a drop of 1 unit means 10 times more acidic.
  • Earthquake magnitude: each whole number is 10 times the ground motion.
  • Decibels: each 10 dB is 10 times the intensity.
Worked example

how many times more intense is a magnitude 7.2 earthquake's ground motion than a 5.2?

  1. Difference 2.
  2. $10^2 = 100$ times.

Common mistakes

  • $\log(x + y) = \log x + \log y$ (false).
  • $(\log x)^2 = 2\log x$ (false; the rule is for $\log(x^2)$).
  • Taking the logarithm of zero or a negative number.
  • Placing the asymptote on the x-axis.
  • Saying a logarithmic function levels off at a horizontal asymptote; it has none.
Check yourself

What is the value of log₄ 8?

  • ½

  • 4

  • 3 ÷ 2

  • 2

Show the answer

3 ÷ 2

4 = 2² and 8 = 2³, so 4 to the power 3 ÷ 2 equals 8.

6For top marks

  • Convert between exponential and logarithmic form confidently.
  • Apply laws only to products, quotients and powers inside the log.
  • State the domain: the argument of a log must be positive.
  • Use logarithmic scales to explain multiplicative change in context.
Example

"Since $\log_2 x$ increases by 1 every time $x$ doubles, equal ratios of inputs give equal differences in outputs."

Check yourself

Which is equal to log 50 + log 2?

  • log 25

  • log 52

  • 100

  • 2

Show the answer

2

log 100.

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