Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games

Opening subject page...

Loading your content

  1. Algebra Ii
  2. Graphing Rational Functions & Asymptotes

Algebra 2 • Analyze Functions

Graphing Rational Functions & Asymptotes

Understand the behavior of polynomial ratios and the invisible boundaries that shape their graphs.

Section 1

Historical Context & Motivation

The study of rational functions — expressions formed by dividing one polynomial by another — stretches back centuries, intertwined with humanity's pursuit of understanding curves, motion, and the infinite. Long before graphing calculators or coordinate geometry software, mathematicians struggled with the peculiar behavior of ratios that approach, but never quite reach, certain values. That pursuit gave rise to the concept of an asymptote, from the Greek asymptotos, meaning "not falling together."

~200 BCE
Apollonius of Perga studies conic sections and describes lines that a hyperbola approaches but never touches — the earliest reference to asymptotic behavior in geometry.
1637
René Descartes publishes La Géométrie, establishing the coordinate plane and making it possible to graph algebraic expressions — including ratios of polynomials — as curves in the xy-plane.
1660s–1680s
Isaac Newton and Gottfried Wilhelm Leibniz independently develop calculus, providing the rigorous tools (limits) needed to formally define what it means for a function to "approach" a value infinitely closely without reaching it.
1748
Leonhard Euler publishes Introductio in Analysin Infinitorum, systematically cataloguing functions and their behaviors. Euler treats rational functions as a core class of mathematical objects and formalizes many graphing techniques still taught today.
20th–21st Century
Rational functions become indispensable in applied science — modeling electrical circuits, population dynamics, chemical concentrations, and economics. Modern Algebra 2 courses teach them as a gateway to understanding limits, continuity, and calculus-readiness.

The central question this lesson addresses is deceptively simple: given a rational function, how do we sketch its graph by hand, and what features define its shape? The answer involves finding asymptotes (invisible boundary lines), intercepts, holes, and understanding end behavior — skills that build the conceptual bridge from algebra to calculus.

Section 2

Core Principles & Definitions

A rational function is any function that can be written in the form f(x) = P(x) / Q(x), where P(x) and Q(x) are polynomials and Q(x) ≠ 0. The domain of such a function excludes every x-value where the denominator equals zero. From this simple definition, a rich set of behaviors emerges.

1

Vertical Asymptote

A vertical line x = a where the function's output grows without bound (toward +∞ or −∞). This occurs when the denominator equals zero at x = a but the numerator does not (after cancellation).
2

Horizontal Asymptote

A horizontal line y = b that the function approaches as x → +∞ or x → −∞. It describes the long-run behavior of the function and depends on the degree relationship between numerator and denominator.
3

Oblique (Slant) Asymptote

A diagonal line y = mx + b that the function approaches at extreme x-values. This occurs when the degree of the numerator is exactly one more than the degree of the denominator.
4

Holes (Removable Discontinuities)

Points where both numerator and denominator share a common factor that cancels. The function is undefined at these x-values, but no vertical asymptote forms — just a "missing dot" on the graph.
5

Intercepts

The x-intercepts occur where P(x) = 0 (numerator = 0, denominator ≠ 0). The y-intercept is f(0) = P(0)/Q(0), provided x = 0 is in the domain.
✦ Key Takeaway
Think of a rational function's graph like a river flowing between invisible walls. Vertical asymptotes are cliffs the river can never cross — it surges up or plunges down at those boundaries. Horizontal or oblique asymptotes are the distant horizon the river flattens toward as it stretches to infinity. Holes are tiny sinkholes — missing points where the water briefly disappears but the riverbed continues on either side.
Section 3

Visual Explanation — Anatomy of a Rational Function

The diagram below illustrates the graph of a typical rational function, f(x) = (2x − 4) / (x − 3), with all key features labeled. Notice how the curve approaches but never touches the vertical asymptote at x = 3 and the horizontal asymptote at y = 2. The x-intercept at (2, 0) and the y-intercept at (0, 4/3) anchor the curve in the coordinate plane.

xy−3−2−112342−2−4x = 3(Vertical Asymptote)y = 2 (Horizontal Asymptote)(2, 0)x-intercept(0, ⁴⁄₃)y-interceptf(x) = (2x − 4) / (x − 3)
Graph of f(x) = (2x − 4) / (x − 3) with vertical asymptote at x = 3, horizontal asymptote at y = 2, x-intercept at (2, 0), and y-intercept at (0, 4/3).

