Login
📚 Modeling, Functions, and Graphs
Chapters ▾

2.5 The Absolute Value Function

Introduction

The absolute value function is used to model problems involving distance. Recall that the absolute value of a number gives the distance from the origin to that number on the number line.

For example, the equation | x 2 | = 6 means "the distance between x and 2 is 6 units." The number x could be to the left or the right of 2 on the number line. Thus, the equation has two solutions, 8 and 4 , as shown below.

number line showing 6 units from 2

To find the absolute value of a number, we can

_____

To find the absolute value of a number, we can find its distance from 0.

To find the absolute value of a number, we can

  1. change its sign.
  2. subtract it from 0.
  3. find its distance from 0.
  4. square it.

The notation | x 3 | = 5 means

_____

The notation | x 3 | = 5 means that the distance between x and 3 is 5 units.

The notation   | x 3 | = 5   means

  1. x is 3 units bigger than 5.
  2. the distance between x and 5 is 3 units.
  3. 5 and 3 are x units apart.
  4. the distance between x and 3 is 5 units.

Write each statement using absolute value notation; then illustrate the solutions on a number line.

  1. x is five units away from 3 .
    _____ = _____
  2. x is at least six units away from 4 .
    _____ _____

Use "abs(x)" to get | x | , etc.

  1. | x + 3 | = 5
    A number line is shown below.
  2. | x 4 | 6
    A number line is shown below.

Number lines:

  1. number line
  2. number line

Write each statement using absolute value notation; then illustrate the solutions on a number line.

  1. x is five units away from 3 .
  2. x is at least six units away from 4 .
  1. | x + 3 | = 5
    number line showing 5 units from -3
  2. | x 4 | 6
    number line showing 6 units from 4

Absolute Value Equations

We can use distances on a number line to solve simple equations such as

| 3 x 6 | = 9

First, we factor out the coefficient of x , to get   | 3 ( x 2 ) | = 9 . Because of the multiplicative property of the absolute value, namely that | a b | = | a | | b | , we can write the left side as

| 3 | | x 2 | = 9 3 | x 2 | = 9 Divide both sides by 3. | x 2 | = 3

which tells us that the distance between x and 2 is 3 units, so the solutions are x = 1 and x = 5 .

Alternatively, we can use graphs when working with absolute values. For example, we know that the simple equation | x | = 5 has two solutions, x = 5 and x = 5 .

In fact, we can see from the graph at right that the equation | x | = k has two solutions if k > 0 , one solution if k = 0 , and no solution if k < 0 .

abs value graph and horizontal line

Which statement is true?

_____

Depending on x , | 2 x 8 | can equal 2 x 8 or 8 2 x .

Which statement is true?

  1. The graph of   y = | 2 x 8 |   has no negative inputs.
  2. The equation   | 2 x 8 | = 4   has two solutions.
  3. Depending on   x ,       | 2 x 8 |   can equal 2 x 8 or 8 2 x .
  4. The graph of   y = | 2 x 8 |   is a straight line.
  1. The graph of y = | 2 x + 7 | is
    _____
  2. Use your graph to solve the equation | 2 x + 7 | = 11 .
    x = _____

Separate different values with a comma.

  1. A graph is also shown below for part (b).
  2. x = 9 or x = 2

A graph for part (b):

abs(2x+7)
  1. Graph   y = | 2 x + 7 |   for   12 x 8 .
  2. Use your graph to solve the equation   | 2 x + 7 | = 11 .
  1. abs(2x+7)
  2. x = 9 or x = 2

To solve an absolute value equation algebraically, we use the definition of absolute value.

In general, we have the following strategy for solving absolute value equations.

Solve | 2 x + 7 | = 11 algebraically.

x = _____

Separate different values with a comma.

x = 9 or x = 2

Solve   | 2 x + 7 | = 11   algebraically.

The absolute value equation is equivalent to two regular equations:

2 x + 7 = 11        or        2 x + 7 = 11

whose solutions are x = 9 or x = 2

Explain how the equation | a x + b | = c can have two solutions, one solution, or no solutions.

_____

Explain how the equation   | a x + b | = c   can have two solutions, one solution, or no solutions.

Absolute Value Inequalities

We can also use graphs to solve absolute value inequalities. Look again at the graph of   y = | 3 x 6 |   in figure (a) below.

abs-3x-6

Because of the V-shape of the graph, all points with y -values less than 9 lie between the two solutions of   | 3 x 6 | = 9   , that is, between 1 and 5 . Thus, the solutions of the inequality   | 3 x 6 | < 9   are 1 < x < 5 . (In the Homework Problems, you will be asked to show this algebraically.)

