Rational Functions and Asymptotes

April 12, 2026

Problem

Graph y=(x+1)/(x−2) showing vertical asymptote at x=2 and horizontal asymptote at y=1.

Explanation

Asymptotes of rational functions

A rational function f(x)=p(x)/q(x)f(x) = p(x)/q(x) has two types of asymptotes:

Vertical asymptote (VA)

Set the denominator equal to zero: q(x)=0q(x) = 0. The function blows up to ±\pm\infty at these values. Example: f(x)=x+1x2f(x) = \frac{x+1}{x-2} has VA at x=2x = 2.

Horizontal asymptote (HA)

Compare the degree of numerator vs denominator:

  • Same degree → HA = ratio of leading coefficients.
  • Numerator lower → HA is y=0y = 0.
  • Numerator higher → no HA (oblique/slant asymptote instead).

Example: x+1x2\frac{x+1}{x-2}: both degree 1 → HA at y=1/1=1y = 1/1 = 1.

Intercepts

x-intercept: set numerator =0= 0. y-intercept: compute f(0)f(0).

The graph behavior

The curve approaches but never crosses the asymptotes (usually). Near the VA, the function shoots to ±\pm\infty. Far from the origin, it flattens toward the HA.

Try it in the visualization

Adjust the numerator and denominator. VA and HA update automatically. The curve shows the approaching behavior. q(x)=0q(x) = 0; horizontal asymptote determined by comparing degrees of pp and qq. For (x+1)/(x2)(x+1)/(x-2): VA at x=2x=2, HA at y=1y=1 (same degree → ratio of leading coefficients).

Interactive Visualization

Parameters

1.00
2.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day