Section 2.4 Absolute Value Functions

So far in this chapter we have been studying the behavior of linear functions. The Absolute Value Function is a piecewise-defined function made up of two linear functions.

Absolute Value Function

The absolute value function can be defined as

$$f(x)=|x|=\begin{cases} x & \text{if} & x \geq 0 \\ - x & \text{if} & x \lt 0 \end{cases} $$


The absolute value function is commonly used to determine the distance between two numbers on the number line. Given two values $a$ and $b$, then $|a−b|$ will give the distance, a positive quantity, between these values, regardless of which value is larger.

Describe all values, $x$, within a distance of 4 from the number 5.

We want the distance between $x$ and 5 to be less than or equal to 4. The distance can be represented using the absolute value, giving the expression

$$|x−5| ≤ 4$$


A 2010 poll reported 78% of Americans believe that people who are gay should be able to serve in the US military, with a reported margin of error of 3%1. The margin of error tells us how far off the actual value could be from the survey value2. Express the set of possible values using absolute values.

Since we want the size of the difference between the actual percentage, $p$, and the reported percentage to be less than 3%,

$$|p−78| \leq 3$$


Students who score within 20 points of 80 will pass the test. Write this as a distance from 80 using the absolute value notation.


Important Features

The most significant feature of the absolute value graph is the corner point where the graph changes direction. When finding the equation for a transformed absolute value function, this point is very helpful for determining the horizontal and vertical shifts.

Absolute Value Toolkit Function

The absolute value toolkit function, $f(x) = |x|$, can be represented with the following table values and graph:

$$\begin{array}{|c|c|} \hline x & f(x)=|x|\\ \hline -2 & 2\\ \hline -1 & 1\\ \hline 0 & 0\\ \hline 1 & 1\\ \hline 2 & 2\\ \hline \end{array}$$
A V-shaped graph with point at 0 comma 0 passing through 1 comma 1

Features of the Absolute Value Toolkit Function

  • The Absolute Value Parent Function has the following features:
  • Domain: $(−\infty,\infty)$
  • Range: $[0, \infty)$
  • End behavior: As $x \to \infty, f(x) \to \infty$ and as $x\to-\infty, f(x)\to\infty$
  • Intercepts: $x$ and $y$ intercept of $(0,0)$
  • Increasing on $(0,\infty)$
  • Decreasing on $(−\infty,0$)
  • Absolute minimum at $(0,0)$.

Write an equation for the function graphed here.

A V-shaped absolute value graph with corner point at 3 comma negative 2 and passing through 1 comma 2 and 4 comma 0

First, we must recognize the sharp V-shape of the graph as an absolute value function, $g(x)=|x|$. We’ll need to find $a, $b, $c$, and $d$, so we can write our function in the form

$$f(x)=ag(bx+c)+d,$$

that is,

$$f(x)=a|bx+c|+d.$$

The basic absolute value function changes direction at the origin, so this graph has been shifted to the right 3 and down 2 from the basic toolkit function. This tells us $c= -3$ and $d=2$.

We might also notice that the graph appears stretched, since the linear portions have slopes of 2 and -2. From this information we could write the write the equation in two ways:

$$f(x)=2|x−3| -2,$$ treating the stretch as a vertical stretch

$$f(x)=|2(x−3)| -2,$$ treating the stretch as a horizontal compression

Note that these equations are algebraically equivalent – the stretch for an absolute value function can be written interchangeably as a vertical or horizontal stretch/compression.

If you had not been able to determine the stretch based on the slopes of the lines, you can solve for the stretch factor by putting in a known pair of values for $x$ and $f(x)$.

$$f(x)=a|x−3| -2$$ Now substituting in the point (1, 2)

$$2=a|1−3| -2 $$ $$4=2a$$ $$a=2$$


Given the description of the transformed absolute value function write the equation. The absolute value function is horizontally shifted left 2 units, is vertically flipped, and vertically shifted up 3 units.


Graph the function $g(x)= -|x+1|+2$. Then describe its domain and range, intercepts, end behavior, intervals of increasing and decreasing, and any maxima or minima.

Taking a transformations perspective, we first notice the absolute value bars. That tells us our parent function is $f(x)=|x|$. If we match up our transformations to the form $g(x)=af(bx+c)+d=a|bx+c|+d$, we have $a= -1$, $c=1$, and $d=2$. We’ll apply $c$ first to create a shift left 1 unit, then apply $a$ to create a vertical reflection. We’ll end with $d, a shift up 2. This process creates the following table and graph.

