Cubic and polynomial graphs

Cubic and polynomial graphs

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A cubic y=ax3+bx2+cx+dy=ax^3+bx^2+cx+d: a>0a>0 goes bottom left to top right, a<0a<0 top left to bottom right.
  • It crosses the xx-axis at most three times and has at most two turning points.
  • From y=a(x−p)(x−q)(x−r)y=a(x-p)(x-q)(x-r) the roots are p,q,rp,q,r; a repeated root touches the axis.
  • A polynomial of degree nn has at most nn roots and n−1n-1 turning points.
  • For f(x)=kf(x)=k, graph y=f(x)y=f(x) and y=ky=k and read every intersection.

The shape of a cubic

The sign of a gives the end behaviour; a cubic has at most two turning points.

A cubic has x3x^3 as its highest power. The yy-intercept is dd.

  • a>0a>0: from bottom left to top right.
  • a<0a<0: from top left to bottom right.

It crosses the xx-axis at least once and at most three times.

−3−2−1123−8−6−4−22468xy(-2, 0)(0, 0)(2, 0)(-1.15, 3.08)(1.15, -3.08)y = x³ − 4xy = −x³ + 4x
y = x³ − 4x (a > 0) and y = −x³ + 4x (a < 0, dashed)

Which statement is true for y=−2x3+x−5y=-2x^3+x-5?

Roots and factors

Set each bracket to zero to find where the graph crosses the axis; a repeated root only touches it.

If y=a(x−p)(x−q)(x−r)y=a(x-p)(x-q)(x-r) the graph crosses the xx-axis at x=p,q,rx=p,q,r (the roots).

A repeated root, as in y=x(x+3)2y=x(x+3)^2, makes the graph touch the axis at x=−3x=-3 and turn round.

−3−2−11234−8−6−4−2246810xy(-2, 0)(1, 0)(3, 0)(0, 6)(2, -4)f(x)
f(x) = (x + 2)(x − 1)(x − 3)

Worked example

For f(x)=(x+2)(x−1)(x−3)f(x)=(x+2)(x-1)(x-3), find the roots, the yy-intercept, and where the graph is below the xx-axis.

−5−4−3−2−112−6−4−22468xy(-3, 0)(0, 0)(-1, -4)y = x(x + 3)²
A repeated root: y = x(x + 3)² touches the axis at x = −3

What are the roots of y=(x−4)(x+1)(x+5)y=(x-4)(x+1)(x+5)?

Sketching a cubic

Find the shape from the sign of a, then mark the roots and the y-intercept.

For y=−(x+1)(x−2)(x−4)y=-(x+1)(x-2)(x-4) the shape is top left to bottom right, because the coefficient is −1-1. The roots are −1,2,4-1,2,4 and the yy-intercept is −(1)(−2)(−4)=−8-(1)(-2)(-4)=-8.

A sketch needs no accurate scale, but must show the roots, yy-intercept and shape.

  1. 1

    Shape

    use the sign of the x³ term

  2. 2

    Roots

    mark them on the x-axis

  3. 3

    y-intercept

    put x = 0

  4. 4

    Join up

    smooth curve, turning between roots; a repeated root touches the axis

Sketching a cubic
−3−2−1123456−15−10−551015xy(-1, 0)(2, 0)(4, 0)(0, -8)y = −(x + 1)(x − 2)(x − 4)
y = −(x + 1)(x − 2)(x − 4)

What is the yy-intercept of y=2(x−1)(x+3)(x−5)y=2(x-1)(x+3)(x-5)?

Other polynomial graphs

The degree sets the most roots and turning points; even degrees have ends in the same direction, odd degrees in opposite directions.

The highest power is the degree. A polynomial of degree nn has at most nn roots and n−1n-1 turning points.

y=x(x−1)(x+2)(x−3)y=x(x-1)(x+2)(x-3) is a quartic with roots 0,1,−2,30,1,-2,3 and a positive x4x^4 coefficient, so both ends go up.

−3−2−11234−10−55101520xy(-2, 0)(0, 0)(1, 0)(3, 0)y = x(x − 1)(x + 2)(x − 3)
The quartic y = x(x − 1)(x + 2)(x − 3): both ends go up

Degree 2

  • Same direction
  • 2 roots
  • 1 turning point

Degree 3

  • Opposite directions
  • 3 roots
  • 2 turning points

Degree 4

  • Same direction
  • 4 roots
  • 3 turning points

Degree 5

  • Opposite directions
  • 5 roots
  • 4 turning points

What is the greatest number of turning points a polynomial of degree 6 can have?

Using technology

Graphing software finds turning points and solves f(x) = k by reading intersections.

For y=x3−4xy=x^3-4x the local minimum is (1.15,−3.08)(1.15,-3.08) and the local maximum is (−1.15,3.08)(-1.15,3.08).

The line y=2y=2 meets the cubic three times, so x3−4x=2x^3-4x=2 has three solutions: x=−1.68, −0.539, 2.21x=-1.68,\ -0.539,\ 2.21 (3 s.f.). Give answers to the accuracy asked for.

−3−2−1123−6−4−2246xyx = -1.68x = -0.539x = 2.21y = x³ − 4xy = 2
Solving x³ − 4x = 2 by finding where the graphs meet

How many solutions does x3−4x=5x^3-4x=5 have?

Cubic models

Cubic functions model volumes; the domain is limited by the situation.

Cutting squares of side xx cm from a 30 cm square card and folding gives an open box of volume V=x(30−2x)2V=x(30-2x)^2.

The domain is 0<x<150<x<15: you cannot cut a negative length, and x=15x=15 leaves no base. The maximum volume is 20002000 cm³ at x=5x=5. For V≥1800V\ge1800: 3.27≤x≤6.963.27\le x\le6.96.

2468101214500100015002000x (cm)y(5, 2000)x = 3.27x = 6.96VV = 1800
Volume of the box, V = x(30 − 2x)², for 0 < x < 15

Why is x = 15 not allowed in the box problem?

Try an exam question

For f(x)=(x+2)(x−1)(x−3)f(x)=(x+2)(x-1)(x-3), find the roots and the yy-intercept, and describe where the graph is below the xx-axis.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which values of xx give the xx-intercepts of the graph of y=f(x)y=f(x)?

1 mark, marked against the mark scheme

Revision notes