8F

Exponential and logarithmic graphs

The graphs of y = a^x and y = log_a x, their asymptotes and key points, and how reflections, translations and dilations change them.

You have been solving $2^x = 10$ with algebra. The graphs show what is going on: why there is always exactly one answer for a positive number, why there is none for a negative one, and why logs of small numbers are negative.

The graph of $y = a^x$

Make a quick table for $y = 2^x$: at $x = -2, -1, 0, 1, 2, 3$ the values are $\tfrac14, \tfrac12, 1, 2, 4, 8$. Each step right doubles $y$, and each step left halves it. Halving forever never reaches zero, so the curve gets closer and closer to the $x$-axis on the left without touching it.

  • Every graph $y = a^x$ passes through $(0, 1)$, because $a^0 = 1$, and through $(1, a)$.
  • The $x$-axis, $y = 0$, is a horizontal asymptote.
  • Domain: all real $x$. Range: $y \gt 0$.
  • For $a \gt 1$ it is increasing and gets steeper all the time (concave up).

When the base is between $0$ and $1$, for example $y = \left(\tfrac12\right)^x$, notice that $\left(\tfrac12\right)^x = 2^{-x}$. So it is the reflection of $y = 2^x$ in the $y$-axis: a decreasing curve through $(0, 1)$.

The graph of $y = \log_a x$

$y = \log_2 x$ means $x = 2^y$. That is the equation of $y = 2^x$ with $x$ and $y$ swapped, and swapping $x$ and $y$ reflects a graph in the line $y = x$. So the log graph is the exponential graph reflected in $y = x$, and every feature swaps over.

$y = a^x$ ($a \gt 1$)$y = \log_a x$ ($a \gt 1$)
Key points$(0, 1)$ and $(1, a)$$(1, 0)$ and $(a, 1)$
Asymptote$y = 0$ (horizontal)$x = 0$ (vertical)
Domainall real $x$$x \gt 0$
Range$y \gt 0$all real $y$
Shapeincreasing, concave upincreasing, concave down

The log graph is below the $x$-axis for $0 \lt x \lt 1$. That's why logs of numbers less than $1$ are negative.

Transformations

The transformations from Chapter 5 work exactly as before. The new part is keeping track of the asymptote, because it moves too.

  • Reflections: $y = a^{-x}$ reflects in the $y$-axis; $y = -a^x$ reflects in the $x$-axis.
  • Translations: $y = a^{x} + k$ moves the asymptote to $y = k$. $y = \log_a (x - h)$ moves the asymptote to $x = h$, and the domain becomes $x \gt h$.
  • Dilations: $y = c \times a^x$ stretches vertically, so the $y$-intercept becomes $c$.
Transforming y = 2ˣ

Orange: the transformed curve. Dashed: its horizontal asymptote.

Try this

First set $h = -3$ with $c = 1$ and note the $y$-intercept. Then reset $h = 0$ and set $c = 8$. Why do you get the same curve? Next, make $c$ negative: which axis does the graph reflect in, and does the asymptote move?

Example 1●●

Sketch $y = 3 - 2^x$, showing the intercepts and the asymptote. State the range.

Asymptote: $y = 3$, approached on the left.
Start from y = 2ˣ, reflect in the x-axis to get y = −2ˣ, then shift up 3. The asymptote moves up with it.
$y$-intercept: $3 - 1 = 2$.
Put x = 0.
$x$-intercept: $x = \log_2 3 \approx 1.58$.
Put y = 0: 2ˣ = 3.
Range: $y \lt 3$.
The curve comes down from just under 3 and falls without limit.
Example 2●●

For $y = \log_3 (x + 3)$, state the domain and asymptote, and find both intercepts.

$x + 3 \gt 0$: domain $x \gt -3$, asymptote $x = -3$.
You can only take the log of a positive number.
$x + 3 = 1$ gives the $x$-intercept $x = -2$.
A log is zero when its argument is 1.
$x = 0$ gives $y = \log_3 3 = 1$, so the $y$-intercept is $1$.

Your turn

Find the intercepts and asymptote of $y = \log_3 (x + 9) - 2$.

Show the working

Asymptote $x = -9$ (domain $x \gt -9$). For the $x$-intercept, $\log_3(x + 9) = 2$, so $x + 9 = 9$ and $x = 0$. For the $y$-intercept, $\log_3 9 - 2 = 0$. Both intercepts are the origin, so the curve passes through $(0, 0)$.

Flashcards
$y = a^x$: point, asymptote, range
$(0, 1)$, $y = 0$, $y \gt 0$
$y = log_a x$: point, asymptote, domain
$(1, 0)$, $x = 0$, $x \gt 0$
How are $y = a^x$ and $y = log_a x$ related?
Reflections of each other in $y = x$.
Practice
  1. Every graph $y = a^x$ (with $a \gt 0$) passes through:

  2. The asymptote of $y = 2^x - 4$ is:

  3. Find the $x$-intercept of $y = 2^x - 4$.

  4. Find the $y$-intercept of $y = 3^x + 2$.

  5. The domain of $y = \log_3 (x + 2)$ is:

  6. Find the $x$-intercept of $y = \log_2 (x - 3)$.

  7. The graph of $y = \left(\tfrac13\right)^x$ is the graph of $y = 3^x$:

  8. $y = 2^{x+3}$ can be written as $y = k \times 2^x$. Find $k$.

  9. Exam style: find the $x$-intercept of $y = \log_2 (x + 4) - 1$.

  10. Exam style: the range of $y = 5 - 2^x$ is:

Formula sheet