Skip to content
IB Diploma ProgrammeSL & HL

Transformations of graphs

Mathematics: Applications and Interpretation 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.

~13 min read

1. Translations

A translation slides the whole graph without turning or resizing it. Adding b to the output moves the graph up by b: y = f(x) + b.

Replacing x by x - a moves the graph a units to the right: y = f(x - a). The sign inside the brackets is the opposite of the direction the graph moves.

A translation by the vector beginpmatrix3 -2endpmatrix is a horizontal translation of 3 units to the right and a vertical translation of 2 units down. Every point (x,y) moves to (x + 3, y - 2).

y = f(x) + b

y = f(x - a)

beginpmatrix3 -2endpmatrix: y = f(x - 3) - 2

Worked example 14 marks

The graph of y = f(x) passes through the point (2, 5). The graph is translated by the vector beginpmatrix3 -2endpmatrix to give the graph of y = g(x).

(a) Write down g(x) in terms of f(x).

(b) Write down the coordinates of the image of (2, 5) on the graph of g.

  1. 1

    A1:(a) a horizontal translation of 3 to the right: f(x - 3) [1]

  2. 2

    A1: a vertical translation of 2 down: g(x) = f(x - 3) - 2 [1]

  3. 3

    M1:(b) add 3 to the x coordinate and subtract 2 from the y coordinate: (2 + 3, 5 - 2) [1]

  4. 4

    A1: the image is (5, 3) [1]

2. Reflections

A reflection in the x axis turns the graph upside down: y = -f(x). Every y coordinate changes sign and every x coordinate stays the same.

A reflection in the y axis turns the graph left to right: y = f(-x). Every x coordinate changes sign and every y coordinate stays the same.

The minus sign multiplies the whole output in -f(x), but sits inside the brackets in f(-x). That position decides which axis is the mirror.

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

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

Worked example 14 marks

The point A(2, 6) lies on the graph of y = f(x). For each of the following transformations, state the transformation and write down the coordinates of the image of A.

(a) y = -f(x)

(b) y = f(-x)

  1. 1

    A1:(a) a reflection in the x axis [1]

  2. 2

    A1: A maps to (2, -6) [1]

  3. 3

    A1:(b) a reflection in the y axis [1]

  4. 4

    A1: A maps to (-2, 6) [1]

3. Vertical stretches

A vertical stretch with scale factor p multiplies every y coordinate by p: y = pf(x). The graph gets taller when p > 1 and flatter when 0 < p < 1.

The x coordinates do not change. A point on the x axis does not move: the x axis is invariant.

On the GDC, plot f(x) and pf(x) together. Each height on the second graph is p times the height on the first.

y = pf(x): (x, y) → (x, py)

Worked example 12 marks

The point (6, 8) lies on the graph of y = f(x). Find the coordinates of the image of (6, 8) on the graph of

(a) y = 3f(x)

(b) y = 1/2f(x).

  1. 1

    A1:(a) a vertical stretch multiplies y by 3: (6, 24) [1]

  2. 2

    A1:(b) a vertical stretch with scale factor 1/2 halves y: (6, 4) [1]

4. Horizontal stretches

A horizontal stretch with scale factor 1/q divides every x coordinate by q: y = f(qx). The graph gets narrower when q > 1.

The scale factor is the reciprocal of the number multiplying x. The y coordinates do not change, so a point on the y axis does not move: the y axis is invariant.

To find where a point goes, solve qx equal to the old x coordinate.

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

Worked example 14 marks

The point (6, 8) lies on the graph of y = f(x). Find the coordinates of the image of (6, 8) on the graph of

(a) y = f(2x)

(b) y = f(x/3).

State the scale factor of each stretch.

  1. 1

    A1:(a) f(2x) is a horizontal stretch with scale factor 1/2 [1]

  2. 2

    A1: 2x = 6, so x = 3: the image is (3, 8) [1]

  3. 3

    A1:(b) f(x/3) is a horizontal stretch with scale factor 3 [1]

  4. 4

    A1: x/3 = 6, so x = 18: the image is (18, 8) [1]

5. Composite transformations and order

A composite transformation is two or more transformations one after the other. The order matters.

Stretch first, then translate, as in y = 3f(x) + 2. Stretching f(x) + 2 instead gives 3f(x) + 6, which is a different graph.

Example: y = x² gives y = 3x² + 2 by a vertical stretch of scale factor 3 followed by a translation of (0, 2). To find where a point goes, apply the changes to the point in the same order.

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

3f(x) + 2 ≠ 3(f(x) + 2)

Worked example 12 marks

Point A is on the curve of f(x) and has coordinates (6, 5). The function g(x) is defined as g(x) = -f(3x) + 4.

Write down the coordinates of the point on the curve of g(x) that corresponds to point A on the curve of f(x).

  1. 1

    M1: find the corresponding value for x: 3x = 6, so x = 2 [1]

  2. 2

    A1: g(2) = -f(6) + 4 = -5 + 4 = -1, so the point is (2, -1) [1]

6. Transformations in models

Transformations are also used in the context of modelling real-life situations. A model is often a transformation of a standard graph such as y = sin x.