On the other hand, to solve the inequality   | 3 x 6 | > 9   , we look for points on the graph with y -values greater than 9 . In figure (b), we see that these points have x -values outside the interval between 1 and 5 . In other words, the solutions of the inequality   | 3 x 6 | > 9   are x < 1 or x > 5 .

Thus, we can solve an absolute value inequality by first solving the related equation.

If | x 3 | > 5 , then

_____

If | x 3 | > 5 , then either x 3 > 5 or x 3 < 5 .

If   | x 3 | > 5   , then

  1. either   x 3 > 5   or   x 3 > 5 .
  2.   5 > x 3 > 5 .
  3. either   x 3 > 5   or   x 3 < 5 .
  4.   5 > x 3 < 5 .
  1. Solve the inequality | 2 x + 7 | < 11
    _____
  2. Solve the inequality | 2 x + 7 | > 11
    _____

You may use inequality symbols or enter your answers using interval notation. When using interval notation, use "inf" for and use "U" (an upper case letter u) for the union symbol .

  1. ( 9 , 2 ) , or 9 < x < 2
  2. ( , 9 ) ( 2 , ) ; as inequalities, x < 9 or x > 2
  1. Solve the inequality   | 2 x + 7 | < 11
  2. Solve the inequality   | 2 x + 7 | > 11
  1. ( 9 , 2 ) , or 9 < x < 2
  2. ( , 9 ) ( 2 , ) ; as inequalities, x < 9 or x > 2

Using the Absolute Value in Modeling

In the next Example, we use the absolute value function to model a problem about distances.

graph of distance from mall
  1. Use the graph above from the previous example to determine how far Marlene has driven when she is within 5 miles of the mall. Write and solve an absolute value inequality to verify your answer.
    Inequality: _____ < _____ Note: Use "abs(x)" to get | x | .
    Solution: _____
  2. Write and solve an absolute value inequality to determine how far Marlene has driven when she is at least 10 miles from the mall.
    Inequality: _____ _____ Note: Use "abs(x)" to get | x | .
    Solution: _____

You may enter your solutions using inequality symbols or using interval notation. When using inequalities, type in "<=" for , and type in ">=" for . When using interval notation, type "inf" for and type "U" (an upper case letter u) for the union symbol .

  1. | x 15 | < 5 ;   10 < x < 20
    A graph is below.
  2. | x 15 | 10 ;   x 5   or   x 25
    A graph is below.

Graphs are below.

  1. absolute value inequality
  2. absolute value inequality
  1. Use the graph above from the previous example to determine how far Marlene has driven when she is within 5 miles of the mall. Write and solve an absolute value inequality to verify your answer.
  2. Write and solve an absolute value inequality to determine how far Marlene has driven when she is at least 10 miles from the mall.
  1. | x 15 | < 5 ;   10 < x < 20
    absolute value inequality
  2. | x 15 | 10 ;   x 5   or   x 25
    absolute value inequality

Measurement Error

If you weigh a sample in chemistry lab, the scale’s digital readout might show 6.0 grams. But it is unlikely that the sample weighs exactly 6 grams; there is always some error in measured values.

Because the scale shows the weight as 6.0 grams, we know that the true weight of the sample must be between 5.95 grams and 6.05 grams: If the weight were less than 5.95 grams, the scale would round down to 5.9 grams, and if the weight were more than 6.05 grams, the scale would round up to 6.1 grams. We should report the mass of the sample as 6 ± 0.05 grams, which tells the reader that the error in the measurement is no more than 0.05 grams.

We can also describe this measurement error, or error tolerance, using an absolute value inequality. Because the measured mass m can be no more than 0.05 from 6 , we write

| m 6 | 0.05

Note that the solution of this inequality is 5.95 m 6.05 .

Which statement is false?

_____

"The solutions of | 3 x + 12 | > 6 form a closed interval" is a false statement.

Which statement is false?

  1. The equation   | 3 x + 12 | = 0   has one solution.
  2. The statement   | T 0.1 | < 0.05   describes an error tolerance of 0.05 units.
  3.   | m x + b | < k   is equivalent to   k < m x + b < k .
  4. The solutions of   | 3 x + 12 | > 6   form a closed interval.

The temperature, T , in a laboratory must remain between 9 C and 12 C .

  1. Write the error tolerance as an absolute value inequality.
    Inequality: _____ < _____ Note: Use "abs(x)" to get | x | .
  2. For a special experiment, the temperature in degrees celsius must satisfy | T 6.7 | 0.03 . Give the interval of possible temperatures.
    Interval: _____

