← Pre-Calculus 12 · All tools

Rational Functions

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

FeatureValue

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).

  1. k: 1 → 2: vertical stretch by a factor of 2.
  2. a: 0 → 1: the numerator zero (x-intercept) moves from 0 to 1.
  3. b unchanged: the vertical asymptote stays at x = 2.
  4. Horizontal asymptote moves from y = 1 to y = 2.
  5. 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).

  1. a: 3 → 2: the numerator zero meets the denominator zero.
  2. The factor (x − 2) cancels — but the domain still excludes x = 2.
  3. So the vertical asymptote at x = 2 disappears and becomes a hole at (2, 1).
  4. Everywhere else the graph is the horizontal line y = 1.
  5. 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

From f(x) = (x + 1) / (x − 1) to g(x) = −2 · (x + 1) / (x − 1).

  1. k: 1 → −2: reflection in the x-axis plus a vertical stretch by a factor of 2.
  2. a and b unchanged: the x-intercept stays at −1 and the vertical asymptote stays at x = 1.
  3. Horizontal asymptote moves from y = 1 to y = −2.
  4. 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)).

  1. Factor check: numerator zero x = 2; denominator zeros x = 2 and x = 3.
  2. The factor (x − 2) is common to numerator and denominator — cancel it, but x = 2 stays out of the domain.
  3. 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).
  4. The remaining denominator zero x = 3 is a genuine vertical asymptote.
  5. Horizontal asymptote: numerator degree 1, denominator degree 2, so y = 0.
  6. 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.

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

FeatureHow to find it for f(x) = k · (x − a) / (x − b)
Vertical asymptoteDenominator 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 asymptoteDegrees are equal (1 over 1), so y = ratio of leading coefficients = k.
DomainAll real numbers except x = b — even when the factor cancels. Cancelling never restores the missing point.
x-interceptNumerator zero: (a, 0), provided a ≠ b. If a = b, that point is the hole, not an intercept.
y-interceptSet x = 0: f(0) = k · −a−b = kab (when b ≠ 0).

Order of analysis — do it in this order

  1. Factor numerator and denominator.
  2. Cancel common factors — and write down the holes (the domain still excludes those x-values).
  3. Read vertical asymptotes from the denominator that is left.
  4. Read intercepts and the horizontal asymptote.

Common mistakes