Skip to content
IB Diploma ProgrammeSL & HL

Transformations of graphs

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Transformations of graphs notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Transformations of graphs notes as text: skim, search, and jump between subtopics.

~11 min read

1. Translations

A translation slides every point of the graph by the same amount without turning or resizing it.

y = f(x) + b is a translation by the vector beginpmatrix0 bendpmatrix: b units upwards if b > 0. The change sits outside the brackets and acts on y, so it does what it says.

y = f(x -a) is a translation by beginpmatrixa 0endpmatrix: a units to the right if a > 0. The change sits inside the brackets and acts on x, so it does the opposite of what the sign suggests.

When g(x) = x + b, the composite (g ° f)(x) = g(f(x)) = f(x) + b is a translation of the graph of f.

y = f(x) + b: beginpmatrix0 bendpmatrix

y = f(x - a): beginpmatrixa 0endpmatrix

Worked example 15 marks

Consider the function f(x) = (2x - 3)/(3 - x), x ∈ R, x ≠ 3. The graph of f has the horizontal asymptote y = -2. Consider the function g(x) = x + 4, x ∈ R.(c)(i) Describe the transformation that transforms the graph of y = f(x) to the graph of y = (g ° f)(x).(ii) Hence, find the range of g ° f.

  1. 1

    (i) recognise that (g ° f)(x) = g(f(x)), so (g ° f)(x) = f(x) + 4 (M1) [1]

  2. 2

    translation (or shift) A1. Do not accept ‘move’ [1]

  3. 3

    4 units upwards, or the vector beginpmatrix0 4endpmatrix A1 [1]

  4. 4

    (ii) recognise that the horizontal asymptote is translated up 4 units: -2 + 4 = 2 (M1) [1]

  5. 5

    (g ° f)(x) ≠ 2, or y < 2 or y > 2 A1 [1]

2. Reflections

A reflection flips the graph over a mirror line.

y = -f(x) is a reflection in the x-axis. Every y-coordinate changes sign and every x-coordinate stays the same.

y = f(-x) is a reflection in the y-axis. Every x-coordinate changes sign and every y-coordinate stays the same.

A point on the x-axis does not move under y = -f(x), and a point on the y-axis does not move under y = f(-x).

y = -f(x): (x, y) → (x, -y)

y = f(-x): (x, y) → (-x, y)

Worked example 14 marks

The graph of y = f(x) passes through the point A(3, 5).(a) Write down the coordinates of the image of A on the graph of y = -f(x). [1](b) Write down the coordinates of the image of A on the graph of y = f(-x). [1](c) Describe the transformation that maps y = f(x) to y = f(-x). [2]

  1. 1

    (a) y changes sign: (3, -5) (A1) [1]

  2. 2

    (b) x changes sign: (-3, 5) (A1) [1]

  3. 3

    (c) reflection (A1) [1]

  4. 4

    in the y-axis (A1) [1]

3. Stretches

A stretch multiplies distances from an axis by a scale factor.

y = p f(x) is a vertical stretch with scale factor p. Every y-coordinate is multiplied by p and the x-coordinates stay the same. Points on the x-axis do not move.

y = f(qx) is a horizontal stretch with scale factor 1/q. Every x-coordinate is divided by q and the y-coordinates stay the same. Points on the y-axis do not move.

So f(2x) squeezes the graph towards the y-axis, with scale factor 1/2, and f(x/2) pulls it out, with scale factor 2.

y = p f(x): (x, y) → (x, py)

y = f(qx): (x, y) → (x/q, y)

Worked example 14 marks

The graph of y = f(x) has its maximum point at (6, 4). Find the coordinates of the maximum point on the graph of(a) y = 3f(x); [2](b) y = f(2x). [2]

  1. 1

    (a) vertical stretch, scale factor 3: multiply the y-coordinate by 3 (M1) [1]

  2. 2

    (6, 12) (A1) [1]

  3. 3

    (b) horizontal stretch, scale factor 1/2: divide the x-coordinate by 2 (M1) [1]

  4. 4

    (3, 4) (A1) [1]

4. Composite transformations and order

A composite transformation applies two or more transformations one after another. The order matters, because each one acts on the result of the last.

To sketch y = 3x² + 2 from y = x², first apply the vertical stretch with scale factor 3, then the translation beginpmatrix0 2endpmatrix. The stretch comes first because it is the operation applied first to x².

Reverse the order and the result changes. Translating y = x² up by 2 gives x² + 2. Stretching that gives 3(x² + 2) = 3x² + 6, a different graph.

Work inside-out: the operation next to f is applied first.

y = p f(x) + b: stretch by p , then translate by b

y = x² → y = 3x² → y = 3x² + 2

Worked example 13 marks

