PrecalculusPolynomial and Rational Functions3 of 4
Polynomial and Rational Functions · 3

Graphing Rational Functions

We already know how to find the holes and asymptotes of a rational function, and now we want to put the actual curve on the graph.

1

Intercepts and Crossing Asymptotes

To place the curve against its asymptotes, we first need the points where the graph crosses the xx- and yy-axes, and we need to check whether the curve ever crosses its horizontal asymptote in the middle of the graph:

y\displaystyle y =x2+2x−3x2−4\displaystyle = \frac{x^2 + 2x - 3}{x^2 - 4}
Intercepts and Crossing Asymptotes
y=L\htmlClass{lc-pink}{y = L}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
??
Text solution
Find the intercepts of a rational functionAfter cancelling matching factors, set the top equal to 00 and keep the solutions that are in the original function's domain. For the yy-intercept, plug in x=0x = 0 if the function is defined there:
y\displaystyle y =x+2x−3\displaystyle = \frac{x + 2}{\pole{x - 3}} =0  ⟹  x+2\displaystyle = 0 \implies x + 2 =0  ⟹  x\displaystyle = 0 \implies x =−2\displaystyle = -2
Find the horizontal asymptote from the highest powersBecause the highest powers of xx on top and bottom match, the graph flattens out at the ratio of their front numbers at the far left and right:
y\displaystyle y =x2+2x−3x2−4  ⟹  y\displaystyle = \frac{\ends{x^2} + 2x - 3}{\ends{x^2} - 4} \implies y =1x21x2\displaystyle = \frac{\ends{1x^2}}{\ends{1x^2}} =1\displaystyle = \ends{1}
Set the fraction equal to the horizontal asymptote to check for a crossingIf the curve touches the line y=1\ends{y = 1}, the fraction must equal 1\ends{1} at that xx-value, so we clear the denominator and solve for xx:
x2+2x−3x2−4=1x2+2x−3=x2−42x−3=−4  ⟹  2x=−1  ⟹  x=−12\displaystyle \begin{aligned} \frac{x^2 + 2x - 3}{x^2 - 4} &= \ends{1} \\ x^2 + 2x - 3 &= x^2 - 4 \\ 2x - 3 &= -4 \\ \implies 2x &= -1 \\ \implies x &= -\frac{1}{2} \end{aligned}

So the graph crosses straight through its horizontal asymptote at the point (−12,1)\left(-\frac{1}{2}, \ends{1}\right).

(−12,1)(-\tfrac{1}{2}, \htmlClass{lc-pink}{1})
y=1\htmlClass{lc-pink}{y = 1}
x=−2\htmlClass{lc-green}{x = -2}
x=2\htmlClass{lc-green}{x = 2}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
2

Graphing a Rational Function Step by Step

With the intercepts and asymptotes in place, we need a fast way to tell whether the curve shoots to +∞\positive{+\infty} or −∞\negative{-\infty} on each side of the vertical asymptotes so we can sketch the full graph of:

y\displaystyle y =2x2−2x−4x2−x−6\displaystyle = \frac{2x^2 - 2x - 4}{x^2 - x - 6}
Graphing a Rational Function Step by Step
Beside each\displaystyle \text{Beside each}
vertical asymptote:\displaystyle \pole{\text{vertical asymptote}}\text{:}
+∞   or   −∞ ?\displaystyle \positive{+\infty} \;\text{ or }\; \negative{{-}\infty}\,?
Text solution
Factor the top and bottom to check for holesFactoring shows whether any matching factors cancel out before we look for intercepts or asymptotes:
y\displaystyle y =2(x2−x−2)x2−x−6\displaystyle = \frac{2(x^2 - x - 2)}{x^2 - x - 6} =2(x−2)(x+1)(x−3)(x+2)\displaystyle = \frac{2(x - 2)(x + 1)}{\pole{(x - 3)}\pole{(x + 2)}}
Find the xx- and yy-interceptsThe numerator factors give the xx-intercepts at (2,0)(2, 0) and (−1,0)(-1, 0), and plugging x=0x = 0 into the unfactored equation leaves the constant terms for the yy-intercept at (0,23)\left(0, \positive{\frac{2}{3}}\right):
2(x−2)(x+1)=0  ⟹  x=2,  x=−1andy(0)=−4−6=23\displaystyle \begin{aligned} 2(x - 2)(x + 1) &= 0 \\ \implies x &= 2, \; x = -1 \\ \text{and} \quad y(0) &= \frac{-4}{-6} = \positive{\frac{2}{3}} \end{aligned}
Find the vertical and horizontal asymptotes and test for a crossingSetting the denominator equal to 00 gives vertical asymptotes at x=3\pole{x = 3} and x=−2\pole{x = -2}, the highest-power terms give the horizontal asymptote y=2\ends{y = 2}, and setting the fraction equal to 2\ends{2} shows the curve never crosses y=2\ends{y = 2}:
(x−3)(x+2)=0  ⟹  x=3,  x=−2andy=2x21x2=2\displaystyle \begin{aligned} \pole{(x - 3)}\pole{(x + 2)} &= 0 \\ \implies \pole{x} &= \pole{3}, \; \pole{x = -2} \\ \text{and} \quad y &= \frac{\ends{2x^2}}{\ends{1x^2}} = \ends{2} \end{aligned}
2x2−2x−4x2−x−6=2  ⟹  2x2−2x−4=2x2−2x−12  ⟹  −4=−12\displaystyle \begin{aligned} \frac{2x^2 - 2x - 4}{x^2 - x - 6} &= \ends{2} \implies \\ 2x^2 - 2x - 4 &= 2x^2 - 2x - 12 \\ \implies -4 &= -12 \end{aligned}
Test one point on the right and use the odd exponents to trace leftPlugging x=3.1x = 3.1 into the factored form shows yy is positive to the right of x=3\pole{x = 3}, and because every factor has an odd power of 11, the sign of yy flips each time xx jumps across a vertical asymptote or crosses an xx-intercept:
At x\displaystyle \text{At } x =3.1:y\displaystyle = 3.1: \quad y =2(3.1−2)1(3.1+1)1(3.1−3)1(3.1+2)1\displaystyle = \frac{2(3.1 - 2)^1(3.1 + 1)^1}{\pole{(3.1 - 3)^1}\pole{(3.1 + 2)^1}} =2(+)(+)(+)(+)\displaystyle = \frac{2\positive{(+)}\positive{(+)}}{\positive{(+)}\positive{(+)}} =+\displaystyle = \positive{+}

