Quarry School

Graphs of polynomial functions: crash course

about 29 min to listen6 lessons14 questions to tryUnit 13 of 17

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

Starts here no skill from another unit needed first

1 Zeros from the factored form

about 4 minOpen the full lessonOnly this lesson

The rule

If f(x)=(x−c)· (other factors), then f(c)=0: c is a zero of f, and the graph meets the x-axis at the point (c, 0).

In factored form the zeros are exactly the inputs that make at least one factor 0, so x+c gives −c, a lone x gives 0, and a factor that is a nonzero number gives none.

How

  1. Use the zero-product rule on f(x) = −2x(x + 4)(x − 1): a product is zero exactly when a factor is zero. This formula is already one product, so its factors can be solved separately.
  2. Skip −2: it is a number other than zero, so it can never make the product zero. Set the factors containing x equal to zero: x = 0, x + 4 = 0 and x − 1 = 0.
  3. Solve each equation by keeping both sides equal. Subtract 4 in x + 4 = 0 to get x = −4; add 1 in x − 1 = 0 to get x = 1. The lone x gives x = 0.
  4. Use the intercept rule: each real zero c gives the point (c, 0). List the distinct zeros −4, 0 and 1, and plot (−4, 0), (0, 0) and (1, 0). Every factor containing x has been used, so this list is complete.
  5. Check by substitution in the original product: f(−4) = −2 · (−4) · 0 · (−5) = 0, f(0) = −2 · 0 · 4 · (−1) = 0 and f(1) = −2 · 1 · 5 · 0 = 0. Each proposed zero makes a factor zero.

Worked example

Worked example

Three factors, a number in front and a lone x

Find every zero of f(x) = −2x(x + 4)(x − 1).

What it asks. Find every input that makes the output zero.

Show the steps and the answer

The plan. Skip the number in front, set each factor with an x equal to zero, then solve.

−2: only a number, no zero

x: gives x = 0

x + 4: gives x = −4

x − 1: gives x = 1

input xoutput f(x)−560−40−3−24−2−24−1−1200102−24↑ solve: output given, read every input above it
The three 0s in the output row sit under −4, 0 and 1, one for each factor with an x.
  1. Plan. Skip the number in front, set each factor with an x equal to zero, then solve.
  1. Check the shape: f(x)=−2·x·(x+4)·(x−1) is one product, with nothing added or subtracted outside the factors.Zeros can be read off only from a product. A term added at the end, such as + 6, would break the rule.
  2. Skip the factor −2.It is −2 for every input. It is never 0, so it cannot make the product 0, and −2 is not a zero.
  3. Set the lone x equal to 0: x=0.This finds the input that makes the factor x equal 0, since x is the same as (x − 0). Plug it back in: f(0) = −2 · 0 · 4 · (−1) = 0.
  4. Set x + 4 = 0, then subtract 4 from both sides: x=−4.This finds the one input that makes x + 4 equal 0. Plug it back in: −4 + 4 = 0, so f(−4) = −2 · (−4) · 0 · (−5) = 0. The gotcha: a plus inside the factor gives a negative zero.
  5. Set x − 1 = 0, then add 1 to both sides: x=1.This finds the one input that makes x − 1 equal 0. Plug it back in: 1 − 1 = 0, so f(1) = −2 · 1 · 5 · 0 = 0.
  6. List the zeros from smallest to largest: −4, 0, 1.Every factor that holds an x has been used. By the zero product property, any input that gives 0 must make some factor 0, so there are no other zeros.
Answer
  • x=−4
  • x = 0
  • x = 1
  • On the graph: the points (−4, 0), (0, 0) and (1, 0).
Double-check Multiply out, a second way to the same zeros. First (x + 4)(x − 1) = x2 + 3x − 4, then −2x times that gives f(x) = −2x3 − 6x2 + 8x. In this form f(−4) = −2(−64) − 6(16) + 8(−4) = 128 − 96 − 32 = 0, f(0) = 0 − 0 + 0 = 0 and f(1) = −2 − 6 + 8 = 0. The table, worked from this form for the inputs −5 to 2, holds 0 in the output row only under −4, 0 and 1. The input 2, which is not on the list, gives f(2) = −16 − 24 + 16 = −24.

The trap

Wrong: copy the sign inside a factor. Right: solve the factor equal to zero, then substitute to check.

Quick check

Try it before you open its steps. It is question 6 of 11 in the full lesson, where they run from easy to exam-hard.

Try it · level 6 of 11

A factor that is never 0

Find the zeros of r(x) = (x + 3)(x2 + 4).

What it asks. Find every real zero.

Show the steps and the answer

The plan. Set each factor equal to zero; a square plus a positive number has no real solution.

no square ever lands below 0(−3, 9)(3, 9)(0, 0)−33−49
The graph of y = x2 never dips below the x-axis, so x2 + 4 never gets down to 0.
input xoutput x² + 4−313−28−15041528313
The smallest output of x2 + 4 is the 4 under 0, and no column holds a 0.
  1. Plan. Set each factor equal to zero; a square plus a positive number has no real solution.
  1. Set x + 3 = 0, then subtract 3 from both sides: x=−3.This finds the input that makes x + 3 equal 0. Plug it back in: r(−3) = 0 · (9 + 4) = 0.
  2. Try to set x2+4=0. Subtracting 4 from both sides gives x2=−4.This asks which input would make the second factor 0.
  3. No real number works, so x2+4 gives no zero.A square is never negative: 22 = 4 and (−2)2 = 4. So x2 + 4 is always 4 or more. The gotcha: x2 + 4 does not split into (x − 2)(x + 2), which multiplies out to x2 − 4.
  4. The only zero is −3.Only the first factor can ever be 0.
