Graphs of Exponential and Logarithmic Functions
Every question with a fully worked solution.
- Graphs of Exponential and Logarithmic Functions - Video - Graphs of Exponential and Logarithmic Functions Watch
- Graphs of Exponential and Logarithmic Functions - Video - Graphing Exponential Functions With e, Transformations, Domain and Range, Asymptotes, Precalculus Watch
- Graphs of Exponential and Logarithmic Functions - Video - Graphing Logarithmic Functions Watch
Theory
The graphs of \(y=a^{x}\) and \(y=\log_a x\) are reflections of each other in the line \(y=x\). This Year 11 Mathematics Advanced page covers their intercepts, asymptotes, domain and range, how translations and reflections such as \(y=2^{x}+c\), \(y=\log_a(x-h)\), \(y=-2^{x}\) and \(y=\log_2(-x)\) change them, how to sketch and identify these curves, and how to find an unknown base or the point where two curves meet.
For a base \(a>1\), the exponential curve \(y=a^{x}\) passes through \((0,1)\), increases, and has the horizontal asymptote \(y=0\): as \(x\to-\infty\), \(a^{x}\to0\), so the curve approaches the \(x\)-axis but never reaches it. Its domain is all real \(x\) and its range is \(y>0\).
The logarithmic curve \(y=\log_a x\) passes through \((1,0)\), increases, and has the vertical asymptote \(x=0\): as \(x\to0^{+}\), \(\log_a x\to-\infty\). A logarithm is defined only for a positive argument, so the domain is \(x>0\); the range is all real \(y\).
\(y=a^{x}\) and \(y=\log_a x\) are inverse functions, so their graphs are reflections of each other in the line \(y=x\). Reflecting in \(y=x\) swaps \(x\) and \(y\): \(y=5^{x}\) becomes \(x=5^{y}\), which is \(y=\log_5 x\), and the point \((2,25)\) becomes \((25,2)\).
Other graphs come from these by transformations. Adding a constant, \(y=a^{x}+c\), moves the curve up \(c\) units, so the asymptote becomes \(y=c\). Replacing \(x\) by \(x-h\), as in \(y=\log_a(x-h)\), moves the curve \(h\) units right, so the asymptote becomes \(x=h\). A negative sign in front, \(y=-f(x)\), reflects in the \(x\)-axis; replacing \(x\) by \(-x\), \(y=f(-x)\), reflects in the \(y\)-axis.
To sketch a curve, show its asymptote as a dashed line with its equation, and label its intercepts: put \(x=0\) for the \(y\)-intercept and \(y=0\) for the \(x\)-intercept.
Key features (base \(a>1\)):
| Feature | \(y=a^{x}\) | \(y=\log_a x\) |
|---|---|---|
| Domain | all real \(x\) | \(x>0\) |
| Range | \(y>0\) | all real \(y\) |
| Intercept | \((0,1)\) | \((1,0)\) |
| Asymptote | \(y=0\) | \(x=0\) |
| Also passes through | \((1,a)\) | \((a,1)\) |
Inverse functions (reflection in \(y=x\)):
Transformations:
| Equation | Change | Effect on asymptote and key point |
|---|---|---|
| \(y=a^{x}+c\) | up \(c\) | asymptote \(y=c\); \(y\)-intercept \((0,1+c)\) |
| \(y=\log_a(x-h)\) | right \(h\) | asymptote \(x=h\); \(x\)-intercept \((h+1,0)\) |
| \(y=-f(x)\) | reflect in \(x\)-axis | \(y=-2^{x}\) passes through \((0,-1)\) |
| \(y=f(-x)\) | reflect in \(y\)-axis | \(y=\log_2(-x)\) has domain \(x<0\), through \((-1,0)\) |
| \(\log_{\frac{1}{3}}x\) | \(=\) | \(\dfrac{\log_3 x}{\log_3\frac{1}{3}}\) |
| \(\) | \(=\) | \(\dfrac{\log_3 x}{-1}\) |
| \(\) | \(=\) | \(-\log_3 x\) |
How to sketch an exponential or logarithmic curve
- Start from the basic curve \(y=a^{x}\) or \(y=\log_a x\).
- Apply any reflection (a negative sign in front, or \(-x\)), then any translation (adding a constant, or \(x-h\)).
- Find the asymptote: for an exponential, the value \(y\) approaches as \(a^{x}\to0\); for a logarithm, where the argument equals \(0\).
- Find the intercepts: substitute \(x=0\) for the \(y\)-intercept, and solve \(y=0\) for the \(x\)-intercept (it may not exist).
- Draw the asymptote dashed and labelled, mark the intercepts, and draw the curve approaching the asymptote without touching it.
How to choose the correct graph
- Check the key point: \((0,1)\) or \((0,-1)\) for exponentials, \((1,0)\) or \((-1,0)\) for logarithms, or the moved intercept.
- Check the asymptote and, for a logarithm, which side of it the curve lies on (the domain).
- Check the direction: increasing or decreasing as \(x\) increases.
How to find an unknown or a meeting point
- Point on a curve: substitute the point, write in index form and solve (a base must be positive).
- Two log curves: equate them, write any number as a logarithm (\(1=\log_3 3\)), combine with the log laws, then equate the arguments. Substitute back to find \(y\).
Translate \(y=3^{x}\) down \(2\) units.
Asymptote: as \(x\to-\infty\), \(3^{x}\to0\), so \(y\to-2\). The asymptote is \(y=-2\).
\(y\)-intercept: \(y=3^{0}-2=1-2=-1\), so \((0,-1)\).
\(x\)-intercept: set \(y=0\).
| \(3^{x}-2\) | \(=\) | \(0\) |
| \(3^{x}\) | \(=\) | \(2\) |
| \(x\) | \(=\) | \(\log_3 2\) |
| \(\) | \(=\) | \(\dfrac{\ln2}{\ln3}\approx0.63\) |
The curve increases, with \(y\to-2\) as \(x\to-\infty\).
Domain: the argument must be positive.
| \(x+4\) | \(>\) | \(0\) |
| \(x\) | \(>\) | \(-4\) |
As \(x\to-4^{+}\), \(y\to-\infty\), so the vertical asymptote is \(x=-4\). The curve takes every real value: the range is all real \(y\).
\(x\)-intercept: set \(y=0\).
| \(\log_2(x+4)\) | \(=\) | \(0\) |
| \(x+4\) | \(=\) | \(2^{0}=1\) |
| \(x\) | \(=\) | \(-3\) |
\(y\)-intercept: \(y=\log_2 4=2\), since \(2^{2}=4\).
\(\therefore\) domain \(x>-4\); range all real \(y\); asymptote \(x=-4\); intercepts \((-3,0)\) and \((0,2)\).
(a) Find the value of \(a\).
(b) The graph is reflected in the line \(y=x\). Find the equation of the reflected graph and the point on it that matches \((16,2)\).
(a) Substitute the point and write in index form:
| \(\log_a 16\) | \(=\) | \(2\) |
| \(a^{2}\) | \(=\) | \(16\) |
| \(a\) | \(=\) | \(4\quad(a>0)\) |
(b) Reflecting in \(y=x\) swaps \(x\) and \(y\): \(y=\log_4 x\) becomes \(x=\log_4 y\).
Write in index form: \(y=4^{x}\).
The point \((16,2)\) becomes \((2,16)\). Check: \(4^{2}=16\).
\(\therefore\) the reflected graph is \(y=4^{x}\), through \((2,16)\).
Equate the two expressions and write \(2=\log_2 4\):
| \(\log_2(x+12)\) | \(=\) | \(\log_2 4+\log_2 x\) |
| \(\log_2(x+12)\) | \(=\) | \(\log_2 4x\) |
| \(x+12\) | \(=\) | \(4x\) |
| \(3x\) | \(=\) | \(12\) |
| \(x\) | \(=\) | \(4\) |
Check: \(x=4\) makes both arguments positive.
\(y=\log_2(4+12)=\log_2 16=4\)
\(\therefore\) the graphs intersect at \((4,4)\).
Common pitfalls
Frequently asked questions
What is the asymptote of y = a^x?
The horizontal line \(y=0\) (the \(x\)-axis). As \(x\to-\infty\), \(a^{x}\to0\) for \(a>1\). If a constant is added, as in \(y=a^{x}+c\), the asymptote becomes \(y=c\).
What is the asymptote of a log graph?
The vertical line where the argument equals \(0\). For \(y=\log_a x\) it is \(x=0\) (the \(y\)-axis); for \(y=\log_a(x-h)\) it is \(x=h\).
How are exponential and logarithmic graphs related?
\(y=a^{x}\) and \(y=\log_a x\) are inverse functions, so each graph is the reflection of the other in the line \(y=x\). A point \((p,q)\) on one matches the point \((q,p)\) on the other.
How do you find the domain of a logarithmic function?
Set the argument greater than \(0\) and solve. For \(y=\log_7(2x-10)\), \(2x-10>0\) gives \(x>5\). The range of a logarithmic function is all real \(y\).
What is the difference between y = -2^x and y = 2^-x?
\(y=-2^{x}\) is \(y=2^{x}\) reflected in the \(x\)-axis: it passes through \((0,-1)\) and lies below the axis. \(y=2^{-x}\) is \(y=2^{x}\) reflected in the \(y\)-axis: it passes through \((0,1)\) and decreases.
How do you find the x-intercept of a log graph?
Set \(y=0\) and write in index form. For \(y=\log_3(x-5)\), \(x-5=3^{0}=1\), so the \(x\)-intercept is \((6,0)\).