MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Upper Secondary
MathematicsUpper Secondary

Sketching cubics and higher polynomials

U2 — Algebra Advancing › U2.4 — Linear and Quadratic GraphsLecture 5 of 5~2730 words

A curve with no mirror line

The last lecture ended with a promise: the same features would sketch cubics, which can turn twice. Here is where that promise gets difficult.

Take . The quadratic method starts well. Put , and you get the -intercept . Next, the quadratic method looks for the mirror point: where else does the curve reach height 8? Set :

This gives , and . The curve reaches height 8 three times, not twice. There is no single partner point.

In fact, no cubic has a mirror line. Far out on the left this curve goes down, and far out on the right it goes up. A mirror cannot swap a falling arm with a rising one. So the best tool of the last lecture, , has nothing to say here.

This is the disruption. The expanded form hides the shape. But the same curve can be written as

In this factorised form, the whole shape is visible, once you know how to read it.

Polynomials, degree and the term that matters most

A polynomial is a sum of terms like , and , where every power of is a whole number: 0, 1, 2, 3, and so on. The highest power is the degree. The term with the highest power is the leading term, and its number is the leading coefficient. A degree 2 polynomial is a quadratic, degree 3 is a cubic, and degree 4 is a quartic.

The degree limits how complicated the graph can be. Every root gives a factor , and each factor carries one power of . So a polynomial of degree has room for at most such factors, and at most roots. The factor theorem, in a later lecture, proves that every root gives a factor.

The last lecture found that the gradient of a quadratic is . That has degree 1, so it is zero once, and the parabola turns once. In the same way, the gradient of a degree polynomial has degree , so the graph has at most turning points. The lecture on stationary points proves this.

DegreeNameRoots, at mostTurning points, at most
2quadratic21
3cubic32
4quartic43
degree

"At most" matters: has one root and no turning points.

Reading the roots, and the signs between them

A product is zero exactly when one of its factors is zero. So is zero at , and . Those are the roots: the three places where the curve meets the -axis.

To know which side of the axis the curve is on in between, look at the sign of each factor. The factor is negative when is less than 4, and positive when is more than 4. Each factor works the same way: negative to the left of its root, positive to the right. The sign of is then the sign of the product.

Factor
−+++
−−++
−−−+
−+−+

Look at what happens at each root. As moves past , exactly one factor, , changes sign. So changes sign too. The curve goes from below the axis to above it, which means it must cross. The same happens at 1 and at 4.

x y −3 −1 2 3 5 −12 −8 −4 4 12 O (−2, 0) (1, 0) (4, 0) (0, 8) − + − +
. The signs from the table are marked in each region. The curve crosses at every root, because one factor changes sign there. It must turn once between and 1, and once between 1 and 4.

The signs also show where the turns must be. Between and 1 the curve is above the axis, but it is at height 0 at both ends. So it must rise and come back down: there is a maximum somewhere in between. In the same way, there is a minimum between 1 and 4. That makes two turning points, the most a cubic can have.

Touch or cross: what a squared factor does

Now take . The root comes from a squared factor. We call it a repeated root, or a root of multiplicity 2. The root has multiplicity 1.

A square is never negative. So as moves past 3, the factor is positive on both sides. It does not change sign, so does not change sign either. The curve comes down to the axis at and goes back the way it came. It touches the axis there, and does not cross.

There is a second way to see this, and it explains every case at once. Zoom in very close to . There, the other factor, , is almost exactly . So, close to the root,

That is a narrow U-shape with its vertex at . Now zoom in near instead. There, is almost , so . That is a steep straight line through , and a straight line crosses.

That is it. That is the whole idea. Close to any root, every other factor is almost a fixed number. So the curve looks like that number times raised to the multiplicity. A multiplicity of 1 looks like a straight line, so the curve crosses. A multiplicity of 2 looks like a parabola, so it touches. A multiplicity of 3 looks like : it crosses, but it flattens as it crosses.

Single root: crosses, like a straight line Double root: touches, like a parabola Triple root: crosses flat, like y = x³
What a curve looks like very close to a root of multiplicity 1, 2 and 3. Odd multiplicity: the curve crosses. Even multiplicity: it touches and turns back.

The fixed number also tells you the direction. In , the number 4 is positive, so the curve touches from above, like a U. If the number were negative, the curve would touch from below, like an ∩.

Stop and think

The curve touches the axis at . Does it come down from above, touch, and bounce back up?

Show the answer

No. Zoom in near . There, the factor is almost , so . That is an ∩-shape, so the curve comes up from below, touches the axis at the origin, and goes back down. A test value agrees: at , , which is below the axis. "Touch" never tells you the direction by itself. The sign of the nearby number does.

