topic badge

2.08 Graphs of cubics

Lesson

The shape of a cubic

The cubic function belongs to the family of polynomial functions and has the general form: 

$y=ax^3+bx^2+cx+d$y=ax3+bx2+cx+d

Various combinations of choices of the four coefficients $a$a, $b$b, $c$c and $d$d will create variations in the shape and position of the curve. However, the curve will always exhibit certain properties and key features that we will outline here.

Before we look at these properties it might be beneficial to describe the shape using a rope analogy.

Take a piece of rope and lay it on the table. Put two turning points in it so that it looks like photo A in the diagram below. One of the turning points is known as a local maximum and the other is known as a local minimum. Photo A is one of the common shapes of a cubic function.

In between the two turning points (circled) is the point of inflection of the cubic function. A point of inflection is a point where the graph changes concavity. For each example above the graph changes from concave down to concave up at the circled point. All cubic functions undergo a single change in concavity (from concave down to concave up, or from concave up to concave down) and this change always occurs at the cubic's point of inflection. Cubic graphs have $180$180$^\circ$° point symmetry about the point of inflection.

Now imagine that both ends of the rope are pulled - the left end pulled down and the right end pulled up. At some point in the pulling it will become something like that depicted in photo B. The turning points will have merged together to form a single point known as a horizontal point of inflection or, alternatively, a stationary point of inflection

Finally imagine pulling on the ends further. You will end up with something like that depicted in photo C.

With a real rope you would be able to pull it into a straight line, but with the cubic curve, a complete straightening is impossible. No matter how hard you 'pull' on the cubic function, there will always be a central point of inflection (no longer horizontal but nevertheless an inflection) with a concave down section on the left of the centre and a concave up section to the right.

Forms of a cubic function

Forms of cubics

General Form: $y=ax^3+bx^2+cx+d$y=ax3+bx2+cx+d 

Translated form: $y=a\left(x-h\right)^3+k$y=a(xh)3+k

Factored form (3 linear factors)$y=a\left(x-\alpha\right)\left(x-\beta\right)\left(x-\gamma\right)$y=a(xα)(xβ)(xγ)

Factored form (1 linear factor and 1 unfactorisable quadratic factor):$y=a\left(x-\alpha\right)\left(x^2+bx+c\right)$y=a(xα)(x2+bx+c)

Recall from Chapter 1 where we looked at factorising and solving cubic equations, there will always be one x-intercept but depending on the factorisation of the quadratic factor we may have one, two or three $x$x-intercepts. 

Let's explore these forms below and try to find the effect of the different parameters. 

 

Translated form

$y=a\left(x-h\right)^3+k$y=a(xh)3+k 

This form looks very similar to turning point form  for quadratics. Unlike quadratics, not all cubics can be written in this form. Only cubics similar to diagram B with a horizontal point of inflection can be written in this form. Start the applet using $a=1$a=1, $h=0$h=0 and $k=0$k=0 to view the basic form of a cubic $y=x^3$y=x3. Then adjust $a$a, $h$h, and $k$k and try to summarise their impact on the graph.

All the graphs of this form can be obtained by transformations of the graph $y=x^3$y=x3.

Summary:

  • $a$a dilates(stretches) the graph by a factor of $a$a from the $x$x-axis, the larger the magnitude of $a$a the steeper the graph
  • If $a>0$a>0, the graph is increasing
  • If $a<0$a<0, the graph is decreasing, this is a reflection of the basic graph about the $x$x-axis
  • $h$h translates the graph $h$h units horizontally
  • $k$k translates the graph $k$k units vertically
  • Hence, the horizontal point of inflection is at $\left(h,k\right)$(h,k)

 

Practice question

Question 1

Consider the graph of the function.

Loading Graph...

  1. For what values of $x$x is the cubic concave up?

  2. For what values of $x$x is the cubic concave down?

  3. State the coordinates of the point of inflection in the form $\left(a,b\right)$(a,b).

Question 2

This is a graph of $y=x^3$y=x3.

