Sub topic 1
Reading and Writing Inequalities: Symbols, Number Lines, Intervals
Prerequisites
This chapter assumes you can add, subtract, multiply, and divide signed numbers and fractions. You should also be able to solve a linear equation in one variable and distribute a number across parentheses.
Reading and Writing Inequalities
An inequality compares two expressions that are not necessarily equal. The four main symbols are:
| Symbol | Meaning | Interval notation for x |
|---|---|---|
| x < a | x is less than a | (-∞, a) |
| x ≤ a | x is less than or equal to a | (-∞, a] |
| x > a | x is greater than a | (a, ∞) |
| x ≥ a | x is greater than or equal to a | [a, ∞) |
A parenthesis means the endpoint is excluded. A square bracket means it is included.
Solving Linear Inequalities
You solve a linear inequality the same way you solve an equation: isolate the variable. For example, to solve 3x - 5 < 7:
- Add 5 to both sides: 3x < 12.
- Divide both sides by 3: x < 4.
- In interval notation, the solution is (-∞, 4).
The following code tests values on both sides of the boundary:
# Check 3x - 5 < 7, which should give x < 4
for x in [3, 4, 5]:
print(x, 3 * x - 5 < 7)
# 3 True
# 4 False
# 5 FalseThe Negative Multiplier Rule
When you multiply or divide both sides of an inequality by a negative number, you must reverse the inequality sign.
For example, to solve -2x > 6, divide both sides by -2 and flip the sign: x < -3. The code below confirms this:
# Check -2x > 6, which should give x < -3
for x in [-4, -3, -2, 0]:
print(x, -2 * x > 6)
# -4 True
# -3 False
# -2 False
# 0 FalseExercise
Solve -4x + 1 ≥ 9 and write the solution in interval notation.
Show answer
Subtract 1 to get -4x ≥ 8. Divide by -4 and flip the sign to get x ≤ -2. In interval notation, the solution is (-∞, -2].