3.6 Absolute Value Functions

NoteLearning Objectives

In this section, you will:

  • Graph an absolute value function.
  • Solve an absolute value equation.

The majestic Andromeda Galaxy (M31), our closest large galactic neighbor, with its faint spiral arms and bright core, surrounded by a myriad of stars in the vast cosmic expanse. Two smaller companion galaxies are also visible near M31.

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.

3.6.1 Understanding Absolute Value

Recall that in its basic form \(f(x) = |x|,\) 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.

NoteAbsolute Value Function

The absolute value function can be defined as a piecewise function

\[f(x) = |x| = \left\{ \begin{matrix} x & \text{if} & {x \geq 0} \\ {- x} & \text{if} & {x < 0} \end{matrix} \right.\]

TipExample 1 — 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 \(\text{±1\%,}\mspace{9mu} \pm \text{5\%,}\) or \(\pm \text{10\%}\text{.}\)

Suppose we have a resistor rated at 680 ohms, \(\pm 5\%.\) Use the absolute value function to express the range of possible values of the actual resistance.

Solution (click to reveal)

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 \(R\) in ohms,

\[\left| R - 680 \middle| \leq 34 \right.\]

WarningTry It #1

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

Solution (click to reveal)

using the variable \(p\) for passing, \(\left| {p - 80} \right| \leq 20\)

3.6.2 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 2.

Graph of the absolute value function y = |x| on a coordinate plane. The V-shaped graph has its vertex at the origin, with the left ray going through (negative 4, 4) and the right ray going through (4, 4).

Figure 2

Figure 3 shows the graph of \(y = 2\left| {x–3} \right| + 4.\) The graph of \(y = |x|\) 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 \(\left( {3,4} \right)\) for this transformed function.

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

Figure 3

TipExample 2 — Writing an Equation for an Absolute Value Function Given a Graph

Write an equation for the function graphed in Figure 4.

Graph of an absolute value function on a coordinate plane. The V-shaped graph has its vertex at (3, negative 2), with the left ray rising to the left through (negative 1, 4) and the right ray rising to the right through (5, 0).

Figure 4

Solution (click to reveal)

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 5.

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 6.

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

\[\begin{array}{rcll} {f(x)} & = & \left. 2 \middle| x - 3 \middle| - 2, \right. & {\quad\text{treating~the~stretch~as~}a\mspace{9mu}\text{vertical~stretch,or}} \\ {f(x)} & = & \left| 2(x - 3) \middle| - 2, \right. & {\quad\text{treating~the~stretch~as~}a\mspace{9mu}\text{horizontal~compression}.} \end{array}\]

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. Note also that if the vertical stretch factor is negative, there is also a reflection about the x-axis.

NoteQ&A

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 \(x\) and \(f(x).\)

\[\left. f(x) = a \middle| x - 3 \middle| - 2 \right.\]

Now substituting in the point (1, 2)

\[\begin{array}{rcl} 2 & = & \left. a \middle| 1 - 3 \middle| - 2 \right. \\ 4 & = & {2a} \\ a & = & 2 \end{array}\]

WarningTry It #2

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

Solution (click to reveal)

\(f(x) = - \left| {x + 2} \right| + 3\)

NoteQ&A

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 7).

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.

3.6.3 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 \(8 = \left| {2x - 6} \right|,\) 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.

\[\begin{array}{rclcrcl} {2x - 6} & = & 8 & {\quad\text{or}\quad} & {2x - 6} & = & -8 \\ {2x} & = & 14 & & {2x} & = & -2 \\ x & = & 7 & & x & = & -1 \end{array}\]

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,

\[\begin{array}{l} \left| x \middle| = 4, \right. \\ \left| 2x - 1 \middle| = 3,\text{or} \right. \\ \left| 5x + 2 \middle| - 4 = 9 \right. \end{array}\]

NoteSolutions to Absolute Value Equations

For real numbers \(A\) and \(B\) , an equation of the form \(\left| A \middle| = B, \right.\) with \(B \geq 0,\) will have solutions when \(A = B\) or \(A = - B.\) If \(B < 0,\) the equation \(\left| A \middle| = B \right.\) has no solution.

ImportantHow To

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

  1. Isolate the absolute value term.
  2. Use \(|A| = B\) to write \(A = B\) or \({-A} = B,\) assuming \(B > 0.\)
  3. Solve for \(x.\)