$$\begin{array}{|c|c|c|c|c|} \hline X=x-1 & \leftarrow x & f(x) \rightarrow & y=-1\cdot f(x)\rightarrow & g(X)=y+2\\ \hline -3 & -2 & 2 & -2 & 0\\ \hline -2 & -1 & 1 & -1 & 1\\ \hline -1 & 0 & 0 & 0 & 2\\ \hline 0 & 1 & 1 & -1 & 1\\ \hline 1 & 2 & 2 & -2 & 0\\ \hline \end{array}$$

A downward-opening v shaped graph through the points (-3,0), (-2,1), (-1,2), (0,1), and (1,0)

This function has domain $(−\infty,\infty)$ and range $( -\infty, 2]$.

The $x$-intercepts are $(−3,0)$ and $(1,0)$. The $y$-intercept is $(0,1$).

The end behavior is as $x\to\infty, g(x)\to-\infty$ and as $x\to-\infty, g(x)\to-\infty$.

The graph is increasing on $(−\infty, −1)$ and decreasing on $(−1, \infty)$.

The function has an absolute maximum value of 2 at $x= -1$.


Graph the function $h(x)=|−2x−3|. Then describe its domain and range, intercepts, end behavior, intervals of increasing and decreasing, and any maxima or minima.


The graph of an absolute value function will have a vertical intercept when the input is zero. The graph may or may not have horizontal intercepts, depending on how the graph has been shifted and reflected. It is possible for the absolute value function to have zero, one, or two horizontal intercepts.

Zero

A V-shaped absolute value graph opening upwards with corner point at negative 1 comma 2 and passing through 0 comma 3. It has no horizontal intercepts.

One

A V-shaped absolute value graph opening upwards with corner point at 2 comma 0 and passing through 3 comma 1. It has one horizontal intercept at the corner point.

Two

A V-shaped absolute value graph opening downwards with corner point at 1 comma 3 and two horizontal intercepts at negative 2 comma 0 and 4 comma 0

To find the horizontal intercepts, we will need to solve an equation involving an absolute value.

Notice that the absolute value function is not one-to-one, so typically inverses of absolute value functions are not discussed.

Solving Absolute Value Equations

To solve an equation like $8=|2x−6|$, we can notice that the absolute value will be equal to eight if the quantity inside the absolute value were 8 or -8. This leads to two different equations we can solve independently:

$2x-6=8$ or $2x-6= -8$

$2x=14$ or $2x= -2$

$x=7$ or $x= -1$

Solutions to Absolute Value Equations

An equation of the form $|A|=B$, with $B \geq 0$, will have solutions when

$A=B$ or $A= -B$


Solving Absolute Value Equations

To solve an absolute value equation:

  1. Isolate the absolute value so we have $|\text{stuff}|=B$

  2. Rewrite so that $\text{stuff}=B$ or $\text{stuff}= -B$

  3. Solve each resulting equation


Find the horizontal intercepts of the graph of $f(x)=|4x+1| -7$

The horizontal intercepts will occur when $f(x)=0$. Solving,

\[ \begin{array}{rlc} 0 &=|4x+1|-7 & \text{ Isolate the absolute value} \\ 7 &=|4x+1| & \text{ Now break this into two equations:} \\ \end{array} \] \[ \begin{array}{rl} 7 &=4x+1 \quad \text{or} \quad -7=4x+1 \\ 6 &=4x \quad \text{or} \quad -8=4x \\ x &=\frac{6}{4} \quad \text{or} \quad x=\frac{-8}{4} \\ x &=\frac{3}{2} \quad \text{or} \quad x=-2 \end{array} \]

The graph has two horizontal intercepts, at $x=\frac{3}{2}$ and $x =  -2$.


Solve $1=4|x−2|+2$

Isolating the absolute value on one side the equation,

$$1=4|x−2|+2$$

$$ -1=4|x−2|$$

$$-\frac{1}{4}=|x-2|$$

At this point, we notice that this equation has no solutions – the absolute value always returns a positive value, so it is impossible for the absolute value to equal a negative value.


Find the horizontal & vertical intercepts for the function $f(x)= -|x+2|+3$


Solving Absolute Value Inequalities

When absolute value inequalities are written to describe a set of values, like the inequality $|x−5| \leq 4$ we wrote earlier, it is sometimes desirable to express this set of values without the absolute value, either using inequalities, or using interval notation.

