๐Ÿ“– Contents · Hub · Full version Chapter 10 ยท Polynomial & Rational Functions
College Algebra Easy Read · Chapter 10

Polynomial & Rational Functions

Up to now, most of the functions you have graphed have been lines and parabolas, with one bend at most. This chapter opens the door to curves with several bends, curves that shoot off to infinity, and curves with unseen walls they can never cross. The good news is that you do not have to plot a hundred points to draw any of them. A polynomial's whole shape is written in two numbers, its degree and its leading coefficient (the number in front of its highest power). A rational function's whole shape comes out of one move: factor the top, factor the bottom, and see what cancels. Everything in this chapter is a checklist, and we will walk through every checklist one slow step at a time.

By the end of this chapter you can

  • Spot a polynomial function, and state its degree and its leading coefficient.
  • Predict how a polynomial's graph behaves at its far ends (its end behavior) from the degree and the leading coefficient alone.
  • Find the zeros of a polynomial by factoring and using the zero product property.
  • Use multiplicity (how many times a factor repeats) to decide whether a graph crosses the x-axis or touches it and turns around.
  • Divide polynomials by long division and by synthetic division.
  • Apply the Remainder Theorem and Factor Theorem to test and peel off factors.
  • State the domain of a rational function, and find its vertical asymptotes, horizontal asymptotes, and holes.
  • Assemble a complete, correct sketch of a rational function from its intercepts, asymptotes, and sign chart.

Section 1Polynomial graphs: degree, leading coefficient, and end behavior

Graph of a degree-3 polynomial curve on labeled x and y axes, falling on the left and rising on the right
Reference. The graph of a polynomial of degree 3. It is smooth and unbroken, and its two ends head in opposite directions. Source and license: see the figure credits

What makes a function a polynomial

A polynomial function is a sum of terms, where each term is a number multiplied by x raised to a whole number power. Written out in full, it looks like this:

P(x) = anxn + an−1xn−1 + … + a1x + a0,   with an ≠ 0

That looks scary, so let us translate it. The exponents must be 0, 1, 2, 3, and so on, so they are never negative and never a fraction. The coefficients (the numbers out front) can be any real numbers. And an ≠ 0 just means we are not allowed to pretend a term is there when its coefficient is zero.

Here are three quick sorting choices. f(x) = 4x3 − x + 9 is a polynomial, with exponents 3, 1, and 0. g(x) = 5/x + 2 is not one, because 5/x is really 5x−1, and negative exponents are not allowed. h(x) = √x + 1 is not one either, because √x is x1/2, and fraction exponents are not allowed. Those two outlaws are not useless, since the first one is a rational function and shows up later in this very chapter. They simply are not polynomials.

Two facts about the picture follow right away, and they are worth learning by heart, because they are what let you sketch quickly. A polynomial graph is continuous, which means you can draw it without lifting your pencil, with no gaps and no jumps. It is also smooth, with no sharp corners, only gentle turns.

Degree and leading coefficient

Write the polynomial in standard form, with the highest exponent first, going down to the constant. Then the degree is that highest exponent, and the leading coefficient is the number sitting in front of it. Order matters here only because it is easy to grab the wrong term from a jumbled expression. Rearranging first costs you five seconds and saves you the mistake.

Look at f(x) = 4x − 2x3 + 5x2 − 1. Put in order, it is f(x) = −2x3 + 5x2 + 4x − 1. Now it is plain to see: the degree is 3, and the leading coefficient is −2. Notice that the leading coefficient carries its sign with it. It is −2, not 2, and that minus sign is about to decide which way the whole graph points.

The degree also sets a limit on two counts. A polynomial of degree n has at most n real zeros (x-intercepts) and at most n − 1 turning points, which are places where the curve stops rising and starts falling, or the other way around. A cubic can wiggle twice, but it can never wiggle three times.

End behavior: what the graph does at the far edges

End behavior answers a simple question: if you follow the curve far to the right and far to the left, does each arm go up or down? Out at the far ends, the term with the highest power completely outweighs every other term, so only two facts matter. One is whether the degree is even or odd, and the other is whether the leading coefficient is positive or negative. That gives four combinations and four pictures.

DegreeLeading coefficientLeft end (as x → −∞)Right end (as x → +∞)Looks like
EvenPositiveRises (→ +∞)Rises (→ +∞)Both arms up, like y = x2
EvenNegativeFalls (→ −∞)Falls (→ −∞)Both arms down, like y = −x2
OddPositiveFalls (→ −∞)Rises (→ +∞)Down-left, up-right, like y = x3
OddNegativeRises (→ +∞)Falls (→ −∞)Up-left, down-right, like y = −x3

If the table feels like four things to learn by heart, it is really only two. Even degree means the two ends agree (both up or both down, like a parabola). Odd degree means the two ends disagree (one up and one down). Then a negative leading coefficient simply flips whatever picture you just drew upside down.

Worked example: every step

Describe the end behavior of f(x) = −2x3 + 5x2 + 4x − 1, then prove it with actual arithmetic.

Step 1: find the degree. The exponents present are 3, 2, 1, and 0. The highest is 3, so the degree is 3. Three is odd.

Step 2: find the leading coefficient. The term of degree 3 is −2x3, so the leading coefficient is −2. That is negative.

Step 3: read the table. An odd degree with a negative leading coefficient means the graph rises on the left and falls on the right.

Step 4: check the right end with a real number. Put in x = 10, and work out each piece on its own:

Add them in order: −2000 + 500 = −1500; then −1500 + 40 = −1460; then −1460 − 1 = −1461. So f(10) = −1461: a big negative number. The right arm is heading down. That matches Step 3.

Step 5: check the left end. Substitute x = −10. Watch the signs carefully, because this is where most errors happen:

