Graphing Polynomial Functions

Graphing polynomial functions by hand uses a few key features instead of plotting dozens of points. Find the zeros and their multiplicities, the y-intercept and the end behavior. Then check the sign between zeros and connect everything with one smooth curve that has at most n - 1 turns.

Before this lesson: You should know End Behavior of Polynomials, Fundamental Theorem of Algebra, Solving Polynomial Equations and X-Intercepts and Y-Intercepts.

What Shapes a Polynomial Graph

Polynomial graphs are smooth and unbroken, with no corners or gaps. Four features tell you almost everything about the shape.

FeatureHow to find itWhat it shows
ZerosSet each factor equal to 0Where the graph meets the x-axis
MultiplicityCount how many times each factor appearsOdd: crosses the axis. Even: touches and turns back.
y-interceptFind f(0)Where the graph meets the y-axis
End behaviorDegree and sign of the leading coefficientWhere the two ends point

A polynomial of degree n has at most n - 1 turning points, where the graph changes from rising to falling or the other way.

Graph of f(x) = (x + 2)(x − 1)^2(x − 3). Both ends point up. The curve crosses the x-axis at −2, dips to a low point, rises to touch the x-axis at 1, dips again and crosses at 3. The y-intercept (0, −6) is marked. Labels show crosses at −2 and 3, touches at 1.
Degree 4 with a positive leading coefficient: both ends rise. It crosses at −2 and 3 and touches at 1.

Steps for Graphing a Polynomial

  1. Factor the polynomial completely.
  2. Find the zeros and their multiplicities.
  3. Find the y-intercept, f(0).
  4. Find the end behavior from the leading term.
  5. Test one x-value between each pair of zeros to see if the graph is above or below the axis.
  6. Plot the points and draw one smooth curve that matches the ends, crosses or touches at each zero, and turns at most n - 1 times.

Worked Examples

Example 1: A cubic

Graph f(x) = x^3 - x^2 - 6x.

  1. Factor out x (see factoring out the GCF): f(x) = x(x^2 - x - 6)
  2. Factor the trinomial (see factoring trinomials): f(x) = x(x - 3)(x + 2)
  3. Zeros: −2, 0 and 3, each with multiplicity 1, so the graph crosses at each one.
  4. y-intercept: f(0) = 0, the point (0, 0)
  5. End behavior (see end behavior of polynomials): leading term x^3 means down on the left, up on the right.
  6. Test x = -1: f(-1) = (-1)(-4)(1) = 4, above the axis
  7. Test x = 1: f(1) = (1)(-2)(3) = -6, below the axis
  8. Sketch: rise from the lower left, cross at −2, peak near x = -1, cross at 0, dip near x = 2, cross at 3, then rise.

Answer: An S-shaped curve through (-2, 0), (0, 0) and (3, 0), with 2 turning points (degree 3 allows at most 2).

Example 2: A quartic with a touching zero

Graph f(x) = (x + 2)(x - 1)^2(x - 3). This is the graph above.

  1. Zeros: −2 (multiplicity 1), 1 (multiplicity 2) and 3 (multiplicity 1) (see fundamental theorem of algebra).
  2. The graph crosses at −2 and 3 and touches at 1.
  3. y-intercept: f(0) = (2)(-1)^2(-3)
  4. Evaluate: (2)(1)(-3) = -6, the point (0, -6)
  5. Degree: 1 + 2 + 1 = 4. The leading coefficient is 1 \cdot 1 \cdot 1 = 1, positive. So both ends point up.
  6. Test x = -1: f(-1) = (1)(-2)^2(-4) = (1)(4)(-4) = -16, below the axis
  7. Test x = 2: f(2) = (4)(1)^2(-1) = -4, below the axis
  8. Sketch: come down from the upper left, cross at −2, dip near −16, rise to touch at 1, dip near −4, cross at 3, rise to the upper right.

Answer: A W-shaped curve with 3 turning points (degree 4 allows at most 3).