Several important observations emerge from this graph. First, the vertical asymptote at x = 3 creates two distinct branches of the curve — the function exists on both sides of this line but behaves very differently. On the left side (as x approaches 3 from the left), the function plunges toward −∞. On the right side, it shoots upward toward +∞. Second, far from the vertical asymptote, both branches gradually flatten and approach the horizontal asymptote at y = 2. This makes intuitive sense: as x grows very large, the "−4" and "−3" become negligible compared to "2x" and "x," so the function behaves like 2x/x = 2. Third, notice that the curve actually crosses the horizontal asymptote at x = 2 — a common misconception is that the graph can never touch a horizontal asymptote, but in fact it can cross it in the middle of the graph; the asymptote only governs behavior as x → ±∞.

Section 4

Mathematical Framework — Finding Asymptotes & Features

To graph any rational function systematically, you follow a sequence of algebraic steps. Let f(x) = P(x) / Q(x) where P has degree m and Q has degree n.

Step 1 — Factor and Simplify

Factor both the numerator P(x) and denominator Q(x) completely. Any common linear factors that cancel produce holes, not asymptotes. Record the x-values of holes and simplify the expression before proceeding.

Identifying Holes
If P(x) = (x − a) · P₁(x) and Q(x) = (x − a) · Q₁(x), then x = a is a hole, not a vertical asymptote.
The y-coordinate of the hole is found by evaluating P₁(a) / Q₁(a).

Step 2 — Find Vertical Asymptotes

After cancellation, set the remaining denominator equal to zero and solve. Each solution gives a vertical asymptote.

Vertical Asymptotes
Set Q₁(x) = 0 → x = a₁, a₂, … are vertical asymptotes
The graph approaches ±∞ near each vertical asymptote.

Step 3 — Determine the Horizontal or Oblique Asymptote

The relationship between the degrees of numerator and denominator dictates end behavior. This is the most formulaic step and produces one of three cases.

Horizontal / Oblique Asymptote Rules
Case 1: deg(P) < deg(Q) → y = 0 Case 2: deg(P) = deg(Q) → y = aₘ / bₙ (ratio of leading coefficients) Case 3: deg(P) = deg(Q) + 1 → oblique asymptote y = mx + b (found via polynomial long division)
If deg(P) exceeds deg(Q) by 2 or more, there is no horizontal or oblique asymptote — the function grows like a polynomial.

Step 4 — Find Intercepts

Intercepts
x-intercepts: set P(x) = 0 and solve (where Q(x) ≠ 0) y-intercept: evaluate f(0) = P(0) / Q(0)

Step 5 — Test Sign Regions & Sketch

The vertical asymptotes and x-intercepts divide the x-axis into intervals. Test a point in each interval to determine whether the function is positive or negative there. Use this information, combined with the asymptotes and intercepts, to sketch each branch of the curve.

✦ Key Takeaway
Graphing a rational function is like detective work: factor to find clues (holes, zeros), set the denominator to zero to find the walls (vertical asymptotes), compare degrees to find the horizon (horizontal or oblique asymptote), and test intervals to fill in the story between the landmarks.
Section 5

Detailed Breakdown — Asymptote Classification & Behavior

To solidify these ideas, let us examine the three asymptote types side by side with concrete examples and a comprehensive behavior chart. The diagram below illustrates all three asymptote types on a single coordinate plane using three different rational functions.

xyy = x (Oblique)y = 0 (HA)x = 0 (VA)f(x) = 1/xg(x) = (x²−1)/xOblique asymptote y = x
Two rational functions on a shared coordinate plane: f(x) = 1/x (cyan) with horizontal asymptote y = 0, and g(x) = (x² − 1)/x (violet) with oblique asymptote y = x (pink dashed). Both share a vertical asymptote at x = 0.

In the diagram above, the cyan curve represents f(x) = 1/x, the simplest rational function. It has a horizontal asymptote along the x-axis (y = 0) and a vertical asymptote along the y-axis (x = 0). The violet curve represents g(x) = (x² − 1)/x, which simplifies to x − 1/x. Because the numerator's degree exceeds the denominator's by exactly one, this function has an oblique asymptote, shown as the dashed pink line y = x.

The following table summarizes the classification rules and their applications:

Degree RelationshipAsymptote TypeFormula / MethodExample
deg(P) < deg(Q)Horizontal: y = 0The x-axis is the asymptotef(x) = 3/(x² + 1)
deg(P) = deg(Q)Horizontal: y = aₘ/bₙRatio of leading coefficientsf(x) = (4x−1)/(2x+5) → y = 2
deg(P) = deg(Q) + 1Oblique: y = mx + bPolynomial long divisionf(x) = (x²+3x)/(x−1) → y = x+4
deg(P) ≥ deg(Q) + 2None (polynomial-like growth)No horizontal or oblique asymptotef(x) = x³/(x−1)

