9D

Cubics and transformations of graphs

Graphs of y = x³ and factorised cubics, x- and y-intercepts, and translations, reflections and dilations of any graph.

Once you know a few basic shapes, you don't need a new method for every equation. Most graphs are a basic shape moved, flipped or stretched. This section adds the cubic to your collection, then gives the rules for moving any graph around.

The cubic $y = x^3$

$y = x^3$ passes through $(-2, -8)$, $(-1, -1)$, $(0, 0)$, $(1, 1)$ and $(2, 8)$. It rises from bottom left to top right, flattening out at the origin before rising again. That flat point is a point of inflection, where the curve changes the way it bends.

$y = (x - h)^3 + k$ is the same shape with its point of inflection moved to $(h, k)$. $y = -x^3$ is reflected, so it falls from top left to bottom right.

Factorised cubics

For $y = a(x - p)(x - q)(x - r)$:

  • The $x$-intercepts are $p$, $q$ and $r$, because each bracket can be zero.
  • The $y$-intercept comes from putting $x = 0$.
  • If $a \gt 0$ the graph starts low on the left and ends high on the right. If $a \lt 0$ it starts high and ends low.
Example 1●●

Sketch $y = (x - 1)(x + 2)(x - 3)$.

$x$-intercepts $-2$, $1$, $3$
Each bracket equal to zero.
$y$-intercept $6$
Put x = 0: (−1)(2)(−3).
Start low on the left, rise through $-2$, turn, come down through $1$ (passing $(0, 6)$ on the way), turn, then rise through $3$.
Multiplying out gives x³ first, so a = 1 is positive: low on the left, high on the right.

A repeated factor such as $(x - 2)^2$ means the graph touches the $x$-axis at $x = 2$ and turns back, instead of crossing. For example, $y = (x - 2)^2(x + 1)$ crosses at $-1$ and touches at $2$.

Transformations

Why does $f(x - h)$ move the graph right? The new graph reaches each height $h$ units later. For example, $y = (x - 3)^2$ only reaches $0$ when $x = 3$, while $y = x^2$ reaches $0$ at $x = 0$.

Transform y = f(x)

Faint: y = f(x) = x³ − 3x, with turning points (−1, 2) and (1, −2). Orange: y = a f(x − h) + k.

Try this

Predict first: where does the turning point $(1, -2)$ end up for $y = f(x - 2) + 3$? Set the sliders to check. Then set $a = -1$ with $h = k = 0$. Which turning point is now the maximum?

Example 2●●

The graph of $y = x^2$ is reflected in the $x$-axis, then shifted $1$ left and $3$ up. Find its equation and turning point.

$y = -x^2$
Reflect in the x-axis: multiply the whole function by −1.
$y = -(x + 1)^2 + 3$
1 left means replace x with x + 1. Then 3 up means add 3.
Turning point $(-1, 3)$, a maximum

Your turn

Sketch $y = -(x + 2)(x - 1)^2$: find the intercepts and describe the shape.

Show the working

$x$-intercepts: $-2$ (crosses) and $1$ (touches, because of the squared bracket). $y$-intercept: $-(2)(1) = -2$. The $x^3$ term is negative, so the graph starts high on the left, comes down through $-2$, turns below the axis, rises to touch the axis at $1$, then falls away to the right.

Flashcards
$y = f(x - h)$
Shift right by $h$.
$y = -f(x)$
Reflect in the $x$-axis.
Repeated factor $(x - p)^2$ in a cubic
The graph touches the $x$-axis at $x = p$.
Practice
  1. Which describes $y = x^3$?

  2. Find the $x$-intercepts of $y = (x - 1)(x + 2)(x - 3)$. Enter all three separated by &.

  3. Find the $y$-intercept of $y = 2(x + 1)(x - 3)(x - 4)$.

  4. The graph of $y = -(x + 1)(x - 2)(x - 4)$:

  5. The graph of $y = (x - 2)^2(x + 1)$ at $x = 2$:

  6. Find the point of inflection of $y = (x - 2)^3 + 5$. Enter it as $x, y$.

  7. The graph of $y = f(x + 3)$ is the graph of $y = f(x)$:

  8. $y = f(x)$ has a turning point at $(1, -2)$. What is the $y$-coordinate of the matching turning point on $y = f(x) + 4$?

  9. Challenge: $y = x^2$ is shifted $3$ left, then reflected in the $x$-axis, then shifted $4$ up. Find the turning point of the new graph. Enter it as $x, y$.

  10. Challenge: $y = f(x)$ has a turning point at $(2, 5)$. Find the matching point on $y = -f(x + 3)$. Enter it as $x, y$.

Formula sheet