Rational functions produce some of the most distinctive graphs in algebra — branches diverging to infinity, holes you cannot see at first, and asymptotes that the curve hugs forever without crossing. This guide gives you a checklist to graph any rational function.
The 5-step workflow
- Factor numerator and denominator completely.
- Identify holes at common factors (cancel them, but mark the x-values as holes).
- Vertical asymptotes at remaining zeros of the denominator.
- Horizontal or slant asymptote from the degree comparison.
- Intercepts: y-intercept at if defined; x-intercepts at zeros of the simplified numerator.
Step-by-step on
Factor
No common factors → no holes.
Vertical asymptotes
Denominator zeros are and . Two vertical asymptotes.
Horizontal asymptote
Degree of numerator (2) = degree of denominator (2). The horizontal asymptote is the ratio of leading coefficients: .
Intercepts
- . y-intercept: .
- Numerator zeros: and . x-intercepts at those.
Sketch
Two vertical asymptotes split the x-axis into three regions. In each, test a sample point to see if is positive or negative. The graph approaches as and crosses through the intercepts found above.
The asymptote rules in one table
| Compare degrees | Asymptote type |
|---|---|
| deg(P) < deg(Q) | horizontal |
| deg(P) = deg(Q) | horizontal (ratio of leading coeffs) |
| deg(P) = deg(Q) + 1 | slant asymptote (do polynomial long division) |
| deg(P) ≥ deg(Q) + 2 | no horizontal/slant; ends fly off polynomially |
Worked example: a hole
Cancel: for . Graph the line with an open circle at — that is the hole.
Common mistakes
- Forgetting holes — cancelling factors removes vertical asymptotes but leaves holes.
- Mis-applying the horizontal asymptote rule when degrees differ.
- Assuming graphs never cross horizontal asymptotes — they often do, just never as .
Try with the AI Equation Solver
Plug your rational function into the Equation Solver to factor it and identify zeros / poles automatically.
Related references:
- Polynomial Calculator — for the long-division step in slant cases
- Factor Calculator — the foundation of step 1
- Limit Calculator — asymptotes are limits at infinity