Chalk−1

Math · College algebra · Concept

Linear inequalities and interval notation

Solve a linear inequality like an equation, with one extra rule: multiplying or dividing both sides by a negative number reverses the inequality sign. The solution is usually a whole interval of numbers, written as an inequality, on a number line or in interval notation.

Try one — Chalk checks each line

A concrete case

How far can $15 take you?

A taxi charges $3 when you get in and $2 for every mile. You have $15. A trip of 4 miles costs 3+2⋅4=$11, which you can pay. A trip of 6 miles costs 3+2⋅6=$15, exactly what you have, so it is allowed too. A trip of 6.5 miles costs $16, one dollar too many.

The question has no single answer. Every distance from 0 up to 6 miles works, and nothing past 6 does. That whole stretch of numbers is the answer.

Written with a letter, the cost of m miles is 3+2⁢m, and the condition is 3+2⁢m≤15. Solving it the way you would solve an equation gives the same stretch. Take 3 from both sides to get 2⁢m≤12, then halve both sides to get m≤6.

3+2⁢m≤152m≤12m≤6
3+2⁢m≤152m≤12m≤6
Trying distances in 3 +2⁢m ≤15
Miles, mCost, 3+2⁢mAt most $15?
411Yes
615Yes (equal)
6.516No
1023No

The rule

What a solution set looks like

An inequality compares two sides with one of four signs. The signs < (less than) and > (greater than) are strict, so they leave out the number where the two sides are equal. The signs ≤ and ≥ allow equality and include it. The solution set is every number that makes the inequality true, and for a linear inequality it is a whole interval.

Interval notation names an interval by its two ends, smaller first. A parenthesis leaves an end out and a square bracket includes it. The symbol ∞, infinity, marks an interval with no end on that side. Infinity is not a number the interval reaches, so it always takes a parenthesis. A union sign, ∪, joins two separate pieces.

Three ways to write a solution set
InequalityInterval notationOn a number line
x<6(−∞,6)Open circle at 6, shaded to the left
x≥−2[−2,∞)Filled dot at −2, shaded to the right
−1 <x ≤4(−1,4]Open at −1, filled at 4, shaded between
x≤0 or x>3(−∞,0]∪(3,∞)Two rays pointing apart

The moves that keep the solutions

Three moves keep exactly the same solutions, as they do for an equation. You may add the same number to both sides, or subtract it. You may multiply or divide both sides by the same positive number. None of these changes the sign.

The fourth move is the one that is new. Multiplying or dividing both sides by a negative number reverses the sign, so < becomes > and ≤ becomes ≥. Dividing −3⁢x≤6 by −3 gives x≥−2.

a<ba+c<b+c,a<bka>k⁢b  (k<0)
a<ba+c<b+ca<bka>k⁢b  (k<0)

Why it works

Why a negative number turns the sign around

Start with 2<5. Add 4 to both sides and you get 6<9. Both numbers slid 4 places along the number line, and the one on the left is still on the left. Multiply both by 3 and you get 6<15. Both moved away from zero by the same factor, and their order survived again.

Now multiply both by −1. You get −2 and −5, and −2 is the larger of the two, since it sits closer to zero on the negative side. Multiplying by −1 reflects the number line through zero, which swaps left and right. The order of every pair of numbers turns around, so the sign must too.

The algebra says the same thing. a<b means b−a is positive. For a negative k, the difference kb−ka=k⁢(b−a) is a negative times a positive, which is negative. That makes kb smaller than ka, which is ka>kb.

2<5⟹−2>−5
What each move does to 2<5
MoveResultOrder kept?
Add 46<9Yes
Subtract 7−5<−2Yes
Multiply by 36<15Yes
Multiply by −1−2>−5Reversed
Divide by −2−1 >−2.5Reversed

The method

Solving step by step

Solve the inequality as you would the equation, and watch for the one move that turns the sign. The table works through 7−2⁢x>3⁢x−8, the first worked example below.

Give each step a line of its own, because the sign is easy to lose when two steps are done at once.

The steps on 7 −2⁢x >3⁢x−8
StepWhat to doFor 7−2⁢x >3⁢x−8
1Clear brackets and fractions on each sideNothing to clear
2Gather the x terms on one side7−5⁢x >−8
3Gather the numbers on the other side−5⁢x >−15
4Divide by the coefficient of x, turning the sign if it is negativex<3
5Write the interval, with a bracket only where the sign allows equality(−∞,3)
6Test a number inside and a number outsidex=0 works, x=4 does not

Can you avoid the flip?

You can. Collect the x terms on the side where their coefficient comes out positive. In 4−3⁢x≤10, add 3⁢x to both sides and subtract 10 to get −6≤3⁢x, and then −2≤x. That is x≥−2, the same answer as dividing −3⁢x≤6 by −3 and turning the sign.

Read −2≤x from right to left and it says x≥−2. An inequality may be read in either direction, as long as the sign still points at the smaller side.

4−3⁢x≤10−6≤3⁢xx≥−2
4−3⁢x≤10−6≤3⁢xx≥−2

Compound inequalities, “and” and “or”

A compound inequality joins two conditions. With “and”, a number must satisfy both, and the answer is usually one interval. A three-part inequality such as −3≤2⁢x+1<7 is an “and” statement. Solve it by doing the same thing to all three parts at once. Subtract 1 from each part to get −4≤2⁢x<6, then halve each part to get −2≤x<3.

With “or”, a number needs to satisfy only one condition. Solve each piece on its own and join the answers with ∪. For 3−x≥5 or 2⁢x−3>7, the pieces are x≤−2 and x>5, so the answer is (−∞,−2]∪(5,∞).