Add in order: 2000 + 500 = 2500; then 2500 − 40 = 2460; then 2460 − 1 = 2459. So f(−10) = 2459: a big positive number. The left arm is heading up. Step 3 confirmed from both directions.

Step 6: put a limit on the wiggles. Degree 3 means at most 3 x-intercepts and at most 3 − 1 = 2 turning points. So the sketch is this: come down from the upper left (Step 5 gave f(−10) = 2459, high above the axis), wiggle at most twice, and leave toward the lower right (Step 4 gave f(10) = −1461, far below it).

Out at the edges, only the leading term is loud. In Step 4, the leading term gave −2000, while every other term together gave only 500 + 40 − 1 = 539. Push out to x = 100, and the leading term gives −2,000,000, while the rest gives about 50,399, which is tiny next to it. That is the whole reason the end behavior table works: far from the origin, the highest power wins by so much that nothing else can change the direction.
Interactive Drag the degree and the leading coefficient and watch a polynomial's two arms flip, then step through four worked end-behavior readings and the algebra proving only the leading term matters. Open full ↑
Key points
  • A polynomial allows only whole number exponents, and its graph is continuous and smooth.
  • Degree means the highest exponent, and the leading coefficient is the number in front of it, sign included.
  • An even degree means both ends agree, and an odd degree means the ends disagree. A negative leading coefficient flips the picture.
  • Degree n allows at most n real zeros and at most n − 1 turning points.

Section 2Zeros and multiplicity

A curve crossing the horizontal axis, with its x-intercepts marked on a coordinate plane
Reference. x-intercepts. The points where a graph meets the flat axis are exactly the zeros of the function. Source and license: see the figure credits

Four words for the same thing

A zero of P(x) is any number c with P(c) = 0. Books and teachers will also call it a root of the equation P(x) = 0, a solution of that equation, or an x-intercept of the graph. These are four names for one idea, seen from four angles: the language of functions, of equations, of solving, and of graphs. If c is a real zero, the point (c, 0) is on the graph.

The engine that finds zeros is the zero product property: if a product of factors equals zero, then at least one of those factors is zero. So the plan never changes. Factor the polynomial completely, then set each factor equal to zero and solve. The plan is easy, and the factoring is the work.

One theorem makes the connection official. The Factor Theorem says (x − c) is a factor of P(x) exactly when P(c) = 0. Factors and zeros are two views of the same fact, and Section 3 turns that into a practical tool.

Worked example: finding zeros by factoring

Find all real zeros of P(x) = x3 + 2x2 − 8x.

Step 1: pull out the greatest common factor. Every term contains at least one x, so factor x out: P(x) = x(x2 + 2x − 8). Never skip this step, because people who jump straight to the quadratic formula often lose the zero at x = 0.

Step 2: factor the trinomial. For x2 + 2x − 8, we need two numbers that multiply to −8 and add to +2. Test the pairs: 1 and −8 add to −7 (no), −1 and 8 add to 7 (no), 2 and −4 add to −2 (no), and −2 and 4 add to +2 (yes). So x2 + 2x − 8 = (x + 4)(x − 2), and the whole thing is P(x) = x(x + 4)(x − 2).

Step 3: set each factor to zero. x = 0 gives x = 0. Then x + 4 = 0 gives x = −4. Then x − 2 = 0 gives x = 2.

Step 4: check every answer by putting it back in. This is the step that catches sign errors, and it takes fifteen seconds.

The zeros are x = −4, x = 0, and x = 2, so the graph crosses the flat axis at (−4, 0), (0, 0), and (2, 0). Degree 3 allowed at most three, and we found three.

Multiplicity: cross, or touch and turn

Sometimes a factor repeats. In Q(x) = (x − 5)2(x + 1), the factor (x − 5) shows up twice. The exponent on a factor is called the multiplicity of that zero, so 5 is a zero of multiplicity 2, and −1 is a zero of multiplicity 1. Multiplicity is not just bookkeeping. It tells you exactly what the curve does when it reaches that point on the axis.

MultiplicityExample factorWhat the graph does thereDoes the sign of P(x) change?
1 (odd)(x − 2)Passes straight through the axisYes
2 (even)(x − 2)2Touches the axis and turns back: a bounceNo
3 (odd)(x − 2)3Crosses, but flattens out on the way throughYes
4 (even)(x − 2)4Touches, flattens hard, and turns backNo
Any odd-CrossYes
Any even-Touch and turnNo

Here is the reason, in one line. Near x = 2 the factor (x − 2) is negative on the left and positive on the right. Raise a quantity that changes sign to an even power and the result is positive on both sides: no sign change, so the graph stays on one side of the axis and must turn around. Raise it to an odd power and the sign survives: negative becomes positive, so the graph passes through.

Multiplicities also add up to the degree. In f(x) = (x + 2)(x − 1)2(x − 3)3, the multiplicities are 1, 2, and 3, so the degree is 1 + 2 + 3 = 6.

Worked example: a full sketch from factors

Describe the graph of f(x) = (x + 2)(x − 1)2(x − 3)3.

Step 1: list the zeros with their multiplicities. Set each factor to zero. x + 2 = 0 → x = −2, multiplicity 1. x − 1 = 0 → x = 1, multiplicity 2. x − 3 = 0 → x = 3, multiplicity 3.

Step 2: degree. 1 + 2 + 3 = 6. The degree is 6, which is even.

Step 3: leading coefficient. Multiplying it all out would take a while, but we only need the leading term. Each factor gives its own x: (x)(x)2(x)3 = x6, with coefficient 1 · 1 · 1 = 1. So the leading coefficient is +1, which is positive.

Step 4: end behavior. An even degree with a positive leading coefficient means both ends rise.

