Dove's LibraryDove's Library

1.10 - Rational Functions and Holes

Overview

A hole is a single missing point on a graph. It happens when a factor cancels out of a rational function: the function is undefined at that input, but the graph on both sides heads toward the same height. In this topic you'll use multiplicity to tell a hole from a vertical asymptote, and find the hole's exact location with a limit.

What a hole looks like

Take r(x)=x2−9x−3r(x) = \frac{x^2 - 9}{x - 3} and factor the numerator:
r(x)=(x−3)(x+3)x−3=x+3,x≠3r(x) = \frac{(x - 3)(x + 3)}{x - 3} = x + 3, \quad x \neq 3
For every input except 3, r(x)r(x) equals x+3x + 3, so the graph is the line y=x+3y = x + 3. But r(3)=00r(3) = \frac{0}{0} is undefined, so the point at x=3x = 3 is missing. We draw it as an open circle.
1.10 - Rational Functions and Holes
To find exactly where the hole is, look at the outputs near x=3x = 3:
xx
2.92.9
2.992.99
2.9992.999
3.0013.001
3.013.01
3.13.1
r(x)r(x)
5.95.9
5.995.99
5.9995.999
6.0016.001
6.016.01
6.16.1
From both sides, the outputs get arbitrarily close to 6. So the hole is at (3,6)(3, 6).

When does a rational function have a hole?

Suppose cc is a real zero of both the numerator and the denominator. Compare its multiplicities:
Multiplicities at x=cx = c
Result
Example
Numerator ≥\ge denominator
Hole at x=cx = c
(x−3)(x+3)x−3\frac{(x - 3)(x + 3)}{x - 3} has a hole at x=3x = 3
Denominator >> numerator
Vertical asymptote at x=cx = c (Topic 1.9)
x−2(x−2)2\frac{x - 2}{(x - 2)^2} has an asymptote at x=2x = 2
Here's why. When you cancel the common factors, the side with more copies of (x−c)(x - c) keeps the leftovers. If the numerator has at least as many copies, every copy cancels out of the denominator, and nothing is left there to make it 0. If the denominator has more, some copies are left over, and you get an asymptote.

Finding the location of a hole

If the graph of rr has a hole at x=cx = c, its yy-coordinate LL is the value the outputs approach as xx gets close to cc:
lim⁡x→cr(x)=L\lim_{x \to c} r(x) = L
and the hole is at the point (c,L)(c, L). The graph heads to the same height from both sides, so the one-sided limits agree:
lim⁡x→c−r(x)=lim⁡x→c+r(x)=lim⁡x→cr(x)=L\lim_{x \to c^-} r(x) = \lim_{x \to c^+} r(x) = \lim_{x \to c} r(x) = L
In practice, find LL by canceling the common factors and plugging cc into what's left. That works because the simplified expression equals r(x)r(x) at every input near cc, and it's defined at cc. You can also estimate LL from a table or a graph, like the table above.

Holes on the x-axis

If the numerator has more copies of (x−c)(x - c) than the denominator, at least one is still in the numerator after canceling, so L=0L = 0. The hole sits right on the xx-axis. Even so, cc is not a zero of rr, because r(c)r(c) is undefined (Topic 1.8).

Examples

Example 1: Full analysis

Find all holes, vertical asymptotes, zeros, and horizontal asymptotes of the graph of r(x)=x2+x−6x2−4r(x) = \frac{x^2 + x - 6}{x^2 - 4}.
Step 1: Factor.
r(x)=(x+3)(x−2)(x+2)(x−2)r(x) = \frac{(x + 3)(x - 2)}{(x + 2)(x - 2)}
Step 2: Look at the zeros of the denominator. At x=2x = 2, the factor appears once on top and once on the bottom, so the numerator's multiplicity is at least the denominator's: hole. At x=−2x = -2, the factor is only in the denominator: vertical asymptote.
Step 3: Locate the hole. Cancel (x−2)(x - 2) and plug in 2.
lim⁡x→2r(x)=lim⁡x→2x+3x+2=54\lim_{x \to 2} r(x) = \lim_{x \to 2} \frac{x + 3}{x + 2} = \frac{5}{4}
Step 4: Find the zeros. The numerator is 0 at x=−3x = -3 and x=2x = 2, but 2 isn't in the domain. The only zero is x=−3x = -3.
Step 5: Find the horizontal asymptote. The degrees are equal (2 and 2), so y=11=1y = \frac{1}{1} = 1 (Topic 1.7).
1.10 - Rational Functions and Holes
Answer:
  • Hole at (2,54)\left(2, \frac{5}{4}\right)
  • Vertical asymptote x=−2x = -2, with lim⁡x→−2−r(x)=−∞\lim_{x \to -2^-} r(x) = -\infty and lim⁡x→−2+r(x)=∞\lim_{x \to -2^+} r(x) = \infty
  • Zero at x=−3x = -3
  • Horizontal asymptote y=1y = 1

