Equations & Inequalities

Compound Inequalities: How to Solve, Graph and Check Them

A compound inequality joins two inequalities with and or or. With and, the answer is the overlap of the two solution sets. With or, the answer is everything that satisfies at least one piece.

a<px+q<b  ⇒  a−qp<x<b−qp(p>0)a < px + q < b \;\Rightarrow\; \frac{a-q}{p} < x < \frac{b-q}{p} \quad (p>0)

Try it with your numbers

Show every step

To solve one, treat each piece like an ordinary inequality, or apply every step to all three parts of a chain such as a<x<ba < x < b. If you need a refresher on single inequalities first, solving linear inequalities covers the basics. The real skill here is combining the pieces correctly and spotting when the combination breaks.

What are compound inequalities and how do and/or differ?

A compound inequality is two conditions on the same variable, tied together by a word. The statement x>1x > 1 and x<6x < 6 is usually written as the chain 1<x<61 < x < 6. The statement x<1x < 1 or x>6x > 6 cannot be written as a chain, because no number is below 11 and above 66 at the same time.

In set language, and means intersection (the overlap) and or means union (everything covered by either piece). That gives a quick sanity test you can use on every problem: an and answer is never bigger than either piece alone, and an or answer is never smaller than either piece alone. If your final answer breaks that rule, a step went wrong.

Word problems rarely say and or or out loud, so it helps to translate the phrasing:

  • “between 2 and 9” means 2<x<92 < x < 9, and “from 2 to 9” usually includes the ends: 2≤x≤92 \le x \le 9
  • “at least 3 and at most 8” means 3≤x≤83 \le x \le 8
  • “below 2 or above 9” means x<2x < 2 or x>9x > 9
  • “not between 2 and 9” flips to an or statement: x<2x < 2 or x>9x > 9 (with the ends allowed if “between” was strict)

Quick check

Is x=7x = 7 a solution of x<3x < 3 or x>6x > 6?

How do you solve a three-part compound inequality?

A chain like a<u<ba < u < b is really two inequalities that share the middle expression. Subtracting the same number from the left side, the middle and the right side is just doing the same thing to both hidden inequalities at once. That is the whole reason the “all three parts” shortcut is legal, and it gives the general rule for p>0p > 0:

a<px+q<b  ⇒  a−qp<x<b−qpa < px + q < b \;\Rightarrow\; \frac{a-q}{p} < x < \frac{b-q}{p}

Example 1. Solve −3≤2x+1<7-3 \le 2x + 1 < 7.

Subtract 11 from all three parts:

−4≤2x<6-4 \le 2x < 6

Divide all three parts by 22:

−2≤x<3-2 \le x < 3

In interval notation this is [−2,3)[-2, 3). The moves are the same ones you use in two-step equations, just applied three times per step. Notice that each inequality sign stays exactly as it was, so the left end is included and the right end is not.

When the shortcut fails

The chain method only works when xx appears in the middle alone. If xx also sits in an outer part, as in x−2<3x<x+8x - 2 < 3x < x + 8, split it into two inequalities and solve each one.

Here is that split. From x−2<3xx - 2 < 3x you get −2<2x-2 < 2x, so x>−1x > -1. From 3x<x+83x < x + 8 you get 2x<82x < 8, so x<4x < 4. Both must hold, so the answer is −1<x<4-1 < x < 4. Moving variable terms across sides works exactly as it does in equations with variables on both sides.

How do negative numbers change a compound inequality?

Multiplying or dividing by a negative number reflects the number line, so every inequality sign reverses. In a chain, that means both signs reverse and the two outer numbers swap ends. Most lost points come from reversing the signs but forgetting to reorder, which leaves a chain whose left number is larger than its right number.

Example 2. Solve −7<5−3x≤8-7 < 5 - 3x \le 8.

Subtract 55 from all three parts:

−12<−3x≤3-12 < -3x \le 3

Divide all three parts by −3-3 and reverse both signs:

4>x≥−14 > x \ge -1

Rewrite with the smaller number on the left:

−1≤x<4-1 \le x < 4

Look at what happened to strictness. The original left side, −7-7, was strict, and it became the strict end at 44. The original right side, 88, was inclusive, and it became the inclusive end at −1-1. Each end keeps its own sign type even though it changes position.

A chain must always read from smaller to larger. If you ever write something like 4<x≤−14 < x \le -1, that built-in alarm tells you a reordering step is missing. Practice with multi-step equations that include negative coefficients makes this reflex automatic.

Try this: Solve −10<4−2x≤6-10 < 4 - 2x \le 6 on paper. You should land on −1≤x<7-1 \le x < 7. Then substitute x=−1x = -1, x=7x = 7 and x=0x = 0 into the middle expression and confirm which ones work.

How do you solve compound inequalities joined by or?

Number lines showing x > 2 and x > 7 give x > 7 while or gives x > 2
With x > 2 and x > 7, the and answer is x > 7 and the or answer is x > 2.