Step 5: behavior at each zero. At x = −2 (multiplicity 1, odd), the graph crosses plainly. At x = 1 (multiplicity 2, even), it touches and turns around without crossing. At x = 3 (multiplicity 3, odd), it crosses, flattening as it goes through.

Step 6: the y-intercept, with the arithmetic shown. Substitute x = 0: f(0) = (0 + 2)(0 − 1)2(0 − 3)3 = (2)(−1)2(−3)3. Now (−1)2 = 1 and (−3)3 = −27, so f(0) = (2)(1)(−27) = −54. The graph passes through (0, −54).

Step 7: put it together. Coming down from the upper left, the curve crosses at x = −2 into the region below the axis, and it dips through (0, −54). It rises to just touch the axis at x = 1 and bounce back down. Then it crosses upward at x = 3 with a flat spot, and it rises forever. That is a complete, correct shape, and we never plotted a table of points.

Multiplicity is the graph telling you that a factor repeats. Read it in reverse too. If you are handed a graph that clearly bounces off the axis at x = 4, you can write down a factor of (x − 4)2 (or some other even power) right away. Crossing means an odd power, and bouncing means an even power. That one fact lets you rebuild an equation from a picture.
Interactive Drag the exponent on each factor and watch that zero switch between crossing the x-axis, touching and turning back, or flattening out, then step through four polynomials read zero by zero. Open full ↑
Key points
  • Zero, root, solution, x-intercept all name the same number viewed four ways.
  • Factor completely, then use the zero product property, and always check answers by putting them back in.
  • An odd multiplicity means the graph crosses, and an even multiplicity means it touches and turns around.
  • The multiplicities add up to the degree, and you can read the leading coefficient off the factors without multiplying them out.

Section 3Dividing polynomials

A worked synthetic division layout showing coefficients, the divisor value, and the resulting quotient row
Reference. The layout for synthetic division: coefficients across the top, multiply and add down the middle, and the quotient along the bottom. Source and license: see the figure credits

Why divide at all

Factoring a cubic or a polynomial of degree four just by looking is often hopeless. Division rescues you. If you can find one zero, dividing by its factor drops the degree by one, and you keep dropping until what is left is a quadratic that you can factor or run through the quadratic formula. Division is also the only clean way to find the slant asymptote of a rational function, which is waiting for you in Section 5.

The bookkeeping is the same as the long division you learned with whole numbers. Dividing 17 by 5 gives a quotient of 3 and a remainder of 2, and we can write 17 = 5 · 3 + 2. Polynomials follow the same rule:

dividend = divisor · quotient + remainder, or P(x) = D(x) · Q(x) + R(x), where the degree of R(x) is less than the degree of D(x).

That rule is your answer checker. Multiply the divisor by the quotient, add the remainder, and you must get the original polynomial back. If you do not, something went wrong, and now you know it before you turn the page.

Worked example: long division, one step at a time

Divide x3 − 4x2 + 2x + 5 by x − 3.

Step 1: divide the leading terms. x3 ÷ x = x2. Write x2 as the first term of the quotient. Multiply it back through the divisor: x2(x − 3) = x3 − 3x2. Subtract that from the first two terms of the dividend: (x3 − 4x2) − (x3 − 3x2) = x3 − x3 − 4x2 + 3x2 = −x2. Bring down the +2x, giving −x2 + 2x.

Step 2: repeat. −x2 ÷ x = −x. That is the next quotient term. Multiply back: −x(x − 3) = −x2 + 3x. Subtract: (−x2 + 2x) − (−x2 + 3x) = −x2 + x2 + 2x − 3x = −x. Bring down the +5, giving −x + 5.

Step 3: repeat once more. −x ÷ x = −1. Multiply back: −1(x − 3) = −x + 3. Subtract: (−x + 5) − (−x + 3) = −x + x + 5 − 3 = 2.

Step 4: stop and read off the answer. The leftover 2 has degree 0, which is less than the divisor's degree 1, so we stop. The quotient is x2 − x − 1 and the remainder is 2:

(x3 − 4x2 + 2x + 5)/(x − 3) = x2 − x − 1 + (2)/(x − 3)

Step 5: check it. Multiply divisor by quotient: (x − 3)(x2 − x − 1). Distribute the x: x3 − x2 − x. Distribute the −3: −3x2 + 3x + 3. Combine: x3 + (−x2 − 3x2) + (−x + 3x) + 3 = x3 − 4x2 + 2x + 3. Now add the remainder 2: x3 − 4x2 + 2x + 5. That is the original dividend exactly. ✓

Synthetic division: the shortcut for x − c

When the divisor has the form x − c, and only then, you can throw away the letters and work with the coefficients alone. That is synthetic division. Two setup rules make or break it. Use c from the form x − c (so dividing by x + 2 means c = −2), and write a 0 placeholder for every missing power.

Redo the same division, x3 − 4x2 + 2x + 5 divided by x − 3, by synthetic division. The coefficients are 1, −4, 2, and 5. The divisor x − 3 means c = 3.

Step 1. Bring the first coefficient straight down: 1.
Step 2. Multiply it by c: 1 × 3 = 3. Add to the next coefficient: −4 + 3 = −1.
Step 3. Multiply: −1 × 3 = −3. Add to the next coefficient: 2 + (−3) = −1.
Step 4. Multiply: −1 × 3 = −3. Add to the last coefficient: 5 + (−3) = 2.

The bottom row reads 1, −1, −1, and then 2. The last number is always the remainder, and the numbers before it are the coefficients of the quotient, starting one degree lower than the dividend. The dividend was degree 3, so the quotient is degree 2: x2 − x − 1, with remainder 2. That matches the long division answer, in about a quarter of the writing.

 Long divisionSynthetic division
