Index Ai Academy
Foundation · Foundation mathAlgebra

Inequalities and true-or-false

About 42 minLooking ahead: some prerequisites aren't done yet

Why this matters

An equation pins a number down; an inequality says where a number may sit. "At least 18", "below freezing" and "between 0 and 1" are inequalities. They're how rules and limits are written, and in code they become decisions: if this, do that. Machine learning is full of them: a score of at least 0.5 means yes, a step too big gets clipped, and the most common activation, ReLU, is a decision on every number.

  • Read and solve inequalities, flipping the sign when multiplying or dividing by a negative
  • Describe a range of numbers, with each end in or out, and read |x| < k as a range
  • Make decisions in Python with if, elif and else, and combine conditions with and, or and not
  • Write a threshold, a clip and ReLU, the decisions inside a model
Quick check
Have a guess before you start. Which numbers make −2x < 6 true?

The math: where a number may sit

Purpose. State a rule about a range of numbers, not one number.

The four signs: < "less than", ≤ "less than or equal to", > "greater than", ≥ "greater than or equal to". x ≥ 18 includes 18; x > 18 doesn't. On a number line, a filled dot marks an end that's included, and an open dot one that isn't.

A range, or interval, has two ends: 0 ≤ x < 10 means x is at least 0 and below 10. It includes 0 but not 10.

Solving an inequality works like solving an equation, with one change. Adding or taking away on both sides is fine, and so is multiplying or dividing by a positive number. But multiplying or dividing by a negative flips the sign: −2x < 6 becomes x > −3.