Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Maths - Methods (Unit 3 & Unit 4) Polynomial functions

The general cubic function

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A cubic function has the general form \(y=ax^{3}+bx^{2}+cx+d\) with \(a\neq 0\). The sign of the leading coefficient \(a\) fixes the end behaviour, the factored form \(y=a(x-p)(x-q)(x-r)\) reads off the x-intercepts, and the constant \(d\) is the y-intercept. A cubic has up to three x-intercepts, and a repeated root makes the curve touch or flatten on the axis rather than cross it.

A cubic function is a polynomial of degree three, \(y=ax^{3}+bx^{2}+cx+d\), where \(a,b,c,d\) are constants and \(a\neq 0\). The \(x^{3}\) term dominates for large \(|x|\), so the ends of the graph run off in opposite directions. The leading coefficient \(a\) sets the end behaviour: if \(a\gt 0\) the curve falls from the bottom-left and rises to the top-right; if \(a\lt 0\) it rises from the top-left and falls to the bottom-right. Substituting \(x=0\) gives the y-intercept \(y=d\).

The factored form \(y=a(x-p)(x-q)(x-r)\) is the most useful for sketching, because setting \(y=0\) shows the x-intercepts at once: each factor gives one root, \(x=p\), \(x=q\) and \(x=r\). A cubic can have up to three x-intercepts; it always has at least one, since a cubic must cross the \(x\)-axis somewhere.

When a factor is repeated the curve meets the axis differently. A double factor \((x-p)^{2}\) makes the curve touch the \(x\)-axis at \(x=p\) and turn back, like the vertex of a parabola, rather than cross it. A triple factor \((x-p)^{3}\) makes the curve flatten as it passes through \(x=p\) — a stationary point of inflection.

Key idea. In \(y=a(x-p)(x-q)(x-r)\) the roots \(p,q,r\) are the x-intercepts and \(a\) fixes the end behaviour; the y-intercept is the value at \(x=0\). A simple root crosses the axis, a double root touches it, a triple root flattens through it.
A positive cubic with three x-interceptsThe cubic y=0.25(x+2)(x-1)(x-3) rising from bottom-left to top-right, crossing the x-axis at x=-2, x=1 and x=3, with y-intercept at (0, 1.5). x y -2 1 3 (0, 1.5) a > 0
\(y=\dfrac{1}{4}(x+2)(x-1)(x-3)\): three x-intercepts at \(x=-2,1,3\), y-intercept \((0,1.5)\), and \(a\gt 0\) end behaviour
A cubic with a repeated rootThe cubic y=0.3(x+2)(x-2)^2 crosses the x-axis at x=-2 and only touches it at the repeated root x=2, turning back upward there. x y -2 2 touches crosses
\(y=\dfrac{3}{10}(x+2)(x-2)^{2}\): the curve crosses at \(x=-2\) but only touches the axis at the repeated root \(x=2\)

The general (expanded) form of a cubic — the y-intercept is the constant term:

\[y=ax^{3}+bx^{2}+cx+d,\qquad a\neq 0 \qquad\Rightarrow\qquad \text{y-intercept } (0,\,d)\]
y=ax3+bx2+cx+d

The factored form — the roots \(p,q,r\) are the x-intercepts:

\[y=a(x-p)(x-q)(x-r) \qquad\Rightarrow\qquad x=p,\;x=q,\;x=r\]
y=a(x-p)(x-q)(x-r)

Repeated-root forms — a double factor touches, a triple factor flattens through:

\[y=a(x-p)^{2}(x-q) \qquad\qquad y=a(x-p)^{3}\]
y=a(x-p)2(x-q)
End behaviour. The sign of \(a\) decides the ends: for \(a\gt 0\), \(y\to+\infty\) as \(x\to+\infty\) and \(y\to-\infty\) as \(x\to-\infty\); for \(a\lt 0\) both are reversed. Changing the size of \(a\) stretches the curve but never moves the intercepts.

How to sketch a cubic from factored form

  1. Read the sign of \(a\). Decide the end behaviour: \(a\gt 0\) rises to the right, \(a\lt 0\) falls to the right.
  2. Find the x-intercepts. Set each factor to zero. Remember \((x-p)=0\) gives \(x=p\), and \((x+p)=0\) gives \(x=-p\).
  3. Check for repeated roots. A double factor \((x-p)^{2}\) touches the axis at \(x=p\); a triple factor \((x-p)^{3}\) flattens through it.
  4. Find the y-intercept. Put \(x=0\): in factored form this is \(y=a(-p)(-q)(-r)\); in expanded form it is the constant \(d\).
  5. Join smoothly. Mark the intercepts, then draw one continuous curve consistent with the end behaviour, crossing or touching as required.