Describe a sequence of two transformations that maps the graph of y = x² to the graph of y = 3x² + 2.

  1. 1

    vertical stretch, scale factor 3: y = x² → y = 3x² (A1) [1]

  2. 2

    translation beginpmatrix0 2endpmatrix, that is 2 units upwards: y = 3x² → y = 3x² + 2 (A1) [1]

  3. 3

    the stretch is applied before the translation. Translating first gives 3x² + 6 (R1) [1]

Recap

  • y = f(x) + b translates b units up; y = f(x - a) translates a units right. Say ‘translation’ and give the vector or the direction.
  • y = -f(x) reflects in the x-axis; y = f(-x) reflects in the y-axis.
  • y = p f(x) is a vertical stretch with scale factor p; y = f(qx) is a horizontal stretch with scale factor 1/q.
  • Work from the function outwards. A stretch or reflection applied before a translation gives a different graph from the reverse order.
  • For a point (x, y): stretch, reflect and translate its coordinates in the order the equation builds up.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the transformation that maps the graph of y = f(x) to the graph of y = f(x) - 5.1 mark
    Answer
    1. translation (shift) 5 units downwards, or the vector beginpmatrix0 -5endpmatrix (A1)

    Trap: A change outside the brackets acts on y, so the translation is vertical, not horizontal.

  2. The graph of y = f(x - 3) is obtained from the graph of y = f(x) by a translation of A. 3 units to the right B. 3 units to the left C. 3 units upwards D. 3 units downwards1 mark
    Answer
    1. A. 3 units to the right (A1)
    2. B reverses the sign inside the bracket. C and D treat the change as vertical.

    Trap: Inside the brackets the effect is opposite to the sign: x - 3 moves the graph right.

  3. Do not use a calculator. The point (4, -2) lies 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). [1]2 marks
    Answer
    1. (a)
    2. (4, 2) (A1)
    3. (b)
    4. (-4, -2) (A1)

    Trap: -f(x) changes only the y-coordinate and f(-x) changes only the x-coordinate.

  4. Do not use a calculator. The point (6, 12) lies on the graph of y = f(x). Find the coordinates of the corresponding point on the graph of (a) y = 3f(x); [1] (b) y = f(3x). [1]2 marks
    Answer
    1. (a)
    2. vertical stretch, scale factor 3: (6, 36) (A1)
    3. (b)
    4. horizontal stretch, scale factor 1/3: 3x = 6, so x = 2; the point is (2, 12) (A1)

    Trap: In f(qx) the x-coordinate is divided by q, not multiplied. The point needs 3x = 6.

  5. Describe the single transformation that maps the graph of y = f(x) to the graph of y = f(x/2).2 marks
    Answer
    1. here q = 1/2, so the scale factor is 1/q = 2
    2. horizontal stretch (A1)
    3. with scale factor 2 (A1)

    Trap: The scale factor is 1/q. Reading q = 1/2 as scale factor 1/2 is the slip.

  6. Do not use a calculator. The point A(3, 5) lies on the graph of y = f(x). Find the coordinates of the image of A on the graph of y = 2f(x) - 1.2 marks
    Answer
    1. stretch first: 2 × 5 = 10 (M1)
    2. then translate: 10 - 1 = 9, so the image is (3, 9) (A1)

    Trap: Doubling is applied to f(x) first. Subtracting 1 before doubling would give 8.

  7. Do not use a calculator. Describe a sequence of transformations that maps the graph of y = x² to the graph of y = -2x² + 3.4 marks
    Answer
    1. vertical stretch, scale factor 2: y = 2x² (A1)
    2. reflection in the x-axis: y = -2x² (A1)
    3. translation beginpmatrix0 3endpmatrix: y = -2x² + 3 (A1)
    4. the translation comes last (R1)

    Trap: Translating first gives -2(x² + 3) = -2x² - 6, not -2x² + 3.

  8. Do not use a calculator. The curve C₁ is obtained from y = x² by a vertical stretch with scale factor 2 followed by a translation of 3 units upwards. The curve C₂ is obtained from y = x² by the same two transformations in the opposite order. Show that C₁ and C₂ have no point in common.4 marks
    Answer
    1. C₁: y = 2x² + 3 (A1)
    2. C₂: translate first to y = x² + 3, then stretch: y = 2(x² + 3) = 2x² + 6 (A1)
    3. common point: 2x² + 3 = 2x² + 6 (M1)
    4. this gives 3 = 6, which is false for every x, so there is no common point (R1) AG

    Trap: The order changes the translation: stretching after translating also stretches the 3.

  9. Do not use a calculator. The graph of y = f(x) has asymptotes x = 2 and y = 1, and the range of f is f(x) ≠ 1. The graph of y = g(x) is obtained from the graph of y = f(x) by a reflection in the y-axis, then a vertical stretch with scale factor 3, then a translation of 4 units downwards. (a) Write down g(x) in terms of f. [2] (b) Find the equations of the asymptotes of the graph of g. [4] (c) Hence, write down the range of g. [1]7 marks
    Answer
    1. (a)
    2. reflect, then stretch: 3f(-x) (A1)
    3. then translate: g(x) = 3f(-x) - 4 (A1)
    4. (b)
    5. only the reflection acts on x: x = 2 becomes x = -2 (M1)
    6. x = -2 (A1)
    7. the stretch and the translation act on y, in that order: 3 × 1 - 4 (M1)
    8. y = -1 (A1)
    9. (c)
    10. g(x) ≠ -1 (A1)

    Trap: Translating before stretching gives 3(1 - 4) = -9; and an asymptote written as -2 or -1 without ‘x =’ or ‘y =’ loses the mark.

  10. A footbridge arch has height f(x) = x(6 - x) metres at a horizontal distance of x metres from one end, for 0 ≤ x ≤ 6. A designer makes a second arch twice as wide and half as high, then mounts it on supports that raise every point of it by 1.5 m. (a) Write down the equation of the second arch in terms of f. [3] (b) Show that the second arch has equation y = (x(12 - x))/8 + 3/2. [2] (c) Determine the maximum height of the second arch and the horizontal distance at which it occurs. [3]8 marks
    Answer
    1. (a)
    2. twice as wide: horizontal stretch, scale factor 2, so f(x/2) (A1)
    3. half as high: vertical stretch, scale factor 1/2, so 1/2f(x/2) (A1)
    4. raised last: y = 1/2f(x/2) + 1.5 (A1)
    5. (b)
    6. 1/2 × x/2(6 - x/2) = 1/2 × x/2 × (12 - x)/2 (M1)
    7. = (x(12 - x))/8 (A1), so y = (x(12 - x))/8 + 3/2 AG
    8. (c)
    9. f has its maximum f(3) = 3 × 3 = 9 at x = 3 (M1)
    10. stretches: x = 2 × 3 = 6, height 1/2 × 9 = 4.5 (A1)
    11. raise: 4.5 + 1.5 = 6, so the maximum height is 6 m at 6 m from the end (A1). Check: (6 × 6)/8 + 1.5 = 6.

    Trap: Twice as wide needs f(x/2), not f(2x); and halving after raising, 1/2(f(x/2) + 1.5), gives 5.25 m.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
