AP · Precalculus · Rational Functions

Zeros, Vertical Asymptotes and Holes

18 min readUpdated November 30, 2026FreeAP Precalculus, Polynomial and Rational Functions

The zeros, vertical asymptotes and holes of a rational function all come from factoring its numerator and denominator and canceling any common factor. Each canceled factor leaves a hole, the zeros of the numerator that remain are the zeros of the function, and the zeros of the denominator that remain are vertical asymptotes. A sign chart built from those same values solves rational inequalities.

Quick check

  1. Factor x2−5x+6x^2 - 5x + 6.Show answerHide answer

    (x−2)(x−3)(x - 2)(x - 3). The two numbers multiply to 66 and add to −5-5, so they are −2-2 and −3-3.

  2. In p(x)=(x−1)3(x+2)p(x) = (x - 1)^3(x + 2), what is the multiplicity of the zero x=1x = 1, and does the graph cross the xx-axis there?Show answerHide answer

    The multiplicity is 33. It is odd, so p(x)p(x) changes sign at x=1x = 1 and the graph crosses the axis.

  3. Where is f(x)=x−4x+1f(x) = \dfrac{x - 4}{x + 1} undefined, and is x=4x = 4 a zero of ff?Show answerHide answer

    ff is undefined at x=−1x = -1, where the denominator is 00. Yes, x=4x = 4 is a zero: f(4)=05=0f(4) = \dfrac{0}{5} = 0.

Know these already? Jump to the practice questions

What you'll be able to do

  • Find the zeros of a rational function after canceling any common factors.
  • Identify each vertical asymptote and describe the behavior on each side of it with one-sided limits.
  • Determine the coordinates of a hole in the graph.
  • Solve a rational inequality with a sign chart, giving the answer in interval or inequality form.

Key terms

Rational function

A function of the form r(x)=p(x)q(x)r(x) = \dfrac{p(x)}{q(x)}, where pp and qq are polynomials and qq is not the zero polynomial.

In plain English
One polynomial divided by another.
Don't write
That rr is defined everywhere; it is undefined wherever q(x)=0q(x) = 0.

Vertical asymptote

The line x=ax = a when r(x)r(x) grows without bound (toward ∞\infty or −∞-\infty) as xx approaches aa from at least one side.

In plain English
A vertical line the graph shoots up or down beside.
Don't write
"the asymptote is −3-3"; an asymptote is a line, so write x=−3x = -3.

Hole

A single missing point on the graph, at an xx-value where a common factor of the numerator and denominator cancels completely.

In plain English
The graph runs straight through, except for one point that has been removed.
Don't write
That a hole is a zero; the function has no value there at all.

One-sided limit

lim⁡x→a−r(x)\lim\limits_{x \to a^-} r(x) is the value r(x)r(x) approaches as xx gets close to aa from the left; lim⁡x→a+r(x)\lim\limits_{x \to a^+} r(x) is the same from the right.

In plain English
What the outputs do as you slide toward aa from one side only.
Don't write
A single limit at an asymptote where the two sides go in opposite directions.

Where are the zeros of a rational function?

A fraction equals 00 only when its numerator is 00 and its denominator is not. So you find the zeros of r(x)=p(x)q(x)r(x) = \dfrac{p(x)}{q(x)} in two moves: factor both polynomials, then cancel any factor they share. The zeros of the numerator that are left are the zeros of rr.

Take r(x)=x2+2x−15x2−9=(x+5)(x−3)(x+3)(x−3)r(x) = \dfrac{x^2 + 2x - 15}{x^2 - 9} = \dfrac{(x + 5)(x - 3)}{(x + 3)(x - 3)}. The numerator is 00 at x=−5x = -5 and at x=3x = 3. But x=3x = 3 also makes the denominator 00, so r(3)r(3) does not exist. Only x=−5x = -5 is a zero: r(−5)=0(−2)(−8)=0r(-5) = \dfrac{0}{(-2)(-8)} = 0.

Key idea

Cancel common factors first; only the numerator zeros that survive are zeros of the function.

Canceling changes the formula, not the domain: rr is still undefined at x=3x = 3 and at x=−3x = -3.

Check yourself