So the curve shoots to +∞\positive{+\infty} on the right of x=3\pole{x = 3}, flips to −∞\negative{-\infty} on the left of x=3\pole{x = 3}, rises through (2,0)(2, 0) and (0,23)\left(0, \positive{\frac{2}{3}}\right) while staying below y=2\ends{y = 2}, crosses back down through (−1,0)(-1, 0) to −∞\negative{-\infty} on the right of x=−2\pole{x = -2}, and flips to +∞\positive{+\infty} on the left of x=−2\pole{x = -2}.

−1-1
(0,23)(0, \htmlClass{lc-blue}{\tfrac{2}{3}})
22
x=−2\htmlClass{lc-green}{x = -2}
x=3\htmlClass{lc-green}{x = 3}
y=2\htmlClass{lc-pink}{y = 2}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
3

Graphing with Even Exponents

When every factor has a power of 11, the sign of yy flips at every intercept and asymptote. Now let's see how squared factors change the graph when we sketch:

y\displaystyle y =(x−1)2(x+2)2(x−3)\displaystyle = \frac{(x - 1)^2}{(x + 2)^2(x - 3)}
Graphing with Even Exponents
(x−1)2: cross or bounce?\displaystyle (x - 1)^2\text{: cross or bounce?}
(x+2)2: same ∞ each side?\displaystyle \pole{(x + 2)^2}\text{: same } \infty \text{ each side?}
Text solution
Compare the highest powers of xx for the horizontal asymptoteMultiplying out the highest powers gives x2\ends{x^2} on top and x3\ends{x^3} on the bottom, so the larger bottom power pulls the fraction down to the xx-axis at the far left and right:
y≈x2x2⋅x\displaystyle y \approx \frac{\ends{x^2}}{\ends{x^2 \cdot x}} =x2x3  ⟹  y=0\displaystyle = \frac{\ends{x^2}}{\ends{x^3}} \implies \ends{y = 0}
Find the intercepts and vertical asymptotesSetting the top equal to 00 gives the xx-intercept at (1,0)(1, 0) where the curve touches y=0\ends{y = 0}, plugging in x=0x = 0 gives the yy-intercept at (0,−112)\left(0, \negative{-\frac{1}{12}}\right), and setting the bottom equal to 00 gives vertical asymptotes at x=−2\pole{x = -2} and x=3\pole{x = 3}:
(x−1)2=0  ⟹  x=1,y(0)=(0−1)2(0+2)2(0−3)=14(−3)=−112,x=−2,  x=3\displaystyle \begin{aligned} (x - 1)^2 &= 0 \implies x = 1, \\ y(0) &= \frac{(0 - 1)^2}{\pole{(0 + 2)^2}\pole{(0 - 3)}} \\ &= \frac{1}{4(-3)} = \negative{-\frac{1}{12}}, \\ \pole{x} &= \pole{-2}, \; \pole{x = 3} \end{aligned}
Test x=4x = 4 on the right and trace left using the even and odd powersAnything squared stays positive on both sides of the value that makes it zero, so only the odd factor (x−3)1\pole{(x - 3)^1} flips sign as xx moves from right to left:
At x\displaystyle \text{At } x =4:y\displaystyle = 4: \quad y =(4−1)2⏞even (bounce)(4+2)2⏟even (same ∞)(4−3)1⏟odd (opposite ∞)\displaystyle = \frac{\overbrace{(4 - 1)^2}^{\text{even (bounce)}}}{\underbrace{\pole{(4 + 2)^2}}_{\text{even (same }\infty\text{)}} \quad \underbrace{\pole{(4 - 3)^1}}_{\text{odd (opposite }\infty\text{)}}} =(+)(+)(+)\displaystyle = \frac{\positive{(+)}}{\positive{(+)}\positive{(+)}} =+\displaystyle = \positive{+}

