AP Precalculus · Topic 1.8 · Reading guide, about 5 min

Where rational functions equal zero

Find zeros of rational functions from the numerator, check the domain, and use sign charts to solve rational inequalities.

In one minute

A fraction equals zero only when its top is zero and its bottom is not. That one sentence is the whole idea behind finding zeros of a rational function, but the second half is easy to forget and it costs points.

Once you know the zeros and the places where the denominator is zero, you can chop the number line into intervals and decide where the function is positive or negative. That is how you solve rational inequalities.

Key terms

Zero of a function
An input cc with f(c)=0f(c)=0. On the graph it is an xx-intercept at (c,0)(c,0).
Domain
The set of inputs for which the function is defined. For a rational function it excludes every input that makes the denominator zero.
Numerator zero
An input that makes the top of the fraction equal to zero. It is a candidate for a zero of the whole function.
Denominator zero
An input that makes the bottom equal to zero. The function is undefined there, so it can never be a zero of the function.
Sign chart
A number line marked with the key xx-values and the sign (positive or negative) of the function on each interval between them.
Critical value
An input where the expression is zero or undefined. These values divide the number line into test intervals.
Rational inequality
An inequality such as p(x)q(x)≥0\frac{p(x)}{q(x)}\ge0 that asks where a rational expression is positive, negative or zero.
Multiplicity
How many times a factor repeats. An odd multiplicity changes sign at that value; an even multiplicity does not.

Zeros come from the numerator, with a domain check

To find the zeros of f(x)=p(x)q(x)f(x)=\frac{p(x)}{q(x)}, solve p(x)=0p(x)=0 and then throw out any answer that also makes q(x)=0q(x)=0. Those survivors are the zeros, and each is an xx-intercept.

The check matters. Consider g(x)=x2−4x−2g(x)=\frac{x^2-4}{x-2}. The numerator is zero at x=2x=2 and at x=−2x=-2. But at x=2x=2 the denominator is also zero, so g(2)g(2) is undefined, and 2 is not a zero. Only x=−2x=-2 is a zero. (Because x2−4x−2\frac{x^2-4}{x-2} simplifies to x+2x+2 everywhere except x=2x=2, the graph is a line with a hole at x=2x=2, which is the subject of 1.10.)

Also note that a rational function can have no zeros at all. For 1x+3\frac{1}{x+3}, the numerator is the constant 1, which is never zero, so the graph never touches the xx-axis.

Worked example: zeros and signs of one function

Let f(x)=(x−2)(x+1)x−3f(x)=\frac{(x-2)(x+1)}{x-3}. Find its zeros and decide where it is positive and negative.

Step 1. Set the numerator equal to zero: (x−2)(x+1)=0(x-2)(x+1)=0 gives x=2x=2 or x=−1x=-1.

Step 2. Check the denominator at each: x−3x-3 is −1-1 at x=2x=2 and −4-4 at x=−1x=-1. Neither is zero, so both are zeros of ff. The denominator is zero at x=3x=3, which is excluded from the domain.

Step 3. The critical values are −1-1, 22 and 33. They create four intervals: (−∞,−1)(-\infty,-1), (−1,2)(-1,2), (2,3)(2,3), (3,∞)(3,\infty).

Step 4. Test one number in each interval. At x=−2x=-2: (−4)(−1)−5=4−5\frac{(-4)(-1)}{-5}=\frac{4}{-5}, negative. At x=0x=0: (−2)(1)−3=23\frac{(-2)(1)}{-3}=\frac{2}{3}, positive. At x=2.5x=2.5: (0.5)(3.5)−0.5=−3.5\frac{(0.5)(3.5)}{-0.5}=-3.5, negative. At x=4x=4: (2)(5)1=10\frac{(2)(5)}{1}=10, positive.

Step 5. The signs are negative, positive, negative, positive, so ff is positive on (−1,2)(-1,2) and on (3,∞)(3,\infty) and negative on (−∞,−1)(-\infty,-1) and (2,3)(2,3). For the inequality f(x)≥0f(x)\ge0, include the zeros −1-1 and 22 but not 33, giving [−1,2]∪(3,∞)[-1,2]\cup(3,\infty).

Sign chart for the worked example
IntervalTest valueValue of ffSign
(−∞,−1)(-\infty,-1)−2-2−45-\frac{4}{5}Negative
(−1,2)(-1,2)0023\frac{2}{3}Positive
(2,3)(2,3)2.52.5−3.5-3.5Negative
(3,∞)(3,\infty)441010Positive

Why signs change where they do

A rational function can only change sign at a zero or at a place where it is undefined. Between consecutive critical values it cannot switch sign without passing through one of those, so one test point per interval is enough. This reasoning is the same one you used for polynomials in 1.5.

Multiplicity predicts whether the sign flips. A simple factor such as (x−2)(x-2) flips the sign, and so does a simple factor in the denominator. A squared factor such as (x+1)2(x+1)^2 does not flip the sign, because squaring keeps the sign the same on both sides. A function like (x+1)2x−3\frac{(x+1)^2}{x-3} touches the axis at −1-1 but does not cross it.

You can also use a quick shortcut: once one interval is tested, move across each critical value and flip the sign only if the total multiplicity at that value is odd. Always confirm with one other test point if the answer matters.

Solving a rational inequality

Do not multiply both sides by the denominator, since you do not know its sign. Instead, move everything to one side so the other side is zero, combine into a single fraction, factor, and make a sign chart. For x+1x−3<2\frac{x+1}{x-3}<2 you subtract 2 and combine: x+1−2(x−3)x−3=7−xx−3<0\frac{x+1-2(x-3)}{x-3}=\frac{7-x}{x-3}<0, then use the critical values 3 and 7.

Endpoint rules are simple. Zeros of the numerator are included for ≥\ge or ≤\le and excluded for << or >>. Zeros of the denominator are always excluded, since the function is undefined there.

How it connects

  • Back to 1.5: the zeros of a polynomial and their multiplicities show where the graph crosses or touches the axis. The numerator of a rational function plays the same role.
  • Forward to 1.9: the zeros of the denominator, which you excluded here, are the places where vertical asymptotes may appear.
  • Forward to 1.10: when a numerator zero is also a denominator zero, the result is a hole rather than a zero.
  • Forward to 1.11: writing the expression in factored form makes zeros and signs easy to read.

Common mistakes

  • Listing every numerator zero as a zero of the function. Check each one against the denominator, since a shared value makes the function undefined there.
  • Multiplying an inequality through by the denominator. The denominator can be negative, which would flip the inequality. Use a sign chart instead.
  • Including a denominator zero in an interval answer with brackets. Those values always get parentheses.
  • Forgetting that an even multiplicity does not change the sign. The graph touches the axis and turns back.

How it shows up on the exam

  • You are given a formula or a graph and asked for the zeros, with a justification that includes the domain check.
  • A question asks on which intervals the function is positive or negative, to be answered from a graph or from the factored formula.
  • A rational inequality must be solved and written in interval notation, usually after rewriting it so one side is zero.

Check yourself

  1. Find the zeros of (x+4)(x−1)x+4\frac{(x+4)(x-1)}{x+4} and explain why one numerator zero does not count.
  2. How many test points do you need for x(x−1)(x+2)\frac{x}{(x-1)(x+2)}, and why?
  3. Why can you not multiply both sides of xx−2>1\frac{x}{x-2}>1 by x−2x-2 without more care?
  4. Does (x−1)2x+2\frac{(x-1)^2}{x+2} change sign at x=1x=1? What does the graph do there?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.