Works forAny divisor: x − 3, x2 + 1, 3x − 5, anythingOnly divisors of the form x − c
You writeFull terms with variablesCoefficients only
OperationsDivide, multiply, subtract, bring downMultiply and add (no subtracting)
Missing termsLeave a gap or write 0x2Must write a 0 placeholder
SpeedSlower, more writingFast once the setup is right
Typical useSlant asymptotes, quadratic divisorsTesting candidate zeros, peeling off factors

The Remainder and Factor Theorems

Two theorems turn division into a machine for finding zeros. The Remainder Theorem says that when you divide P(x) by x − c, the remainder equals P(c). Check it against the example above: P(3) = 33 − 4(3)2 + 2(3) + 5 = 27 − 4(9) + 6 + 5 = 27 − 36 + 6 + 5 = 2. The remainder was 2. ✓

The Factor Theorem is the special case that matters most. If the remainder is 0, then P(c) = 0, which means c is a zero and (x − c) is a factor. A remainder of zero means a factor is found.

Which numbers should you test? The Rational Zero Theorem narrows the field. Any rational zero of a polynomial with integer coefficients must be of the form (factor of the constant term)/(factor of the leading coefficient). It does not promise that a zero exists, but it hands you a short list instead of endless numbers to try.

Worked example: factoring a cubic completely

Factor P(x) = x3 − 4x2 + x + 6 completely and list its zeros.

Step 1: build the list of possible zeros. The constant term is 6, with factors 1, 2, 3, and 6. The leading coefficient is 1, with factor 1. So the possible zeros are ±1, ±2, ±3, and ±6.

Step 2: test the possible zeros until one works. Try x = 1: P(1) = 1 − 4 + 1 + 6 = 4, which is not zero. Try x = −1: P(−1) = (−1)3 − 4(−1)2 + (−1) + 6 = −1 − 4(1) − 1 + 6 = −1 − 4 − 1 + 6 = 0. A zero is found. By the Factor Theorem, (x + 1) is a factor.

Step 3: divide it out with synthetic division. The coefficients are 1, −4, 1, and 6. The factor (x + 1) is (x − (−1)), so c = −1.

Step 4: factor what is left. The bottom row 1, −5, 6 means the quotient is x2 − 5x + 6. Two numbers that multiply to 6 and add to −5 are −2 and −3, so x2 − 5x + 6 = (x − 2)(x − 3).

Step 5: write the full factored form and the zeros. P(x) = (x + 1)(x − 2)(x − 3), so the zeros are x = −1, x = 2, and x = 3, each with multiplicity 1, which means the graph crosses at all three.

Step 6: check by multiplying out. First, (x − 2)(x − 3) = x2 − 3x − 2x + 6 = x2 − 5x + 6. Then (x + 1)(x2 − 5x + 6) = x3 − 5x2 + 6x + x2 − 5x + 6 = x3 − 4x2 + x + 6. The original is back. ✓

Two traps cause most synthetic division errors. The first is the sign: dividing by x + 5 means c = −5, not 5, so rewrite it as x − (−5) if that helps. The second is missing powers: to divide x4 − 16, you must write the coefficients as 1, 0, 0, 0, −16, not 1, −16. Skipping the placeholders quietly shifts every term to the wrong degree, and the answer will be wrong in a way that is hard to spot.
Interactive Step through a synthetic division column by column, bring down, multiply, add, with each move justified against the long division it replaces, then slide k and watch the remainder trace the curve to see why the last number is always P(k). Open full ↑
Key points
  • dividend = divisor · quotient + remainder: multiply back to check every division.
  • Long division handles any divisor; synthetic division is faster but only for x − c.
  • Remainder Theorem: dividing by x − c leaves remainder P(c).
  • Factor Theorem: remainder 0 means c is a zero and (x − c) is a factor, then factor the smaller quotient.

Section 4Rational functions: domain, asymptotes, and holes

A graph of a function with a small open circle marking a removable discontinuity, a hole, on the curve
Reference. A graph with a hole: the open circle marks a single x-value where the function is simply undefined. Source and license: see the figure credits

Domain: the first question, always

A rational function is one polynomial divided by another: f(x) = P(x)/Q(x), where Q(x) is not the zero polynomial. Every rule you already know about fractions applies, and the biggest one is that dividing by zero is undefined. So the domain of a rational function is every real number except those that make the denominator (the bottom) zero.

The method is short: set the denominator equal to zero, solve, and leave those values out. For f(x) = (x + 1)/(x − 4), setting x − 4 = 0 gives x = 4, so the domain is all real numbers with x ≠ 4. Notice that we never look at the numerator (the top) for this. The numerator can be zero all day long, because that just gives an x-intercept, which is perfectly allowed.

Do this before you simplify. This is the most important habit in the section, and the tip in Section 5 will say it again, because canceling first destroys the evidence of where the function was undefined.

What happens at an excluded value: hole or wall?

An excluded x value is a place the graph cannot be, but there are two very different ways it can be missing, and factoring tells them apart.

If the troublesome factor cancels with a matching factor in the numerator, the gap is only one point wide. That is a hole, also called a removable discontinuity (a break that can be patched). The curve looks perfectly normal on both sides, and you draw a small open circle at the missing point.

If the troublesome factor survives in the denominator after all the canceling, then near that x value the denominator shrinks toward zero while the numerator does not, so the quotient blows up. That is a vertical asymptote, an unseen up and down wall that the graph races along but never touches or crosses.

To find the height of a hole, substitute the missing x-value into the simplified function. The original will only hand you 0/0.

Worked example: domain, hole, and vertical asymptote

