Lantern Tutor Sign in

Maths · 3 Functions

3.6 Transforming graphs of functions

Before you start

  • Function notation, and that f(x) is the output for input x (3.3).
  • Writing a translation as a column vector (ab).
  • The standard graph shapes from 3.1.
Syllabus objectives covered (1)
  • Describe and identify transformations to a graph of y = f(x) when y = f(x) + k or y = f(x + k).

Part 1 of 3

Two transformations, one of them counter-intuitive

  1. Only two transformations are examined here, and both are translations — the graph slides without changing shape or size.
  2. **y=f(x)+k moves the graph UP by k.** This is the one that behaves as you would expect: add k to the output, and every point rises by k.
  3. As a column vector, the translation is (0k). A negative k moves it down.
  4. **y=f(x+k) moves the graph LEFT by k.** This is the one that catches everyone, because +k moves it in the negative x direction.
  5. As a column vector, (−k0). So y=f(x+3) is 3 to the left, and y=f(x−3) is 3 to the right.
  6. The rule worth remembering: inside the bracket does the opposite, outside the bracket does what you expect. Changes to x are inside; changes to y are outside.

Part 2 of 3

Why the horizontal one goes backwards

  1. This is worth understanding once rather than memorising forever, because a memorised rule with no reason behind it is exactly the thing that deserts you in an exam.
  2. Take a specific case. Suppose f has a maximum at x=5, and consider g(x)=f(x+3).
  3. Ask where g has its maximum. It happens when the thing inside the bracket equals 5 — because that is where f peaks.
  4. So you need x+3=5, which gives x=2.
    x+3=5⇒x=2
  5. The peak has moved from x=5 to x=2 — three units to the left. Adding inside the bracket shifted the graph backwards.
  6. The reason is that x+3 reaches any given value sooner than x does, so the graph gets there earlier along the axis.
  7. If you ever forget the direction, redo this one-line check with a point you can name. It takes fifteen seconds and it is always right.

Part 3 of 3

Describing and identifying

  1. Questions come in two directions: given the transformation, find the new function; or given the two graphs, describe the transformation.
  2. To describe a transformation, name it and give the vector. The full answer is 'a translation by (0−4)', not just 'it moves down 4'.
  3. Use the word translation, not 'shift', 'slide' or 'move'. It is the technical term and the mark scheme expects it.
  4. One transformation, one description. If you find yourself writing 'a translation and then another translation', combine them into a single vector.
  5. To find the new function, apply the rule to the expression. If f(x)=x2 then f(x)+3=x2+3, and f(x+3)=(x+3)2.
  6. Notice how different those two are. In the first, the 3 is added after the squaring; in the second, before. Brackets are everything here.
  7. The syllabus notes say **k will be an integer**, so you will never have to deal with fractional shifts.
  8. A quick way to check any answer: pick one point on the original graph, apply the translation to it, and confirm it satisfies the new equation.

Worked examples

Example 1. The graph of y=f(x) has a minimum at (2,−1). Write down the coordinates of the minimum of (i) y=f(x)+5, (ii) y=f(x−4).

Show the working
  1. (i) The +5 is outside the bracket, so it behaves as expected: the graph moves up 5.
  2. The x-coordinate is unchanged and the y-coordinate increases by 5, giving (2,4).
  3. (ii) The −4 is inside the bracket, so the movement is horizontal and in the opposite direction to the sign — the graph moves 4 to the right.
  4. Check it the reliable way: the minimum occurs when x−4=2, so x=6. The y-coordinate is unchanged.
  5. So the minimum is at (6,−1).

Answer: (i) (2,4) (ii) (6,−1).

Example 2. f(x)=x2. The graph of y=f(x) is mapped onto the graph of y=g(x) by a translation with vector (−30). Find g(x) in terms of x.

Show the working
  1. Read the vector: the first entry is horizontal and the second vertical. Here the graph moves 3 to the left and not at all vertically.
  2. A horizontal translation means the change goes inside the bracket, and because it is inside, the sign flips.
  3. Moving left by 3 therefore corresponds to f(x+3).
  4. Substitute into f.
    g(x)=f(x+3)=(x+3)2
  5. Check with a point. The vertex of y=x2 is at (0,0); moving 3 left gives (−3,0). And g(−3)=(−3+3)2=0. Correct.

Answer: g(x)=(x+3)2.

Example 3. The graph of y=sin⁡x is transformed to give the graph of y=sin⁡x−2. Describe the transformation fully, and state the new maximum and minimum values.

Show the working
  1. The −2 is outside the function, so this is a vertical translation, downwards by 2.
  2. Describe it properly: a translation by the vector (0−2).
  3. The original y=sin⁡x has a maximum of 1 and a minimum of −1.
  4. Every point moves down 2, so the new maximum is 1−2=−1 and the new minimum is −1−2=−3.
  5. Note the shape is unchanged — same amplitude, same period. A translation never stretches a graph.

Answer: A translation by (0−2). The new maximum is −1 and the new minimum is −3.

Where people go wrong

Mistake: Thinking y=f(x+3) moves the graph 3 to the right.

Instead: It moves 3 to the left.

Inside the bracket, the effect is opposite to the sign. Check it by asking what value of x makes the bracket equal a known point.

Mistake: Describing the transformation as a 'shift' or a 'move'.

Instead: Use the word translation, with a vector.

It is the technical term the mark scheme requires, and the vector carries the size and direction in one object.

Mistake: Changing both coordinates for a single translation.

Instead: f(x)+k changes only the y-coordinate; f(x+k) changes only the x-coordinate.

Each of these is a translation in one direction only, so the other coordinate is untouched.

Mistake: Writing f(x+3)=x2+3 when f(x)=x2.

Instead: It is (x+3)2 — the whole of x+3 gets squared.

The addition happens before the function acts, so it must sit inside the bracket.

Mistake: Assuming a translation changes the amplitude or period of a curve.

Instead: A translation slides the graph without altering its shape or size.

Only stretches change shape, and stretches are not in this subtopic.

Check yourself

  1. Describe the transformation that maps y=f(x) onto y=f(x)−6.
    AnswerA translation by (0−6), i.e. 6 units down.
  2. Describe the transformation that maps y=f(x) onto y=f(x−2).
    AnswerA translation by (20), i.e. 2 units to the right.
  3. f(x) has a zero at x=7. Where is the corresponding zero of y=f(x+4)?
    AnswerAt x=3, since x+4=7 gives x=3.
  4. f(x)=x3. Write down f(x)+2 and f(x+2).
    Answerf(x)+2=x3+2; f(x+2)=(x+2)3.
  5. Why does adding inside the bracket move a graph to the left?
    AnswerBecause x+k reaches any given value at a smaller x than x does, so the graph reaches each feature earlier along the axis.

Exam questions

Try each part first. Open the mark scheme after you have written your answer.

Question 1. The graph of y=f(x) passes through the points (0,3), (2,0) and (5,−4).

(a) Write down the coordinates of the images of these three points on the graph of y=f(x)+4. 2 marks No calculator

Mark scheme
  • B1 any two correct of (0, 7), (2, 4), (5, 0)
  • B1 all three correct

(b) Write down the coordinates of the image of (5,−4) on the graph of y=f(x+1). 1 mark No calculator

Mark scheme
  • B1 (4, -4)

(c) Describe fully the single transformation that maps y=f(x) onto y=f(x+1). 2 marks No calculator

Mark scheme
  • B1 translation
  • B1 by the vector (-1, 0), or 1 unit to the left

Question 2. f(x)=x2−4

(a) The graph of y=f(x) is mapped onto the graph of y=g(x) by a translation with vector (06). Find g(x) in its simplest form. 2 marks No calculator

Mark scheme
  • M1 g(x) = f(x) + 6 seen oe
  • A1 x² + 2

(b) The graph of y=f(x) is mapped onto the graph of y=h(x) by a translation with vector (−50). Find h(x). 2 marks No calculator

Mark scheme
  • M1 h(x) = f(x + 5) seen
  • A1 (x + 5)² - 4 oe

(c) Write down the vertex of y=h(x). 1 mark No calculator

Mark scheme
  • B1 (-5, -4); FT their (b)

Question 3. A student says: 'The graph of y=f(x+2) is the graph of y=f(x) moved 2 units to the right.'

(a) Comment on the student's statement. 1 mark No calculator

Mark scheme
  • B1 it is incorrect; the graph moves 2 units to the left

(b) Explain, using a point on the graph, why the statement is wrong. 2 marks No calculator

Mark scheme
  • B1 chooses a feature of f at a named value, e.g. a maximum at x = a
  • B1 shows the corresponding feature of f(x + 2) occurs at x = a - 2, which is to the left oe

Words to know

Translation
A transformation that slides a graph without changing its shape or size, described by a column vector.
y=f(x)+k
The graph of f translated by (0k) — vertically, in the direction of the sign.
y=f(x+k)
The graph of f translated by (−k0) — horizontally, opposite to the sign.
Image
The point or graph produced by applying a transformation.