Find every zero of r(x)=x2−16x2+4xr(x) = \dfrac{x^2 - 16}{x^2 + 4x}.
Show answerHide answer

x=4x = 4 only. The function is (x−4)(x+4)x(x+4)\dfrac{(x - 4)(x + 4)}{x(x + 4)}; the factor (x+4)(x + 4) cancels, so x=−4x = -4 is not a zero.

Where are the vertical asymptotes, and what happens on each side?

After canceling, each zero aa of the denominator that remains gives a vertical asymptote x=ax = a. Near it the denominator is close to 00 while the numerator is not, so the outputs grow without bound.

To say which way the graph goes, find the sign of each factor just left and just right of aa. Only the factor that is 00 at aa is tiny; the others keep roughly their values at aa.

For r(x)=x+1x−2r(x) = \dfrac{x + 1}{x - 2}, the numerator is about 33 near x=2x = 2. Just left of 22, x−2x - 2 is a tiny negative number, so r(x)r(x) is a large negative number. Just right of 22, it is a large positive number:

lim⁡x→2−x+1x−2=−∞lim⁡x→2+x+1x−2=∞\lim_{x \to 2^-} \frac{x + 1}{x - 2} = -\infty \qquad \lim_{x \to 2^+} \frac{x + 1}{x - 2} = \infty

Multiplicity decides the pattern (Learn this). A factor with an odd power, such as (x−2)(x - 2), gives opposite behavior on the two sides. A factor with an even power, such as (x−2)2(x - 2)^2, is positive on both sides, so x+1(x−2)2\dfrac{x + 1}{(x - 2)^2} goes to ∞\infty from the left and from the right.

Examiner's eye

Marks are lost when a one-sided limit is stated with no reason. Name the sign of the numerator and of each denominator factor on that side.

Check yourself

Determine lim⁡x→−3+1x+3\lim\limits_{x \to -3^+} \dfrac{1}{x + 3}.
Show answerHide answer

∞\infty. Just right of −3-3, x+3x + 3 is a tiny positive number, and 11 divided by a tiny positive number is a large positive number.

When is there a hole instead of an asymptote, and where is it?

When (x−a)(x - a) is a factor of both the numerator and the denominator, compare how many times it appears in each. If the numerator has at least as many copies as the denominator, the factor cancels completely from the denominator and the graph has a hole at x=ax = a. If the denominator has more copies, a factor (x−a)(x - a) is left underneath, so x=ax = a is a vertical asymptote instead.

The hole's xx-coordinate is aa. Its yy-coordinate is the value the graph is heading toward, so you substitute aa into the simplified function (Learn this): the hole is at (a, rsimplified(a))\left(a,\ r_{\text{simplified}}(a)\right).

For r(x)=(x+5)(x−3)(x+3)(x−3)r(x) = \dfrac{(x + 5)(x - 3)}{(x + 3)(x - 3)}, the simplified form is x+5x+3\dfrac{x + 5}{x + 3}. At x=3x = 3 it gives 86=43\dfrac{8}{6} = \dfrac{4}{3}, so the hole is at (3,43)\left(3, \dfrac{4}{3}\right).

Key idea

Substitute the canceled xx-value into the simplified function, never the original one, to get the yy-coordinate of a hole.

A hole can sit on the xx-axis. In (x−2)2(x−2)(x+1)\dfrac{(x - 2)^2}{(x - 2)(x + 1)}, one (x−2)(x - 2) survives in the numerator, so the hole is at (2,0)(2, 0). It is still not a zero: the function is undefined there.

Check yourself

Find the coordinates of the hole in the graph of y=x2−1x−1y = \dfrac{x^2 - 1}{x - 1}.
Show answerHide answer

(1,2)(1, 2). The function is (x−1)(x+1)x−1\dfrac{(x - 1)(x + 1)}{x - 1}, which simplifies to x+1x + 1, and 1+1=21 + 1 = 2.

How do you solve a rational inequality with a sign chart?

A rational expression can change sign only where its numerator or denominator is 00. Those critical values split the number line into intervals, and the sign is constant on each one. So:

  1. Move every term to one side so the other side is 00, and combine into a single fraction.
  2. Factor, and mark the zeros of the numerator and of the denominator.
  3. Test one value in each interval to get the sign.
  4. Choose the intervals that match the inequality. Include numerator zeros for ≤\le or ≥\ge; never include denominator zeros.

