Knaph

Piecewise Functions and Moving Graphs39 of 1002 min read

Absolute Value Functions

Zoe walks along a path and measures how far she is from the bench. Distance is never negative, so what does the graph of f(x)=∣x∣f(x) = |x| look like?

Absolute value as two pieces

The absolute value function is piecewise: ∣x∣=x|x| = x when x≥0x ≥ 0, and ∣x∣=−x|x| = -x when x<0x \lt 0. Putting a negative in the second rule makes the output positive: ∣−3∣=−(−3)=3|-3| = -(-3) = 3.

A table shows it. For x=−2,−1,0,1,2x = -2, -1, 0, 1, 2 the outputs are 2,1,0,1,22, 1, 0, 1, 2. The graph is a V.

The graph of y equals the absolute value of x, a V shape with its point, the vertex, at (0, 0). The left arm falls with slope minus 1 and the right arm rises with slope 1. Dots mark the table (minus 2, 2), (minus 1, 1), (0, 0), (1, 1), (2, 2).

The vertex and the slopes

The point of the V is its vertex. Here it is (0,0)(0, 0), the lowest point. The right arm goes up 1 for each 1 across, so its slope is 11. The left arm has slope −1-1.

Those two slopes come from the two pieces: y=xy = x on the right and y=−xy = -x on the left.

A rule from a table

Take x=0,1,2,3,4x = 0, 1, 2, 3, 4 with y=3,2,1,2,3y = 3, 2, 1, 2, 3. The outputs fall, then rise, so this is a V. The lowest output, 1, is at x=2x = 2, so the vertex is (2,1)(2, 1).

A rule that fits is y=∣x−2∣+1y = |x - 2| + 1. Check x=0x = 0: ∣−2∣+1=3|-2| + 1 = 3. The part ∣x−2∣|x - 2| is the distance from 2, which is zero at x=2x = 2, and the +1+ 1 lifts the vertex up 1.

The graph of y equals the absolute value of x minus 2, plus 1. A V with its vertex at (2, 1) and dots at (0, 3), (1, 2), (2, 1), (3, 2), (4, 3).

Careful

The outputs of |x| are never negative, so no part of the graph goes below the x-axis.

Try it at home

  1. Make a table of the absolute value function for xx from −3 to 3.
  2. Plot the points and draw the V.
  3. Say where the vertex is and what the slope is on each side.

Words in this lesson

  • absolute value function - the function f(x)=∣x∣f(x) = |x|, which gives the distance of xx from 0.
  • vertex - the point of the V where the graph turns.

Big idea

The function ∣x∣|x| is piecewise: xx on the right, −x-x on the left. Its graph is a V with slopes 1 and −1-1, and the vertex is where the outputs turn around.

Test your understanding

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