TipExample 3 — Finding the Zeros of an Absolute Value Function

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

Solution (click to reveal)

\[\begin{matrix} 0 & = & \left| 4x + 1 \middle| - 7 \right. & & & & & {\text{Substitute~0~for~}f(x).} \\ 7 & = & |4x + 1| & & & & & {\text{Isolate~the~absolute~value~on~one~side~of~the~equation}.} \\ & & & & & & & \\ & & & & & & & \\ & & & & & & & \\ 7 & = & {4x + 1} & \text{or} & {\qquad-7} & = & {4x + 1} & {\text{Break~into~two~separate~equations~and~solve}.} \\ 6 & = & {4x} & & -8 & = & {4x} & \\ & & & & & & & \\ x & = & {\frac{6}{4} = 1.5} & & x & = & {\frac{- 8}{4} = - 2} & \end{matrix}\]

The function outputs 0 when \(x = \frac{3}{2}\) or \(x = - 2.\) See Figure 8.

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

Figure 8

WarningTry It #3

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

Solution (click to reveal)

\(x = - 1\) or \(x = 2\)

NoteQ&A

Should we always expect two answers when solving \(|A| = B?\)

No. We may find one, two, or even no answers. For example, there is no solution to \(2 + \left| {3x - 5} \right| = 1.\)

NoteMedia

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

Section Exercises

Verbal

1. How do you solve an absolute value equation?

Solution (click to reveal)

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

2. How can you tell whether an absolute value function has two \(x\)-intercepts without graphing the function?

3. 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?

Solution (click to reveal)

The graph of the absolute value function does not cross the \(x\) -axis, so the graph is either completely above or completely below the \(x\) -axis.

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

Algebraic

5. Describe all numbers \(x\) that are at a distance of 4 from the number 8. Express this set of numbers using absolute value notation.

Solution (click to reveal)

The distance from x to 8 can be represented using the absolute value statement: ∣ x − 8 ∣ = 4.

6. Describe all numbers \(x\) that are at a distance of \(\frac{1}{2}\) from the number −4. Express this set of numbers using absolute value notation.

7. Describe the situation in which the distance that point \(x\) is from 10 is at least 15 units. Express this set of numbers using absolute value notation.

Solution (click to reveal)

∣ x − 10 ∣ ≥ 15

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

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

9. \(f(x) = 4\left| {x - 3} \right| + 4\)

Solution (click to reveal)

There are no x-intercepts.

10. \(f(x) = - 3\left| {x - 2} \right| - 1\)

11. \(f(x) = - 2\left| {x + 1} \right| + 6\)

Solution (click to reveal)

(−4, 0) and (2, 0)

12. \(\left. f(x) = - 5 \middle| x + 2 \middle| + 15 \right.\)

13. \(\left. f(x) = 2 \middle| x - 1 \middle| - 6 \right.\)

Solution (click to reveal)

\((0, - 4),(4,0),( - 2,0)\)

14. \(\left. f(x) = \middle| - 2x + 1 \middle| - 13 \right.\)

15. \(\left. f(x) = - \middle| x - 9 \middle| + 16 \right.\)

Solution (click to reveal)

\((0,7),(25,0),( - 7,0)\)

Graphical

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

16. \(\left. y = \middle| x - 1 \right|\)

17. \(\left. y = \middle| x + 1 \right|\)

Solution (click to reveal)

A V-shaped graph with a vertex at (-1, 0), showing points (-3, 2), (-2, 1), (0, 1), and (1, 2).

18. \(\left. y = \middle| x \middle| + 1 \right.\)

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

19. \(y = |x| - 2\)

Solution (click to reveal)

A V-shaped graph is displayed on a Cartesian coordinate system. The x-axis ranges from -5 to 4, and the y-axis ranges from -3 to 5. The vertex of the graph is at the point (0, -2). The graph opens upwards, passing through the x-axis at (-2, 0) and (2, 0). The line segment for x < 0 has a slope of -1, and the line segment for x > 0 has a slope of 1. Arrows on both ends indicate that the graph extends indefinitely, representing the function y = |x| - 2.

20. \(y = - |x|\)

21. \(y = - |x| - 2\)

Solution (click to reveal)

A graph showing a V-shaped function on a Cartesian coordinate system, with its vertex located at (0, -2).

22. \(y = - \left| {x - 3} \right| - 2\)

