This site is a work in progress. New lessons are added regularly. Contact us

Graphs of Rational Functions

Learning goals

  • Exclude the zeros of the original denominator
  • Define an asymptote as a line the curve stays near
  • Tell a hole from a vertical asymptote by whether the factor survives
  • Compare degrees for the horizontal asymptote
  • Divide to find an oblique asymptote when the degree exceeds by one
  • Cross a horizontal asymptote freely, but never a vertical one

The simplest rational function, and what its graph does

A rational function is one polynomial divided by another,

f(x)=P(x)Q(x),f(x) = \frac{P(x)}{Q(x)},

where PP and QQ are polynomials and QQ is not the zero polynomial. Because division by zero has no value, the domain of ff is every real number except the zeros of QQ.

Start with the smallest example there is, f(x)=1xf(x) = \dfrac{1}{x}, whose only excluded input is x=0x = 0. A short table shows what happens as xx creeps toward the forbidden value from the right:

xx110.50.50.10.10.010.010.0010.001
1x\frac{1}{x}1122101010010010001000

The output has no ceiling. Name any height you like, say a million, and x=12,000,000x = \tfrac{1}{2{,}000{,}000} already beats it. Travel the other way instead, out toward large xx, and the outputs shrink toward zero without ever reaching it: f(1000)=0.001f(1000) = 0.001, and f(1,000,000)=0.000001f(1{,}000{,}000) = 0.000001. Negative inputs behave the same way with the signs flipped.

The graph of y = 1/x with the axes as asymptotesTwo hyperbola branches, one in the first quadrant and one in the third, approaching the x-axis and the y-axis without meeting them.-4-22442-2-4y = 1/xx = 0y = 0
The graph of y = 1/x. The two dashed lines are its asymptotes, and here they are the axes themselves: the curve climbs the y-axis without ever touching it, and flattens toward the x-axis without ever reaching it.

Both dashed lines in that picture are asymptotes. Here is the honest definition, and it is the one we will use all lesson:

A line is an asymptote of a curve when the distance from the curve to that line becomes and stays smaller than any distance you care to name. That happens once you travel far enough out along the curve.

“Smaller than any distance you care to name” is doing real work in that definition. That phrase is exactly the one a first course in calculus makes precise, with limits. We are not going to fake that machinery here. We do not need it: everything below is ordinary algebra, and it produces the right lines and the right picture. Naming the edge of your tools is not an apology, it is how you know what you have proved.

The definition covers all three kinds at once. The yy-axis is an asymptote of y=1xy = \frac 1x because the points of the curve sit at horizontal distance x|x| from the line x=0x = 0. That horizontal distance can be made as small as you please while the curve runs off the top of the page. The xx-axis is an asymptote because the vertical distance 1x\left|\frac 1x\right| can be made as small as you please by taking xx far enough out.

Holes and vertical asymptotes

Every excluded input comes from a zero of the original denominator, and there are exactly two things a graph can do at one. Compare these two functions, which are undefined at the same place, x=2x = 2:

g(x)=x24x2,h(x)=1x2.g(x) = \frac{x^2 - 4}{x - 2}, \qquad h(x) = \frac{1}{x - 2}.

For gg, factor and cancel. Since x24=(x2)(x+2)x^2 - 4 = (x-2)(x+2),

g(x)=(x2)(x+2)x2=x+2for every x2.g(x) = \frac{(x-2)(x+2)}{x-2} = x + 2 \quad \text{for every } x \neq 2 .

That cancellation is the move from the simplifying lesson, and its warning applies here in full. Cancelling preserves the value at every input where the original was defined, but it does not restore the input that was thrown away. So gg agrees with the line y=x+2y = x+2 everywhere except at x=2x=2, where gg has no value at all. Its graph is that line with one point removed: a hole.

For hh nothing cancels, and the outputs behave like the table from 1x\frac 1x. As xx approaches 22 the denominator becomes tiny while the numerator stays 11, so the values blow up. The graph tears apart along the line x=2x = 2, which is a vertical asymptote.