For x−1x+2>0\dfrac{x - 1}{x + 2} > 0, the critical values are −2-2 and 11:

Intervalx<−2x < -2−2<x<1-2 < x < 1x>1x > 1
Test value−3-30022
Sign of x−1x+2\dfrac{x - 1}{x + 2}++−-++

So the solution is x<−2x < -2 or x>1x > 1. Never multiply across by the denominator, whose sign you do not know.

Check yourself

Solve x+4x−3≤0\dfrac{x + 4}{x - 3} \le 0.
Show answerHide answer

−4≤x<3-4 \le x < 3. The expression is negative between the critical values; x=−4x = -4 makes it 00, so it is included, and x=3x = 3 is excluded.

Worked example 1: Zeros, asymptote and hole

Question: For f(x)=2x2−8x2+x−6f(x) = \dfrac{2x^2 - 8}{x^2 + x - 6}, find the zeros, the vertical asymptotes and the coordinates of any hole.

What tells you the method

Zeros, asymptotes and holes all come from the factored form, so factor first and look for a common factor.

  1. Step 1: Factor both polynomials.

    f(x)=2(x−2)(x+2)(x+3)(x−2)f(x) = \dfrac{2(x - 2)(x + 2)}{(x + 3)(x - 2)}.

    Why

    2x2−8=2(x2−4)2x^2 - 8 = 2(x^2 - 4), a difference of squares, and −2-2 and 33 multiply to −6-6 and add to 11.

  2. Step 2: Cancel the common factor.

    (x−2)(x - 2) cancels, leaving 2(x+2)x+3\dfrac{2(x + 2)}{x + 3} for x≠2x \neq 2.

    Why

    It appears once on top and once underneath, so it cancels completely and gives a hole at x=2x = 2.

  3. Step 3: Read the zero and the asymptote.

    The numerator 2(x+2)2(x + 2) is 00 at x=−2x = -2; the denominator x+3x + 3 is 00 at x=−3x = -3.

    Why

    These factors survived the canceling.

  4. Step 4: Find the hole's yy-coordinate.

    2(2+2)2+3=85\dfrac{2(2 + 2)}{2 + 3} = \dfrac{8}{5}.

    Why

    The hole's height comes from the simplified function at the canceled xx-value.

Check it

f(−2)=8−84−2−6=0f(-2) = \dfrac{8 - 8}{4 - 2 - 6} = 0, so x=−2x = -2 is a zero, and f(2.001)≈1.600f(2.001) \approx 1.600, which matches a hole at height 85\dfrac{8}{5}.

Answer

The zero is x=−2x = -2, the vertical asymptote is x=−3x = -3, and the hole is at (2,85)\left(2, \dfrac{8}{5}\right).

Worked example 2: Behavior on each side of an asymptote

Question: For g(x)=x−4x2−x−2g(x) = \dfrac{x - 4}{x^2 - x - 2}, identify the vertical asymptotes and determine lim⁡x→2−g(x)\lim\limits_{x \to 2^-} g(x) and lim⁡x→2+g(x)\lim\limits_{x \to 2^+} g(x).

What tells you the method

"x→2−x \to 2^-" and "x→2+x \to 2^+" ask for one-sided behavior, so you need the sign of each factor on each side.

  1. Step 1: Factor the denominator.

    g(x)=x−4(x−2)(x+1)g(x) = \dfrac{x - 4}{(x - 2)(x + 1)}.

    Why

    −2-2 and 11 multiply to −2-2 and add to −1-1.

  2. Step 2: Identify the asymptotes.

    No factor cancels, so the vertical asymptotes are x=2x = 2 and x=−1x = -1.

    Why

    The numerator is not 00 at either value.

  3. Step 3: Find the signs near x=2x = 2.

    The numerator is about −2-2 (negative) and x+1x + 1 is about 33 (positive). From the left, x−2x - 2 is a tiny negative number; from the right, a tiny positive number.

    Why

    Only the factor that is 00 at x=2x = 2 changes sign across it.

  4. Step 4: Combine the signs.

    Left: (−)(−)(+)\dfrac{(-)}{(-)(+)} is positive. Right: (−)(+)(+)\dfrac{(-)}{(+)(+)} is negative.

    Why

    The size is huge because the denominator is close to 00, so the sign settles ∞\infty or −∞-\infty.

