The absolute value function
Absolute value as distance from zero, its piecewise definition, graphs of y = a|x − h| + k, solving absolute value equations, and useful identities.
Sometimes only the size of a number matters, not its sign: an error of $-3$ mm is as bad as $+3$ mm. Absolute value measures that size. It is also the first function you'll meet that is defined in two pieces, which leads into 5H.
Absolute value as distance
$|x|$ is the distance from $x$ to $0$ on the number line. So $|-6| = 6$, $|6| = 6$ and $|0| = 0$. A distance can't be negative, so $|x| \ge 0$ always, and $x$ and $-x$ are the same distance from $0$, so $|-x| = |x|$.
More generally, $|x - a|$ is the distance from $x$ to $a$. The distance between $-2$ and $5$ is $|5 - (-2)| = 7$. Since distance doesn't depend on which end you start from, $|x - a| = |a - x|$.
Absolute value in two pieces
For a positive number, $|x|$ is just $x$. For a negative number, you remove the minus sign, which is the same as taking the opposite, $-x$. (If $x = -6$, then $-x = 6$.)
So $y = |x|$ is a V: the line $y = x$ on the right and $y = -x$ on the left, meeting at a sharp point at $O$. Domain all real $x$, range $y \ge 0$, and it is even.
There is a third way to see it: $\sqrt{x^2} = |x|$. Squaring removes the sign, and the square root sign always gives the non-negative root. This explains the warning in 2B that $\sqrt{x^2}$ is not always $x$.
Graphs
Many absolute value graphs are transformations of $y = |x|$. For harder ones, split into the two cases.
Sketch $y = |x - 1| - 2$.
Sketch $y = |x| + x$.
It starts on Example 1, y = |x − 1| − 2, with the dashed line y = 3.
- Read off the solutions of $|x - 1| - 2 = 3$ from the marked points. Then check them with algebra.
- Move the dashed line to get exactly one solution, then none. What value of $c$ separates the cases?
Solving $|ax + b| = k$
Think distance. $|x - 2| = 3$ asks for numbers whose distance from $2$ is $3$: that is $5$ and $-1$.
Solve $\left|7 - \tfrac14 x\right| = 3$.
Useful identities
| Identity | Example |
|---|---|
| $|-x| = |x|$ | $|-4| = |4|$ |
| $|ab| = |a| \times |b|$ | $|(-3) \times 5| = 15 = 3 \times 5$ |
| $\left|\dfrac ab\right| = \dfrac{|a|}{|b|}$ | $\left|\dfrac{-8}{2}\right| = 4$ |
| $|x|^2 = x^2$ and $\sqrt{x^2} = |x|$ | $\sqrt{(-5)^2} = 5$ |
There's no such rule for adding: $|3 + (-5)| = 2$ but $|3| + |-5| = 8$. In general $|a + b| \le |a| + |b|$.
Your turn
Write $y = |x + 3|$ piecewise, and find its value at $x = -5$.
Show the working
$|x + 3| = x + 3$ when $x + 3 \ge 0$, that is $x \ge -3$, and $-(x + 3) = -x - 3$ when $x \lt -3$. At $x = -5$, use the second piece: $-(-5) - 3 = 2$. Check: $|-5 + 3| = |-2| = 2$.
Evaluate $|-7| + |3|$.
$7 + 3 = 10$.
Find the distance between $-4$ and $9$ on the number line.
$|9 - (-4)| = |13| = 13$.
For $x \lt 2$, $|x - 2|$ equals:
When $x \lt 2$, $x - 2$ is negative, so its absolute value is $-(x - 2) = 2 - x$.
Solve $|3x + 6| = 0$.
An absolute value is zero only when the inside is zero: $3x + 6 = 0$, so $x = -2$.
Solve $|x - 2| = 3$. Enter both solutions separated by &.
$x - 2 = 3$ or $x - 2 = -3$, so $x = 5$ or $x = -1$. Both are distance $3$ from $2$.
How many solutions does $|2x + 1| = -5$ have?
An absolute value is never negative, so it can never equal $-5$.
Solve $\left|7 - \tfrac14 x\right| = 3$. Enter both solutions separated by &.
$7 - \tfrac14 x = 3$ gives $x = 16$, and $7 - \tfrac14 x = -3$ gives $x = 40$.
Evaluate $y = |x| - x$ at $x = -3$.
$|-3| - (-3) = 3 + 3 = 6$.
Exam style: find the largest value in the range of $y = 3 - |x + 1|$.
$|x + 1| \ge 0$, so $3 - |x + 1| \le 3$, with equality at $x = -1$. The graph is an upside-down V with its point at $(-1, 3)$.
Exam style: solve $|x - 1| = \tfrac12 x + 1$. Enter all solutions separated by &.
Case 1: $x - 1 = \tfrac12 x + 1$ gives $x = 4$. Case 2: $x - 1 = -\tfrac12 x - 1$ gives $\tfrac32 x = 0$, so $x = 0$. Check: $|3| = 3$ and $|-1| = 1$, both match the right side. So $x = 0$ or $x = 4$.
Coaching Centre