The absolute value \(|x|\) of a real number \(x\) provides its magnitude, i.e. how large it is without regard to being positive or negative. Geometrically, it represents the distance the number is from zero along the real number line.
We can express this precisely with the conditional expression
Note that \(|0| = 0\text{.}\) Formulas like Equation (2.7.1) which involving multiple cases are common in engineering. Take some time to carefully understand the notation used above.
We can measure the distance between two real numbers \(a\) and \(b\) on the real line by subtracting them and then computing the absolute value to obtain a distance. This ensures that we do not need to worry about the order the subtraction was performed.
\begin{equation*}
\left(\text{distance between $a$ and $b$}\right) = \left| a-b\right| = \left|b-a\right|.
\end{equation*}
Order of operations requires us to evaluate expressions within the absolute value completely before combining with other operations. In other words, treat absolute values like you would parentheses. For example,