So the curve goes to +∞\positive{+\infty} on the right of x=3\pole{x = 3} and flips to −∞\negative{-\infty} on the left of x=3\pole{x = 3}, rises to bounce off (1,0)(1, 0) from underneath, passes through (0,−112)\left(0, \negative{-\frac{1}{12}}\right) to −∞\negative{-\infty} on the right of x=−2\pole{x = -2}, and stays at −∞\negative{-\infty} on the left of x=−2\pole{x = -2} before rising toward y=0\ends{y = 0}.

Watch how the signs of the factors control the curve as xx moves across the graph:

Only the odd-power factor flips sign when you cross it, while the squared factors stay positive on both sides.
4

Graphing with a Hole

When a factor on top matches a factor on the bottom, they cancel out to leave a single missing point while the remaining factors still control the graph. Let's graph:

y\displaystyle y =x2−x−6x2−2x−3\displaystyle = \frac{x^2 - x - 6}{x^2 - 2x - 3}
Graphing with a Hole
Hole\displaystyle \hole{\text{Hole}} =(  ?  ,  ?  )\displaystyle = \hole{(\;?\;,\;?\;)}
An x-intercept there too?\displaystyle \text{An } x\text{-intercept there too?}
Text solution
Factor and cancel the matching factorWherever the original function is defined, the common factor (x−3)\hole{(x - 3)} cancels out and reduces the function to a simpler fraction:
y\displaystyle y =(x−3)(x+2)(x−3)(x+1)\displaystyle = \frac{\hole{(x - 3)}(x + 2)}{\hole{(x - 3)}\pole{(x + 1)}} =x+2x+1,x≠3\displaystyle = \frac{x + 2}{\pole{x + 1}}, \quad \hole{x \neq 3}
Plug the cancelled xx-value into the simplified fraction to locate the holePlugging x=3\hole{x = 3} into the simplified equation gives the exact yy-value where the open circle sits on the curve:
y\displaystyle y =3+23+1\displaystyle = \frac{\hole{3} + 2}{\pole{\hole{3} + 1}} =54\displaystyle = \frac{5}{4} =1.25  ⟹  hole at (3,54)\displaystyle = 1.25 \implies \text{hole at } \hole{\left(3, \frac{5}{4}\right)}
Find the intercepts and asymptotes from the remaining factorsUsing only the simplified fraction y=x+2x+1y = \frac{x + 2}{\pole{x + 1}}, we get the xx-intercept at (−2,0)(-2, 0), the yy-intercept at (0,2)(0, \positive{2}), the vertical asymptote at x=−1\pole{x = -1}, and the horizontal asymptote at y=1\ends{y = 1}:
x+2=0  ⟹  x=−2,y(0)=0+20+1=2,x+1=0  ⟹  x=−1,y=1x1x=1\displaystyle \begin{aligned} x + 2 &= 0 \implies x = -2, \\ y(0) &= \frac{0 + 2}{\pole{0 + 1}} = \positive{2}, \\ \pole{x + 1} &= 0 \implies \pole{x = -1}, \\ y &= \frac{\ends{1x}}{\ends{1x}} = \ends{1} \end{aligned}
Check the sign to the right of x=−1\pole{x = -1} and trace across the asymptoteTesting x=−0.9x = -0.9 confirms yy is positive on the right of x=−1\pole{x = -1}, and the odd factor (x+1)1\pole{(x + 1)^1} flips the sign across x=−1\pole{x = -1}:
At x\displaystyle \text{At } x =−0.9:y\displaystyle = -0.9: \quad y =−0.9+2−0.9+1\displaystyle = \frac{-0.9 + 2}{\pole{-0.9 + 1}} =(+)(+)\displaystyle = \frac{\positive{(+)}}{\positive{(+)}} =+\displaystyle = \positive{+}

So the right branch comes down from +∞\positive{+\infty} near x=−1\pole{x = -1} through (0,2)(0, \positive{2}), approaches the open circle at (3,54)\hole{\left(3, \frac{5}{4}\right)}, and continues on the other side to flatten above y=1\ends{y = 1}. The left branch rises from −∞\negative{-\infty} near x=−1\pole{x = -1} through (−2,0)(-2, 0) to flatten below y=1\ends{y = 1}.

Here is what happens when an xx-intercept moves onto a vertical asymptote and their factors cancel:

In this example, when the numerator factor matches the denominator factor at x=3\hole{x = 3}, the factors cancel and leave a hole.
5

Graphing with a Slant Asymptote

When the highest power on top is one greater than the highest power on the bottom, dividing the fraction gives a diagonal slant asymptote instead of a horizontal line. Let's graph:

