22 Absolute Value Functions

Learning Objectives

In this section you will:

  • Graph an absolute value function.
  • Solve an absolute value equation.
The Milky Way.
Figure 1. Distances in deep space can be measured in all directions. As such, it is useful to consider distance in terms of absolute values. (credit: “s58y”/Flickr)

Until the 1920s, the so-called spiral nebulae were believed to be clouds of dust and gas in our own galaxy, some tens of thousands of light years away. Then, astronomer Edwin Hubble proved that these objects are galaxies in their own right, at distances of millions of light years. Today, astronomers can detect galaxies that are billions of light years away. Distances in the universe can be measured in all directions. As such, it is useful to consider distance as an absolute value function. In this section, we will continue our investigation of absolute value functions.

Understanding Absolute Value

Recall that in its basic form[latex]\,f\left(x\right)=|x|,\,[/latex]the absolute value function is one of our toolkit functions. The absolute value function is commonly thought of as providing the distance the number is from zero on a number line. Algebraically, for whatever the input value is, the output is the value without regard to sign. Knowing this, we can use absolute value functions to solve some kinds of real-world problems.

Absolute Value Function

The absolute value function can be defined as a piecewise function

[latex]\,f\left(x\right)=|x|=\bigg\{\begin{array}{ccc}x& \text{if}& x\ge 0\\ -x& \text{if}& x<0\end{array}\,[/latex]

Using Absolute Value to Determine Resistance

Electrical parts, such as resistors and capacitors, come with specified values of their operating parameters: resistance, capacitance, etc. However, due to imprecision in manufacturing, the actual values of these parameters vary somewhat from piece to piece, even when they are supposed to be the same. The best that manufacturers can do is to try to guarantee that the variations will stay within a specified range, often[latex]\,\text{±1%,}\,±\text{5%,}\,[/latex]or[latex]\,±\text{10%}\text{.}[/latex]

Suppose we have a resistor rated at 680 ohms,[latex]\,±5%.\,[/latex]Use the absolute value function to express the range of possible values of the actual resistance.

[reveal-answer q=”fs-id1165137786481″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137786481″]

We can find that 5% of 680 ohms is 34 ohms. The absolute value of the difference between the actual and nominal resistance should not exceed the stated variability, so, with the resistance[latex]\,R\,[/latex]in ohms,

[latex]|R-680|\le 34[/latex][/hidden-answer]

Try It

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

[reveal-answer q=”fs-id1165137715310″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137715310″]

using the variable[latex]\,p\,[/latex]for passing,[latex]\,|p-80|\le 20[/latex]

[/hidden-answer]

Graphing an Absolute Value Function

The most significant feature of the absolute value graph is the corner point at which the graph changes direction. This point is shown at the origin in (Figure).

Graph of an absolute function
Figure 2.

(Figure) shows the graph of[latex]\,y=2|x–3|+4.\,[/latex]The graph of[latex]\,y=|x|\,[/latex]has been shifted right 3 units, vertically stretched by a factor of 2, and shifted up 4 units. This means that the corner point is located at[latex]\,\left(3,4\right)\,[/latex]for this transformed function.

Graph of the different types of transformations for an absolute function.
Figure 3.

Writing an Equation for an Absolute Value Function Given a Graph

Write an equation for the function graphed in (Figure).

Graph of an absolute function.
Figure 4.
[reveal-answer q=”fs-id1165137736321″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137736321″]

The basic absolute value function changes direction at the origin, so this graph has been shifted to the right 3 units and down 2 units from the basic toolkit function. See (Figure).

Graph of two transformations for an absolute function at (3, -2).
Figure 5.

We also notice that the graph appears vertically stretched, because the width of the final graph on a horizontal line is not equal to 2 times the vertical distance from the corner to this line, as it would be for an unstretched absolute value function. Instead, the width is equal to 1 times the vertical distance as shown in (Figure).

Graph of two transformations for an absolute function at (3, -2) and describes the ratios between the two different transformations.
Figure 6.

From this information we can write the equation

[latex]\begin{array}{cccc}\hfill f\left(x\right)& =& 2|x-3|-2,\hfill & \phantom{\rule{1em}{0ex}}\text{treating the stretch as }a\text{ vertical stretch,or}\hfill \\ \hfill f\left(x\right)& =& |2\left(x-3\right)|-2,\hfill & \phantom{\rule{1em}{0ex}}\text{treating the stretch as }a\text{ horizontal compression}.\hfill \end{array}[/latex][/hidden-answer]

Analysis

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

If we couldn’t observe the stretch of the function from the graphs, could we algebraically determine it?

Yes. If we are unable to determine the stretch based on the width of the graph, we can solve for the stretch factor by putting in a known pair of values for[latex]\,x\,[/latex]and[latex]\,f\left(x\right).[/latex]

[latex]f\left(x\right)=a|x-3|-2[/latex]

Now substituting in the point (1, 2)

[latex]\begin{array}{ccc}\hfill 2& =& a|1-3|-2\hfill \\ \hfill 4& =& 2a\hfill \\ \hfill a& =& 2\hfill \end{array}[/latex]

Try It

Write the equation for the absolute value function that is horizontally shifted left 2 units, is vertically flipped, and vertically shifted up 3 units.

[reveal-answer q=”fs-id1165137405204″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137405204″]

[latex]f\left(x\right)=-|x+2|+3[/latex]

[/hidden-answer]

Do the graphs of absolute value functions always intersect the vertical axis? The horizontal axis?

Yes, they always intersect the vertical axis. The graph of an absolute value function will intersect the vertical axis when the input is zero.

No, they do not always intersect the horizontal axis. The graph may or may not intersect the horizontal axis, depending on how the graph has been shifted and reflected. It is possible for the absolute value function to intersect the horizontal axis at zero, one, or two points (see (Figure)).

Graph of the different types of transformations for an absolute function.
Figure 7. (a) The absolute value function does not intersect the horizontal axis. (b) The absolute value function intersects the horizontal axis at one point. (c) The absolute value function intersects the horizontal axis at two points.

Solving an Absolute Value Equation

In Other Type of Equations, we touched on the concepts of absolute value equations. Now that we understand a little more about their graphs, we can take another look at these types of equations. Now that we can graph an absolute value function, we will learn how to solve an absolute value equation. To solve an equation such as[latex]\,8=|2x-6|,\,[/latex]we notice that the absolute value will be equal to 8 if the quantity inside the absolute value is 8 or -8. This leads to two different equations we can solve independently.

[latex]\begin{array}{ccccccc}\hfill 2x-6& =& 8\hfill & \phantom{\rule{1em}{0ex}}\text{or}\phantom{\rule{1em}{0ex}}& \hfill 2x-6& =& -8\hfill \\ \hfill 2x& =& 14\hfill & & \hfill 2x& =& -2\hfill \\ \hfill x& =& 7\hfill & & \hfill x& =& -1\hfill \end{array}[/latex]

Knowing how to solve problems involving absolute value functions is useful. For example, we may need to identify numbers or points on a line that are at a specified distance from a given reference point.

An absolute value equation is an equation in which the unknown variable appears in absolute value bars. For example,

[latex]\begin{array}{l}|x|=4,\hfill \\ |2x-1|=3,\text{or}\hfill \\ |5x+2|-4=9\hfill \end{array}[/latex]

Solutions to Absolute Value Equations

For real numbers [latex]A[/latex] and [latex]B[/latex], an equation of the form [latex]|A|=B,[/latex] with [latex]B\ge 0,[/latex] will have solutions when [latex]A=B[/latex] or [latex]A=-B.[/latex] If [latex]B<0,[/latex] the equation [latex]|A|=B[/latex] has no solution.

How To

Given the formula for an absolute value function, find the horizontal intercepts of its graph.

  1. Isolate the absolute value term.
  2. Use[latex]\,|A|=B\,[/latex]to write[latex]\,A=B\,[/latex]or[latex]\,\mathrm{-A}=B,\,[/latex]assuming[latex]\,B>0.[/latex]
  3. Solve for[latex]\,x.\,[/latex]

Finding the Zeros of an Absolute Value Function

For the function[latex]\,f\left(x\right)=|4x+1|-7,[/latex]find the values of[latex]\,x\,[/latex]such that[latex]\,f\left(x\right)=0.[/latex]

[reveal-answer q=”fs-id1165137405662″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137405662″]

[latex]\begin{array}{cccccccc}\hfill 0& =& |4x+1|-7\hfill & & & & & \text{Substitute 0 for }f\left(x\right).\hfill \\ \hfill 7& =& |4x+1|\hfill & & & & & \text{Isolate the absolute value on one side of the equation}.\hfill \\ & & & & & & & \\ & & & & & & & \\ & & & & & & & \\ \hfill 7& =& 4x+1\hfill & \text{or}& \hfill \phantom{\rule{2em}{0ex}}-7& =& 4x+1\hfill & \text{Break into two separate equations and solve}.\hfill \\ \hfill 6& =& 4x\hfill & & \hfill -8& =& 4x\hfill & \\ & & & & & & & \\ \hfill x& =& \frac{6}{4}=1.5\hfill & & \hfill x& =& \frac{-8}{4}=-2\hfill & \end{array}[/latex]

The function outputs 0 when[latex]\,x=\frac{3}{2}\,[/latex]or[latex]\,x=-2.[/latex] See (Figure).

Graph an absolute function with x-intercepts at -2 and 1.5.
Figure 8.

[/hidden-answer]

Try It

For the function[latex]\,f\left(x\right)=|2x-1|-3,[/latex]find the values of[latex]\,x\,[/latex]such that[latex]\,f\left(x\right)=0.[/latex]

[reveal-answer q=”fs-id1165137939483″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137939483″]

[latex]x=-1\,[/latex]or[latex]\,\,x=2[/latex]

[/hidden-answer]

Should we always expect two answers when solving[latex]\,|A|=B?[/latex]

No. We may find one, two, or even no answers. For example, there is no solution to[latex]\,2+|3x-5|=1.[/latex]

Access these online resources for additional instruction and practice with absolute value.

Key Concepts

  • Applied problems, such as ranges of possible values, can also be solved using the absolute value function. See (Figure).
  • The graph of the absolute value function resembles a letter V. It has a corner point at which the graph changes direction. See (Figure).
  • In an absolute value equation, an unknown variable is the input of an absolute value function.
  • If the absolute value of an expression is set equal to a positive number, expect two solutions for the unknown variable. See (Figure).

Section Exercises

Verbal

How do you solve an absolute value equation?

[reveal-answer q=”fs-id1165135206149″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135206149″]

Isolate the absolute value term so that the equation is of the form[latex]\,|A|=B.\,[/latex]Form one equation by setting the expression inside the absolute value symbol,[latex]\,A,\,[/latex]equal to the expression on the other side of the equation,[latex]\,B.\,[/latex]Form a second equation by setting[latex]\,A\,[/latex]equal to the opposite of the expression on the other side of the equation,[latex]\,-B.\,[/latex]Solve each equation for the variable.

[/hidden-answer]

How can you tell whether an absolute value function has two x-intercepts without graphing the function?

When solving an absolute value function, the isolated absolute value term is equal to a negative number. What does that tell you about the graph of the absolute value function?

[reveal-answer q=”fs-id1165134475281″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134475281″]

The graph of the absolute value function does not cross the[latex]\,x[/latex]-axis, so the graph is either completely above or completely below the[latex]\,x[/latex]-axis.

[/hidden-answer]

How can you use the graph of an absolute value function to determine the x-values for which the function values are negative?

Algebraic

Describe all numbers[latex]\,x\,[/latex]that are at a distance of 4 from the number 8. Express this set of numbers using absolute value notation.

Describe all numbers[latex]\,x\,[/latex]that are at a distance of[latex]\,\frac{1}{2}\,[/latex]from the number −4. Express this set of numbers using absolute value notation.

[reveal-answer q=”fs-id1165135356596″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135356596″]

[latex]\,|x+4|=\frac{1}{2}\,[/latex]

[/hidden-answer]

Describe the situation in which the distance that point[latex]\,x\,[/latex]is from 10 is at least 15 units. Express this set of numbers using absolute value notation.

Find all function values[latex]\,f\left(x\right)\,[/latex]such that the distance from[latex]\,f\left(x\right)\,[/latex]to the value 8 is less than 0.03 units. Express this set of numbers using absolute value notation.

[reveal-answer q=”fs-id1165137541376″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137541376″]

[latex]|f\left(x\right)-8|<0.03[/latex]

[/hidden-answer]

For the following exercises, find the x– and y-intercepts of the graphs of each function.

[latex]f\left(x\right)=4|x-3|+4[/latex]

[latex]f\left(x\right)=-3|x-2|-1[/latex]

[reveal-answer q=”fs-id1165137433352″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137433352″]

[latex]\left(0,-7\right);\,[/latex]no[latex]\,x[/latex]-intercepts

[/hidden-answer]

[latex]f\left(x\right)=-2|x+1|+6[/latex]

[latex]f\left(x\right)=-5|x+2|+15[/latex]

[reveal-answer q=”fs-id1165137427184″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137427184″]

[latex]\left(0,\,5\right),\left(1,0\right),\left(-5,0\right)[/latex]

[/hidden-answer]

[latex]f\left(x\right)=2|x-1|-6[/latex]

[reveal-answer q=”59208″]Show Solution[/reveal-answer]
[hidden-answer a=”59208″][latex]\left(0,-4\right),\left(4,0\right),\left(-2,0\right)[/latex][/hidden-answer]

[latex]f\left(x\right)=|-2x+1|-13[/latex]

[reveal-answer q=”301101″]Show Solution[/reveal-answer]
[hidden-answer a=”301101″]

[latex]\left(0,-12\right),\left(-6,0\right),\left(7,0\right)[/latex]

[/hidden-answer]

[latex]f\left(x\right)=-|x-9|+16[/latex]

[reveal-answer q=”155957″]Show Solution[/reveal-answer]
[hidden-answer a=”155957″]

[latex]\left(0,7\right),\left(25,0\right),\left(-7,0\right)[/latex]

[/hidden-answer]

Graphical

For the following exercises, graph the absolute value function. Plot at least five points by hand for each graph.

[latex]y=|x-1|[/latex]

[reveal-answer q=”637472″]Show Solution[/reveal-answer]
[hidden-answer a=”637472″]Graph of an absolute function with points at (-1, 2), (0, 1), (1, 0), (2, 1), and (3, 2).[/hidden-answer]

[latex]y=|x+1|[/latex]

[latex]y=|x|+1[/latex]

[reveal-answer q=”fs-id1165137414774″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137414774″]Graph of an absolute function with points at (-2, 3), (-1, 2), (0, 1), (1, 2), and (2, 3).[/hidden-answer]

For the following exercises, graph the given functions by hand.

[latex]y=|x|-2[/latex]

[latex]y=-|x|[/latex]

[reveal-answer q=”fs-id1165137400044″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137400044″]Graph of an absolute function.[/hidden-answer]

[latex]y=-|x|-2[/latex]

[latex]y=-|x-3|-2[/latex]

[reveal-answer q=”fs-id1165137645253″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137645253″]Graph of an absolute function.[/hidden-answer]

[latex]f\left(x\right)=-|x-1|-2[/latex]

[latex]f\left(x\right)=-|x+3|+4[/latex]

[reveal-answer q=”fs-id1165137434149″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137434149″]Graph of an absolute function.[/hidden-answer]

[latex]f\left(x\right)=2|x+3|+1[/latex]

[latex]f\left(x\right)=3|x-2|+3[/latex]

[reveal-answer q=”fs-id1165137436399″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137436399″]Graph of an absolute function.[/hidden-answer]

[latex]f\left(x\right)=|2x-4|-3[/latex]

[latex]f\left(x\right)=|3x+9|+2[/latex]

[reveal-answer q=”fs-id1165137433126″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137433126″]Graph of an absolute function.[/hidden-answer]

[latex]f\left(x\right)=-|x-1|-3[/latex]

[latex]f\left(x\right)=-|x+4|-3[/latex]

[reveal-answer q=”fs-id1165137399944″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137399944″]Graph of an absolute function.[/hidden-answer]

[latex]f\left(x\right)=\frac{1}{2}|x+4|-3[/latex]

Technology

Use a graphing utility to graph [latex]f\left(x\right)=10|x-2|[/latex] on the viewing window [latex]\left[0,4\right].[/latex] Identify the corresponding range. Show the graph.

[reveal-answer q=”fs-id1165134042934″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165134042934″]

range:[latex]\,\left[0,20\right][/latex]

Graph of an absolute function.[/hidden-answer]

Use a graphing utility to graph[latex]\,f\left(x\right)=-100|x|+100\,[/latex]on the viewing window[latex]\,\left[-5,5\right].\,[/latex]Identify the corresponding range. Show the graph.

For the following exercises, graph each function using a graphing utility. Specify the viewing window.

[latex]f\left(x\right)=-0.1|0.1\left(0.2-x\right)|+0.3[/latex]

[reveal-answer q=”fs-id1165137812573″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137812573″]

[latex]x\text{-}[/latex]intercepts:

Graph of an absolute function.[/hidden-answer]

[latex]f\left(x\right)=4×{10}^{9}|x-\left(5×{10}^{9}\right)|+2×{10}^{9}[/latex]

Extensions

For the following exercises, solve the inequality.

If possible, find all values of [latex]a[/latex] such that there are no [latex]x\text{-}[/latex]intercepts for [latex]f\left(x\right)=2|x+1|+a.[/latex]

If possible, find all values of[latex]\,a\,[/latex]such that there are no [latex]\,y[/latex]-intercepts for[latex]\,f\left(x\right)=2|x+1|+a.[/latex]

[reveal-answer q=”fs-id1165137648025″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165137648025″]

There is no solution for[latex]\,a\,[/latex]that will keep the function from having a[latex]\,y[/latex]-intercept. The absolute value function always crosses the [latex]\,y[/latex]-intercept when[latex]\,x=0.[/latex]

[/hidden-answer]

Real-World Applications

Cities A and B are on the same east-west line. Assume that city A is located at the origin. If the distance from city A to city B is at least 100 miles and[latex]\,x\,[/latex]represents the distance from city B to city A, express this using absolute value notation.

The true proportion[latex]\,p\,[/latex]of people who give a favorable rating to Congress is 8% with a margin of error of 1.5%. Describe this statement using an absolute value equation.

[reveal-answer q=”fs-id1165135431083″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135431083″]

[latex]|p-0.08|\le 0.015[/latex]

[/hidden-answer]

Students who score within 18 points of the number 82 will pass a particular test. Write this statement using absolute value notation and use the variable[latex]\,x\,[/latex]for the score.

A machinist must produce a bearing that is within 0.01 inches of the correct diameter of 5.0 inches. Using[latex]\,x\,[/latex]as the diameter of the bearing, write this statement using absolute value notation.

[reveal-answer q=”fs-id1165135192953″]Show Solution[/reveal-answer]
[hidden-answer a=”fs-id1165135192953″]
[latex]|x-5.0|\le 0.01[/latex][/hidden-answer]

The tolerance for a ball bearing is 0.01. If the true diameter of the bearing is to be 2.0 inches and the measured value of the diameter is[latex]\,x\,[/latex]inches, express the tolerance using absolute value notation.

License

Icon for the Creative Commons Attribution 4.0 International License

PPSC MAT 1420: Algebra and Trigonometry by OpenStax is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book