We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > Mathematics for the Liberal Arts

Union, Intersection, and Complement

Learning Outcomes

  • Describe memberships of sets, including the empty set, using proper notation, and decide whether given items are members and determine the cardinality of a given set.
  • Describe the relations between sets regarding membership, equality, subset, and proper subset, using proper notation.
  • Perform the operations of union, intersection, complement, and difference on sets using proper notation.
  • Be able to draw and interpret Venn diagrams of set relations and operations and use Venn diagrams to solve problems.
  • Recognize when set theory is applicable to real-life situations, solve real-life problems, and communicate real-life problems and solutions to others.
Commonly, sets interact. For example, you and a new roommate decide to have a house party, and you both invite your circle of friends. At this party, two sets are being combined, though it might turn out that there are some friends that were in both sets.

Union, Intersection, and Complement

The union of two sets contains all the elements contained in either set (or both sets). The union is notated A B. More formally, x A B if x A or x B (or both) The intersection of two sets contains only the elements that are in both sets. The intersection is notated A B. More formally, x A B if x A and x B. The complement of a set A contains everything that is not in the set A. The complement is notated A’, or Ac, or sometimes ~A. A universal set is a set that contains all the elements we are interested in. This would have to be defined by the context. A complement is relative to the universal set, so Ac contains all the elements in the universal set that are not in A.
 

Example

  1. If we were discussing searching for books, the universal set might be all the books in the library.
  2. If we were grouping your Facebook friends, the universal set would be all your Facebook friends.
  3. If you were working with sets of numbers, the universal set might be all whole numbers, all integers, or all real numbers
 

Example

Suppose the universal set is U = all whole numbers from 1 to 9. If A = {1, 2, 4}, then Ac = {3, 5, 6, 7, 8, 9}.
 

Example

Consider the sets: A = {red, green, blue} B = {red, yellow, orange} C = {red, orange, yellow, green, blue, purple} Find the following:
  1. Find A B
  2. Find A B
  3. Find Ac C

Answer:

  1. The union contains all the elements in either set: A B = {red, green, blue, yellow, orange} Notice we only list red once.
  2. The intersection contains all the elements in both sets: A B = {red}
  3. Here we’re looking for all the elements that are not in set A and are also in CAc C = {orange, yellow, purple}

Notice that in the example above, it would be hard to just ask for Ac, since everything from the color fuchsia to puppies and peanut butter are included in the complement of the set. For this reason, complements are usually only used with intersections, or when we have a universal set in place. As we saw earlier with the expression Ac  C, set operations can be grouped together. Grouping symbols can be used like they are with arithmetic – to force an order of operations.  

Example

Suppose H = {cat, dog, rabbit, mouse}, F = {dog, cow, duck, pig, rabbit}, and W = {duck, rabbit, deer, frog, mouse}
  1. Find (H F) ⋃ W
  2. Find H ⋂ (F W)
  3. Find (H F)c W

Answer:

  1. We start with the intersection: H F = {dog, rabbit}. Now we union that result with W: (H F) ⋃ W = {dog, duck, rabbit, deer, frog, mouse}
  2. We start with the union: F W = {dog, cow, rabbit, duck, pig, deer, frog, mouse}. Now we intersect that result with H: H ⋂ (F W) = {dog, rabbit, mouse}
  3. We start with the intersection: H F = {dog, rabbit}. Now we want to find the elements of W that are not in H F. (H F)c ⋂ W = {duck, deer, frog, mouse}

Venn Diagrams

To visualize the interaction of sets, John Venn in 1880 thought to use overlapping circles, building on a similar idea used by Leonhard Euler in the 18th century. These illustrations now called Venn Diagrams.

Venn Diagram

A Venn diagram represents each set by a circle, usually drawn inside of a containing box representing the universal set. Overlapping areas indicate elements common to both sets. Basic Venn diagrams can illustrate the interaction of two or three sets.

Example

Create Venn diagrams to illustrate A B, A B, and Ac B A B contains all elements in either set.

Answer: ab1 A B contains only those elements in both sets – in the overlap of the circles. ab2 Ac will contain all elements not in the set A. Ac B will contain the elements in set B that are not in set A. ab3

Example

Use a Venn diagram to illustrate (H F)c W

Answer: We’ll start by identifying everything in the set H F A Venn diagram depicting three overlapping circles, labeled H, F, and W, respectively. The area where H and F overlap is outlined in red. Now, (H F)c W will contain everything not in the set identified above that is also in set W. A Venn diagram depicting three overlapping circles, labeled H, F, and W, respectively. The area of circle W where it does not overlap with H and F at the same time is outlined in red.  

https://youtu.be/CPeeOUldZ6M

Example

Create an expression to represent the outlined part of the Venn diagram shown. hfw3

Answer: The elements in the outlined set are in sets H and F, but are not in set W. So we could represent this set as H F Wc

Try It

Create an expression to represent the outlined portion of the Venn diagram shown. abc1
https://youtu.be/VfC8rhLdYYg

Licenses & Attributions

CC licensed content, Original

CC licensed content, Shared previously

  • Math in Society. Authored by: Open Textbook Store, Transition Math Project, and the Open Course Library. Located at: http://www.opentextbookstore.com/mathinsociety/. License: CC BY-SA: Attribution-ShareAlike.
  • Sets: drawing a Venn diagram. Authored by: David Lippman. License: CC BY: Attribution.
  • Sets: drawing a Venn diagram. Authored by: David Lippman. License: CC BY: Attribution.
  • Question ID 6699. Authored by: Morales,Lawrence. License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.
  • Question ID 125855. Authored by: Bohart, Jenifer. License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.