Graph a rational function by finding five features in order—domain restrictions, vertical asymptotes, holes, horizontal or slant asymptotes, and intercepts—then plot test points between each vertical asymptote and sketch. The whole process takes about 15–20 minutes per function on paper and produces a graph accurate enough for most calculus and precalculus courses. The one rule that trips people up: cancel common factors before graphing, but record every cancelled factor as a hole first.
Map the Domain Restrictions Before Touching a Pencil
Start with the denominator, because it controls everything downstream. Set it equal to zero and solve; each real solution is a place the function cannot exist. For f(x) = (x + 2) / (x² − 9), the denominator factors to (x − 3)(x + 3), so x = 3 and x = −3 leave the domain. Write those two values at the top of your paper before anything else.
Factor the numerator as well, even if you plan to cancel. You need the full factored form to spot shared factors, which behave differently from unshared ones. In f(x) = (x² − 4) / (x² − x − 6), the numerator is (x − 2)(x + 2) and the denominator is (x − 3)(x + 2), so the domain excludes x = 3 and x = −2. Both exclusions matter, but only one becomes a vertical asymptote.
A common failure case: students solve the denominator only after cancelling, then wonder why the graph has a gap at a point that looks continuous. The x-value −2 is still missing from the domain because the original expression was undefined there. Your graph must show an open circle at that x-value no matter what the simplified formula says.
Convert every restriction into a coordinate pair once you have the y-value. Label them temporarily as "asymptote or hole — decide next" and move on. Doing domain work first means every later step has a defined list to check against, which cuts algebraic errors roughly in half compared with jumping straight to intercepts.
Distinguish Holes From Vertical Asymptotes Using Multiplicity
A cancelled factor produces a hole; an uncancelled factor produces a vertical asymptote. That single rule resolves the most common confusion in rational graphing, and the multiplicity of the uncancelled factor tells you how the branches behave near the asymptote.
| Denominator factor after cancelling | Multiplicity | Behavior near x = a | Graph sketch |
|---|---|---|---|
| (x − a)¹ | Odd (1) | Opposite signs on each side | Branches go to +∞ and −∞ |
| (x − a)² | Even (2) | Same sign on each side | Both branches go to +∞ or both to −∞ |
| (x − a)³ | Odd (3) | Opposite signs | Same as multiplicity 1 |
| Shared with numerator | Any | Removable | Open circle (hole) |
For f(x) = (x² − 1) / (x² − 2x + 1) = (x − 1)(x + 1) / (x − 1)², the factor (x − 1) cancels once but a single (x − 1) remains in the denominator. So x = 1 is a vertical asymptote with multiplicity 1, and there is no hole because the cancellation left a factor behind. Check this by evaluating both sides: at x = 0.9 the function is roughly −19, and at x = 1.1 it is roughly 21, so the branches split in opposite directions.
Holes are computed by substituting the cancelled x-value into the simplified function. In f(x) = (x² − 4) / (x² − x − 6), cancel (x + 2) to get (x − 2)/(x − 3). Substituting x = −2 gives (−4)/(−5) = 0.8, so the hole sits at (−2, 0.8). Plot it as an open circle and label the coordinates.
Confirm the multiplicity visually with two test points at most. If both y-values have the same sign, the asymptote has even multiplicity; opposite signs mean odd. This check catches algebra slips that factoring alone won't reveal, particularly when the denominator has a repeated factor disguised by expansion.
Find Horizontal Asymptotes With Three Comparison Cases
Horizontal asymptotes depend on the degrees of numerator and denominator, not their coefficients, and there are exactly three outcomes. Let n be the numerator degree and m the denominator degree.
| Degree comparison | Horizontal asymptote | Worked example |
|---|---|---|
| n < m | y = 0 | f(x) = (x + 1)/(x² + 3), y = 0 |
| n = m | y = leading coefficient ratio | f(x) = (3x² + 1)/(2x² − x), y = 3/2 |
| n = m + 1 | No horizontal; slant asymptote instead | f(x) = (x² + 1)/(x − 2) |
| n > m + 1 | No horizontal or slant | f(x) = (x³)/(x − 1) |
For f(x) = (4x³ − 2x + 1) / (2x³ + x²), the degrees are equal at 3, so the horizontal asymptote is y = 4/2 = 2. That number comes straight from the leading coefficients, and the lower-degree terms never change it. Evaluate the function at x = 100 and x = −100 to confirm both approach 2; you should see roughly 1.98 and 1.98.
Degree differences of more than one (n > m + 1) mean the function grows without bound, so no horizontal line contains it. A function like (x³)/(x − 1) has no horizontal asymptote at all, and sketching without one is correct—don't force a y = 0 line into the graph.
The asymptote can be crossed. For f(x) = (2x² − 8)/(x² + 1), y = 2, but setting (2x² − 8)/(x² + 1) = 2 gives −8 = 2, which has no solution, so this particular function stays below the line. Other functions cross their horizontal asymptote once or twice near the origin before settling. The line is a long-run boundary, not a barrier.
Build Slant Asymptotes by Polynomial Division When the Degree Is One Higher
When the numerator degree exceeds the denominator by exactly one, divide and keep the quotient as the slant asymptote. For f(x) = (x² + 3x + 5)/(x + 1), long division gives quotient x + 2 with remainder 3, so the slant asymptote is y = x + 2.
Perform the division with the same long-division layout you used in elementary arithmetic. Write the numerator under the division bracket, the denominator outside, and subtract term by term. The quotient is the asymptote; the remainder over the divisor is what makes the function deviate from the line.
The graph can cross its slant asymptote. In the example above, the function is x + 2 + 3/(x + 1), which means it sits 3/(x + 1) above the line when x > −1 and below it when x < −1. That vertical offset of 3/(x + 1) shrinks as |x| grows, so the gap between curve and asymptote narrows, but the curve can sit on either side.
Watch for the failure case where n > m + 1: division then produces a polynomial of degree 2 or higher, which is a parabolic or cubic asymptote, not a slant one. Most textbooks stop at slant asymptotes and skip curved asymptotes entirely, so if you see one in a problem set, the expected answer is usually "no linear asymptote."
Compute Intercepts and Symmetry as Quick Plotting Anchors
The y-intercept is f(0), provided x = 0 is in the domain, and it's the single fastest point to compute. For f(x) = (x − 1)/(x + 2), f(0) = −1/2, so (0, −0.5) sits on the graph. If x = 0 is excluded because the denominator is zero there—as in f(x) = 1/x—write "no y-intercept" and move on.
X-intercepts come from setting the numerator of the simplified function to zero. In f(x) = (x² − 4)/(x² − x − 6), the simplified numerator is x − 2, giving a single intercept at (2, 0). The factor x + 2 was cancelled, so x = −2 is a hole, not an intercept. This distinction is where most lost points happen on exams.
Symmetry halves your plotting workload when it applies. Test f(−x): if the result equals f(x), the graph is even and symmetric about the y-axis; if it equals −f(x), the graph is odd and symmetric about the origin. For f(x) = x/(x² + 1), f(−x) = −x/(x² + 1) = −f(x), so the graph is odd—plot the positive x side and reflect each point through the origin.
Use a sign chart on the x-axis to determine where the function is positive or negative between vertical asymptotes. Test one point per interval; the sign tells you whether that branch sits above or below the x-axis, which prevents the classic mistake of drawing a branch in the wrong half-plane.
Plot Test Points Between Every Vertical Asymptote and Intercept
Choose at least two test points per interval between consecutive vertical asymptotes and the outermost endpoints. Use x-values that make arithmetic easy: fractions close to the asymptotes, whole numbers farther away. For f(x) = (x − 1)/(x + 2) with asymptote at x = −2 and x-intercept at 1, test x = −3, −2.5, 0, 2, and 3.
Tabulate the results rather than scribbling them across the graph, because you'll want to check sign and magnitude together. For the same function, f(−3) = 4, f(−2.5) = 7, f(0) = −0.5, f(2) = 0.25, and f(3) = 0.4. The sign flip across x = 1 matches the intercept; the sign flip across x = −2 matches the odd-multiplicity asymptote.
Points close to a vertical asymptote need extra care because small x-changes produce large y-changes. At x = −2.1, f = (−3.1)/(−0.1) = 31; at x = −2.01, f = (−3.01)/(−0.01) = 301. Plot one such point on each side and let the curve approach the asymptote without trying to draw it touching.
Choose test points that fall inside your graph paper's grid, or rescale the y-axis. If a test point yields y = 300 and your grid tops out at 10, either pick x-values farther from the asymptote or label the y-axis with a break. Clean asymptote behavior is more informative than one extreme outlier.
Sketch the Branches Without Crossing Vertical Asymptotes
Draw vertical asymptotes as dashed lines, horizontal and slant asymptotes dashed as well, and holes as open circles before drawing any curve. This structural pass takes about three minutes and prevents the most visible errors.
Each region between consecutive vertical asymptotes contains one branch; regions at the far left and far right each contain one branch as well. For a function with two vertical asymptotes (say x = −3 and x = 3), you have three branches to draw. Connect the test points within each region with a smooth curve that approaches the asymptotes but never touches them.
Match endpoint behavior to the asymptote rules from earlier. If the horizontal asymptote is y = 2 and a test point in the far-right region gives y = 5, the curve descends toward y = 2 as x grows. If a vertical asymptote has multiplicity 1 and test points on either side have opposite signs, the branches dive toward +∞ and −∞ respectively.
Leave holes as circles without filling them. Some graphing software defaults to ignoring holes entirely, which is why students who check their work on a calculator sometimes miss them. Mark the coordinates beside the circle so your instructor can see the value was computed.
Check the Sketch Against a Calculator Without Trusting It Blindly
Graphing calculators and Desmos produce good pictures but hide three things: holes, vertical asymptote placement when the window is coarse, and slant asymptote labels. Use the calculator to confirm branch direction, not to find features you skipped.
Set the window from the features you already found. If vertical asymptotes are at x = 3 and x = −3, a window of x from −10 to 10 and y from −10 to 10 shows all three branches. A window of x from −5 to 5 might clip the outer branches and make the graph look like a single connection across a gap.
Compare asymptote locations to what the calculator draws. Many calculators render a nearly vertical line where the asymptote should be, which can masquerade as part of the curve. If your sketch shows the branch approaching the dashed line without touching, and the calculator shows a solid vertical streak, your sketch is correct.
Holes are the calculator's blind spot. Desmos will not mark a hole in f(x) = (x² − 4)/(x² − x − 6) at (−2, 0.8) unless you plot the point manually. This is why checking a calculator's output against your domain list—not just glancing at the shape—remains necessary.
How Long Each Step Takes and Where Errors Cluster
Budget the work by step, because the place students lose time is usually not algebra but rework caused by skipping the domain pass.
| Step | Typical time on paper | Common error |
|---|---|---|
| Factor and list domain restrictions | 3–4 minutes | Cancelling before recording restrictions |
| Classify holes versus asymptotes | 2 minutes | Treating all cancelled factors as asymptotes |
| Horizontal or slant asymptote | 2–3 minutes | Comparing coefficients instead of degrees |
| Intercepts and symmetry | 2 minutes | Reading x-intercepts from the unsimplified numerator |
| Test points and sign chart | 4–5 minutes | Testing only one point per interval |
| Sketch and verify | 3 minutes | Drawing a branch across a hole |
A precalculus student working by hand should complete the full set in 15–20 minutes; the same problem on a timed exam (typically 10–12 minutes for one rational graph) rewards the domain-first order because it eliminates rework. The 4–5 minutes on test points is the largest single block and the one worth compressing with symmetry when it applies.
Errors cluster in two places: cancelled factors treated as asymptotes, and simplified numerators used for domain. Both trace to skipping step one or rushing it. Spending 3–4 minutes on the factored form at the start pays back more than the same time spent re-checking later.
FAQ
What's the difference between a hole and a vertical asymptote on the graph?
A hole is a single missing point at a cancelled x-value, while a vertical asymptote is a line the curve approaches without ever reaching. In f(x) = (x² − 9)/(x − 3), the factor (x − 3) cancels and leaves (x + 3), so the graph is a line with an open circle at (3, 6). If the factor does not cancel—as with 1/(x − 3)—the branch runs to ±∞ near x = 3. Sketch holes as open circles with coordinates, and asymptotes as dashed lines.
Can a rational function cross its horizontal asymptote?
Yes, and it often does near the origin. For f(x) = (x² − 4)/(x² + 1), the horizontal asymptote is y = 1, but setting the function equal to 1 gives −4 = 1, which has no solution, so this one does not cross. For f(x) = (x² − 9)/(x² + 1), the equation (x² − 9) = (x² + 1) also gives no solution. Crossing happens when the numerator minus the asymptote times the denominator has real roots; check by solving the resulting polynomial equation.
Does a rational function always have a horizontal asymptote?
No—only when the numerator degree is less than or equal to the denominator degree. If the numerator degree exceeds the denominator by one, you get a slant asymptote instead, as in (x² + 1)/(x − 2), which divides to x + 2 + 5/(x − 2). If the degree gap is larger than one, the function has neither a horizontal nor a slant asymptote, and the graph grows without a linear boundary.
How do I know if an asymptote has even or odd multiplicity?
Check the exponent on the uncancelled denominator factor. In f(x) = 1/(x − 2)², the multiplicity is 2 (even), and both branches approach +∞, producing a U-shape on each side. In f(x) = 1/(x − 2)³, the multiplicity is 3 (odd), and the branches go to opposite infinities. Confirm with one test point on each side: same sign means even, opposite signs mean odd.
What does the graph look like when the numerator and denominator are the same degree?
The graph flattens toward a horizontal line at the ratio of leading coefficients, approached from above or below depending on the lower-order terms. In f(x) = (3x² + 2)/(x² − 1), the line is y = 3, and the branches in the far-left and far-right regions sit below or above that line depending on x. Vertical asymptotes at x = ±1 remain because those factors don't cancel.
Why does my calculator show a vertical line where the asymptote is?
Most graphing calculators render extremely steep segments as near-vertical lines when sampling is coarse near a singularity. The line is an artifact of finite pixel resolution, not part of the function. Compare the x-value of the streak to your domain restrictions: it should match the asymptote. Reduce the window width or plot test points closer to the asymptote to see the behavior more clearly.
What's the fastest way to graph a rational function on an exam?
Do domain, holes, and asymptotes first (about 7 minutes), then plot two test points per region and sketch (about 5 minutes). Skip a formal sign chart under time pressure; the test points carry the same information. If the function is odd or even, halve the test points and reflect. Leaving the calculator check for the end preserves time for the structural features graders weight most.