Transforming graphs

If you know one graph, y = f(x), you can sketch a whole family of related graphs. Adding, multiplying or changing sign — outside the bracket or inside it — translates, stretches or reflects the original graph in predictable ways.

Key facts

  • y = f(x) + a: translate up by a, vector (0, a).
  • y = f(x + a): translate left by a, vector (−a, 0) — changes inside the bracket work the opposite way.
  • y = af(x): vertical stretch, scale factor a (multiply the y-coordinates).
  • y = f(ax): horizontal stretch, scale factor 1/a (divide the x-coordinates).
  • y = −f(x) reflects in the x-axis; y = f(−x) reflects in the y-axis.
  • Follow a key point: the turning point (2, −1) of f moves to (5, −1) on y = f(x − 3).

Worked examples

Example 1

Describe how to get from y = x² to y = (x − 3)² + 2, and give the new turning point.

  1. (x − 3) inside the bracket: move right 3.
  2. + 2 outside: move up 2. translation by the vector (3, 2)
  3. The turning point (0, 0) moves to (3, 2).

Answer: Translation by (3, 2); turning point (3, 2)

Example 2

(4, 6) is on y = f(x). Find the matching point on (a) y = 2f(x), (b) y = f(2x), (c) y = −f(x).

  1. (a) 2f(x): the y-coordinate doubles. (4, 12)
  2. (b) f(2x): the x-coordinate halves. (2, 6)
  3. (c) −f(x): the y-coordinate changes sign (a reflection in the x-axis). (4, −6)

Answer: (a) (4, 12) (b) (2, 6) (c) (4, −6)

Example 3

State the maximum value and the period of y = 3 sin(2x), with x in degrees.

  1. The 3 is a vertical stretch, scale factor 3. max = 3 × 1 = 3
  2. The 2x is a horizontal stretch, scale factor ½, so the period halves. 360° ÷ 2 = 180°

Answer: Maximum 3; period 180°

Example 4

Describe the transformation that maps y = x^2 onto y = x^2 + 5.

  1. Adding outside the function moves the graph up. f(x) + 5

Answer: A translation 5 units up

Example 5

Describe the transformation that maps y = x^2 onto y = (x + 2)^2.

  1. Adding inside the function moves the graph the opposite way: left. f(x + 2)

Answer: A translation 2 units to the left

Example 6

Describe the transformation that maps y = x^2 onto y = −x^2.

  1. A minus outside the function flips the graph upside down. −f(x)

Answer: A reflection in the x-axis