Check it

g(1.9)≈7.241g(1.9) \approx 7.241 and g(2.1)≈−6.129g(2.1) \approx -6.129, large and with the predicted signs.

Answer

The vertical asymptotes are x=−1x = -1 and x=2x = 2; lim⁡x→2−g(x)=∞\lim\limits_{x \to 2^-} g(x) = \infty and lim⁡x→2+g(x)=−∞\lim\limits_{x \to 2^+} g(x) = -\infty.

Worked example 3: A rational inequality

Question: Solve 2x−1x+3≤1\dfrac{2x - 1}{x + 3} \le 1.

What tells you the method

A variable in the denominator of an inequality means a sign chart, not multiplying across.

  1. Step 1: Make one side 00.

    2x−1x+3−1≤0\dfrac{2x - 1}{x + 3} - 1 \le 0, so 2x−1−(x+3)x+3≤0\dfrac{2x - 1 - (x + 3)}{x + 3} \le 0, which is x−4x+3≤0\dfrac{x - 4}{x + 3} \le 0.

    Why

    A sign chart compares the expression with 00.

  2. Step 2: Mark the critical values.

    The numerator is 00 at x=4x = 4; the denominator is 00 at x=−3x = -3.

    Why

    The sign can change only at these values.

  3. Step 3: Test each interval.

    At x=−4x = -4: −8−1>0\dfrac{-8}{-1} > 0. At x=0x = 0: −43<0\dfrac{-4}{3} < 0. At x=5x = 5: 18>0\dfrac{1}{8} > 0.

    Why

    The sign is the same throughout each interval.

  4. Step 4: Choose the interval and endpoints.

    The expression is negative for −3<x<4-3 < x < 4. Include x=4x = 4, where it equals 00; exclude x=−3x = -3, where it is undefined.

    Why

    The inequality is "≤\le", so a zero of the numerator counts.

Check it

At x=0x = 0, −13≤1\dfrac{-1}{3} \le 1 is true; at x=−5x = -5, −11−2=5.5\dfrac{-11}{-2} = 5.5, which is not ≤1\le 1, so x=−5x = -5 is rightly left out.

Answer

−3<x≤4-3 < x \le 4, which is the interval (−3,4](-3, 4].

Your turn

Question: For h(x)=x2+3xx2−9h(x) = \dfrac{x^2 + 3x}{x^2 - 9}, find the zero, the vertical asymptote and the coordinates of the hole.

  1. Step 1:

    Factor: h(x)=x(x+3)(x−3)(x+3)h(x) = \dfrac{x(x + 3)}{(x - 3)(x + 3)}.

  2. Step 2:

    Cancel (x+3)(x + 3) to get xx−3\dfrac{x}{x - 3} for x≠−3x \neq -3. Now read off the zero and the asymptote, and find the hole's yy-coordinate yourself.

Show the full solutionHide the solution

The numerator xx is 00 at x=0x = 0, so that is the zero. The denominator x−3x - 3 is 00 at x=3x = 3, so that is the vertical asymptote. The canceled factor gives a hole at x=−3x = -3, with y=−3−3−3=12y = \dfrac{-3}{-3 - 3} = \dfrac{1}{2}.

Answer: The zero is x=0x = 0, the vertical asymptote is x=3x = 3, and the hole is at (−3,12)\left(-3, \dfrac{1}{2}\right).

Traps

Trap

Every zero of the numerator is a zero of the function.

It seems right because a fraction is 00 when its top is 00. But if the same value also makes the denominator 00, the function is undefined there, and the canceled factor gives a hole, not a zero.

Check yourself

Is x=1x = 1 a zero of x2−1x2−x\dfrac{x^2 - 1}{x^2 - x}?
Show answerHide answer

No. The function is (x−1)(x+1)x(x−1)\dfrac{(x - 1)(x + 1)}{x(x - 1)}; the factor (x−1)(x - 1) cancels, so there is a hole at (1,2)(1, 2). The only zero is x=−1x = -1.

Trap

