1.1.22 · D2Arithmetic & Number Systems

Visual walkthrough — Absolute value - modulus — definition, number line interpretation

1,893 words9 min readBack to topic

This page grows ONE idea from nothing: why the distance between two numbers on a line is . We will not assume you know what the vertical bars mean, what "distance" means as a formula, or why subtracting is the right move. We build each piece, draw it, then snap them together.

By the end you will see why and give the same answer, and why this never fails — not for negatives, not for zero, not for equal points.


Step 1 — What a number line actually is

WHAT. We place the numbers and as two dots on the road.

WHY. Before we can talk about the gap between two numbers, we need to agree that a number is a position — a place you can point to — not just a symbol. Everything downstream is measuring the space between two positions.

PICTURE. In the figure, the blue dot sits at , the orange dot at . Notice they are just locations; nobody has measured anything yet.

Figure — Absolute value  -  modulus — definition, number line interpretation

Step 2 — What "distance" must mean

WHAT. We count the tick marks separating the two dots: of them.

WHY. We want a rule that always spits out this honest count. Direction — whether you walked left-to-right or right-to-left — must not matter, because the gap is the gap either way. This "direction doesn't matter" is the whole reason the modulus will appear.

PICTURE. The green bracket under the road spans the gap; the little "" is the count of steps.

Figure — Absolute value  -  modulus — definition, number line interpretation
Recall

Why must distance be non-negative? ::: It is a count of steps, and you cannot take a negative number of steps.


Step 3 — Subtraction gives displacement (which CAN be negative)

WHAT. Compute end start for both travel directions:

Read each symbol:

  • and are positions from Step 1.
  • The first result : a positive number means "the end was to the right of the start."
  • The second result : a negative number means "the end was to the left of the start."

WHY. Subtraction is the natural machine for "how do I get from one position to another?" But it carries a sign, because it remembers direction. That sign is exactly the thing distance is supposed to forget. So subtraction alone is almost right — one flaw: the leftover .

PICTURE. Blue arrow = the rightward jump; red arrow = the leftward jump. Same length, opposite arrowheads.

Figure — Absolute value  -  modulus — definition, number line interpretation

See Number line and ordering for why bigger-minus-smaller is positive.


Step 4 — The modulus: an eraser for the direction sign

WHAT. Recall the definition from the parent note and apply it to both signed jumps:

  • is the signed jump from Step 3.
  • Top line: if the jump is already positive (or zero), leave it alone.
  • Bottom line: if the jump is negative, put a minus in front to flip it positive.

Applied:

Both give the same honest count from Step 2.

WHY this tool and not another? We specifically need something that (a) never changes a positive length, and (b) turns a negative jump into its positive twin. Squaring-then-rooting would also do it, but the modulus does it in one clean piecewise rule and matches the "distance from zero" meaning we already trust.

PICTURE. Both arrows enter the "bar machine"; both leave as the same length , arrowhead removed.

Figure — Absolute value  -  modulus — definition, number line interpretation

Step 5 — Assemble the formula

WHAT. Combine: subtract to get the jump, wrap in bars to kill the direction.

WHY. Each piece earned its place: subtraction produced the displacement, the modulus removed the flaw (the sign). Nothing else is needed.

PICTURE. The pipeline: two positions subtract signed jump bars distance.

Figure — Absolute value  -  modulus — definition, number line interpretation

Step 6 — Why order doesn't matter ()

WHAT. Note that . Apply Property 3 of the parent ():

  • is one direction's jump.
  • is the reversed jump .
  • The bars send both to the same length.

WHY. This proves distance is symmetric — the gap from to equals the gap from to , exactly as common sense demands.

PICTURE. Two arrows of length pointing opposite ways, both landing on the same "" under the bar machine.

Figure — Absolute value  -  modulus — definition, number line interpretation

This symmetry is one of the axioms that make a genuine metric — see Distance and metric spaces.


Step 7 — The degenerate case: same point ()

WHAT. Set :

  • is the jump from a point to itself — no movement.
  • by Property 2 of the parent (zero is the only number at distance zero).

WHY. We must check this so the formula never surprises us. It behaves: the only way to get distance is . This is the "identity of indiscernibles" the metric needs.

PICTURE. A single dot with a zero-length bracket beneath it — the gap has collapsed.

Figure — Absolute value  -  modulus — definition, number line interpretation

Step 8 — Every sign combination, checked once

WHAT. Test the four cases with :

| | | | | walk-count check | |----|----|------|--------|------| | | | | | both right of 0 ✓ | | | | | | both left of 0 ✓ | | | | | | , straddles 0 ✓ | | | | | | reversed, same length ✓ |

  • Column can be positive or negative — the raw jump.
  • Column is always the honest count — the bars fixed every negative.

WHY. By covering all four quadrant-like arrangements, the reader never meets a scenario we skipped. The straddling case ( to ) is the sneaky one: , matching "left-part plus right-part."

PICTURE. Four mini number lines stacked, each with its green gap labelled — same formula, four layouts.

Figure — Absolute value  -  modulus — definition, number line interpretation

The one-picture summary

Everything at once: two positions on a line, subtract to get a signed arrow, feed the arrow through the modulus "bar machine," out comes a pure non-negative length — and reversing the arrow changes nothing.

Figure — Absolute value  -  modulus — definition, number line interpretation
Recall Feynman retelling — the walkthrough in plain words

Picture a ruler that runs left through the negatives and right through the positives, with zero in the middle. Two numbers are just two spots on it. I want the gap between them — a plain count of steps, never negative.

First I subtract one spot from the other (end minus start). That gives me a jump, but it's sneaky: it comes with a plus or minus telling me which way I walked. I don't care which way — I only want how far. So I clamp the answer in absolute-value bars, which are a little machine that erases the minus sign but keeps the number. Positive stays positive; negative gets flipped to positive.

That's the whole trick: . Subtract for the jump, bars to drop the direction. Swap the two numbers and the jump reverses — same length, so the bars give the identical answer; that's why . Put the same number in twice and there's no jump at all, so the distance is exactly zero. It works whether the numbers are both positive, both negative, or straddling zero — I checked all four, and the bars cleaned up every single negative jump.


Connections

  • Absolute value / modulus — definition, number line interpretation — the parent this walkthrough expands
  • Number line and ordering — positions and why differences carry sign
  • Distance and metric spaces as the standard metric on
  • Solving absolute value equations — where the two-case unpacking pays off
  • Inequalities · Triangle inequality · Piecewise functions · Complex numbers — modulus