Behavior Near Vertical Asymptotes

When approaching a vertical asymptote x = a, the sign of the function on each side matters for sketching. If the factor (x − a) appears an odd number of times in the simplified denominator, the function changes sign across x = a (one branch goes to +∞, the other to −∞). If the factor appears an even number of times, both branches go the same direction (both to +∞ or both to −∞). You can determine the exact direction by plugging in a test value just to the left and right of a.

Section 6

Worked Example

Let us graph the rational function f(x) = (x² − 4) / (x² − x − 2) completely, identifying all features step by step.

Graphing f(x) = (x² − 4) / (x² − x − 2)

Step 1 — Factor Numerator and Denominator

Factor both polynomials:
P(x) = x² − 4 = (x − 2)(x + 2) Q(x) = x² − x − 2 = (x − 2)(x + 1) The factor (x − 2) appears in both, so x = 2 is a hole, not a vertical asymptote. After cancellation: f(x) = (x + 2) / (x + 1), x ≠ 2

Step 2 — Find the Hole

At x = 2, evaluate the simplified form to find the y-coordinate:
y = (2 + 2) / (2 + 1) = 4/3. So there is a hole at (2, 4/3).

Step 3 — Find Vertical Asymptotes

Set the remaining denominator equal to zero:
x + 1 = 0 → x = −1. There is a vertical asymptote at x = −1.

Step 4 — Find the Horizontal Asymptote

The simplified form (x + 2)/(x + 1) has equal degrees in numerator and denominator (both degree 1). The leading coefficients are both 1, so:
Horizontal asymptote: y = 1/1 = 1. The horizontal asymptote is y = 1.

Step 5 — Find Intercepts

x-intercept: Set the numerator of the simplified form to zero: x + 2 = 0 → x = −2 → Point: (−2, 0). y-intercept: Evaluate f(0): f(0) = (0 + 2)/(0 + 1) = 2 → Point: (0, 2).

Step 6 — Test Sign Regions & Sketch

The critical x-values are x = −2 (x-intercept), x = −1 (VA), and x = 2 (hole). Test a point in each interval:
x = −3: f(−3) = (−1)/(−2) = 0.5 → positive x = −1.5: f(−1.5) = (0.5)/(−0.5) = −1 → negative x = 0: f(0) = 2 → positive x = 3: f(3) = 5/4 = 1.25 → positive

Final Summary

The graph has a vertical asymptote at x = −1, a horizontal asymptote at y = 1, an x-intercept at (−2, 0), a y-intercept at (0, 2), and a hole at (2, 4/3). To the left of x = −2 the function is positive and above the horizontal asymptote. Between x = −2 and x = −1, it passes through zero and becomes negative, plunging to −∞ at the vertical asymptote. To the right of x = −1, it rebounds from +∞, decreasing through y = 2 at the y-intercept and gradually approaching y = 1 from above.
Section 7

Strengths, Limitations & Common Mistakes

The algebraic techniques for graphing rational functions are powerful, but they have boundaries and common pitfalls that students should recognize.

StrengthsLimitations
Asymptote rules (degree comparison) give exact equations for end behavior without graphing technology.For very complex rational functions (high-degree polynomials), factoring may be extremely difficult or impossible by hand.
Sign analysis provides a clear picture of which regions are positive/negative, preventing common sketching errors.The method doesn't tell you exact turning points (local maxima/minima) — that requires calculus or a graphing tool.
Identifying holes prevents mistaking removable discontinuities for asymptotes, which is essential for correct domain analysis.Students sometimes forget to check for holes before identifying vertical asymptotes, leading to phantom asymptotes.
Works for all polynomial-over-polynomial functions, providing a universal procedure.Does not extend directly to non-polynomial rational expressions (e.g., those involving radicals or trig functions).

The Most Common Mistakes

Mistake 1: Assuming the graph never crosses a horizontal asymptote. As we saw in Section 3, the graph can cross its horizontal asymptote — the asymptote only describes behavior as x → ±∞, not necessarily in the middle of the graph.

Mistake 2: Forgetting to factor and cancel before identifying vertical asymptotes. If you set the unfactored denominator to zero without checking for common factors with the numerator, you'll misidentify holes as vertical asymptotes.

