Algebra 1Solving Inequalities2 of 3
Solving Inequalities · 2

Compound Inequalities

A single inequality puts one condition on a number, but many situations require a number to satisfy two rules at the same time.

1

AND Inequalities and Combined Notation

We want to find every number xx that satisfies both parts of this statement at once:

x>2andx≤6\displaystyle \firstrule{x > 2} \quad \text{and} \quad \secondrule{x \le 6}
AND Inequalities and Combined Notation
00
22
66
x>2andx≤6\htmlClass{lc-blue}{x > 2} \quad \text{and} \quad \htmlClass{lc-violet}{x \le 6}
Text solution
Graph each rule on its own trackThe first rule shades everything to the right of an open circle at 2\firstrule{2}, and the second rule shades everything to the left of a solid dot at 6\secondrule{6}.
x>2andx≤6\displaystyle \firstrule{x > 2} \qquad \text{and} \qquad \secondrule{x \le 6}
Keep only the overlapBecause `and` requires both rules to hold at the same time, only the numbers between 2\firstrule{2} and 6\secondrule{6} pass both tests, which lets us write the whole interval from left to right as a single statement.
2<x\displaystyle \firstrule{2} < x ≤6\displaystyle \le \secondrule{6}
x>2\htmlClass{lc-blue}{x > 2}
00
22
66
x≤6\htmlClass{lc-violet}{x \le 6}
00
22
66
2<x≤6\htmlClass{lc-blue}{2} < x \le \htmlClass{lc-violet}{6}
00
22
66

So every number greater than 2\firstrule{2} and up to 6\secondrule{6} (including 6\secondrule{6} itself) is a solution.

2

OR Inequalities

Now let's see what changes when a number only needs to satisfy at least one of the two rules:

x<1orx≥4\displaystyle \firstrule{x < 1} \quad \text{or} \quad \secondrule{x \ge 4}
OR Inequalities
00
11
44
00
11
44
x<1\htmlClass{lc-blue}{x < 1}
or\text{or}
x≥4\htmlClass{lc-violet}{x \ge 4}
Text solution
Graph each rule on its own trackThe first track shades to the left of an open circle at 1\firstrule{1}, and the second track shades to the right of a solid dot at 4\secondrule{4}.
x<1orx≥4\displaystyle \firstrule{x < 1} \qquad \text{or} \qquad \secondrule{x \ge 4}
Drop both tracks onto the number lineBecause `or` accepts any number that passes at least one rule, both rays belong to the final answer and stay written as two separate pieces connected by `or`.
x<1 or x≥4\displaystyle \firstrule{x < 1} \text{ or } \secondrule{x \ge 4}
x<1 or x≥4\htmlClass{lc-blue}{x < 1} \text{ or } \htmlClass{lc-violet}{x \ge 4}
00
11
44

So any number smaller than 1\firstrule{1}, as well as any number 4\secondrule{4} or larger, is a solution.

3

Writing a Compound Inequality from a Graph

When we start with a finished number line, the shading tells us whether to write a single combined inequality or an `or` statement.

Graph 1\text{Graph 1}
−1-1
00
33
Graph 2\text{Graph 2}
−4-4
00
22
Writing a Compound Inequality from a Graph
−1-1
00
33
Graph 1\text{Graph 1}
??
Text solution
Write a middle segment from left to right (Graph 1)Because the shading stays between −1\firstrule{-1} and 3\secondrule{3}, place xx between the endpoints in number-line order with both inequality signs opening to the right, using ≤\le for the solid dot at −1\firstrule{-1} and << for the open circle at 3\secondrule{3}.
−1\displaystyle \firstrule{-1} ≤x<3\displaystyle \le x < \secondrule{3}
Write a split graph as two pieces with `or` (Graph 2)Because the shading points outward in two separate pieces, write an inequality for the left ray and an inequality for the right ray, then join them with `or`.
x<−4 or x≥2\displaystyle \firstrule{x < -4} \text{ or } \secondrule{x \ge 2}

So Graph 1 represents −1≤x<3\firstrule{-1} \le x < \secondrule{3}, and Graph 2 represents x<−4 or x≥2\firstrule{x < -4} \text{ or } \secondrule{x \ge 2}.

