Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

4.3: Unions and Intersections

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

We can form a new set from existing sets by carrying out a set operation.

Definition: AB

Given two sets A and B, define their intersection to be the set

AB={xUxAxB}

Loosely speaking, AB contains elements common to both A and B.

Definition: AB

The union of A and B is defined as

AB={xUxAxB}

Thus AB is, as the name suggests, the set combining all the elements from A and B.

Set_Intersection.PNG
INTERSECTION
Set_Union.PNG

        UNION

 

Definition: AB

The set difference AB, sometimes written as AB, is defined as

AB={xUxAxB}

In words, AB contains elements that can only be found in A but not in B. Operationally speaking, AB is the set obtained from A by removing the elements that also belong to B

Definition: ¯A

The complement of A, denoted by ¯A, A or Ac, is defined as 

¯A={xUxA}

clipboard_eb7828cfbe744040a3267be77dd6699c2.png

Definition: AB

The symmetric difference   AB, is defined as

AB=(AB)(BA) 

clipboard_efe63e0afcc4fbba9e26b30537afde35d.png

Definition: Disjoint

Two sets are disjoint if their intersection is empty.

For example, consider S={1,3,5} and T={2,8,10,14}.

ST= so S and T are disjoint.

Remark

We would like to remind the readers that it is not uncommon among authors to adopt different notations for the same mathematical concept. Likewise, the same notation could mean something different in another textbook or even another branch of mathematics. It is important to develop the habit of examining the context and making sure that you understand the meaning of the notations when you start reading a mathematical exposition.

Example 4.3.1

Let U={1,2,3,4,5}, A={1,2,3}, and B={3,4}. Find AB, AB, AB, BA, AB¯A, and ¯B.

Solution

We have AB={3},AB={1,2,3,4},AB={1,2},BA={1,2,4}. We also find ¯A={4,5}, and ¯B={1,2,5}.

hands-on exercise 4.3.1

Let U={John,Mary,Dave,Lucy,Peter,Larry}, A={John,Mary,Dave},andB={John,Larry,Lucy}. Find AB, AB, AB, BA, ¯A, and ¯B.

hands-on exercise 4.3.2

If AB, what would be AB?

Example 4.3.2

The set of integers can be written as the Z={1,2,3,}{0}{1,2,3,}. Can we replace {0} with 0? Explain.

hands-on exercise 4.3.3

Explain why the following expressions are syntactically incorrect.

  • Z={1,2,3,}0{1,2,3,}.
  • Z=,3,2,101,2,3,
  • Z=,3,2,1+0+1,2,3,
  • Z=Z0Z+

How would you fix the errors in these expressions?

Example 4.3.3

For any set A, what are A, A, A, A and ¯¯A?

Answer

It is clear that A=,A=A,andA=A. From the definition of set difference, we find A=. Finally, ¯¯A=A.

Example 4.3.4

Write, in interval notation, [5,8)(6,9] and [5,8)(6,9].

Answer

The answers are [5,8)(6,9]=[5,9],and[5,8)(6,9]=(6,8). They are obtained by comparing the location of the two intervals on the real number line.

hands-on exercise 4.3.4

Write, in interval notation, (0,3)[1,2) and (0,3)[1,2).

Example 4.3.5

We are now able to describe the following set {xR(x<5)(x>7)} in the interval notation. It can be written as either (,5)(7,) or, using complement, R[5,7]. Consequently, saying x[5,7] is the same as saying x(,5)(7,), or equivalently, xR[5,7].

To Prove a Set is Empty

To prove a set is empty, use a proof by contradiction with these steps:

(1) Assume not.  That, is assume is not empty.

(2) This means there is an element is  by definition of the empty set. 

(3) Let x.

(4) Come to a contradition and wrap up the proof.

 

Example 4.3.6

Prove: AU,A=.

Proof: Assume not. That is, assume for some set A,  A.
By definition of the empty set, this means there is an element in A.

Let xA.

xAx by definition of intersection.

This says x, but the empty set has no elements!  This is a contradiction!

Thus, our assumption is false, and the original statement is true.
AU,A=.

 

Set Properties

Notes:

(a) These properties should make sense to you and you should be able to prove them.  However, you are not to use them as reasons in a proof.  Rather your justifications for steps in a proof need to come directly from definitions. The exception to this is DeMorgan's Laws which you may reference as a reason in a proof.

(b) You do not need to memorize these properties or their names.  However, you should know the meanings of: commutative, associative and distributive.  Also, you should know DeMorgan's Laws by name and substance.