Answer
x = −3, the only zero
Double-check Look at the table of the second factor, x2 + 4: its smallest output is the 4 under 0, and no column holds a 0. That matches the reason: x2 is never below 0, so x2 + 4 is never below 4. The tempting extra zero 2 gives r(2) = 5 · 8 = 40, not 0.

2 Multiplicity and what the graph does at a zero

about 5 minOpen the full lessonOnly this lesson

The rule

Let c be a zero of a polynomial f that is not the constant 0.

If the factor (x−c) appears exactly m times in the factored form of f(x), then c has multiplicity m.source 1 Odd m: the graph crosses the x-axis at x=c. Even m: the graph touches the x-axis at x=c and turns back.source 1 The larger m is, the flatter the graph lies near x=c.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.4 Graphs of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the zero-product rule on f(x) = x(x − 3)2(x + 2)3. Solve x = 0, x − 3 = 0 and x + 2 = 0 to get the zeros 0, 3 and −2. These are the inputs where a factor becomes zero.
  2. Use the multiplicity rule: count how often each zero’s factor appears. The lone x counts once, (x − 3)2 counts twice and (x + 2)3 counts three times. Thus 0 has multiplicity 1, 3 has multiplicity 2 and −2 has multiplicity 3.
  3. Apply odd crosses and even touches. At 0, multiplicity 1 gives a crossing; at 3, multiplicity 2 gives a touch and turn; at −2, multiplicity 3 gives a flattened crossing. Odd powers change sign across a zero; even powers keep the same sign.
  4. Check the count using the product’s degree: x · x2 · x3 = x6, and 1 + 2 + 3 = 6. All factors here are powers of x − c, so their multiplicities account for the whole degree.
  5. Check the predicted crossings with signs on both sides, without passing another zero. Around −2, f(−3) = 108 and f(−1) = −16 have opposite signs. Around 0, f(−1) = −16 and f(1) = 108 have opposite signs. Around 3, f(2) = 128 and f(4) = 864 are both positive, which agrees with a touch and turn.

Worked example

Worked example

Three zeros, three different behaviors

For f(x) = x(x − 3)2(x + 2)3, find each zero, its multiplicity, and whether the graph crosses the x-axis there or touches it and turns back.

What it asks. Find each zero, its multiplicity and its behavior.

input xoutput f(x)−3108−20−1−160011082128304864
x:−3,−2,−1,0,1,2,3,4;f(x):108,0,−16,0,108,128,0,864.
Show the steps and the answer

The plan. Solve each factor, read its power, then use odd for crossing and even for touch.

input xoutput f(x)−3108−20−1−160011082128304864↑ solve: output given, read every input above it
The three highlighted 0s are the zeros.
  1. Plan. Solve each factor, read its power, then use odd for crossing and even for touch.
  1. Say what the question asks: find every input that makes the output 0, count how many times each one's factor appears, and use that count to say what the graph does at that spot.A zero of a polynomial is an input whose output is 0, and the multiplicity is the count of its factor.
  2. List the factors with their exponents: x has exponent 1, (x−3) has exponent 2, and (x+2) has exponent 3.No exponent written means the factor appears once, so the lone x counts once.
  3. Set x=0. This finds the input that makes the first factor zero. Plug it back in: f(0)=0·(0−3)2·(0+2)3=0·9·8=0. So 0 is a zero with multiplicity 1.The factor x is the same as (x − 0), and one zero factor makes the whole product 0.
  4. Set x−3=0, so x=3. This finds the input that makes the second factor zero. Plug it back in: f(3)=3·(0)2·(5)3=3·0·125=0. So 3 is a zero with multiplicity 2.The exponent on (x − 3) is 2.
  5. Set x+2=0, so x=−2. This finds the input that makes the third factor zero. Plug it back in: f(−2)=(−2)·(−5)2·(0)3=(−2)·25·0=0. So −2 is a zero with multiplicity 3.The exponent on (x + 2) is 3.
  6. Sort the multiplicities into odd and even. At x=0 the multiplicity is 1, odd: the graph crosses at a slant. At x=3 it is 2, even: the graph touches and turns back. At x=−2 it is 3, odd: the graph flattens, then crosses.An odd count of the factor lets the sign of the output change across the zero. An even count does not.
  7. Add the multiplicities: 1+2+3=6. Multiply the leading pieces: x·x2·x3=x6, so the degree is 6. The two numbers match.When every factor has the form (x − c), the multiplicities add up to the degree, so no zero was missed.
Answer
  • x = −2: multiplicity 3, the graph flattens and crosses.
  • x = 0: multiplicity 1, the graph crosses at a slant.
  • x = 3: multiplicity 2, the graph touches the x-axis and turns back.
Double-check Plug in a number on each side of every zero and watch the sign. The table shows the values. f(−3) = (−3)(−6)2(−1)3 = (−3)(36)(−1) = 108 and f(−1) = (−1)(−4)2(1)3 = −16: positive, then negative, so the graph crosses at −2. f(−1) = −16 and f(1) = (1)(−2)2(3)3 = 108: negative, then positive, so it crosses at 0. f(2) = (2)(−1)2(4)3 = 128 and f(4) = (4)(1)2(6)3 = 864: positive on both sides, so it touches at 3 and turns back.

The trap

Wrong: cross at every zero. Right: cross at odd multiplicity and touch at even multiplicity.

Quick check

Try it before you open its steps. It is question 5 of 10 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 10

A repeated factor hiding behind grouping

Find the zeros of k(x) = x3 − 3x2 − 9x + 27, their multiplicities, and what the graph does at each.

What it asks. Find each zero, its multiplicity and its behavior.

Show the steps and the answer