Example: y = sin x gives y = 4sin 2x by a vertical stretch of scale factor 4 and a horizontal stretch of scale factor 1/2.

On the GDC, plot the standard graph and the model together to check the description. Set the angle mode to radians when x is in radians.

y = sin x → y = 4sin 2x

Worked example 14 marks

The graph of y = sin x is transformed to the graph of y = 4sin 2x.

(a) Describe fully the two stretches that transform y = sin x to y = 4sin 2x.

(b) The point (π/2, 1) lies on y = sin x. Find the coordinates of the corresponding point on y = 4sin 2x.

  1. 1

    A1:(a) vertical stretch with scale factor 4 [1]

  2. 2

    A1: horizontal stretch with scale factor 1/2 [1]

  3. 3

    M1:(b) divide the x coordinate by 2 and multiply the y coordinate by 4 [1]

  4. 4

    A1: (π/4, 4) [1]

Recap

  • Translation: y = f(x) + b moves the graph up by b; y = f(x - a) moves it a units to the right.
  • Translation by the vector (3, -2): 3 units right and 2 units down.
  • Reflection in the x axis: y = -f(x). Reflection in the y axis: y = f(-x).
  • Vertical stretch with scale factor p: y = pf(x).
  • Horizontal stretch with scale factor 1/q: y = f(qx). The x and y axes are invariant.
  • Composite transformations: the order matters. y = 3f(x) + 2 is a stretch of scale factor 3 followed by a translation of (0, 2).
  • y = 4sin 2x comes from y = sin x by a vertical stretch of scale factor 4 and a horizontal stretch of scale factor 1/2.

End-of-chapter exercise

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

  1. Do not use a calculator. The graph of y = f(x) is translated by the vector beginpmatrix3 -2endpmatrix. State the equation of the image.1 mark
    Answer
    1. y = f(x - 3) - 2.

    Trap: Writing f(x + 3): a shift of 3 to the right needs x - 3 inside the brackets.

  2. Do not use a calculator. State the transformation that maps the graph of y = f(x) onto the graph of y = -f(x).1 mark
    Answer
    1. A reflection in the x axis.

    Trap: The minus sign is outside f, so it changes y. A reflection in the y axis is y = f(-x).

  3. Do not use a calculator. The point P(4, 6) lies on the graph of y = f(x). Write down the coordinates of the image of P on the graph of y = f(2x).2 marks
    Answer
    1. Solve 2x = 4, so x = 2.
    2. The image is (2, 6).

    Trap: Doubling the x coordinate to (8, 6): the scale factor is 1/2, so x is halved.

  4. Describe fully the single transformation that maps the graph of y = f(x) onto the graph of y = f(x + 5).2 marks
    Answer
    1. A translation (A1).
    2. By the vector beginpmatrix-5 0endpmatrix, which is 5 units to the left (A1).

    Trap: Saying the graph moves to the right because of the plus sign. f(x + 5) moves the graph left.

  5. Do not use a calculator. The point (-2, 5) lies on the graph of y = f(x). Find the coordinates of the corresponding point on the graph of (a) y = f(-x) (b) y = 2f(x) - 3.3 marks
    Answer
    1. (a)
    2. Solve -x = -2, so x = 2. The point is (2, 5).
    3. (b)
    4. The x coordinate stays -2. y = 2 × 5 - 3 = 7, so the point is (-2, 7).

    Trap: In (b), subtracting 3 before doubling gives 2(5 - 3) = 4. Stretch first, then translate.

  6. Do not use a calculator. Describe the sequence of two transformations that maps the graph of y = x² onto the graph of y = 3x² + 2. Explain why the order matters.3 marks
    Answer
    1. A vertical stretch with scale factor 3 (A1), followed by a translation of beginpmatrix0 2endpmatrix (A1).
    2. Translating first gives y = x² + 2, and stretching that gives 3(x² + 2) = 3x² + 6, which is a different graph (R1).

    Trap: Translating by (0, 2) first and stretching second gives y = 3x² + 6.

  7. Do not use a calculator. The graph of y = x² is translated by the vector beginpmatrix2 -3endpmatrix and then reflected in the x axis. Find the equation of the final graph.3 marks
    Answer
    1. After the translation: y = (x - 2)² - 3.
    2. The reflection changes the sign of the whole output: y = -((x - 2)² - 3).
    3. y = -(x - 2)² + 3.

    Trap: Reflecting first gives y = -x², then the translation gives y = -(x - 2)² - 3. The constant has the wrong sign.

  8. The depth of water in a harbour is modelled by D(t) = 4 + 2sin(0.5t), where D is in metres and t is the time in hours. The graph of D is obtained from the graph of y = sin t by three transformations. (a) Describe each transformation fully. (b) Write down the greatest depth of water.4 marks
    Answer
    1. (a)
    2. A vertical stretch with scale factor 2.
    3. A horizontal stretch with scale factor 1/0.5 = 2.
    4. A translation of beginpmatrix0 4endpmatrix.
    5. (b)
    6. The greatest value of sin(0.5t) is 1, so the greatest depth is 4 + 2 = 6 metres.

    Trap: Writing the horizontal scale factor as 0.5. The factor is the reciprocal of the number multiplying t, which is 2.

  9. In a design drawing, the curve y = f(x) of a valley floor has its lowest point at (2, -3), with distances in metres. The curve of an arch is given by g(x) = -2f(x - 1) + 5. (a) Find the coordinates of the point on the curve of g that corresponds to (2, -3). (b) State whether this point is the highest or the lowest point of the arch. Justify your answer.5 marks
    Answer
    1. (a)
    2. Solve x - 1 = 2, so x = 3 (M1).
    3. g(3) = -2 × (-3) + 5 = 11 (M1).
    4. The point is (3, 11) (A1).
    5. (b)
    6. It is the highest point of the arch (A1), because the factor -2 includes a reflection in the x axis, which turns a lowest point into a highest point (R1).

    Trap: Solving x - 1 = 2 as x = 1, or adding 5 before multiplying by -2 to get -2(-3 + 5) = -4.

  10. The temperature, T °C, in a city t hours after midnight is modelled by a function whose graph is obtained from the graph of y = sin t by a horizontal stretch with scale factor 12/π, then a vertical stretch with scale factor 5, then a translation by the vector beginpmatrix0 18endpmatrix. (a) Find an expression for T(t). (b) A student applies the translation before the vertical stretch. Find the student's model and the greatest temperature it predicts. (c) Determine the greatest temperature given by the correct model and the first time after midnight at which it occurs.9 marks
    Answer
    1. (a)
    2. A horizontal stretch with scale factor 12/π replaces t with π/12t: y = sin((π t)/12) (A1).
    3. The vertical stretch: y = 5sin((π t)/12) (A1).
    4. The translation: T(t) = 5sin((π t)/12) + 18 (A1).
    5. (b)
    6. Translating first: y = sin((π t)/12) + 18 (M1).
    7. Stretching that: y = 5(sin((π t)/12) + 18) = 5sin((π t)/12) + 90 (A1).
    8. Its greatest value is 5 + 90 = 95 °C (A1), which is not a sensible temperature.
    9. (c)
    10. The greatest value of the sine is 1, so the greatest temperature is 5 + 18 = 23 °C (A1).
    11. (π t)/12 = π/2 (M1), so t = 6: 6 hours after midnight (A1).

    Trap: Applying the translation before the vertical stretch, which gives 5sin((π t)/12) + 90 and an impossible 95 °C.

