Algebra 1 · Grade 9

Graphing Absolute Value Functions: y = a|x − h| + k

Quick answer

The graph of y = |x| is a V with its corner, the vertex, at the origin and slopes 1 and −1 on its two arms. The form y = a|x − h| + k moves the vertex to (h, k) and makes the arms steeper or flatter with slopes a and −a. A negative a flips the V upside down. From the form you can read the vertex, the minimum or maximum value, the range and, by solving |x − h| = −k/a, the x-intercepts.

What you'll learn

  • Graph y = |x| and describe its shape
  • Read the vertex and slopes from y = a|x − h| + k
  • Find the intercepts of an absolute value function
  • Write an absolute value function from its graph

A V-shaped graph

The graph of y=∣x∣y = |x| is a V: it falls with slope −1-1 to the vertex (0,0)(0, 0), then rises with slope 11. Transformations move and reshape it:

y=a∣x−h∣+ky = a|x - h| + k
PartEffect
hhshifts right by hh (left if hh is negative)
kkshifts up by kk
∣a∣\lvert a \rvertarms have slopes aa and −a-a: steeper when ∣a∣>1\lvert a \rvert > 1
a<0a < 0the V opens downward

The vertex is (h,k)(h, k). It is the lowest point when a>0a > 0 and the highest when a<0a < 0.

Two absolute value functions The graph of y = |x − 2| + 1, a V opening upward with vertex (2, 1), and the graph of y = −2|x + 2| + 4, an upside-down V with vertex (−2, 4) that crosses the x-axis at −4 and 0. −4−2246−2246xy (2, 1) (−2, 4)
  • y = |x − 2| + 1
  • y = −2|x + 2| + 4
Two absolute value functions

Why the vertex is at x = h

The expression ∣x−h∣|x - h| is smallest, zero, when x=hx = h. Everywhere else it is positive. So the turning point of the graph is at x=hx = h, where the absolute value is zero and yy equals kk. Moving away from hh by one unit in either direction changes ∣x−h∣|x - h| by 11 and yy by aa, which is why the arms have slopes aa and −a-a.

Worked examples

Common mistakes

Practice problems

  1. What is the minimum value of y=∣x−2∣+1y = |x - 2| + 1?

    Answer

    11

    Full solution

    The vertex is (2,1)(2, 1) and the V opens upward.

  2. Find the yy-intercept of y=−3∣x+1∣+5y = -3|x + 1| + 5.

    Answer

    22

    Full solution

    −3∣1∣+5=2-3|1| + 5 = 2.

  3. Find the xx-intercepts of y=3∣x∣−6y = 3|x| - 6.

    Answer

    x=2x = 2 and x=−2x = -2

    Full solution

    3∣x∣=63|x| = 6 gives ∣x∣=2|x| = 2.

  4. What is the maximum value of y=−∣x−5∣+7y = -|x - 5| + 7?

    Answer

    77

    Full solution

    The V opens downward with vertex (5,7)(5, 7).

  5. What is the slope of the right arm of y=4∣x+3∣−1y = 4|x + 3| - 1?

    Answer

    44

    Full solution

    For x>−3x > -3, the function is 4(x+3)−14(x + 3) - 1, a line of slope 44.

  6. A V has vertex (0,1)(0, 1), opens upward and passes through (2,7)(2, 7). Find aa in y=a∣x∣+1y = a|x| + 1.

    Answer

    33

    Full solution

    7=2a+17 = 2a + 1.

  7. Find the xx-intercepts of y=12∣x−4∣−3y = \tfrac{1}{2}|x - 4| - 3.

    Answer

    x=10x = 10 and x=−2x = -2

    Full solution

    12∣x−4∣=3\tfrac{1}{2}|x - 4| = 3 gives ∣x−4∣=6|x - 4| = 6.

  8. A student says the vertex of y=∣x+1∣+3y = |x + 1| + 3 is (1,3)(1, 3). What is the vertex?

    Answer

    (−1,3)(-1, 3)

    Full solution

    ∣x+1∣=∣x−(−1)∣|x + 1| = |x - (-1)|, so h=−1h = -1.

Frequently asked questions

What does the graph of y = |x| look like?

A V with its vertex at (0, 0). The right arm has slope 1 and the left arm slope −1.

What is the vertex of y = a|x − h| + k?

(h, k). Note the sign: y = |x − 2| has vertex at x = 2, and y = |x + 1| at x = −1.

What does a do?

It sets the slopes of the arms to a and −a. If a is negative, the V opens downward, and the vertex is a maximum.

How do I find the x-intercepts?

Set y = 0 and solve a|x − h| + k = 0, which gives |x − h| = −k/a. If −k/a is negative, there are none.

What is the range?

y ≥ k when a > 0, and y ≤ k when a < 0.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSF.IF.C.7bInterpreting FunctionsGraph square root, cube root, and piecewise-defined functions, including step functions and absolute value functions.