Skip to main content
Mathematics LibreTexts

4.5: Absolute-Value Functions

  • Page ID
    45167
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    To graph absolute-value functions, choose small values of \(x\), and compute the value of \(f(x)\) from the given function to create ordered pairs. Three ordered pairs is the minimum amount needed to graph an absolute value function. Be careful, because one ordered pair must represent the vertex, the point where the left and right sides of the function meet. To correctly graph the shape of the absolute-value function, the vertex must be found.

    \(f(x) = a\vert x − h\vert+ k\) General Form of an Absolute-Value Function, with vertex \((h,k)\)

    • \(a\) determines both the width and the orientation (facing up or down) of the function.
    • \(h\) is the horizontal shift from the origin.
    • \(k\) is the vertical shift from the origin.

    Start by identifying the ordered pair of the vertex, and then find one ordered pair to the left of the origin, and to the right of the origin. Choose an x-value one unit to the left of the x-value of the origin, calculate \(f(x)\) and then choose an x-value one unit to the right of the x-value of the origin and calculate \(f(x)\). The graph will resemble a \(V\), either facing upward or downward, depending on the sign of \(a\).

    Example 4.5.1

    Create a table of solutions and graph the following absolute-value function:

    \(f(x) = \vert x − 4\vert\)

    Solution

    Comparing this function to the general form for absolute-value functions (shown above), \(a = 1\), \(h = 4\), \(k = 0\). The vertex is \((h, k)\) or \((4, 0)\).

    To find two more ordered pairs, choose \(x = 3\) and \(x = 5\), then compute values of \(f(x)\).

    clipboard_e4c9bfc2e550aa369ba89481f9ab5d4fb.png
    Figure 4.5.1
    Table of Solutions for \(f(x) = \vert x − 4\vert\)
    \(x\) \(f(x)\)
    3 \(f(3) = \vert 3 − 4\vert = \vert − 1\vert = 1\)
    4 \(f(4) = \vert 4 − 4\vert = \vert 0\vert = 0\)
    5 \(f(5) = \vert 5 − 4\vert = \vert 1\vert = 1\)
    Example 4.5.2

    Create a table of solutions and graph the following absolute-value function:

    \(g(x) = \vert x + 2\vert − 5\)

    Solution

    Comparing this function to the general form for absolute-value functions (shown above), \(a = 1\), \(h = −2\), \(k = −5\). The vertex is (h, k)\) or \((−2, −5)\).

    To find two more ordered pairs, choose \(x = −3\) and \(x = −1\), then compute values of \(g(x)\)

    clipboard_e4ca56e46ab74be7e1b0eaaea223f1a1d.png
    Figure 4.5.2
    Table of Solutions for \(g(x) = \vert x + 2\vert − 5\)
    \(x\) \(g(x)\)
    -3 \(g(−3) = \vert − 3 + 2\vert − 5 = \vert − 1\vert − 5 = 1 − 5 = −4\)
    -2 \(g(−2) = \vert − 2 + 2\vert − 5 = \vert 0\vert − 5 = 0 − 5 = −5\)
    -1 \(g(−1) = \vert − 1 + 2\vert − 5 = \vert 1\vert − 5 = 1 − 5 = −4\)
    Example 4.5.3

    Create a table of solutions and graph the following absolute-value function:

    \(h(x) = 3\vert x − 5\vert + 1\)

    Solution

    Comparing this function to the general form for absolute-value functions (shown above), \(a = 3\), \(h = 5\), \(k = 1\). The vertex is \((h, k)\) or \((5, 1)\).

    To find two more ordered pairs, choose \(x = 4\) and \(x = 6\), then compute values of \(h(x)\).

    clipboard_ee43f5a639ef847eb9b27a95bb4052b84.png
    Figure 4.5.3
    Table of Solutions for \(h(x) = 3\vert x − 5\vert + 1\)
    \(x\) \(h(x)\)
    4 \(g(−3) = \vert − 3 + 2\vert − 5 = \vert − 1\vert − 5 = 1 − 5 = −4\)
    5 \(g(−2) = \vert − 2 + 2\vert − 5 = \vert 0\vert − 5 = 0 − 5 = −5\)
    6 \(g(−1) = \vert − 1 + 2\vert − 5 = \vert 1\vert − 5 = 1 − 5 = −4\)
    Example 4.5.4

    Create a table of solutions and graph the following absolute-value function:

    \(h(x) = \dfrac{1}{2} \vert x − 2\vert + 3\)

    Solution

    Comparing this function to the general form for absolute-value functions (shown above), \(a = \dfrac{1}{2} \), \(h = 2\), \(k = 3\). The vertex is \((h, k)\) or \((2, 3)\).

    To find two more ordered pairs, choose \(x = 1\) and \(x = 3\), then compute values of \(h(x)\).

    clipboard_ecc69da60d6771932018e42e8e7a5cdda.png
    Figure 4.5.4
    Table of Solutions for \(h(x) = \dfrac{1}{2} \vert x − 2\vert + 3\)
    \(x\) \(h(x)\)
    1 \(h(1) = \dfrac{1}{2} \vert 1 − 2\vert + 3 = \dfrac{1}{2} \vert − 1\vert + 3 = \dfrac{1}{2} (1) + 3 = 3\dfrac{1}{2}\)
    2 \(h(2) = \dfrac{1}{2} \vert 2 − 2\vert + 3 = \dfrac{1}{2} \vert 0\vert + 3 = 0 + 3 = 3\)
    3 \(h(3) = \dfrac{1}{2} \vert 3 − 2\vert + 3 = \dfrac{1}{2} \vert 1\vert + 3 = \dfrac{1}{2} (1) + 3 = 3\dfrac{1}{2}\)
    Exercise 4.5.1

    Create a table of solutions and graph the following absolute-value functions:

    1. \(f(x) = \vert x + 6\vert\)
    2. \(g(x) = \dfrac{1}{3} \vert x − 3\vert + 5\)
    3. \(h(x) = 4\vert x + 2\vert + 2\)
    4. \(f(x) = \vert x − 1\vert − 5\)

    This page titled 4.5: Absolute-Value Functions is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Victoria Dominguez, Cristian Martinez, & Sanaa Saykali (ASCCC Open Educational Resources Initiative) .

    • Was this article helpful?