5E

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

Piecewise definition
$$|x| = \begin{cases} x, & x \ge 0 \\ -x, & x \lt 0 \end{cases}$$

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.

Example 1: by transformation●

Sketch $y = |x - 1| - 2$.

$y = |x|$ shifted right $1$ and down $2$, so the sharp point moves to $(1, -2)$.
x replaced by x − 1, then 2 subtracted.
$x$-intercepts $3$ and $-1$. $y$-intercept: $|0 - 1| - 2 = -1$.
Solve |x − 1| = 2: x − 1 = 2 or x − 1 = −2.
Example 2: by cases●●

Sketch $y = |x| + x$.

For $x \ge 0$: $y = x + x = 2x$. For $x \lt 0$: $y = -x + x = 0$.
Use the formula for |x| that matches each case.
The graph is flat along the negative $x$-axis, then rises as $y = 2x$. Range $y \ge 0$.
Join the two pieces at x = 0, where both give 0.
Absolute value graphs and equations

It starts on Example 1, y = |x − 1| − 2, with the dashed line y = 3.

Try this
  • 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$.

Example 3●●

Solve $\left|7 - \tfrac14 x\right| = 3$.

$7 - \tfrac14 x = 3$ or $7 - \tfrac14 x = -3$
The inside is 3 or −3.
$-\tfrac14 x = -4$ or $-\tfrac14 x = -10$, so $x = 16$ or $x = 40$
Subtract 7, then multiply by −4.

Useful identities

IdentityExample
$|-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$.

Flashcards
$|x - a|$
The distance between $x$ and $a$.
$|x|$ piecewise
$x$ for $x \ge 0$, and $-x$ for $x \lt 0$.
$sqrt{x^2}$
$|x|$
Practice
  1. Evaluate $|-7| + |3|$.

  2. Find the distance between $-4$ and $9$ on the number line.

  3. For $x \lt 2$, $|x - 2|$ equals:

  4. Solve $|3x + 6| = 0$.

  5. Solve $|x - 2| = 3$. Enter both solutions separated by &.

  6. How many solutions does $|2x + 1| = -5$ have?

  7. Solve $\left|7 - \tfrac14 x\right| = 3$. Enter both solutions separated by &.

  8. Evaluate $y = |x| - x$ at $x = -3$.

  9. Exam style: find the largest value in the range of $y = 3 - |x + 1|$.

  10. Exam style: solve $|x - 1| = \tfrac12 x + 1$. Enter all solutions separated by &.

Formula sheet