Sub topic 9
Finding zeros and intercepts
This chapter assumes you can factor polynomials, solve linear and quadratic equations, and simplify rational expressions. It builds on the earlier chapters on excluded values and simplifying. Here you learn to find where the graph of a rational function meets the axes. This is the first step in sketching the graph.
Zeros of a rational function
A zero of a function f is an input x for which f(x) = 0. A fraction equals zero only when its numerator is zero and its denominator is not. For a rational function f(x) = p(x)/q(x), this gives the rule:
- x = a is a zero of f when p(a) = 0 and q(a) ≠ 0.
The second condition is the one people forget. If q(a) = 0, then f(a) is undefined, so a is not in the domain and cannot be a zero.
An x-intercept is a point (a, 0) where the graph meets the x-axis. For a function, the real zeros and the x-intercepts correspond one to one. Each zero a gives the point (a, 0).
The procedure
- Factor the numerator and the denominator.
- List the excluded values: the real roots of the denominator.
- Solve numerator = 0.
- Discard any root of the numerator that is also an excluded value. The rest are the zeros.
The last two branches are covered in the chapters on holes and vertical asymptotes. For now, you only need to know that such a root is not an intercept.
Worked example 1: a clean case
Let f(x) = (x² − 4x + 3)/(x² − 4).
Factor both parts:
f(x) = (x − 1)(x − 3) / ((x − 2)(x + 2))
The excluded values are x = 2 and x = −2. The numerator is zero at x = 1 and x = 3. Neither is excluded, so both are zeros. The x-intercepts are (1, 0) and (3, 0).
Worked example 2: a root that is not a zero
Let f(x) = (x² − 9)/(x² − 5x + 6).
Factor both parts:
f(x) = (x − 3)(x + 3) / ((x − 2)(x − 3))
The numerator is zero at x = 3 and x = −3. The denominator is zero at x = 2 and x = 3. The root x = 3 appears in both, so f(3) is undefined. The only zero is x = −3, and the only x-intercept is (−3, 0).
The factor x − 3 cancels, so the graph has a hole at x = 3. Cancelling does not make x = 3 a valid input. Always test the numerator's roots against the original denominator.
The y-intercept
The y-intercept is the point where the graph meets the y-axis, which happens at x = 0. It exists only if 0 is in the domain.
- If q(0) ≠ 0, the y-intercept is (0, f(0)) = (0, p(0)/q(0)).
- If q(0) = 0, there is no y-intercept.
A function can have at most one y-intercept, because a function gives one output per input.
For example 1, f(0) = 3/(−4) = −3/4, so the y-intercept is (0, −3/4).
For example 2, f(0) = (−9)/6 = −3/2. You get the same value from the cancelled form (x + 3)/(x − 2), since (0 + 3)/(0 − 2) = −3/2. Cancelling changes nothing at inputs that were already in the domain.
For g(x) = (x + 1)/x, the denominator is zero at x = 0. There is no y-intercept. The only x-intercept is (−1, 0).
Checking with SymPy
You can automate the procedure. The function below separates the numerator from the denominator and applies the rule directly, without cancelling first. Cancelling first would hide the hole.
from sympy import symbols, fraction, solve
x = symbols('x')
def intercepts(f):
num, den = fraction(f)
roots = [r for r in solve(num, x) if r.is_real]
zeros = sorted(r for r in roots if den.subs(x, r) != 0)
y_int = f.subs(x, 0) if den.subs(x, 0) != 0 else None
return zeros, y_int
f1 = (x**2 - 4*x + 3) / (x**2 - 4)
f2 = (x**2 - 9) / (x**2 - 5*x + 6)
f3 = (x + 1) / x
print(intercepts(f1)) # ([1, 3], -3/4)
print(intercepts(f2)) # ([-3], -3/2)
print(intercepts(f3)) # ([-1], None)The filter r.is_real drops complex roots. These never produce x-intercepts, because the graph lives in the real plane.
Multiplicity and how the graph meets the axis
A zero can come from a repeated factor. If (x − a) appears k times in the numerator, then a is a zero of multiplicity k. The multiplicity tells you how the graph behaves at the intercept:
| Multiplicity of the zero | Behavior at (a, 0) |
|---|---|
| Odd (1, 3, ...) | The graph crosses the x-axis. For multiplicity 1 it passes through at a nonzero slope. For 3, 5, ... it flattens as it crosses. |
| Even (2, 4, ...) | The graph touches the x-axis and turns back without crossing. |
Take h(x) = x²(x − 2)/((x + 1)(x − 3)). The zero at x = 0 has multiplicity 2, so the graph touches the axis there. The zero at x = 2 has multiplicity 1, so the graph crosses. Both are valid because the denominator is nonzero at 0 and 2. The y-intercept is (0, 0), which is also the x-intercept at x = 0.
Common errors
- Setting the whole function equal to zero without checking the denominator. Solving p(x) = 0 gives candidates only. Always test each one in q.
- Cancelling first and then reading off the zeros. In example 2, the cancelled form (x + 3)/(x − 2) suggests zeros at −3 only, which happens to be right. But it also hides the excluded value x = 3. For graphing, you need both the zeros and the holes.
- Looking for a y-intercept when 0 is excluded. If x = 0 makes the denominator zero, the graph has a vertical asymptote or a hole at x = 0 and never meets the y-axis.
- Confusing the zero with its coordinates. The zero is the number a. The x-intercept is the point (a, 0).
- Counting complex roots. The numerator x² + 1 has no real roots, so (x² + 1)/(x − 1) has no x-intercepts.
Why this matters for graphing
The intercepts anchor the curve. The zeros and their multiplicities tell you where the graph meets the x-axis and whether it crosses there. The y-intercept gives one more point. The excluded values tell you where the graph breaks. Together these let you divide the x-axis into intervals, and later chapters add the asymptotes and a sign chart to finish the sketch.
Exercise
Find all x-intercepts and the y-intercept of f(x) = (x² − x − 6)/(x² − 2x − 3). State which root of the numerator is not a zero and why.
Show answer
Factor: f(x) = (x − 3)(x + 2) / ((x − 3)(x + 1)). The numerator is zero at x = 3 and x = −2. The denominator is zero at x = 3 and x = −1. The root x = 3 makes the denominator zero, so f(3) is undefined and 3 is not a zero (the cancelled factor leaves a hole at x = 3). The only zero is x = −2, so the only x-intercept is (−2, 0). Since the denominator at 0 is −3 (nonzero), f(0) = (−6)/(−3) = 2, so the y-intercept is (0, 2).
Exercise
Let h(x) = x²(x − 2)/((x + 1)(x − 3)). Does the graph cross or touch the x-axis at x = 0 and at x = 2? Is there a y-intercept?
Show answer
The factor x² has even multiplicity 2, so the graph touches the x-axis at x = 0 without crossing. The factor x − 2 has multiplicity 1, so the graph crosses at x = 2. The denominator at x = 0 is (1)(−3) = −3, which is nonzero, so the y-intercept exists. It is h(0) = 0, giving the point (0, 0).