Sub topic 5
Compound Inequalities with 'Or'
Prerequisites and what this chapter covers
This chapter assumes you can solve a single linear inequality, including reversing the sign when you multiply or divide by a negative number. It also assumes you can read inequality symbols, number lines, and interval notation, and that you have seen compound inequalities joined by "and" (intersections).
A compound inequality joined by "or" is true when at least one of its parts is true. Its solution set is the union of the solution sets of the parts. By the end of this chapter you should be able to:
- Solve each part of an "or" statement separately and combine the results.
- Write the union in inequality form, on a number line, and in interval notation.
- Recognize when the two parts overlap, so the union collapses into one interval or into every real number.
- Avoid the errors that GRE questions are designed to trigger.
'Or' means union
Consider the statement x < -2 or x > 3. A number satisfies it if it is less than -2, or greater than 3, or both. "Both" is impossible here because no number is below -2 and above 3 at once. Examples:
- x = -5 satisfies the first part, so the statement is true.
- x = 5 satisfies the second part, so the statement is true.
- x = 0 satisfies neither part, so the statement is false.
The solution set is two separate pieces. Compare this with "and": x > -2 and x < 3 describes one connected stretch of the number line between the two endpoints. An "or" statement with the inequalities pointing away from each other describes the two outer pieces.
| Connector | Set operation | Typical picture | Typical form |
|---|---|---|---|
| and | Intersection | One connected segment (or empty) | a < x < b |
| or | Union | Two rays pointing away from each other (or one ray, or the whole line) | x < a or x > b |
Notation for unions
Interval notation joins the pieces with the union symbol, written as the letter U in plain text or ∪ in print.
- x < -2 or x > 3 becomes (-∞, -2) ∪ (3, ∞).
- x ≤ -2 or x ≥ 3 becomes (-∞, -2] ∪ [3, ∞).
- x < 1 or x ≥ 4 becomes (-∞, 1) ∪ [4, ∞).
Rules for endpoints:
- A strict inequality (< or >) gives a parenthesis and an open circle.
- A non-strict inequality (≤ or ≥) gives a bracket and a closed circle.
- Infinity always gets a parenthesis, because it is not a number you can reach.
Each piece keeps its own endpoint type. In the third example above, 1 is excluded and 4 is included, and that is fine.
Solving an 'or' statement
Solve each inequality on its own, as if the other were not there. Then take the union. Do not try to combine the two parts into a single chain like 3 < x < -2. That chain would claim x is greater than 3 and less than -2, which is impossible.
Example 1: two linear inequalities
Solve 2x + 1 < -5 or 3x - 4 > 8.
First part: 2x + 1 < -5, so 2x < -6, so x < -3.
Second part: 3x - 4 > 8, so 3x > 12, so x > 4.
The solution is x < -3 or x > 4, which is (-∞, -3) ∪ (4, ∞).
Example 2: a negative coefficient
Solve -2x ≥ 6 or -x < -5.
First part: divide by -2 and reverse the sign, so x ≤ -3.
Second part: multiply by -1 and reverse the sign, so x > 5.
The solution is x ≤ -3 or x > 5, which is (-∞, -3] ∪ (5, ∞).
Notice that the sign reversal is applied separately to each part. Forgetting it in one part changes the answer, and a GRE answer choice will usually match that mistaken result.
Check with code
Testing values on both sides of each endpoint, and at the endpoints, is a quick way to confirm a union. This snippet checks Example 1.
# Solve 2x + 1 < -5 or 3x - 4 > 8 -> x < -3 or x > 4
for x in [-4, -3, 0, 4, 5]:
print(x, (2 * x + 1 < -5) or (3 * x - 4 > 8))
# -4 True
# -3 False
# 0 False
# 4 False
# 5 TrueBoth -3 and 4 are excluded because the original inequalities are strict. The value 0 sits in the gap and fails both parts.
When the pieces overlap
If the two rays point toward each other, they can overlap or touch. The union then changes shape.
Overlap gives one ray
Solve x > 2 or x > 5. A number greater than 5 is also greater than 2, so the second part adds nothing. The union is x > 2. With "or" you keep the larger set, so for two rays pointing the same way, you keep the one that reaches further.
Likewise, x < 4 or x < 9 simplifies to x < 9.
Rays pointing toward each other
Solve x < 5 or x > 2. Every real number is either below 5 or above 2. A number that is 3, for example, satisfies both. A number that is 0 satisfies the first. A number that is 10 satisfies the second. The solution set is all real numbers, (-∞, ∞).
This case is common on the GRE. It looks like a restrictive condition but it gives no information about x at all.
Rays that just touch
Endpoints decide what happens when the rays meet at one number.
- x < 3 or x > 3 excludes only 3. The solution is every real number except 3, written (-∞, 3) ∪ (3, ∞), or x ≠ 3.
- x ≤ 3 or x > 3 includes 3 in the first part. The solution is all real numbers.
- x < 3 or x ≥ 3 is also all real numbers.
The table summarizes the cases for x < a or x > b, and for x > b or x < a written in either order.
| Relationship | Example | Solution |
|---|---|---|
| Rays point away, gap between | x < -2 or x > 3 | Two rays, gap excluded |
| Rays point the same way | x > 2 or x > 5 | The larger ray, x > 2 |
| Rays point toward each other, overlapping | x < 5 or x > 2 | All real numbers |
| Rays meet at one point, both strict | x < 3 or x > 3 | All real numbers except 3 |
| Rays meet at one point, one closed | x ≤ 3 or x > 3 | All real numbers |
A quick way to classify: compare the two endpoints and the directions. If the left-pointing ray's endpoint is to the left of the right-pointing ray's endpoint, there is a gap. If it is to the right, they overlap and cover everything.
Negating an 'and' statement
An "or" statement often appears as the complement of an "and" statement. The statement -1 ≤ x ≤ 4 is the intersection of x ≥ -1 and x ≤ 4. Its negation, "not (-1 ≤ x ≤ 4)", says x is outside that segment:
x < -1 or x > 4
Notice that the inequality signs flip, and "and" becomes "or". The endpoints switch type: -1 and 4 were included in the original, so they are excluded from the negation. This relationship (De Morgan's rule) is useful when a question asks for the values that do not satisfy something.
The opposite also works. The complement of x < -2 or x > 3 is -2 ≤ x ≤ 3.
# Complement check: not (-1 <= x <= 4) should equal (x < -1 or x > 4)
for x in [-2, -1, 0, 4, 5]:
original = -1 <= x <= 4
negation = (x < -1) or (x > 4)
print(x, original, negation, original != negation)
# -2 False True True
# -1 True False True
# 0 True False True
# 4 True False True
# 5 False True TrueThe last column is True in every row, so the two statements never agree. Exactly one of them holds for each x, which is what a complement means.
Where 'or' comes from in later topics
Many inequality types produce "or" statements. Recognizing the pattern now helps with the next chapters.
- Absolute value greater than a number. |x - 3| > 2 means x is more than 2 units from 3, so x - 3 > 2 or x - 3 < -2, giving x > 5 or x < 1. The "less than" case gives an "and" statement, and the "greater than" case gives an "or" statement.
- Quadratic inequalities. x² - x - 6 > 0 factors as (x - 3)(x + 2) > 0. The product is positive when the factors have the same sign, which gives x < -2 or x > 3.
- Rational inequalities. Cases that depend on the sign of a denominator split into separate scenarios that are later united.
The first of these can be tested directly.
# |x - 3| > 2 is equivalent to x < 1 or x > 5
for x in [0, 1, 3, 5, 6]:
print(x, abs(x - 3) > 2, (x < 1) or (x > 5))
# 0 True True
# 1 False False
# 3 False False
# 5 False False
# 6 True TrueThe second and third columns agree on every value, which supports the equivalence.
Common errors
- Writing a single chain for an "or" statement. Writing 3 < x < -2 for "x < -2 or x > 3" is wrong. A chain means "and". Always write the two parts with the word "or" between them.
- Using the intersection by habit. Students who have just practiced "and" statements sometimes take only the overlap of the two parts. For "or" you take everything that either part allows.
- Missing the sign reversal. Dividing by a negative inside one of the parts without reversing the sign gives the wrong ray.
- Mishandling touching endpoints. x < 3 or x > 3 excludes 3. If an answer choice says "all real numbers", it is wrong. The value 3 is the one number that fails.
- Missing the all-real-numbers case. When the rays overlap, the answer is not a restricted set. On a Quantitative Comparison question, this can mean x can be anything, so the comparison may be undetermined.
- Using interval notation incorrectly. A union of two pieces needs the ∪ symbol. Writing (-∞, -2, 3, ∞) or (-2, 3) for the outer pieces describes something different. (-2, 3) is the gap, which is exactly what the solution excludes.
A worked GRE-style example
Quantity A is the number of integers that satisfy 2x - 3 ≤ -9 or 5 - x ≤ 0 and are between -10 and 10 inclusive. Find that count.
Solve the first part: 2x ≤ -6, so x ≤ -3.
Solve the second part: -x ≤ -5, so x ≥ 5 (the sign reverses).
The solution is x ≤ -3 or x ≥ 5.
Count the integers from -10 to 10 inclusive that lie in this set.
- From -10 to -3 inclusive: -10, -9, -8, -7, -6, -5, -4, -3, which is 8 integers.
- From 5 to 10 inclusive: 5, 6, 7, 8, 9, 10, which is 6 integers.
The total is 14. Because the two pieces do not overlap, you can add the counts without double counting. If the pieces had overlapped, you would add the counts and subtract the overlap, or simply simplify the union first.
# Count integers in [-10, 10] with 2x - 3 <= -9 or 5 - x <= 0
count = sum(1 for x in range(-10, 11) if (2 * x - 3 <= -9) or (5 - x <= 0))
print(count)
# 14As a check, the integers that fail are -2 through 4, which is 7 integers. Together with the 14 that pass, that gives 21, the total number of integers from -10 to 10.
Exercises
Exercise
Solve 4 - 2x > 10 or x + 1 ≥ 6, and write the answer in interval notation.
Show answer
First part: -2x > 6, so x < -3 (the sign reverses). Second part: x ≥ 5. The union is (-∞, -3) ∪ [5, ∞).
Exercise
Simplify each statement: (a) x ≤ 2 or x < 7; (b) x > 1 or x < 4; (c) x < 0 or x > 0.
Show answer
(a) x < 7, because the larger ray contains the smaller one. (b) All real numbers, because the rays overlap on (1, 4) and together cover the whole line. (c) All real numbers except 0, written (-∞, 0) ∪ (0, ∞).
Exercise
The statement "x is not between -4 and 6 inclusive" means NOT (-4 ≤ x ≤ 6). Write it as an "or" statement, and say whether 6 satisfies it.
Show answer
x < -4 or x > 6. The value 6 does not satisfy it, because the endpoints of the original segment are included, so they are excluded from the complement.
Exercise
Given |2x - 1| > 5, rewrite the condition as an "or" statement and solve it.
Show answer
2x - 1 > 5 or 2x - 1 < -5. The first gives 2x > 6, so x > 3. The second gives 2x < -4, so x < -2. The solution is x < -2 or x > 3.