−3≤2⁢x+1<7−2≤x<3

Where it breaks

Where it breaks

The rules need to know the sign of what you multiply by. Dividing 3⁢x<x2 by x looks harmless and gives 3<x. It loses every negative solution, because for a negative x the sign should have turned. Move every term to one side instead, x2−3⁢x>0, factor it as x⁢(x−3)>0, and the answer is x<0 or x>3.

A quadratic inequality is not linear, and solving it like one fails. Move every term to one side and factor. The expression can change sign only at its zeros, so a sign chart of the intervals between them gives the answer. x2−x−6 =(x−3)⁢(x+2) is negative only between −2 and 3.

Some linear inequalities lose their x completely. 2⁢x+1<2⁢x+3 becomes 1<3, which is always true, so every real number is a solution. 2⁢x+1>2⁢x+3 becomes 1>3, which is never true, so there is no solution.

“And” is not “or”. x<−1 and x>4 has no solution, since no number is on both sides at once. x<−1 or x>4 is two rays. Writing 4<x<−1 says neither, because it claims 4<−1.

x2−x−6<0⁢(x−3)⁢(x+2)<0−2<x<3
x2−x−6<0(x−3)⁢(x+2)<0−2<x<3

Check your answer

Check your answer

The answer to an inequality is a whole set of numbers, so test it at more than one.

Test a number inside your answer and one outside it in the original inequality. The first must make it true and the second false. If both are true, a sign went wrong somewhere.

Test the endpoint. It makes the two sides equal, and it belongs to the answer only when the original sign is ≤ or ≥.

Graph both sides as lines. For 7−2⁢x>3⁢x−8, the lines y=7−2⁢x and y=3⁢x−8 cross at x=3, and the first line is the higher one to the left of 3.

To have Chalk check the work, write it in a Math box with the original inequality on the first row and each step on its own row below it. The Checker compares each row’s solution set with the row above. A step that forgets to turn the sign reads ✗ with “Different solution set from row 3”, naming the row it disagrees with. Chalk also reads interval notation on a row of its own, written x∈(−∞,3), and two pieces joined by “or”.

If x<3, must x2<9?

No. x=−4 satisfies x<3, but x2=16. Squaring keeps the order only when both sides are nonnegative, because x2 falls as x climbs toward 0 from below. The solutions of x2<9 are −3<x<3, which leaves out every x≤−3. Treating squaring like adding a number skips that check.

Which moves keep the order

Adding 4 and multiplying by 3 are increasing functions. A larger input always gives a larger output, so applying one to both sides keeps the order. Multiplying by −3 is a decreasing function, and a decreasing function turns every comparison around.

The same idea covers moves you will meet later. Taking reciprocals of positive numbers is decreasing, so 2<5 becomes 1⁢/2>1⁢/5. Squaring is increasing only for numbers that are not negative. −3<2, yet 9>4, so squaring both sides of an inequality is safe only when both sides are known to be at least 0.

The sign chart from Where it breaks is the tool for inequalities with x in a product or a denominator. Absolute value inequalities, such as ∣⁢x−2⁢∣<3, turn into the compound inequalities of this lesson.

Common mistakes

  • Forgetting to turn the sign after dividing by a negative. −3⁢x≤6 gives x≥−2, not x≤−2, because dividing by −3 reverses the order of every pair of numbers.
  • Turning the sign after adding or subtracting a negative number. x−4>−7 gives x>−3 with the sign unchanged, because adding slides both sides the same way along the number line.
  • Putting a bracket at infinity, as in [2,∞]. Write [2,∞) instead, because infinity is not a number the interval reaches.
  • Writing the ends of an interval in the wrong order, as (6,−∞) for x<6. The interval is (−∞,6), because interval notation reads from left to right along the number line.
  • Dividing both sides by x. 3⁢x<x2 divided by x gives x>3 and loses every negative solution. Factor x⁢(x−3)>0 instead, which gives x<0 or x>3.
  • Writing an “or” answer as one three-part inequality. x≤−2 or x>5 written as 5<x≤−2 describes no number at all. Join the two pieces with ∪, as (−∞,−2]∪(5,∞).

Key terms

Inequality
A comparison using <, >, ≤ or ≥. A strict comparison (< or >) excludes equality, and a non-strict one (≤ or ≥) allows it. Multiplying or dividing both sides by a negative number reverses the direction.
Interval
An unbroken stretch of the number line, such as all x from 2 to 5. A bracket [ ] includes an endpoint and a parenthesis ( ) leaves it out.
Open interval
An interval that leaves out its endpoints: (a,b) means a<x<b. Infinity always takes a parenthesis because it is not a number you can reach.
Closed interval
An interval that includes both endpoints: [a,b] means a≤x≤b. A half-open interval, such as [a,b), includes one endpoint and leaves out the other.
Compound inequality
Two inequalities joined by “and” or “or”. “And” keeps the values that satisfy both, such as −2≤x<3. “Or” keeps the values that satisfy either, such as x<−3 or x>3.
Sign chart
A number line split at the zeros and undefined points of an expression, showing where it is positive, negative, zero or undefined. The sign can change only at those points.

Work through an example

Solve 7−2⁢x>3⁢x−8. Write the solution in interval notation and check it.

Solve a linear inequality with a sign flip →

Solve a compound inequality →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check the sign flip in Math Check each step in Math Study the 6 key terms Open worked example on a board Inequality rules in Math Reference

Your existing work stays on this device. Examples open as editable copies.