y\displaystyle y =x2+x−2x−2\displaystyle = \frac{x^2 + x - 2}{x - 2}
Graphing with a Slant Asymptote
Slant asymptote: y=  ?\displaystyle \ends{\text{Slant asymptote}}\text{: } \ends{y = \;?}
Curve above it or below it?\displaystyle \text{Curve above it or below it?}
Text solution
Factor the numerator to find the intercepts and vertical asymptoteNothing cancels, so setting the top equal to 00 gives xx-intercepts at (−2,0)(-2, 0) and (1,0)(1, 0), plugging in x=0x = 0 gives the yy-intercept at (0,1)(0, \positive{1}), and the bottom gives a vertical asymptote at x=2\pole{x = 2}:
y=(x+2)(x−1)x−2  ⟹  x=−2,  x=1,y(0)=−2−2=1,x=2\displaystyle \begin{aligned} y &= \frac{(x + 2)(x - 1)}{\pole{x - 2}} \\ \implies x &= -2, \; x = 1, \\ y(0) &= \frac{-2}{-2} = \positive{1}, \qquad \pole{x = 2} \end{aligned}
Divide the fraction to find the slant asymptoteDividing x2+x−2x^2 + x - 2 by x−2\pole{x - 2} splits the equation into the diagonal line y=x+3\ends{y = x + 3} plus a remainder fraction that can never equal 00, showing the curve never crosses its slant asymptote:
y\displaystyle y =x2+x−2x−2\displaystyle = \frac{x^2 + x - 2}{\pole{x - 2}} =x+3⏟slant asymptote+4x−2⏟remainder\displaystyle = \underbrace{\ends{x + 3}}_{\text{slant asymptote}} + \underbrace{\remainder{\frac{4}{x - 2}}}_{\text{remainder}}
Check the sign to the left of x=2\pole{x = 2} and trace both branchesTesting x=1.9x = 1.9 shows the curve goes down to −∞\negative{-\infty} on the left of x=2\pole{x = 2} and flips across the odd factor (x−2)1\pole{(x - 2)^1} to +∞\positive{+\infty} on the right of x=2\pole{x = 2}:
At x\displaystyle \text{At } x =1.9:y\displaystyle = 1.9: \quad y =(1.9+2)(1.9−1)1.9−2\displaystyle = \frac{(1.9 + 2)(1.9 - 1)}{\pole{1.9 - 2}} =(+)(+)(−)\displaystyle = \frac{\positive{(+)}\positive{(+)}}{\negative{(-)}} =−\displaystyle = \negative{-}

So the left branch follows underneath y=x+3\ends{y = x + 3}, rises through (−2,0)(-2, 0) to a peak near (0,1)(0, \positive{1}), and turns back down through (1,0)(1, 0) to −∞\negative{-\infty} along x=2\pole{x = 2}, while the right branch comes down from +∞\positive{+\infty} near x=2\pole{x = 2} and turns back up along y=x+3\ends{y = x + 3}.

The signed vertical difference between the curve and the dashed line y=x+3\ends{y = x + 3} is 4x−2\remainder{\frac{4}{x - 2}}. Its absolute value is the vertical distance, which grows without bound near x=2\pole{x = 2} and shrinks toward 00 at the far left and right edges.

The remainder fraction is the signed vertical difference between the curve and its slant asymptote. Its absolute value is the vertical distance.
6

Writing the Equation from a Graph or Features

Now let's reverse the process: given a completed graph or a list of features, we want to build the rational equation piece by piece.

(−2,0)(-2, 0)
(0,32)(0, \tfrac{3}{2})
(1,0)(1, 0)
x=−1\htmlClass{lc-green}{x = -1}
x=2\htmlClass{lc-green}{x = 2}
y=3\htmlClass{lc-pink}{y = 3}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
Writing the Equation from a Graph or Features
y\displaystyle y =a   ?    ?  \displaystyle = a\,\dfrac{\;?\;}{\pole{\;?\;}}
a\displaystyle a =  ?\displaystyle = \;?
Text solution
Build the equation from the graph's intercepts and vertical asymptotesPut the xx-intercepts on top and the vertical asymptotes on the bottom. We can choose a power of 11 where the sign flips and a power of 22 where the sign stays the same, with a multiplier aa in front:
y\displaystyle y =a(x+2)1⏞crosses (−2,0)(x−1)2⏞bounces (1,0)(x+1)1⏟opposite ∞(x−2)2⏟same ∞\displaystyle = a\frac{\overbrace{(x + 2)^1}^{\text{crosses } (-2, 0)} \quad \overbrace{(x - 1)^2}^{\text{bounces } (1, 0)}}{\underbrace{\pole{(x + 1)^1}}_{\text{opposite }\infty} \quad \underbrace{\pole{(x - 2)^2}}_{\text{same }\infty}}
Find the front number aa from the horizontal asymptote or a known pointBecause the top and bottom both have a highest power of 1+2=31 + 2 = 3, the horizontal asymptote y=3\ends{y = 3} gives a1=3\frac{a}{1} = \ends{3}, which matches the value from plugging in the yy-intercept (0,32)\left(0, \frac{3}{2}\right):
32=a(0+2)(0−1)2(0+1)(0−2)2=a2(1)1(4)=12a  ⟹  a=3\displaystyle \begin{aligned} \frac{3}{2} &= a\frac{(0 + 2)(0 - 1)^2}{\pole{(0 + 1)}\pole{(0 - 2)^2}} = a\frac{2(1)}{1(4)} \\ &= \frac{1}{2}a \implies a = 3 \end{aligned}
y\displaystyle y =3(x+2)(x−1)2(x+1)(x−2)2\displaystyle = \frac{3(x + 2)(x - 1)^2}{\pole{(x + 1)}\pole{(x - 2)^2}}
Build the equation for an xx-intercept at (−4,0)(-4, 0), vertical asymptote at x=1\pole{x = 1}, and hole at (3,7)\hole{(3, 7)}Place (x+4)(x + 4) on top, (x−1)\pole{(x - 1)} on the bottom, and the hole factor (x−3)\hole{(x - 3)} on both top and bottom:
y\displaystyle y =a(x+4)(x−3)(x−1)(x−3)\displaystyle = a\frac{(x + 4)\hole{(x - 3)}}{\pole{(x - 1)}\hole{(x - 3)}}
Cancel the hole factor to solve for aa, then write the full equationWe cannot plug x=3\hole{x = 3} into the uncancelled fraction without getting 00\frac{0}{0}, so we cancel (x−3)\hole{(x - 3)} to plug (3,7)\hole{(3, 7)} into the simplified equation and then put (x−3)\hole{(x - 3)} back into the final answer:
y=ax+4x−1  ⟹  7=a3+43−1=7a2  ⟹  14=7a  ⟹  a=2\displaystyle \begin{aligned} y &= a\frac{x + 4}{\pole{x - 1}} \\ \implies \hole{7} &= a\frac{\hole{3} + 4}{\pole{\hole{3} - 1}} = \frac{7a}{2} \\ \implies 14 &= 7a \implies a = 2 \end{aligned}
y\displaystyle y =2(x+4)(x−3)(x−1)(x−3)\displaystyle = \frac{2(x + 4)\hole{(x - 3)}}{\pole{(x - 1)}\hole{(x - 3)}}

