Solving Linear Inequalities

Your phone plan caps how much data you can use; a lift has a "maximum 8 people" sign; an online shop drops the delivery charge once you spend enough. Everyday life is full of limits, where a whole range of answers is allowed rather than one exact number — and writing and solving those limits is exactly what an inequality is for.

An equation like 3x + 2 = 11 has exactly one answer: x = 3, and nothing else fits. But change that = into a > and everything opens up. Ask instead 3x + 2 > 11 and there is no single answer — there is a whole range of them.

Try x = 4: 3(4) + 2 = 14, which really is bigger than 11. Try x = 100: also works. Try x = 3.01: works. In fact any number bigger than 3 works, and no number 3 or below does. The solution isn't a point — it's everything to the right of a line in the sand:

3x + 2 > 11 \;\Longrightarrow\; x > 3

Here's the good news: you solve an inequality almost exactly like an equation — the same operations to both sides. There is just one twist that trips up nearly everybody, and we'll make sure it never trips up you.

A linear inequality like 2x + 1 > 7 is solved almost exactly like an equation: you peel away the operations around x by doing the inverse operation to both sides, until x stands alone. If you can already solve a two-step equation, you can already do most of this.

Subtract 1 from both sides, then divide both sides by 2:

2x + 1 > 7 \;\Longrightarrow\; 2x > 6 \;\Longrightarrow\; x > 3

The answer isn't a single number — it's every number bigger than 3, the whole solution set you can picture on a number line.

Drawing the answer: open and filled circles

Because the answer is a range, we picture it on a number line. Mark the boundary value, then shade an arrow across every number that works. There is a neat convention for the boundary itself:

Here is x > 3 drawn out — a hollow ring at 3 and an arrow running off to the right, sweeping up every number bigger than 3. This is the same picture you built when you met inequalities on a number line.

Worked example: a two-sided inequality

Sometimes x is trapped between two values, written as a double inequality. The rule is simple: whatever you do, do it to all three parts at once. Solve:

-2 < 2x \le 6

Divide every part by 2 (a positive number, so no sign flips):

\frac{-2}{2} < \frac{2x}{2} \le \frac{6}{2} \;\Longrightarrow\; -1 < x \le 3

So x is any number greater than -1 and up to and including 3. On a number line that's an open circle at -1, a filled circle at 3, and a bar joining them. Whole numbers that fit: 0, 1, 2, 3 — but not -1 (open) and not 4.

The one extra rule: flipping the sign

Inequalities behave just like equations under adding and subtracting, and under multiplying or dividing by a positive number. There is exactly one difference:

If you multiply or divide both sides by a negative number, flip the inequality sign.

Take 4 > 2 (true) and divide both sides by -2. Without flipping you'd get -2 > -1, which is false — but -2 < -1 is true. Negating both sides reverses their order, just like reflecting points across 0 on the line (this is the same mirror you meet with negative numbers). So the rule keeps the statement true:

-2x > 6 \;\Longrightarrow\; x < -3

Notice: dividing by -2 turned > into <. Check it — x = -4 gives -2(-4) = 8 > 6: yes, -4 < -3 is in the solution. It really is the numbers below -3.

See it solved

Step through the solution of 2x + 1 > 7 one move at a time — each line is the inverse operation applied to both sides — then watch the final step show what happens when the divisor is negative and the sign must flip.

When you multiply or divide both sides by a negative number, you MUST flip the inequality sign< becomes >, and \ge becomes \le. This is the rule people forget, and forgetting it gives an answer that is exactly backwards.

-2x < 6 becomes x > -3not x < -3 — because dividing by -2 reverses the direction. If you're unsure, test a number: x = 0 gives -2(0) = 0 < 6, true, and 0 > -3 is indeed the answer that includes it. Two things to hold onto:

Honestly — yes, often. The real world is full of limits, not exact targets. A speed limit says v \le 70, not "drive at exactly 70". A budget says "spend \le \pounds 50". A recipe needs the oven "at least 180°C" (T \ge 180). A bridge must carry "at most" a certain load; a phrase like "you must be at least 12 to watch this" is just \text{age} \ge 12. The words "at least" (\ge) and "at most" (\le) are inequalities in disguise.

Take it further and you get one of the most useful bits of maths on Earth: linear programming. Airlines use systems of linear inequalities to schedule crews and planes; factories use them to squeeze the most output from limited machines and materials; even hospital diet plans use them to hit nutrition targets at the lowest cost. Each real-world constraint ("no more than 8 hours", "at least 5 vitamins", "budget under \pounds X") is one inequality, and the best possible plan lives at the corner where all those lines meet. Every one of those billion-pound optimisations starts with the very move you just learned: solve to both sides, and flip when you divide by a negative.

See it explained

Sal Khan works through solving a two-step inequality, including when to reverse the sign.