Cubic graphs and graphs of powers of x

AS · P1 · 11 min

Paper 1 assumes you know the shapes of the graphs y=kxny = kx^n and can sketch a cubic from its factors. These sketches are rarely a whole question on their own, but they are used constantly: to count the solutions of an equation, to see which region an area integral covers, to check the nature of stationary points, and as the "given graph" in transformation questions. This note collects the shapes you need and the method for sketching any factorised cubic.

Graphs of powers of x

The syllabus lists, as assumed knowledge, the shapes of y=kxny = kx^n where nn is a positive or negative integer, or ±12\pm\tfrac{1}{2}. They fall into a few families.

Key result
PowerShape for k>0k > 0Examples
nn even and positive∪\cup-like, through the origin, symmetric in the yy-axisx2x^2, x4x^4
nn odd and positiverises from bottom left to top right through the origin, with rotational symmetry about OOxx, x3x^3, x5x^5
nn odd and negativetwo branches in quadrants 1 and 3; asymptotes x=0x = 0 and y=0y = 01x\dfrac{1}{x}, 1x3\dfrac{1}{x^3}
nn even and negativetwo branches in quadrants 1 and 2, both above the axis; asymptotes x=0x = 0 and y=0y = 01x2\dfrac{1}{x^2}
n=12n = \tfrac{1}{2}half a sideways parabola, from the origin, for x≥0x \ge 0x\sqrt{x}
n=−12n = -\tfrac{1}{2}for x>0x > 0 only, falling towards the xx-axis; asymptotes x=0x = 0 and y=0y = 01x\dfrac{1}{\sqrt{x}}

If k<0k < 0, reflect the graph in the xx-axis.

y = x^2 y = x^3 y = 1/x y = 1/x^2

All four of these pass through (1,1)(1, 1). For 0<x<10 < x < 1 higher powers are smaller (x3<x2x^3 < x^2), and for x>1x > 1 they are larger. This is a useful check when sketching two powers on the same axes.

y = sqrt(x) y = 1/sqrt(x)

y=xy = \sqrt{x} and y=1xy = \dfrac{1}{\sqrt{x}} exist only for x≥0x \ge 0 and x>0x > 0 respectively, and meet at (1,1)(1, 1).

The shape of a cubic

A cubic is y=ax3+bx2+cx+dy = ax^3 + bx^2 + cx + d with a≠0a \neq 0. For large ∣x∣|x| the ax3ax^3 term dominates, so the ends of the graph behave like y=ax3y = ax^3:

  • a>0a > 0: the curve comes up from the bottom left and goes off to the top right;
  • a<0a < 0: it comes down from the top left and goes off to the bottom right.

In between, a cubic has either two turning points (a "hump and a dip") or none. It meets the xx-axis at least once and at most three times.

What the factors tell you

If the cubic is factorised, each factor gives a root, and the power of the factor tells you how the curve behaves there:

Key result
  • A single factor (x−α)(x - \alpha): the curve crosses the xx-axis at x=αx = \alpha.
  • A squared factor (x−α)2(x - \alpha)^2: the curve touches the xx-axis at x=αx = \alpha and turns back (a turning point on the axis).
  • A cubed factor (x−α)3(x - \alpha)^3: the curve flattens and crosses at x=αx = \alpha, like y=x3y = x^3 at the origin.
Sketching a factorised cubic
  1. Find the sign of the x3x^3 coefficient (multiply the leading coefficients of the factors) to fix the ends.
  2. Mark the roots from the factors, noting which are single (cross) and which are squared (touch).
  3. Find the yy-intercept by putting x=0x = 0.
  4. Starting from the correct end, draw a smooth curve through the roots, crossing or touching as required.
  5. Label all intercepts with coordinates.

You do not need the exact positions of the turning points unless the question asks. Finding them uses calculus: see Stationary points.

Three distinct roots

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

Solution
  • The x3x^3 coefficient is 1>01 > 0: bottom left to top right.
  • Roots x=−2,1,3x = -2, 1, 3, all single, so the curve crosses at each.
  • yy-intercept: (2)(−1)(−3)=6(2)(-1)(-3) = 6, so (0,6)(0, 6).
y = (x + 2)(x - 1)(x - 3) (-2, 0) (1, 0) (3, 0) (0, 6)

Coming up from the bottom left, the curve crosses at −2-2, rises through (0,6)(0, 6), turns, crosses at 11, dips, and crosses back up at 33.

A repeated root and a negative leading coefficient

Sketch y=−x(x−2)2y = -x(x - 2)^2.

Solution
  • The x3x^3 coefficient is −1<0-1 < 0: top left to bottom right.
  • Single root at x=0x = 0 (crosses); repeated root at x=2x = 2 (touches).
  • yy-intercept: 00.
y = -x(x - 2)^2 (0, 0) (2, 0)

From the top left the curve comes down and crosses at the origin, dips below the axis, rises to touch the axis at (2,0)(2, 0), and turns back down.

