Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 25 · Functions and advanced graphs
GCSE Maths · Functions and Advanced Graphs · Higher · Lesson 25.4

GCSE Maths: Graph transformations (Higher)

Part of the GCSE Maths functions and advanced graphs chapter (Higher). Chapter overview · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
25.4

Graph transformations

Edexcel 1MA1: A12, A13
Grade 7-9

If you know the graph of y = f(x), you can sketch the graphs of many related functions without calculating anything new. Each point on the old graph moves to a new position, and the new graph is the old graph moved, flipped or stretched. This is called a transformation of the graph.

The rules are in the table. In each case, a point (x, y) on y = f(x) goes to the point shown.

New functionWhat happensPoint (x, y) goes to
y = f(x) + atranslation up a units (down if a is negative)(x, y + a)
y = f(x + a)translation a units to the left (right if a is negative)(x − a, y)
y = −f(x)reflection in the x-axis(x, −y)
y = f(−x)reflection in the y-axis(−x, y)
y = af(x) (extension)stretch parallel to the y-axis, scale factor a(x, ay)
y = f(ax) (extension)stretch parallel to the x-axis, scale factor 1/a(x/a, y)

The graph below shows y = f(x) = x2 − 4x + 3 (dashed) and four transformed graphs (solid orange). Look at how the minimum point B(2, −1) moves each time.

xy-2-112345-3-2-11234567AA'BB'CC'DD'y = f(x) + 2xy-4-3-2-112345-3-2-112345AA'BB'CC'DD'y = f(x + 2)xy-2-112345-5-4-3-2-112345AA'BB'CC'DD'y = −f(x)xy-5-4-3-2-112345-3-2-112345AA'BB'CC'DD'y = f(−x)
The dashed curve is y = f(x). The orange curves are the transformed graphs. In f(x) + 2 the minimum B(2, −1) moves to (2, 1). In f(x + 2) it moves to (0, −1). In −f(x) it becomes a maximum at (2, 1). In f(−x) it moves to (−2, −1).

Why does f(x + 2) move the graph to the left? The new function gives the same output as f but when the input is 2 smaller: for example the new function at x = 0 gives f(0 + 2) = f(2). So whatever f does at x = 2, the new graph does at x = 0: everything has shifted 2 to the left.

Everything moves together. Turning points, intercepts and asymptotes move with the graph. The reciprocal graph y = 1/x has asymptotes x = 0 and y = 0. The graph of y = 1/x + 2 has asymptotes x = 0 and y = 2, and the graph of y = 1/(x − 3) has asymptotes x = 3 and y = 0.

xy-3-2-1123456789-4-3-2-1123456(4, 3)
The dashed curve is y = 1/x. The orange curve is y = 1/(x − 3) + 2: it has been translated 3 right and 2 up, so its asymptotes are x = 3 and y = 2.

Completing the square. A quadratic written as y = (x + p)2 + q is the graph of y = x2 translated by p to the left and q up, so its turning point is (−p, q). This links to the work on completing the square in Chapter 14.

Key ideas

  • f(x) + a: translate up a. f(x + a): translate a to the left. Together: the vector (−a, b) for f(x + a) + b.
  • −f(x): reflect in the x-axis. f(−x): reflect in the y-axis.
  • af(x): stretch in the y-direction by scale factor a. f(ax): stretch in the x-direction by scale factor 1/a.
  • Changes outside the bracket affect y. Changes inside the bracket affect x (and work the opposite way).
  • Turning points, roots and asymptotes move with the graph: transform the key points first.
Worked example 25.4.1
The graph of y = f(x) has a minimum at B(2, −1), crosses the x-axis at A(1, 0) and C(3, 0), and crosses the y-axis at D(0, 3). Find the coordinates of the images of A, B, C and D on the graph of y = f(x) + 2, and sketch it.

Method. y = f(x) + 2 is a translation by the vector 0
2
(2 units up). Apply the rule to each key point.

  1. Identify the transformation. Look at what has been done to f(x): is it added outside the bracket, changed inside the bracket, or multiplied?
    y = f(x) + 2 is a translation by the vector 0
    2
    (2 units up)
  2. Use the rule for this type. The graph moves up (or down) by the number added to f(x). Only the y-coordinates change: add the number to y.
  3. Apply the rule to each point. Work out the new coordinates.
    A (1, 0) → (1, 2)
    B (2, −1) → (2, 1)
    C (3, 0) → (3, 2)
    D (0, 3) → (0, 5)
  4. Sketch the new graph. Join the new points with a smooth curve of the same shape (flipped or stretched if the transformation does that). The old graph is shown dashed for comparison.
    xy-2-112345-3-2-11234567AA'BB'CC'DD'

Check. Check one point: B′ = (2, 1). The new equation y = x2 − 4x + 5 gives y = 22 − 4 × 2 + 5 = 1 when x = 2. ✓

Watch out. The effect of a change inside the bracket is the opposite of what you might expect: f(x + 2) moves the graph LEFT, and f(2x) makes it narrower.

