mastree

Transforming graphs

What this lesson covers

  • Adding outside moves a graph up or down.
  • Changing x inside the bracket moves it the opposite way.
  • A multiplier stretches, and a negative reflects.
Worked example

The four moves

  • Start from y = f(x).
New graphWhat happens
y = f(x) + aUp a
y = f(x − a)Right a
y = −f(x)Reflected in the x-axis
y = k f(x)Stretched vertically by k
Worked example

From y = x² to y = 2(x − 3)² + 1

  • Read the moves from the numbers.
  1. right 3x − 3
  2. stretched by 2the multiplier
  3. up 1the + 1
  4. vertex (3, 1)
  5. y-intercept = 2(9) + 1 = 19
Key idea

Try it: move the parabola

  • Change a, h and k in y = a(x − h)² + k and watch the vertex.
Key idea

Graphing calculator

Key idea

The moves together

  • The grey y = x² becomes the blue y = 2(x − 3)² + 1.
y equals x squared and y equals 2 times (x minus 3) squared plus 1, with vertex (3, 1).
Key idea

Try it: move every family

Common mistakes

  • Moving y = (x − 3)² left by 3.
    x − 3 moves it right by 3, because x has to be 3 to give zero.
  • Forgetting the stretch when finding the y-intercept.
    Substitute x = 0 into the whole equation.
Key idea

Try it: read the moves

Your turn

1

How does y = x² + 5 differ from y = x²?

2

How does y = (x + 2)² differ from y = x²?

3

How does y = −x² differ from y = x²?

4

How does y = 3x² differ from y = x²?

5

y = x² is moved right 4 and down 1. Which equation gives the new graph?

6

Find the vertex of y = −2(x + 1)² + 6.

7

Find the y-intercept of y = 3(x − 2)² − 4.

8

y = f(x) has a maximum point at (2, 5). Find the turning point of y = −f(x − 1) + 3.

Show answer

1. Up 5 2. Left 2 3. Reflected in the x-axis 4. Stretched vertically by 3 5. y = (x − 4)² − 1. Moving right 4 puts x − 4 inside the bracket, and down 1 is − 1 outside. 6. (−1, 6). x + 1 moves the graph left 1 and + 6 moves it up 6; the −2 stretches and flips but does not move the vertex. 7. 8. Substitute x = 0 into the whole equation: 3(−2)² − 4 = 12 − 4 = 8. 8. Minimum at (3, −2). Reflecting turns (2, 5) into a minimum at (2, −5), x − 1 moves it right 1 to x = 3, and + 3 lifts it to −5 + 3 = −2.

Your turn

Sample question: Achieved

The graph of y = x² is moved 3 to the left, stretched vertically by a factor of 2, then moved 5 down. Write its new equation and state its vertex.

Hint

Left 3 goes inside the bracket as + 3. The stretch multiplies the bracket. Down 5 goes on the end.

Answer

y = 2(x + 3)² − 5, vertex (−3, −5)

Step by step
  1. Moves inside the bracket act in reverse: to move left 3, write (x + 3).
  2. A vertical stretch by 2 multiplies the whole bracket: 2(x + 3)².
  3. Moving down 5 acts as written, outside: 2(x + 3)² − 5.
  4. The vertex of y = x² is (0, 0). Left 3 takes it to (−3, 0). The stretch leaves a point at height 0 where it is. Down 5 then gives (−3, −5).
  5. Classic mistake: writing (x − 3) for a move left. Inside the bracket, minus moves right.
  6. Check: x = −3 gives 2(0)² − 5 = −5, the lowest point.
Full working
  1. (x + 3)²left 3
  2. 2(x + 3)²stretch by 2
  3. 2(x + 3)² − 5down 5
  4. y = 2(x + 3)² − 5, vertex (−3, −5)
Your turn

Sample questions: Merit

1

The graph of y = 1x is moved 2 to the right and 3 up. Write its equation, state both asymptotes, and find both intercepts.

Hint

Right 2 goes inside as (x − 2); up 3 goes on the end. The asymptotes move with the graph.

Answer

y = 1x − 2 + 3; asymptotes x = 2 and y = 3; y-intercept 2.5; x-intercept 53