Build some curves of your own and watch each root.

Graph builder — a polynomial from its factors

The curve is built from up to three factors, (x − p), (x − q) and (x − r), each raised to a power from 0 to 3. A power of 0 removes that factor. Start from Worked Example 1. First raise one power from 1 to 2, then to 3, and watch that root. Then slide one root onto another. Last, multiply by −1. The vertical scale adjusts itself, because a sketch shows shape, not scale.

Presets:

What each factor does at its root, starting from y = (x + 2)(x − 1)(x − 4):

CurveAt the changed root
y = (x + 2)(x − 1)(x − 4)Three single roots: the curve crosses at −2, 1 and 4.
y = (x + 2)(x − 1)²(x − 4)Degree 4. At x = 1 the curve touches. Near 1, y ≈ (3)(−3)(x − 1)² = −9(x − 1)², so it touches from below.
y = (x + 2)(x − 1)³(x − 4)Degree 5. At x = 1 the curve crosses again, but flat, like y = x³.
y = (x + 2)(x − 1)(x − 1)Slide the root 4 onto 1: two crossings join into one touch, and the curve becomes (x + 2)(x − 1)².
y = −(x + 2)(x − 1)(x − 4)Multiplying by −1 flips the curve upside down. The roots stay, and the ends swap: it now starts high and ends low.

What should you have seen? A power of 1 gives a crossing, a power of 2 a touch, and a power of 3 a flat crossing. When one root slides onto another, two crossings join into one touch, because two factors become one squared factor. Multiplying by −1 turns the curve upside down: the roots stay, but every "above" becomes "below".

The ends of the curve: the leading term wins

The roots describe the middle of the graph. The ends are decided by one term only. Put into . The four terms are , , and . The total is , which is about 97% of the first term alone. The further out you go, the more completely the leading term takes over, just as it did for the arms of a parabola.

So, far from the origin, the curve behaves like its leading term. Now compare odd and even powers. At , , which is negative, but , which is positive. An odd power keeps the sign of . An even power is positive on both sides. That gives four cases.

Leading termExampleLeft endRight end
odd degree, positivedown ↙up ↗
odd degree, negativeup ↖down ↘
even degree, positiveup ↖up ↗
even degree, negativedown ↙down ↘

In factorised form, you find the leading term without expanding. Multiply the from every factor, with its power and its sign. In , it is . A factor written as hides a minus sign. Sort the curves below by their ends.

Sorter — where do the ends go?

Put each polynomial in the box that describes its two ends. Find the leading term first, without expanding anything.

Each polynomial, its leading term, and its ends:

PolynomialLeading termEnds
−2x³ + x²−2x³starts high, ends low
x⁴ − 5x² + 4x⁴both up
(x + 1)(x − 2)(3 − x)−x³starts high, ends low
−(x − 1)²(x + 2)²−x⁴both down
x²(x − 3)x³starts low, ends high
(2 − x)²(x + 1)x³starts low, ends high
x(1 − x)³−x⁴both down
x⁵ − 100x⁴x⁵starts low, ends high
3 + 2x − x²−x²both down
(x + 1)(x − 1)(x + 2)(x − 2)x⁴both up
Stop and think

A cubic can have two turning points or none. Can it have exactly one?

Show the answer

No. A positive cubic is rising at its far left end and rising at its far right end. Each turning point changes the direction, from rising to falling or back. To start rising and finish rising, the curve must change direction an even number of times: 0 or 2. By the same argument, a quartic has 1 or 3.

Sketching a polynomial from its factors

First: factorise, if the polynomial is not already factorised. For example, .

Ends: find the leading term by multiplying the -terms of all the factors. The degree and the sign give one of the four end shapes.

Roots: each factor gives a root at with multiplicity . Odd : the curve crosses (flat when ). Even : the curve touches.

Signs: the sign of changes only at a root of odd multiplicity. One test value, or the nearby fixed number, settles any doubt.

-intercept: put into every factor and multiply.

A degree polynomial has at most roots and at most turning points.

Worked examples

Worked Example 1 — The curve from the start

Sketch .

Ends. : odd degree, positive. The curve starts low on the left and ends high on the right.

Roots. , and , each of multiplicity 1, so the curve crosses at each one.

-intercept. , so .

Shape. This is the sketch shown earlier: one turn above the axis between and 1, one below it between 1 and 4.

Check. At , . That is negative, as the sign table says for ✓. The intercept 8 is positive, as it should be for ✓.

Worked Example 2 — A touch from below

Sketch .

Ends. : starts low, ends high.

Roots. with multiplicity 2, so the curve touches there. with multiplicity 1, so it crosses there.

-intercept. . The curve passes through the origin, which is also the touching point.