23. \(\left. f(x) = - \middle| x - 1 \middle| - 2 \right.\)

Solution (click to reveal)

A graph on a coordinate plane displays a V-shaped function. The vertex of the V is located at the point (0, -2). From this vertex, one arm of the V extends downwards and to the left, passing through approximately (-2, -4), and the other arm extends downwards and to the right, passing through approximately (2, -4). Both arms are indicated with arrows, signifying that the function continues indefinitely in those directions. The coordinate plane shows x-axis values from -5 to 5 and y-axis values from -7 to 5, with grid lines at each integer increment.

24. \(\left. f(x) = - \middle| x + 3 \middle| + 4 \right.\)

25. \(\left. f(x) = 2 \middle| x + 3 \middle| + 1 \right.\)

Solution (click to reveal)

A graph showing an absolute value function in a V-shape. The vertex of the function is located at the point (-3, 1), and the graph opens upwards on a coordinate plane.

26. \(f(x) = 3\left| {x - 2} \right| + 3\)

27. \(f(x) = \left| {2x - 4} \right| - 3\)

Solution (click to reveal)

A graph displays an absolute value function, forming a V-shape on a Cartesian coordinate plane. The x-axis is labeled from -6 to 5, and the y-axis is labeled from -6 to 6. The graph has its vertex at (2, -3) and opens upwards, passing through points such as (0, 1), (1, -1), (3, -1), and (4, 1).

28. \(f(x) = \left| {3x + 9} \right| + 2\)

29. \(f(x) = - \left| {x - 1} \right| - 3\)

Solution (click to reveal)

A coordinate plane shows an absolute value function graphed as a V-shape opening downwards. The x-axis ranges from -6 to 5, and the y-axis ranges from -6 to 6. The vertex of the V-shape is located at the point (1, -3). The two linear segments extend downwards and outwards from the vertex, with arrows indicating that the graph continues indefinitely.

30. \(f(x) = - \left| {x + 4} \right| - 3\)

31. \(f(x) = \frac{1}{2}\left| {x + 4} \right| - 3\)

Solution (click to reveal)

A graph on a coordinate plane shows a V-shaped function. The vertex of the V is located at the point (-4, -3). From this vertex, two arms extend upwards, with arrows indicating they continue infinitely.

Technology

32. Use a graphing utility to graph \(\left. f(x) = 10 \middle| x - 2 \right|\) on the viewing window \(\left\lbrack {0,4} \right\rbrack.\) Identify the corresponding range. Show the graph.

33. Use a graphing utility to graph \(\left. f(x) = - 100 \middle| x \middle| + 100 \right.\) on the viewing window \(\left\lbrack {- 5,5} \right\rbrack.\) Identify the corresponding range. Show the graph.

Solution (click to reveal)

range: \(\lbrack –400{,}100\rbrack\)

Graph of f(x) = negative 100|x| + 100 on a coordinate plane with viewing window [negative 5, 5]. The inverted V-shaped graph has its vertex at (0, 100), with the left ray descending through (negative 5, negative 400) and the right ray descending through (5, negative 400).

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

34. \(f(x) = - 0.1\left| {0.1(0.2 - x)} \right| + 0.3\)

35. \(f(x) = 4 \times 10^{9}\left| {x - \left( 5 \times 10^{9} \right)} \right| + 2 \times 10^{9}\)

Solution (click to reveal)

Graph of the absolute value function f(x) = 4 times 10 to the 9th times |x minus 5 times 10 to the 9th| + 2 times 10 to the 9th on a coordinate plane with large-scale axes. The V-shaped graph has its vertex at (5 times 10 to the 9th, 2 times 10 to the 9th), with both rays extending upward.

Extensions

For the following exercises, solve the inequality.

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

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

Solution (click to reveal)

There is no solution for \(a\) that will keep the function from having a \(y\) -intercept. The absolute value function always crosses the \(y\) -intercept when \(x = 0.\)

Real-World Applications

38. 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 \(x\) represents the distance from city B to city A, express this using absolute value notation.

39. The true proportion \(p\) 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.

Solution (click to reveal)

\(\left| {p - 0.08} \right| \leq 0.015\)

40. 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 \(x\) for the score.

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

Solution (click to reveal)

\(\left| {x - 5.0} \right| \leq 0.01\)

42. 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 \(x\) inches, express the tolerance using absolute value notation.