You may enter your solutions using inequality symbols or using interval notation. When using inequalities, type in "<=" for , and type in ">=" for . When using interval notation, type "inf" for and type "U" (an upper case letter u) for the union symbol .

  1. | T 10.5 | < 1.5
  2. 6.67 T 6.73

The temperature, T , in a laboratory must remain between 9 C and 12 C .

  1. Write the error tolerance as an absolute value inequality.
  2. For a special experiment, the temperature in degrees celsius must satisfy   | T 6.7 | 0.03 . Give the interval of possible temperatures.
  1. | T 10.5 | < 1.5
  2. 6.67 T 6.73

What is error tolerance used for, and why do we need it?

_____

What is error tolerance used for, and why do we need it?

Section Summary

Vocabulary

Look up the definitions of new terms in the Glossary.

  • Absolute value equation
  • Absolute value inequality
  • Error tolerance

CONCEPTS

  1. The absolute value is used to model distance: The distance between two points x and a is given by | x a | .
  2. The error tolerance e in a measurement M can be expressed as | x M | < e , or as x = M ± e . Both indicate that M e < x < M + e .

STUDY QUESTIONS

  1. Write a function that models the distance between x and a fixed point k on the number line.
  2. For what values of c does the equation | a x + b | = c have one solution? No solution?
  3. If you know that the solutions of | a x + b | < c are 3 < x < 6 , what are the solutions of | a x + b | > c ?
  4. What is the center of the interval [ 220 , 238 ] ?
  5. What is the center of the interval [ a , b ] ?

SKILLS

Practice each skill in the Homework problems listed.

  1. Use absolute value notation to write statements about distance: #1–8
  2. Use graphs to solve absolute value equations and inequalities: #9–12
  3. Solve absolute value equations: #13–24
  4. Solve absolute value inequalities: #25–40
  5. Express error tolerances using absolute value notation: #41–48
  6. Analyze absolute value functions: #49–56
  7. Model problems about distance using the absolute value function: #57–60

Homework 2.5

In Problems 1–8,

  1. Use absolute value notation to write each expression as an equation or an inequality. (It may be helpful to restate each sentence using the word distance.)
  2. Illustrate the solutions on a number line.

x is six units from the origin.

  1. | x | = 6
  2. number line

a is seven units from the origin.

The distance from p to 3 is five units.

  1. | p + 3 | = 5
  2. number line

The distance from q to 7 is two units.

t is within three units of 6 .

  1. | t 6 | < 3
  2. number line

w is no more than one unit from 5 .

b is at least 0.5 unit from 1 .

  1. | b + 1 | 0.5
  2. number line

m is more than 0.1 unit from 8 .

Graph y = | x + 3 | . Use your graph to solve the following equations and inequalities.

  1. | x + 3 | = 2
  2. | x + 3 | 4
  3. | x + 3 | > 5
absolute value graph
  1. x = 5 or x = 1
  2. 7 x 1
  3. x < 8 or x > 2

Graph y = | x 2 | . Use your graph to solve the following equations and inequalities.

  1. | x 2 | = 5
  2. | x 2 | < 8
  3. | x 2 | 4

Graph y = | 2 x 8 | . Use your graph to solve the following equations and inequalities.

  1. | 2 x 8 | = 0
  2. | 2 x 8 | = 2
  3. | 2 x 8 | < 6
absolute value graph
  1. x = 4
  2. No solution
  3. No solution

Graph y = | 4 x + 8 | . Use your graph to solve the following equations and inequalities.

  1. | 4 x + 8 | = 0
  2. | 4 x + 8 | < 0
  3. | 4 x + 8 | > 3

For Problems 13–24, solve.

| 2 x 1 | = 4

x = 3 2 or x = 5 2

| 3 x 1 | = 5

0 = | 7 + 3 q |

q = 7 3

| 11 5 t | = 0

4 = | b + 2 | 3

b = 14 or b = 10

6 | n + 2 | = 9

| 2 ( w 7 ) | = 1

w = 13 2 or w = 15 2

2 = | a 4 5 |

| c 2 | + 3 = 1

No solution

5 = 4 | h + 3 |

7 = | 2 m + 3 |

No solution

| 5 r 3 | = 2

For Problems 25–36, solve.

| 2 x + 6 | < 3

9 2 < x < 3 2

| 5 3 x | 1

7 | 3 2 d |