You can clear the fraction in 2x−1x+3≤1\dfrac{2x - 1}{x + 3} \le 1 by multiplying both sides by x+3x + 3.

It seems right because that works in equations. But x+3x + 3 is negative for x<−3x < -3, which would reverse the inequality there, so the shortcut adds wrong solutions. Bring everything to one side and use a sign chart.

Check yourself

The shortcut gives x≤4x \le 4. Is x=−5x = -5 a solution of the original inequality?
Show answerHide answer

No. 2(−5)−1−5+3=−11−2=5.5\dfrac{2(-5) - 1}{-5 + 3} = \dfrac{-11}{-2} = 5.5, which is greater than 11.

Trap

The graph always goes up on one side of a vertical asymptote and down on the other.

It seems right because the simplest example, 1x\dfrac{1}{x}, behaves that way. But a squared factor such as (x−1)2(x - 1)^2 is positive on both sides, so the graph goes the same way on both sides.

Check yourself

Determine the behavior of 1(x−1)2\dfrac{1}{(x - 1)^2} on each side of x=1x = 1.
Show answerHide answer

Both one-sided limits are ∞\infty, because (x−1)2(x - 1)^2 is a tiny positive number on each side of x=1x = 1.

What's examined

This topic belongs to Unit 1, Polynomial and Rational Functions, on the AP® Precalculus exam. It can appear in multiple choice and free response, including parts taken without a calculator, so factor and build sign charts by hand. Expect "Identify" for zeros and asymptotes, "Determine" or "Find" for a hole or a one-sided limit, "Solve" for inequalities, and "Justify" or "Give a reason for your answer" when credit depends on the sign of each factor. A graphing calculator usually draws straight over a hole.

Not on your syllabus: formal limit definitions and limit laws, which belong to calculus.

Practice questions

  1. Recall Which of the following is a vertical asymptote of the graph of f(x)=x+2(x−5)(x+2)f(x) = \dfrac{x + 2}{(x - 5)(x + 2)}?
  • A) x=−5x = -5
  • B) x=−2x = -2
  • C) x=2x = 2
  • D) x=5x = 5
Show answer

Answer: D) x=5x = 5.

Marking points:

  • (x+2)(x + 2) cancels, so x=−2x = -2 is a hole, not an asymptote (B).
  • The surviving factor (x−5)(x - 5) is 00 at x=5x = 5.
  • A and C come from reading the sign inside a factor the wrong way.
  1. Recall Find every zero of r(x)=x2−4xx2−16r(x) = \dfrac{x^2 - 4x}{x^2 - 16}.
Show answer

Answer: x=0x = 0 is the only zero.

Marking points:

  • Factor: x(x−4)(x−4)(x+4)\dfrac{x(x - 4)}{(x - 4)(x + 4)}.
  • (x−4)(x - 4) cancels, so x=4x = 4 gives a hole, not a zero.
  • The surviving numerator factor xx is 00 at x=0x = 0.
  1. Apply What are the coordinates of the hole in the graph of y=x2+x−2x2−1y = \dfrac{x^2 + x - 2}{x^2 - 1}?
  • A) (1,0)(1, 0)
  • B) (1,32)\left(1, \dfrac{3}{2}\right)
  • C) (1,3)(1, 3)
  • D) (−2,0)(-2, 0)
Show answer

Answer: B) (1,32)\left(1, \dfrac{3}{2}\right).

Marking points:

  • Factor: (x+2)(x−1)(x−1)(x+1)\dfrac{(x + 2)(x - 1)}{(x - 1)(x + 1)}, so (x−1)(x - 1) cancels and the hole is at x=1x = 1.
  • Simplified function at x=1x = 1: 1+21+1=32\dfrac{1 + 2}{1 + 1} = \dfrac{3}{2}.
  • A uses the original numerator's value 00; C drops the denominator; D is the zero of the function.
  1. Apply Which statement describes the graph of f(x)=x+1(x−3)2f(x) = \dfrac{x + 1}{(x - 3)^2} near x=3x = 3?
  • A) lim⁡x→3−f(x)=−∞\lim\limits_{x \to 3^-} f(x) = -\infty and lim⁡x→3+f(x)=∞\lim\limits_{x \to 3^+} f(x) = \infty
  • B) lim⁡x→3−f(x)=∞\lim\limits_{x \to 3^-} f(x) = \infty and lim⁡x→3+f(x)=−∞\lim\limits_{x \to 3^+} f(x) = -\infty
  • C) lim⁡x→3−f(x)=∞\lim\limits_{x \to 3^-} f(x) = \infty and lim⁡x→3+f(x)=∞\lim\limits_{x \to 3^+} f(x) = \infty
  • D) lim⁡x→3−f(x)=−∞\lim\limits_{x \to 3^-} f(x) = -\infty and lim⁡x→3+f(x)=−∞\lim\limits_{x \to 3^+} f(x) = -\infty
