When you see the inequality |x| < 5, it looks like a single, simple command. It's easy to read: "the absolute value of x is less than 5." But if you try to solve it, you'll find that x isn't just one thing—it's a whole range of values. You aren't just looking for one number; you're looking for a "safe zone" where x isn't too big and isn't too small.

The truth is, |x| < k is a "sandwich" inequality. It is a shorthand way of writing two different constraints at the exact same time: x < k (don't go too far right) and x > -k (don't go too far left). To satisfy the absolute value, x must satisfy both of these rules simultaneously.

This widget lets you peel back the |x| notation to see the two individual boundaries working together. Use the sliders to change the limit k and the test point x. Watch how the "safe zone" is created only where the two individual constraints overlap.

The widget

|x| < 5

The number line is divided into two shaded regions. The blue region represents the condition x > -k Why: This is the "lower" boundary; any number to the right of -k satisfies the requirement of not being too small.. The orange region represents the condition x < k Why: This is the "upper" boundary; any number to the left of k satisfies the requirement of not being too large..

When you move the test point x, you can see which rule it is breaking. If x is in the blue but not the orange, it's too big. If it's in the orange but not the blue, it's too small. The "safe zone" is only the area where the colors overlap perfectly.

Try these

Use the sliders to test these specific scenarios to see how the "sandwich" behaves:

What you are actually seeing

What you are seeing is the logical "AND" in action. In mathematics, a compound inequality like -k < x < k is a compact way of saying:

(x > -k) \text{ AND } (x < k)

The absolute value |x| < k is simply a way to describe the set of numbers whose distance from zero is less than k. On a number line, "distance from zero" means you can go k units to the right and k units to the left.

The widget shows that the solution to |x| < k is the intersection of these two sets. If you only satisfy one (the blue or the orange), you haven't satisfied the absolute value. You must be inside both boundaries to be in the "safe zone."

Why this matters

This visual unpacking is the best defense against the most common error in JEE and NCERT exams: the "one-sided" mistake.

When students see |x| < 5, they often instinctively write x < 5 and then stop. They've captured the orange region, but they've completely forgotten the blue boundary. This leads to answers that are infinitely large in the negative direction, which is wrong.

By thinking of it as a sandwich, you remind yourself that there are two walls to check. If you can see the two colored regions in your head, you'll know that a solution for |x| < k must be a bounded interval, not a one-sided ray.

This also helps when you encounter the "greater than" version: |x| > k. In that case, you aren't looking for the overlap; you are looking for the parts that are not in the sandwich. You are looking for the regions that are either "too small" OR "too large."

What the widget does NOT show you

While this widget is great for understanding the structure, it has limits:

References