Sub topic 13
Exponential and Logarithmic Graphs
Prerequisites and the basic relationship
Assume you can use exponent laws, solve simple equations, and read coordinates on a graph.
An exponential function has the form
\[ y=a^x \]
where \(a>0\) and \(a\neq 1\). A logarithmic function has the form
\[ y=\log_a x. \]
These functions are inverses. Therefore,
\[ y=a^x \quad \Longleftrightarrow \quad x=\log_a y. \]
The graph of \(y=\log_a x\) is the reflection of \(y=a^x\) in the line \(y=x\).
| Function | Domain | Range | Key feature |
|---|---|---|---|
| \(y=a^x\) | All real numbers | \(y>0\) | Horizontal asymptote \(y=0\) |
| \(y=\log_a x\) | \(x>0\) | All real numbers | Vertical asymptote \(x=0\) |
An asymptote is a line that the graph approaches but does not meet.
Sketching standard graphs
For \(a>1\), \(y=a^x\) is increasing. It passes through \((0,1)\), because \(a^0=1\), and approaches \(0\) as \(x\) becomes very negative.
For \(0<a<1\), the graph is decreasing. For example, \(y=(1/2)^x\) decreases as \(x\) increases.
The logarithmic graph \(y=\loga x\) passes through \((1,0)\), because \(\loga 1=0\). It also passes through \((a,1)\). Its input must be positive, so the graph has a vertical asymptote at \(x=0\).
Transformations and exam use
A transformed exponential function can be written as
\[ y=Aa^{x-h}+k. \]
Its horizontal asymptote is \(y=k\). The value \(h\) shifts the graph horizontally. The value \(A\) stretches it vertically or reflects it when \(A<0\).
Similarly,
\[ y=A\log_a(x-h)+k \]
has vertical asymptote \(x=h\), and its domain is \(x>h\). Always check the logarithm's input before solving or comparing graphs.
For example, the domain of
\[ y=\log_2(x-3)+4 \]
is \(x>3\), not all real numbers. Its vertical asymptote is \(x=3\).
A common error is to treat \(\loga(u+v)\) as \(\loga u+\log_a v\). This is false. The valid product rule is
\[ \loga(uv)=\loga u+\log_a v. \]
import math
base = 2
x_values = [-2, -1, 0, 1, 2, 3]
for x in x_values:
exponential = base ** x
logarithm = math.log(exponential, base)
print(x, exponential, logarithm)The logarithm is useful for solving exponential equations. From \(a^x=b\), write \(x=\log_a b\), provided \(b>0\).
Exercise
For f(x) = 3^(x - 2) - 5, state its horizontal asymptote, domain, and range.
Show answer
The horizontal asymptote is y = -5. The domain is all real numbers. Since 3^(x - 2) is positive, the range is y > -5.