With or, there is no chain and no shortcut. Solve each piece alone, then keep both answers. A negative coefficient only affects the piece it belongs to, so a sign reversal in one piece never touches the other.

Example 3. Solve 2x+3≤−52x + 3 \le -5 or 4x−1>114x - 1 > 11.

First piece: subtract 33, then divide by 22.

2x≤−8⇒x≤−42x \le -8 \quad\Rightarrow\quad x \le -4

Second piece: add 11, then divide by 44.

4x>12⇒x>34x > 12 \quad\Rightarrow\quad x > 3

The answer is x≤−4x \le -4 or x>3x > 3, which is (−∞,−4]∪(3,∞)(-\infty, -4] \cup (3, \infty). Never squeeze this into −4≥x>3-4 \ge x > 3. That chain claims xx is at most −4-4 and also above 33, which is impossible.

Same direction shortcut

When both pieces point the same way, and keeps the stricter one and or keeps the looser one. For example, x>2x > 2 and x>7x > 7 gives x>7x > 7, while x>2x > 2 or x>7x > 7 gives x>2x > 2.

This shortcut saves real time on tests. Once you have two answers like x<6x < 6 and x<9x < 9, you can tell at a glance whether the final answer is x<6x < 6 (and) or x<9x < 9 (or). For extra repetition on the single-piece solving, the two-step equations practice set is a good warm-up.

When does a compound inequality have no solution?

Two pieces can point away from each other, and then an and statement has nothing left. Consider x>5x > 5 and x<2x < 2: no number is above 55 and below 22, so the solution set is empty, written ∅\varnothing. The same thing shows up in chain form. If you solve and reach something like 2<x<12 < x < 1, the left number exceeds the right number, and the answer is ∅\varnothing.

Example 4. Solve 3x+1>103x + 1 > 10 and 2x−3<−12x - 3 < -1.

First piece: 3x>93x > 9, so x>3x > 3. Second piece: 2x<22x < 2, so x<1x < 1. Numbers above 33 and below 11 do not exist, so there is no solution.

Or statements fail in the opposite direction. If the rays overlap, they cover the whole line. For x<5x < 5 or x>2x > 2, any number fails both pieces only if it is at least 55 and at most 22, which is impossible. So every real number works: (−∞,∞)(-\infty, \infty).

Edge cases matter when the boundaries touch. The statement x≥3x \ge 3 and x≤3x \le 3 has exactly one solution, x=3x = 3. The statement x<3x < 3 or x>3x > 3 includes every number except 33, written (−∞,3)∪(3,∞)(-\infty, 3) \cup (3, \infty). Change one sign to x≤3x \le 3 or x>3x > 3 and the answer becomes all real numbers.

Quick check

How many solutions does x≤4x \le 4 and x>4x > 4 have?

How do you graph and write the answer in interval notation?

On a number line, a filled dot marks an included endpoint and an open dot marks an excluded one. For and, shade only where both pieces are shaded. A reliable method is to draw each piece on its own number line, stack them, and then draw the final line below them: for and, shade where both lines are shaded, and for or, shade where either one is.

Interval notation is the same picture in symbols. Brackets include an endpoint, parentheses exclude it, and infinity always gets a parenthesis because you can never reach it. The union symbol ∪\cup means or.

Compound inequality Interval notation Graph
−2≤x<3-2 \le x < 3 [−2,3)[-2, 3) filled dot at −2-2, open dot at 33, shaded between
x≤−4x \le -4 or x>3x > 3 (−∞,−4]∪(3,∞)(-\infty, -4] \cup (3, \infty) two rays pointing outward
x≥3x \ge 3 and x≤3x \le 3 {3}\{3\} one filled dot
x>5x > 5 and x<2x < 2 ∅\varnothing nothing shaded

Check the direction of each arrow against the inequality. A ray for x>3x > 3 points right, toward larger numbers, even though the symbol itself looks like it opens left to right only when you read it as "3<x3 < x".

How does absolute value turn into a compound inequality?

An absolute value measures distance from a center, and distance conditions are really compound inequalities in disguise. The statement ∣x−c∣<r|x - c| < r means xx is within rr units of cc, so −r<x−c<r-r < x - c < r. The statement ∣x−c∣>r|x - c| > r means xx is farther than rr from cc, so x−c<−rx - c < -r or x−c>rx - c > r. A handy memory line: “less thAND, greatOR.”

Example 5. Solve ∣x−2∣<3|x - 2| < 3.

Rewrite as a chain:

−3<x−2<3-3 < x - 2 < 3

Add 22 to all three parts:

−1<x<5-1 < x < 5

You can skip the algebra with the center-and-radius view: the center is 22 and the radius is 33, so the answer runs from 2−32 - 3 to 2+32 + 3. For a greater-than case such as ∣x+1∣≥4|x + 1| \ge 4, split into x+1≤−4x + 1 \le -4 or x+1≥4x + 1 \ge 4, which gives x≤−5x \le -5 or x≥3x \ge 3.