We will explore two approaches to solving absolute value inequalities:

  1. Using the graph

  2. Using test values

Solve $|x−5| \leq 4$

With both approaches, we will need to know first where the corresponding equality is true. In this case, we first will find where $|x−5|=4$. We do this because the absolute value is a nice friendly function with no breaks, so the only way the function values can switch from being less than 4 to being greater than 4 is by passing through where the values equal 4. Solve $|x−5|=4$,

$$\begin{array}{c} x-5=4 \\ x=9 \end{array}\ \ \text{or}\ \ \begin{array}{c} x-5=- 4 \\ x=1 \end{array}$$

To use a graph, we can sketch the function $f(x)=|x−5|$. To help us see where the outputs are 4, the line $g(x)=4$ could also be sketched.

A V-shaped absolute value graph with corner point at 5 comma 0 and passing through 0 comma 5, and a horizontal dashed line at y=4. The graphs intersect at 1 comma 4 and 9 comma 4.

On the graph, we can see that indeed the output values of the absolute value are equal to 4 at $x=1$ and $x=9$. Based on the shape of the graph, we can determine the absolute value is less than or equal to 4 between these two points, when $1 \leq x \leq 9$. In interval notation, this would be the interval $[1,9]$.

As an alternative to graphing, after determining that the absolute value is equal to 4 at $x=1$ and $x=9$, we know the graph can only change from being less than 4 to greater than 4 at these values. This divides the number line up into three intervals: $x\lt 1$, $1\lt x\lt 9$, and $x\gt 9$. To determine when the function is less than 4, we could pick a value in each interval and see if the output is less than or greater than 4.

$$\begin{array}{cccc} \text{Interval} & \text{Test }x & f(x) & \text{less than or greater than 4?}\\ \hline x\lt 1 & 0 & |0-5|=5 & \text{greater}\\ 1 \lt x \lt 9 & 6 & |6-5|=1 & \text{less}\\ x \gt 9 & 11 & |11-5|=6 & \text{greater}\\ \end{array}$$

Since $1 \leq x \leq 9$ is the only interval in which the output at the test value is less than 4, we can conclude the solution to $|x−5| \leq 4$ is $1 \leq x \leq 9$.


Given the function $f(x)=- \frac{1}{2}|4x - 5|+3$, determine for what x values the function values are negative.

We are trying to determine where $f(x) \lt 0$, which is when $- \frac{1}{2}|4x-5|+3 \lt 0$. We begin by isolating the absolute value:

$$- \frac{1}{2}|4x-5| \lt-3$$ when we multiply both sides by -2, it reverses the inequality

$$|4x−5| \gt 6$$ 

Next we solve for the equality $|4x−5|=6$

$$\begin{array}{c} 4x-5=6 \\ 4x=11 \\ x=\frac{11}{4} \end{array}\ \ \ \text{ or }\ \ \ \ \begin{array}{c} 4x-5=-6 \\ 4x=-1 \\ x=-\frac{1}{4} \end{array}$$

We can now either pick test values or sketch a graph of the function to determine on which intervals the original function value are negative. Notice that it is not even really important exactly what the graph looks like, as long as we know that it crosses the horizontal axis at $x=\frac{-1}{4}$ and $x=\frac{11}{4}$, and that the graph has been reflected vertically due to the negative $a$-value.

A V-shaped absolute value graph with corner point slightly to the right of 1 comma 3, with a horizontal intercept between x=negative 1 and x=0, and another between x=2 and x=3.

From the graph of the function, we can see the function values are negative to the left of the first horizontal intercept at $x=\frac{-1}{4}$, and negative to the right of the second intercept at $x = \frac{11}{4}$. This gives us the solution to the inequality:

$$x \lt \frac{-1}{4}\quad \text{ or }\quad x \gt \frac{11}{4}$$

In interval notation, this would be $$\left( -\infty,\frac{-1}{4} \right) \cup \left( \frac{11}{4},\infty \right)$$.


Solve$ -2|k−4| \leq  -6$


Important Topics of this Section

The properties of the absolute value function

Solving absolute value equations

Finding intercepts

Solving absolute value inequalities


Section 2.4 Exercises

Conceptual Questions

  1. True or false: an absolute value function must have two x-intercepts.
  2. True or false: an absolute value function must have only one y-intercept.
  3. True or false: an absolute value function will always have y-axis symmetry.
  4. True or false: the rate of change of an absolute value function is always constant.