Key concepts

Whether you are sketching a graph from an equation or building an equation from a graph, every feature comes directly from the factored form and the highest powers of xx:

y\displaystyle y =a(x+2)1⏞crosses x-axis(x−1)2⏞bounces off x-axis(x−3)⏞hole at x=3(x+1)1⏟opposite ∞(x−2)2⏟same ∞(x−3)⏟cancels\displaystyle = a\frac{\overbrace{(x + 2)^1}^{\text{crosses } x\text{-axis}} \quad \overbrace{(x - 1)^2}^{\text{bounces off } x\text{-axis}} \quad \overbrace{\hole{(x - 3)}}^{\text{hole at } \hole{x = 3}}}{\underbrace{\pole{(x + 1)^1}}_{\text{opposite }\infty}\underbrace{\pole{(x - 2)^2}}_{\text{same }\infty}\underbrace{\hole{(x - 3)}}_{\text{cancels}}}
Cancel matching factors before finding features

If a denominator factor like (x−3)\hole{(x - 3)} cancels completely, its xx-value gives a hole. Plug x=3\hole{x = 3} into the simplified equation to find the hole's yy-value, or to solve for aa when given a hole. If a copy of the factor remains on the bottom, that xx-value gives a vertical asymptote instead.

Top controls xx-intercepts, bottom controls vertical asymptotes, and exponents control sign flips

After cancelling matching factors, remaining numerator factors give xx-intercepts only at values in the original function's domain, and remaining denominator factors give vertical asymptotes. An odd power, such as 11, flips the sign of yy across that xx-value, while an even power, such as 22, keeps the same sign on both sides.

Highest powers control the far left and right

A larger power on the bottom pulls the curve toward y=0\ends{y = 0} (as in x2x3\frac{\ends{x^2}}{\ends{x^3}}), equal powers flatten to the ratio of front numbers (as in 2x2x2  ⟹  y=2\frac{\ends{2x^2}}{\ends{x^2}} \implies \ends{y = 2}), and a top power one larger divides out into a slant asymptote y=quotient\ends{y = \text{quotient}} (as in x2+x−2x−2=x+3+4x−2  ⟹  y=x+3\frac{x^2 + x - 2}{\pole{x - 2}} = \ends{x + 3} + \remainder{\frac{4}{x - 2}} \implies \\ \ends{y = x + 3}). A rational function's graph cannot cross a vertical asymptote. To find where it meets a horizontal or slant asymptote, set the function equal to the asymptote and keep solutions in the original domain. Check the graph on either side to distinguish crossing from touching.

7

Practice

1

Find the horizontal asymptote of y=2x2+x−3x2−4y = \frac{2x^2 + x - 3}{x^2 - 4}, and find the point where the graph crosses its horizontal asymptote.

Compare the highest powers of xx to find the horizontal asymptote, then set the entire fraction equal to that yy-value and solve for xx.

The highest powers on top and bottom are both x2x^2, so the horizontal asymptote is the ratio of their front numbers:
y\displaystyle y =2x21x2\displaystyle = \frac{\ends{2x^2}}{\ends{1x^2}} =2\displaystyle = \ends{2}
To find where the graph crosses y=2\ends{y = 2}, set the fraction equal to 2\ends{2} and multiply both sides by the denominator:
2x2+x−3x2−4=22x2+x−3=2(x2−4)=2x2−8\displaystyle \begin{aligned} \frac{2x^2 + x - 3}{x^2 - 4} &= \ends{2} \\ 2x^2 + x - 3 &= \ends{2}(x^2 - 4) = 2x^2 - 8 \end{aligned}
(Watch out: Remember to distribute the 2\ends{2} to −4-4 when clearing the denominator; writing 2x2−42x^2 - 4 on the right gives x=−1x = -1 and the wrong crossing point (−1,2)(-1, 2).)
Subtract 2x22x^2 from both sides and solve for xx:
x−3\displaystyle x - 3 =−8  ⟹  x\displaystyle = -8 \implies x =−5\displaystyle = -5
AnswerHorizontal asymptote: y=2y = 2; crosses at (−5,2)(-5, 2).
2