A hole compared with a vertical asymptoteLeft panel: the line y = x + 2 with an open circle at (2, 4). Right panel: the two branches of 1/(x-2) beside a dashed vertical asymptote at x = 2.y = (x² - 4)/(x - 2)hole at (2, 4)y = 1/(x - 2)vertical asymptote at x = 2
Two functions, both undefined at x = 2, with completely different graphs. On the left the factor (x - 2) cancels, so the curve is an ordinary line with a single point punched out. On the right the factor survives in the denominator, so the values blow up along the dashed line.

So the same excluded input can produce a missing dot or a cliff, and the deciding question is whether the offending factor cancels. Here is why, and the argument is worth reading closely because it also tells you exactly how much cancelling is enough.

Why a factor that cancels leaves a hole, and one that survives forces a vertical asymptote#

Let f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)} and let aa be a zero of QQ. Pull out the largest power of (xa)(x-a) that divides each polynomial, writing

P(x)=(xa)mp(x),Q(x)=(xa)nq(x),P(x) = (x-a)^m\, p(x), \qquad Q(x) = (x-a)^n\, q(x),

where n1n \ge 1 because aa is a zero of QQ, where m0m \ge 0, and where p(a)0p(a) \neq 0 and q(a)0q(a) \neq 0. Those last two facts are exactly what “largest power” buys us. If p(a)p(a) were zero then the factor theorem would hand us another copy of (xa)(x-a) inside pp, and we would not have pulled out the largest power after all.

For every xx other than aa we may cancel, and there are two outcomes.

Suppose first that mnm \ge n, so the numerator carries at least as many copies of (xa)(x-a) as the denominator. Cancelling all nn of the denominator’s copies leaves

f(x)=(xa)mnp(x)q(x)(xa),f(x) = \frac{(x-a)^{m-n}\, p(x)}{q(x)} \qquad (x \neq a),

and the exponent mnm-n is now zero or positive. The right-hand side is a perfectly ordinary expression at x=ax=a as well, because its denominator q(a)q(a) is not zero, and it takes a finite value there. That value is p(a)q(a)\frac{p(a)}{q(a)} when m=nm = n, since the factor (xa)mn(x-a)^{m-n} is then absent altogether, and it is 00 when m>nm > n, since the factor is present and vanishes at aa. So ff agrees, at every input where ff is defined, with a function whose graph sails straight through x=ax=a at an ordinary height. The original ff is still undefined at aa, since the original denominator vanishes there, so the graph of ff is that unremarkable curve with the single point above x=ax=a removed. That is a hole.

Suppose instead that m<nm < n, so the denominator keeps at least one copy of (xa)(x-a) after cancelling. Write k=nm1k = n - m \ge 1; then

f(x)=p(x)(xa)kq(x)(xa).f(x) = \frac{p(x)}{(x-a)^{k}\, q(x)} \qquad (x \neq a).

Look at the two pieces separately. The ratio p(x)q(x)\frac{p(x)}{q(x)} is built from polynomials, whose graphs are unbroken curves, so a small change in xx only makes a small change in p(x)p(x) and in q(x)q(x). Since p(a)q(a)\frac{p(a)}{q(a)} is a nonzero number, that steadiness lets us pick a small interval around aa on which p(x)q(x)\left|\frac{p(x)}{q(x)}\right| stays above some fixed positive number cc. The other piece, (xa)k(x-a)^{k}, we control completely: it is as small as we like once xx is close enough to aa. Putting the pieces together, on that interval

f(x)    cxak.|f(x)| \;\ge\; \frac{c}{|x-a|^{k}} .

Now name any height HH, however large. The quantity xak|x-a|^{k} is a product of kk copies of a number we can shrink at will. So we can bring xx close enough to aa to force xak|x-a|^{k} below cH\frac{c}{H}, and the inequality above then gives f(x)H|f(x)| \ge H. The curve therefore leaves every horizontal band you draw, no matter how tall. Yet the curve’s points sit at horizontal distance xa|x-a| from the line x=ax=a, a distance we just made as small as we pleased. The line x=ax=a is a vertical asymptote.

