← High school courses

High school Algebra II

Function Transformations Explained: Shifts, Stretches and Reflections

You can build many graphs by starting with a basic one and changing it. Each change to the equation has a predictable effect on the graph, and once you know the pattern you can sketch a new function in seconds.

Outside changes move things vertically

A change made outside the function, to the output, does what you would expect. In g(x) = f(x) + k, every point moves up k units, or down if k is negative.

In g(x) = a × f(x), the graph is stretched vertically by a factor of a when a > 1 and squished when 0 < a < 1. If a is negative, the graph also flips over the x-axis. So g(x) = −f(x) is a reflection over the x-axis.

Inside changes move things horizontally, and backward

A change inside the parentheses, to the input, does the opposite of what you might guess. In g(x) = f(x − h), the graph shifts right h units. In g(x) = f(x + h), it shifts left. Think about it: the new function needs x − h to equal the old input, so x must be h larger.

In g(x) = f(bx), the graph is compressed horizontally by a factor of 1/b. So f(2x) is half as wide, and f(x/2) is twice as wide. Also g(x) = f(−x) reflects the graph over the y-axis.

Reading a transformed equation

Take y = a × f(x − h) + k. The point (h, k) is where the original starting point (0, 0) ends up, and a controls the vertical stretch and flip. For the parabola y = a(x − h)² + k, the vertex is at (h, k).

When several changes combine, a safe plan is to do the inside changes first, then stretches and reflections, then shifts.

Worked examples

Example 1

Describe how g(x) = 2(x + 1)² − 4 compares to f(x) = x².

  1. The x + 1 inside means a shift left 1 unit.
  2. The 2 in front stretches the graph vertically by a factor of 2, so it is narrower.
  3. The −4 outside shifts the graph down 4 units.
  4. The vertex moves from (0, 0) to (−1, −4).

Answer: Left 1, vertical stretch by 2, down 4; the vertex is (−1, −4).

Example 2

The point (4, 6) is on the graph of f. Find the matching point on g(x) = f(x − 2) + 3.

  1. The inside change x − 2 shifts the graph right 2, so the x-coordinate becomes 4 + 2 = 6.
  2. The outside + 3 shifts the graph up 3, so the y-coordinate becomes 6 + 3 = 9.

Answer: The point is (6, 9).

Example 3

The point (8, 4) is on the graph of f. Find the matching point on g(x) = f(x/2).

  1. Inside, we have x/2, which is a horizontal stretch by a factor of 2.
  2. Multiply the x-coordinate by 2: 8 × 2 = 16. The y-coordinate stays 4.

Answer: The point is (16, 4).

Common mistakes

Check yourself

  1. Where is the vertex of g(x) = |x + 5| − 2?
    Show the answerShift left 5 and down 2, so the vertex is (−5, −2).
  2. The point (6, −3) is on the graph of f. What is the matching point on g(x) = −f(x) + 1?
    Show the answerThe y-value becomes −(−3) + 1 = 4, so the point is (6, 4).
  3. How does the graph of f(−x) differ from the graph of f(x)?
    Show the answerIt is a reflection over the y-axis.

Practice it

Try ten free Algebra II practice questions, each with a hint and an explanation. No account needed.

Practice Algebra II free →

Written by passvana for high school Algebra II students. passvana is independent and not affiliated with any school, district or test publisher.