Worked examples — Absolute value - modulus — definition, number line interpretation
This page is a drill through all the cases the modulus can throw at you. On Absolute value - modulus — definition, number line interpretation we learned the rule if and if , plus the picture "distance from zero". Here we hunt down every corner where that rule bites: negatives, zero, nested bars, inequalities, word problems, and an exam trap.
Before any example, one honest reminder of the whole machine — and two facts we will lean on repeatedly, which we now name and number so later references are unambiguous:
A quick word on one more callout you'll see below:
The scenario matrix
Every problem about falls into one of these case classes. The goal of this page is to leave no cell untouched.
| Cell | What makes it tricky | Covered by |
|---|---|---|
| A. Positive input | Bars do nothing | Ex 1 |
| B. Negative input | Bars flip the sign | Ex 1 |
| C. Zero / degenerate | $ | 0 |
| D. Distance , both orders | Sign of | Ex 3 (figure) |
| E. Equation , | Two branches | Ex 4 (figure) |
| F. Equation with or | No solution / one solution | Ex 5 |
| G. Nested / algebraic | Both sides carry bars | Ex 6 |
| H. Inequality ("outside") | Two unbounded intervals | Ex 7 (figure) |
| I. Triangle inequality — all four sign combos | When is it equality? | Ex 8 |
| **J. Word problem + "" band | Translate English → bars | Ex 9 (figure) |
| K. Exam twist ( etc.) | Hidden sign condition | Ex 10 |
We work them in order. Ten examples, eleven cells (Ex 1 covers A and B).
Cells A & B — the plain input
Cell C — zero and degeneracy
Cell D — distance on the line, both orders
Cell E — equation with
Cell F — right-hand side
Cell G — bars on both sides
Solve .
Forecast: two equal distances-from-zero — what two relationships can the two insides have?
- The inside of the left bar is ; the inside of the right bar is . Equal moduli means these two insides are equal or exact opposites: Why this step? says the insides and are the same distance from zero, so either they're the same number or mirror numbers (). This is the both-signs cousin of Cell E.
- First case: , so . Why this step? Straight linear solve of the "insides equal" branch.
- Second case: . Why this step? Straight linear solve of the "insides opposite" branch.
Verify: at : and ✓. At : and ✓.
Cell H — the "outside" inequality
Solve .
Forecast: an equation gave points; this "" gives regions. Will they be a single band, or two pieces?
Figure (s03): the V-graph in violet, the dashed orange line , and the two regions where the V is at or above shaded magenta — the ray and the ray — with the middle strip left unshaded.

- Read it as distance: "the inside is at least from zero." Why this step? asks the inside to be far — outside the band — the exact opposite of which asks it to be close. That's why this splits into two unbounded pieces, not a single interval (contrast the word problem, Cell J).
- Being at least from zero means the inside is or : Why this step? "Far from zero" happens on either side, so we get two separate branches joined by or, not and.
- Solve each: ; and . Why this step? Each branch is a plain linear inequality (see Inequalities); note we did not flip any inequality sign because we only added .
- Answer: or , i.e. — two rays shooting off to .
Verify: boundary points sit exactly at height : and ✓. Test one interior point of each ray: ✓; ✓. Test a middle point that should fail: ✓ (correctly excluded).
Cell I — triangle inequality, all four sign combos
Here we don't just test numbers — we prove when and when it is strict, sign case by sign case. The engine is one fact about any real : and (a number never exceeds its own size).
Decide, for every combination of signs of and , whether is equality or strict.
Forecast: in which combos is it a strict "", and in which is it exactly ""? Guess before reading.
- Both (): then , so , while too. Equality. Why this step? When nothing is negative the bars change nothing on either side, so the two sides are literally the same expression.
- Both (): then , so . Equality. Why this step? Same direction (both left of zero) means no cancellation; flipping the whole sum equals flipping each part.
- Mixed signs (one positive, one negative, both nonzero): say . Inside the sum, the positive and negative partly cancel, so is smaller than the un-cancelled total . Formally, the two "" facts give and , hence ; the cancellation makes it strict. Strict . Why this step? Opposite directions mean you backtrack, so net distance is strictly less than total path length (see Triangle inequality).
- A zero factor ( or ): if then . Equality. Why this step? Adding zero moves nothing, so there is no cancellation to lose.
Conclusion: equality holds exactly when and have the same sign or one is zero (cases 1, 2, 4); it is strict exactly when they have opposite signs (case 3).
Verify (numeric spot-checks of each case): case 1 : ✓ (equality). Case 2 : ✓ (equality). Case 3 : ✓ (strict). Case 4 : ✓ (equality). All obey ; equality/strict pattern matches the argument.
Cell J — word problem meeting the "" band
A drone's rotor must stay within of the target temperature . Write this as an absolute-value statement and find the allowed temperature range .
Forecast: will the answer be a pair of numbers or a whole interval?
Figure (s04): a number line from to ; a violet dot at the target ; magenta dots at and ; the band shaded orange; and two magenta arrows of length each, from out to and from out to , showing the half-width.

- Translate "within of " into distance: the inside is , and we need . Why this step? " is at most away from " is exactly distance from to is , and distance on the line is (Example 3's idea). This is a "" (a close inequality), so — unlike Cell H's "" — expect a single band, not two rays. See Inequalities.
- Unfold the inequality by splitting on the sign of the inside. means the inside is at most from zero, i.e. it lies between and : Why this step? says is not below and not above — the two sign branches ( giving , and giving i.e. ) merge into one connected strip joined by and.
- Add to every part of the chain: , i.e. Why this step? Adding the same number to all three parts shifts the interval bodily without changing its width or flipping any inequality.
- Final answer: the rotor is safe for — a single band of width , centred on .
Verify: endpoints and are each exactly from (, ) ✓. A point inside, : ✓ (allowed). A point outside, : ✓ (correctly forbidden). The figure shows the shaded band centred on with half-width . Units: all in , consistent throughout.
Cell K — the exam twist
is ? Find every real with . Then find every with .
Forecast: infinitely many, finitely many, or none?
- holds exactly when we're in the top branch of the rule, i.e. . Why this step? The rule defines only for ; for we'd get (since ). So the solution set is all .
- Check a negative to be sure: . Rejected. Good — confirms the boundary.
- Now : this is the bottom branch, so it holds when . Why this step? For , by definition; and at , too, so include the endpoint.
Verify: for ✓ but fails for ; for (since ) ✓ but fails for . The two solution sets are and — overlapping only at , which is why both equations hold at zero. This "hidden sign condition" is the classic trap. See Piecewise functions for why the branch boundary matters.
Recall
Recall Did every cell get hit?
Which cell class has no solution, and why? ::: RHS negative ( with ), because a modulus is never negative (fact P1). splits into which two equations? ::: or (insides equal or opposite). (with ) gives what kind of solution set? ::: Two unbounded rays, or — joined by "or". (with ) gives what kind of solution set? ::: One connected band, . When is (not just )? ::: When and have the same sign (or one is zero). For which does ? ::: All .
Connections
- Solving absolute value equations — the branching in Cells E, F, G
- Inequalities — the "outside" ray (Cell H) and the "inside" band (Cell J)
- Triangle inequality — Cell I's geometry
- Distance and metric spaces — Cell D's metric
- Piecewise functions — the branch condition behind Cell K
- Number line and ordering — every figure lives here