The following properties hold for any sets A, B, and C in a universal set U.

  1. Commutative properties: AB=BA,AB=BA.
  2. Associative properties: (AB)C=A(BC),(AB)C=A(BC).
  3. Distributive laws: A(BC)=(AB)(AC),A(BC)=(AB)(AC).
  4. Idempotent laws: AA=A,AA=A.
  5. De Morgan’s laws:  (a) ¯AB=¯A¯B, (b) ¯AB=¯A¯B.
  6. Laws of the excluded middle, or inverse laws: A¯A=U,A¯A=.

As an illustration, we shall prove the distributive law A(BC)=(AB)(AC). 

We need to show that A(BC)(AB)(AC),and(AB)(AC)A(BC).

Here is a proof of the distributive law A(BC)=(AB)(AC).

Proof
 
First we will show A(BC)(AB)(AC).
Let xA(BC).
xAxBC by definition of union.

Case 1: xA.
Since xA,  xAB, by definition of union and xAC, by definition of union.
x(AB)(AC), by definition of intersection.

Case 2: xBC.
xBxC,by definition of intersection.
xAB, by definition of union and xAC, by definition of union.
x(AB)(AC), by definition of intersection.

We have shown if xA(BC) then x(AB)(AC).
So, by definition of subset, A(BC)(AB)(AC).

Next, we will show (AB)(AC)A(BC).
Let x(AB)(AC).

x(AB)x(AC) by definition of intersection.
Case 1: xA.
Since xA, we have xA(BC) by definition of union.

Case 2: xA.
Since x(AB), xAxB by definition of union, so x must be an element of B.
Furthermore, since x(AC), xAxC by definition of union, so x must be an element of C.
We have xBxC, thus  xBC. by definition of intersection.
And so,  xA(BC). by definition of union.

In both cases, if x(AB)(AC), then xA(BC.)
So, by definition of subset, (AB)(AC)A(BC.)

It follows that A(BC)=(AB)(AC), by definition of equality of sets.

hands-on exercise 4.3.5

Prove that A(BC)=(AB)(AC).

hands-on exercise 4.3.6

Prove that if AB and AC, then ABC.

Discussion

Let us start with a draft. The statement we want to prove takes the form of (AB)(AC)ABC. Hence, what do we assume and what do we want to prove?

Assume:
Want to Prove:

Did you put down we assume AB and AC, and we want to prove ABC? Great! Now, what does it mean by AB? How about AC? What is the meaning of ABC?

AB means: For any xU, if xA, then xB as well.
AC means:
ABC means:

How can you use the first two pieces of information to obtain what we need to establish?

Now it is time to put everything together, and polish it into a final version. Remember three things:

  • the outline of the proof,
  • the reason in each step of the main argument, and
  • the introduction and the conclusion.

Put the complete proof in the space below.

Here are two results involving complements.

Theorem 4.3.1

For any two sets A and B, we have AB¯B¯A.

Theorem 4.3.2

For any sets A, B and C,  

(a) A(BC)=(AB)(AC)

(b) A(BC)=(AB)(AC)

Summary and Review

  • Memorize the definitions of intersection, union, and set difference. We rely on them to prove or derive new results.
  • The intersection of two sets A and B, denoted AB, is the set of elements common to both A and B. In symbols, xU[xAB(xAxB)].
  • The union of two sets A and B, denoted AB, is the set that combines all the elements in A and B. In symbols, xU[xAB(xAxB)].
  • The set difference between two sets A and B, denoted by AB, is the set of elements that can only be found in A but not in B. In symbols, it means xU[xAB(xAxB)].
  • The symmetric difference between two sets A and B, denoted by AB, is the set of elements that can be found in A and in B, but not in both A and B.  In symbols, it means xU[xABxABxBA)].

Exercises 

Exercise 4.3.1

Write each of the following sets by listing its elements explicitly.

(a) [4,4]Z

(b) (4,4]Z

(c) (4,)Z

(d) (,4]N

(e) (4,)Z

(f) (4,5)Z
 

Answer

(a) {4,3,2,1,0,1,2,3,4}

(b) {3,2,1,0,1,2,3,4}

(c) {3,2,1,0,1,2,3,}

Exercise 4.3.2

Assume U=Z, and let

A={,6,4,2,0,2,4,6,}=2Z,

B={,9,6,3,0,3,6,9,}=3Z,

C={,12,8,4,0,4,8,12,}=4Z.

 Describe the following sets by listing their elements explicitly.

(a) AB

(b) CA

(c) AB

(d) A¯B

(e) BA

(f) BC

(g) (AB)C

(h) (AB)C

Exercise 4.3.3

Are these statements true or false?

(a) [1,2][2,3]=

(b) [1,2)(2,3]=[2,3]

Answer

(a) false (b) false

Exercise 4.3.4

Let the universal set U be the set of people who voted in the 2012 U.S. presidential election. Define the subsets D, B, and W of U as follows: D={xUx registered as a Democrat},B={xUx voted for Barack Obama},W={xUx belonged to a union}. Express the following subsets of U in terms of D, B, and W.

