Algebra 2 · Grades 10, 11

Graphing Rational Functions: Asymptotes, Holes and Zeros

Quick answer

A rational function is one polynomial divided by another. Factor both, and the graph's features can be read off: a factor that zeroes only the top gives a zero, one that zeroes only the bottom gives a vertical asymptote, and one that zeroes both gives a hole. Far from the origin, the leading terms take over and decide the horizontal asymptote.

What you'll learn

  • Find the zeros, holes and vertical asymptotes of a factored rational function
  • Explain why a graph approaches a vertical asymptote
  • Find the horizontal asymptote by comparing degrees

A fraction of two polynomials

A rational function divides one polynomial by another:

h(x)=2x+1x−1h(x) = \frac{2x + 1}{x - 1}

The rational expressions lesson simplified these as algebra. Graphed, they show features no polynomial has: a line the curve hugs without touching, and sometimes a single missing point.

The graph of h(x) = (2x + 1)/(x − 1) Two curved branches. One sits to the upper right of the dashed vertical line x equals 1 and above the dashed horizontal line y equals 2; the other sits to the lower left of both lines. The lower-left branch crosses the x-axis at -0.5 and the y-axis at -1. -6-4-2246-5510xy (−0.5, 0)
  • h(x)
  • y = 2
  • x = 1
The graph of h(x) = (2x + 1)/(x − 1)

Four features describe the whole graph:

FeatureFor hhWhere it comes from
zerox=−12x = -\tfrac{1}{2}the top is zero
vertical asymptotex=1x = 1the bottom is zero
horizontal asymptotey=2y = 2the leading terms, 2xx\tfrac{2x}{x}
yy-intercept−1-1h(0)=1−1h(0) = \tfrac{1}{-1}

Why the graph shoots off near a vertical asymptote

Take a function with two factors in the denominator:

f(x)=x−1(x−3)(x+2)f(x) = \frac{x - 1}{(x - 3)(x + 2)}

At x=3x = 3 the denominator is zero and the numerator is 22. Close to 33, the numerator stays near 22 while the denominator gets tiny, and dividing by something tiny makes the result huge.

xx3.13.13.013.013.0013.001
f(x)f(x)4.124.1240.1240.12400.12400.12

Each step ten times closer makes the output about ten times larger. There is no limit to how large it gets, so the graph climbs forever beside the line x=3x = 3 without reaching it. That line is a vertical asymptote.

From the left the denominator is tiny and negative, so the values plunge instead: f(2.99)≈−39.88f(2.99) \approx -39.88. The sign of each factor decides which way each side goes.

The graph of f(x) = (x − 1)/((x − 3)(x + 2)) Three branches separated by dashed vertical asymptotes at x equals -2 and x equals 3. The middle branch falls from high values near x equals -2, crosses the x-axis at x equals 1, and plunges near x equals 3. The outer branches approach the x-axis far from the origin. -6-4-2246-4-224xy (1, 0)
  • f(x)
  • x = −2
  • x = 3
The graph of f(x) = (x − 1)/((x − 3)(x + 2))

A vertical asymptote needs both conditions: the denominator is zero, and the numerator is not. When the numerator is zero too, something else happens.

Holes

g(x)=x2−x−2x−2=(x−2)(x+1)x−2g(x) = \frac{x^2 - x - 2}{x - 2} = \frac{(x - 2)(x + 1)}{x - 2}

The factor x−2x - 2 zeroes both the top and the bottom. For every xx except 22 it cancels, and g(x)=x+1g(x) = x + 1. At x=2x = 2 the original expression is 00\tfrac{0}{0}, which has no value.

So the graph is the line y=x+1y = x + 1 with one point missing, at (2,3)(2, 3). That gap is a hole, drawn as an open circle.

The graph of g(x) = (x² − x − 2)/(x − 2) The line y equals x plus 1 with an open circle at (2, 3), where the function is undefined. -4-2246-2246xy hole (2, 3)
  • g(x)
The graph of g(x) = (x² − x − 2)/(x − 2)

End behavior and horizontal asymptotes

Far from the origin, only the highest-degree terms matter, because they dwarf everything else. Compare the degrees of the top and bottom:

DegreesHorizontal asymptoteExample
bottom highery=0y = 0x−1(x−3)(x+2)\tfrac{x - 1}{(x - 3)(x + 2)}
equalratio of leading coefficients2x+1x−1→y=2\tfrac{2x + 1}{x - 1} \to y = 2
top highernonex2+1x−1\tfrac{x^2 + 1}{x - 1}

For hh, the leading terms are 2xx=2\tfrac{2x}{x} = 2. At x=1000x = 1000 the function is about 2.0032.003, and at x=−1000x = -1000 about 1.9971.997 — closing in on 22 from both sides.

A graph can cross its horizontal asymptote closer in. The asymptote only describes where the graph heads far away. A vertical asymptote, by contrast, is never crossed, since the function has no value there.

Worked examples

Common mistakes

