Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

9.4: Complement, union, and intersection

( \newcommand{\kernel}{\mathrm{null}\,}\)

First, it is often convenient to restrict the scope of the discussion.

Definition: Universal set

a set that contains all objects currently under consideration

We will consider all of the following set operations to be performed within a universal set U. In particular, suppose A,BU.

9.4.1: Universal and relative complement

Definition: Complement

the set of elements of U which are not in A

Definition: AC

the complement of A (in U), so that

AC={xU|xA}

Definition: Relative complement

if A,BU, the complement of A in B is the set of elements of B which are not in A

Definition: BA

the complement of A in B, so that

BA={xB|xA}

clipboard_e0112eec2c83eba0edb157193e7454e0a.png
Figure 9.4.1: Venn diagrams of universal and relative set complements.
 
 
Note 9.4.1

Another common notation for relative complement is BA. However, this conflicts with the notation for the algebraic operation of subtraction in certain contexts, so we will prefer the notation BA.

Example 9.4.1: Some examples of relative complement involving number sets
  • Suppose B={1,2,3,4,5,6} and A={1,3,5}. Then BA={2,4,6}.
  • The complement of the set of rational numbers Q inside the set of real numbers R is called the set of irrational numbers, and we write I=RQ for this set. If you are thinking of real numbers in terms of their decimal expanions, the irrational numbers are precisely those that have nonterminating, nonrepeating decimal expansions.

9.4.2: Union, intersection, and disjoint sets

Definition: Union

the combined collection of all elements in a pair of sets

Definition: AB

the union of sets A and B, so that

AB={xU|xA or xB (or both)}

Definition: Intersection

the collection of only those elements common to a pair of sets

Definition: AB

the intersection of A and B, so that

AB={xU|xA and xB}

clipboard_e15016722ce60e9a0df1e13594d522a94.png
Figure 9.4.1: Venn diagrams of set union and intersection.
Note 9.4.2

A union contains every element from both sets, so it contains both sets as subsets:

A,BAB.

On the other hand, every element in an intersection is in both sets, so the intersection is a subset of both sets:

ABA,B.

Example 9.4.2

For subsets A={1,2,3,4} and B={3,4,5,6} of N, we have

AB={1,2,3,4,5,6},AB={3,4}.

Example 9.4.3

Consider the following subsets of N.

E={nN|n even}P={nN|n prime, nNe0}O={nN|n odd}T={3n|nN}={0,3,6,9,}
Then,

EO=N,EP={2},ET={6n|nN},EO=,OP=P{2},OT={6n+3|nN}.

Definition: Disjoint Sets

sets that have no elements in common, i.e. sets A,B such that AB=

Definition: Disjoint Union

a union AB where A and B are disjoint

Definition: AB

the disjoint union of sets A and B

clipboard_e43086cb3bc7c7da8d6077245b6109699.png
Figure 9.4.2: A Venn diagram of a disjoint set union.
Example 9.4.4

Sets E,O from Example 9.4.3 are disjoint, and N=EO.

Remark 9.4.1

If AU, then we can express U as a disjoint union U=AAC. Similarly, if U=AB, then we must have B=AC.

9.4.3: Rules for set operations

Proposition 9.4.1: Rules for Operations on Sets

Suppose A,B,C are subsets of a universal set U. Then the following set equalities hold.

  1. Properties of the universal set.
    1. AU=U
    2. AU=A
  2. Properties of the empty set.
    1. A=A
    2. A=
  3. Duality of universal and empty sets.
    1. UC=
    2. C=U
  4. (AC)C=A
  5. Idempotence.
    1. AA=A
    2. AA=A
  6. Commutativity.
    1. AB=BA
    2. AB=BA
  7. Associativity.
    1. (AB)C=A(BC)
    2. (AB)C=A(BC)
  8. Distributivity.
    1. A(BC)=(AB)(AC)
    2. A(BC)=(AB)(AC)
    3. (AB)C=(AC)(BC)
    4. (AB)C=(AC)(BC)
  9. DeMorgan's Laws.
    1. (AB)C=ACBC
    2. (AB)C=ACBC
Proof of Rule 9.a.

Recall that to prove this set equality, we need to show both

(AB)CACBC,ACBC(AB)C.

Show (AB)CACBC.
We need to show

x(AB)CxACBC.

If x(AB)C then by definition of complement, xU but xAB. Then xA must be true, since if x were in A then it would also be in AB. Similarly, xB must also be true. So xAC and xBC; i.e. xACBC.

Show ACBC(AB)C. We need to show

xACBCx(AB)C.

If xACBC then by definition of intersection, both xAC and xBC are true.; i.e. xA and xB. Since AB is all elements of U which are in one (or both) of A,B, we must have xAB. Thus x(AB)C.

Proofs of the other rules.

These are left to you, the reader, in the Exercise 9.9.1.

 
Remark 9.4.2

Compare the set operation rules of the proposition above with the Rules of Propositional Calculus.


This page titled 9.4: Complement, union, and intersection is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jeremy Sylvestre via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?