d 2   or   d 5

10 < | 3 r + 2 |

| 6 s + 15 | > 3

All real numbers

| 8 b 12 | < 4

| t 1.5 | < 0.1

1.4 < t < 1.6

| z 2.6 | 0.1

| T 3.25 | 0.05

T 3.2   or   T 3.3

| P 0.6 | > 0.01

1 | n 3 2 |

No solution

0.1 | 9 ( p + 2 ) |

In Problems 37–40, give an interval of possible values for the measurement.

The length, l , of a rod is given by | l 4.3 | < 0.001 , in centimeters.

4.299 < l < 4.301

The mass, m , of the device shall be | m 450 | < 4 , in grams.

The candle will burn for t minutes, where | t 300 | 50 .

250 t 350

The ramp will have angle of inclination α , and | α 10 | 0.5 .

In Problems 41–44, write the error tolerance using absolute values.

The chemical compound must be maintained at a temperature, T , between 4.7 and 5.3 C.

| T 5 | < 0.3

The diameter, d , of the hole shall be in the range of 24.98 to 25.02 centimeters.

The subject will receive a dosage D from 95 to 105 milligrams of the drug.

| D 100 | 5

The pendulum swings out and back in a time period t between 0.9995 and 1.0005 seconds.

An electrical component of a high-tech sensor requires 0.25 ounce of gold. Assume that the actual amount of gold used, g , is not in error by more than 0.001 ounce. Write an absolute value inequality for the possible error and show the possible values of g on a number line.

| g 0.25 | 0.001

number line

In a pasteurization process, milk is to be irradiated for 10 seconds. The actual period t of irradiation cannot be off by more than 0.8 second. Write an absolute value inequality for the possible error and show the possible values of t on a number line.

In a lab assignment, a student reports that a chemical reaction required 200 minutes to complete. Let t represent the actual time of the reaction.

  1. Write an absolute value inequality for t , assuming that the student rounded his answer to the nearest 100 minutes. Give the smallest and largest possible value for t .
  2. Write an absolute value inequality for t , assuming that the student rounded his answer to the nearest minute. Give the smallest and largest possible value for t .
  3. Write an absolute value inequality for t , assuming that the student rounded his answer to the nearest 0.1 minute. Give the smallest and largest possible value for t .

What is the shortest time that would round to 200 minutes? The greatest time?

  1. | t 200 | < 50 ,   150 t < 250
  2. | t 200 | < 0.5 ,   199.5 t < 200.5
  3. | t 200 | < 0.05 ,   199.95 t < 200.05

