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

|x - 2| < 3.0 → -1.0 < x < 5.0

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:

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:

2|x - 2.5| < 3 \implies |x - 2.5| < 1.5

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:

References