4

Solving Combined Inequalities

When an expression is between two numbers, we want to isolate xx in the middle to see which values of xx keep the expression inside that interval:

−3<2x+1\displaystyle \firstrule{-3} < 2x + 1 ≤9\displaystyle \le \secondrule{9}

What if isolating xx requires dividing by a negative number?

4<−2x\displaystyle \firstrule{4} < -2x ≤10\displaystyle \le \secondrule{10}
Solving Combined Inequalities
−3<2x+1\displaystyle \firstrule{-3} < 2x + 1 ≤9\displaystyle \le \secondrule{9}
x:  ?\displaystyle x:\;?

Text solution (for −3<2x+1≤9\firstrule{-3} < 2x + 1 \le \secondrule{9}):

So xx is between an open circle at −2\firstrule{-2} and a solid dot at 4\secondrule{4}.

Text solution (for 4<−2x≤10\firstrule{4} < -2x \le \secondrule{10}):

So xx lies between −5\secondrule{-5} (included) and −2\firstrule{-2} (not included).

Multiplying or dividing by a negative flips the whole interval across 00. The old right endpoint becomes the new left endpoint, keeping its open circle or solid dot.

Flipping an interval across zero swaps its left and right ends, which flips both inequality signs.
5

Solving OR Inequalities

To solve an `or` inequality, we isolate xx in each piece separately and bring the word `or` down between the results:

3x−2<4or2x+1≥11\displaystyle \firstrule{3x - 2 < 4} \quad \text{or} \quad \secondrule{2x + 1 \ge 11}
Solving OR Inequalities
3x−2<4or2x+1≥11\displaystyle \begin{aligned}\firstrule{3x-2}&\firstrule{<4}\\[-.2em]&\text{or}\\[-.2em]\secondrule{2x+1}&\secondrule{\ge11}\end{aligned}
x:  ?\displaystyle x:\;?
Text solution
Solve the left inequalityAdd 22 to both sides and divide by 33.
3x−2<43x<6x<2\displaystyle \begin{aligned} \firstrule{3x - 2} &\firstrule{< 4} \\ 3x &< 6 \\ \firstrule{x} &\firstrule{< 2} \end{aligned}
Solve the right inequalitySubtract 11 from both sides and divide by 22.
2x+1≥112x≥10x≥5\displaystyle \begin{aligned} \secondrule{2x + 1} &\secondrule{\ge 11} \\ 2x &\ge 10 \\ \secondrule{x} &\secondrule{\ge 5} \end{aligned}
Connect the two solutions with `or`Each ray stays separate on the number line.
x<2 or x≥5\displaystyle \firstrule{x < 2} \text{ or } \secondrule{x \ge 5}

So any number less than 2\firstrule{2} or at least 5\secondrule{5} satisfies the original statement.

6

Special Cases on the Number Line

Sometimes the two tracks don't form a middle segment or two outward rays. They might never touch, cover the entire line, or point in the same direction. We want to simplify each of these pairs:

x<2andx>5x>2orx<5x>2and/orx>6\displaystyle \begin{aligned} \firstrule{x} &\firstrule{< 2} &\text{and} && \secondrule{x} &\secondrule{> 5} \\ \firstrule{x} &\firstrule{> 2} &\text{or} && \secondrule{x} &\secondrule{< 5} \\ \firstrule{x} &\firstrule{> 2} &\text{and/or} && \secondrule{x} &\secondrule{> 6} \end{aligned}
Special Cases on the Number Line
00
22
55
00
22
55
x<2\htmlClass{lc-blue}{x < 2}
and\text{and}
x>5\htmlClass{lc-violet}{x > 5}
Text solution
Non-overlapping tracks with `and` (x<2 and x>5\firstrule{x < 2} \text{ and } \secondrule{x > 5})A track shading left from 2\firstrule{2} and a track shading right from 5\secondrule{5} never overlap, so no number satisfies both rules at once.
No solution\displaystyle \text{No solution}
Opposite tracks that cross with `or` (x>2 or x<5\firstrule{x > 2} \text{ or } \secondrule{x < 5})The first track covers everything above 2\firstrule{2} and the second covers 22 and everything below it, so together they shade the entire number line.
All real numbers\displaystyle \allowedset{\text{All real numbers}}
Same-direction tracks (x>2\firstrule{x > 2} with x>6\secondrule{x > 6})Both tracks point to the right; `and` keeps only the overlap where both are shaded (from 6\secondrule{6} onward), while `or` keeps everything shaded on either track (from 2\firstrule{2} onward).
x>2 and x>6  ⟹  x>6x>2 or x>6  ⟹  x>2\displaystyle \begin{aligned} \firstrule{x > 2} \text{ and } \secondrule{x > 6} &\implies \secondrule{x > 6} \\ \firstrule{x > 2} \text{ or } \secondrule{x > 6} &\implies \firstrule{x > 2} \end{aligned}