Find the intercepts, asymptotes, and behavior on each side of the vertical asymptotes to graph y=x2−2x−3x2−2x−8y = \frac{x^2 - 2x - 3}{x^2 - 2x - 8}.

Factor the numerator and denominator first to check whether any factors cancel before reading off the intercepts and vertical asymptotes.

Factor the top and bottom:
y\displaystyle y =(x−3)(x+1)(x−4)(x+2)\displaystyle = \frac{(x - 3)(x + 1)}{\pole{(x - 4)}\pole{(x + 2)}}
Nothing cancels, so there are no holes. Setting the top equal to 00 gives xx-intercepts at (−1,0)(-1, 0) and (3,0)(3, 0), and plugging x=0x = 0 into the unfactored fraction gives the yy-intercept:
y(0)\displaystyle y(0) =−3−8\displaystyle = \frac{-3}{-8} =38\displaystyle = \positive{\frac{3}{8}}
(Watch out: Negative divided by negative makes the yy-intercept +38\positive{+\frac{3}{8}}, not −38\negative{-\frac{3}{8}}; plotting (0,−38)\left(0, \negative{-\frac{3}{8}}\right) below the xx-axis would force the middle branch to cross the xx-axis where there are no intercepts.)
Setting the bottom equal to 00 gives vertical asymptotes at x=−2\pole{x = -2} and x=4\pole{x = 4}. The highest-power terms 1x21x2\frac{\ends{1x^2}}{\ends{1x^2}} give the horizontal asymptote y=1\ends{y = 1}, and setting the fraction equal to 1\ends{1} gives x2−2x−3=x2−2x−8  ⟹  −3=−8x^2 - 2x - 3 = x^2 - 2x - 8 \implies -3 = -8, so it never crosses y=1\ends{y = 1}.
Testing x=4.1x = 4.1 to the right of x=4\pole{x = 4} gives y=(+)(+)(+)(+)=+y = \frac{\positive{(+)}\positive{(+)}}{\positive{(+)}\positive{(+)}} = \positive{+}, and because every factor has an odd power of 11, the sign flips across every vertical asymptote and xx-intercept. (In the notation 4+4^+ and 4−4^-, the ++ or −- sign shows whether xx approaches 44 from the right side or the left side.)
AnswerNo holes; x-intercepts: (−1,0)(-1, 0) and (3,0)(3, 0); y-intercept: (0,38)(0, \tfrac{3}{8}); vertical asymptotes: x=−2x = -2 and x=4x = 4; horizontal asymptote: y=1y = 1 (never crosses). For x>4x > 4, y→+∞y \to +\infty as x→4+x \to 4^+ and flattens above y=1y = 1; on (−2,4)(-2, 4), y→−∞y \to -\infty as x→4−x \to 4^-, crosses (3,0)(3, 0), passes through (0,38)(0, \tfrac{3}{8}), crosses (−1,0)(-1, 0), and y→−∞y \to -\infty as x→−2+x \to -2^+; for x<−2x < -2, y→+∞y \to +\infty as x→−2−x \to -2^- and flattens above y=1y = 1.
3

Find the intercepts, asymptotes, and behavior at each intercept and vertical asymptote to graph y=(x+1)2(x−2)2(x+3)y = \frac{(x + 1)^2}{(x - 2)^2(x + 3)}.

Add the exponents on the bottom factors to find the highest power of xx in the denominator for the horizontal asymptote, and notice which factors are squared when tracing from right to left.