The plan. Factor fully, combine repeated factors, then use odd for crossing and even for touch.

  1. Plan. Factor fully, combine repeated factors, then use odd for crossing and even for touch.
  1. Say what is asked: factor the formula fully, then read each zero, its multiplicity and the behavior.With four terms and no common factor, grouping is the tool to try.
  2. Group in pairs and factor each pair: (x3−3x2)+(−9x+27)=x2(x−3)−9(x−3).x2 comes out of the first pair and −9 out of the second, leaving the same bracket (x − 3) in both.
  3. Pull out the shared bracket: k(x)=(x−3)(x2−9).Both pieces contain (x − 3).
  4. Factor the difference of squares: x2−9=(x−3)(x+3).x2 − 9 is x2 − 32, and a2 − b2 = (a − b)(a + b).
  5. Collect the copies: k(x)=(x−3)(x−3)(x+3)=(x−3)2(x+3).The factor (x − 3) appeared in two places, so its exponents add: 1 + 1 = 2.
  6. Read the zeros. x=3 has multiplicity 2. x=−3 has multiplicity 1. Plug back into the original formula: k(3)=27−27−27+27=0 and k(−3)=−27−27+27+27=0.Both inputs give output 0, a check that agrees with the factoring.
  7. At 3 the multiplicity is even: the graph touches and turns back. At −3 it is odd: the graph crosses at a slant.Odd goes through, even bounces.
Answer
  • k(x)=(x−3)2(x+3).
  • x = −3: multiplicity 1, crosses at a slant.
  • x = 3: multiplicity 2, touches and turns back.
Double-check Using the original formula: k(−4) = −64 − 48 + 36 + 27 = −49, k(0) = 27 and k(4) = 64 − 48 − 36 + 27 = 7. Negative, then positive across −3: it crossed. Positive on both sides of 3: it touched. Also 2 + 1 = 3, the degree.

3 The Intermediate Value Theorem

about 4 minOpen the full lessonOnly this lesson

The rule

Intermediate Value Theorem, zero version: let f be a polynomial and let a < b.

If f(a) and f(b) have opposite signs, then there is at least one number c with a < c < b and f(c)=0.source 1 General version: f takes every value between f(a) and f(b) at some input between a and b.source 1

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.4 Graphs of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Check the Intermediate Value Theorem’s condition for f(x) = x3 + x − 3 on 1 ≤ x ≤ 2. It is a polynomial, so its graph is unbroken throughout this interval.
  2. Evaluate both endpoints by substitution: f(1) = 1 + 1 − 3 = −1 and f(2) = 8 + 2 − 3 = 7. These outputs put one endpoint below the axis and the other above it.
  3. Apply the theorem: the opposite signs guarantee at least one zero between 1 and 2. They do not identify an exact zero or prove there is only one.
  4. To narrow the interval to consecutive tenths, test f(1.1) = −0.569, f(1.2) = −0.072 and f(1.3) = 0.497. Apply the same sign-change rule to 1.2 and 1.3: at least one zero lies between them. Matching signs at 1.1 and 1.2 alone give no conclusion about that smaller interval.
  5. Check with the theorem’s general version: f(x) = 0 means x3 + x = 3. At 1.2, x3 + x = 2.928; at 1.3, it is 3.497. The unbroken graph reaches 3 between those inputs, confirming the same interval.

Worked example

Worked example

Trapping a zero that factoring does not find

Let f(x) = x3 + x − 3.
(a) Show that f has a zero between 1 and 2.
(b) Find two tenths next to each other, such as 1.6 and 1.7, that the zero lies between.

What it asks. Prove a zero exists and narrow its location to consecutive tenths.

Show the steps and the answer

The plan. Find opposite signs, then test tenths and keep a sign-changing pair.

input xoutput f(x)1−11.1−0.5691.2−0.0721.30.49727
The same picture a third time: x: 1, 1.1, 1.2, 1.3, 2; f(x): −1, −0.569, −0.072, 0.497, 7.
  1. Plan. Find opposite signs, then test tenths and keep a sign-changing pair.
  1. Say what the question asks. A zero is an input whose output is 0. Part (a) asks you to prove such an input exists between 1 and 2. Part (b) asks you to shrink that stretch to one tenth wide.This polynomial has no factoring that falls out by grouping, so you cannot read the zero from brackets. The Intermediate Value Theorem lets you trap it instead.
  2. Note that f is a polynomial.A polynomial has an unbroken graph, which is what the theorem needs.
  3. Compute f(1)=13+1−3=1+1−3=−1. Sign: −.Replace every x with 1. The output is negative, so the graph is below the x-axis at x = 1.
  4. Compute f(2)=23+2−3=8+2−3=7. Sign: +.Replace every x with 2. The output is positive, so the graph is above the x-axis at x = 2.
  5. Conclude part (a): f(1) < 0 and f(2) > 0, so f has at least one zero between 1 and 2.Opposite signs at the two ends of an unbroken curve force a crossing between them.
  6. Decide where to test next. The output −1 is much closer to 0 than the output 7, so start near x=1.This is a hint for where to look first, not a guarantee. It saves work when it is right.
  7. Compute f(1.1)=1.331+1.1−3=−0.569. Sign: −.1.13 = 1.1 × 1.1 × 1.1 = 1.331. The output is still negative, so the zero is to the right of 1.1.
  8. Compute f(1.2)=1.728+1.2−3=−0.072. Sign: −.1.23 = 1.44 × 1.2 = 1.728. Still negative, but very close to 0.
  9. Compute f(1.3)=2.197+1.3−3=0.497. Sign: +.1.33 = 1.69 × 1.3 = 2.197. The sign has flipped to positive.
  10. Conclude part (b): the sign flips between the columns under 1.2 and 1.3 in the table, so the zero is between 1.2 and 1.3.f(1.2) < 0 and f(1.3) > 0, and the theorem applies to this shorter stretch the same way.
