Reading |x - a| as a Distance to Solve Problems Quickly
Treat |x - a| as the gap between x and a, and many absolute value equations and inequalities can be solved at a glance.
Key takeaways
- |x - a| measures how far x is from a, and it never comes out negative.
- A plus sign hides a negative center: |x + 4| is the distance from x to -4.
- For r > 0, |x - a| = r gives two points, |x - a| < r gives the stretch between them, and |x - a| > r gives the two outer rays.
- Comparing two distances, as in |x - 2| < |x - 8|, is settled by the midpoint.
- Factor any coefficient of x out of the bars before reading off a center and a radius.
The expression |x - a| is the distance between the numbers x and a on the number line. Once you read it that way, |x - 3| = 5 stops being a puzzle: you want the points that sit 5 units from 3, and they are -2 and 8.
The same reading handles inequalities. |x - 3| < 5 asks for everything closer than 5 units to 3, and |x - 3| > 5 asks for everything farther away. You often need no written case work at all.
Why subtraction measures a gap
Pick two numbers, 9 and 4. The gap between them is 9 - 4 = 5. Subtract in the other order and you get -5, which has the right size but the wrong sign. The absolute value removes the sign, so |9 - 4| and |4 - 9| both equal 5.
That works wherever the numbers are. The distance from -2 to 6 is |6 - (-2)| = 8, and the distance from -7 to -3 is |-7 - (-3)| = |-4| = 4. The familiar idea of distance from zero is the special case a = 0.
Two consequences are worth memorizing as sentences:
- |x - a| = |a - x|, because a distance has no direction.
- |x + 4| = |x - (-4)|, so its center is -4.
The second one causes the most slips. To find the center, ask which value of x makes the inside zero. For |x + 4| that value is -4.
Equations answered by counting steps
To solve |x - a| = r with r positive, start at a and walk r units in each direction. The answers are a - r and a + r.
|x - 10| = 3 center 10, radius 3 x = 7 or x = 13
|x + 6| = 2 center -6, radius 2 x = -8 or x = -4
|7 - x| = 12 center 7, radius 12 x = -5 or x = 19 If r = 0, only the center itself works. If r is negative, nothing works, since no distance is below zero. Those cases are covered in when an absolute value equation has no answer.
You can run the process backward too. Suppose you are told the solutions are -1 and 11. The center is halfway between them, (-1 + 11) ÷ 2 = 5, and each solution is 6 units away. So the equation is |x - 5| = 6.
Inequalities as neighborhoods
An inequality with "less than" describes a neighborhood: all the points near a center. An inequality with "greater than" describes everything outside that neighborhood.
| Statement (r > 0) | In words | Solution set |
|---|---|---|
| |x - a| < r | closer than r to a | (a - r, a + r) |
| |x - a| ≤ r | no farther than r from a | [a - r, a + r] |
| |x - a| > r | farther than r from a | (-∞, a - r) ∪ (a + r, ∞) |
| |x - a| ≥ r | at least r from a | (-∞, a - r] ∪ [a + r, ∞) |
So |x - 20| ≤ 4 is the closed interval [16, 24], and |x + 1| > 5 is everything below -6 or above 4. If the bracket symbols are unfamiliar, see interval notation with number line pictures.
Dealing with a number in front of x
The distance reading needs x to appear with coefficient 1 or -1. Anything else can be factored out, using the fact that |kv| = |k| · |v|.
Take |3x - 12| < 9.
|3x - 12| < 9
3 · |x - 4| < 9 factor 3 out of the bars
|x - 4| < 3 divide by 3
1 < x < 7 within 3 of 4 A fraction left over is no problem. In |2x + 5| ≥ 7, factoring gives 2 · |x + 2.5| ≥ 7, so |x + 2.5| ≥ 3.5. The center is -2.5 and the radius is 3.5, so x ≤ -6 or x ≥ 1.
Check x = 1: |2 + 5| = 7, which satisfies ≥ 7. Check x = -6: |-12 + 5| = 7, also fine.
Anything outside the bars must be cleared first. In 4|x - 1| + 3 = 23, subtract 3 and divide by 4 to get |x - 1| = 5. Then read x = -4 or x = 6.
Which point is closer?
Statements with a distance on each side compare two gaps. The equation |x - 2| = |x - 8| asks for a point equally far from 2 and 8. Only the midpoint, 5, qualifies.
The inequality |x - 2| < |x - 8| asks for points closer to 2 than to 8. Those are the points on the 2 side of the midpoint, so x < 5. In the same way, |x + 1| ≤ |x - 7| means x is at least as close to -1 as to 7. The midpoint is 3, so x ≤ 3.
When one distance is a multiple of the other, picture where the point can be. For |x - 1| = 3 · |x - 9|, x must be three times as far from 1 as from 9. The points 1 and 9 are 8 apart.
- Between them, split the 8 units in the ratio 3 to 1: x = 1 + 6 = 7.
- Beyond 9, the two distances differ by 8, so 3d - d = 8 and d = 4: x = 13.
Check x = 13: |12| = 12 and 3 · |4| = 12. For general algebraic methods, see equations with absolute value on both sides.
Writing a range as one statement
Many real requirements are a target plus an allowed error. Say a part should be 40 millimeters long, give or take 0.2. The acceptable lengths L satisfy |L - 40| ≤ 0.2.
Any bounded interval can be rewritten this way. Its center is the average of the endpoints, and its radius is half the width. For the interval from 62 to 78, the center is 70 and the radius is 8, giving |t - 70| ≤ 8. The values outside that range satisfy |t - 70| > 8. More examples appear in tolerances and acceptable ranges.
This form is compact, and it also tells you the margin at once. If a reading is t = 75, then |75 - 70| = 5, which is 3 units inside the limit of 8.
Adding two distances
The picture also explains sums. In |x - 1| + |x - 5|, you add the distances from x to 1 and from x to 5. If x lies between 1 and 5, the two pieces fill the whole gap, so the sum is exactly 4. If x is outside, the sum is larger than 4.
So |x - 1| + |x - 5| = 4 is true for every x in [1, 5], and |x - 1| + |x - 5| = 2 has no solution. To get a sum of 10, you need 6 extra units. Each step outside the segment adds 2 to the sum, so step 3 units out: x = -2 or x = 8. For harder sums, use the region by region method.
Counting the integers in a neighborhood
Distance reading makes counting questions short. How many integers satisfy |x - 12| < 5? The numbers lie strictly between 7 and 17, so they run from 8 to 16, and there are 9 of them.
In general, when the center a and radius r are both whole numbers with r > 0, the condition |x - a| ≤ r captures 2r + 1 integers: the center, plus r on each side. With the strict symbol, the two endpoints drop out and 2r - 1 remain. For r = 5, those counts are 11 and 9.
A fractional center changes the tally. In |x - 2.5| ≤ 2 the interval is [0.5, 4.5], which holds the four integers 1, 2, 3 and 4. When the numbers are not whole, write the endpoints first and then count what lies between them.
You can also ask for the nearest allowed value. If x must satisfy |x - 30| ≥ 8, what is the allowed number closest to 27? The forbidden zone is the open interval from 22 to 38. The number 27 sits inside it, 5 units from the left edge and 11 from the right, so 22 is the closest allowed value.
Two conditions at the same time
When x has to be near two different centers, draw both neighborhoods and keep the overlap. Suppose |x - 4| ≤ 5 and |x - 11| < 4. The first condition gives the interval [-1, 9]. The second gives (7, 15). Together they allow 7 < x ≤ 9.
There is a quick test for whether two neighborhoods can overlap at all. The centers 4 and 11 are 7 apart. The radii add to 9. Since 7 is less than 9, the intervals share some points. If the second radius were 1, the radii would add to only 6, too short to bridge a gap of 7, and no x could satisfy both.
When the two statements are joined by "or" instead, take everything covered by either interval. In the example above, that is [-1, 15).
Where the shortcut stops
Distance reading is fastest when the right side is a constant. If the variable appears there too, as in |x - 4| = 2x + 1, the "radius" changes with x. Solve it by cases, then reject any answer that makes the right side negative. Here x - 4 = 2x + 1 gives x = -5, which makes 2x + 1 negative, so it fails. The other case, 4 - x = 2x + 1, gives x = 1, and it checks: |-3| = 3.
A squared expression inside the bars needs care as well. |x² - 25| < 11 says that x² is within 11 of 25, so 14 < x² < 36. That is a distance statement about x², and you still have to translate back: √14 < |x| < 6, which gives two separate intervals for x.
Common mistakes
- Taking the wrong sign for the center. |x + 9| < 2 is centered at -9, giving -11 < x < -7.
- Ignoring a coefficient. |5x - 10| = 20 does not mean x is 20 from 10. It means |x - 2| = 4.
- Giving one answer to an equation. A positive radius always produces two points.
- Joining outer rays with "and". No single number is both below a - r and above a + r.
- Reading a negative radius as a distance. Look at the sign of the right side before doing anything else.
A quick test protects you from all five: pick one number from your answer and one from outside it, and substitute both into the original statement. The first should make it true and the second false.