2.5: Absolute Value Functions
 Page ID
 13838
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
So far in this chapter we have been studying the behavior of linear functions. The Absolute Value Function is a piecewisedefined function made up of two linear functions. The name, Absolute Value Function, should be familiar to you from Section 1.2. In its basic form\(f(x)=\leftx\right\) it is one of our toolkit functions.
Absolute Value Function
The absolute valueAbsolute Value FunctionsFunction:Absolute Value Functions function can be defined as \[f(x)=\leftx\right=\left\{\begin{array}{ccc} {x} & {if} & {x\ge 0} \\ {x} & {if} & {x<0} \end{array}\right.\]
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 \(\leftab\right\) will give the distance, a positive quantity, between these values, regardless of which value is larger.
Example \(\PageIndex{1}\):
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 \[\leftx5\right\le 4\]
Example \(\PageIndex{2}\):
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%^{9}. The margin of error tells us how far off the actual value could be from the survey value^{10}. 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%, \[\leftp78\right\le 3\]
Exercise \(\PageIndex{1}\)
Students who score within 20 points of 80 will pass the test. Write this as a distance from 80 using the absolute value notation.
 Answer

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.
Important Features
The most significant feature of the absolute value graphAbsolute Value Functions:Graphing 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.
Example \(\PageIndex{3}\):
Write an equation for the function graphed.
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.
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\leftx3\right2\), treating the stretch as a vertical stretch
\(f(x)=\left2(x3)\right2\), 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\leftx3\right2\) Now substituting in the point (1, 2) \[\begin{array}{l} {2=a\left13\right2} \\ {4=2a} \\ {a=2} \end{array}\]
Exercise \(\PageIndex{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.
 Answer

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.
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 horizontal intercepts One Two
To find the horizontal intercepts, we will need to solve an equation involving an absolute value.
Notice that the absolute value function is not onetoone, so typically inverses of absolute value functions are not discussed.
Solving Absolute Value Equations
Absolute Value Functions:Solving
To solve an equation like \(8=\left2x6\right\), 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:
\(2x6=8\) or \(2x6=8\) \[2x=14 2x=2\] \[x=7 x=1\]
Solutions to Absolute Value Equations
An equation of the form \(\leftA\right=B\), with \(B\ge 0\), will have solutions when
\(A=B\) or \(A=B\)
Example \(\PageIndex{1}\):
Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.
4
Find the horizontal intercepts of the graph of \(f(x)=\left4x+1\right7\)
The horizontal intercepts will occur when \(f(x)=0\). Solving,
\(0=\left4x+1\right7\) Isolate the absolute value on one side of the equation
\(7=\left4x+1\right\) Now we can break this into two separate equations:
\(\begin{array}{l} {7=4x+1} \\ {6=4x} \\ {x=\frac{6}{4} =\frac{3}{2} } \end{array}\) or \(\begin{array}{l} {7=4x+1} \\ {8=4x} \\ {x=\frac{8}{4} =2} \end{array}\)
The graph has two horizontal intercepts, at \(x=\frac{3}{2}\) and x = 2
Example \(\PageIndex{1}\):
Add text here. For the automatic number to work, you need to add the "AutoNum" template (preferably at the end) to the page.
5
Solve \(1=4\leftx2\right+2\)
Isolating the absolute value on one side the equation, \[1=4\leftx2\right+2\] \[1=4\leftx2\right\] \[\frac{1}{4} =\leftx2\right\]
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.
Exercise \(\PageIndex{3}\)
Find the horizontal & vertical intercepts for the function\(f(x)=\leftx+2\right+3\)
 Answer

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.
Solving Absolute Value Inequalities
Absolute Value Functions:Solving Inequalities
When absolute value inequalities are written to describe a set of values, like the inequality \(\leftx5\right\le 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
Example \(\PageIndex{6}\):
Solve \(\leftx5\right\le 4\)
With both approaches, we will need to know first where the corresponding equality is true. In this case, we first will find where \(\leftx5\right=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 \(\leftx5\right=4\),
\(\begin{array}{l} {x5=4} \\ {x=9} \end{array}\) or \(\begin{array}{l} {x5=4} \\ {x=1} \end{array}\)
To use a graph, we can sketch the function \(f(x)=\leftx5\right\). 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\le x\le 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\(\mathrm{<}\)1, 1\(\mathrm{<}\)x\(\mathrm{<}\)9, and x\(\mathrm{>}\)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.
x\(\mathrm{<}\)1 0 \(\left05\right=5\) greater
1\(\mathrm{<}\)x\(\mathrm{<}\)9 6 \(\left65\right=1\) less
x\(\mathrm{>}\)9 11 \(\left115\right=6\) greater
Since \(1\le x\le 9\) is the only interval in which the output at the test value is less than 4, we can conclude the solution to \(\leftx5\right\le 4\) is \(1\le x\le 9\).
Example \(\PageIndex{7}\):
Given the function \(f(x)=\frac{1}{2} \left4x5\right+3\), determine for what x values the function values are negative.
We are trying to determine where f(x) \(\mathrm{<}\) 0, which is when \(\frac{1}{2} \left4x5\right+3<0\). We begin by isolating the absolute value:
\(\frac{1}{2} \left4x5\right<3\) when we multiply both sides by 2, it reverses the inequality \[\left4x5\right>6\]
Next we solve for the equality \(\left4x5\right=6\)
\(\begin{array}{l} {4x5=6} \\ {4x=11} \\ {x=\frac{11}{4} } \end{array}\) or \(\begin{array}{l} {4x5=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.
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<\frac{1}{4} \quad or\quad x>\frac{11}{4}\]
In interval notation, this would be \(\left(\infty ,\frac{1}{4} \right)\bigcup \left(\frac{11}{4} ,\infty \right)\)
Exercise \(\PageIndex{4}\)
Solve\(2\leftk4\right\le 6\)
 Answer

Add answer text here and it will automatically be hidden if you have a "AutoNum" template active on the page.
Important Topics of this Section
 The properties of the absolute value function
 Solving absolute value equations
 Finding intercepts
 Solving absolute value inequalities
Try it Now Answers
1. Using the variable p, for passing, \(\leftp80\right\le 20\)
\[2. f(x)=\leftx+2\right+3\]
3. f(0) = 1, so the vertical intercept is at (0,1). f(x)= 0 when\(\leftx+2\right+3=0\)\(\leftx+2\right=3\)\(x+2=3\) or \(x+2=3\)x = 1 or x = 5 so the horizontal intercepts are at (5,0) & (1,0)
4. \(2\leftk4\right\le 6\)\(\leftk4\right\ge 3\)Solving the equality \(\leftk4\right=3\), k – 4 = 3 or k – 4 = –3, so k = 1 or k = 7.Using a graph or test values, we can determine the intervals that satisfy the inequality are \(k\le 1\)or \(k\ge 7\); in interval notation this would be \(\left(\infty ,1\right]\cup \left[7,\infty \right)\)