Answer
  • (a) f(1) = −1 is negative and f(2) = 7 is positive, so f has at least one zero between 1 and 2.
  • (b) The zero is between 1.2 and 1.3.
Double-check Second way, using the general version. A zero of f is an input where x3 + x equals 3. At x = 1.2, x3 + x = 1.728 + 1.2 = 2.928, a little short of 3. At x = 1.3, x3 + x = 2.197 + 1.3 = 3.497, past 3. So x3 + x hits 3 between 1.2 and 1.3, the same stretch. One more plug: f(1.21) = 1.771561 + 1.21 − 3 ≈ −0.018 (rounded), very close to 0, and 1.21 is between 1.2 and 1.3.

The trap

Wrong: matching endpoint signs mean no zero. Right: matching signs give no conclusion.

Quick check

Try it before you open its steps. It is question 5 of 9 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 9

Find the two integers yourself

Find two consecutive integers that trap a zero of f(x) = x3 + 2x + 5.

What it asks. Find a sign-changing interval at the requested precision.

Show the steps and the answer

The plan. Try inputs in order, then keep consecutive endpoints with opposite output signs.

input xoutput f(x)−2−7−120518
The only sign flip in the output row is between the columns under −2 and −1.
  1. Plan. Try inputs in order, then keep consecutive endpoints with opposite output signs.
  1. Say what the question asks: find inputs such as 4 and 5, or −3 and −2, whose outputs have opposite signs.Opposite signs at consecutive integers trap a zero between them.
  2. Start at 0: f(0)=0+0+5=5. Sign: +.0 is the quickest input to compute.
  3. Try 1: f(1)=1+2+5=8. Sign: +. The outputs are growing, so going right will not help.For any positive x, the terms x3 and 2x are positive, so the output is more than 5. No zero can be to the right of 0.
  4. Go left. f(−1)=(−1)3+2(−1)+5=−1−2+5=2. Sign: +.An odd power of a negative number is negative: (−1)3 = −1.
  5. Keep going left. f(−2)=(−2)3+2(−2)+5=−8−4+5=−7. Sign: −.(−2)3 = −8. The sign has flipped.
  6. Conclude: f(−2)<0 and f(−1)>0, so a zero lies between −2 and −1.f is a polynomial and the signs at the two ends are opposite.
Answer
A zero lies between −2 and −1.
Double-check Second way, using the general version. A zero of f is an input where x3 + 2x equals −5. At x = −2, x3 + 2x = −8 − 4 = −12. At x = −1, x3 + 2x = −1 − 2 = −3. The target −5 is between −12 and −3, so it is hit between −2 and −1. One more plug: f(−1.5) = −3.375 − 3 + 5 = −1.375, negative, while f(−1) = 2 is positive, so the zero is between −1.5 and −1, inside the stretch found.

4 Sketching a polynomial from its features

about 7 minOpen the full lessonOnly this lesson

The rule

For a polynomial f that is not constant, written in factored form: the zeros cut the x-axis into intervals, and on each interval f(x) keeps one sign, the sign of f at any test point inside it.

At a zero of odd multiplicity the graph crosses the x-axis; at a zero of even multiplicity it touches and turns back. The y-intercept is (0, f(0)). The two arms follow the leading term.

How

  1. Use the zero-product rule on f(x) = (x + 1)(x − 2)2. Solving x + 1 = 0 and x − 2 = 0 gives −1 and 2. Use the multiplicity rule to mark a crossing at (−1, 0) and a touch and turn at (2, 0): their powers are odd and even, respectively.
  2. Use the y-intercept rule, (0, f(0)): f(0) = (0 + 1)(0 − 2)2 = 4. Plot (0, 4), since every point on the y-axis has input zero.
  3. Use the leading-term rule to find both ends. Multiplying the leading pieces gives x · x2 = x3. Its odd degree and positive coefficient mean the left end goes down and the right end goes up.
  4. Use the interval-sign rule: once all real zeros are listed, one test input gives the sign on each interval. Compute f(−2) = −16, reuse f(0) = 4 and compute f(3) = 4. The graph is below the axis for x < −1 and above it for −1 < x < 2 and x > 2.
  5. Draw one smooth, unbroken curve through the marked points. Also plot f(1) = 2 to guide the middle. Cross at −1, pass through (0, 4) and (1, 2), touch at 2, then rise through (3, 4). The multiplicity and sign rules keep each stretch on the correct side.
  6. Check from right to left using the same rules. The right end is positive. Passing the even zero 2 keeps that sign; passing the odd zero −1 changes it to negative. These signs agree with the test values and the left end. Check that the sketch includes both intercepts and (0, 4).

Worked example

Worked example

A cubic with one crossing and one touch

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

What it asks. Sketch the graph with intercepts, crossings or touches, and both ends.

Show the steps and the answer

The plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.