Example 3: A negative leading coefficient

Graph f(x) = -x^3 + 4x.

  1. Factor out -x: f(x) = -x(x^2 - 4)
  2. Factor the difference of squares (see factoring the difference of squares): f(x) = -x(x - 2)(x + 2)
  3. Zeros: −2, 0 and 2, each crossing.
  4. y-intercept: f(0) = 0
  5. End behavior: leading term -x^3 means up on the left, down on the right.
  6. Test x = -1: f(-1) = -(-1)^3 + 4(-1) = 1 - 4 = -3, below
  7. Test x = 1: f(1) = -(1)^3 + 4(1) = -1 + 4 = 3, above

Answer: The curve falls from the upper left, crosses at −2, dips to about −3, rises through the origin to about 3, and falls through 2 to the lower right.

Example 4: Write the equation from a graph

A degree-3 graph crosses the x-axis at −3, touches it at 2, and has y-intercept −24. Write its equation.

  1. Crossing at −3 gives the factor x + 3. Touching at 2 gives (x - 2)^2.
  2. Write the form with an unknown leading coefficient a: f(x) = a(x + 3)(x - 2)^2
  3. Use the y-intercept: f(0) = a(3)(-2)^2 = -24
  4. Simplify: 12a = -24
  5. Divide both sides by 12: a = -2

Answer: f(x) = -2(x + 3)(x - 2)^2

Example 5: Word problem with an open box

An open box is made from a 20-inch by 12-inch sheet by cutting x-inch squares from each corner. Its volume is V(x) = x(20 - 2x)(12 - 2x). Sketch the graph, decide which part makes sense, and find the best whole-inch cut.

  1. Zeros: x = 0, 20 - 2x = 0 gives x = 10, and 12 - 2x = 0 gives x = 6.
  2. Leading term: x(-2x)(-2x) = 4x^3, so down on the left and up on the right.
  3. A cut must be positive and leave a bottom, so only 0 \lt x \lt 6 makes sense.
  4. V(1) = 1 \cdot 18 \cdot 10 = 180
  5. V(2) = 2 \cdot 16 \cdot 8 = 256
  6. V(3) = 3 \cdot 14 \cdot 6 = 252
  7. V(4) = 4 \cdot 12 \cdot 4 = 192
  8. V(5) = 5 \cdot 10 \cdot 2 = 100

Answer: On 0 \lt x \lt 6 the graph rises to a peak and falls back to 0. The best whole-inch cut is 2 inches, which gives 256 cubic inches. The true peak is between 2 and 3 inches.

Common Mistakes

MistakeExample of the errorFix
Crossing at an even zeroDrawing (x - 1)^2 crossing the axis at 1Even multiplicity touches the axis and turns back.
Wrong end behaviorUsing +5x for 5x - 3x^4Use the highest-degree term, -3x^4: both ends down.
Wrong y-intercept from factored formf(x) = -2(x + 3)(x - 2)^2 has y-intercept 12Include the −2: f(0) = -2(3)(4) = -24.
Too many turnsA cubic drawn with 3 turnsA degree-n graph has at most n - 1 turning points.
Guessing the sign between zerosDrawing the curve above the axis between −2 and 0 without checkingTest a point, like f(-1), to see if it is above or below.

Practice Problems

  1. For f(x) = (x - 4)(x + 1)^2, give the zeros, how the graph behaves at each, the y-intercept and the end behavior.
  2. For f(x) = x^3 - 4x^2, give the zeros with multiplicities and the end behavior.
  3. Find the y-intercept and end behavior of f(x) = -(x - 1)(x + 3)(x - 2).
  4. What is the greatest number of turning points of f(x) = 5x^4 - x + 2?
  5. Find the zeros and y-intercept of f(x) = x^4 - 5x^2 + 4.
  6. For f(x) = (x + 1)(x - 2)(x - 5), is the graph above or below the x-axis between −1 and 2? Between 2 and 5?
  7. A cubic has zeros −1 (multiplicity 1) and 3 (multiplicity 2) and passes through (0, 18). Write its equation.
  8. A cubic touches the x-axis at −2, crosses at 1, and falls to the right. Write a possible equation.
  9. For f(x) = x(x - 2)(x + 3), find f(-1) and f(1).
  10. An open box is made from a 16-inch by 10-inch sheet by cutting x-inch corner squares: V(x) = x(16 - 2x)(10 - 2x). Find the zeros, the sensible domain and the best whole-inch cut.
