BC Pre-Calculus 12 · Rational Functions · Learn to tell a vertical asymptote from a hole — they are not the same thing.
Free learning tool. No account, no sign-in. Just open and play.
Rational Function Explorer
Drag the sliders and watch the graph change. The form is f(x) = k · x − ax − b. Try dragging a until it equals b — the vertical asymptote vanishes and becomes a hole.
f(x) = 1 · (x − 0) / (x − 2)
graph f(x) asymptote (dashed) hole
Features of this function
Feature
Value
Worked Examples
Read the steps, then cover the answer and try each one yourself first. Each animation morphs the start function into the target — watch what happens to the asymptote.
Each click replaces all three examples with a fresh set.
Example 1 — Vertical asymptote stays, horizontal asymptote moves
From f(x) = x / (x − 2) to g(x) = 2 · (x − 1) / (x − 2).
k: 1 → 2: vertical stretch by a factor of 2.
a: 0 → 1: the numerator zero (x-intercept) moves from 0 to 1.
b unchanged: the vertical asymptote stays at x = 2.
Horizontal asymptote moves from y = 1 to y = 2.
Check: at x = 0, the start gives 00 − 2 = 0 and the target gives 2 · (0 − 1)0 − 2 = 1. ✔
Red dot: the value at x = 0, tracked through the animation.
Example 2 — An asymptote becomes a hole
From f(x) = (x − 3) / (x − 2) to g(x) = (x − 2) / (x − 2).
a: 3 → 2: the numerator zero meets the denominator zero.
The factor (x − 2) cancels — but the domain still excludes x = 2.
So the vertical asymptote at x = 2 disappears and becomes a hole at (2, 1).
Everywhere else the graph is the horizontal line y = 1.
Check: at x = 0, the start gives 0 − 30 − 2 = 1.5 and the target gives 1. ✔
Red dot: the value at x = 0, tracked through the animation.
Example 3 — Vertical asymptote stays, branches flip
k: 1 → −2: reflection in the x-axis plus a vertical stretch by a factor of 2.
a and b unchanged: the x-intercept stays at −1 and the vertical asymptote stays at x = 1.
Horizontal asymptote moves from y = 1 to y = −2.
Check: at x = 0, the start gives 0 + 10 − 1 = −1 and the target gives −2 · (0 + 1)0 − 1 = 2. ✔
Red dot: the value at x = 0, tracked through the animation.
Example 4 — A hole and an asymptote in one function
Analyze f(x) = (x − 2) / ((x − 2)(x − 3)).
Factor check: numerator zero x = 2; denominator zeros x = 2 and x = 3.
The factor (x − 2) is common to numerator and denominator — cancel it, but x = 2 stays out of the domain.
Simplified form: g(x) = 1 / (x − 3) (for x ≠ 2). At x = 2: g(2) = 1 / (2 − 3) = −1, so the hole is at (2, −1).
The remaining denominator zero x = 3 is a genuine vertical asymptote.
Horizontal asymptote: numerator degree 1, denominator degree 2, so y = 0.
Check: at x = 0, f(0) = 0 − 2(0 − 2)(0 − 3) = −26 = −1/3, and g(0) = 10 − 3 = −1/3. ✔
Red dot: the value at x = 0, where f and g agree.
Practice Generator
Fresh questions every time — the numbers change, so you cannot just memorize answers. Hint first, try it, then check the full solution.
Score: 0 / 0
Press “New question” to start.
Your mistakes (saved in this browser only)
Questions you got wrong are listed here so you can review them. Nothing leaves your computer.
None yet. Good luck!
Printable Worksheet
Make a paper worksheet from this chapter's questions — pick a topic, generate a set, and print it (or save it as a PDF). The questions come from the same generator as the Practice Generator above, with the same answers.
Tip: a mixed set always includes at least one graph-reading question. In the print dialog, choose “Save as PDF” to keep a copy.
One-Page Summary
Feature
How to find it for f(x) = k · (x − a) / (x − b)
Vertical asymptote
Denominator zero AFTER cancelling: x = b, but only if a ≠ b. If a = b there is no asymptote.
Hole (removable discontinuity)
Common factor zero: if a = b, the factor (x − b) cancels and the graph has a hole at (b, k).
Horizontal asymptote
Degrees are equal (1 over 1), so y = ratio of leading coefficients = k.
Domain
All real numbers except x = b — even when the factor cancels. Cancelling never restores the missing point.
x-intercept
Numerator zero: (a, 0), provided a ≠ b. If a = b, that point is the hole, not an intercept.
y-intercept
Set x = 0: f(0) = k · −a−b = kab (when b ≠ 0).
Order of analysis — do it in this order
Factor numerator and denominator.
Cancel common factors — and write down the holes (the domain still excludes those x-values).
Read vertical asymptotes from the denominator that is left.
Read intercepts and the horizontal asymptote.
Common mistakes
Calling a hole a vertical asymptote. If the factor cancels, the graph does not blow up there — it just has a missing point.
Forgetting the domain exclusion after cancelling. (x − 2)/(x − 2) is not the same function as 1: it is undefined at x = 2.
Saying the horizontal asymptote is x = b. Horizontal means y = a constant: here y = k.
Plugging x = b into the simplified form and concluding “nothing special happens”. The simplified form hides the hole — always check the original denominator.