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.
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
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
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
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
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
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
cd svg-generator python3 -m svgmath render polynomial-roots --out /tmp/polynomial-roots
Source: svgmath/diagrams/function_families.py