Solving inequalities: how to solve and graph them
Solving inequalities like equations — with one extra rule — and showing the answer on a number line, in interval notation and as a shaded region.
An inequality compares two expressions that may not be equal, using (less than), (greater than), (less than or equal to) or (greater than or equal to). Where an equation like has one answer, an inequality like has a whole range of answers: every number less than 5.
The good news: if you can solve equations, you already know how to do inequalities. Solving inequalities works almost exactly like solving equations — add, subtract, multiply or divide both sides by the same amount — with one important exception.
The one rule that is different
When you multiply or divide both sides by a negative number, reverse the inequality sign. Why? is true, but multiplying both sides by gives and , and . Multiplying by a negative flips the order of numbers, so the sign must flip too.
How to solve an inequality, step by step
- Simplify each side (expand brackets, collect like terms).
- Get the variable terms on one side and the numbers on the other.
- Divide by the coefficient of the variable — and reverse the sign if it is negative.
- Write the answer, graph it, and test one number from the answer in the original inequality.
Worked example
Easy: a one-step inequality
Solve .
Show the working
- Subtract 4 from both sides.
- Test : is true, and 0 is in the answer.
Answer:
Checked by Sumzo’s math engine
Worked example
Medium: dividing by a negative number
Solve .
Show the working
- Subtract 3 from both sides.
- Divide by and reverse the sign.
- Test : is true.
Answer:
Checked by Sumzo’s math engine
Worked example
Medium: a compound inequality
Solve .
Show the working
- Subtract 1 from all three parts.
- Divide all three parts by 2.
Answer:
Checked by Sumzo’s math engine
Worked example
Hard: an absolute value inequality
Solve .
Show the working
- The distance from to 4 is less than 3, so is between and 3.
- Add 4 to all three parts.
Answer:
Checked by Sumzo’s math engine
The variable on both sides
Collect the variable on whichever side keeps its coefficient positive — then you never have to flip the sign.
Worked example
Collecting the variable on one side
Solve .
Show the working
- Subtract from both sides (the coefficient stays positive).
- Add 2, then divide by 2.
- Test : is true.
Answer:
Checked by Sumzo’s math engine
Inequalities in words
- “at least”, “no less than”, “minimum” →
- “at most”, “no more than”, “maximum” →
- “more than”, “over”, “exceeds” →
- “less than”, “under”, “fewer than” →
Worked example
A budget problem
A taxi charges 3 dollars plus 2 dollars per kilometre. You have 15 dollars. How far can you travel?
Show the working
- Let be the distance in km. The cost must be at most 15.
- Subtract 3, then divide by 2.
- Check: 6 km costs dollars, exactly the budget.
Answer: At most 6 km ()
Checked by Sumzo’s math engine
How to graph an inequality on a number line
- Put a dot on the boundary number.
- Use an open (hollow) dot for or , because the number itself is not included.
- Use a closed (filled) dot for or , because it is included.
- Shade the side containing the solutions: left for “less than”, right for “greater than”.
For : a filled dot at , shaded to the left. For : a filled dot at , an open dot at 3, and shading between them. In interval notation these are and — square brackets for included ends, round ones for excluded ends and for infinity.
How to graph linear inequalities in two variables
An inequality like describes a region of the coordinate plane, not a single line. To graph the linear inequality:
- Draw the boundary line : dashed for or , solid for or .
- Pick a test point not on the line — is easiest. Here is false.
- Shade the side that does not contain the test point when the test is false (above the line here), or the side that does when it is true.
Common mistakes
- Forgetting to reverse the sign after multiplying or dividing by a negative.
- Using the wrong dot: open for and , filled for and .
- Shading the wrong side. Always test one point.
- Treating “greater than” absolute value inequalities as one interval: means or — two pieces.
Frequently asked questions
What is the solution to an inequality?
Every number that makes it true. For that is every number less than 5 — a range, usually shown on a number line or in interval notation, .
How do you solve inequalities with negative numbers?
The same way as equations, except that multiplying or dividing both sides by a negative number reverses the sign. Adding or subtracting negatives doesn’t change it.
How do you graph a solution set?
On a number line: a dot at each boundary (open if not included, filled if included) and shading over every solution. In two variables: the boundary line, dashed or solid, and shading on the side that passes a test point.
What is the difference between solving an equation and an inequality?
The steps are the same, but an inequality usually has a range of answers rather than one, and the sign flips when you multiply or divide by a negative.