‘The graph moves 4 units up’. The markscheme does not accept ‘move’The transformation is a translation (or shift) of 4 units upwards, or the vector beginpmatrix0 4endpmatrix
‘The horizontal asymptote is -2’. The markscheme says: must see ‘y =’The horizontal asymptote is y = −2
(g ° f)(x) = f(g(x)), which misses the method markrecognition that (g ° f)(x) = g(f(x)), so (g ° f)(x) = f(x) + 4

Frequently asked questions

What does adding a number outside the brackets do to a graph?
It is a translation. For y = f(x) + b every point moves b units upwards if b > 0, which is the vector beginpmatrix 0 b endpmatrix. The change sits outside the brackets and acts on y, so it does what it says. Describe it as a translation with the vector or the direction.
Why does f(x - 3) move the graph to the right?
Inside the brackets the effect is the opposite of what the sign suggests. The translation y = f(x - a) is the vector beginpmatrix a 0 endpmatrix, so a units to the right if a > 0. Therefore y = f(x - 3) is a translation of 3 units to the right, while y = f(x) - 5 is a vertical translation.
How do reflections change the coordinates of a point on a graph?
y = -f(x) reflects the graph in the x-axis, so (x, y) becomes (x, -y). y = f(-x) reflects it in the y-axis, so (x, y) becomes (-x, y). For A(3, 5) on y = f(x), the image on y = -f(x) is (3, -5), and the image on y = f(-x) is (-3, 5).
How does a stretch change the coordinates of a maximum point?
y = pf(x) is a vertical stretch with scale factor p, so every y-coordinate is multiplied by p. y = f(qx) is a horizontal stretch with scale factor 1/q, so every x-coordinate is divided by q. For a maximum at (6, 4), y = 3f(x) gives (6, 12), and y = f(2x) gives (3, 4).
Does the order of transformations matter when sketching a graph?
Yes. Each transformation acts on the result of the last one. To sketch y = 3x² + 2 from y = x², apply the vertical stretch with scale factor 3 first, then the translation beginpmatrix 0 2 endpmatrix. Translating first gives 3(x² + 2) = 3x² + 6, a different graph. Work from the function outwards.
What mistake do students make when describing a transformation?
They write that the graph moves 4 units up. The markscheme does not accept move, so give a translation, or shift, of 4 units upwards, or the vector beginpmatrix 0 4 endpmatrix. For an asymptote, write y = -2, because the markscheme must see the y =.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters