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) |
| Domain | all real $x$ | $x \gt 0$ |
| Range | $y \gt 0$ | all real $y$ |
| Shape | increasing, concave up | increasing, 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$.
Orange: the transformed curve. Dashed: its horizontal asymptote.
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?
Sketch $y = 3 - 2^x$, showing the intercepts and the asymptote. State the range.
For $y = \log_3 (x + 3)$, state the domain and asymptote, and find both intercepts.
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)$.
Every graph $y = a^x$ (with $a \gt 0$) passes through:
$a^0 = 1$, so the point $(0, 1)$ is on every one of these graphs. $(1, 0)$ is the matching point on the log graphs.
The asymptote of $y = 2^x - 4$ is:
$y = 2^x$ has asymptote $y = 0$. Shifting down $4$ moves it to $y = -4$.
Find the $x$-intercept of $y = 2^x - 4$.
Put $y = 0$: $2^x = 4$, so $x = 2$.
Find the $y$-intercept of $y = 3^x + 2$.
Put $x = 0$: $3^0 + 2 = 1 + 2 = 3$.
The domain of $y = \log_3 (x + 2)$ is:
The log needs a positive argument: $x + 2 \gt 0$, so $x \gt -2$.
Find the $x$-intercept of $y = \log_2 (x - 3)$.
A log is zero when its argument is $1$: $x - 3 = 1$, so $x = 4$.
The graph of $y = \left(\tfrac13\right)^x$ is the graph of $y = 3^x$:
$\left(\tfrac13\right)^x = 3^{-x}$, and replacing $x$ by $-x$ reflects in the $y$-axis.
$y = 2^{x+3}$ can be written as $y = k \times 2^x$. Find $k$.
$2^{x+3} = 2^x \times 2^3 = 8 \times 2^x$.
Exam style: find the $x$-intercept of $y = \log_2 (x + 4) - 1$.
$\log_2 (x + 4) = 1$, so $x + 4 = 2^1 = 2$ and $x = -2$.
Exam style: the range of $y = 5 - 2^x$ is:
$2^x$ takes every positive value, so $-2^x$ takes every negative value. Adding $5$ gives every value below $5$: $y \lt 5$. The asymptote is $y = 5$.
Coaching Centre