Absolute value is a distance, not a sign remover
A tolerance check on a machined part, and the one reading of $|a|$ that makes every rule about it easy to see.
A workshop cuts steel pins that are meant to be 50 millimetres long. A pin passes inspection if it is within 0.2 millimetres of that, too long or too short makes no difference. Here is the inspection loop.
Change tol to 0.05 and run it again. Two pins that passed now fail. Then set tol to 0 and see how many survive.
Look at what the test actually computes. It subtracts, throws away the sign, and compares. A pin at 49.8 and a pin at 50.2 get the same verdict, because they are the same distance from the target on opposite sides.
The definition
The absolute value of a real number , written , is the distance from to 0 on the number line. Distance is never negative, so is never negative. and , because both numbers sit seven steps from zero.
Written as a rule with two cases, that is:
That second line deserves a sentence of its own. If , then means , which is . The minus sign in the definition is not making anything negative; it is undoing a negative. So is not a negative quantity here, and reading it as one is the reason this definition looks wrong to people the first time they meet it.
The reading that makes everything else easy
Now the important step. The inspection loop did not compute ; it computed . In general, is the distance between and on the number line. That is the reading to carry for the rest of your mathematical life.
Distance does not care which end you start from, so . Check it: , and .
- Distance from to
- 3
- Within tolerance? (1 means yes)
- 0
Drag c and watch the V slide sideways. The V is lowest exactly at , where the distance is zero. Drag d and read off the stretch of the line that stays under the dashed line: that stretch is .
The picture is a V with its point at . Being within of means being in the part of the V below the dashed line, and that part is the interval from to . So the pin test is exactly the interval , arrived at by reading, not by algebra.
The properties, and why each one holds
Five facts follow from the definition. None of them needs memorising if you keep hold of the distance picture.
| Property | Check with numbers | Why |
|---|---|---|
| a distance is never negative | ||
| and sit the same distance either side of 0 | ||
| sizes multiply; the signs only decide the sign, which is then discarded | ||
| same reason, for division | ||
| squaring destroys the sign anyway, so removing it first changes nothing |
There is a sixth fact that does more damage than any of those five when it is forgotten, and it is about square roots. The symbol always returns the non-negative root, so and never . Feed it a square and see what comes back.
Add to the list and run it again. Which column ever disagrees with x itself, and for which values?
The middle column matches the last column every time, and matches only when is not negative. That is the rule:
A worked example, every step
Write " is more than 3 away from " using absolute value, and then as intervals.
- The distance between and is , which tidies to , because subtracting a negative adds.
- "More than 3 away" makes the statement .
- Read it on the line: the point is the centre, and you must be further than 3 steps from it.
- Three steps to the right of lands on 2; three steps to the left lands on .
- Further than that means beyond 2, or before , and neither endpoint itself counts because the distance there is exactly 3, not more than 3.
- So the answer is . Check one value: gives , which is more than 3, and 10 is indeed in the second piece.