Loading Graph...
A cubic curve on a Cartesian plane that passes through the origin (0,0), which is also the inflection point. The coordinates of the inflection point is not explicitly labeled or given.
  1. How do we shift the graph of $y=x^3$y=x3 to get the graph of $y=\left(x-2\right)^3-3$y=(x2)33?

    Move the graph to the right by $2$2 units and down by $3$3 units.

    A

    Move the graph to the left by $3$3 units and down by $2$2 units.

    B

    Move the graph to the right by $3$3 units and up by $2$2 units.

    C

    Move the graph to the left by $2$2 units and up by $3$3 units.

    D
  2. Hence plot $y=\left(x-2\right)^3-3$y=(x2)33 on the same graph as $y=x^3$y=x3.

     

    Loading Graph...
    A cubic curve on a Cartesian plane that passes through the origin (0,0), which serves as an inflection point. From the origin, the curve stretches infinitely upwards and to the right in the first quadrant, and downwards and to the left in the third quadrant, indicating that the function's values become increasingly positive with larger positive inputs and increasingly negative with larger negative inputs. The curve is symmetric about the origin, reflecting the property of odd functions, and it steadily increases without any local maxima or minima.

 

Factored form (3 linear factors)

$y=a\left(x-\alpha\right)\left(x-\beta\right)\left(x-\gamma\right)$y=a(xα)(xβ)(xγ)

Just like factored form for quadratics, this form allows us to read off the $x$x-intercepts directly. Try changing the values in the applet below, try cases with all 3 values different and other cases where some or all of the values match.

Summary:

  • The $a$a value dilates(stretches) the graph and the larger the magnitude of $a$a the steeper the graph
  • If $a>0$a>0 the graph is mostly increasing (with a positive slope from bottom left to top right)
  • If $a<0$a<0 the graph is mostly decreasing (with a negative slope from top left to bottom right)
  • The point of inflection will occur at the average of the roots. This is always true when the roots are real.

Three distinct roots ($x$x-intercepts)

For three distinct roots there will three $x$x-intercepts at:$\left(\alpha,0\right)$(α,0), $\left(\beta,0\right)$(β,0) and $\left(\gamma,0\right)$(γ,0)

Practice question

Question 3

Consider the curve $y=\left(x+3\right)\left(x+2\right)\left(x-2\right)$y=(x+3)(x+2)(x2).

  1. Find the $x$x-value of the $x$x-intercept(s).

  2. Find the $y$y-value of the $y$y-intercept(s).

  3. Sketch a graph of the curve.

    Loading Graph...

Two distinct roots

For two distinct roots, that is a graph of the form $y=a\left(x-\alpha\right)^2\left(x-\beta\right)$y=a(xα)2(xβ), there are two $x$x-intercepts: a touch at$\left(\alpha,0\right)$(α,0) and a cut at $\left(\beta,0\right)$(β,0). Note that the 'touch' happens at the intercept obtained from the bracket that is squared. 

Practice question

Question 4

Consider the curve $y=\left(x-2\right)^2\left(x+5\right)$y=(x2)2(x+5).

  1. Find the $x$x-value(s) of the $x$x-intercept(s).

  2. Find the $y$y-values of the $y$y-intercept(s).

  3. Plot the graph of the curve.

    Remember that for a curve of degree $n$n, we need $n+1$n+1 unique points.

    Loading Graph...

One distinct root

For one distinct root, that is graphs of the form $y=a\left(x-\alpha\right)^3$y=a(xα)3, there is a single $x$x-intercept and horizontal point of inflection at $\left(\alpha,0\right)$(α,0). This is the same as translated form with $k=0$k=0

Practice question

Question 5

Consider the equation $y=\left(x-4\right)^3$y=(x4)3.

  1. Complete the set of solutions for the given equation.

    $A$A$($($3$3, $\editable{}$$)$), $B$B$($($2$2, $\editable{}$$)$), $C$C$($($5$5, $\editable{}$$)$), $D$D$($($4$4, $\editable{}$$)$), $E$E$($($6$6, $\editable{}$$)$)

  2. Plot the points on the coordinate axes.

    Loading Graph...

  3. Plot the curve that results from the entire set of solutions for the equation being graphed.

    Loading Graph...

  4. Consider $x=6.17$x=6.17. According to the points on the graph, between which two integer values should the corresponding $y$y-value lie?

    $\editable{}$ $<$< $y$y $<$< $\editable{}$

 

General form

The third applet allows you to play with all four constants of the form $y=ax^3+bx^2+cx+d$y=ax3+bx2+cx+d. See what you can discover.

Summary:

  • The $y$y-intercept occurs at$\left(0,d\right)$(0,d)
  • The graph can have $1$1, $2$2 or $3$3 $x$x-intercepts
  • The graph can be one of the three shapes given by diagrams A, B and C.

