Skip to main content

Section 6.1 Set Theory

In this section we review the set theory definitions of element and subset from Section 1.2. Then we introduce several definitions for operations on sets.
We have been using some of the set notation throughout the course. We review it here for convenience. We usually use capital letters for sets, such as S or A. If we want to talk about elements in a set S, we use the notation xS. We read this notation as “x is in S” or “x is an element of S.” If x is not in S, then we use the notation xS.
In general, if we use P(x) to describe a property of x, we use the notation
{xS:P(x)}
and read the statement as "x in S such that x has property P."
We gave an initial definition of subset in Definition 1.2.2, and introduced the notation for subset: AB. Now that we will be working with sets more formally, we give a more formal definition of a subset, which will be easier to use in proofs.

Definition 6.1.1.

A is a subset of B, AB, if for all x, if xA then xB.
A is a not a subset of B, AB, if there exists x, such that xA and xB.

Definition 6.1.2.

We say two sets are equal, A=B, if AB and BA.

Definition 6.1.3.

A is a proper subset of B if AB and AB.
To important sets are the universal set, U, which is the set of everything, and the empty set, , which is the set with nothing. The universal set depends on the context. For example, in calculus, the universal set is often the set of real numbers. In number theory, it could just be the integers. In computer science, it could be the set of sequences of 0 and 1. When dealing with abstract sets, we might want to define a convenient universal set.
We now give the element definitions for common set operations, along with the Venn diagrams for each of the sets.

Definition 6.1.4.

The set AB is the union of sets A and B where xAB if and only if xA or xB.
In set notation, AB={xU:xA or xB}.
Figure 6.1.5. Venn diagram for AB

Definition 6.1.6.

The set AB is the intersection of sets A and B where xAB if and only if xA and xB.
In set notation, AB={xU:xA and xB}.
Figure 6.1.7. Venn diagram for AB

Definition 6.1.8.

The set AB is the set difference of sets A and B where xAB if and only if xA and xB.
In set notation, AB={xU:xA and xB}.
Figure 6.1.9. Venn diagram for AB
A common alternate notation for set difference is AB.

Definition 6.1.10.

The set AC is the complement of set A where xAC if and only if xA.
In set notation, AC={xU:xA}.
Figure 6.1.11. Venn diagram for AC

Example 6.1.12. Operations on Sets.

Let A={xR:0x4} and B={xR:1<x<1}.
Note, these sets can also be defined with interval notation: A=[0,4],B=(1,1).
Find AB.
Answer 1.
(1,4]
Find AB.
Answer 2.
[0,1)
Find AB.
Answer 3.
[1,4]
Find BA.
Answer 4.
(1,0)
Find AC.
Answer 5.
(,0)(4,)
We can take the union or intersection of many sets using notation similar to summation notation:
i=1nAi=A1A2An
i=1nAi=A1A2An.
We can also take the intersection or union of infinitely many sets:
i=1Ai=A1A2An
i=1Ai=A1A2An

Definition 6.1.13.

The power set of a set A is the set of all subsets of A. We denote it P(A).

Example 6.1.14. Power Set.

Let A={1,2}. Find P(A).
We need to find all the subsets of {1,2}. The subsets are the elements of P(A).
The subsets are ,{1},{2},{1,2}. Thus, P(A)={,{1},{2},{1,2}}.

Activity 6.1.3.

Let A={2,4,6}. Find P(A).
Recall, in Definition 1.2.6, we defined the Cartesian product of two sets, A×B:
A×B={(a,b):aA,bB}.

Example 6.1.15. Cartesian Product of Sets.

Let A={1,2,3} and B={2,4}.
Find A×B.
Answer.
{(1,2),(1,4),(2,2),(2,4),(3,2),(3,4)}

Definition 6.1.16.

We say two sets A and B are disjoint if AB=.

Definition 6.1.17.

A set of subsets of a set B, {A1,A2,,An}, is a partition of B if
  1. i=1nAi=B,
  2. AiAj= whenever ij.
What this really says is that a set of subsets will be a partition of B if the union of the subsets is all of B, and the subsets are pairwise disjoint, meaning the intersection of any pair of sets is empty.

Example 6.1.18. Partition.

Let B={1,2,3,4,5,6}. Then let A1={1},A2={2,4,6},A3={3,5}. We can see that {A1,A2,A3} is a partition of B since A1A2A3=B and the subsets have no elements in common, hence they are disjoint.
Now if we let A1={1,2,3,4},A2={2,3,4,5,6}. We can see that {A1,A2} is not a partition of B since A1A2={2,3,4}.

