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
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:
- k = 5, x = 2. The point is in both the blue and orange regions. Why: Because 2 is greater than -5 AND less than 5, the absolute value condition |2| < 5 is satisfied.
- k = 5, x = -2. The point is also in both regions. The absolute value doesn't care about the sign of x, only its distance from zero.
- k = 5, x = 6. The point is in the blue region (it's greater than -5) but it has exited the orange region. Why: It fails the x < k part of the sandwich, so |6| < 5 is false.
- k = 5, x = -6. The point is in the orange region (it's less than 5) but has exited the blue region. Why: It fails the x > -k part of the sandwich, so |-6| < 5 is false.
- k = 0.5, x = 0. A very tight sandwich. Notice how the safe zone shrinks as k gets smaller.
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:
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:
- Non-linear expressions. The widget uses x. If you have |2x - 3| < 5, the boundaries won't be at -k and k anymore; you'll have to solve the two linear inequalities first to find where the "walls" actually sit.
- Negative k values. If someone asks you to solve |x| < -2, the widget's logic breaks because k must be positive for a "distance" to exist. In reality, |x| can never be less than a negative number, so there is no solution.
- Higher dimensions. This is a 1D number line. If you move to 2D (like |z| < r in complex numbers), the "sandwich" becomes a circular disk.
References
- Absolute Value Inequalities — the parent chapter that introduces this topic.
- Animated: |x| < a is AND, |x| > a is OR — Watch the Solution Set Split or Merge — related satellite under the same chapter.
- Animated: |x - a| \le r — See Absolute Value as Distance — related satellite under the same chapter.
- Animated: |x - 2| < k — Watch the 'Distance Window' Expand Symmetrically — related satellite under the same chapter.
- Wikipedia search: Absolute Value Inequalities — formal mathematical context.