We can also see that for each form $a$a has the same effect and can help us sketch the overall shape:

  • $a$a dilates(stretches) the graph by a factor of $a$a from the $x$x-axis, the larger the magnitude of $a$a the steeper the graph
  • If $a>0$a>0, the graph is mostly increasing. If there is a local maximum and minimum, the maximum will appear first.
  • If $a<0$a<0, the graph is mostly decreasing. If there is a local maximum and minimum, the minimum will appear first.

In changing the values of $a$a, $b$b, $c$c and $d$d we can get any of the three shapes of cubic functions.

Practice question

QUESTION 6

Consider the graph of the function.

Loading Graph...

  1. The equation of the function can be written in the form $y=ax^3+bx^2+cx+d$y=ax3+bx2+cx+d.

    Determine whether the value of $a$a is positive or negative.

    Positive

    A

    Negative

    B
  2. State the coordinates of the $y$y-intercept in the form $\left(a,b\right)$(a,b).

  3. For which values of $x$x is the graph concave up?

    Give your answer as an inequality, rounding to the nearest integer.

  4. For which values of $x$x is the graph concave down?

    Give your answer as an inequality, rounding to the nearest integer.

  5. State the $x$x-value of the point of inflexion.

Graphing from general form

For all forms, we can find the $y$y-intercept by substituting $x=0$x=0 into the equation.

For $y=ax^3+bx^2+cx+d$y=ax3+bx2+cx+d the point of inflection is always found at $x=\frac{-b}{3a}$x=b3a.

For the $x$x-intercept we can substitute $y=0$y=0 into the equation and then we will need to use our skills from Chapter 1 on factorising and solving cubic equations.

Worked example

Example 1

Let's consider $y=2x^3-14x+12$y=2x314x+12

(a) Describe the shape of the graph.

Think:  $a$a is positive, so the graphs will be mostly increasing and if it has turning points it will have a maximum followed by a minimum.

(b) Determine the $y$y-intercept.

Think: Substitute $x=0$x=0,  We can directly read off the $y$y-intercept: $\left(0,12\right)$(0,12)

(c) State the point of inflection.

Think: We can find the location of the point of inflection using the equation: $x=\frac{-b}{3a}$x=b3a

Do:

$x$x $=$= $\frac{-b}{3a}$b3a
  $=$= $0/6$0/6
  $=$= $0$0

Hence, the point of inflection is at the $y$y-intercept $\left(0,12\right)$(0,12)

(d) Determine the $x$x-intercepts.

Think:  We need to solve $2x^3-14x+12=0$2x314x+12=0, if we can factorise the left-hand side we can then solve with the null factor law.

Do: Trying to find one factor we could guess factors of $d$d divided by factors of $a$a. Luckily we don't need to check too many since: $P\left(1\right)=2-14+12=0$P(1)=214+12=0 and so $\left(x-1\right)$(x1) is a factor. Then using polynomial division, we see that $y=\left(x-1\right)\left(2x^2+2x-12\right)$y=(x1)(2x2+2x12) and lastly factorising the quadratic we reveal that: $y=2\left(x-1\right)\left(x+3\right)\left(x-2\right)$y=2(x1)(x+3)(x2)

So we have $x$x-intercepts of $\left(-3,0\right)$(3,0), $\left(1,0\right)$(1,0) and $\left(2,0\right)$(2,0)

(e) Use your CAS calculator to find the coordinates of the turning points, correct to two decimal places.

Think: Graph the function on your calculator and use Max and Min to find the two points.

Do: The maximum is ($-1.53$1.53 , $26.26$26.26) and the minimum is ($1.53$1.53 ,$-2.26$2.26 )

Graph of $y=2x^3-14x+12$y=2x314x+12

 

Practice question

QUESTION 7

Consider the equation $y=3x+2x^2-x^3$y=3x+2x2x3.

  1. Express the equation in factorised form.

  2. Find the $y$y-value of the $y$y-intercept of the graph of $y=3x+2x^2-x^3$y=3x+2x2x3.

  3. Find the $x$x-values of the $x$x-intercepts of the graph of $y=3x+2x^2-x^3$y=3x+2x2x3.

    Write your solutions on the same line, separated by commas.

  4. Plot the graph of the curve $y=3x+2x^2-x^3$y=3x+2x2x3.

    Remember that for a curve of degree $n$n, we need $n+1$n+1 unique points.

    Loading Graph...

Finding the equation of a cubic given the graph