input xoutput f(x)−2−16−1004122034
The two 0s in the output row are the zeros.
−12− below+ above+ above
The side changes at −1 and does not change at 2.
  1. Plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.
  1. Set each factor equal to 0. x+1=0 gives x=−1. x−2=0 gives x=2. Plug back: f(−1)=(−1+1)(−1−2)2=(0)(9)=0 and f(2)=(2+1)(2−2)2=(3)(0)=0.A product is 0 only when one of its factors is 0, so this step finds the only two places where the graph meets the x-axis. Each real zero c gives the x-intercept (c, 0): here (−1, 0) and (2, 0).
  2. Read the multiplicity of each zero. (x+1) has exponent 1, so x=−1 has multiplicity 1. (x−2)2 has exponent 2, so x=2 has multiplicity 2.Odd multiplicity means the graph crosses the x-axis, so it crosses at −1. Even multiplicity means it touches and turns back, so it touches at 2.
  3. Find the y-intercept. f(0)=(0+1)(0−2)2=(1)(−2)2=(1)(4)=4. Plot (0, 4).Every point on the y-axis has x = 0, so putting 0 in for x gives the one point where the graph meets the y-axis.
  4. Find the end behavior. Degree: 1+2=3. Leading term: x·x2=x3, so the leading coefficient is 1.The highest power comes from multiplying the x part of every factor. Odd degree with a positive leading coefficient means the left arm points down and the right arm points up.
  5. List the intervals. The zeros −1 and 2 cut the x-axis into three: x<−1,−1<x<2, and x > 2. Choose a test point inside each: −2, 0 and 3. Add 1 as an extra point between the zeros.The graph cannot change sides inside an interval, so one input from each interval tells the side for all of it. Small integers keep the arithmetic short, and f(0) is already computed.
  6. Compute the test points. f(−2)=(−2+1)(−2−2)2=(−1)(−4)2=(−1)(16)=−16. f(1)=(1+1)(1−2)2=(2)(−1)2=(2)(1)=2. f(3)=(3+1)(3−2)2=(4)(1)2=4. With f(0)=4, the table in the picture is complete.A negative output means the graph is below the x-axis there, and a positive output means above. So the graph is below for x < −1, above for −1 < x < 2, and above for x > 2.
  7. Draw the curve from left to right. Start low on the left, rise through (−2,−16), cross the x-axis at (−1,0), go up through (0, 4), bend over, come down through (1, 2), touch the x-axis at (2, 0), turn back up through (3, 4), and keep rising.Each piece obeys one fact: the left arm down, the crossing at the odd zero, the test points, the touch at the even zero, the right arm up. The curve is smooth, with no corners and no gaps.
Answer
  • Zeros: x = −1 (multiplicity 1, crosses) and x = 2 (multiplicity 2, touches and turns back)
  • y-intercept: (0, 4)
  • Ends: left arm down, right arm up
  • Signs: below the x-axis for x < −1, above for −1 < x < 2, above for x > 2
  • Curve: rises from the lower left through (−2, −16), crosses at (−1, 0), passes through (0, 4) and (1, 2), touches (2, 0), and rises through (3, 4)
Double-check Second way, with no arithmetic: walk from the right arm to the left. The right arm is up, so f is positive for x > 2. The zero 2 has even multiplicity, so the sign stays positive between −1 and 2. The zero −1 has odd multiplicity, so the sign switches to negative for x < −1, which agrees with the left arm pointing down. This matches the computed values 4, then 4 and 2, then −16.

The trap

Wrong: switch sides at every zero. Right: switch at odd multiplicity and keep the side at even multiplicity.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

A minus sign in front and a zero that touches

Sketch f(x) = −x2(x − 3).

What it asks. Sketch the graph with intercepts, crossings or touches, and both ends.

Show the steps and the answer

The plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.

input xoutput f(x)−14001224304−16
The outputs on both sides of x = 0 are positive, which is the touch; the sign changes only after x = 3.
03+ above+ above− below
Same side on both sides of the even zero 0, a switch at the odd zero 3.
  1. Plan. Find each zero and its multiplicity, the y-intercept and both ends, test each interval, then draw one smooth curve.
  1. Zeros: x2=0 gives x=0. x−3=0 gives x=3. Plug back: f(0)=−(0)2(−3)=0 and f(3)=−(9)(0)=0.The factor −1 in front is never 0, so it adds no zero. Only x2 and (x − 3) can be 0.
  2. Multiplicity: x2 has exponent 2, so the zero 0 has multiplicity 2. (x−3) has exponent 1, so the zero 3 has multiplicity 1.Even at 0: the graph touches the x-axis and turns back. Odd at 3: the graph crosses.
  3. y-intercept: f(0)=0, so it is the origin (0, 0).0 is a zero, so the graph meets both axes there.
  4. Ends: degree 2+1=3. Leading term −x2·x=−x3.Odd degree with a negative leading coefficient: left arm up, right arm down. Gotcha: the minus sign in front belongs to the leading term.
  5. Test points: f(−1)=−(−1)2(−1−3)=−(1)(−4)=4. f(1)=−(1)2(1−3)=−(1)(−2)=2. f(2)=−(2)2(2−3)=−(4)(−1)=4. f(4)=−(4)2(4−3)=−(16)(1)=−16.The intervals are x < 0, 0 < x < 3, and x > 3. Square first, then apply the minus sign in front: −(−1)2 is −(1), not +1.
  6. Draw: come down from the upper left through (−1,4), touch the x-axis at (0, 0), turn back up through (1, 2) and (2, 4), bend over, cross at (3, 0), and fall through (4,−16).The graph stays above the axis on both sides of the even zero, then switches to below at the odd zero, ending with the right arm down.
Answer
  • Zeros: 0 (multiplicity 2, touches and turns back) and 3 (multiplicity 1, crosses)
  • y-intercept: (0, 0)
  • Ends: left arm up, right arm down
  • Signs: above for x < 0, above for 0 < x < 3, below for x > 3
Double-check Walk from the right: the right arm is down, so negative for x > 3. Odd zero at 3: switch to positive between 0 and 3. Even zero at 0: stay positive for x < 0, which agrees with the left arm pointing up. This matches −16, then 4 and 2, then 4.

5 Writing a formula from a graph

about 4 minOpen the full lessonOnly this lesson

The rule

If all of a polynomial's zeros are real, at c1,c2, ...