Step by step
  1. Right 2 acts inside, in reverse: 1x − 2. Up 3 acts outside: + 3.
  2. So y = 1x − 2 + 3.
  3. y = 1x has asymptotes x = 0 and y = 0. They move with the graph: right 2 gives x = 2, and up 3 gives y = 3.
  4. y-intercept: x = 0 gives 1−2 + 3 = 2.5.
  5. x-intercept: set y = 0. 1x − 2 = −3, so x − 2 = −13.
  6. x = 2 − 13 = 53.
  7. Classic mistake: taking the horizontal asymptote as y = 0. The graph moved up 3, so the asymptote did too.
  8. Check: x = 53 gives 1−13 + 3 = −3 + 3 = 0. Correct.
Full working
  1. y = 1x − 2 + 3right 2, up 3
  2. asymptotes x = 2, y = 3moved with the graph
  3. x = 0: y = −12 + 3 = 2.5
  4. y = 0: x − 2 = −13, so x = 53
  5. y = 1x − 2 + 3; asymptotes x = 2, y = 3; intercepts (0, 2.5) and (53, 0)
2

The graph of y = 2ˣ is reflected in the x-axis and then moved up 8. Write the new equation, and find its asymptote, its y-intercept and its x-intercept.

Hint

Reflecting in the x-axis puts a minus in front of 2ˣ. Then add 8.

Answer

y = 8 − 2ˣ; asymptote y = 8; y-intercept 7; x-intercept 3

Step by step
  1. Reflecting in the x-axis makes every y value negative: y = −2ˣ.
  2. Moving up 8 adds 8 on the outside: y = −2ˣ + 8, or y = 8 − 2ˣ.
  3. y = 2ˣ has asymptote y = 0. Reflecting keeps it at y = 0, and moving up 8 takes it to y = 8.
  4. y-intercept: x = 0 gives 8 − 1 = 7.
  5. x-intercept: 8 − 2ˣ = 0, so 2ˣ = 8 = 2³ and x = 3.
  6. The graph now sits below its asymptote and falls steeply as x grows.
  7. Classic mistake: writing y = 2⁻ˣ + 8. A minus in the power reflects in the y-axis, not the x-axis.
  8. Check: x = 3 gives 8 − 8 = 0. Correct.
Full working
  1. y = −2ˣreflect in the x-axis
  2. y = 8 − 2ˣup 8
  3. asymptote y = 8
  4. x = 0: y = 7; y = 0: 2ˣ = 8, x = 3
  5. y = 8 − 2ˣ; asymptote y = 8; intercepts (0, 7) and (3, 0)
Your turn

Sample questions: Excellence

1

Describe the transformations that take y = x² to y = x² − 6x + 11. The graph of y = x² − 6x + 11 is then reflected in the x-axis and moved 4 up. Find the new equation and its exact roots.

Hint

Complete the square to see the moves. Reflecting in the x-axis puts a minus in front of the whole expression.

Answer

y = (x − 3)² + 2, so right 3 and up 2; the new graph is y = 2 − (x − 3)², with roots x = 3 ± √2

Step by step
  1. To read moves, write the quadratic in vertex form by completing the square.
  2. x² − 6x + 11: half of −6 is −3, so use (x − 3)² = x² − 6x + 9. Then x² − 6x + 11 = (x − 3)² + 2.
  3. So from y = x² the graph moves right 3 and up 2. Its vertex is (3, 2).
  4. Reflect in the x-axis: every y value changes sign, so y = −(x − 3)² − 2. The vertex goes to (3, −2).
  5. Move up 4: y = −(x − 3)² − 2 + 4 = 2 − (x − 3)². The vertex is now (3, 2), a maximum.
  6. Roots: 2 − (x − 3)² = 0, so (x − 3)² = 2.
  7. x − 3 = ±√2, so x = 3 + √2 or x = 3 − √2.
  8. Classic mistake: reflecting only the squared part, giving −(x − 3)² + 2 before moving up. The + 2 must change sign too.
  9. Order matters: moving up first and then reflecting gives a different graph, y = −(x − 3)² − 6, with no roots.
  10. Check: x = 3 + √2 gives 2 − 2 = 0. Correct.
