Inequalities
An inequality compares two sides that need not be equal. reads " is less than 3" and reads " is at most 3", which allows 3 itself. The symbols and work the same way the other way round.
The answer to an inequality is usually a whole range of numbers, not one number. Write it as an interval: is , and is . A square bracket includes its end; a round bracket leaves it out. The symbol (infinity) only says "no end on this side", so it always gets a round bracket.
Solving a linear inequality
Solve an inequality exactly like an equation, with one exception.
Rule: Multiplying by a negative flips the sign
You may add or subtract anything on both sides, and multiply or divide by a positive number. If you multiply or divide by a negative number, reverse the direction of the sign.
Why? Multiplying by mirrors the number line. 2 is less than 5, but is greater than . Here is solved:
- 1
- 2
- 3
Try it
Test the answer on many numbers at once. The cell makes the whole numbers from −5 to 5 and keeps those that satisfy the original inequality.
Only −5, −4 and −3 pass, which matches . Check one by hand: gives , and .
Absolute value
The absolute value is the distance from to 0 on the number line. Distances are never negative, so and .
Rule: Absolute value
Keep a positive number as it is; drop the minus sign from a negative one. More usefully, is the distance between and , whichever is larger.
Try it
Python's abs is the absolute value, and NumPy's np.abs works on whole arrays.
The last line shows that is not when the signs differ: , but .
Equations with absolute values
says " is at distance 5 from 3". There are two such numbers, one on each side: or , so or .
Rule: Absolute value equations
Split into two ordinary equations, one for each sign. If is negative there is no solution, because a distance cannot be negative.
Inequalities with absolute values
says " is within of ". says " is further than from ". Read them as distances and the answers follow.
Rule: Absolute value inequalities
"Within" gives one interval around . "Further than" gives two pieces, one on each side. The same holds with and , with the ends included.
For example, means : every number within 2 of 100.
Try it
Check it on the whole numbers from 95 to 105. The ones within 2 of 100 are exactly 98 to 102.
The second line flips the test to "further than 2", which keeps both ends.
Common mistakes
- Forgetting to flip. Dividing by a negative number reverses the sign. Test one number from your answer in the original inequality.
- Losing the second answer. has two solutions, 8 and .
- Splitting absolute values over a sum. in general.
- Solving the impossible. and have no solutions.
Inequalities and absolute value
0 of 8 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- Solve an inequality like an equation, but flip the sign when you multiply or divide by a negative number.
- Intervals: square brackets include an end, round brackets leave it out; always gets a round bracket.
- is the distance from to 0, and is the distance between and . In Python,
absornp.abs. - gives . gives ; gives two pieces.
- Test answers on many numbers at once with a NumPy mask:
x[condition].