For f(x) = (x2 − 9)/(x2 − x − 6), find the domain, any holes, and any vertical asymptotes.

Step 1: factor the top and the bottom. The numerator is a difference of squares: x2 − 9 = (x − 3)(x + 3). For the denominator, find two numbers that multiply to −6 and add to −1. Those are −3 and +2, so x2 − x − 6 = (x − 3)(x + 2). The function is now

f(x) = [(x − 3)(x + 3)]/[(x − 3)(x + 2)]

Step 2: state the domain right now, before canceling. The denominator is zero when x − 3 = 0 (so x = 3) or when x + 2 = 0 (so x = −2). The domain is all real x with x ≠ 3 and x ≠ −2.

Step 3: cancel. The factor (x − 3) shows up on the top and the bottom, so f(x) = (x + 3)/(x + 2), true for x ≠ 3. That limit at the end is not there for show, because it is the whole record of the hole.

Step 4: the canceled factor gives a hole. Because (x − 3) canceled, there is a hole at x = 3. Its height comes from the simplified form: (3 + 3)/(3 + 2) = 6/5 = 1.2. So the hole sits at the point (3, 6/5).

Step 5: the surviving factor gives a vertical asymptote. The factor (x + 2) did not cancel, so there is a vertical asymptote at x = −2.

Step 6: confirm the blowup with numbers. Come toward −2 from the right, using the simplified form. At x = −1.9: (−1.9 + 3)/(−1.9 + 2) = 1.1/0.1 = 11. At x = −1.99: 1.01/0.01 = 101. At x = −1.999: 1.001/0.001 = 1001. The values are rocketing up to +∞. From the left, at x = −2.001: 0.999/(−0.001) = −999, plunging to −∞. That is a real wall, with the graph going in opposite directions on its two sides.

Horizontal asymptotes: a contest between degrees

A horizontal asymptote describes how the graph behaves far to the left and far to the right. It is the value the outputs settle toward as x runs off to ±∞. Since Section 1 showed that only the leading terms matter out there, comparing the two leading terms answers the question. Let n be the degree of the numerator and m the degree of the denominator.

ComparisonEnd behaviorExampleResult
n < mBottom grows faster, so the fraction shrinks(4x)/(x2 + 1)Horizontal asymptote y = 0
n = mThey grow at the same rate(3x2 + 5)/(x2 − 4)y = 3/1 = 3 (ratio of leading coefficients)
n = m + 1Top wins by exactly one degree(x2 − 3x − 4)/(x − 2)No horizontal asymptote; a slant asymptote instead
n > m + 1Top runs away entirely(x4 + 1)/(x − 1)No horizontal and no slant asymptote

Test the row with equal degrees using real numbers, so the rule stops feeling like a rule. For g(x) = (3x2 + 5)/(x2 − 4) at x = 100, the numerator is 3(10000) + 5 = 30005 and the denominator is 10000 − 4 = 9996, so g(100) = 30005/9996 ≈ 3.0017. At x = 1000, the numerator is 3,000,005, the denominator is 999,996, and the quotient is ≈ 3.000017. It is squeezing in on y = 3, exactly as the ratio 3/1 predicted.

When the numerator's degree is exactly one more than the denominator's, divide and read the polynomial part. For (x2 − 3x − 4)/(x − 2), run synthetic division with c = 2 on the coefficients 1, −3, −4. Bring down 1; then 1 × 2 = 2 and −3 + 2 = −1; then −1 × 2 = −2 and −4 + (−2) = −6. So the quotient is x − 1 with remainder −6, which means the function equals x − 1 − 6/(x − 2). As x grows, the fraction 6/(x − 2) fades to nothing, and the graph hugs the line y = x − 1. Check it at x = 100: the function gives (10000 − 300 − 4)/98 = 9696/98 ≈ 98.94, while the line gives 100 − 1 = 99. The gap is only 0.06, and it keeps closing.

A graph may cross its horizontal asymptote, but it may never cross a vertical one. The horizontal asymptote is only a statement about the two far ends of the graph, so in the middle the curve is free to cut across it, sometimes several times. The vertical asymptote is different. It sits at an x value that is not in the domain at all, so the graph truly has no point there to cross with.
Interactive Step through five rational functions in factored form and find every vertical asymptote, horizontal asymptote, and hole, with a live graph that draws each feature as you derive it and a zoom slider that shows the curve settling onto its horizontal asymptote. Open full ↑
Key points
  • A rational function is a polynomial over a polynomial. Its domain leaves out every zero of the denominator.
  • Factor first, and write the domain before canceling anything.
  • A canceled factor makes a hole (get its height from the simplified form). A denominator factor that survives makes a vertical asymptote.
  • Find the horizontal asymptote by comparing degrees. A smaller top gives y = 0. Equal degrees give the ratio of the leading coefficients. A top that is bigger by one gives a slant asymptote.

Section 5Graphing rational functions: putting the pieces together

Graph of a rational function on a coordinate plane showing branches approaching vertical and horizontal asymptotes
Reference. A rational function graph: separate branches, each one steered by the asymptotes around it. Source and license: see the figure credits

The routine

Everything in this chapter now comes together into one checklist you can repeat. Work it in order. The order is not random, because each step depends on the one before it, and the most common wrong graphs come from doing step 3 before step 2.

StepWhat you doWhat it gives you
1Factor the numerator and the denominator completelyEverything else depends on this
2Set the original denominator equal to zero and solveThe domain: the excluded x-values
3Cancel any common factorsHoles, at the canceled x-values
4Set the remaining denominator equal to zeroVertical asymptotes: draw as dashed lines
5Set the remaining numerator equal to zerox-intercepts (discard any excluded value)
6Evaluate f(0), if 0 is in the domainThe y-intercept
7Compare degrees (divide if the top wins by one)Horizontal or slant asymptote
8Pick a test x in each region between the critical valuesA sign chart: above or below the axis in each strip

