Systems and Inequalities

Solving Linear Inequalities and Graphing the Answer

Solve linear inequalities step by step, know when the symbol reverses, and draw the solution set on a number line.

Key takeaways

  • A solution of an inequality is any number that makes the statement true, and there are usually infinitely many.
  • Adding or subtracting the same quantity on both sides keeps the symbol pointing the same way.
  • Multiplying or dividing by a positive number keeps the symbol, while a negative number reverses it.
  • On a number line, an open circle excludes the endpoint and a filled circle includes it.
  • Check an answer by testing the boundary and one number on each side of it.

You solve a linear inequality almost exactly as you solve a linear equation: simplify each side, gather the variable on one side and undo the operations around it. The one added rule is that multiplying or dividing both sides by a negative number reverses the inequality symbol.

The answer looks different, though. Instead of a single number, you usually get a whole stretch of the number line, such as every number less than 6. A graph shows that stretch at a glance.

What an inequality asks for

An inequality compares two expressions with one of four symbols: < (is less than), > (is greater than), ≤ (is less than or equal to) and ≥ (is greater than or equal to). A linear inequality is one where the variable appears only to the first power, as in 3x - 7 < 11. In this article the variable stands for a real number.

A solution is a value that makes the statement true. For 3x - 7 < 11, the value x = 2 works, since -1 < 11. So does x = 5.9. The value x = 8 fails, since 17 is not less than 11. The collection of all values that work is the solution set.

You cannot list that set one number at a time, so you describe it with a simpler inequality such as x < 6. Every step of solving should produce a new inequality with exactly the same solutions as the one before. The idea matches what a solution to an equation means, except that the set is much larger.

The moves you are allowed to make

Each legal move rewrites the inequality without changing its solution set.

Move Effect on the symbol
Simplify one side Stays the same
Add or subtract the same quantity on both sides Stays the same
Multiply or divide both sides by a positive number Stays the same
Multiply or divide both sides by a negative number Reverses
Swap the two sides Reverses

The last row is only a matter of reading. The statements 4 < x and x > 4 say the same thing, so when you move x to the left you turn the symbol around with it.

Multiplying both sides by zero is never useful, because it erases the variable. Multiplying by an expression whose sign you do not know is risky too, since you cannot tell whether to reverse. The reason behind the negative rule is worth seeing, and it is laid out in why the sign flips.

A first example from start to finish

Solve 3x - 7 < 11.

3x - 7 < 11
3x < 18          add 7 to both sides
x < 6            divide by 3, which is positive

Now check. At the boundary x = 6, the left side is 3 × 6 - 7 = 11. The two sides are equal there, which confirms that 6 is the dividing point. Test a number below it: x = 0 gives -7 < 11, which is true. Test a number above it: x = 7 gives 14 < 11, which is false. The solution set is every real number less than 6.

Compare that with the equation 3x - 7 = 11, whose only solution is 6. The equation finds the border, and the inequality tells you which side of the border to keep.

Drawing the solution on a number line

A number line graph needs three decisions.

  1. Mark the boundary number.
  2. Choose the circle. Use an open circle for < or >, because the boundary is not a solution. Use a filled circle for ≤ or ≥, because it is.
  3. Shade the side that holds the solutions, and add an arrow if the shading goes on without end.
x < 6      <============○------------>
                        6

x ≥ -2     <------------●============>
                       -2

When the variable is on the left, the symbol points the same way as the shading: x < 6 shades left and x ≥ -2 shades right. That shortcut fails if the variable is on the right, so rewrite 6 > x as x < 6 before you shade. You can also record the answers as (-∞, 6) and [-2, ∞), a system explained in interval notation with number line pictures.

From inequality to graph
1 Simplify each side Distribute, clear fractions, combine like terms 2 Gather the variable Add or subtract on both sides 3 Divide by the coefficient Reverse the symbol if it is negative 4 Draw it Open or filled circle, then shade one side 5 Test a point Try values in the original inequality Simplify each side Distribute, clear fractions, combine like terms 1 Gather the variable Add or subtract on both sides 2 Divide by the coefficient Reverse the symbol if it is negative 3 Draw it Open or filled circle, then shade one side 4 Test a point Try values in the original inequality 5

Variables on both sides

Solve 4x + 3 ≤ 7x - 9. You may collect the variable on either side. Here are both choices.