with multiplicities m1,m2, ..., so the graph shows every one, then f(x)=a(x−c1)m1(x−c2)m2··· with a≠0.source 1 Lowest multiplicity that fits: a straight crossing is 1, a touch and turn is 2, a flattened crossing is 3. To find a, substitute one point (x0,y0) that is not on the x-axis and solve the equation for a.

Sources (1)
  1. Jay Abramson. Precalculus 2e, 3.4 Graphs of Polynomial Functions. OpenStax, 2021. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Read the example’s zeros and behavior: it crosses straight through at −2 and touches and turns at 1. Use the rule’s smallest fitting multiplicities, 1 and 2, because the question asks for the lowest degree.
  2. Use the factor rule: a zero c supplies x − c. Write f(x) = a(x + 2)(x − 1)2. The factors place the zeros, their powers give the required behavior, and a scales the other heights.
  3. Use the point (0, 4) to find a. Substitute both coordinates: 4 = a(0 + 2)(0 − 1)2 = 2a. A point off the x-axis makes the factor product nonzero, so it determines a.
  4. Divide both sides by 2 to keep the equation balanced: a = 2. Write f(x) = 2(x + 2)(x − 1)2. Its degree is 1 + 2 = 3, the lowest allowed by the crossing and touch.
  5. Check the saved point: f(2) = 2 · 4 · 1 = 8, matching (2, 8). The factors give zeros −2 and 1 with the required behavior. The leading term 2x3 gives a left end down and a right end up, so both ends agree too.

Worked example

Worked example

A crossing, a touch, and one more point

Reading a graph gives you these facts. It crosses the x-axis straight through at x = −2. It touches the x-axis and turns back at x = 1. It passes through (0, 4) and (2, 8). Its left arm goes down and its right arm goes up. Write a formula of the lowest possible degree.

What it asks. Write the polynomial formula that fits the given zeros and points.

−2: crosses1: touches
The same picture again: (−∞, ∞) on a number line.
Show the steps and the answer

The plan. Choose factors and powers, solve for the scale with a nonzero output, then check.

  1. Plan. Choose factors and powers, solve for the scale with a nonzero output, then check.
  1. List the zeros: x=−2 and x=1.A zero is an x-value where the graph meets the x-axis, and the graph meets it only at these two places.
  2. Give each zero a multiplicity: 1 at x=−2 and 2 at x=1.A straight crossing is the lowest odd multiplicity, 1. A touch and turn is the lowest even multiplicity, 2.
  3. Write the factors: (x+2) and (x−1)2.A zero at c gives the factor (x − c). For c = −2 that is x − (−2) = x + 2. The multiplicity becomes the power.
  4. Write f(x)=a(x+2)(x−1)2.This is the lowest-degree shape with these zeros and these behaviors. Only the number a is still unknown.
  5. Substitute the point (0, 4): 4=a(0+2)(0−1)2.The point (0, 4) is on the graph, so an input of 0 must give an output of 4. This turns a height on the picture into an equation whose only unknown is a.
  6. Work out the factors: 0+2=2 and (0−1)2=(−1)2=1. The equation becomes 4=a·2·1, which is 4=2a.Do the powers before multiplying. A negative number squared is positive.
  7. Divide both sides by 2: a=2. Plug it back in: 2·2·1=4, the height at x=0.Dividing by 2 undoes the multiplying by 2. This finds the one stretch that puts the graph through (0, 4).
  8. Write the formula: f(x)=2(x+2)(x−1)2.The factors come from the zeros, the powers from the behaviors, and the 2 from the extra point.
Answer
f(x)=2(x+2)(x−1)2
Double-check Use the point that was saved, (2, 8): f(2) = 2(2 + 2)(2 − 1)2 = 2 · 4 · 1 = 8, which matches. The arms agree too: the degree is 1 + 2 = 3, which is odd, and the leading coefficient 2 is positive, so the left arm goes down and the right arm goes up, as the graph shows.

The trap

Wrong: stop at the factors and assume the scale is one. Right: use a point off the x-axis to solve for the scale.

Quick check

Try it before you open its steps. It is question 5 of 10 in the full lesson, where they run from easy to exam-hard.

Try it · level 5 of 10

Three zeros, one of them at 0

Reading a graph gives you these facts. It crosses the x-axis straight through at x = −3. It touches the x-axis and turns back at x = 0. It crosses straight through at x = 2. It passes through (1, 2) and (−1, 3). Both arms point down. Write a formula of the lowest possible degree.

What it asks. Write the polynomial formula that fits the given zeros and points.

−3: crosses0: touches2: crosses
Three zeros with their behaviors.
Show the steps and the answer

The plan. Choose factors and powers, solve for the scale with a nonzero output, then check.

  1. Plan. Choose factors and powers, solve for the scale with a nonzero output, then check.
  1. List the zeros and multiplicities: −3 with multiplicity 1, 0 with multiplicity 2, and 2 with multiplicity 1.Straight crossings get 1. The touch and turn gets 2.
  2. Write the factors: (x+3), x2 and (x−2).The zero at 0 gives (x − 0), which is x, and its multiplicity 2 makes it x2.
  3. Write f(x)=a·x2(x+3)(x−2).The number in front is still unknown.
  4. Skip the y-intercept and choose (1, 2).The y-intercept is (0, 0), which is a zero. Substituting it gives 0 = a · 0, which is true for every a and tells you nothing.
  5. Substitute (1, 2): 2=a·12·(1+3)(1−2)=a·1·4·(−1)=−4a.The input 1 must give the output 2.
  6. Divide both sides by −4: a=2−4=−12. Plug back in: −12·1·4·(−1)=2.This finds the one value of a that gives the height 2 at x = 1.
  7. Write f(x)=−12x2(x+3)(x−2).The factors, the powers and the number in front are all known.
