Rational functions

Topic guide · Updated 2026-11-26

Quick answer

A rational function is a ratio of two polynomials, f(x) = p(x)/q(x). It is undefined where q(x) = 0. After cancelling common factors, the remaining zeros of q give vertical asymptotes and the cancelled ones give holes. Comparing the degrees of p and q gives the horizontal or slant asymptote.

−5−4−3−2−112345−3−2−1123
  • y=x/(x^2-1)
Open in graphing calculator

Graphing checklist

  1. Factor numerator and denominator.
  2. Domain: exclude every zero of the original denominator.
  3. Holes: factors that cancel.
  4. Vertical asymptotes: zeros of the reduced denominator.
  5. x-intercepts: zeros of the reduced numerator.
  6. y-intercept: evaluate at x = 0 if defined.
  7. Horizontal or slant asymptote from the degrees.
  8. Test a point in each interval to see where the graph is above or below the axis.

Example: x / (x² − 1)

The denominator factors as (x − 1)(x + 1), so there are vertical asymptotes at x = ±1. The numerator degree (1) is less than the denominator degree (2), so y = 0 is the horizontal asymptote. The only intercept is (0, 0), and the function is odd, so the graph is symmetric about the origin.

Frequently asked questions

What is a hole in a graph?

A single missing point caused by a factor that cancels from top and bottom, such as (x − 1) in (x² − 1)/(x − 1).