Factorise first

Sketch y=x3−4xy = x^3 - 4x.

Solution

Factorise: x3−4x=x(x2−4)=x(x−2)(x+2)x^3 - 4x = x\left(x^2 - 4\right) = x(x - 2)(x + 2).

  • a=1>0a = 1 > 0.
  • Roots −2,0,2-2, 0, 2, all crossings. The yy-intercept is the root at the origin.
y = x^3 - 4x (-2, 0) (0, 0) (2, 0)

The curve has rotational symmetry about the origin, because x3−4xx^3 - 4x contains only odd powers.

Finding the equation of a cubic from its graph

Write down the factors from the roots, include an unknown constant aa, and use one more point.

Touch and cross

A cubic curve touches the xx-axis at x=−1x = -1, crosses it at x=2x = 2, and passes through (0,4)(0, 4). Find its equation.

Solution

Touching at −1-1 means a factor (x+1)2(x + 1)^2; crossing at 22 means a factor (x−2)(x - 2):

y=a(x+1)2(x−2)y = a(x + 1)^2(x - 2)

At (0,4)(0, 4): 4=a(1)(−2)4 = a(1)(-2), so a=−2a = -2.

y=−2(x+1)2(x−2)y = -2(x + 1)^2(x - 2)

Transformed cubics

Transformations apply exactly as for any graph (see Transformations of graphs).

A translated cubic

Describe the transformation that maps y=x3y = x^3 onto y=(x−2)3+1y = (x - 2)^3 + 1, and find where the new curve meets the axes.

Solution

Translation by (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}. The point of symmetry moves from (0,0)(0, 0) to (2,1)(2, 1).

yy-intercept: (−2)3+1=−7(-2)^3 + 1 = -7, so (0,−7)(0, -7).

xx-intercept: (x−2)3=−1(x - 2)^3 = -1, so x−2=−1x - 2 = -1 and x=1x = 1, giving (1,0)(1, 0). (A cube root has only one real value, so there is only one intercept.)

y = x^3 y = (x - 2)^3 + 1 (1, 0) (0, -7) (2, 1)

Using sketches to count solutions

The number of real solutions of f(x)=g(x)f(x) = g(x) is the number of points where y=f(x)y = f(x) and y=g(x)y = g(x) meet. A sketch tells you how many to look for; algebra then finds them.

A cubic and a line

On the same diagram sketch y=x(x−3)2y = x(x - 3)^2 and y=2xy = 2x. Hence state the number of real solutions of x(x−3)2=2xx(x - 3)^2 = 2x, and find them exactly.

Solution

y=x(x−3)2y = x(x - 3)^2: a>0a > 0, crosses at 00, touches at 33. y=2xy = 2x: a line through the origin.

y = x(x - 3)^2 y = 2x

The line meets the curve three times: at the origin, once while the curve comes down towards (3,0)(3, 0), and once after it rises again. So there are three solutions.

Algebra: do not divide by xx (that would lose x=0x = 0).

x(x−3)2−2x=0⇒x[(x−3)2−2]=0x(x - 3)^2 - 2x = 0 \quad\Rightarrow\quad x\left[(x - 3)^2 - 2\right] = 0

So x=0x = 0 or (x−3)2=2(x - 3)^2 = 2, giving x=3±2x = 3 \pm \sqrt{2}.

Solutions: x=0x = 0, x=3−2x = 3 - \sqrt{2}, x=3+2x = 3 + \sqrt{2}.

Watch out

Wrong ends. The sign of the x3x^3 term decides the ends. In y=(2−x)(x+1)(x−4)y = (2 - x)(x + 1)(x - 4) the x3x^3 coefficient is −1-1, because of the −x-x in the first factor.

Crossing at a repeated root. A squared factor means the curve touches the axis and turns back; drawing it crossing loses the mark.

Turning points drawn at the roots. Between two single roots the turning point is somewhere between them, not at either root.

Dividing by xx when counting solutions loses the root x=0x = 0.

Forgetting where power graphs exist. y=xy = \sqrt{x} has no part for x<0x < 0; y=1x2y = \dfrac{1}{x^2} is never below the xx-axis.

Exam tip
  • "Sketch" means the correct shape with intercepts labelled. Turning points need only be in sensible positions, unless coordinates are asked for.
  • Expect to use these shapes inside other questions: "By sketching suitable graphs, show that the equation ... has exactly one root" requires a clear sketch of both graphs and a sentence stating the number of intersections.
  • When a question gives a graph "with given features" (a few labelled points) and asks for its transformed image, track each labelled point and draw the same shape through the images.