Answer
f(x)=−12x2(x+3)(x−2)
Double-check Use the other point, (−1, 3): f(−1) = −12 · (−1)2 · (−1 + 3)(−1 − 2) = −12 · 1 · 2 · (−3) = −12 · (−6) = 3, which matches. The degree is 1 + 2 + 1 = 4, which is even, and a is negative, so both arms go down, as stated.

6 Largest and smallest values on an interval

about 6 minOpen the full lessonOnly this lesson

The rule

On a closed interval a≤x≤b, a polynomial always has a global maximum and a global minimum.source 1

Each one sits at a local maximum or local minimum inside the interval, or at an endpoint (x=a or x=b).source 1 The maximum or minimum is the output, the y-value. The place where it happens is the input, the x-value.

Sources (1)
  1. Gilbert Strang and Edwin Herman. Calculus Volume 1, 4.3 Maxima and Minima. OpenStax, 2016. CC BY-NC-SA 4.0. Read 16 Nov 2026.

How

  1. Use the closed-interval rule on f(x) = x3 − 12x for −3 ≤ x ≤ 5. Both endpoints are included, so compare them with every interior local maximum and minimum. These are the possible places for a global extreme value.
  2. Read the marked hilltop (−2, 16) and valley (2, −16) in the example. By the local-extreme rule, a hilltop is highest nearby and a valley is lowest nearby. A table alone cannot prove that no turning point lies between its samples; use the marked features and the formula check below.
  3. Evaluate all four candidates by substitution: f(−3) = −27 + 36 = 9, f(−2) = −8 + 24 = 16, f(2) = 8 − 24 = −16 and f(5) = 125 − 60 = 65. The rule compares outputs, so keep each height paired with its input.
  4. Compare the heights: 65 > 16 > 9 > −16. The local maximum is 16 at x = −2 and the local minimum is −16 at x = 2. The global maximum is 65 at x = 5; the global minimum is −16 at x = 2.
  5. Check the bounds over the whole interval using the example’s factorizations. Since x + 4 is positive there and a square is never negative, f(x) + 16 = (x − 2)2(x + 4) ≥ 0. Thus f(x) ≥ −16. Also 65 − f(x) = (5 − x)(x2 + 5x + 13) ≥ 0: the first factor is never negative, and the second equals (x + 2.5)2 + 6.75, which is positive. Thus f(x) ≤ 65. Substitution shows both bounds are reached. Near −2, 16 − f(x) = (x + 2)2(4 − x) ≥ 0, confirming the local maximum.

Worked example

Worked example

A hilltop that is not the highest point

The picture shows points on the graph of f(x) = x3 − 12x for −3 ≤ x ≤ 5, and the table lists the same points. Find every local maximum and local minimum. Then find the global maximum and the global minimum on this interval.

What it asks. Find local and global extrema, giving each value and its input.

left end (−3, 9)hilltop (−2, 16)(−1, 11)(1, −11)valley (2, −16)(3, −9)(4, 16)right end (5, 65)−4−2246−20204060
The dots are points on the graph of f(x) = x3 − 12x from x = −3 to x = 5, and the curve between them is not…
Show the steps and the answer

The plan. Locate hills and valleys, include allowed endpoints, then compare heights.

input xoutput f(x)−39−216−111001−112−163−9416565↑ solve: output given, read every input above it
In the output row for f(x) = x3 − 12x the largest entry, 65, sits under the last input, x = 5.
  1. Plan. Locate hills and valleys, include allowed endpoints, then compare heights.
  1. Say what is asked. Find the hilltops and valley bottoms between x=−3 and x=5. Then find the highest and the lowest heights the graph reaches anywhere on that stretch.Local means compared with nearby points. Global means compared with every point on the interval.
  2. Mark the two ends. Left end: x=−3, where the graph is at height 9, the point (−3,9). Right end: x=5, at height 65, the point (5, 65).Both ends are included in −3 ≤ x ≤ 5, so both are candidates.
  3. Read the dots from the left. They rise from (−3,9) to (−2,16), then fall to (−1,11). The change from rising to falling is at (−2,16).Rising then falling points to a hilltop: f has a local maximum of 16 at x = −2, which the check proves.
  4. Keep reading. The dots fall through (−1,11) and (1,−11) down to (2,−16), then rise to (3,−9). The change from falling to rising is at (2,−16).Falling then rising points to a valley bottom: f has a local minimum of −16 at x = 2, which the check proves.
  5. Read to the end. From (2,−16) the dots only rise: through (3,−9) and (4, 16) to the right end (5, 65).The dots turn no more, and past x = 2 the quantity f(x) + 16 = (x − 2)2(x + 4) only grows, so there is no other hilltop or valley.
  6. List the candidate heights: left end 9, hilltop 16, valley −16, right end 65.The global maximum and the global minimum can only be at a hilltop, a valley bottom or an end.
  7. Pick the largest, 65, and the smallest, −16.65 > 16 > 9 > −16. The right end beats the hilltop, so here the local maximum is not the global maximum.
Answer
  • Local maximum: 16, at x = −2
  • Local minimum: −16, at x = 2
  • Global maximum on −3 ≤ x ≤ 5: 65, at x = 5 (the right end)
  • Global minimum on −3 ≤ x ≤ 5: −16, at x = 2 (the valley)
Double-check Compute from the formula in place of reading the picture. f(−3) = (−3)3 − 12(−3) = −27 + 36 = 9. f(−2) = −8 + 24 = 16. f(2) = 8 − 24 = −16. f(5) = 125 − 60 = 65. In the table of all nine integer inputs, no output is above 65 and none is below −16. Exactly, for every x on the interval: f(x) + 16 = (x − 2)2(x + 4) and 65 − f(x) = (5 − x)(x2 + 5x + 13), and neither is negative, since x2 + 5x + 13 is always positive. Near x = −2, 16 − f(x) = (x + 2)2(4 − x) is never negative either, which makes −2 a hilltop. The outputs 9, 16, 11 go up then down around x = −2, and −11, −16, −9 go down then up around x = 2.