Steps 4, 5, and 6 give you the actual points and lines. Step 8 is what stops you from guessing. Once you know whether the curve is above or below the axis in every strip, and which way it runs at each wall, the shape has almost no freedom left.

Worked example: a complete graph, start to finish

Sketch f(x) = (2x2 − 2x − 12)/(x2 − 9).

Step 1: factor. The numerator has a common factor of 2: 2x2 − 2x − 12 = 2(x2 − x − 6). Two numbers that multiply to −6 and add to −1 are −3 and 2, so this is 2(x − 3)(x + 2). The denominator is a difference of squares: x2 − 9 = (x − 3)(x + 3). So

f(x) = [2(x − 3)(x + 2)]/[(x − 3)(x + 3)]

Step 2: domain. The original denominator is zero at x = 3 and x = −3. The domain is all real x with x ≠ 3 and x ≠ −3.

Step 3: cancel, and record the hole. The (x − 3) cancels, leaving f(x) = [2(x + 2)]/(x + 3) for x ≠ 3. Height of the hole: substitute x = 3 into the simplified form: [2(3 + 2)]/(3 + 3) = [2(5)]/6 = 10/6 = 5/3 ≈ 1.67. Hole at (3, 5/3): an open circle.

Step 4: vertical asymptote. The denominator factor that is left, (x + 3), is zero at x = −3, and it did not cancel. Vertical asymptote: x = −3.

Step 5: x-intercept. Set the numerator that is left equal to zero: 2(x + 2) = 0 gives x + 2 = 0, so x = −2. That value is in the domain, so (−2, 0) is a real intercept.

Step 6: y-intercept. Zero is in the domain, so evaluate: f(0) = [2(0 + 2)]/(0 + 3) = [2(2)]/3 = 4/3 ≈ 1.33. (0, 4/3).

Step 7: horizontal asymptote. Use the original. The numerator has degree 2 with leading coefficient 2, and the denominator has degree 2 with leading coefficient 1. The degrees are equal, so y = 2/1 = 2. Horizontal asymptote: y = 2. (The simplified form agrees: degree 1 over degree 1, with leading coefficients 2 and 1, giving 2/1 = 2.)

Step 8: sign chart. The critical values are x = −3 (asymptote) and x = −2 (intercept). They cut the line into three strips. Test one number in each:

Step 9: behavior at the wall. Approach x = −3 from the left, at x = −3.1: [2(−1.1)]/(−0.1) = (−2.2)/(−0.1) = 22, and at x = −3.01 it is (−2.02)/(−0.01) = 202. Shooting to +∞. From the right, at x = −2.9: [2(−0.9)]/(0.1) = (−1.8)/(0.1) = −18, and at x = −2.99 it is (−1.98)/(0.01) = −198. Plunging to −∞.

Step 10: how it meets y = 2. At x = 100: [2(102)]/(103) = 204/103 ≈ 1.98: just below 2. At x = −100: [2(−98)]/(−97) = (−196)/(−97) ≈ 2.02: just above 2. So the right branch rises toward 2 from underneath and the left branch settles toward 2 from above.

The finished picture. Draw the dashed lines x = −3 and y = 2. On the far left, the curve is just above y = 2, and as it moves right, it climbs steeply to +∞ against the wall at x = −3. On the other side of the wall, it comes up from −∞, crosses the axis at (−2, 0), passes through (0, 4/3), and flattens out toward y = 2 from below. One open circle is punched out at (3, 5/3). Every feature came from arithmetic, not guesswork.

Three habits that keep you honest

First, label the hole separately from the asymptote. Both come from the denominator, and both are left out of the domain, but they look nothing alike. A hole is one missing dot on an otherwise ordinary curve, while an asymptote splits the graph into separate branches. Writing "x ≠ 3, x ≠ −3" tells you that two values are left out, but only the factoring tells you which is which.

Second, check with one number far out. Plug in x = 100 or x = −100 and compare the result with the asymptote you predicted, just as Step 10 did. If you predicted y = 2 and the arithmetic hands back 1.98, you are right. If it hands back 47, you made an error earlier on, almost always in comparing the degrees or in a dropped negative sign.

Third, when you solve instead of graph, check every possible answer against the domain. Clearing fractions is allowed, but it can create answers that the original equation never had. Solve (x + 3)/(x − 3) = 6/(x − 3) by multiplying both sides by (x − 3), and you get x + 3 = 6, so x = 3. But x = 3 was left out of the domain from the very first line, because both sides are undefined there. That answer is extraneous (a fake), and the equation has no solution. The rule has no exceptions: put every answer back into the original equation, and throw out any value that makes a denominator zero.

The same warning applies to inequalities, but the fix is different. Do not multiply a rational inequality by a factor such as (x + 3), because you do not know its sign, and multiplying or dividing both sides of an inequality by a negative amount reverses the inequality sign. With plain numbers, that rule is easy to use: −2x < 6 becomes x > −3, not x < −3. (Check x = 0: −2(0) = 0, and 0 < 6 is true, and 0 > −3 is true.) With a variable factor, you cannot use it, because the sign changes from strip to strip. That is exactly why Step 8 uses a sign chart instead, since testing one number in each region settles the sign question without ever multiplying through.

