Knaph

Piecewise Functions and Moving Graphs42 of 1002 min read

Stretching and Reflecting Graphs

Nina draws y=∣x∣y = |x|, y=3∣x∣y = 3|x| and y=y = \dfrac∣x∣|x|. They are three different Vs from one family. What does a number in front do, and what does a minus do?

Multiply the output

The graph of y=af(x)y = a f(x) has every output multiplied by aa. At x=2x = 2, ∣x∣|x| gives 2, 3∣x∣3|x| gives 6 and $$\dfrac∣x∣|x| gives 1. The vertex stays put because 0 times anything is 0.

When a>1a > 1 the graph is steeper: it is stretched away from the x-axis. When 0<a<10 \lt a \lt 1 it is flatter.

Three V graphs with their vertex at (0, 0). The steepest, y equals 3|x|, passes through (2, 6). The middle one, y equals |x|, passes through (2, 2). The flattest, y equals one half |x|, passes through (2, 1).

Flips

The graph of y=−f(x)y = -f(x) changes the sign of every output, so it is a reflection over the x-axis. The graph of y=f(−x)y = f(-x) changes the sign of every input, so it is a reflection over the y-axis.

Take f(x)=x+1f(x) = x + 1. Then −f(x)=−x−1-f(x) = -x - 1 and f(−x)=−x+1f(-x) = -x + 1. For ∣x∣|x| the second flip changes nothing, because ∣−x∣=∣x∣|-x| = |x|.

Three lines on one grid. The blue line y equals x plus 1 crosses the y-axis at 1. The orange line y equals minus x minus 1 is its reflection over the x-axis. The green line y equals minus x plus 1 is its reflection over the y-axis.

All at once

Read y=a∣x−h∣+ky = a|x - h| + k in parts. The vertex is (h,k)(h, k). The number aa tells the steepness, and a negative aa makes the V open downward.

Example: y=−2∣x−1∣+3y = -2|x - 1| + 3 has vertex (1,3)(1, 3), opens down and is steeper. Stretch or flip first, then shift. So y=2∣x∣+3y = 2|x| + 3 is 2∣x∣2|x| moved up 3, not 2(∣x∣+3)2(|x| + 3), which is up 6. Your turn: y=y = \dfrac∣x+2∣−1|x + 2| - 1. Answer: vertex (−2,−1)(-2, -1), opens up, flatter.

Careful

A minus inside, f(−x)f(-x), flips left and right, but a minus outside, −f(x)-f(x), flips up and down.

Try it at home

  1. Draw y=∣x∣y = |x| and y=2∣x∣y = 2|x| with a table for xx from −2 to 2.
  2. Now draw y=−2∣x∣y = -2|x| and say how it differs.
  3. Add 3 to get y=−2∣x∣+3y = -2|x| + 3 and name its vertex.

Words in this lesson

  • stretch - to multiply every output by a number so the graph gets steeper or flatter.
  • reflection - a flip of a graph over an axis.

Big idea

A number in front multiplies the outputs, a minus sign flips the graph, and the shifts move it. Stretch or flip first, then shift.

Test your understanding

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