The trap

Wrong: choose the highest hill and ignore the ends. Right: compare every hilltop and valley inside the interval with every included end.

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Ties

The picture shows points on the graph of w(x) = x4 − 8x2 for −3 ≤ x ≤ 3. Find every local maximum and local minimum, then the global maximum and the global minimum.

What it asks. Find local and global extrema, giving each value and its input.

left end (−3, 9)valley (−2, −16)(−1, −7)hilltop (0, 0)(1, −7)valley (2, −16)right end (3, 9)−4−224−18−12−6612
The dots are points on the graph of w(x) = x4 − 8x2, and the curve between them is not drawn.
Show the steps and the answer

The plan. Locate hills and valleys, include allowed endpoints, then compare heights.

  1. Plan. Locate hills and valleys, include allowed endpoints, then compare heights.
  1. Say what is asked: find all hilltops and valleys, then the highest and lowest heights reached from x=−3 to x=3.There may be more than one of each, so read the whole interval.
  2. Mark the ends: (−3,9) and (3, 9).Both ends are included, so both are candidates.
  3. Read the dots from the left: down from (−3,9) to (−2,−16), then up. Local minimum of −16 at x=−2.Falling then rising points to a valley; the check proves it.
  4. Keep reading: up to (0, 0), then down. Local maximum of 0 at x=0.Rising then falling points to a hilltop; the check proves it.
  5. Keep reading: down to (2,−16), then up to the right end (3, 9). Local minimum of −16 at x=2.Falling then rising points to a second valley; the check proves it.
  6. List the candidates: 9, −16, 0, −16, 9. The largest is 9 and the smallest is −16.The hilltop at height 0 loses to the ends, so it is local only.
  7. Report each winning value once and list both places where it occurs.A global maximum is one number, even when two points reach it.
Answer
  • Local maximum: 0, at x = 0
  • Local minimum: −16, at x = −2 and at x = 2
  • Global maximum on −3 ≤ x ≤ 3: 9, at x = −3 and at x = 3 (both ends)
  • Global minimum on −3 ≤ x ≤ 3: −16, at x = −2 and at x = 2
Double-check Compute: w(−3) = 81 − 72 = 9, w(−2) = 16 − 32 = −16, w(−1) = 1 − 8 = −7, w(0) = 0. The inputs 1, 2 and 3 give the same outputs, because x4 and x2 come out the same for x and −x: 22 = (−2)2 = 4. A second way for the minimum: w(x) + 16 = x4 − 8x2 + 16 = (x2 − 4)2, a square, so w(x) + 16 is never negative and w(x) is never below −16. For the maximum: 9 − w(x) = (9 − x2)(x2 + 1), never negative on −3 ≤ x ≤ 3. For the hilltop: w(x) = x2(x2 − 8) is never positive while x2 ≤ 8, so 0 is the top near x = 0.

7 Quick checks for the whole unit

8 questions

Quick check 1 of 8

What are the zeros of f(x) = (x − 4)(x + 7)?

Show the steps and the answer
Answer
x = 4 and x = −7. Each factor is 0 there: 4 − 4 = 0 and −7 + 7 = 0.

Quick check 2 of 8

For f(x) = (x + 1)3(x − 5)2, what does the graph do at each zero?

Show the steps and the answer
Answer
  • At x = −1 it crosses the x-axis, flattening as it passes, because the multiplicity 3 is odd and greater than 1.
  • At x = 5 it touches the x-axis and turns back, because the multiplicity 2 is even.

Quick check 3 of 8

g(x) = x3 + x − 1 has g(0) = −1 and g(1) = 1. What does the Intermediate Value Theorem tell you?

Show the steps and the answer
Answer
There is a zero between 0 and 1. The output changes sign, and a polynomial's graph has no breaks, so it must pass through 0.

Quick check 4 of 8

A polynomial has f(1) = 3 and f(4) = 7. Does that prove there is no zero between 1 and 4?

Show the steps and the answer
Answer
No. With no sign change the theorem says nothing. Between 1 and 4 the graph could dip below the axis and come back, or touch the axis and turn.

Quick check 5 of 8

A graph touches the x-axis at x = −2, crosses it at x = 1, and has y-intercept (0, −8). Write the formula of lowest degree.

Show the steps and the answer
Answer
  • f(x) = 2(x + 2)2(x − 1). Start with a(x + 2)2(x − 1) and plug in (0, −8): a
  • 4
  • (−1) = −8, so −4a = −8 and a = 2.

Quick check 6 of 8

Which way do the arms of f(x) = −3(x − 1)2(x + 2)2 point?

Show the steps and the answer
Answer
  • Both arms point down. The leading term is −3
  • x2
  • x2 = −3x4: even degree, negative leading coefficient.

Quick check 7 of 8

Squares of side x cm are cut from the corners of a 10 cm by 10 cm sheet, and the flaps are folded up into an open box. Write the volume and the inputs that make sense.

Show the steps and the answer
Answer
V(x) = x(10 − 2x)2, for 0 < x < 5. The height is x, each side of the base is 10 − 2x, and the base must stay positive.

Quick check 8 of 8

On the interval −1 ≤ x ≤ 3, a graph starts at (−1, 2), has one hilltop at (0, 5) and ends at the point (3, 9). What is the global maximum on the interval?

Show the steps and the answer
Answer
9, at x = 3. Of the left end 2, the hilltop 5 and the right end 9, the right end is highest, so the hilltop at (0, 5) is only a local maximum.