Sub topic 3
Reading and plotting graphs
This chapter assumes you can solve linear and quadratic equations, plot points on the coordinate plane, and work with inequalities. It also assumes you know the function notation f(x) from the first chapter. Here you learn to read facts off a graph and to sketch one quickly. Later chapters use both skills to find maxima and minima and to count solutions.
What a graph records
The graph of a function f is the set of all points (x, f(x)) for every x in the domain. Each point pairs an input on the horizontal axis with its output on the vertical axis. The vertical coordinate is not a separate quantity. It is f(x), so "the height of the curve at x = 3" and "f(3)" mean the same thing.
Two consequences matter in exams:
- Vertical line test. Every vertical line crosses the graph of a function at most once, because each input has exactly one output. A circle fails this test, so it is not the graph of a function.
- Horizontal lines ask a different question. A horizontal line y = k crosses the graph once for each x with f(x) = k. This is the basis of solution counting, which a later chapter covers.
Reading information from a graph
Most graph questions in CAT come down to a few readings.
| You want | Where to look |
|---|---|
| f(a) | Go to x = a, then read the height of the curve |
| y-intercept | The height at x = 0, which is f(0) |
| Zeros (x-intercepts) | The x-values where the curve meets the x-axis, so f(x) = 0 |
| Where f(x) > 0 | The x-values where the curve is above the x-axis |
| Increasing on an interval | The curve rises as you move right |
| Decreasing on an interval | The curve falls as you move right |
| Domain | The x-values the curve covers, projected onto the x-axis |
| Range | The y-values the curve reaches, projected onto the y-axis |
| Solutions of f(x) = g(x) | The x-coordinates of the points where two curves meet |
Pay attention to the endpoints of a curve. A filled dot means the point belongs to the graph. An open dot means the curve approaches that point but does not include it. An arrow means the curve continues in that direction. Misreading an open dot as a filled one is a common cause of an off-by-one error in the range.
Plotting a graph by hand
You rarely need an accurate drawing. You need a sketch that is correct about the features the question asks for. A reliable routine has five steps.
- Find the domain, so you know where the curve exists. Exclude values that divide by zero or take the square root of a negative number.
- Find the intercepts. Set x = 0 for the y-intercept and f(x) = 0 for the zeros.
- Plot a few extra points, including values on both sides of any turning point.
- Check the behavior at the ends. Ask what happens as x becomes very large and very negative.
- Join the points with the right shape, and mark any breaks or open dots.
Worked example
Sketch f(x) = x² − 2x − 3 and read its properties.
The domain is all real numbers, because a polynomial is defined everywhere.
- y-intercept: f(0) = −3.
- Zeros: x² − 2x − 3 = (x − 3)(x + 1) = 0, so x = −1 and x = 3.
- Turning point: the vertex is at x = −b/(2a) = 1, and f(1) = 1 − 2 − 3 = −4.
- End behavior: the coefficient of x² is positive, so the curve rises on both sides.
From these points you can read the following:
- f(x) < 0 exactly when −1 < x < 3.
- f is decreasing for x < 1 and increasing for x > 1.
- The range is all y ≥ −4, written [−4, ∞).
- The equation f(x) = 0 has two solutions, f(x) = −4 has one, and f(x) = −5 has none, because the line y = −5 lies below the lowest point.
The last bullet shows why a sketch is faster than algebra for counting solutions.
Checking a sketch with a table
Before you trust a sketch, build a table of values. You can also automate this, which is a good way to test your understanding of where zeros lie. The code below samples f(x) = x² − 2 at integers and reports where the sign changes. A sign change between two neighbouring inputs means the curve crosses the x-axis between them, assuming the curve has no break there.
def f(x):
return x * x - 2
xs = list(range(-3, 4))
for x in xs:
print(f"x = {x:2d} f(x) = {f(x):3d}")
print("y-intercept:", f(0))
for left, right in zip(xs, xs[1:]):
if f(left) * f(right) < 0:
print(f"zero between {left} and {right}")It reports zeros between −2 and −1 and between 1 and 2. These match the exact zeros ±√2, which are about ±1.414.
Common errors
- Reading the axes backwards. To find f(a) you move along x first, then read y. To solve f(x) = b you start at height b and read the x-values.
- Confusing zeros with the y-intercept. The zeros are inputs where the output is 0. The y-intercept is the output when the input is 0.
- Using too few points. Three points on one side of a vertex can hide a turn. Always plot points on both sides of a turning point.
- Ignoring the domain. A sketch of √(x − 1) that extends left of x = 1 is wrong, however neat it looks.
- Treating "increasing" as "positive". A curve can be increasing while it is still below the axis. Increasing describes the direction of the curve, and positive describes its height.
- Counting a tangent as two crossings. If a line only touches a curve, as at a vertex, the equation has one solution, not two.
Exercises
Exercise
A function f has y-intercept 4, zeros at x = 2 and x = 6, and a lowest point at (4, −2). Its curve rises without bound on both sides. For how many real values of x does f(x) = −1 hold, and what is the range of f?
Show answer
The line y = −1 lies above the lowest point (4, −2), and the curve rises without bound on both sides of x = 4. The line therefore crosses the curve twice, so f(x) = −1 has two solutions. The lowest height is −2 and the curve rises without bound, so the range is y ≥ −2, written [−2, ∞).
Exercise
For f(x) = x² − 6x + 5, find the zeros, the vertex and the interval on which f is decreasing. Then state how many solutions f(x) = −5 has.
Show answer
Factor: x² − 6x + 5 = (x − 1)(x − 5), so the zeros are x = 1 and x = 5. The vertex is at x = −(−6)/2 = 3, and f(3) = 9 − 18 + 5 = −4. The curve opens upward, so f is decreasing for x < 3. The lowest value is −4, so the line y = −5 lies below the curve and f(x) = −5 has no solutions.