Direction of the touch. Near , , an ∩-shape. So the curve comes up from below, touches at the origin, and turns back down.

Check with test values. At , . At , . Both are below the axis ✓.

x y −1 1 2 4 −6 −4 −2 2 4 O touches at (0, 0) crosses at (3, 0) (−1, −4) (1, −2)
. The double root at 0 is a touch from below, because the curve is negative on both sides of it. The hollow dots are the two test values.
Worked Example 3 — A quartic that never goes above the axis

Sketch .

Ends. : even degree, negative. Both ends go down.

Roots. and , both of multiplicity 2. The curve touches at both.

-intercept. , so .

Shape. Every value is minus a square, so is never positive. The curve rises from the bottom left, touches at , dips to a lowest point, rises to touch at 2, and falls to the bottom right. That is three turning points, the most a quartic can have.

Where is the dip? The curve is . The quadratic inside the bracket is symmetric about , halfway between its roots, so the whole quartic is too. At , , and . The dip is at .

Three traps

Trap 1 — Missing a hidden minus sign

In , the leading term is not . The factor contributes , so the leading term is , and the curve starts high and ends low.

Trap 2 — Assuming a touch always bounces upward

A double root means the curve touches. It does not say from which side. In , the touch at 0 is from below. Decide the side from the nearby fixed number, or from one test value on each side.

Trap 3 — Placing the turning points by guessing

The maximum of is between and 1, but not halfway. The lecture on stationary points finds it at , with . Draw turning points in the right interval, and label only points you have found exactly.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Sketch . Label the roots and the -intercept.

    Hint 1

    Start with the leading term. The minus sign in front multiplies .

    Hint 2

    For the intercept, put : . Count the minus signs carefully.

    Full answer

    The leading term is , so the curve starts high on the left and ends low on the right. The roots are , 2 and 5, all crossings. The -intercept is , so . Coming down from the top left, the curve crosses at and turns below the axis, passing through . It crosses at 2, turns above the axis, crosses at 5, and falls to the bottom right. Check: at , , positive between 2 and 5 ✓. At , , negative ✓.

  2. Sketch . How many turning points does it have?

    Hint 1

    The degree is . The root at 1 has multiplicity 3.

    Hint 2

    Near , the factor is almost 3, so .

    Full answer

    Leading term : both ends go up. Roots: (crosses) and 1 (multiplicity 3, crosses flat). The -intercept is . Signs: positive for , negative between and 1, positive for . So the curve comes down from the top left, crosses at , and turns at a minimum between and 1. It then rises, flattening as it crosses at 1, like , and goes on up to the top right. It has one turning point. The flat point at 1 is not a turning point, because the curve keeps rising through it. One is allowed: a quartic with both ends up has 1 or 3. Check: at , , negative ✓; at , , positive ✓.

  3. A cubic touches the -axis at , crosses it at , and passes through . Find its equation, and say from which side it touches at .

    Hint 1

    A touch needs a squared factor. Write .

    Hint 2

    Put and to find .

    Full answer

    . At : , so . The cubic is , which expands to . Near , , so : the curve touches from below. Check: at , , and at , . Both are below the axis ✓.

  4. An open box is made from a square sheet of card 12 cm wide. A square of side cm is cut from each corner, and the sides are folded up. Show that the volume is cm³. Sketch against . Which part of the sketch makes sense for the box? Use values to estimate the best .

    Hint 1

    The base is a square of side , and the height is .

    Hint 2

    . So : find the roots and their multiplicities.

    Full answer

    Volume = base × height = . Since , . The leading term is : starts low, ends high. Roots: 0 (crosses) and 6 (touches). Near 6, , which is positive, so the curve touches from above. Only makes sense, because the base side must be positive. In that interval the curve rises from 0, reaches a maximum, and comes back down to touch at 6. Values: gives 100, gives 128, gives 108, gives 64, gives 20. The best is near , about 128 cm³. The lecture on stationary points shows it is exactly . For the formula gives positive values again, but no real box exists there.

The bigger idea

A cubic has no mirror line, but it has something just as useful: a centre. Look again at . The average of its roots is . Put and expand. Everything simplifies to

Replacing by reverses every height. So the curve looks the same after a half-turn about , and its two turning points are mirror images through that centre: , approximately. Every cubic has such a centre, at . When the cubic has three roots, this is their average. Compare for the parabola, the average of its two roots. The pattern is the same idea, one degree higher.

The deeper lesson is the method: read the shape from the structure of the equation before calculating anything. This lecture closes the topic of straight-line and quadratic graphs. Its tools, roots, signs, ends and turns, return when calculus finds turning points exactly.

Key concepts in this lesson