An espresso machine has a square metal plate. The side of the plate is 2 ± 0.01 cm.

  1. Write an absolute value inequality for the length of the side, s . Give the smallest and largest possible value for s .
  2. Compute the smallest and largest possible area of the plate, including units.
  3. Write an absolute value inequality for the area, A .
  1. Write the piecewise definition for | 3 x 6 | .
  2. Use your answer to part (a) to write two inequalities that together are equivalent to | 3 x 6 | < 9 .
  3. Solve the inequalities in part (b) and check that the solutions agree with the solutions of | 3 x 6 | < 9 .
  4. Show that | 3 x 6 | < 9 is equivalent to the compound inequality 9 < 3 x 6 < 9 .
  1. | 3 x 6 | = { ( 3 x 6 ) if  x < 2 3 x 6 if  x 2
  2. ( 3 x 6 ) 9 ,   3 x 6 < 9
  3. 1 < x < 5
  4. The solutions are the same.
  1. Write the piecewise definition for | 3 x 6 | .
  2. Use your answer to part (a) to write two inequalities that together are equivalent to | 3 x 6 | > 9 .
  3. Solve the inequalities in part (b) and check that the solutions agree with the solutions of | 3 x 6 | > 9 .
  4. Show that | 3 x 6 | > 9 is equivalent to the compound inequality 3 x 6 < 9   or   3 x 6 > 9 .
  1. Write the piecewise definition for | 2 x + 5 | .
  2. Use your answer to part (a) to write two inequalities that together are equivalent to | 2 x + 5 | > 7 .
  3. Solve the inequalities in part (b) and check that the solutions agree with the solutions of | 2 x + 5 | > 7 .
  4. Show that | 2 x + 5 | > 7 is equivalent to the compound inequality 2 x + 5 < 7   or   2 x + 5 > 7 .
  1. | 2 x + 5 | = { ( 2 x + 5 ) if  x < 5 2 2 x + 5 if  x 5 2
  2. ( 2 x + 5 ) > 7 ,   2 x + 5 > 7
  3. x < 6 or   x > 1
  4. The solutions are the same.
  1. Write the piecewise definition for | 2 x + 5 | .
  2. Use your answer to part (a) to write two inequalities that together are equivalent to | 2 x + 5 | < 7 .
  3. Solve the inequalities in part (b) and check that the solutions agree with the solutions of | 2 x + 5 | < 7 .
  4. Show that | 2 x + 5 | < 7 is equivalent to the compound inequality 7 < 2 x + 5 < 7 .

For Problems 53–56, graph the function and answer the questions.

f ( x ) = | x + 4 | + | x 4 |

  1. Using your graph, write a piecewise formula for f ( x ) .
  2. Experiment by graphing g ( x ) = | x + p | + | x q | for different positive values of p and q . Make a conjecture about how the graph depends on p and q .
  3. Write a piecewise formula for g ( x ) = | x + p | + | x q | .
piecewise linear
  1. f ( x ) = { 2 x , x < 4 8 , 4 x 4 2 x , x > 4
  2. The graphs looks like like a trough. The middle horizontal section is y = p + q for p x q , the left side, x < p , has slope 2 and the right side, x > q , has slope 2 .
  3. g ( x ) = { 2 x + q p , x < p p + q , p x q 2 x + p q , x > q

f ( x ) = | x + 4 | | x 4 |

  1. Using your graph, write a piecewise formula for f ( x ) .
  2. Experiment by graphing g ( x ) = | x + p | | x q | for different positive values of p and q . Make a conjecture about how the graph depends on p and q .

f ( x ) = | x + 4 | + | x | + | x 4 |

  1. Using your graph, write a piecewise formula for f ( x ) .
  2. What is the minimum value of f ( x ) ?
  3. If p , q 0 , what is the minimum value of g ( x ) = | x + p | + | x | + | x q | ?
piecewise linear
  1. f ( x ) = { 3 x , x < 4 x + 8 , 4 x 0 x + 8 , 0 < x < 4 3 x , x 4
  2. 8
  3. p + q

f ( x ) = | x + 4 | | x | + | x 4 |

  1. Using your graph, write a piecewise formula for f ( x ) .
  2. What is the minimum value of f ( x ) ?
  3. If p , q 0 , what is the minimum value of g ( x ) = | x + p | | x | + | x q | ?

Problems 57–60 use the absolute value function to model distance. Use the strategy outlined in Problems 57 and 58 to solve Problems 59 and 60.

A small pottery is setting up a workshop to produce mugs. Three machines are located on a long table, as shown in the figure. The potter must use each machine once in the course of producing a mug. Let x represent the coordinate of the potter's station.

three machines on number line
  1. Write expressions for the distance from the potter's station to each of the machines.
  2. Write a function that gives the sum of the distances from the potter's station to the three machines.
  3. Graph your function for 20 x 30 . Where should the potter stand in order to minimize the distance she must walk to the machines?
  1. | x + 12 | , | x + 4 | , | x 24 |
  2. f ( x ) = | x + 12 | + | x + 4 | + | x 24 |
  3. piecewise linear

    At x -coordinate 4

Suppose the pottery in Problem 57 adds a fourth machine to the procedure for producing a mug, located at x = 16 in the figure.

  1. Write and graph a new function for the sum of the potter's distances to the four machines.
  2. Where should the potter stand now to minimize the distance she has to walk while producing a mug?

Richard and Marian are moving to Parkville to take jobs after they graduate. The main road through Parkville runs east and west, crossing a river in the center of town. Richard's job is located 10 miles east of the river on the main road, and Marian's job is 6 miles west of the river. There is a health club they both like located 2 miles east of the river. If they plan to visit the health club every workday, where should Richard and Marian look for an apartment to minimize their total daily driving distance?

2 miles east of the river

Romina's Bakery has just signed contracts to provide baked goods for three new restaurants located on Route 28 outside of town. The Coffee Stop is 2 miles north of town center, Sneaky Pete's is 8 miles north, and the Sea Shell is 12 miles south. Romina wants to open a branch bakery on Route 28 to handle the new business, with separate days for each restaurant's weekly delivery. Where should she locate the bakery in order to minimize the distance she must drive for deliveries?

Modeling, Functions, and Graphs by Katherine Yoshiwara (yoshiwarabooks.org), GNU Free Documentation License 1.2 or later. Adapted for the XYZ HTML edition with the authors' permission (recorded 2026-07-04). License: GFDL-1.2-or-later.