Worked example 25.4.2
The graph of y = f(x) is the same as in the previous example. Find the coordinates of the images of A, B, C and D on the graph of y = f(x − 3), and sketch it.

Method. y = f(x − 3) is a translation by the vector 3
0
(3 units to the right). Apply the rule to each key point.

  1. Identify the transformation. Look at what has been done to f(x): is it added outside the bracket, changed inside the bracket, or multiplied?
    y = f(x − 3) is a translation by the vector 3
    0
    (3 units to the right)
  2. Use the rule for this type. Inside the bracket the change is the opposite way round to what you expect: y = f(x + a) moves the graph a units to the LEFT. Only the x-coordinates change: subtract a.
  3. Apply the rule to each point. Work out the new coordinates.
    A (1, 0) → (4, 0)
    B (2, −1) → (5, −1)
    C (3, 0) → (6, 0)
    D (0, 3) → (3, 3)
  4. Sketch the new graph. Join the new points with a smooth curve of the same shape (flipped or stretched if the transformation does that). The old graph is shown dashed for comparison.
    xy-2-112345678-3-2-112345AA'BB'CC'DD'

Check. Check one point: B′ = (5, −1). The new equation y = x2 − 10x + 24 gives y = 52 − 10 × 5 + 24 = −1 when x = 5. ✓

Watch out. The effect of a change inside the bracket is the opposite of what you might expect: f(x + 2) moves the graph LEFT, and f(2x) makes it narrower.

Worked example 25.4.3
The graph of y = f(x) = x3 − 3x2 passes through A(0, 0), B(2, −4) and C(3, 0). Find the images of A, B and C on y = −f(x) and sketch it.

Method. y = −f(x) is a reflection in the x-axis. Apply the rule to each key point.

  1. Identify the transformation. Look at what has been done to f(x): is it added outside the bracket, changed inside the bracket, or multiplied?
    y = −f(x) is a reflection in the x-axis
  2. Use the rule for this type. Minus f(x) turns the graph upside down (reflection in the x-axis). Only the y-coordinates change sign.
  3. Apply the rule to each point. Work out the new coordinates.
    A (0, 0) → (0, 0)
    B (2, −4) → (2, 4)
    C (3, 0) → (3, 0)
  4. Sketch the new graph. Join the new points with a smooth curve of the same shape (flipped or stretched if the transformation does that). The old graph is shown dashed for comparison.
    xy-2-112345-6-5-4-3-2-1123456AA'BB'CC'

Check. Check one point: B′ = (2, 4). The new equation y = −x3 + 3x2 gives y = −23 + 3 × 22 = 4 when x = 2. ✓

Watch out. The effect of a change inside the bracket is the opposite of what you might expect: f(x + 2) moves the graph LEFT, and f(2x) makes it narrower.

Worked example 25.4.4
For the same graph y = f(x) = x3 − 3x2, find the images of A, B and C on y = f(−x) and sketch it.

Method. y = f(−x) is a reflection in the y-axis. Apply the rule to each key point.

  1. Identify the transformation. Look at what has been done to f(x): is it added outside the bracket, changed inside the bracket, or multiplied?
    y = f(−x) is a reflection in the y-axis
  2. Use the rule for this type. f(−x) flips the graph left to right (reflection in the y-axis). Only the x-coordinates change sign.
  3. Apply the rule to each point. Work out the new coordinates.
    A (0, 0) → (0, 0)
    B (2, −4) → (−2, −4)
    C (3, 0) → (−3, 0)
  4. Sketch the new graph. Join the new points with a smooth curve of the same shape (flipped or stretched if the transformation does that). The old graph is shown dashed for comparison.
    xy-5-4-3-2-112345-6-5-4-3-2-112AA'BB'CC'

Check. Check one point: B′ = (−2, −4). The new equation y = −x3 − 3x2 gives y = −(−2)3 − 3 × (−2)2 = −4 when x = −2. ✓

Watch out. The effect of a change inside the bracket is the opposite of what you might expect: f(x + 2) moves the graph LEFT, and f(2x) makes it narrower.

Worked example 25.4.5
f(x) = x2 − 4x. Find, in expanded form, the equation of the graph y = f(x + 2).

Method. Write the new function using f, replace f by its rule, then simplify.

  1. Write the original function.
    f(x) = x2 − 4x
  2. Say what the new function is in terms of f. The new graph is y = f(x + 2).
    y = f(x + 2)
  3. Put the rule in. Replace every x in the rule by (x + 2).
    (x + 2)2 − 4(x + 2)
  4. Expand and simplify. Multiply out any brackets and collect like terms.
    y = x2 − 4

Check. Test with x = 3: the new rule gives 5; using the original rule with the changed input gives the same number. ✓

Watch out. Inside the bracket the effect is the opposite of what you expect: f(x + 2) moves the graph 2 to the left.

Worked example 25.4.6
Write y = x2 + 6x + 11 in the form y = (x + p)2 + q. Hence write down the coordinates of the turning point and describe the transformation from y = x2.