Full working
  1. x² − 6x + 11 = (x − 3)² + 2complete the square
  2. right 3, up 2from y = x²
  3. y = −(x − 3)² − 2reflect in the x-axis
  4. y = 2 − (x − 3)²up 4
  5. (x − 3)² = 2, so x = 3 ± √2
  6. right 3, up 2; then y = 2 − (x − 3)², roots 3 ± √2
2

Start with y = 2ˣ. Graph A: move it up 4, then reflect in the x-axis. Graph B: reflect it in the x-axis, then move it up 4. Find both equations and asymptotes, explain why they differ, and show that only one of them has an x-intercept.

Hint

Do the moves one at a time, in the order given. A reflection in the x-axis changes the sign of everything already there.

Answer

A: y = −2ˣ − 4, asymptote y = −4, no x-intercept because y < −4 always. B: y = 4 − 2ˣ, asymptote y = 4, x-intercept 2. They differ because the reflection also flips the earlier shift.

Step by step
  1. Graph A, step 1: up 4 gives y = 2ˣ + 4, with asymptote y = 4.
  2. Graph A, step 2: reflecting in the x-axis changes the sign of all of it: y = −(2ˣ + 4) = −2ˣ − 4. The asymptote flips to y = −4.
  3. Graph B, step 1: reflecting gives y = −2ˣ, with asymptote y = 0.
  4. Graph B, step 2: up 4 gives y = 4 − 2ˣ, with asymptote y = 4.
  5. Why they differ: in A the reflection acts on the shift too, so the 4 becomes −4. In B the shift comes after, so it stays +4.
  6. x-intercept of A: −2ˣ − 4 = 0 needs 2ˣ = −4. But 2ˣ is always positive, so there is no solution.
  7. In fact y = −2ˣ − 4 is always less than −4, so A never reaches the x-axis.
  8. x-intercept of B: 4 − 2ˣ = 0, so 2ˣ = 4 = 2² and x = 2.
  9. Classic mistake: assuming the order of moves never matters. It does matter whenever a reflection or stretch follows a shift.
  10. Check: B at x = 2 gives 4 − 4 = 0, and A at x = 0 gives −1 − 4 = −5, below −4 as expected.
Full working
  1. A: y = 2ˣ + 4, then y = −(2ˣ + 4) = −2ˣ − 4asymptote y = −4
  2. B: y = −2ˣ, then y = 4 − 2ˣasymptote y = 4
  3. A: 2ˣ = −4 has no solution2ˣ > 0
  4. B: 2ˣ = 4, so x = 2
  5. A: y = −2ˣ − 4, no x-intercept; B: y = 4 − 2ˣ, x-intercept 2
Summary

What to take away

  • Outside the bracket acts as written.
  • Inside the bracket acts in reverse.

Challenge

1

The graph of y = 1x is stretched vertically by a factor of 6, then moved 1 to the left and 2 down. Write its equation and find its asymptotes and both intercepts. The new graph does not pass through the origin. Find the single left or right move that would make it pass through the origin, and also the single up or down move that would.

Hint

A left or right move slides the x-intercept along the x-axis. An up or down move slides the y-intercept along the y-axis.

Answer

y = 6x + 1 − 2; asymptotes x = −1 and y = −2; intercepts (0, 4) and (2, 0); move it 2 left, giving y = 6x + 3 − 2, or 4 down, giving y = 6x + 1 − 6

Step by step
  1. Stretch by 6: y = 6x. Left 1 goes inside as x + 1, and down 2 goes on the end: y = 6x + 1 − 2.
  2. The asymptotes of y = 1x are x = 0 and y = 0. They move with the graph to x = −1 and y = −2.
  3. y-intercept: x = 0 gives 6 − 2 = 4. x-intercept: 6x + 1 = 2, so x + 1 = 3 and x = 2.
  4. A sideways move keeps the graph at the same heights, so the point (2, 0) must slide to (0, 0). That is 2 to the left: y = 6x + 3 − 2.
  5. An up or down move keeps the same x values, so the point (0, 4) must slide to (0, 0). That is 4 down: y = 6x + 1 − 6.
  6. Check: 63 − 2 = 0 and 61 − 6 = 0. Both pass through the origin.
