Precalculus Advanced

Rational Function Grapher & Analyzer

Graph f(x) = P(x)/Q(x) and find every key feature: vertical asymptotes, horizontal or oblique asymptotes, holes (removable discontinuities), x-intercepts, y-intercept, and domain — with a full step-by-step analysis.

Live Calculator · Step-by-Step · Precalculus
Define Rational Function
Numerator P(x) — emerald coefficients
a (x³)
b (x²)
c (x)
d (const)
Denominator Q(x) — gold coefficients
e (x³)
f (x²)
g (x)
h (const)
f(x) =
x² − 1
x² − 1
Quick Examples
Analysis Results
Enter numerator and denominator coefficients, then press Graph & Analyze to find asymptotes, holes, intercepts, and domain.
Domain
Vert. Asymptotes
Horiz./Oblique Asymptote
Holes
x-Intercepts
y-Intercept
Step-by-Step Analysis
Graph of f(x)
f(x)
Vert. Asymptote
Horiz./Oblique Asymptote
Hole
Intercept
Asymptote Rules by Degree Comparison
f(x) = P(x)/Q(x), deg(P) = n, deg(Q) = m

The relationship between the degrees of numerator and denominator determines the horizontal or oblique asymptote:

  • n < m: Horizontal asymptote y = 0 (the x-axis). The denominator "wins."
  • n = m: Horizontal asymptote y = (leading coeff of P) / (leading coeff of Q).
  • n = m + 1: Oblique (slant) asymptote — perform polynomial long division; the quotient is the asymptote line.
  • n > m + 1: No horizontal or oblique asymptote (behavior is polynomial-like).

Vertical asymptotes occur at zeros of Q(x) that are not cancelled by a common factor with P(x).

A rational function can cross a horizontal asymptote in the middle of its domain — but it cannot cross a vertical asymptote.
Holes vs. Vertical Asymptotes
f(x) = (x−a)·g(x) / [(x−a)·h(x)]

When both P(x) and Q(x) share a common factor (x − a), that factor cancels. The result:

  • Hole (removable discontinuity): x = a is not in the domain, but the limit exists. Plot an open circle at (a, limx→a f(x)).
  • Vertical asymptote: x = b where Q(b) = 0 but (x − b) did NOT cancel — the function blows up to ±∞.

Example: f(x) = (x²−1)/(x−1) = (x+1)(x−1)/(x−1). Cancel (x−1) → simplified form is x+1, with a hole at x = 1. No vertical asymptote.

Always factor both numerator and denominator fully before identifying asymptotes and holes.

Need help with rational functions?

A live tutor can walk you through factoring, asymptote rules, graphing by hand, and exam-style problems — step by step.

Book a Session →