Polynomial Roots: Touch or Cross

Category: Functions   Level: 201

y = (x + 2)(x - 1)2(x - 3): cross at -2 and 3, touch at 1

Read a factored polynomial without plotting a hundred points. The factors give the zeros, the degree gives the ends, and an even power makes the graph touch instead of cross.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Find the zeros

Each factor is zero at one x: x + 2 at −2, x − 1 at 1, x − 3 at 3. The factor x − 1 appears twice, so 1 is a double root.

zeros: -2, 1 (twice), 3

Step 1: Find the zeros

Step 2: Check the ends

Multiply the x parts: x · x² · x = x⁴. An even power with a plus sign sends both ends up, like a smile at the edges.

degree 1 + 2 + 1 = 4, leading term +x4

Step 2: Check the ends

Step 3: Build a sign chart

Test one x in each stretch. The sign flips at −2 and at 3, but not at 1, because (x − 1)² is never negative.

f(−3) = 96, f(0) = −6, f(2) = −4, f(4) = 54

Step 3: Build a sign chart

Step 4: Cross at single roots

At −2 and 3 the sign flips, so the graph passes straight through the axis, like a train through a station.

(x + 2)1, (x - 3)1: cross

Step 4: Cross at single roots

Step 5: Touch at the double root

At 1 the sign stays negative on both sides. The graph rises to touch the axis and turns back down, a bounce, not a crossing.

(x - 1)2 ≥ 0: touch and turn

Step 5: Touch at the double root

Step 6: Join the pieces

Connect the pieces, falling from the left, bouncing at 1, and rising on the right. The y-intercept is f(0) = 2 · 1 · (−3) = −6.

f(0) = (0 + 2)(0 - 1)2(0 - 3) = -6

Step 6: Join the pieces

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render polynomial-roots --out /tmp/polynomial-roots

Source: svgmath/diagrams/function_families.py