Algebra 2 Advanced transformationsshiftsstretches

Transformations of Functions

Shifts, stretches and reflections — and why horizontal ones feel backwards.

Video by Khan Academy — “Shifting functions introduction | Transformations of functions | Algebra 2 | Khan Academy” Watch on YouTube

The explanation

Key idea y = a·f(b(x − h)) + k: h and k shift, a and b stretch.

Every change to a function's equation moves its graph in a predictable way.

Outside the function (affecting outputs) behaves as you expect:

  • f(x) + k shifts up k
  • a·f(x) stretches vertically by a; a negative a flips it upside down

Inside the function (affecting inputs) behaves backwards:

  • f(x − h) shifts *right* h, not left
  • f(bx) squeezes horizontally by 1/b
  • f(−x) flips it left-right

Why backwards? Because f(x − 3) has to wait until x reaches 3 to do what f did at 0. The graph is delayed, so it moves right.

Order matters: stretch and reflect before shifting.

Worked example

Describe the transformations in g(x) = −2√(x + 3) − 1 and state the starting point.

  1. Inside: x + 3 = x − (−3), so shift 3 left.
  2. a = −2: vertical stretch by 2 and reflection across the x-axis.
  3. k = −1: shift down 1.
  4. Parent √x starts at (0,0), which maps to (−3, −1).

Answer: Left 3, stretched by 2, flipped vertically, down 1. Starting point (−3, −1).

Common mistakes

  • Reading f(x + 3) as a shift to the right.
  • Applying the vertical shift before the stretch, which misplaces the graph.