When two opposite-pointing tracks cross in the middle, `and` keeps the segment between them while `or` covers the whole number line. When there is a gap between the tracks, `and` has no overlap at all while `or` gives two outward rays.

See how AND keeps only where the two rays overlap, while OR keeps everything either ray covers.
7

Word Problems with Compound Inequalities

Some real-world situations give a target range with a minimum and a maximum. Here, a fish tank must stay between 72∘F\firstrule{72}^\circ\text{F} and 78∘F\secondrule{78}^\circ\text{F}, inclusive. The water starts at 60∘F60^\circ\text{F}, and a heater warms it by 3∘F\rate{3}^\circ\text{F} per hour. We want to find when the water is in the safe temperature range, with hh measured in hours since the heater was turned on.

Word Problems with Compound Inequalities
+3∘F  per hour\htmlClass{lc-pink}{+3}^\circ\mathrm{F}\;\text{per hour}
72∘F\htmlClass{lc-blue}{72}^\circ\mathrm{F}
78∘F\htmlClass{lc-violet}{78}^\circ\mathrm{F}
60∘F60^\circ\mathrm{F}
Hours in the safe zone=  ?\text{Hours in the safe zone} = \;?
Text solution
Put the temperature expression between the minimum and maximumStarting at 60∘F60^\circ\text{F} and adding 3∘F\rate{3}^\circ\text{F} per hour gives 60+3h60 + \rate{3}h, which must stay between 72\firstrule{72} and 78\secondrule{78}, including both endpoints.
72\displaystyle \firstrule{72} ≤60+3h\displaystyle \le 60 + \rate{3}h ≤78\displaystyle \le \secondrule{78}
Subtract 6060 from all three partsSubtract the starting temperature from the middle expression and both endpoints.
72−60≤3h≤78−6012≤3h≤18\displaystyle \begin{aligned} \firstrule{72} - 60 &\le \rate{3}h \le \secondrule{78} - 60 \\ \firstrule{12} &\le \rate{3}h \le \secondrule{18} \end{aligned}
Divide all three parts by 3\rate{3}Isolate hh to find the time range.
4\displaystyle \firstrule{4} ≤h\displaystyle \le h ≤6\displaystyle \le \secondrule{6}

So the water stays in the safe temperature range from 4\firstrule{4} to 6\secondrule{6} hours after the heater is turned on.

Key concepts

Everything on this page comes down to how two rules combine on the number line:

`and` keeps only the overlap

Both rules must hold at the same time. When the overlap puts xx between two numbers, write it from left to right as a single combined inequality where both signs open to the right, like −1≤x<3\firstrule{-1} \le x < \secondrule{3}.

`or` keeps everything on either track

Passing just one rule is enough. When the graph splits into two outward rays, keep the answer written as two pieces joined by `or`, like x<−4 or x≥2\firstrule{x < -4} \text{ or } \secondrule{x \ge 2}. Never combine an `or` graph into a single statement like −4>x≥2-4 > x \ge 2.

Isolating xx in a combined inequality

Apply each step to all three parts at once. If you multiply or divide by a negative number, the interval flips across 00, so flip both inequality signs and rewrite the result from smallest to largest (4<−2x≤10\firstrule{4} < -2x \le \secondrule{10} becomes −2>x≥−5\firstrule{-2} > x \ge \secondrule{-5}, written as −5≤x<−2\secondrule{-5} \le x < \firstrule{-2}).