Isolate the absolute value before you split. Also watch for impossible distances: ∣x∣<−2|x| < -2 has no solution because distance cannot be negative, while ∣x∣>−2|x| > -2 is true for every real number. For more on this family, see absolute value inequalities, and for the equation version with a single boundary, solving absolute value equations.

How do you check a compound inequality answer?

Test three kinds of points: each boundary, one point inside the solution, and one point outside it. This catches wrong strictness (open versus closed), a missed sign reversal and an answer in the wrong order. It takes about thirty seconds.

Take the answer from Example 2, −1≤x<4-1 \le x < 4, for the original −7<5−3x≤8-7 < 5 - 3x \le 8:

  1. At x=−1x = -1: 5−3(−1)=85 - 3(-1) = 8, and 8≤88 \le 8 is true, so the endpoint is included.
  2. At x=4x = 4: 5−3(4)=−75 - 3(4) = -7, and −7>−7-7 > -7 is false, so the endpoint is excluded.
  3. At x=0x = 0: the middle is 55, which sits between −7-7 and 88. At x=5x = 5: the middle is −10-10, which falls outside, so 55 is correctly rejected.

There is also a graph check. The middle expression 5−3x5 - 3x is a line in slope-intercept form, and the solution is the set of xx-values where that line sits between the horizontal lines y=−7y = -7 and y=8y = 8. If your calculator graph shows the line in that band exactly for −1≤x<4-1 \le x < 4, the algebra is right.

Where do compound inequalities show up in real life?

Any time a quantity has both a floor and a ceiling, you have a compound inequality. Budgets, safe temperature ranges, grade cutoffs and manufacturing tolerances all work this way. A part labeled 5050 mm with a tolerance of 0.20.2 mm satisfies ∣L−50∣≤0.2|L - 50| \le 0.2, which is the chain 49.8≤L≤50.249.8 \le L \le 50.2.

Example 6. A taxi charges a $5 base fare plus $2.50 per mile. For how many miles mm does a ride cost at least $20 and at most $35?

20≤5+2.5m≤3520 \le 5 + 2.5m \le 35

Subtract 55 from all parts:

15≤2.5m≤3015 \le 2.5m \le 30

Divide by 2.52.5:

6≤m≤126 \le m \le 12

Check the ends: m=6m = 6 costs 5+15=205 + 15 = 20 and m=12m = 12 costs 5+30=355 + 30 = 35. Setting up this kind of problem is the main skill in linear equation word problems.

Ranges also appear in motion. If a 120120 mile trip must take between 22 and 2.52.5 hours, dividing 120120 by each time limit gives speeds of 6060 and 4848 miles per hour, so 48≤r≤6048 \le r \le 60. Notice that a longer time means a slower speed, so the order flips, which is the same reversal idea from negative coefficients. Distance, rate and time problems build on this relationship.

Quick check

An oven must stay between 325325 and 350350 degrees, endpoints allowed. Write a compound inequality for the temperature TT.

Practice problems

0 of 5 solved

  1. Solve −2<x+4<9-2 < x + 4 < 9.

  2. Solve 3x−2≥73x - 2 \ge 7 or x+5<1x + 5 < 1.

  3. Solve −4<5x−1≤14-4 < 5x - 1 \le 14.

  4. Solve −8≤1−3x<10-8 \le 1 - 3x < 10.

  5. Solve 2x+1<3x−4<x+102x + 1 < 3x - 4 < x + 10.

Common questions

What is a compound inequality?

A compound inequality is two inequalities joined by the word and or the word or. With and, a number must satisfy both. With or, it only has to satisfy one.

What is the difference between and and or compound inequalities?

And keeps only the overlap of the two solution sets, so it narrows the answer. Or keeps everything in either set, so it widens the answer. An and answer can be a single interval, while an or answer is often two separate rays.

How do you solve a compound inequality with a negative coefficient?

Solve as usual, but when you multiply or divide every part by a negative number, reverse every inequality sign. Then rewrite the chain so the smaller number is on the left, for example 3≥x>−33 \ge x > -3 becomes −3<x≤3-3 < x \le 3.

Can a compound inequality have no solution?

Yes. An and inequality like x>5x > 5 and x<2x < 2 has no solution because the two regions never overlap. The solution set is written ∅\varnothing.

How do you write a compound inequality in interval notation?

Use brackets for included endpoints and parentheses for excluded ones or infinity. An and chain becomes one interval such as [−2,3)[-2, 3), and an or answer becomes a union such as (−∞,−4]∪(3,∞)(-\infty, -4] \cup (3, \infty).

Can you write an or inequality as a chain like a < x < b?

No. A chain means and, so it describes numbers between two bounds. An or answer has a gap in the middle, which a single chain cannot express, so the two pieces must stay separate.

Up next