The Absolute Value Function


The Absolute Value of a Number

Recall

The absolute value of a number is the number's distance from \(0\) along the real number line; it is the number with the sign ignored.

For example, the absolute value of \(3\) is \(3\); the absolute value of \(-1.4\) is \(1.4\); and the absolute value of \(0\) is \(0\).


Explore This 1



Explore This 1 Summary

In Explore This 1, you may have noticed that the distance between two numbers

  • is always positive, and
  • is the absolute value of the difference between the two numbers.

Absolute Value Notation

The absolute value of a number is used frequently in mathematics. As a result, notation has been developed. To indicate the absolute value of a number, write the number between two vertical bars, refered to as "absolute value bars." For example,

  • the absolute value of \(3\) is \(\lvert3 \rvert = 3\),
  • the absolute value of \(-1.4\) is \(|{-1.4}|=1.4\), and
  • the absolute value of \(0\) is \(\vert 0 \rvert = 0\).

In terms of order of operations, absolute value bars are on the same level as brackets.

Example 1

Evaluate.

  1. \(3 \lvert 5-2(3) \rvert +2\)
  2. \(-2 \lvert -5-6 \rvert + \lvert 4-1 \rvert\)
  3. \(6 \big\lvert 5-\lvert-8\rvert \big\rvert\)

Solution — Part A

Evaluate \(3| 5-2(3)| +2\) 

The correct order of operations requires that we evaluate \(5-2(3)\) first:

\(\begin{align*} 3 \lvert 5-2(3) \rvert +2 &= 3 \lvert -1 \rvert +2\\ &=3(1)+2\\ &=5 \end{align*}\)

Solution — Part B

Evaluate \(-2|{-5}-6|+|4-1|\) 

The correct order of operations requires that we evaluate \(-5-6\) and \(4-1\) first:

\(\begin{align*} -2 \lvert {-5}-6 \rvert + \lvert 4-1 \rvert &= -2 \lvert -11 \rvert + \lvert 3 \rvert\\ &= -2(11)+3\\ &= -22+3\\ &=-19 \end{align*}\)

Solution — Part C

Evaluate \(6 \big\lvert 5- \lvert-8\rvert \big\rvert\) 

The correct order of operations requires that we evaluate \(\lvert{-8}\rvert\) first:

\(\begin{align*} 6 \big\lvert 5- \lvert-8\rvert \big\rvert &= 6 \lvert 5-8\rvert\\ &= 6 \lvert -3\rvert \\ &= 6 (3)\\ &= 18 \end{align*}\)

Did You Know?

Pairs of vertical bars are used in several different contexts in mathematics, often denoting something related to the size of the input. 

  • For real numbers, \(|x|\) represents the absolute value of the real number \(x\).
  • For vectors, \(|\vec{v}|\) represents the magnitude of vector \(\vec{v}\). 
  • For complex numbers, \(|z|\) represents the modulus (or magnitude) of complex number \(z\).
  • For sets, \(|A|\) represents the number of elements of the set \(A\).
  • For matrices, \(|A|\) represents the determinant of matrix \(A\).

Check Your Understanding 1


Try This Revisited

Let's return to the Try This problem presented at the beginning of this lesson:

Vishal commutes to work each day. He finds that his commute time varies dramatically from day to day depending on the time of day that he leaves, traffic conditions, weather, etc. Vishal's morning commute times, in minutes, are shown for a 10-day period.

  • \(38\)
  • \(32\)
  • \(48\)
  • \(33\)
  • \(34\)
  • \(61\)
  • \(37\)
  • \(35\)
  • \(59\)
  • \(43\)

Vishal has calculated that his mean commute time is \(42\) minutes, but he wonders by how much, on average, his commute times differ from his mean commute time. Determine such a measure for Vishal. 

Solution

Let \(x\) represent Vishal's commute time. We begin by verifying Vishal's mean commute time. 

Recall that the mean of a set of numbers, \(\bar{x}\), is calculated by adding all of the values and dividing by the number of data points:

\(\begin{align*} \bar{x} &= \dfrac{38 +32 +48 +33 +34+ 61 +37 +35 +59 +43}{10} \\ &= \dfrac{420}{10} \\ &= 42 \end{align*}\)

Vishal would like to know how long, on average, his commute times deviate (or vary) from the mean. The table shows the deviation of each data point from the mean.

\(x\) \(x-\bar{x}\)
\(38\) \(-4\)
\(32\) \(-10\)
\(48\) \(6\)
\(33\) \(-9\)
\(34\) \(-8\)
\(61\) \(19\)
\(37\) \(-5\)
\(35\) \(-7\)
\(59\) \(17\)
\(43\) \(1\)

Since the table shows how far each data point deviates from the mean (\(x-\bar{x}\) is the difference between each data point and the mean), it seems reasonable to determine the average of these numbers: Vishal would like to know, on average, how much his commute times differ from the mean commute time.

However, if you determine the sum of all of the values of \(x-\bar{x}\), you will find that the sum is \(0\), so that the mean of these deviations will also be \(0\). It turns out that this occurs for any data set!

The problem is that the positive and negative values of \(x-\bar{x}\) cancel out when they are added together. However, Vishal is only interested in how much his commute times vary from the mean commute time, and not whether the times are above or below his mean commute time. Thus, he is actually interested in the mean of the absolute value of the deviations:

\(x\) \(x-\bar{x}\) \(|x-\bar{x}|\)
\(38\) \(-4\) \(4\)
\(32\) \(-10\) \(10\)
\(48\) \(6\) \(6\)
\(33\) \(-9\) \(9\)
\(34\) \(-8\) \(8\)
\(61\) \(19\) \(19\)
\(37\) \(-5\) \(5\)
\(35\) \(-7\) \(7\)
\(59\) \(17\) \(17\)
\(43\) \(1\) \(1\)

The average of the absolute value of the deviations from the mean is:

\(\dfrac{4+10+6+9+8+19+5+7+17+1}{10}=8.6\)

Thus, Vishal's commute times have an average absolute deviation from the mean of \(8.6\) minutes. This measure is known as the mean deviation.

Did You Know?

The mean deviation, as calculated in the Try This Revisited, is one measure of spread of a data set, a measure that quantifies if the data is tightly clustered around the mean or widely spread around the mean. A more common measure of spread is called the standard deviation. It is based on \((x-\bar{x})^2\) rather than \(|x-\bar{x}|\), both of which create a list of non-negative numbers.


Slide Notes

Glossary

All Slides

Piecewise Definition of \(f(x)=|x|\)

Piecewise Definition of \(f(x)=|x|\) Continued

 

Piecewise Definition of \(f(x)=|x|\) Continued

The graph of \(y=f(x)=|x|\):

Paused Finished
Slide /