Practice problems

  1. Find the zero, vertical asymptote and horizontal asymptote of f(x)=x−6x+2f(x) = \tfrac{x - 6}{x + 2}.

    Answer

    Zero x=6x = 6; vertical asymptote x=−2x = -2; horizontal asymptote y=1y = 1.

    Full solution

    The top is zero at 66, the bottom at −2-2, and the degrees are equal with leading coefficients 11 and 11.

  2. Find the vertical asymptotes of f(x)=3x2−9f(x) = \tfrac{3}{x^2 - 9}.

    Answer

    x=3x = 3 and x=−3x = -3

    Full solution

    x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3) is zero at 33 and −3-3, and the numerator 33 is never zero.

  3. Describe the graph of g(x)=x2−4x−2g(x) = \tfrac{x^2 - 4}{x - 2}.

    Answer

    The line y=x+2y = x + 2 with a hole at (2,4)(2, 4).

    Full solution

    (x−2)(x+2)x−2=x+2\tfrac{(x - 2)(x + 2)}{x - 2} = x + 2 for every x≠2x \ne 2. At x=2x = 2 the function is undefined, so the point (2,4)(2, 4) is missing.

  4. Find the horizontal asymptote of f(x)=5x2+12x2−3f(x) = \tfrac{5x^2 + 1}{2x^2 - 3}.

    Answer

    y=52y = \tfrac{5}{2}

    Full solution

    The degrees are equal, so divide the leading coefficients: 52\tfrac{5}{2}.

  5. Does f(x)=x+1x2+1f(x) = \tfrac{x + 1}{x^2 + 1} have any vertical asymptotes? What is its horizontal asymptote?

    Answer

    No vertical asymptotes; horizontal asymptote y=0y = 0.

    Full solution

    x2+1x^2 + 1 is at least 11 for every xx, so the denominator is never zero.

    The bottom has the higher degree, so the graph approaches y=0y = 0.

  6. Find the yy-intercept of h(x)=2x+1x−1h(x) = \tfrac{2x + 1}{x - 1}.

    Answer

    −1-1

    Full solution

    h(0)=1−1=−1h(0) = \tfrac{1}{-1} = -1.

  7. For f(x)=1x−2f(x) = \tfrac{1}{x - 2}, find f(2.01)f(2.01) and f(1.99)f(1.99). What do they show?

    Answer

    100100 and −100-100: the graph rises on the right of x=2x = 2 and falls on the left.

    Full solution

    10.01=100\tfrac{1}{0.01} = 100 and 1−0.01=−100\tfrac{1}{-0.01} = -100.

    The denominator’s sign changes at 22, so the two branches head in opposite directions beside the asymptote.

  8. For f(x)=x−1(x−3)(x+2)f(x) = \tfrac{x - 1}{(x - 3)(x + 2)}, find the zero and the yy-intercept.

    Answer

    Zero at x=1x = 1; yy-intercept 16\tfrac{1}{6}.

    Full solution

    The top is zero at 11, where the bottom is not zero.

    f(0)=−1(−3)(2)=16f(0) = \tfrac{-1}{(-3)(2)} = \tfrac{1}{6}.

  9. Explain why x=2x = 2 is a hole in x2−4x−2\tfrac{x^2 - 4}{x - 2} rather than a vertical asymptote.

    Answer

    Both the top and bottom are zero there, and the common factor cancels.

    Full solution

    A vertical asymptote needs a tiny denominator divided into a numerator that stays away from zero, which makes the output huge.

    Here the numerator shrinks at the same rate, because x−2x - 2 is a factor of both. After canceling, the values near 22 approach 44, a finite number, so the graph passes smoothly through the gap and only one point is missing.

  10. Luis says x2−9x−3\tfrac{x^2 - 9}{x - 3} has a vertical asymptote at x=3x = 3, because the denominator is zero there. Find his error.

    Hint

    Factor the numerator.

    Answer

    The factor x−3x - 3 cancels, so there is a hole at (3,6)(3, 6), not an asymptote.

    Full solution

    (x−3)(x+3)x−3=x+3\tfrac{(x - 3)(x + 3)}{x - 3} = x + 3 for x≠3x \ne 3.

    Near x=3x = 3 the values approach 66 instead of growing without bound. The graph is the line y=x+3y = x + 3 with the point (3,6)(3, 6) missing.

    A zero denominator makes a vertical asymptote only when the numerator is not also zero.

Frequently asked questions

How do I find the vertical asymptotes of a rational function?

Factor the numerator and denominator and cancel any common factors. Each remaining factor of the denominator that equals zero at x = a gives a vertical asymptote x = a.

What is the difference between a hole and a vertical asymptote?

A hole comes from a factor that cancels, so the graph is only missing one point. An asymptote comes from a factor left in the denominator, and the graph runs off toward infinity there.

How do I find the horizontal asymptote?

Compare degrees. If the bottom has the higher degree, it is y = 0. If the degrees are equal, it is the ratio of the leading coefficients. If the top is higher, there is none.

Can a graph cross a horizontal asymptote?

Yes. A horizontal asymptote describes behavior far from the origin, and the graph may cross it closer in. A vertical asymptote is never crossed.

Where are the zeros of a rational function?

Where the numerator is zero and the denominator is not, after canceling common factors.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSF.IF.C.7dInterpreting Functions(+) Graph rational functions, identifying zeros and asymptotes when suitable factorizations are available, and showing end behavior.