Category: Algebra Level: 201
|x - 2| < 3 ⇔ -1 < x < 5
Graph y = |x − 2| as a V and the line y = 3. The solutions of |x − 2| < 3 are the x values where the V dips below the line.
y = |x − 2| is the distance from x to 2. It is 0 at x = 2 and climbs 1 unit for every step away, in both directions.
y = |x - 2|
The inequality asks where the V stays below a height of 3.
y = 3
The V meets the line at x = -1 and x = 5, which are 3 steps left and right of 2.
|-1 - 2| = 3, |5 - 2| = 3
Between the crossings the V sits under the line. Drop that stretch to the x-axis: the answer is the open interval from −1 to 5.
-1 < x < 5
cd svg-generator python3 -m svgmath render absolute-value-graph --out /tmp/absolute-value-graph
Source: svgmath/diagrams/equations.py