When in doubt, sketch the two tracks

Don't assume every `and` problem leaves a middle segment or every `or` problem splits apart:

  • x<2 and x>5\firstrule{x < 2} \text{ and } \secondrule{x > 5} has no overlap →No solution\rightarrow \text{No solution}.
  • x>2 or x<5\firstrule{x > 2} \text{ or } \secondrule{x < 5} covers the whole line →All real numbers\rightarrow \allowedset{\text{All real numbers}}.
  • x>2 and x>6\firstrule{x > 2} \text{ and } \secondrule{x > 6} overlaps only after 6→x>6\secondrule{6} \rightarrow \secondrule{x > 6}.
8

Practice

1

Write the compound inequality shown by a number line with an open circle at −3\firstrule{-3}, a solid dot at 5\secondrule{5}, and shading between them.

−3-3
00
55

Because the shading is between two endpoints, write −3\firstrule{-3}, xx, and 5\secondrule{5} in order from left to right and match each inequality sign to its circle type.

Write the interval from left to right with `<` at the open circle −3\firstrule{-3} and `≤` at the solid dot 5\secondrule{5}:
(Warning: Watch which endpoint has the solid dot: putting `≤` on −3\firstrule{-3} and `<` on 5\secondrule{5} gives the wrong answer −3≤x<5-3 \le x < 5.)
−3<x\displaystyle \firstrule{-3} < x ≤5\displaystyle \le \secondrule{5}
2

Write the compound inequality shown by a number line with a solid dot at −2\firstrule{-2} shaded to the left and an open circle at 4\secondrule{4} shaded to the right.

−2-2
00
44

The shading is split into two separate rays pointing away from each other, so write a separate inequality for each ray.

The left ray is x≤−2\firstrule{x \le -2} and the right ray is x>4\secondrule{x > 4}, connected by `or`:
(Warning: Never force two outward rays into a single combined statement: writing −2≥x>4-2 \ge x > 4 or −2≤x<4-2 \le x < 4 doesn't match the graph.)
x≤−2 or x>4\displaystyle \firstrule{x \le -2} \text{ or } \secondrule{x > 4}
3

Solve −5≤3x+4<19\firstrule{-5} \le 3x + 4 < \secondrule{19}.

Undo the +4+4 first by subtracting 44 from the middle and from both endpoints.

Subtract 44 from all three parts:
(Warning: Remember to subtract 44 from the left endpoint −5\firstrule{-5} as well, and watch the negative signs: leaving −5\firstrule{-5} unchanged gives −53≤x<5-\frac{5}{3} \le x < 5, and computing −5−4=−1-5 - 4 = -1 gives −13≤x<5-\frac{1}{3} \le x < 5.)
−9\displaystyle \firstrule{-9} ≤3x<15\displaystyle \le 3x < \secondrule{15}
Divide all three parts by 33:
−3\displaystyle \firstrule{-3} ≤x<5\displaystyle \le x < \secondrule{5}
4

Solve 4x−1<−9\firstrule{4x - 1 < -9}  or \text{ or } 2x+5≥13\secondrule{2x + 5 \ge 13}.

Solve each inequality on its own, then join the two results with `or`.

Add 11 and divide by 44 on the left; subtract 55 and divide by 22 on the right:
4x<−8or2x≥8x<−2orx≥4\displaystyle \begin{aligned} 4x &< -8 \quad &\text{or} \quad 2x &\ge 8 \\ \firstrule{x} &\firstrule{< -2} \quad &\text{or} \quad \secondrule{x} &\secondrule{\ge 4} \end{aligned}
(Warning: Keep the two pieces separated with `or` at the end: combining them into −2>x≥4-2 > x \ge 4 claims −2-2 is greater than 44.)
x<−2 or x≥4\displaystyle \firstrule{x < -2} \text{ or } \secondrule{x \ge 4}
5

Solve −8<2−5x≤17\firstrule{-8} < 2 - 5x \le \secondrule{17}.

First subtract 22 from all three parts to isolate −5x-5x, then pay attention to the sign of the number you divide by next.

Subtract 22 from all three parts:
−10<−5x\displaystyle \firstrule{-10} < -5x ≤15\displaystyle \le \secondrule{15}
Divide all three parts by −5-5 and flip both inequality signs, then write from smallest to largest:
(Warning: Dividing by −5-5 without flipping both signs gives 2<x≤−32 < x \le -3, and swapping the endpoints without keeping `≤` attached to −3\secondrule{-3} gives the wrong answer −3<x≤2-3 < x \le 2.)
2>x≥−3−3≤x<2\displaystyle \begin{aligned} \firstrule{2} &> x \ge \secondrule{-3} \\ \secondrule{-3} &\le x < \firstrule{2} \end{aligned}
6

Solve and simplify x+3>1\firstrule{x + 3 > 1}  and \text{ and } 2x−1≥7\secondrule{2x - 1 \ge 7}.

After solving each inequality, sketch the two tracks to see where they overlap before writing your final answer.

Solve both pieces:
x>−2andx≥4\displaystyle \firstrule{x > -2} \quad \text{and} \quad \secondrule{x \ge 4}
Both tracks point to the right, and `and` keeps only their overlap starting at 4\secondrule{4}:
(Warning: Don't assume every `and` problem puts xx between the two numbers to give −2<x≤4-2 < x \le 4, and don't take the wider track x>−2\firstrule{x > -2} as if they were joined by `or`.)
x≥4\displaystyle \secondrule{x \ge 4}
7

Solve 3x+2≤−4\firstrule{3x + 2 \le -4}  and \text{ and } 2x−5>1\secondrule{2x - 5 > 1}.

Isolate xx in both inequalities, then check on a number line whether any number can satisfy both results at the same time.

Solve each inequality:
x≤−2andx>3\displaystyle \firstrule{x \le -2} \quad \text{and} \quad \secondrule{x > 3}
The first track shades left from −2\firstrule{-2} and the second shades right from 3\secondrule{3}, so they never overlap:
(Warning: Don't write −2≥x>3-2 \ge x > 3 or x≤−2 or x>3x \le -2 \text{ or } x > 3: because they are joined by `and` and the tracks have no overlap, no number works.)
No solution\displaystyle \text{No solution}
8

Solve 2x−3<7\firstrule{2x - 3 < 7}  or \text{ or } x+4>2\secondrule{x + 4 > 2}.

Solve both inequalities, then drop both shaded tracks onto a single number line to see what they cover together.

Solve each inequality:
x<5orx>−2\displaystyle \firstrule{x < 5} \quad \text{or} \quad \secondrule{x > -2}
Because `or` combines both tracks (everything below 5\firstrule{5} together with everything above −2\secondrule{-2}), the entire number line is shaded:
(Warning: Taking only the middle overlap −2<x<5-2 < x < 5 treats the problem as an `and` statement instead of an `or` statement.)
All real numbers\displaystyle \allowedset{\text{All real numbers}}
9

A greenhouse must stay between 65∘F\firstrule{65}^\circ\text{F} and 77∘F\secondrule{77}^\circ\text{F}, inclusive. The temperature is currently 53∘F53^\circ\text{F}, and a heater raises it by 4∘F\rate{4}^\circ\text{F} per hour. Let hh be the number of hours since the heater was turned on. Write and solve a compound inequality for the values of hh when the greenhouse is within the target temperature range.

Write an expression for the temperature after hh hours, then put it between 65\firstrule{65} and 77\secondrule{77}.

Put the temperature 53+4h53 + \rate{4}h between 65\firstrule{65} and 77\secondrule{77}, using `≤` because 65\firstrule{65} and 77\secondrule{77} are included:
(Warning: Using `<` signs instead of `≤` ignores the word "inclusive" and wrongly leaves out the endpoints 3<h<63 < h < 6.)
65\displaystyle \firstrule{65} ≤53+4h\displaystyle \le 53 + \rate{4}h ≤77\displaystyle \le \secondrule{77}
Subtract 5353 from all three parts, then divide by 4\rate{4}:
12≤4h≤243≤h≤6\displaystyle \begin{aligned} \firstrule{12} &\le \rate{4}h \le \secondrule{24} \\ \firstrule{3} &\le h \le \secondrule{6} \end{aligned}