Summary
  • y=kxny = kx^n: even positive nn is ∪\cup-like; odd positive nn rises through the origin; negative nn has asymptotes x=0x = 0 and y=0y = 0; x\sqrt{x} exists only for x≥0x \ge 0.
  • A cubic with a>0a > 0 goes from bottom left to top right; with a<0a < 0, top left to bottom right.
  • Single factor: cross. Squared factor: touch. Cubed factor: flatten and cross.
  • Find the yy-intercept by putting x=0x = 0, and label every intercept.
  • Equation from a graph: build the factors, then use one point to find aa.
  • The number of intersections of two graphs is the number of solutions of the equation they form.

Practice questions

Question
  1. Sketch y=x(x+3)(x−2)y = x(x + 3)(x - 2).
  2. Sketch y=(x−1)2(x+4)y = (x - 1)^2(x + 4).
  3. Sketch y=(2−x)(x+1)(x−4)y = (2 - x)(x + 1)(x - 4).
  4. Factorise x3−6x2+9xx^3 - 6x^2 + 9x and hence sketch y=x3−6x2+9xy = x^3 - 6x^2 + 9x.
  5. The curve y=ax(x+3)(x−5)y = ax(x + 3)(x - 5) passes through (1,−8)(1, -8). Find aa.
  6. A cubic crosses the xx-axis at −2-2, 11 and 33 and the yy-axis at (0,−12)(0, -12). Find its equation.
  7. Describe a sequence of transformations mapping y=x3y = x^3 onto y=2(x+1)3−3y = 2(x + 1)^3 - 3, and find the coordinates of the points where the new curve meets the axes (the xx-intercept to 3 significant figures).
  8. On the same axes sketch y=x2y = x^2 and y=1xy = \dfrac{1}{x}. Show that they meet at exactly one point and find it.
  9. Find the coordinates of the points where the curve y=x(x−4)2y = x(x - 4)^2 meets the line y=9xy = 9x.
  10. Show that, for every value of the constant kk, the curve y=(x−k)(x2−2x+5)y = (x - k)\left(x^2 - 2x + 5\right) meets the xx-axis at exactly one point.
Answers
  1. a>0a > 0; crosses at −3-3, 00, 22; yy-intercept 00. Bottom left to top right.

  2. a>0a > 0; crosses at −4-4, touches at 11; yy-intercept (1)(4)=4(1)(4) = 4, so (0,4)(0, 4).

  3. x3x^3 coefficient −1<0-1 < 0: top left to bottom right. Crosses at −1-1, 22, 44. yy-intercept (2)(1)(−4)=−8(2)(1)(-4) = -8.

  4. x(x2−6x+9)=x(x−3)2x\left(x^2 - 6x + 9\right) = x(x - 3)^2. a>0a > 0; crosses at the origin, touches at (3,0)(3, 0).

  5. −8=a(1)(4)(−4)=−16a-8 = a(1)(4)(-4) = -16a, so a=12a = \tfrac{1}{2}.

  6. y=a(x+2)(x−1)(x−3)y = a(x + 2)(x - 1)(x - 3). At x=0x = 0: a(2)(−1)(−3)=6a=−12a(2)(-1)(-3) = 6a = -12, so a=−2a = -2. y=−2(x+2)(x−1)(x−3)y = -2(x + 2)(x - 1)(x - 3).

  7. Stretch parallel to the yy-axis with scale factor 22, then translation by (−1−3)\begin{pmatrix} -1 \\ -3 \end{pmatrix} (the stretch must come before the vertical translation). yy-intercept: 2(1)−3=−12(1) - 3 = -1, so (0,−1)(0, -1). xx-intercept: (x+1)3=1.5(x + 1)^3 = 1.5, x=1.53−1=0.145x = \sqrt[3]{1.5} - 1 = 0.145, so (0.145,0)(0.145, 0).

  8. y=x2y = x^2 is a ∪\cup through the origin; y=1xy = \dfrac{1}{x} has branches in quadrants 1 and 3. For x<0x < 0, x2>0x^2 > 0 but 1x<0\dfrac{1}{x} < 0, so no intersection there. For x>0x > 0, x2x^2 increases from 00 and 1x\dfrac{1}{x} decreases, so they cross once. x2=1xx^2 = \dfrac{1}{x} gives x3=1x^3 = 1, x=1x = 1: the point (1,1)(1, 1).

  9. x(x−4)2−9x=0x(x - 4)^2 - 9x = 0, so x[(x−4)2−9]=0x\left[(x - 4)^2 - 9\right] = 0. x=0x = 0 or x−4=±3x - 4 = \pm 3, so x=0,1,7x = 0, 1, 7. Points (0,0)(0, 0), (1,9)(1, 9), (7,63)(7, 63).

  10. y=0y = 0 when x=kx = k or x2−2x+5=0x^2 - 2x + 5 = 0. The quadratic has discriminant 4−20=−16<04 - 20 = -16 < 0, so it has no real roots (indeed x2−2x+5=(x−1)2+4>0x^2 - 2x + 5 = (x - 1)^2 + 4 > 0). So the only root is x=kx = k, and the curve meets the xx-axis exactly once, at (k,0)(k, 0).

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action