Method. Complete the square. The completed-square form is a transformation of y = x²: a translation left or right, then up or down.

  1. Halve the number in front of x. Completing the square: x2 + bx = (x + b/2)2 − (b/2)2.
    6 ÷ 2 = 3
  2. Write the bracket and subtract the square of the half. (x + 3)2 expands to x2 + 6x + 9, which has 9 too many, so subtract it.
    x2 + 6x = (x + 3)2 − 9
  3. Add the constant term.
    y = (x + 3)2 + 2
  4. Read the turning point. The graph of y = x2 has its minimum at (0, 0). Replacing x by x + 3 moves it 3 left, and adding 2 moves it 2 up.
    minimum at (−3, 2)

Check. Expand: (x + 3)2 + 2 = x2 + 6x + 11 = x2 + 6x + 11. ✓

Watch out. The x-coordinate of the turning point is the opposite sign to the number inside the bracket.

Watch out

A change inside the bracket does the opposite of what you expect: y = f(x + 2) moves 2 units to the left, not the right, and y = f(2x) is narrower, not wider. Also, −f(x) flips the graph over (y changes sign) but f(−x) flips it sideways (x changes sign). Only the coordinate that is affected changes.

Exercise 25D  Graph transformations

Non-calculator
1
FThe graph of y = f(x) passes through A(1, 0), B(2, −1), C(3, 0) and D(0, 3). Find the coordinates of the images of A, B, C and D on the graph of
(a)y = f(x) + 3
(b)y = f(x − 2)
(c)y = −f(x)
(d)y = f(−x)
2
FThe graph of y = f(x) = x3 − 3x2 passes through A(0, 0), B(2, −4) and C(3, 0). Find the images of A, B and C on
(a)y = f(x) − 2
(b)y = f(x + 1)
(c)y = 2f(x) (a stretch)
(d)y = f(−x)
3
PSf(x) = x2 − 4x. Find, in expanded form, the equation of the graph
(a)y = f(x) + 3
(b)y = f(x − 2)
(c)y = −f(x)
(d)y = f(−x)
(e)y = 2f(x)
4
FThe graph of y = f(x) has a minimum point at (2, −1). Write down the coordinates and type of the turning point of
(a)y = f(x) + 4
(b)y = f(x − 3)
(c)y = −f(x)
(d)y = f(2x) (a stretch)
5
PSThe graph of y = f(x) crosses the x-axis at x = 1 and x = 3. Write down where the graph of each of these crosses the x-axis.
(a)y = f(x − 2)
(b)y = f(−x)
(c)y = −f(x)
(d)y = f(2x)
6
FIn each diagram the dashed graph is y = f(x) and the orange graph is a transformation of it. Describe the transformation fully and write the equation of the orange graph in terms of f.
(a)
xy-2-112345-3-2-112345678AA'BB'CC'DD'
(b)
xy-2-11234567-6-5-4-3-2-112AA'BB'CC'
(c)
xy-2-112345-5-4-3-2-112345AA'BB'CC'DD'
(d)
xy-5-4-3-2-112345-6-5-4-3-2-112AA'BB'CC'
7
FThe dashed graph is y = f(x) = x2 − 4x + 3. The graphs P, Q and R are transformations of it. Match each equation to a graph.
xy-2-11234567-4-3-2-112345678PQR
(a)y = f(x) + 3
(b)y = f(x − 2)
(c)y = −f(x)
8
FThe point (4, 7) is on the graph of y = f(x). Write down the coordinates of the corresponding point on the graph of
(a)y = f(x) + 1
(b)y = f(x − 2)
(c)y = 2f(x)
(d)y = f(½x)
9
FThe graph of y = 1/x has asymptotes x = 0 and y = 0. Write down the equations of the asymptotes of
(a)y = 1/x + 2
(b)y = 1/(x − 3)
(c)y = 1/(x + 1) − 4
(d)y = 1/(x − 2) + 1
10
PSSketch the graph of y = 1/(x − 2) + 1. Mark the asymptotes and the points where the graph crosses the axes.
11
FComplete the square for each quadratic, and write down the coordinates of its turning point.
(a)y = x2 + 6x + 11
(b)y = x2 − 4x + 9
(c)y = x2 + 8x + 20
(d)y = x2 − 2x − 3
12
FDescribe the transformation that maps the graph of y = x2 onto the graph of y = (x − 3)2 + 2.
13
RExplain why the graph of y = f(x + 3) is a translation of 3 units to the left, using f(x) = x2 as an example.
14
RFor f(x) = x3 − 3x2, show that the graphs of y = −f(x) and y = f(−x) are not the same.
15
PSThe height, in metres, of a ball x seconds after it is thrown is h(x) = 8x − 5x2. A second ball is thrown in exactly the same way but 1 second later. Find an expression for its height x seconds after the first ball was thrown.
16
RThe graph of y = f(x) has a minimum at (3, −2). The graph of y = f(x + a) + b has its minimum at (1, 5). Find the values of a and b.
17
RThe graph of y = x2 − 4x + 3 is reflected in the y-axis and then translated 2 units up. Find the equation of the final graph.

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings