Number line – distance and absolute value
MathematicsNumbers & ArithmeticAges 12–13
How do you mainly use this simulation?
Use it with your class: students open it from a link or a QR code, with no account needed.
Three screens: Situations places two points in three familiar contexts (two houses on a street, temperatures during a day, height above sea level) so you can read the signed difference b − a and the distance |a − b|; Number line lets you drag or type the two points a and b (including decimals and negative numbers) on an abstract horizontal or vertical line and compare b − a with |a − b| = |b − a|. Adapted from the "Number Line: Distance" simulation by PhET Interactive Simulations, University of Colorado Boulder (CC BY 4.0); rewritten. The Equations screen solves |ax + b| = c, |ax + b| < c and |ax + b| > c as a distance from the centre −b/a compared with c/|a|, on the number line and on the graph of y = |ax + b| against y = c, including c < 0 and c = 0, and writes the solution set in interval notation.
Lesson: Absolute value of real numbers; absolute value equations and inequalities
What it shows
The distance between two points on a number line is never negative, while the difference b − a has a sign; the absolute value removes the sign, so the distance is |a − b| = |b − a|. The Situations screen links this to houses, temperatures and heights; the Number line screen uses an abstract line. The Equations screen writes |ax + b| = |a|·|x + b/a|: solving |ax + b| = c, < c or > c means finding the x whose distance from −b/a equals, is less than or is greater than c/|a|. A distance cannot be negative, which settles c < 0 and c = 0.
How to use
On Situations, choose Two houses, Temperature or Height and drag the two points; tick Show signed difference (b − a) to see when b − a is negative. On Number line, type or drag a and b, and press Rotate (Horiz./Vert.). On Equations, choose =, < or >, set a, b and c with the sliders, and compare the number line with the graph. Press Record to add the case to the table, then try the Tasks.
Parameters you can change
- Screen Situations, Number line, Equations
- Situation (Situations screen) Two houses on a street, Temperature during the day, Height above sea level
- Show signed difference (b − a)
- a in |ax + b| (Equations screen) -5–5
- b in |ax + b| (Equations screen) -10–10
- c, the right-hand side (Equations screen) -5–10
- Relation (Equations screen) |ax + b| = c, |ax + b| < c, |ax + b| > c
Questions to explore
- If a = −3 and b = 5, what is the difference b − a, and what is the distance between the two points?
- Why does the sign of b − a change when the two points swap, while the distance stays the same?
- A diver is 20 m below sea level and a summit is 3000 m high; what is the vertical distance between them?
- Why does |x + 1| = −2 have no solution, while |x + 1| > −2 holds for every real number x?