Tip. A cubic always crosses the \(x\)-axis at least once, so it can never sit entirely above or below the axis. Use the y-intercept as an extra plotted point to set the vertical scale of your sketch.
Example 1 — y-intercept and end behaviour
For \(y=2x^{3}-5x^{2}+x-4\), state the y-intercept and describe the end behaviour.
Solution
y-intercept — substitute \(x=0\):
\(y\)\(=\)\(2(0)^{3}-5(0)^{2}+0-4\)
\(=\)\(-4\)
End behaviour — read the leading coefficient \(a=2\):
\(a=2\)\(\gt\)\(0\)
\(\therefore\) y-intercept \((0,-4)\); since \(a\gt 0\), \(y\to-\infty\) as \(x\to-\infty\) and \(y\to+\infty\) as \(x\to+\infty\)
(0,-4)
Example 2 — intercepts from factored form
Find all the intercepts of \(y=(x+1)(x-2)(x-4)\).
Solution
x-intercepts — set each factor to zero:
\(x+1=0\)\(\Rightarrow\)\(x=-1\)
\(x-2=0\)\(\Rightarrow\)\(x=2\)
\(x-4=0\)\(\Rightarrow\)\(x=4\)
y-intercept — substitute \(x=0\):
\(y\)\(=\)\((1)(-2)(-4)\)
\(=\)\(8\)
\(\therefore\) x-intercepts \(x=-1,2,4\); y-intercept \((0,8)\)
x=-1,2,4
Example 3 — a repeated root
Find the intercepts of \(y=(x+3)(x-1)^{2}\) and describe how the curve meets the axis at each.
Solution
x-intercepts — set each factor to zero:
\(x+3=0\)\(\Rightarrow\)\(x=-3\) (simple root, crosses)
\((x-1)^{2}=0\)\(\Rightarrow\)\(x=1\) (double root, touches)
y-intercept — substitute \(x=0\):
\(y\)\(=\)\((3)(-1)^{2}\)
\(=\)\(3\)
\(\therefore\) crosses at \(x=-3\), touches at \(x=1\); y-intercept \((0,3)\)
x=-3 and x=1
Example 4 — sketch a cubic
Sketch \(y=-(x+1)(x-1)(x-2)\), showing the intercepts and the correct end behaviour.
Solution
Sign of \(a\) — the leading coefficient is \(-1\):
\(a=-1\)\(\lt\)\(0\) (falls to the right)
x-intercepts — set each factor to zero:
\(x+1=0,\;x-1=0,\;x-2=0\)\(\Rightarrow\)\(x=-1,1,2\)
y-intercept — substitute \(x=0\):
\(y\)\(=\)\(-(1)(-1)(-2)\)
\(=\)\(-2\)
\(\therefore\) crosses at \(x=-1,1,2\); y-intercept \((0,-2)\); \(a\lt 0\) so the curve falls to the right
Sketch of y = -(x+1)(x-1)(x-2)The negative cubic y=-(x+1)(x-1)(x-2) falling from top-left to bottom-right, crossing the x-axis at x=-1, x=1 and x=2, with y-intercept at (0,-2). x y -1 1 2 (0, -2) a < 0
y=-(x+1)(x-1)(x-2)

Common pitfalls

Sign of the root. A factor \((x-p)\) gives \(x=p\), so \((x+3)\) gives \(x=-3\), not \(+3\). Read the intercept as the value that makes the factor zero.
A double root does not cross. \((x-p)^{2}\) makes the curve touch the axis at \(x=p\) and turn back; do not draw it passing straight through. A triple factor \((x-p)^{3}\) flattens through instead.
\(a\) changes shape, not intercepts. A negative \(a\) reflects the end behaviour (falls to the right) and a larger \(|a|\) stretches the curve, but the x-intercepts stay at \(p,q,r\).

Frequently asked questions

What is the general form of a cubic function?

It is \(y=ax^{3}+bx^{2}+cx+d\) with \(a\neq 0\). The \(x^{3}\) term makes it a cubic; \(a\) controls the shape and the constant \(d\) is the y-intercept.

How do you find the x-intercepts of a cubic?

Write it as \(y=a(x-p)(x-q)(x-r)\) and set \(y=0\). Each factor gives one intercept, and \((x+3)\) gives \(x=-3\), not \(+3\).

How many x-intercepts can a cubic have?

One, two or three. Three distinct factors give three crossings; a double factor gives a touch (fewer crossings); and some cubics cross the axis only once.

What does a repeated root do to a cubic graph?

A double factor \((x-p)^{2}\) makes the curve touch the axis at \(x=p\) and turn back; a triple factor \((x-p)^{3}\) makes it flatten as it passes through — a stationary point of inflection.

How do you find the y-intercept of a cubic?

Substitute \(x=0\). In expanded form this is the constant \(d\); in factored form it is \(y=a(-p)(-q)(-r)\).

How does the sign of a affect a cubic graph?

If \(a\gt 0\) the curve falls from the bottom-left and rises to the top-right; if \(a\lt 0\) it is reversed. The size of \(a\) stretches the curve but does not move the intercepts.