AP subjects/AP Precalculus/Rational Function Asymptotes Explorer
CED 1.8AP Precalculus

Rational Function Asymptotes Explorer

Use this free rational function asymptotes explorer to build f(x)=a(x−r1)(x−r2)⋯(x−s1)(x−s2)⋯f(x) = \frac{a(x - r_1)(x - r_2)\cdots}{(x - s_1)(x - s_2)\cdots} one factor at a time and see which factors create vertical asymptotes, which create holes, and how the degrees decide the horizontal or slant asymptote.

spans 1.7/1.8/1.9

Controls
numeratordenominatora

How to use the simulator

The graph covers −6 to 6 on both axes. The function is drawn in coral; vertical asymptotes are dashed coral lines, the horizontal or slant asymptote is a dashed teal line, zeros are solid dark dots on the x-axis, and holes are open circles.
  • Numerator factors (x − r): seven toggle buttons, labeled x+3, x+2, x+1, x, x−1, x−2, x−3. A dark button is switched on. Each factor can be used at most once.
  • Denominator factors (x − r): the same seven buttons for the denominator.
  • leading a: a constant multiplier on the numerator, from −3 to 3 in steps of 0.5 (default 1).
The sim opens with f(x)=x+2x−2f(x) = \frac{x+2}{x-2}. The panel shows the fraction exactly as you built it, with common factors not cancelled, and then four facts: Vertical asymptotes, End behavior (the horizontal or slant asymptote), Holes as (x, y) points, and Zeros (x-intercepts). Keep a nonzero: at a = 0 the function is just 0 (with gaps where the denominator is zero), but the panel still lists the zeros and asymptotes for the factors, so that setting does not illustrate anything useful.

The equations

Write f(x)=p(x)q(x)f(x) = \frac{p(x)}{q(x)} in factored form and cancel any factor shared by the numerator and denominator. Then:
  • Vertical asymptote at x=sx = s when (x−s)(x - s) is a factor of the denominator that does not cancel. Near it, ∣f(x)∣|f(x)| grows without bound.
  • Hole at x=cx = c when (x−c)(x - c) cancels completely. The y-coordinate of the hole is the value of the reduced function at cc.
  • Zero at x=rx = r when (x−r)(x - r) is a factor of the numerator that does not cancel.
End behavior depends on the degrees n (numerator) and d (denominator) and the leading coefficients: n<d: y=0,n=d: y=leading coefficient of pleading coefficient of q,n=d+1: slant asymptote.n < d:\ y = 0, \qquad n = d:\ y = \frac{\text{leading coefficient of } p}{\text{leading coefficient of } q}, \qquad n = d + 1:\ \text{slant asymptote}. For a slant asymptote, divide p by q; the quotient mx+cmx + c is the asymptote and the remainder is ignored. If n>d+1n > d + 1, there is no horizontal or slant asymptote. In this simulator every denominator factor has coefficient 1, so when the degrees match the horizontal asymptote is simply y=ay = a.
AP Precalculus describes these with limits: a vertical asymptote at x=3x = 3 means lim⁡x→3+f(x)\lim_{x \to 3^+} f(x) or lim⁡x→3−f(x)\lim_{x \to 3^-} f(x) is ±∞\pm\infty, and a horizontal asymptote y=2y = 2 means lim⁡x→±∞f(x)=2\lim_{x \to \pm\infty} f(x) = 2.

Worked example

Analyze f(x)=2(x−1)(x+2)(x−1)(x−3)f(x) = \frac{2(x-1)(x+2)}{(x-1)(x-3)}.
Step 1: cancel. (x−1)(x - 1) appears in both, so f(x)=2(x+2)x−3f(x) = \frac{2(x+2)}{x-3} for x≠1x \ne 1.
Step 2: hole. Plug x=1x = 1 into the reduced form: 2(3)−2=−3\frac{2(3)}{-2} = -3. Hole at (1,−3)(1, -3).
Step 3: vertical asymptote. The remaining denominator factor is (x−3)(x - 3), so x=3x = 3.
Step 4: zero and y-intercept. The remaining numerator factor gives a zero at x=−2x = -2. The y-intercept is f(0)=2(2)−3=−43≈−1.33f(0) = \frac{2(2)}{-3} = -\tfrac43 \approx -1.33.
Step 5: end behavior. Both reduced polynomials have degree 1, so the horizontal asymptote is y=21=2y = \frac{2}{1} = 2.
Check it in the simulator: set a = 2. In the numerator, leave x+2 on and turn on x−1. In the denominator, turn off x−2 and turn on x−1 and x−3. The facts should read: vertical asymptotes x = 3; horizontal asymptote y = 2; holes (1, -3); zeros x = -2.
Follow-up (slant): set a = 1, use x and x+1 in the numerator and only x−1 in the denominator. Dividing x2+xx^2 + x by x−1x - 1 gives quotient x+2x + 2, remainder 2, so the slant asymptote is y=x+2y = x + 2 (the panel writes it as y = 1x + 2).

Common mistakes on the AP exam

  • Calling every denominator zero an asymptote. Cancel first. A factor that cancels gives a hole, not a vertical asymptote.
  • Finding the hole's y-value in the original form. Plugging x=1x = 1 into the unreduced function gives 00\frac{0}{0}. Use the reduced function.
  • Listing a cancelled factor as a zero. In the example, x=1x = 1 makes the numerator zero, but f is undefined there, so it is not an x-intercept.
  • Wrong horizontal asymptote rule. When degrees are equal, divide the leading coefficients; don't set it to 0 or 1 by habit.
  • Thinking the graph can never cross a horizontal asymptote. It describes end behavior only. A rational function can cross its horizontal asymptote at finite x.
  • Forgetting a slant asymptote exists. When the numerator degree is exactly one more, long division gives a line.

When the AP exam uses this

This simulator spans Topics 1.7 to 1.10 of Unit 1: end behavior, zeros, vertical asymptotes and holes of rational functions. Questions often give a rational function in factored form and ask for the limit as x approaches a value from one side, the location of a hole, or which graph matches a given set of asymptotes and intercepts.
Embed this simulator on your class page

Free for classroom use. Paste this into your site, LMS page or blog; keep the credit link under it.