Read the two cases again and notice what the dividing line actually is. It is not “does (xa)(x-a) appear in the numerator”, it is does the numerator carry at least as many copies of (xa)(x-a) as the denominator. The factor must cancel completely. A single (x1)(x-1) upstairs against (x1)2(x-1)^2 downstairs cancels one copy and leaves one behind, and one copy left in a denominator is all it takes.

Worked example 1 Find the domain, holes, and vertical asymptotes of f(x)=x29x22x3f(x)=\frac{x^2-9}{x^2-2x-3}

Factor the top and the bottom completely:

f(x)=(x3)(x+3)(x3)(x+1).f(x) = \frac{(x-3)(x+3)}{(x-3)(x+1)} .

The domain comes from the original denominator, whose zeros are 33 and 1-1, so the domain is every real number except x=3x = 3 and x=1x = -1.

Now ask which of those two factors cancels. The factor (x3)(x-3) appears once on top and once on the bottom, so it cancels completely:

f(x)=x+3x+1(x3,  x1).f(x) = \frac{x+3}{x+1} \qquad (x \neq 3,\; x \neq -1).

Nothing is left of (x3)(x-3) in the denominator, so x=3x=3 gives a hole. Its height is the value of the simplified expression there:

3+33+1=64=32,\frac{3+3}{3+1} = \frac{6}{4} = \frac{3}{2},

so the hole sits at (3,32)\left(3, \tfrac 32\right). The factor (x+1)(x+1) never cancelled, so x=1x = -1 is a vertical asymptote.

Worked example 2 Classify the excluded inputs of f(x)=x2+3x4(x1)2(x+2)f(x)=\frac{x^2+3x-4}{(x-1)^2(x+2)}

The numerator factors as x2+3x4=(x+4)(x1)x^2 + 3x - 4 = (x+4)(x-1), so

f(x)=(x+4)(x1)(x1)2(x+2).f(x) = \frac{(x+4)(x-1)}{(x-1)^2 (x+2)} .

The original denominator is zero at x=1x = 1 and x=2x = -2, so those two inputs are out of the domain. The factor (x1)(x-1) does appear in the numerator, which is precisely the trap. Count copies: one on top, two on the bottom. Cancelling one from each leaves a copy behind,

f(x)=x+4(x1)(x+2)(x1,  x2),f(x) = \frac{x+4}{(x-1)(x+2)} \qquad (x \neq 1,\; x \neq -2),

and a surviving (x1)(x-1) in the denominator means the values still blow up near x=1x=1. So x=1x = 1 is a vertical asymptote, not a hole, and so is x=2x = -2. This function has no holes at all. Appearing in the numerator is not enough; the factor has to cancel completely.

Check your understanding

The function f(x)=(x5)(x+1)(x5)(x2)f(x)=\dfrac{(x-5)(x+1)}{(x-5)(x-2)} is undefined at x=5x=5 and at x=2x=2. What does its graph do at each?

Answer choices

End behavior: what the graph does far out

Vertical asymptotes tell you what happens near the bad points. End behavior is the other question: what does the curve do as you travel far to the right or far to the left? There is a three-case rule for this, and it is worth deriving rather than memorizing, because the derivation is one line and the rule falls out of it.

Take

f(x)=3x2+5x12x27f(x) = \frac{3x^2 + 5x - 1}{2x^2 - 7}

and divide the numerator and the denominator by x2x^2, the highest power of xx in the denominator. For x0x \neq 0 this changes nothing about the value of the fraction:

f(x)=3+5x1x227x2.f(x) = \frac{3 + \dfrac{5}{x} - \dfrac{1}{x^2}}{\,2 - \dfrac{7}{x^2}\,} .

