In algebra, the absolute value |x - a| is often treated as a set of rules to follow: "if the inside is positive, leave it; if it's negative, flip the sign." But if you think like a geometer, absolute value is much simpler. It is a single, powerful question: "How far is x from a?"
When you see the inequality |x - 2| < k, don't see a math problem to be "solved" by splitting it into two cases. See it as a command: "Find all points x whose distance from 2 is less than k." This creates a "distance window" centered at 2. The value k is the radius of that window. As k grows, the window expands; as k shrinks, the window tightens.
This page provides a widget to help you visualize this relationship. By manipulating k, you will see that the "boundaries" of the inequality are not arbitrary numbers—they are simply the two points that sit exactly k units away from our center.
The widget
The number line shows a fixed anchor point at x = 2. The red shaded region represents the set of all x values that satisfy the inequality. Notice how the region is perfectly symmetrical around the center. The width of the shaded area is exactly 2k, with k units extending to the left and k units extending to the right.
The widget
The canvas visualizes the "allowable" region of x. The center point (the value being subtracted inside the absolute value) stays stationary, while the boundaries move in response to k.
Try these
Use the slider to observe how the interval behaves under different constraints:
- k = 0.5 (The Tight Window). The interval is very small: 1.5 < x < 2.5. This shows how a small k limits x to a tiny neighborhood around 2.
- k = 3.0 (The Standard Case). The interval expands to -1 < x < 5. This is a typical range you might see in a JEE or CBSE exam problem.
- k = 10.0 (The Wide Window). The interval stretches far across the number line: -8 < x < 12. As k increases, the restriction on x becomes much looser.
- k = 0.1 (The Limit Case). As k approaches zero, the shaded region collapses toward the single point x = 2. This helps you visualize why |x - 2| < 0 has no solution—there is no "room" for a distance to be less than zero.
What you are actually seeing
When you see |x - 2| < k, you are looking at a geometric boundary. The expression x - 2 represents the displacement of x from 2. The absolute value bars | \dots | strip away the direction (positive or negative) and tell you only the magnitude of that displacement.
By setting that magnitude to be less than k, you are defining a boundary. The "left" boundary occurs when you move k units in the negative direction: 2 - k. The "right" boundary occurs when you move k units in the positive direction: 2 + k.
This is why the algebraic "split" into -k < x - 2 < k works. Adding 2 to all parts of that inequality simply shifts the entire window to be centered at 2, resulting in 2 - k < x < 2 + k. The algebra is just a formal way of describing the symmetry you see on the screen.
Why this matters
In competitive exams like JEE, you will often encounter more complex inequalities like |2x - 5| < 3. Students often panic because the "center" isn't immediately obvious.
However, if you remember the "distance window" concept, you can transform any absolute value inequality into this standard form by isolating x. For |2x - 5| < 3, you would rewrite it as:
Suddenly, the problem is solved: the center is 2.5 and the radius is 1.5. The widget proves that once you find the center and the radius, the interval is inevitable.
What the widget does NOT show you
This visualization is specialized for the "less than" case. To keep the focus sharp, it omits a few variations:
- The "Greater Than" case (|x - 2| > k). If the inequality were |x - 2| > k, you would be looking for points whose distance is more than k. Instead of a single shaded window, you would see two separate rays pointing away from the center: (-\infty, 2-k) and (2+k, \infty).
- Non-centered inequalities. The widget keeps the center at 2 to make the symmetry obvious. In a general case |x - a| < k, the center a would move as you change the problem parameters.
- Scaling factors. The widget assumes the coefficient of x is 1. If you have |3x - 6| < 9, the "distance" is scaled by 3, which changes how the radius k relates to the visual width on the number line.
References
- Absolute Value Inequalities — the parent chapter that introduces this topic.
- Wikipedia search: Absolute Value Inequalities — formal mathematical context.