Show answers
  1. Zeros: 4 (multiplicity 1, crosses) and −1 (multiplicity 2, touches)
    y-intercept: f(0) = (-4)(1)^2 = -4
    Leading term x^3: down on the left, up on the right
  2. Factor out x^2: f(x) = x^2(x - 4)
    Zeros: 0 (multiplicity 2, touches) and 4 (multiplicity 1, crosses)
    Leading term x^3: down on the left, up on the right
  3. y-intercept: f(0) = -(-1)(3)(-2)
    Multiply: -(6) = -6
    Leading term -x^3: up on the left, down on the right
  4. The degree is 4
    Answer: at most 4 - 1 = 3 turning points
  5. Factor: (x^2 - 1)(x^2 - 4)
    Factor again: (x - 1)(x + 1)(x - 2)(x + 2)
    Zeros: \pm 1, \pm 2, each crossing
    y-intercept: f(0) = 4
  6. Test x = 0: (1)(-2)(-5) = 10, so above the axis between −1 and 2
    Test x = 3: (4)(1)(-2) = -8, so below the axis between 2 and 5
  7. Form: f(x) = a(x + 1)(x - 3)^2
    Use (0, 18): a(1)(-3)^2 = 18
    Simplify: 9a = 18
    Divide by 9: a = 2
    Answer: f(x) = 2(x + 1)(x - 3)^2
  8. Touching at −2 needs (x + 2)^2; crossing at 1 needs (x - 1)
    Falling to the right with odd degree needs a negative leading coefficient
    Answer: f(x) = -(x + 2)^2(x - 1) (any negative a works)
  9. f(-1) = (-1)(-3)(2) = 6
    f(1) = (1)(-1)(4) = -4
  10. Zeros: x = 0, x = 8 and x = 5
    Sensible domain: 0 \lt x \lt 5
    V(1) = 1 \cdot 14 \cdot 8 = 112
    V(2) = 2 \cdot 12 \cdot 6 = 144
    V(3) = 3 \cdot 10 \cdot 4 = 120
    V(4) = 4 \cdot 8 \cdot 2 = 64
    Answer: the best whole-inch cut is 2 inches, for 144 cubic inches

FAQ

How do you graph a polynomial function?

Factor it to find the zeros and multiplicities, find the y-intercept, and use the leading term for end behavior. Test points between zeros, then draw a smooth curve through everything.

How does multiplicity change the graph?

At a zero with odd multiplicity, the graph crosses the x-axis. At a zero with even multiplicity, it touches the axis and turns around. Higher multiplicities also flatten the graph near the zero.

How many turning points can a polynomial have?

A polynomial of degree n has at most n - 1 turning points. A cubic can have 0 or 2, and a quartic can have 1 or 3.

Can you find the exact high and low points by hand?

Not with Algebra 2 tools, except in special cases. Use a table of values or a graphing calculator to estimate them. Calculus gives exact answers.

Summary

  • Factor to find the zeros and their multiplicities.
  • Odd multiplicity crosses the x-axis; even multiplicity touches it.
  • Find the y-intercept with f(0) and the end behavior from the leading term.
  • Test a point between zeros to see whether the graph is above or below.
  • A degree-n graph has at most n - 1 turning points.

Previous lesson: Fundamental Theorem of Algebra

Next lesson: nth Roots

Back to the Algebra 2 Index