Nothing cancels, so there are no holes. Multiplying out the highest powers gives x2\ends{x^2} on top and x2⋅x=x3\ends{x^2 \cdot x} = \ends{x^3} on the bottom, so the larger bottom power gives the horizontal asymptote y=0\ends{y = 0}.
(Watch out: Don't just compare the squared factors (x+1)2(x + 1)^2 and (x−2)2\pole{(x - 2)^2} and conclude the highest powers are tied at y=1y = 1; multiplying (x−2)2\pole{(x - 2)^2} by (x+3)\pole{(x + 3)} makes the highest power on the bottom x3\ends{x^3}.)
Setting the top equal to 00 gives an xx-intercept at (−1,0)(-1, 0), plugging in x=0x = 0 gives y(0)=(1)2(−2)2(3)=112y(0) = \frac{(1)^2}{\pole{(-2)^2}\pole{(3)}} = \positive{\frac{1}{12}} for the yy-intercept at (0,112)\left(0, \positive{\frac{1}{12}}\right), and setting the bottom equal to 00 gives vertical asymptotes at x=−3\pole{x = -3} and x=2\pole{x = 2}.
To the right of x=2\pole{x = 2} (say, at x=3x = 3), y=(+)(+)(+)=+y = \frac{\positive{(+)}}{\positive{(+)}\positive{(+)}} = \positive{+}. Because (x−2)2\pole{(x - 2)^2} and (x+1)2(x + 1)^2 are squared, the sign does not flip across x=2\pole{x = 2} or x=−1x = -1; it only flips across the odd factor (x+3)1\pole{(x + 3)^1} at x=−3\pole{x = -3}.
(Watch out: Flipping the sign across the even vertical asymptote x=2\pole{x = 2} would send the middle branch to −∞\negative{-\infty} on the left of x=2\pole{x = 2}, which would clash with the positive yy-intercept (0,112)\left(0, \positive{\frac{1}{12}}\right).)
AnswerNo holes; x-intercept: (−1,0)(-1, 0) (bounces); y-intercept: (0,112)(0, \tfrac{1}{12}); vertical asymptotes: x=−3x = -3 and x=2x = 2; horizontal asymptote: y=0y = 0. For x>2x > 2, y→+∞y \to +\infty as x→2+x \to 2^+ and flattens above y=0y = 0; on (−3,2)(-3, 2), y→+∞y \to +\infty as x→2−x \to 2^-, passes through (0,112)(0, \tfrac{1}{12}), bounces off (−1,0)(-1, 0) staying positive, and y→+∞y \to +\infty as x→−3+x \to -3^+; for x<−3x < -3, y→−∞y \to -\infty as x→−3−x \to -3^- and flattens below y=0y = 0.
4

Find the hole, intercepts, and asymptotes to graph y=x2+x−6x2−x−2y = \frac{x^2 + x - 6}{x^2 - x - 2}.

Factor the top and bottom and cancel the matching factor first; use only the simplified fraction to find the hole's yy-coordinate and the remaining features.

Factor the numerator and denominator and cancel the matching (x−2)\hole{(x - 2)} factor:
y\displaystyle y =(x+3)(x−2)(x+1)(x−2)\displaystyle = \frac{(x + 3)\hole{(x - 2)}}{\pole{(x + 1)}\hole{(x - 2)}} =x+3x+1,x≠2\displaystyle = \frac{x + 3}{\pole{x + 1}}, \quad \hole{x \neq 2}
Plug x=2\hole{x = 2} into the simplified equation to find the hole:
y\displaystyle y =2+32+1\displaystyle = \frac{\hole{2} + 3}{\pole{\hole{2} + 1}} =53  ⟹  hole at (2,53)\displaystyle = \frac{5}{3} \implies \text{hole at } \hole{\left(2, \frac{5}{3}\right)}
(Watch out: Once (x−2)\hole{(x - 2)} cancels out, do not list (2,0)(2, 0) as an xx-intercept or x=2\hole{x = 2} as a vertical asymptote. x=2\hole{x = 2} is only a hole.)
From the simplified fraction y=x+3x+1y = \frac{x + 3}{\pole{x + 1}}, the xx-intercept is (−3,0)(-3, 0), the yy-intercept is (0,3)(0, 3), the vertical asymptote is x=−1\pole{x = -1}, and the horizontal asymptote is y=1x1x=1y = \frac{\ends{1x}}{\ends{1x}} = \ends{1}.
AnswerSimplifies to y=x+3x+1y = \frac{x + 3}{x + 1} for x≠2x \neq 2; hole at (2,53)(2, \tfrac{5}{3}); x-intercept: (−3,0)(-3, 0); y-intercept: (0,3)(0, 3); vertical asymptote: x=−1x = -1; horizontal asymptote: y=1y = 1. To the right of x=−1x = -1, the curve comes down from +∞+\infty through (0,3)(0, 3), approaches the open circle at (2,53)(2, \tfrac{5}{3}), and continues on the other side, flattening above y=1y = 1; to the left of x=−1x = -1, it rises from −∞-\infty through (−3,0)(-3, 0), flattening below y=1y = 1.
5

Find the intercepts, vertical asymptote, and slant asymptote to graph y=x2−2x−3x+2y = \frac{x^2 - 2x - 3}{x + 2}.

Factor the numerator for the xx-intercepts, and divide x2−2x−3x^2 - 2x - 3 by x+2x + 2 to split the fraction into its slant asymptote plus a remainder.

Factor the numerator to check for holes and find the intercepts:
y\displaystyle y =(x−3)(x+1)x+2\displaystyle = \frac{(x - 3)(x + 1)}{\pole{x + 2}}
Nothing cancels, so there are no holes. The xx-intercepts are (−1,0)(-1, 0) and (3,0)(3, 0), the yy-intercept at x=0x = 0 is (0,−32)\left(0, \negative{-\frac{3}{2}}\right), and the vertical asymptote is x=−2\pole{x = -2}.
Because the highest power on top (x2\ends{x^2}) is one larger than the highest power on the bottom (x1\ends{x^1}), divide x2−2x−3x^2 - 2x - 3 by x+2\pole{x + 2} to find the slant asymptote:
y\displaystyle y =x2−2x−3x+2\displaystyle = \frac{x^2 - 2x - 3}{\pole{x + 2}} =x−4+5x+2\displaystyle = \ends{x - 4} + \remainder{\frac{5}{x + 2}}
(Watch out: When dividing by x+2\pole{x + 2} with synthetic division, put −2-2 in the box, not +2+2; using +2+2 gives a quotient of xx with remainder −3-3 and the wrong slant asymptote y=xy = x.)
As xx gets large at the far left and right, the remainder fraction 5x+2\remainder{\frac{5}{x + 2}} shrinks toward 00, leaving the slant asymptote y=x−4\ends{y = x - 4}. Testing x=−1.9x = -1.9 just to the right of x=−2\pole{x = -2} gives y=(−)(−)(+)=+y = \frac{\negative{(-)}\negative{(-)}}{\positive{(+)}} = \positive{+}, so the curve comes down from +∞\positive{+\infty} on the right of x=−2\pole{x = -2} and flips across the odd factor (x+2)1\pole{(x + 2)^1} to −∞\negative{-\infty} on the left of x=−2\pole{x = -2}.
AnswerNo holes; x-intercepts: (−1,0)(-1, 0) and (3,0)(3, 0); y-intercept: (0,−32)(0, -\tfrac{3}{2}); vertical asymptote: x=−2x = -2; slant asymptote: y=x−4y = x - 4 (since y=x−4+5x+2y = x - 4 + \tfrac{5}{x + 2}). Left of x=−2x = -2, the curve stays below y=x−4y = x - 4 and goes to −∞-\infty as x→−2−x \to -2^-; right of x=−2x = -2, it comes down from +∞+\infty near x=−2x = -2, crosses (−1,0)(-1, 0), passes through (0,−32)(0, -\tfrac{3}{2}), crosses (3,0)(3, 0), and approaches y=x−4y = x - 4 from above.
6

Write the equation of a rational function whose graph crosses the xx-axis at (3,0)(3, 0), bounces off the xx-axis at (−1,0)(-1, 0), goes to opposite infinities at the vertical asymptote x=2x = 2, goes to the same infinity on both sides of the vertical asymptote x=−2x = -2, and has a horizontal asymptote at y=−4y = -4.

Put the xx-intercept factors on top and the vertical asymptote factors on the bottom, using power 11 where the sign flips and power 22 where the sign stays the same.

Crossing at (3,0)(3, 0) puts (x−3)1(x - 3)^1 on top, and bouncing at (−1,0)(-1, 0) puts (x+1)2(x + 1)^2 on top. Going to opposite infinities at x=2\pole{x = 2} puts (x−2)1\pole{(x - 2)^1} on the bottom, and going to the same infinity at x=−2\pole{x = -2} puts (x+2)2\pole{(x + 2)^2} on the bottom:
y\displaystyle y =a(x−3)(x+1)2(x−2)(x+2)2\displaystyle = a\frac{(x - 3)(x + 1)^2}{\pole{(x - 2)}\pole{(x + 2)^2}}
(Watch out: Flip the sign when putting each value into its factor so x=−1x = -1 becomes (x+1)2(x + 1)^2, and remember to square both the bounce factor and the same-infinity factor so the highest powers on top and bottom match.)
Both the top and bottom have a highest power of 1+2=31 + 2 = 3, so the horizontal asymptote y=−4\ends{y = -4} sets the front multiplier to a1=−4\frac{a}{1} = \ends{-4}.
Answery=−4(x−3)(x+1)2(x−2)(x+2)2y = \dfrac{-4(x - 3)(x + 1)^2}{(x - 2)(x + 2)^2}
7

Write the equation of a rational function that has an xx-intercept at (2,0)(2, 0), a vertical asymptote at x=−3x = -3, and a hole at the point (1,−2)(1, -2).

Put the hole factor (x−1)(x - 1) on both top and bottom, cancel it temporarily to solve for the front number aa using (1,−2)(1, -2), and then put (x−1)(x - 1) back into the final equation.

Place (x−2)(x - 2) on top for the xx-intercept, (x+3)\pole{(x + 3)} on the bottom for the vertical asymptote, and (x−1)\hole{(x - 1)} on both top and bottom for the hole at x=1\hole{x = 1}:
y\displaystyle y =a(x−2)(x−1)(x+3)(x−1)\displaystyle = a\frac{(x - 2)\hole{(x - 1)}}{\pole{(x + 3)}\hole{(x - 1)}}
Cancel (x−1)\hole{(x - 1)} and plug the hole's coordinates (1,−2)\hole{(1, -2)} into the simplified equation to solve for aa:
y=ax−2x+3  ⟹  −2=a1−21+3=−14a  ⟹  a=8\displaystyle \begin{aligned} y &= a\frac{x - 2}{\pole{x + 3}} \\ \implies \hole{-2} &= a\frac{\hole{1} - 2}{\pole{\hole{1} + 3}} \\ &= -\frac{1}{4}a \\ \implies a &= 8 \end{aligned}
(Watch out: Keep the negative sign from 1−2=−1\hole{1} - 2 = -1 so that −2=−14a\hole{-2} = -\frac{1}{4}a gives a=8a = 8 rather than −8-8, and remember to put the (x−1)\hole{(x - 1)} factors back into the final fraction so the function actually has a hole at x=1\hole{x = 1}.)
Answery=8(x−2)(x−1)(x+3)(x−1)y = \dfrac{8(x - 2)(x - 1)}{(x + 3)(x - 1)}