Now every term that is not a leading coefficient has an xx underneath it, and those terms are exactly the ones that die away when xx is huge. At x=1000x = 1000 the numerator is 3+0.0050.0000013 + 0.005 - 0.000001 and the denominator is 20.0000072 - 0.000007, so f(1000)3.0052.0001.5025f(1000) \approx \frac{3.005}{2.000} \approx 1.5025, already within three thousandths of 32\frac 32. Push xx further out and the little terms shrink further. The curve has the horizontal asymptote y=32y = \frac 32, and notice where that number came from: the ratio of the leading coefficients, 32\frac{3}{2}, and nothing else.

The same division works in general. Given f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)} with degP=m\deg P = m and degQ=n\deg Q = n, divide top and bottom by xnx^n. The denominator turns into its leading coefficient plus a pile of terms with powers of xx underneath them. For large x|x| the denominator is as close to that leading coefficient as you like. Everything then depends on what the numerator turned into, and there are three possibilities.

The bottom outgrows the top (m<nm < n). Dividing by xnx^n leaves every numerator term with a power of xx underneath it, so the whole numerator dies away while the denominator settles on a nonzero number. For example

2x+1x2+3=2x+1x21+3x2,\frac{2x+1}{x^2+3} = \frac{\dfrac{2}{x} + \dfrac{1}{x^2}}{\,1 + \dfrac{3}{x^2}\,},

whose numerator shrinks to nothing and whose denominator heads for 11. The horizontal asymptote is y=0y = 0, the xx-axis.

The degrees tie (m=nm = n). This is the case we just did. Both leading terms survive the division and everything else dies away, so the horizontal asymptote is y=aby = \frac{a}{b}, where aa and bb are the leading coefficients of PP and QQ.

The top outgrows the bottom (m>nm > n). Dividing by xnx^n leaves the numerator with a positive power of xx still in it, so the numerator grows without bound while the denominator settles down. For example

x3+1x2+1=x+1x21+1x2,\frac{x^3+1}{x^2+1} = \frac{x + \dfrac{1}{x^2}}{\,1 + \dfrac{1}{x^2}\,},

which behaves like xx itself for large xx. There is no horizontal asymptote: no horizontal line can hold a curve that climbs forever. When the top outgrows the bottom by exactly one degree, as it does here, the curve is chased by a slanted line instead, with one exception. The next section pins that exception down. When it outgrows the bottom by two degrees or more, there is no straight-line asymptote at all; the curve grows like a polynomial of degree mnm-n.

One small bonus, and it saves work later. Cancelling a common factor from the top and the bottom lowers both degrees by the same amount and divides both leading coefficients by the same number. So the cancelling changes neither the comparison mm against nn nor the ratio ab\frac ab. You may read the end behavior off the original form or off the simplified form, and you will get the same answer.

Check your understanding

What is the horizontal asymptote of f(x)=2x3+75x2xf(x) = \dfrac{2x^3+7}{5x^2-x}?

Answer choices

Oblique asymptotes, and why long division finds them

When the numerator’s degree is exactly one more than the denominator’s, the curve runs away from every horizontal line, and yet it is not wild. Far out, the curve hugs a slanted line. (Almost always. There is one exception, and we will corner it at the end of this section.) Finding that line needs no new tool. You already own it, from the polynomial division chapter.

Divide the polynomials. For

f(x)=x2+2x1,f(x) = \frac{x^2 + 2}{x - 1},

long division gives a quotient of x+1x+1 and a remainder of 33: the first step takes x(x1)=x2xx(x-1) = x^2-x and leaves x+2x+2, and the second takes 1(x1)=x11 \cdot (x-1) = x-1 and leaves 33. Check it by multiplying back, which is the habit worth keeping: (x+1)(x1)+3=x21+3=x2+2(x+1)(x-1) + 3 = x^2 - 1 + 3 = x^2 + 2, the numerator we started with. (The remainder theorem agrees, since the numerator at x=1x=1 is 1+2=31 + 2 = 3.) Written the way division always lets you write it,