Write down the domain before you cancel, every single time. Once you cancel (x − 3) from the top and bottom, the expression (x + 3)/(x + 2) shows no trace that x = 3 was ever a problem, and you will hand in a graph with no hole in it. Canceling changes the expression, but it does not change the function. The original was never defined at x = 3, and it never will be. Domain first, cancel second.
Interactive An eight-step machine that builds a rational graph one feature at a time, factor, excluded values, walls and holes, intercepts, end behavior, sign chart, finished curve, across four functions covering a hole, a slant asymptote, and a graph that crosses its own horizontal asymptote. Open full ↑
Key points
  • Follow the checklist in order: factor → domain → cancel (holes) → vertical asymptotes → intercepts → end behavior → sign chart.
  • The sign chart removes the guesswork: test one x in each strip between critical values.
  • Near a vertical asymptote, test a value just left and just right; the two sides often run in opposite directions.
  • Confirm the horizontal or slant asymptote with a value far out, such as x = 100, before you commit to the sketch.
  • When you solve a rational equation, put the answers back in, because any answer that makes a denominator zero is extraneous and must be thrown out. For an inequality, never multiply by a variable factor, since multiplying or dividing by a negative flips the inequality sign, so use a sign chart instead.

The chapter in one breath

  • A polynomial allows only whole number exponents, and its graph is continuous and smooth, with no gaps and no corners.
  • The degree and the leading coefficient alone fix the end behavior. An even degree makes the two ends agree, an odd degree makes them disagree, and a negative leading coefficient flips the whole picture.
  • Zeros are x-intercepts. Find them by factoring completely and using the zero product property, and then check each one by putting it back in.
  • An odd multiplicity means the graph crosses the axis, and an even multiplicity means it touches and turns around. The multiplicities add up to the degree.
  • Long division works for any divisor. Synthetic division is the fast version, kept for divisors of the form x − c, so mind the sign of c and the 0 placeholders.
  • The Remainder Theorem says the remainder is P(c), and the Factor Theorem says a remainder of 0 means (x − c) is a factor. This is the standard way to break a cubic down to a quadratic.
  • For a rational function, factor first and state the domain before canceling. Canceled factors become holes, and denominator factors that survive become vertical asymptotes.
  • Degrees settle the far ends. A smaller top gives y = 0, equal degrees give the ratio of the leading coefficients, and a top that is bigger by exactly one gives a slant asymptote, found by dividing.
  • Solving is not graphing. Clearing fractions can create extraneous solutions, so put every answer back into the original equation and throw out anything that makes a denominator zero. Also remember that multiplying or dividing an inequality by a negative reverses the inequality sign.

ReferenceWords worth knowing

Here is a quick list of the words in this chapter. Skim it now, or come back whenever a word stops you in the middle of a problem.

Asymptote
A line that a graph gets closer and closer to as it heads toward infinity (or toward an excluded x value). It is drawn dashed because it is a guide, not part of the curve.
Degree
The highest exponent on the variable, once a polynomial is written in standard form. It limits the number of zeros to n and the number of turning points to n − 1.
Dividend
In a division problem, the polynomial being divided, which is the one under the bar.
Divisor
The polynomial you are dividing by.
End behavior
What the two arms of a graph do as x → +∞ and x → −∞. For a polynomial, it is decided entirely by the degree and the leading coefficient.
Extraneous solution
A value that shows up when you clear fractions (or change an equation in some other way) but does not make the original equation true, usually because it makes a denominator zero. Always put answers back in and throw out any such value.
Factor Theorem
(x − c) is a factor of P(x) if and only if P(c) = 0: that is, if and only if the remainder on dividing by x − c is zero.
Hole (removable discontinuity)
A single missing point on an otherwise ordinary curve, caused by a factor that cancels from both the numerator and the denominator. It is marked with an open circle.
Horizontal asymptote
A flat line y = k that the graph gets close to as x → ±∞. A graph is allowed to cross it in the middle.
Leading coefficient
The number multiplying the term with the highest degree, sign included. Its sign flips the whole end behavior picture.
Long division (polynomial)
The general division algorithm, divide, multiply, subtract, bring down, that works with a divisor of any degree.
Multiplicity
The exponent on a repeated factor, which tells you how many times a zero occurs. An odd multiplicity means the graph crosses, and an even multiplicity means it touches and turns.
Polynomial function
A sum of terms of the form a xn, with n a whole number. There are no variables in denominators and none under root signs.
Quotient
The result of a division, not counting the remainder.
Rational function
A function written as one polynomial divided by another, P(x)/Q(x), with Q(x) not the zero polynomial.
Remainder
What is left over after dividing; its degree is always less than the degree of the divisor.
Remainder Theorem
Dividing P(x) by x − c leaves a remainder of exactly P(c): a fast way to evaluate or to test a candidate zero.
Slant (oblique) asymptote
A slanted line that the graph gets close to at its far ends. It happens when the numerator's degree is exactly one more than the denominator's, and you find it by dividing.
Synthetic division
A shortcut for dividing by x − c that uses only the coefficients, with bring down, multiply, and add. It needs 0 placeholders for any missing power.
Turning point
A point where the graph changes from rising to falling, or from falling to rising. A polynomial of degree n has at most n − 1 of them.
Vertical asymptote
An up and down line x = a that the graph races along but never touches. It happens where a denominator factor survives after canceling.
x-intercept
A point (c, 0) where the graph meets the flat axis. Its x values are exactly the real zeros.
Zero (root)
A number c for which P(c) = 0. Also called a root of the equation P(x) = 0 or a solution of it.

Check yourself