Full working
  1. y = 6x + 1 − 2stretch 6, left 1, down 2
  2. asymptotes x = −1, y = −2moved with the graph
  3. x = 0: y = 4; y = 0: x + 1 = 3, x = 2intercepts
  4. (2, 0) → (0, 0): left 2, y = 6x + 3 − 2sideways move
  5. (0, 4) → (0, 0): down 4, y = 6x + 1 − 6vertical move
  6. y = 6x + 1 − 2; 2 left or 4 down puts it through the origin
2

A parabola y = f(x) is moved 3 to the right, then stretched vertically by a factor of 2, then reflected in the x-axis, then moved 5 up. The final graph is y = −2x² + 16x − 25. Find the equation of the original parabola, and its vertex.

Hint

Undo the moves in reverse order: take away 5, then reflect, then divide by 2, then move 3 to the left.

Answer

f(x) = x² − 2x, with vertex (1, −1)

Step by step
  1. Working forwards, the final graph is y = −2f(x − 3) + 5. So −2f(x − 3) + 5 = −2x² + 16x − 25.
  2. Undo the last two moves: −2f(x − 3) = −2x² + 16x − 30, so f(x − 3) = x² − 8x + 15 = (x − 3)(x − 5).
  3. Undo the move right by putting x + 3 in place of x: f(x) = x(x − 2) = x² − 2x.
  4. Its roots are 0 and 2, so its vertex is at x = 1, with y = 1 − 2 = −1.
  5. Check forwards: right 3 gives roots 3 and 5 and the expression x² − 8x + 15; stretch, reflect and up 5 give −2x² + 16x − 30 + 5 = −2x² + 16x − 25. Correct.
  6. The vertex follows the same path: (1, −1) → (4, −1) → (4, −2) → (4, 2) → (4, 7), and the final graph does have its vertex at (4, 7).
Full working
  1. −2f(x − 3) + 5 = −2x² + 16x − 25the four moves
  2. f(x − 3) = x² − 8x + 15 = (x − 3)(x − 5)take 5, divide by −2
  3. f(x) = x(x − 2)replace x with x + 3
  4. vertex at x = 1, y = −1halfway between roots 0 and 2
  5. (1, −1) → (4, 7)check the vertex forwards
  6. f(x) = x² − 2x, vertex (1, −1)
3

Reflecting in the horizontal line y = m sends every point (x, y) to (x, 2m − y). Show that this is the same as two moves from this lesson done one after the other. The parabola y = x² − 2x + 3 is reflected in a horizontal line, and the new graph passes through (3, 16). Find the line, the new equation, and the points where the two graphs meet.

Hint

Reflecting in the x-axis sends y to −y. What move then turns −y into 2m − y? For the meeting points, set the two heights equal and see what the original height must be.

Answer

Reflect in the x-axis, then move up 2m. The line is y = 11, the new graph is y = 20 − (x − 1)² = −x² + 2x + 19, and the graphs meet at (−2, 11) and (4, 11)

Step by step
  1. Reflecting in the x-axis takes (x, y) to (x, −y). Moving up 2m then takes it to (x, 2m − y). That is the reflection in y = m.
  2. So the new graph is y = 2m − (x² − 2x + 3).
  3. It passes through (3, 16): 16 = 2m − (9 − 6 + 3) = 2m − 6, so m = 11.
  4. New equation: y = 22 − (x² − 2x + 3) = −x² + 2x + 19. In vertex form the original is (x − 1)² + 2 and the new one is 20 − (x − 1)².
  5. At a meeting point both heights are equal: x² − 2x + 3 = 22 − (x² − 2x + 3), so x² − 2x + 3 = 11. The graphs meet on the mirror line: (x − 1)² + 2 = 11, so (x − 1)² = 9 and x = −2 or x = 4.
  6. Check: x = 4 gives 16 − 8 + 3 = 11 on the original and −16 + 8 + 19 = 11 on the new graph. Correct.
Full working
  1. (x, y) → (x, −y) → (x, 2m − y)reflect in x-axis, then up 2m
  2. y = 2m − (x² − 2x + 3)new graph
  3. 16 = 2m − 6, so m = 11through (3, 16)
  4. y = −x² + 2x + 19 = 20 − (x − 1)²new equation
  5. (x − 1)² + 2 = 11, so x = −2 or x = 4meet on the mirror line
  6. line y = 11; y = −x² + 2x + 19; meeting points (−2, 11) and (4, 11)

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91257