f(x)=x+1+3x1.f(x) = x + 1 + \frac{3}{x-1} .

Read that as a sentence. The function is a line, y=x+1y = x+1, plus a correction term 3x1\frac{3}{x-1}. The correction is a proper fraction, because the remainder of a division always has smaller degree than the divisor. And a proper fraction is exactly the kind of thing that dies away far out. At x=101x = 101 it is 3100=0.03\frac{3}{100} = 0.03; at x=1001x = 1001 it is 0.0030.003. So for large xx the curve sits a whisker above the line y=x+1y = x+1 and settles onto it. That line is an oblique asymptote (also called a slant asymptote). The vertical distance from the curve to the line is precisely the correction term, so we can make that distance as small as we like by going far enough out. That is the definition, satisfied on the nose.

An oblique asymptoteThe graph of (x^2+2)/(x-1) with a dashed vertical asymptote at x = 1 and a dashed oblique asymptote y = x + 1.-4-224684-4x = 1y = x + 1
The graph of y = (x² + 2)/(x - 1), which long division rewrites as y = x + 1 + 3/(x - 1). The curve blows up along the vertical asymptote x = 1 and settles onto the slanted line y = x + 1 far out in both directions.

This is the chapter’s best payoff. Polynomial long division was introduced two chapters ago as a way to factor and to hunt for roots. It turns out to be the tool that reads the shape of a graph off its formula. The reason is that it splits a rational function into the part that matters far out (the quotient) and the part that vanishes far out (the remainder over the denominator).

And once you see it that way, the horizontal case is the same theorem. Divide x3x2\frac{x-3}{x-2} and you get a quotient of 11 with a remainder of 1-1:

x3x2=11x2.\frac{x-3}{x-2} = 1 - \frac{1}{x-2} .

A constant quotient is a horizontal asymptote, y=1y=1. A linear quotient is an oblique asymptote. Same division, same reasoning, and the degree comparison from the last section is just a shortcut for predicting which one you are about to get.

One condition is doing quiet work in all of this, and it is worth dragging into the light: the remainder has to be nonzero. The whole argument runs on the correction term R(x)Q(x)\frac{R(x)}{Q(x)} being small but present. If the division comes out exact, so that RR is zero, then ff is the quotient wherever it is defined, and there is nothing left for the curve to approach. Watch it happen:

3x2+5x2x+2=(3x1)(x+2)x+2=3x1(x2).\frac{3x^2+5x-2}{x+2} = \frac{(3x-1)(x+2)}{x+2} = 3x-1 \qquad (x \neq -2).

The numerator’s degree is one more than the denominator’s, exactly the case that is supposed to produce an oblique asymptote, and yet this graph has none. It does not approach the line y=3x1y=3x-1; it is that line, with a hole punched at (2,7)(-2,-7). So state the rule with its hypothesis attached. When the numerator’s degree is one more than the denominator’s and the division leaves a nonzero remainder, the quotient is an oblique asymptote. When the remainder is zero, factor and enjoy your line. This is the same exception you will meet again in a moment when we ask whether a graph can cross a horizontal asymptote.

Worked example 3 Find the asymptotes of f(x)=2x2x1x+1f(x)=\frac{2x^2-x-1}{x+1}

First check for a hole, because you always check for a hole. The numerator factors as 2x2x1=(2x+1)(x1)2x^2 - x - 1 = (2x+1)(x-1), which carries no factor of (x+1)(x+1), so nothing cancels and x=1x = -1 is a vertical asymptote.

The numerator has degree 22 and the denominator degree 11, one more on top, so expect an oblique asymptote and go find it by long division. Dividing 2x2x12x^2 - x - 1 by x+1x+1 gives the quotient 2x32x-3 with remainder 22, which checks out because (2x3)(x+1)+2=2x2x3+2=2x2x1(2x-3)(x+1) + 2 = 2x^2 - x - 3 + 2 = 2x^2 - x - 1. Therefore

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

