3 The intersection and union of sets

3.1 Intersection

Given two sets, A and B , the intersection of A and B is a set which contains elements that are common both to A and B . We write A B to denote the intersection of A and B . Mathematically we write this as:

Key Point 1

Intersection of Sets

A B = { x : x A  and  x B }
This says that the intersection contains all the elements x such that x belongs to A and also x belongs to B .

Note that A B and B A are identical. The intersection of two sets can be represented by a Venn diagram as shown in Figure 3.

Figure 3 :

The diagram shows two overlapping circles labeled A and B, with the overlapping region shaded to represent the intersection, \(A \cap B\).

Long description
Example 4

Given A = { 3 , 4 , 5 , 6 } , B = { 3 , 5 , 9 , 10 , 15 } and C = { 4 , 6 , 10 } state

  1. A B ,  
  2. B C   and draw a Venn diagram representing these intersections.
Solution
  1. The elements common to both A and B are 3 and 5. Hence A B = { 3 , 5 }
  2. The only element common to B and C is 10. Hence B C = { 10 }

    Figure 4

    A Venn diagram showing three overlapping sets labeled A, B, and C with numbers in each region.

    Long description
Task!

Given D = { a , b , c } and F = { the entire alphabet } state D F .

The elements common to D and F are a , b and c , and so D F = { a , b , c }

Note that D is a subset of F and so D F = D .

The intersection of three or more sets is possible, and is the subject of the next Example.

Example 5

Given A = { 0 , 1 , 2 , 3 } , B = { 1 , 2 , 3 , 4 , 5 } and C = { 2 , 3 , 4 , 7 , 9 } state

  1. A B
  2. ( A B ) C
  3. B C
  4. A ( B C )
Solution
  1. The elements common to A and B are 1, 2 and 3 so A B = { 1 , 2 , 3 } .
  2. We need to consider the sets ( A B ) and C . A B is given in (1). The elements common to ( A B ) and C are 2 and 3. Hence ( A B ) C = { 2 , 3 } .
  3. The elements common to B and C are 2, 3 and 4 so B C = { 2 , 3 , 4 } .
  4. We look at the sets A and ( B C ) . The common elements are 2 and 3. Hence A ( B C ) = { 2 , 3 } .

    Note from (2) and (4) that here ( A B ) C = A ( B C ) .

The example illustrates a general rule. For any sets A , B and C it is true that

( A B ) C = A ( B C )

The position of the brackets is thus unimportant. They are usually omitted and we write A B C .

Suppose that sets A and B have no elements in common. Then their intersection contains no elements and we say that A and B are disjoint sets. We express this as

A B =

Recall that is the empty set. Disjoint sets are represented by separate area regions in the Venn diagram.

3.2 Union

The union of two sets A and B is a set which contains all the elements of A together with all the elements of B . We write A B to denote the union of A and B . We can describe the set A B formally by:

Key Point 2

Union of Sets

A B = { x : x A  or  x B  or both }

Thus the elements of the set A B are those quantities x such that x is a member of A or a member of B or a member of both A and B . The deeply shaded areas of Figure 5 represents A B .

Figure 5(a)

A Venn diagram shows two overlapping circles labeled A and B within a box labeled S, with arrows pointing from the combined area to the notation A \(\cup\) B.

Long description

Figure 5(b)

A Venn diagram illustrates the union of two sets, A and B, within a universal set S.

Long description

In Figure 5(a) the sets intersect, whereas in Figure 5(b) the sets have no region in common. We say they are disjoint .

Example 6

Given A = { 0 , 1 } , B = { 1 , 2 , 3 } and C = { 2 , 3 , 4 , 5 } write down

  1. A B
  2. A C
  3. B C
Solution
  1. A B = { 0 , 1 , 2 , 3 }
  2. A C = { 0 , 1 , 2 , 3 , 4 , 5 }
  3. B C = { 1 , 2 , 3 , 4 , 5 } .

Recall that there is no need to repeat elements in a set. Clearly the order of the union is unimportant so A B = B A .

Task!

Given A = { 2 , 3 , 4 , 5 , 6 } , B = { 2 , 4 , 6 , 8 , 10 } and C = { 3 , 5 , 7 , 9 , 11 } state

  1. A B
  2. ( A B ) C
  3. A B
  4. ( A B ) C
  5. A B C
  1. A B = { 2 , 3 , 4 , 5 , 6 , 8 , 10 }
  2. We need to look at the sets ( A B ) and C . The elements common to both of these sets are 3 and 5. Hence ( A B ) C = { 3 , 5 } .
  3. A B = { 2 , 4 , 6 }
  4. We consider the sets ( A B ) and C . We form the union of these two sets to obtain ( A B ) C = { 2 , 3 , 4 , 5 , 6 , 7 , 9 , 11 } .
  5. The set formed by the union of all three sets will contain all the elements from all the sets:

    A B C = { 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }

Exercises
  1. Given a set A , its complement A and a universal set S , state which of the following expressions are true and which are false.
    (a)   A A = S (b)   A S = (c)   A A =
    (d)   A A = S (e)   A = S (f)   A = A
    (g)   A = (h)   A = A (i)   A =
    (j)   A S = A (k)   A S = (l)   A S = S
  2. Given A = { a , b , c , d , e , f } , B = { a , c , d , f , h } and C = { e , f , x , y } obtain the sets:
    (a)   A B (b)   B C (c)   A ( B C )
    (d)   C ( B A ) (e)   A B C (f)   B ( A C )
  3. List the elements of the following sets:
    1. A = { x : x  is odd and  x  is greater than 0 and less than 12 }
    2. B = { x : x  is even and  x  is greater than 19 and less than 31 }
  4. Given A = { 5 , 6 , 7 , 9 } , B = { 0 , 2 , 4 , 6 , 8 } and S = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } list the elements of each of the following sets:
    (a)   A (b)   B (c)   A B
    (d)   A B (e)   A B (f)   ( A B )
    (g)   ( A B ) (h)   ( A B ) (i)   ( B A )

    What do you notice about your answers to (c),(g)?

    What do you notice about your answers to (d),(f)?

  5. Given that A and B are intersecting sets, i.e. are not disjoint, show on a Venn diagran the following sets
    1. A
    2. B
    3. A B
    4.   A B
    5. A B
    1. T,
    2. F,
    3. T,
    4. F,
    5. F,
    6. T,
    7. F,
    8. F,
    9. T,
    10. F,
    11. F,
    12. T.
    1. { a , b , c , d , e , f , h } ,
    2. { f } ,
    3. { a , c , d , e , f } ,
    4. { e , f } ,
    5. { f } ,
    6. { a , c , d , e , f , h } .
    1. { 1 , 3 , 5 , 7 , 9 , 11 } ,
    2. { 20 , 22 , 24 , 26 , 28 , 30 } .
    1. { 0 , 1 , 2 , 3 , 4 , 8 } ,
    2. { 1 , 3 , 5 , 7 , 9 } ,
    3. { 0 , 1 , 2 , 3 , 4 , 5 , 7 , 8 , 9 } ,
    4. { 1 , 3 } ,
    5. { 0 , 2 , 4 , 5 , 6 , 7 , 8 , 9 } ,
    6. { 1 , 3 } ,
    7. { 0 , 1 , 2 , 3 , 4 , 5 , 7 , 8 , 9 } ,
    8. { 1 , 3 , 5 , 6 , 7 , 9 } ,
    9. { 0 , 2 , 4 , 8 } .

Four diagrams show overlapping circles labeled A and B, representing set relationships.

Long description