Show answer

Answer: C) Both one-sided limits are ∞\infty.

Marking points:

  • The numerator is about 44 near x=3x = 3, which is positive.
  • (x−3)2(x - 3)^2 is a tiny positive number on both sides, so both limits are ∞\infty.
  • A and B treat the even power as if it changed sign; D gets the numerator's sign wrong.
  1. Apply Solve x−5x+1≥0\dfrac{x - 5}{x + 1} \ge 0.
Show answer

Answer: x<−1 or x≥5x < -1 \text{ or } x \ge 5.

Marking points:

  • Critical values: x=5x = 5 (numerator) and x=−1x = -1 (denominator).
  • Signs: positive for x<−1x < -1, negative for −1<x<5-1 < x < 5, positive for x>5x > 5.
  • Include x=5x = 5, where the expression is 00; exclude x=−1x = -1.
  1. Exam-style Let r(x)=x2−2x−3x2+xr(x) = \dfrac{x^2 - 2x - 3}{x^2 + x}. (a) Identify the zero and the vertical asymptote of rr. (b) Find the coordinates of the hole. (c) Determine lim⁡x→0+r(x)\lim\limits_{x \to 0^+} r(x). Give a reason for your answer.
Show answer

Answer: (a) The zero is x=3x = 3 and the vertical asymptote is x=0x = 0. (b) The hole is at (−1,4)(-1, 4). (c) lim⁡x→0+r(x)=−∞\lim\limits_{x \to 0^+} r(x) = -\infty.

Marking points:

  • Factor: (x−3)(x+1)x(x+1)\dfrac{(x - 3)(x + 1)}{x(x + 1)}; cancel (x+1)(x + 1) to get x−3x\dfrac{x - 3}{x}.
  • Hole: −1−3−1=4\dfrac{-1 - 3}{-1} = 4, so (−1,4)(-1, 4).
  • Reason for (c): near x=0x = 0 the numerator is about −3-3, and from the right xx is a tiny positive number, so the quotient is a large negative number.
  1. Exam-style What is the solution set of x+5x−1≥2\dfrac{x + 5}{x - 1} \ge 2?
  • A) 1<x≤71 < x \le 7
  • B) 1≤x≤71 \le x \le 7
  • C) x≤7x \le 7
  • D) x<1x < 1 or x≥7x \ge 7
Show answer

Answer: A) 1<x≤71 < x \le 7.

Marking points:

  • Rewrite: x+5−2(x−1)x−1=7−xx−1≥0\dfrac{x + 5 - 2(x - 1)}{x - 1} = \dfrac{7 - x}{x - 1} \ge 0.
  • Signs: negative for x<1x < 1, positive for 1<x<71 < x < 7, negative for x>7x > 7; include x=7x = 7, exclude x=1x = 1.
  • B includes x=1x = 1, where the expression is undefined; C comes from multiplying both sides by x−1x - 1; D picks the intervals with the wrong sign.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Factor the numerator and denominator, then cancel shared factors before naming any feature.
  • A factor that cancels completely leaves a hole; its height is the simplified function evaluated at that xx.
  • Zeros come from the surviving numerator factors, and vertical asymptotes from the surviving denominator factors.
  • Odd-power factors in the denominator give opposite one-sided limits; even-power factors give the same one on both sides.
  • For a rational inequality, compare a single fraction with 00 using a sign chart, and never include a denominator zero.

Keep learning

Explore AP Precalculus tutoring →

View the full Precalculus syllabus →

More in this unit

Polynomial and Rational Functions

All Rational Functions notes

Part of Novark's AP Precalculus notes