The oblique asymptote is y=2x3y = 2x-3. To see that the leftover term really is negligible far out, put x=101x = 101: the correction is 21020.02\frac{2}{102} \approx 0.02, so f(101)199.02f(101) \approx 199.02 while the line gives 2(101)3=1992(101) - 3 = 199. The curve is riding just above its asymptote, and the gap keeps closing.

Can a graph cross an asymptote?

Students routinely picture an asymptote as a fence the curve is forbidden to touch. That belief is half right, and the half that is wrong causes real errors.

A graph can never cross a vertical asymptote. This one needs no argument beyond the domain. If x=ax=a is a vertical asymptote then aa is not in the domain, so the graph has no point whose first coordinate is aa. There is nothing there to cross with.

A graph absolutely can cross a horizontal or an oblique asymptote, and often does. Look again at what the definition demands: the curve must approach the line far out. It says nothing whatever about the middle of the picture. A curve is free to cut straight through its horizontal asymptote near the origin and then come back and settle onto it.

Here is one doing exactly that. Take

f(x)=2x2+x1x2+1.f(x) = \frac{2x^2 + x - 1}{x^2 + 1} .

The degrees tie, so the horizontal asymptote is y=21=2y = \frac 21 = 2. To find where the curve meets that line, set the function equal to 22 and solve, which is a rational equation of the kind you solved last lesson:

2x2+x1x2+1=2    2x2+x1=2x2+2    x=3.\frac{2x^2+x-1}{x^2+1} = 2 \;\Longrightarrow\; 2x^2 + x - 1 = 2x^2 + 2 \;\Longrightarrow\; x = 3 .

Check it: f(3)=18+319+1=2010=2f(3) = \frac{18+3-1}{9+1} = \frac{20}{10} = 2. The curve crosses its horizontal asymptote at the point (3,2)(3,2), and then goes on approaching it from above for the rest of the journey.

A curve crossing its horizontal asymptoteThe graph of (2x^2+x-1)/(x^2+1) meeting the dashed line y = 2 at the point (3, 2).-5510y = 2(3, 2)
The graph of y = (2x² + x - 1)/(x² + 1) crosses its horizontal asymptote y = 2 at the point (3, 2), and still approaches that line far out in both directions. An asymptote is a promise about the far end of the curve, not a fence.

Why does one crossing not spoil the asymptote? Because solving f(x)=cf(x) = c turns into the polynomial equation P(x)cQ(x)=0P(x) - c\,Q(x) = 0, and there are only two ways that can go. Either PcQP - cQ is the zero polynomial, in which case ff equals cc at every input where it is defined. Then the graph does not approach that line, it lies on it (this is exactly what x6x6=1\frac{x-6}{x-6} = 1 does, a horizontal line with a hole). Or PcQP - cQ is a genuine nonzero polynomial, and then it has only finitely many roots, so the curve gets only finitely many chances to meet the line. Go far enough out and it has used them all up, after which it can only approach.

The same goes for oblique asymptotes, with one honest caveat. Since f(x)(quotient)f(x) - (\text{quotient}) equals the remainder over the denominator, the curve meets its oblique asymptote exactly where the remainder is zero. When the denominator is linear the remainder is a constant, and a nonzero constant is never zero, so those curves never touch their slanted line. That is why the graph of x2+2x1\frac{x^2+2}{x-1} stays strictly above y=x+1y = x+1 on the right. But with a bigger denominator the remainder is free to have a root. Dividing x3+1x^3+1 by x2+1x^2+1 gives

x3+1x2+1=x+1xx2+1,\frac{x^3+1}{x^2+1} = x + \frac{1-x}{x^2+1},

whose remainder 1x1-x vanishes at x=1x=1, so that curve crosses its oblique asymptote y=xy=x at the point (1,1)(1,1). Never say never.

Worked example 4 Does the graph of f(x)=5x23x2x2+x6f(x)=\frac{5x^2-3x}{2x^2+x-6} cross its horizontal asymptote?

