Absolute Value Inequality on a Graph

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.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Graph the V

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|

Step 1: Graph the V

Step 2: Draw the line y = 3

The inequality asks where the V stays below a height of 3.

y = 3

Step 2: Draw the line y = 3

Step 3: Find where they cross

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

Step 3: Find where they cross

Step 4: Shade where the V is lower

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

Step 4: Shade where the V is lower

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render absolute-value-graph --out /tmp/absolute-value-graph

Source: svgmath/diagrams/equations.py