Practice Problems

Write an equation for each transformation of $f(x)=|x|$.

  1. A V-shaped graph is shown on a coordinate plane, made up of two connected straight blue lines. The point where the two segments meet is at (–2, 1), forming a sharp corner. The left segment decreases from the point (–4, 2) to the left, passing through (–2, 1). The right segment increases from the point (–2, 1) to the right, passing through (2, 3).

  2. A V-shaped graph is displayed on a coordinate plane, made up of two connected blue line segments. The sharp corner, or vertex, of the graph is at the point (1, –3). The left segment slopes downward from the left and passes through (–2, 3), while the right segment slopes upward to the right and passes through (4, 3).

  3. A graph consisting of two connected blue line segments is shown on a coordinate plane, forming an upside-down V shape. The vertex, or peak, is at the point (3, 3). The left segment rises from the lower left, passing through (1, –3), and the right segment falls toward the lower right, passing through (5, –3).

  4. A graph on a coordinate plane shows two connected blue line segments forming an upside-down V shape. The peak of the graph is at the point (–1, 4). The left segment slopes upward from the point (–4, 3) to (–1, 4), and the right segment slopes downward from (–1, 4) to (2, 3).

  1. $g(x) = \frac{1}{2}|x + 2| + 1$

  1. $g(x) = -3.5|x−3|+3$



Sketch a graph of each function. Then identify the domain and range, intercepts, end behavior, intervals of increasing and decreasing, and maximum or minimum.

  1. $f(x)= -|x−1| -1$

  2. $f(x)=-|x+3|+4$

  3. $f(x)=2|x+3|+1$

  4. $f(x)=3|x−2| -3$

  5. $f(x)=|2x−4| -3$

  6. $f(x)=|3x+9|+2$

  1. The basic absolute value function has been shifted right 1, flipped around the x-axis, then shifted down 1.
    Domain: $(−\infty,\infty)$; Range: $(-\infty, -1]$; y-intercept: -2, no x-intercept; Increasing on $(−\infty, 1)$, decreasing on $(1, \infty)$; Maximum of -1 at $x = 1$.

  1. The basic absolute value v-shape has been moved left 3, stretched vertically by a factor of 2, and shifted up one.
    Domain: $(−\infty,\infty)$; Range: $[1, \infty)$; y-intercept: 7, no x-intercept; Increasing on $(−3,\infty)$, decreasing on $(−\infty, −3)$; Minimum of 1 at $x = -3$.

  1. The basic absolute value v-shape has been shifted right 4, then horizontally compressed by 2, then shifted down 3. The vertex is at (2,-3).
    Domain: $(−\infty,\infty)$; Range: $[-3, \infty)$; y-intercept: 1, x-intercepts ½ and 7/2; Increasing on $(2,\infty)$, decreasing on $(−\infty, 2)$; Minimum of -3 at $x = 2$.



Solve each equation

  1. $|5x−2|=11 $

  2. $|4x+2|=15$

  3. $2|4−x|=7 $

  4. $3|5−x|=5$

  5. $3|x+1|-4= -2 $

  6. $5|x−4|-7=2$

  1. $x = \frac{13}{5}, - \frac{9}{5}$

  1. $x = \frac{1}{2},\frac{15}{2}$

  1. $x = - \frac{1}{3}, - \frac{5}{3}$



Find the horizontal and vertical intercepts of each function

  1. $f(x)=2|x+1| -10$

  2. $f(x)=4|x−3|+4$

  3. $f(x)= -3|x−2| -1$

  4. $f(x)=-2|x+1|+6$

  1. Horizontal: $(4,0)$ and $(−6, 0)$; vertical $(0,8)$

  1. Horizontal: none; vertical: $(0,−7)$


Solve each inequality

  1. $|x+5| \lt 6$

  2. $|x−3| \lt 7$

  3. $|x−2| \geq 3$

  4. $|x+4| \geq 2$

  5. $|3x+9| \lt 4$

  6. $|2x−9| \leq 8$

  1. $(−11, 1)$

  1. $(−\infty−1]∪[5, \infty)$

  1. $\left( - \frac{13}{3}, - \frac{5}{3} \right)$




  1. http://www.pollingreport.com/civil.htm, retrieved August 4, 2010↩︎

  2. Technically, margin of error usually means that the surveyors are 95% confident that actual value falls within this range.↩︎