Category: Algebra Level: 201
-2x + 3 < 7 ⇒ -2x < 4 ⇒ x > -2
Solve an inequality like an equation, with one catch: multiplying or dividing by a negative number flips the number line, so the inequality sign flips too.
Peel off the + 3 first, just as with an equation. The top line shows the values that −2x may take: anything less than 4.
-2x + 3 - 3 < 7 - 3 so -2x < 4
Each value on the top line maps to x = value ÷ (−2). The arrows cross in the middle: big numbers become small ones, so the order reverses.
4 / (-2) = -2
The orange values left of 4 on top land right of -2 on the bottom. Less-than becomes greater-than.
-2x < 4 ⇒ x > -2
Plug in a shaded point and an unshaded point. Only the shaded one makes the original inequality true, so the shading is right.
x = 0: -2(0) + 3 = 3 < 7 true; x = -3: -2(-3) + 3 = 9 < 7 false
cd svg-generator python3 -m svgmath render inequality-number-line --out /tmp/inequality-number-line
Source: svgmath/diagrams/equations.py