Factor the denominator first, to be sure nothing cancels: 2x2+x6=(2x3)(x+2)2x^2 + x - 6 = (2x-3)(x+2), and the numerator is x(5x3)x(5x-3), which shares neither factor. So there are no holes, and the vertical asymptotes are x=32x = \frac 32 and x=2x = -2.

The degrees tie at 22, so the horizontal asymptote is the ratio of the leading coefficients, y=52y = \frac 52. To find any crossing, set the function equal to that value and clear the fraction:

5x23x2x2+x6=52    2(5x23x)=5(2x2+x6).\frac{5x^2-3x}{2x^2+x-6} = \frac{5}{2} \;\Longrightarrow\; 2(5x^2 - 3x) = 5(2x^2 + x - 6).

Expand both sides and watch the quadratic terms destroy each other, which is exactly what always happens in this calculation when the degrees tie:

10x26x=10x2+5x30    11x=30    x=3011.10x^2 - 6x = 10x^2 + 5x - 30 \;\Longrightarrow\; -11x = -30 \;\Longrightarrow\; x = \frac{30}{11}.

That value is in the domain (it is neither 32\frac 32 nor 2-2), so the crossing is real. The graph meets its horizontal asymptote at (3011,52)\left(\frac{30}{11}, \frac 52\right), roughly (2.73,2.5)(2.73,\, 2.5), and approaches it from the other side afterwards.

Check your understanding

Which statement is true of the graph of a rational function?

Answer choices

Putting it all together

Every tool is now on the table, so here is the whole sketch as one routine. Nothing in it is new.

  1. Factor the numerator and the denominator completely.
  2. Domain. Exclude every zero of the original denominator. Do this before you cancel anything.
  3. Holes and vertical asymptotes. Cancel the common factors. An excluded input whose factor cancelled completely is a hole; anything still left in the denominator is a vertical asymptote.
  4. Hole heights. Evaluate the simplified expression at each hole’s xx.
  5. Intercepts. The xx-intercepts are the zeros of the simplified numerator that survive in the domain; the yy-intercept is f(0)f(0), if 00 is in the domain.
  6. End behavior. Compare the degrees for a horizontal asymptote, or divide for an oblique one.
  7. Crossings. Solve f(x)=cf(x) = c (or f(x)=mx+bf(x) = mx + b) to see whether the curve meets that asymptote.
  8. Sign chart. Mark the xx-intercepts and the vertical asymptotes on a number line and test one point in each interval. The sign can only change at those places, so one test point settles a whole interval, and the signs tell you which way each branch runs.

Worked example 5 Sketch f(x)=x2x6x24f(x)=\frac{x^2-x-6}{x^2-4} completely

Factor.

f(x)=(x3)(x+2)(x2)(x+2).f(x) = \frac{(x-3)(x+2)}{(x-2)(x+2)} .

Domain. The original denominator is zero at x=2x = 2 and x=2x = -2, so both are excluded.

Holes and vertical asymptotes. The factor (x+2)(x+2) appears once top and once bottom, so it cancels completely and x=2x = -2 is a hole. The factor (x2)(x-2) survives, so x=2x = 2 is a vertical asymptote. After cancelling,

f(x)=x3x2(x2,  x2).f(x) = \frac{x-3}{x-2} \qquad (x \neq 2,\; x \neq -2).

Hole height. Put x=2x = -2 into the simplified expression:

2322=54=54,\frac{-2-3}{-2-2} = \frac{-5}{-4} = \frac 54 ,

so the hole is at (2,54)\left(-2, \tfrac 54\right).

Intercepts. The simplified numerator is zero at x=3x = 3, which is in the domain, so the xx-intercept is (3,0)(3,0). For the yy-intercept, f(0)=32=32f(0) = \frac{-3}{-2} = \frac 32, giving (0,32)\left(0, \tfrac 32\right).

End behavior. The degrees tie (22 and 22) and both leading coefficients are 11, so the horizontal asymptote is y=1y = 1. Long division says the same thing in more detail:

f(x)=11x2,f(x) = 1 - \frac{1}{x-2},

which even tells you which side the curve approaches from. For large positive xx the correction 1x2-\frac{1}{x-2} is a small negative number, so the curve lies just below y=1y=1 on the right. For large negative xx the correction is a small positive number, so the curve lies just above y=1y=1 on the left.

Crossings. Setting x3x2=1\frac{x-3}{x-2} = 1 gives x3=x2x - 3 = x - 2, that is 3=2-3 = -2, which is false. This graph never meets its horizontal asymptote. (The decomposition above already told us so: the correction 1x2-\frac{1}{x-2} is never zero.)

Sign chart. The sign can change only at the zero x=3x=3 and at the vertical asymptote x=2x=2. The hole at x=2x=-2 changes nothing, since the factor that made it cancelled out of the formula. Test one point in each interval:

Intervaltest valuex3x2\dfrac{x-3}{x-2} at that valuethe branch is
x<2x < 2x=0x=032=32>0\frac{-3}{-2} = \frac 32 > 0above the xx-axis
2<x<32 < x < 3x=2.5x=2.50.50.5=1<0\frac{-0.5}{0.5} = -1 < 0below the xx-axis
x>3x > 3x=4x=412>0\frac{1}{2} > 0above the xx-axis

Now assemble. On the left the curve comes in just above y=1y=1 and passes through the hole’s neighbourhood, punching out the single point (2,54)\left(-2,\tfrac 54\right). The curve then climbs through (0,32)\left(0, \tfrac 32\right) and, staying positive, rockets up the left side of x=2x=2. On the right of x=2x=2 it starts far down (negative, per the sign chart), climbs through the intercept (3,0)(3,0), and creeps back up toward y=1y=1 from below.

A complete sketch with a hole, a vertical asymptote, and a horizontal asymptoteThe graph of (x^2-x-6)/(x^2-4), showing an open circle at (-2, 5/4), a dashed vertical asymptote at x = 2, and a dashed horizontal asymptote at y = 1.-464-4hole at (-2, 5/4)(3, 0)x = 2y = 1
The finished sketch of y = (x² - x - 6)/(x² - 4). The open circle at (-2, 5/4) is the hole, the dashed lines are the vertical asymptote x = 2 and the horizontal asymptote y = 1, and the filled dots are the intercepts (0, 3/2) and (3, 0).

Look at what that picture is. Every feature on it is an algebraic fact you established without plotting a single extra point: the hole is the cancelled factor, and the vertical asymptote is the surviving one. The horizontal asymptote is the tie in degrees, and the sign chart chose the direction of each branch. The domain, tracked as a side condition since the first lesson of this chapter, is now the most visible thing on the page.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

A curve that closes on a line forever, without ever arriving, is odd enough to deserve a name. The Greeks gave it one, and the name is an argument.

Asymptote comes from the Greek asumptotos. It is built from a- (not), sun- (together) and ptotos (falling). Not falling together. Not meeting, ever.

The curve it was invented for was the hyperbola. The geometer was Apollonius of Perga, who worked in the Greek world around 200 BCE. He studied the two straight lines a hyperbola chases forever. With no algebra whatever, he proved this about them: the gap can be forced below any distance you name, and yet it never closes. Read that again, because it is word for word the definition this lesson used.

An irony is buried in the name. Apollonius chose not meeting because his own hyperbolas never did meet those lines. Later mathematicians studied wider families of curves, and the promise broke. The graph of 2x2+x1x2+1\frac{2x^2+x-1}{x^2+1} walks straight through its horizontal asymptote at (3,2)(3,2), then carries on approaching it.

The modern definition kept the approaching and quietly dropped the avoiding. One kind of asymptote still honours the old promise, though not for the reason the name suggests. A vertical asymptote cannot be crossed, because its input is not in the domain at all.