Say this, not that

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

Loses the markGets the mark
f(x - 3) translates the graph 3 units to the leftf(x - 3) is a translation of 3 units to the right, vector beginpmatrix3 0endpmatrix
y = f(2x) is a horizontal stretch with scale factor 2y = f(2x) is a horizontal stretch with scale factor 1/2
y = -f(x) is a reflection in the y axisy = -f(x) is a reflection in the x axis; y = f(-x) is the reflection in the y axis
y = 3x² + 2: translate (0, 2), then stretch by 3vertical stretch of scale factor 3 followed by a translation of (0, 2)

Frequently asked questions

How do you translate the graph of a function?
Adding b to the output moves the graph up by b: y = f(x) + b. Replacing x by x - a moves the graph a units to the right: y = f(x - a). The sign inside the brackets is the opposite of the direction the graph moves. A translation by beginpmatrix3 -2endpmatrix gives y = f(x - 3) - 2.
What is the difference between y = -f(x) and y = f(-x)?
y = -f(x) is a reflection in the x axis, so every y coordinate changes sign. y = f(-x) is a reflection in the y axis, so every x coordinate changes sign. For the point (2, 6), -f(x) maps it to (2, -6), and f(-x) maps it to (-2, 6).
How do you stretch the graph of a function vertically or horizontally?
A vertical stretch with scale factor p is y = pf(x), which multiplies every y coordinate by p. A horizontal stretch is y = f(qx), which divides every x coordinate by q, so its scale factor is 1/q. For the point (6, 8) on y = f(x), y = f(2x) gives (3, 8) and y = 3f(x) gives (6, 24).
Why does the order of transformations matter?
A composite transformation depends on the order of its steps. y = 3f(x) + 2 is a vertical stretch of scale factor 3 followed by a translation of (0, 2). Stretching f(x) + 2 instead gives 3f(x) + 6, which is a different graph. The same applies to y = -f(3x) + 4, where the point (6, 5) corresponds to (2, -1).
How do I describe the transformation from y = sin x to y = 4sin 2x?
It is a vertical stretch with scale factor 4 and a horizontal stretch with scale factor 1/2. The point (π/2, 1) on y = sin x maps to (π/4, 4) on y = 4sin 2x, since the x coordinate is divided by 2 and the y coordinate is multiplied by 4.
What is a common error with stretches and reflections?
A horizontal stretch y = f(2x) has scale factor 1/2, not 2. Also y = -f(x) is a reflection in the x axis, not the y axis. And f(x - 3) moves the graph 3 units to the right, not to the left, because the sign inside the brackets is opposite to the direction of movement.

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