Activity 6.1.4.

To prove AB, assume xA, show xB. Prove {6k:kZ}{3k:kZ}. Make sure in your proof you identify what you need to assume and what you need to show.

Activity 6.1.5.

Find a counterexample to prove {3k:kZ}{6k:kZ}.

Reading Questions Check Your Understanding

1.

2.

    Let B={3,4},D={0,1}.
    True or false: B×D=D×B.
  • True.

  • False.

3.

    Let B={3,4},D={0,1}.
    True or false: BD=DB.
  • True.

  • False.

4.

    Let A={2,4,6,8},C={1,2,4}.
    True or false: AC=CA.
  • True.

  • False.

5.

Let B={3,4}. Find P(B).
Hint.
The elements of the power set are subsets of B.

6.

Let A={2,4,6,8}. Give a partition of A.
Hint.
Lots of subsets work, they just need to be disjoint and the union is all of A.

Exercises Exercises

1.

For each of the following determine if AB. Then determine if BA.
  1. A={2,{2},(2)2},B={2,{2},{{2}}}.
  2. A={{1,2},{2,3}},B={1,2,3}.
  3. A={a,b,c},B={{a},{b},{c}}.
  4. A={16,{4}},B={4}.
  5. A={xR:cosxZ},B={xR:sinxZ}.

2.

Complete the following sentences without using the symbols ,, or .
  1. xAB if and only if ___.
  2. xAB if and only if ___.
  3. xAB if and only if ___.

3.

Let A={1,3,5,7,9}, B={3,6,9}, and C={2,4,6,8}. Find each of the following:
  1. AB.
  2. AB.
  3. AC.
  4. AC.
  5. AB.
  6. BA.
  7. BC.
  8. BC.

4.

Let the universal set be R, and let A={xR:0<x2}, B={xR:1x<4}, and C={xR:3x<9}. Find each of the following:
  1. AB
  2. AB
  3. AC
  4. AC
  5. AC
  6. BC
  7. ACBC
  8. ACBC
  9. (AB)C
  10. (AB)C

5.

Determine whether each of the following are true or false.
  1. Z+Q
  2. RQ
  3. QZ
  4. ZZ+=Z
  5. ZZ+=
  6. QR=Q
  7. QZ=Q
  8. Z+R=Z+
  9. ZQ=Z

6.

Let A={a,b,c}, B={b,c,d}, and C={b,c,e}.
  1. Find A(BC), (AB)C, and (AB)(AC). Which of these sets are equal?
  2. Find A(BC), (AB)C, and (AB)(AC). Which of these sets are equal?
  3. Find (AB)C and A(BC). Are these sets equal?

7.

Determine if the following statements are true or false. Give a justification for you answer.
  1. The number 0 is in .
  2. ={}
  3. {}

8.

Let Ai={xR:ixi} (the interval [i,i]) for all nonnegative integers i.
  1. Find i=04Ai.
  2. Find i=04Ai.
  3. Are A0,A1,A2 pairwise disjoint? Explain.
  4. Find i=0nAi.
  5. Find i=0nAi.
  6. Find i=1Ai.
  7. Find i=1Ai.

9.

Determine if the set of sets is a partition of the given set.
  1. Is {{a,d,e},{b,c},{d,f}} a partition of {a,b,c,d,e,f}?
  2. Is {{w,x,v},{u,y,q},{p,z}} a partition of {p,q,u,v,w,x,y,z}?
  3. Is {{5,4},{7,2},{1,3,4},{6,8}} a partition of {1,2,3,4,5,6,7,8}?
  4. Is {{3,7,8},{2,9},{1,4,5}} a partition of {1,2,3,4,5,6,7,8,9}?
  5. Is {{1,5},{4,7},{2,8,6,3}} a partition of {1,2,3,4,5,6,7,8}?

10.

Let
A0={nZ:n=4k for some kZ}A1={nZ:n=4k+1 for some kZ}A2={nZ:n=4k+2 for some kZ}A3={nZ:n=4k+3 for some kZ}
Is {A0,A1,A2,A3} a partition of Z? Explain your answer.

11.

Let A={1,2} and B={2,3}. Find
  1. P(AB).
  2. P(A).
  3. P(AB).
  4. P(A×B).
You have attempted 1 of 7 activities on this page.