Collect on the left                 Collect on the right
4x + 3 ≤ 7x - 9                     4x + 3 ≤ 7x - 9
-3x + 3 ≤ -9      subtract 7x       3 ≤ 3x - 9       subtract 4x
-3x ≤ -12         subtract 3        12 ≤ 3x          add 9
x ≥ 4             divide by -3      4 ≤ x            divide by 3

The results x ≥ 4 and 4 ≤ x are identical. The left route needed a reversal and the right route did not. If you keep the variable coefficient positive, you avoid the step where most errors happen. The same planning helps in equations with variables on both sides.

Check with x = 4: the sides are 19 and 19, so equality holds and ≤ includes it. With x = 5, the statement is 23 ≤ 26, which is true. With x = 0, it is 3 ≤ -9, which is false.

Parentheses and fractions

Solve (x - 2)/3 + 1 > x/2. The least common denominator of 3 and 2 is 6. Because 6 is positive, multiplying by it leaves the symbol alone.

(x - 2)/3 + 1 > x/2
2(x - 2) + 6 > 3x      multiply every term by 6
2x - 4 + 6 > 3x        distribute
2x + 2 > 3x            combine
2 > x                  subtract 2x
x < 2                  read from the variable's side

Test x = 0: the left side is -2/3 + 1 = 1/3, and 1/3 > 0 is true. Test x = 4: the left side is 2/3 + 1 = 5/3, and 5/3 > 2 is false. Every term must be multiplied by 6, including the lone 1. Skipping it is a frequent slip, and the same technique appears in clearing fractions with a common denominator.

Turning a situation into an inequality

Say a gym charges a $25 joining fee plus $18 per month, and you want to spend no more than $200. Let m be the whole number of months.

25 + 18m ≤ 200
18m ≤ 175
m ≤ 9.72...

The algebra allows any real number up to about 9.72, but months are counted in whole units here. The largest value that works is 9, at a cost of $187. Ten months would cost $205, which is over the limit. Also, m cannot be negative, so the realistic solutions are the whole numbers from 0 through 9, graphed as separate dots instead of a solid ray.

The context decides which numbers count. A length may take any positive value, while a number of tickets or people may not. State that restriction along with your algebraic answer.

Reading a solution from two lines

A graph in the coordinate plane gives a second way to see why the answer is a ray. Take 3x - 7 < 11 again and think of each side as a function: y = 3x - 7 is a rising line, and y = 11 is a flat one. The inequality asks where the rising line lies below the flat line.

The two lines cross where 3x - 7 = 11, at x = 6. To the left of the crossing, the rising line is lower. To the right, it is higher. So the solutions are exactly the x values to the left of 6.

This view explains two things at once. First, the boundary of a linear inequality is the solution of the matching equation. Second, the solution set is one whole side of that boundary, because two different straight lines cross at most once and cannot swap places anywhere else.

It also gives you a quick plausibility check. Before solving, try a convenient number such as x = 0. If 0 makes the inequality true, your final ray or region had better contain 0. If it does not, your answer must leave 0 out. A mismatch means a step went wrong, most often a missed reversal or a sign lost while distributing.

Mistakes that change the answer

  • Forgetting to reverse. From -5x < 20, the correct result is x > -4. The value x = 0 shows it: 0 < 20 is true.
  • Reversing when you should not. In 5x < -20, you divide by positive 5, so x < -4. A negative number on the other side has no effect on the symbol.
  • Using the wrong circle. The graph of x > 1 has an open circle at 1, while x ≥ 1 has a filled one.
  • Shading by the arrow when the variable is on the right. The statement 3 < x means numbers greater than 3.
  • Giving only the boundary. Writing x = 6 as the answer to an inequality drops almost the whole solution set.

Common questions

What if the variable disappears?

Then look at what is left. A true statement such as 2 < 5 means every real number is a solution, and a false one such as 7 < 1 means there are none. Examples are collected in inequalities with no solution or every number as a solution.

How do I check infinitely many answers?

You check the structure with a few well-chosen values. The boundary should make the two sides equal. A point inside your shaded region should make the original inequality true, and a point outside should make it false. If both test points behave the wrong way, you probably missed a reversal.

Does this work for two variables?

The algebra moves are the same, but the solution set becomes a region of the coordinate plane instead of part of a line. That is the subject of graphing linear inequalities in two variables.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 28 articles in Systems and Inequalities →

Latest news on this topic