Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Graph a Polynomial

A polynomial sketch needs four facts: where the ends point (from the leading term), where it crosses the axes, how it behaves at each root (cross or bounce), and at most n−1n - 1 turning points in between.

Recognize the task

"Sketch the graph of f(x)=(x+2)(x−1)2f(x) = (x + 2)(x - 1)^2", "describe the end behaviour", "which graph matches this polynomial?". Test: a polynomial, preferably factored, and a picture is wanted.
The lesson sections are end behavior, intercepts, behavior at roots and the sketching strategy.

Steps

StepOn f(x)=(x+2)(x−1)2f(x) = (x + 2)(x - 1)^2
1End behaviour from the leading term. Odd degree: ends point opposite ways. Even degree: same way. A positive leading coefficient makes the right end point up.leading term x3x^3: down on the left, up on the right
2x-intercepts and their multiplicities. Factor completely.x=−2x = -2 (multiplicity 11), x=1x = 1 (multiplicity 22)
3Cross or touch at each root. Odd multiplicity: the graph crosses. Even: it touches and turns back.crosses at −2-2, touches at 11
4y-intercept. Evaluate f(0)f(0).f(0)=2⋅1=2f(0) = 2\cdot 1 = 2
5Sketch, using at most n − 1 turning points. Come up from the left, cross at −2-2, rise through (0,2)(0, 2), turn, come down to touch 11, then rise.two turning points, the most a cubic can have

Worked examples

Example 1 · negative leading coefficient

odd degree
f(x)=−x3+4x=−x(x−2)(x+2)f(x) = -x^3 + 4x = -x(x - 2)(x + 2)
up on the left, down on the right
crosses at −2,0,2-2, 0, 2; yy-intercept 00

Example 2 · even degree with a double root

touch at 0
f(x)=x4−4x2=x2(x−2)(x+2)f(x) = x^4 - 4x^2 = x^2(x - 2)(x + 2)
both ends up
crosses at ±2\pm 2, touches at 00; a W shape

Example 3 · the trace

cubic
f(x)=(x+2)(x−1)2f(x) = (x + 2)(x - 1)^2
up from −∞-\infty, cross −2-2, peak, touch 11, rise

See it happen

Far from the origin, the leading term outweighs everything else, so (x+2)(x−1)2(x + 2)(x - 1)^2 looks like x3x^3 at both ends. Near a root, the factor (x−r)k(x - r)^k takes over: an odd power changes sign there and the graph crosses, an even power does not and the graph bounces.

Common mistakes

Crossing at an even root

✗ the graph passes through (1,0)(1, 0) to the other side
✓ multiplicity 22: it touches and turns back

End behaviour from the first written term

✗ 4x−x34x - x^3: "positive, so up on the right"
✓ the leading term is −x3-x^3: down on the right

Too many turning points

✗ a cubic drawn with three bumps
✓ degree nn allows at most n−1n - 1 turning points