Example 2: A hole on the x-axis

Find the hole in the graph of r(x)=x2−2x+1x2+x−2r(x) = \frac{x^2 - 2x + 1}{x^2 + x - 2}. Is x=1x = 1 a zero of rr?
Step 1: Factor.
r(x)=(x−1)2(x−1)(x+2)r(x) = \frac{(x - 1)^2}{(x - 1)(x + 2)}
Step 2: At x=1x = 1, the numerator has multiplicity 2 and the denominator has multiplicity 1. Since 2≥12 \ge 1, there's a hole at x=1x = 1.
Step 3: Cancel one factor of (x−1)(x - 1) and plug in 1.
lim⁡x→1r(x)=lim⁡x→1x−1x+2=03=0\lim_{x \to 1} r(x) = \lim_{x \to 1} \frac{x - 1}{x + 2} = \frac{0}{3} = 0
1.10 - Rational Functions and Holes
Answer: The hole is at (1,0)(1, 0), right on the xx-axis. But x=1x = 1 is not a zero, because r(1)r(1) is undefined. In fact rr has no real zeros at all: the numerator's only zero is 1, and 1 isn't in the domain. The graph also has a vertical asymptote at x=−2x = -2 and a horizontal asymptote at y=1y = 1.

Example 3: Find the error (AP-style)

A student says f(x)=x2−4x−2f(x) = \frac{x^2 - 4}{x - 2} has zeros at x=2x = 2 and x=−2x = -2, because both make the numerator 0. Explain the student's error, and describe the graph of ff near x=2x = 2.
Step 1: Factor: f(x)=(x−2)(x+2)x−2f(x) = \frac{(x - 2)(x + 2)}{x - 2}.
Step 2: x=2x = 2 also makes the denominator 0, so it isn't in the domain. It can't be a zero.
Step 3: The factor (x−2)(x - 2) appears once on top and once on the bottom, so there's a hole at x=2x = 2. Canceling gives x+2x + 2 for x≠2x \neq 2.
lim⁡x→2f(x)=2+2=4\lim_{x \to 2} f(x) = 2 + 2 = 4
Answer: The student forgot to check the domain. Since f(2)f(2) is undefined, 2 is not a zero. Instead, the graph of ff is the line y=x+2y = x + 2 with a hole at (2,4)(2, 4). The only real zero is x=−2x = -2, because f(−2)=0−4=0f(-2) = \frac{0}{-4} = 0.

Example 4: Build a function (AP-style)

Write a rational function rr whose graph has a hole at (2,3)(2, 3), a vertical asymptote at x=−1x = -1, and a horizontal asymptote at y=0y = 0.
Step 1: Turn each feature into a factor or a degree condition.
  • Hole at x=2x = 2: put (x−2)(x - 2) in both the numerator and the denominator, the same number of times.
  • Vertical asymptote at x=−1x = -1: put (x+1)(x + 1) in the denominator only.
  • Horizontal asymptote y=0y = 0: make the denominator's degree greater than the numerator's.
Step 2: Try r(x)=k(x−2)(x−2)(x+1)r(x) = \frac{k(x - 2)}{(x - 2)(x + 1)}, where kk is a constant to be chosen. The numerator has degree 1 and the denominator has degree 2, so the horizontal asymptote is y=0y = 0.
Step 3: Choose kk so the hole is at height 3.
lim⁡x→2kx+1=k3=3  ⇒  k=9\lim_{x \to 2} \frac{k}{x + 1} = \frac{k}{3} = 3 \;\Rightarrow\; k = 9
Answer:
r(x)=9(x−2)(x−2)(x+1)r(x) = \frac{9(x - 2)}{(x - 2)(x + 1)}
Other answers are possible, as long as they keep all three features.

Common mistakes

  • Calling a hole a zero, even when the hole is on the xx-axis (Example 2).
  • Giving only one coordinate of the hole. AP questions usually want the point (c,L)(c, L), not just x=cx = c.
  • Plugging the excluded input into the original function. You'll get 00\frac{0}{0}. Cancel first, then plug in.
  • Forgetting the excluded value after simplifying. x2−9x−3\frac{x^2 - 9}{x - 3} and x+3x + 3 are not the same function: one is undefined at x=3x = 3.
  • Assuming every common factor gives a hole. If the denominator has more copies, it's a vertical asymptote.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.