Mistake 3: Using the original (unsimplified) function to find hole coordinates. The y-value of a hole is found by substituting into the simplified function, not the original.

Mistake 4: Confusing "no horizontal asymptote" with "approaches nothing." When deg(P) > deg(Q) + 1, the function still has end behavior — it just grows like a polynomial, which should be noted.

✦ Key Takeaway
Always factor first, cancel second, then analyze. The golden rule is: the simplified denominator's zeros give you vertical asymptotes; the original denominator's zeros that canceled give you holes. Keeping this order straight eliminates the two most frequent errors students make.
Section 8

Connection to Advanced Theory

The graphing techniques you learn in Algebra 2 are a preview of deeper concepts that become central in Precalculus and Calculus. Understanding how these ideas evolve helps you see the bigger mathematical picture.

Algebra 2 ConceptAdvanced CounterpartWhat Changes
Horizontal asymptote via degree comparisonLimits at infinity: limx→∞ f(x)The degree rule is a shortcut for evaluating the formal limit. In calculus, you can handle more complex expressions (e.g., with radicals) using L'Hôpital's Rule.
Vertical asymptote from denominator zerosInfinite limits: limx→a f(x) = ±∞Calculus formalizes "approaches infinity" with epsilon-delta definitions and allows precise one-sided limit analysis.
Holes (removable discontinuities)Continuity and removable singularitiesIn Calculus, you define a function as continuous at a point if the limit exists and equals the function value. Holes are exactly where this condition fails.
Sign analysis by intervalsFirst derivative test, curve sketchingCalculus adds information about where the function increases/decreases (via f′) and where it's concave up/down (via f″), providing a complete sketch.
Oblique asymptote via long divisionPartial fraction decompositionIn Calculus 2, you decompose rational functions into simpler fractions for integration — the long division step you learn now is the first stage of that process.

Rational functions also appear throughout applied mathematics. In physics, the intensity of a gravitational or electric field follows an inverse-square law (a rational function of distance). In chemistry, reaction rate expressions are often rational functions of concentration. In economics, average cost functions are rational (total cost divided by quantity). In engineering, transfer functions in control systems are ratios of polynomials in a complex variable — the asymptotic behavior of these functions determines system stability. The skills you build now — factoring, finding asymptotes, sketching behavior — are not just exam techniques but genuine analytical tools you will use repeatedly.

Section 9

Practice Problems

PROBLEM 1 — CONCEPTUAL
Explain in your own words why a rational function with a denominator that has a zero at x = 5 might not have a vertical asymptote at x = 5. What feature would appear instead?
PROBLEM 2 — BASIC IDENTIFICATION
Find all asymptotes and intercepts of f(x) = 3x / (x − 4).
PROBLEM 3 — INTERMEDIATE
For f(x) = (x² − 9) / (x² − 5x + 6), identify any holes, vertical asymptotes, horizontal asymptotes, and intercepts.
PROBLEM 4 — APPLIED / MULTI-STEP
A company's average cost per unit is modeled by C(x) = (500 + 8x) / x, where x is the number of units produced. Find the horizontal asymptote, explain what it means in context, and determine how many units must be produced for the average cost to fall below $9 per unit.
PROBLEM 5 — CRITICAL THINKING / SYNTHESIS
Consider f(x) = (2x² + 5x − 3) / (x + 3). Show that this function has an oblique asymptote, find its equation, and explain whether the graph has any vertical asymptotes. Does the graph cross the oblique asymptote? Justify your answer.
Summary

Lesson Summary

A rational function f(x) = P(x)/Q(x) is a ratio of two polynomials whose graph is shaped by several key features. The first step in graphing is always to factor and simplify, identifying any holes (removable discontinuities) where common factors cancel. The remaining denominator zeros produce vertical asymptotes — invisible vertical walls the graph approaches but never crosses. The long-range behavior is governed by the horizontal asymptote (when degrees are equal or the numerator's degree is smaller) or the oblique asymptote (when the numerator's degree exceeds the denominator's by exactly one), found via the ratio of leading coefficients or polynomial long division, respectively.

After locating asymptotes, you find the x-intercepts (numerator zeros) and the y-intercept (evaluating at x = 0), then use sign analysis across intervals to determine where the graph is above or below the x-axis. Together, these features provide enough information to produce an accurate hand-drawn sketch. These algebraic techniques foreshadow the formal study of limits and continuity in calculus and have wide applications in science, engineering, and economics wherever quantities are modeled as ratios that approach — but never quite reach — boundary values.

Varsity Tutors • Algebra 2 • Graphing Rational Functions and Asymptotes