Some strategies:

  • If an $x$x-intercept is $k$k, then ($x-k$xk) is a factor.
  • If there are three $x$x-intercepts then there will be three different brackets. The equation is in the form $y=a\left(x-\alpha\right)\left(x-\beta\right)\left(x-\gamma\right)$y=a(xα)(xβ)(xγ)
  • If there are two $x$x-intercepts then there will be two different brackets. The equation is in the form $y=a\left(x-\alpha\right)\left(x-\beta\right)^2$y=a(xα)(xβ)2. The squared bracket is the one corresponding to the point where the graph touches the $x$xaxis.
  • If there is one $x$xintercept then the equation is in the form $y=a\left(x-h\right)^3+k$y=a(xh)3+k.
  • Use the $y$y-intercept or another known point when possible as an $x$x and a $y$y value to check your equation is correct or solve for $a$a.

Worked example

example 2

Determine the equation of the cubic function in the graph below.

 

 

 

 

 

 

 

 

 

 

Think: There are three $x$x-intercepts of $-3$3, $1$1 and $2$2. Use these to form three brackets and use the $y$yintercept of $x=0$x=0, $y=11$y=11 to solve for $a$a.

Do: The equation is in the form $y=a\left(x+3\right)\left(x-1\right)\left(x-2\right)$y=a(x+3)(x1)(x2)

$11$11 $=$= $a\left(0+3\right)\left(0-1\right)\left(0-2\right)$a(0+3)(01)(02)

Substituting $x=0$x=0 and $y=11$y=11

$11$11 $=$= $6a$6a

 

$a$a $=$= $\frac{11}{6}$116

 

       

Therefore the equation is $y=\frac{11}{6}\left(x+3\right)\left(x+1\right)\left(x-2\right)$y=116(x+3)(x+1)(x2)

Applications and using technology

We will look more closely at applications of cubic functions later in the course when we can find the turning points algebraically. We can still set up and then solve problems involving cubics with the help of technology. We may need to use knowledge about the function such as axes intercepts and practical restrictions to set up an appropriate view window. Just as common problems for quadratics involved areas, common problems for cubics often involve volumes.

Worked example

Example 2

An open chip box is made from a sheet of cardboard measuring $30$30 $cm$cm by $20$20 $cm$cm with four squares cut away from each corner as depicted in the diagram.

Here is the constructed box:

(a) Calculate a rule for the volume of the box as a function of the side $x$x of the cut-away squares. 

Think:  The length of the box, when constructed, will be $l=30-2x$l=302x and the width will likewise be $w=20-2x$w=202x.  With the height of the box as $x$x, the volume is given by $V=\left(30-2x\right)\left(20-2x\right)x$V=(302x)(202x)x or when expanded $V=4x^3-100x^2+600x$V=4x3100x2+600x

(b) Use technology to calculate the maximum volume of the box.

Think: This situation only makes sense for positive side lengths and positive volume. So when graphing we can set the view window for positive $x$xand$y$y values. 

Do: Using technology, the graph of $V$V as a function of $x$x is shown here.

You can see from the graph that the maximum volume occurs when $x=4$x=4, and this volume is determined as $V=\left(30-2\times4\right)\left(20-2\times4\right)\times4=1056$V=(302×4)(202×4)×4=1056 $cm^3$cm3

 

Practice questions

QUESTION 8

A box without cover is to be constructed from a rectangular cardboard, measuring $6$6 cm by $10$10 cm by cutting out four square corners of length $x$x cm.

Let $V$V represent the volume of the box.

  1. Express the volume $V$V of the box in terms of $x$x, writing the equation in factorised form.

  2. For what range of values of $x$x is the volume function defined?

    $00<x$<$<$3$3

    A

    $x<5$x<5

    B

    $33<x$<$<$5$5

    C

    $x>5$x>5

    D

    $x>0$x>0

    E
  3. Plot the graph of the volume function.

    Loading Graph...

  4. Determine the volume of a box that has a height equivalent to the shorter dimension of the base.

QUESTION 9

A box without cover is to be constructed from a rectangular cardboard that measures $90$90 cm by $48$48 cm by cutting out four identical square corners of the cardboard and folding up the sides.

Let $x$x be the height of the box, and $V$V the volume of the box.

  1. Form an equation for $V$V in terms of $x$x.

    Give your answer in expanded form.

  2. Use your graphics calculator and the graphing application to determine the maximum volume of the box.

Outcomes

1.1.18

recognise features of the graphs of y=x^3, y=a(x−b)^3+c and y=k(x−a)(x−b)(x−c), including shape, intercepts and behaviour as x→∞ and x→−∞

What is Mathspace

About Mathspace