Sub topic 13
Exponential and Logarithmic Graphs
This chapter assumes you can solve linear and quadratic equations, plot points on the coordinate plane, use the laws of exponents, and read log_b(x) as "the power to which b must be raised to get x". It also builds on the previous chapter, where you learned that a one-to-one function has an inverse whose graph is the mirror image in the line y = x.
Why these two graphs matter for CAT
CAT questions rarely ask you to plot these curves in full. They ask you to do one of four things:
- Decide how many solutions an equation like 2^x = x^2 has.
- Compare the sizes of numbers such as log2(3) and log3(5).
- Find the domain of an expression containing a logarithm.
- Pick the graph, or the sign of a quantity, from a description.
All four become short once you remember the shape and the fixed points of each curve.
The exponential function y = b^x
An exponential function has the form f(x) = b^x with b > 0 and b ≠ 1. The variable is in the exponent. The base b is a fixed positive number.
Key features for b > 1 (for example y = 2^x)
- Domain: all real numbers.
- Range: y > 0. The curve never touches or crosses the x-axis.
- Passes through (0, 1), because b^0 = 1, and through (1, b).
- Increasing: as x grows, y grows faster and faster.
- As x goes to negative infinity, y approaches 0. The x-axis (y = 0) is a horizontal asymptote, a line the curve approaches without reaching.
Key features for 0 < b < 1 (for example y = (1/2)^x)
- Same domain, range and point (0, 1).
- Decreasing: the graph is the mirror image of y = b^x with b > 1, reflected in the y-axis. This is because (1/2)^x = 2^(-x).
- As x goes to positive infinity, y approaches 0.
| Feature | b > 1 | 0 < b < 1 |
|---|---|---|
| Domain | all real x | all real x |
| Range | y > 0 | y > 0 |
| Fixed point | (0, 1) | (0, 1) |
| Behaviour | increasing | decreasing |
| Asymptote | y = 0 on the left | y = 0 on the right |
The logarithmic function y = log_b(x)
The logarithm is defined as the inverse of the exponential: y = log_b(x) means b^y = x. Because the exponential has range y > 0, the logarithm has domain x > 0.
Key features for b > 1 (for example y = log_2(x))
- Domain: x > 0. Range: all real numbers.
- Passes through (1, 0), because b^0 = 1, and through (b, 1).
- Increasing, but slowly. Each doubling of x adds only 1 to log_2(x).
- The y-axis (x = 0) is a vertical asymptote. As x approaches 0 from the right, y goes to negative infinity.
- For 0 < x < 1 the value is negative. For x > 1 it is positive.
For 0 < b < 1 the graph is decreasing and flips in the x-axis, since log(1/b)(x) = -logb(x). The points (1, 0) and the asymptote x = 0 stay the same.
Exponential and logarithm are mirror images
Since the two functions are inverses, each point (a, c) on y = b^x corresponds to the point (c, a) on y = log_b(x). Reflecting the exponential curve in the line y = x gives the logarithm curve.
Swapping the roles of x and y explains every contrast between the two graphs: domain and range swap, and the horizontal asymptote becomes a vertical one.
Transformations applied to these graphs
The rules from the transformations chapter apply directly. Take y = 2^x as the base graph.
| Function | Effect | Asymptote | Range |
|---|---|---|---|
| y = 2^x + k | shift up by k | y = k | y > k |
| y = 2^(x - h) | shift right by h | y = 0 | y > 0 |
| y = -2^x | reflect in x-axis | y = 0 | y < 0 |
| y = 2^(-x) | reflect in y-axis | y = 0 | y > 0 |
| y = log_2(x - h) | shift right by h | x = h | all reals |
| y = log_2(x) + k | shift up by k | x = 0 | all reals |
For the logarithm, a horizontal shift moves the asymptote and changes the domain. For y = log_2(x - 3) the domain is x > 3.
Worked examples
Example 1: Counting solutions of 2^x = x^2
Draw y = 2^x and y = x^2 on the same axes and count the intersections.
- For x < 0, y = 2^x is a small positive number below 1 that falls toward 0. y = x^2 is large for large negative x and equals 0 at x = 0. At x = -1, 2^x = 0.5 and x^2 = 1, so the parabola is above. At x = 0, 2^x = 1 and x^2 = 0, so the exponential is above. The curves must cross once between -1 and 0.
- At x = 2 both equal 4. At x = 4 both equal 16. These are two more intersections.
- Between x = 2 and x = 4, 2^x is below x^2 (at x = 3, 8 < 9). After x = 4 the exponential stays above.
So there are 3 real solutions. A quick check in Python confirms the sign change near x = -0.77.
def h(x):
return 2 ** x - x ** 2
for x in [-1, -0.8, -0.7, 0, 2, 3, 4, 5]:
print(x, round(h(x), 3))The sign of h changes from negative at -1 to positive at -0.7, is 0 at x = 2 and x = 4, and is negative at x = 3.
Example 2: Comparing log_2(3) and log_3(5)
Both are between 1 and 2. Compare each with 1.5, using the fact that log_b(x) > 1.5 means x > b^1.5.
- 2^1.5 = 2.828, and 3 > 2.828, so log_2(3) > 1.5.
- 3^1.5 = 5.196, and 5 < 5.196, so log_3(5) < 1.5.
Therefore log2(3) > log3(5). No calculator is needed.
Example 3: Domain of f(x) = log_2(x^2 - 5x + 6)
The argument must be positive: x^2 - 5x + 6 > 0, which factors as (x - 2)(x - 3) > 0. The solution is x < 2 or x > 3. The domain is (-∞, 2) ∪ (3, ∞).
Common errors
- Placing the asymptote wrongly. The exponential approaches y = 0 (or y = k after a vertical shift). The logarithm approaches x = 0 (or x = h after a horizontal shift).
- Forgetting that the base must be positive and not equal to 1. In a CAT problem on log_(x)(…) you must also impose x > 0 and x ≠ 1.
- Treating log as defined for zero or negative inputs. logb(0) and logb(-3) do not exist in the reals.
- Assuming the exponential eventually overtakes every polynomial early. 2^x is below x^2 between x = 2 and x = 4, even though it wins for large x.
- Mixing up the direction for bases between 0 and 1. Larger x gives smaller y for both y = b^x and y = log_b(x).
Using the graphs to decide a question
Summary of the essentials
- y = b^x: passes through (0, 1), range y > 0, asymptote y = 0.
- y = log_b(x): passes through (1, 0), domain x > 0, asymptote x = 0.
- They are mirror images in y = x.
- For b > 1 both increase; for 0 < b < 1 both decrease.
- Shifts move the asymptote, and for logarithms they also move the domain.
Exercise
How many real solutions does the equation 2^x = x + 3 have? Sketch the graphs to decide, then give the count.
Show answer
Two. The line y = x + 3 crosses the x-axis at x = -3 and the y-axis at (0, 3). The curve y = 2^x is always positive, passes through (0, 1) and approaches y = 0 on the left. At x = 0 the line (3) is above the curve (1). At x = -3 the line is at 0 while the curve is 0.125, so the curve is above, which gives one crossing between -3 and 0. For large x the exponential eventually exceeds the line: at x = 2, 4 < 5, and at x = 3, 8 > 6, which gives a second crossing between 2 and 3. A line can cut a convex exponential curve at most twice, so there are exactly 2 solutions.
Exercise
Find the domain of f(x) = log_3(6 - x) and state the equation of its vertical asymptote.
Show answer
The argument must be positive: 6 - x > 0, so x < 6. The domain is (-∞, 6). The vertical asymptote is where the argument equals 0, which is x = 6.
Exercise
Which is larger, log(1/2)(3) or log(1/2)(5)?
Show answer
The base 1/2 is between 0 and 1, so the logarithm is decreasing. Since 3 < 5, log(1/2)(3) > log(1/2)(5). Numerically, log(1/2)(3) ≈ -1.585 and log(1/2)(5) ≈ -2.322.