1. For f(x) = −4x5 + 3x2 − 7, state the degree, the leading coefficient, the end behavior, and the most zeros and turning points it can have.
Degree 5 (odd), leading coefficient −4 (negative). The graph rises on the left and falls on the right, with at most 5 real zeros and at most 4 turning points. An odd degree makes the two ends disagree, and the negative leading coefficient flips the standard y = x5 picture. Confirm with a number: f(2) = −4(32) + 3(4) − 7 = −128 + 12 − 7 = −123, which is already heading down on the right.
2. Explain why g(x) = 3x2 − 5/x + 1 is not a polynomial function.
Because 5/x is 5x−1, and polynomials allow only whole number exponents. A variable in a denominator rules it out, and so would a variable under a root sign, since √x = x1/2. This function is a rational function, and it is undefined at x = 0.
3. Find all real zeros of P(x) = x3 − 9x, showing the factoring.
x = 0, x = 3, and x = −3. Factor the GCF: x3 − 9x = x(x2 − 9), then the difference of squares: x(x − 3)(x + 3). Setting each factor to zero gives 0, 3, −3. Check x = −3: (−3)3 − 9(−3) = −27 + 27 = 0 ✓. Pulling out the x first is what keeps you from losing the zero at the origin.
4. For f(x) = (x + 1)3(x − 4)2, give the degree, the end behavior, and the behavior at each zero.
Degree 3 + 2 = 5 (odd), and leading coefficient +1, so the graph falls on the left and rises on the right. At x = −1 (multiplicity 3, odd), it crosses while flattening. At x = 4 (multiplicity 2, even), it touches and turns around. The leading term is (x)3(x)2 = x5 with coefficient 1, so no multiplying out is needed.
5. Use long division to divide 2x3 + x2 − 8x + 5 by x + 2, and then check the remainder a second way.
Quotient 2x2 − 3x − 2, remainder 9. Step by step: 2x3 ÷ x = 2x2, and 2x2(x + 2) = 2x3 + 4x2; subtracting gives x2 − 4x2 = −3x2, bring down −8x. Then −3x2 ÷ x = −3x, and −3x(x + 2) = −3x2 − 6x; subtracting gives −8x + 6x = −2x, bring down +5. Then −2x ÷ x = −2, and −2(x + 2) = −2x − 4; subtracting gives 5 + 4 = 9. Second check by the Remainder Theorem with c = −2: 2(−8) + 4 + 16 + 5 = −16 + 4 + 16 + 5 = 9 ✓
6. Use synthetic division to divide x4 − 16 by x − 2. What does the result tell you?
Quotient x3 + 2x2 + 4x + 8, remainder 0, so (x − 2) is a factor and 2 is a zero. Write the coefficients with placeholders: 1, 0, 0, 0, −16, with c = 2. Bring down 1. Then 1 × 2 = 2 and 0 + 2 = 2. Then 2 × 2 = 4 and 0 + 4 = 4. Then 4 × 2 = 8 and 0 + 8 = 8. Last, 8 × 2 = 16 and −16 + 16 = 0. Forgetting the three zero placeholders is the classic error here.
7. Without dividing, find the remainder when x3 − 2x + 7 is divided by x + 3.
The remainder is −14. By the Remainder Theorem, evaluate at c = −3 (because x + 3 = x − (−3)): (−3)3 − 2(−3) + 7 = −27 + 6 + 7 = −14. Since it is not zero, (x + 3) is not a factor.
8. State the domain of f(x) = (x + 5)/(x2 − 4x − 5), and say whether the excluded values are holes or vertical asymptotes.
Domain: all real x with x ≠ 5 and x ≠ −1. Both are vertical asymptotes, and there are no holes. Factor the denominator. Two numbers that multiply to −5 and add to −4 are −5 and +1, so it is (x − 5)(x + 1). The numerator (x + 5) matches neither factor, because (x + 5) and (x − 5) are not the same. So nothing cancels, and both excluded values are asymptotes.
9. For f(x) = (x2 − x − 6)/(x2 − 4), find the domain, the hole (with its point), and the vertical asymptote.
Domain: x ≠ 2 and x ≠ −2. Hole at (−2, 5/4). Vertical asymptote at x = 2. Factor: the numerator is (x − 3)(x + 2), and the denominator is (x − 2)(x + 2). State the domain before canceling, then cancel (x + 2) to get (x − 3)/(x − 2) for x ≠ −2. The hole's height comes from the simplified form: (−2 − 3)/(−2 − 2) = (−5)/(−4) = 5/4.
10. Find the horizontal asymptote of each: f(x) = (5x3 + 2x)/(2x3 − x2 + 1) and g(x) = (4x)/(x2 + 1).
For f: y = 5/2. For g: y = 0. In f, the degrees are equal (3 and 3), so take the ratio of the leading coefficients, 5/2 = 2.5. In g, the numerator's degree (1) is smaller than the denominator's (2), so the fraction shrinks toward zero. Check at x = 100: 400/10001 ≈ 0.04, and it keeps shrinking.
11. Find the slant asymptote of f(x) = (x2 + 3x + 5)/(x + 1).
y = x + 2. The numerator's degree is exactly one more than the denominator's, so divide. Use synthetic division with c = −1 on 1, 3, 5. Bring down 1. Then 1 × (−1) = −1 and 3 + (−1) = 2. Then 2 × (−1) = −2 and 5 + (−2) = 3. So f(x) = x + 2 + 3/(x + 1). As x → ±∞, the fraction fades to zero, and the graph hugs the line y = x + 2.
12. For f(x) = (x − 1)/(x2 − x − 6), find the domain, both intercepts, and every asymptote.
Domain: x ≠ 3 and x ≠ −2. Vertical asymptotes x = 3 and x = −2; horizontal asymptote y = 0. x-intercept (1, 0); y-intercept (0, 1/6). The denominator factors as (x − 3)(x + 2), and nothing cancels, so both excluded values are asymptotes, and there are no holes. The numerator is zero at x = 1, which is in the domain. For the y-intercept, f(0) = (0 − 1)/(0 − 0 − 6) = (−1)/(−6) = 1/6. Degree 1 over degree 2 gives y = 0.