Factor the numerator and denominator completely. Any factor that cancels creates a hole at that x-value — find its y-coordinate by plugging x into the simplified function. Any zero of the denominator that's left after cancelling is a vertical asymptote. Holes are single missing points; asymptotes are where the graph shoots to infinity.
The method in four steps
- Factor the top and bottom completely. Everything depends on seeing the factors.
- Cancel common factors. Each factor that cancels marks a hole at the x-value that makes it zero.
- Find each hole's y-value. Substitute the x-value into the simplified function — the original is undefined there.
- Set the remaining denominator to zero. Those x-values are the vertical asymptotes.
Hole vs vertical asymptote at a glance
| Hole | Vertical asymptote | |
|---|---|---|
| Cause | Factor cancels from top and bottom | Denominator factor that doesn't cancel |
| Graph | One missing point (open circle) | Curve shoots to ±∞ |
| Limit at that x | Exists (a finite number) | Infinite or doesn't exist |
| How to state it | A point: (x, y) | A line: x = a |
Worked examples
1. One hole, one asymptote
The (x−1) cancels, so there's a hole at x = 1. The simplified function is (x+1)/(x−2), and at x = 1 it gives 2/(−1) = −2. So the hole is at (1, −2). The remaining factor (x−2) gives a vertical asymptote at x = 2.
2. A cancelling factor hidden in a difference of squares
The (x+3) cancels, leaving 1/(x−3). Hole at x = −3, where the simplified function is 1/(−6), so (−3, −1/6). Vertical asymptote at x = 3.
3. A hole sitting on the x-axis
One (x−2) cancels: hole at x = 2, and the simplified function gives 0/4 = 0, so the hole is at (2, 0). Because a factor of (x−2) is still on top, the graph would have crossed the x-axis there — instead there's a gap right on the axis. Vertical asymptote at x = −2.
The repeated-factor trap
A factor cancels, so it's tempting to call x = 1 a hole. It isn't. After cancelling, (x−1) is still in the denominator, so x = 1 is a vertical asymptote. The rule is about what remains after cancelling, not whether anything cancelled.
Compare the factor counts: more copies on top than bottom gives a hole on the axis (Example 3); equal copies give an ordinary hole; more copies on the bottom gives an asymptote.
What the graph does near an asymptote
To sketch accurately, check which way the function heads on each side using one-sided limits. For 1/(x−2): just left of 2 the denominator is a tiny negative number, so f → −∞; just right it's tiny and positive, so f → +∞. A squared factor like 1/(x−2)² goes to +∞ on both sides, because the square is never negative. More on one-sided limits in how to find limits.
Vertical asymptotes aren't only for fractions: tan x has them at x = π/2 + kπ, and ln x has one at x = 0.
Common mistakes
- Setting the denominator to zero before simplifying. That finds every problem point but can't tell holes from asymptotes. Factor and cancel first.
- Finding a hole's y-value from the original function. It's 0/0 there. Use the simplified version.
- Calling every cancelled factor a hole. If a copy of the factor survives in the denominator, it's an asymptote (the repeated-factor trap).
- Stating a hole as "x = 1". A hole is a point and needs both coordinates; an asymptote is a line written x = a.
Practice problems
Find all holes and vertical asymptotes. Tap to reveal.
- f(x) = (x² − 9)/(x² + x − 6)
Show answer
Hole at (−3, 6/5); vertical asymptote x = 2
- f(x) = (x + 1)/(x² − 1)
Show answer
Hole at (−1, −1/2); vertical asymptote x = 1
- f(x) = 1/(x² + 1)
Show answer
Neither — the denominator is never zero
- f(x) = (x² + x)/x
Show answer
Hole at (0, 1); no vertical asymptote
- f(x) = (x − 2)/(x − 2)³
Show answer
Vertical asymptote x = 2 (not a hole — (x−2)² remains below)
Questions students ask
Can a function have a hole and a vertical asymptote at the same x?
No. At any single x-value, the factor either fully cancels (hole) or survives in the denominator (asymptote). It can't be both.
Does a hole affect the domain?
Yes. The function is undefined at a hole, so that x-value is excluded from the domain even though the graph only misses a single point.
Can a graph cross a vertical asymptote?
Never — the function isn't defined there. (Graphs can cross horizontal asymptotes, which is a different situation; see horizontal and slant asymptotes.)
Stuck on a rational function?
Scan it with Aheadia and see the factoring, the holes, and the asymptotes worked out step by step.
Download free on iOS