Answers to inequalities often come in two pieces, or as the overlap of two conditions. " or " is two separate stretches of the line; " and " is the stretch where both conditions hold. Intervals are sets, so they can be combined with union and intersection, exactly as in the chapter on sets. This lesson shows how the words "or" and "and" turn into union and intersection, and what happens in the cases that look strange at first.
"Or" means union, "and" means intersection
A number satisfies "condition 1 or condition 2" if it satisfies at least one of them. So the solution set is the union of the two solution sets.
A number satisfies "condition 1 and condition 2" if it satisfies both. So the solution set is the intersection: here we consider only the values common to both sets.
The safest way to combine intervals is to draw both on one number line, one above the other, and read off the answer.
Four cases to understand
Take the two conditions , and the two conditions , .
Case 1: or . These are two separate stretches, one to the left of 1 and one to the right of 3. Nothing joins them, so the answer is written as a union:
The numbers from 1 to 3, both included, are left out. So this set is also .
Case 2: or . Every real number satisfies at least one of these: a number less than 3 satisfies the first, and any number 3 or more is certainly greater than 1. So the answer is the whole line:
Case 3: and . We want the numbers common to both. These are the numbers strictly between 1 and 3:
Case 4: and . No number is both less than 1 and greater than 3. So does not take any real value, and the solution set is the empty set:
Notice how the same two numbers, 1 and 3, give four completely different answers depending on the direction of the inequalities and the joining word.
More examples
Example 1
Find and .
The first interval runs from (included) to 4 (excluded); the second from 1 (excluded) to 6 (included). They overlap between 1 and 4.
Union: everything covered by either, from to 6. The left end is included (by the first) and the right end 6 is included (by the second): .
Intersection: only the overlap, from 1 to 4. The point 1 is excluded (it is not in the second interval) and 4 is excluded (it is not in the first): .
Example 2
Find and .
The only number in both and is 2 itself, so the intersection is the single-element set .
The union is every real number except 2. It is written .
Example 3
Solve: and and .
The first two conditions give . Removing the point 3 gives , which can also be written .
Example 4
Find the complement in of each interval: (a) (b) .
(a) The numbers not in are those less than 2 and those 7 or more: . Notice the brackets swap: 2 was included in the interval, so it is excluded from the complement, and 7 was excluded, so it is included.
(b) The complement of is .
Example 5
Find .
Remove from every number from 0 (included) to 2 (excluded). What remains is together with :
Example 6
Find all real satisfying both and , then all satisfying at least one of them.
Both: the common part of and is .
At least one: .
Practice
- Find and .
- Find and .
- Write the solution set of " or " in interval notation.
- Write the solution set of " or ".
- Write the solution set of " and ".
- Write the solution set of " and ".
- Find the complement in of .
- Find .
- Find .
- Find all such that and and .
Answers
Show answers
- Union ; intersection .
- Union ; intersection (0 is in the first but not the second).