Knaph

Piecewise Functions and Moving Graphs41 of 1002 min read

Shifting Graphs

Leo draws y=∣x∣y = |x|, then slides the whole V 3 steps to the right. Its new rule is y=∣x−3∣y = |x - 3|, with a minus, though the graph moved in the plus direction. Why?

Up and down: add outside

Adding to the output moves the graph up. The graph of y=f(x)+ky = f(x) + k is the graph of y=f(x)y = f(x) moved up kk units, or down if kk is negative. Every output is kk bigger, so every point rises kk.

For y=∣x∣+2y = |x| + 2, the vertex moves from (0,0)(0, 0) to (0,2)(0, 2).

Left and right: the minus surprise

The graph of y=f(x−h)y = f(x - h) is the graph of y=f(x)y = f(x) moved hh units to the right. The new graph needs an input hh bigger to give the same output as before.

Check with y=∣x−3∣y = |x - 3|. The old graph had output 0 at x=0x = 0. The new one has output 0 when x−3=0x - 3 = 0, that is at x=3x = 3. So the V moved 3 to the right.

A chain of boxes: input x, then subtract 3, then take the absolute value. Input 3 gives 0 then 0. Input 5 gives 2 then 2. Input 1 gives minus 2 then 2. The output 0 now comes from the input 3 instead of 0.

Both together

The graph of y=∣x−h∣+ky = |x - h| + k has its vertex at (h,k)(h, k). For y=∣x+2∣−1y = |x + 2| - 1, write x+2=x−(−2)x + 2 = x - (-2), so h=−2h = -2 and the vertex is (−2,−1)(-2, -1).

To write a rule, read the vertex. A V with vertex (4,1)(4, 1) is y=∣x−4∣+1y = |x - 4| + 1. Your turn: vertex (−3,5)(-3, 5). Answer: y=∣x+3∣+5y = |x + 3| + 5.

Three V graphs on one grid. The grey V, y equals the absolute value of x, has its vertex at (0, 0). The orange V, y equals |x| plus 2, has its vertex at (0, 2). The blue V, y equals |x minus 3|, has its vertex at (3, 0).

Careful

Inside the function the direction is backwards: y=f(x+2)y = f(x + 2) moves left 2, and y=f(x−2)y = f(x - 2) moves right 2.

Try it at home

  1. Draw y=∣x∣y = |x| on a grid, or use a table of values.
  2. Move it to the vertex (2,−3)(2, -3) by shifting every point, and write its rule.
  3. Check by putting the vertex's x-value into your rule.

Words in this lesson

  • transformation - a change to a graph, such as moving or flipping it, that follows from a change to its rule.
  • shift - to move a whole graph up, down, left or right without turning it.

Big idea

Adding outside moves a graph up, and subtracting inside moves it right. The rule y=∣x−h∣+ky = |x - h| + k puts the vertex at (h,k)(h, k).

Test your understanding

Sign in to test your understanding of this lesson and track your progress.