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:
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.
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}$$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.
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:
Isolate the absolute value so we have $|\text{stuff}|=B$
Rewrite so that $\text{stuff}=B$ or $\text{stuff}= -B$
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:
Using the graph
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.
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.
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
- True or false: an absolute value function must have two x-intercepts.
- True or false: an absolute value function must have only one y-intercept.
- True or false: an absolute value function will always have y-axis symmetry.
- 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|$.
$g(x) = \frac{1}{2}|x + 2| + 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.
$f(x)= -|x−1| -1$
$f(x)=-|x+3|+4$
$f(x)=2|x+3|+1$
$f(x)=3|x−2| -3$
$f(x)=|2x−4| -3$
$f(x)=|3x+9|+2$
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$.
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$.
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
$|5x−2|=11 $
$|4x+2|=15$
$2|4−x|=7 $
$3|5−x|=5$
$3|x+1|-4= -2 $
$5|x−4|-7=2$
$x = \frac{13}{5}, - \frac{9}{5}$
$x = \frac{1}{2},\frac{15}{2}$
$x = - \frac{1}{3}, - \frac{5}{3}$
Find the horizontal and vertical intercepts of each function
$f(x)=2|x+1| -10$
$f(x)=4|x−3|+4$
$f(x)= -3|x−2| -1$
$f(x)=-2|x+1|+6$
Horizontal: $(4,0)$ and $(−6, 0)$; vertical $(0,8)$
Horizontal: none; vertical: $(0,−7)$
Solve each inequality
$|x+5| \lt 6$
$|x−3| \lt 7$
$|x−2| \geq 3$
$|x+4| \geq 2$
$|3x+9| \lt 4$
$|2x−9| \leq 8$
$(−11, 1)$
$(−\infty−1]∪[5, \infty)$
$\left( - \frac{13}{3}, - \frac{5}{3} \right)$
http://www.pollingreport.com/civil.htm, retrieved August 4, 2010↩︎
Technically, margin of error usually means that the surveyors are 95% confident that actual value falls within this range.↩︎