(a) People who did not vote for Barack Obama.

(b) Union members who voted for Barack Obama.

(c) Registered Democrats who voted for Barack Obama but did not belong to a union.

(d) Union members who either were not registered as Democrats or voted for Barack Obama.

(e) People who voted for Barack Obama but were not registered as Democrats and were not union members.

(f) People who were either registered as Democrats and were union members, or did not vote for Barack Obama.

Exercise 4.3.5

An insurance company classifies its set U of policy holders by the following sets: A={xx drives a subcompact car},B={xx drives a car older than 5 years},C={xx is married},D={xx is over 21 years old},E={xx is a male}. Describe each of the following subsets of U in terms of A, B, C, D, and E.

(a) Male policy holders over 21 years old.

(b) Policy holders who are either female or drive cars more than 5 years old.

(c) Female policy holders over 21 years old who drive subcompact cars.

(d) Male policy holders who are either married or over 21 years old and do not drive subcompact cars.

Answer

(a) ED (b) ¯EB

Exercise 4.3.6

Let A and B be arbitrary sets. Complete the following statements.

(a) ABAB=        ___________________

(b) ABAB=        ___________________

(c) ABAB=           ___________________

(d) AB(AB=  ___________________BA ___________________ )

(e) AB(AB=  ___________________AB ___________________  )

(f) AB=BA           ___________________

Exercise 4.3.7

Give examples of sets A and B such that AB and AB.

Answer

For example, take A={x}, and B={{x},x}.

Exercise 4.3.8

(a) Prove De Morgan’s law, (a) .

(b) Prove De Morgan’s law, (b) .

Exercise 4.3.9

Let A, B, and C be any three sets. Prove that if AC and BC, then ABC.

Answer

Assume AC and BC, we want to show that ABC.

Let xAB. we want to show that xC as well.

Since xAB, then either xA or xB by definition of union.

Case 1: If xA, then AC implies that xC by definition of subset.

Case 2: If xB, then BC implies that xC by definition of subset.

 

In both cases, we find xC. So, if xAB then xC.

This proves that ABC by definition of subset.

For any sets A, B, and C if AC and BC, then ABC.

Exercise 4.3.10

Prove Theorem 4.3.1

Exercise 4.3.11

(a) Prove Theorem 4.3.2 part (a)

(b) Prove Theorem 4.3.2 part (b)

Exercise 4.3.12

Let A, B, and C be any three sets. Prove that

(a) AB=A¯B

(b) A=(AB)(AB)

(c) A(BC)=A(¯BC)

(d) (AB)C=A(BC)

Exercise 4.3.13

Comment on the following statements. Are they syntactically correct?

(a) xAxBxAB

(b) xABxAB

Answer

(a) The notation is used to connect two sets, but “xA” and “xB” are both logical statements. We should also use instead of . The statement should have been written as “xAxBxAB.”

(b) If we read it aloud, it sounds perfect: If x belongs to A and B, then x belongs to AB. The trouble is, every notation has its own meaning and specific usage. In this case, is not exactly a replacement for the English word “and.” Instead, it is the notation for joining two logical statements to form a conjunction. Before , we have “xA,” which is a logical statement. But, after , we have “B,” which is a set, and not a logical statement. It should be written as “xAxBxAB.”

Exercise 4.3.14

Prove or disprove each of the following statements about arbitrary sets A and B. If you think a statement is true, prove it; if you think it is false, provide a counterexample.

(a) P(AB)=P(A)P(B)

(b) P(AB)=P(A)P(B)

(c) P(AB)=P(A)P(B)

Remark

To show that two sets U and V are equal, we usually want to prove that UV and VU.  For the subset relationship, we start with let xU. In this problem, the element x is actually a set. Since we usually use uppercase letters to denote sets, for (a) we should start the proof of the subset relationship  “Let SP(AB),”  using an uppercase letter to emphasize the elements of P(AB) are sets. These remarks also apply to (b) and (c).

Exercise 4.3.15

Let U={1,2,3,4,5,6,7,8}, A={2,4,6,8}, B={3,5}, C={1,2,3,4} andD={6,8}. Find

(a) AC                   (b) AB                    (c) B   

(d) B                  (e) A(BC)              (f) CB                   

(g) AC                (h) AU                  (i)  AD                       

(j) AD                  (k) BD                      (l) BC   

(m)  AU                 (n) ¯A                      (o) ¯B.                 

(p) D(BC)        (q) ¯AC            (r) ¯A¯C

(s) Which pairs of sets are disjoint?

Answer    

(a) {2,4}            (b)        (c) B               (d)      

Exercise 4.3.16

Prove:

If AB then AB=.


This page titled 4.3: Unions and Intersections is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Harris Kwong (OpenSUNY) .

Support Center

How can we help?