Complement Examples in Math: 42 Problems with Answers

Worked examples of Complement to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Let the universal set U={1,2,3,4,5,6,7,8,9,10} and A={2,4,6,8,10}. Find A′.
Show solution

Answer

A′={1,3,5,7,9}

First step

1.
The complement A′ (also written Ac or Aˉ) relative to universal set U is defined as A′={x∈U:x∉A}.

Full solution

  1. 2.
    List elements of U={1,2,3,4,5,6,7,8,9,10} that are not in A={2,4,6,8,10}: remove the even numbers, leaving the odd numbers.
  2. 3.
    Therefore A′={1,3,5,7,9}. Verify: ∣A∣+∣A′∣=5+5=10=∣U∣ ✓.
The complement of a set A relative to the universal set U is everything in U that is not in A. It is essential to know the universal set.

Example 2

medium
Let U={1,2,3,4,5,6,7,8,9,10}, A={1,2,3,4,5}, B={4,5,6,7}. Find (A∩B)′.

Example 3

medium
Let U=Z and A={even integers}. Describe Ac.

Example 4

medium
Show that A∪Ac=U when A⊆U.

Example 5

hard
In a class of 40, 25 play sports. Using complements, how many do not play sports?

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Let U={a,b,c,d,e,f} and S={a,c,e}. Find S′.

Example 2

easy
Let the universal set be U={1,2,3,4,5,6} and let A={2,4,6}. Find the complement of A.

Example 3

easy
With universal set U={1,2,3,4,5} and A={1,2}, find Ac.

Example 4

easy
With U={1,2,3,4,5} and A={1,3,5}, find A′.

Example 5

easy
For any set A with universe U, what is (Ac)c?

Example 6

easy
With U={1,2,3,4,5,6} and A={2,4,6}, how many elements are in Ac?

Example 7

easy
With U given, what is Uc?

Example 8

easy
With U given, what is ∅c?

Example 9

easy
With U={a,b,c,d} and A={a,b,c,d}, find Ac.

Example 10

easy
With U={1,2,3,4} and A={2}, compute A∪Ac.

Example 11

medium
With U={1,…,10} and A={2,4,6,8,10}, compute Ac and verify ∣A∣+∣Ac∣=∣U∣.

Example 12

medium
With U={1,…,8}, A={1,2,3,4}, B={3,4,5,6}, compute Ac∩B.

Example 13

medium
Using De Morgan's law, rewrite (A∪B)c in terms of Ac and Bc.

Example 14

medium
Using De Morgan's law, rewrite (A∩B)c in terms of Ac and Bc.

Example 15

medium
With U={1,…,6}, A={1,2,3}, verify A∩Ac=∅.

Example 16

medium
If ∣U∣=30 and ∣Ac∣=12, find ∣A∣.

Example 17

medium
A class has 25 students; 18 passed the test. Using complement, how many did NOT pass?

Example 18

challenge
Prove De Morgan's law (A∪B)c=Ac∩Bc.

Example 19

challenge
Prove that A⊆B if and only if Bc⊆Ac.

Example 20

challenge
With U={1,…,20}, let A = multiples of 2 and B = multiples of 3. Use complement counting to find how many elements are in neither A nor B.

Example 21

medium
Express 'students NOT in the chess club' in set notation, with chess club C and universe U all students.

Example 22

medium
With U={1,…,9} and A={1,2,3,4}, compute (Ac)c and confirm it equals A.

Example 23

easy
Let U={1,2,3,4,5,6,7,8} and A={3,5,7}. Find Ac.

Example 24

medium
Let U=R and A=[0,5]. Express Ac in interval notation.

Example 25

medium
Let U=R and A=(−2,3]. Find Ac.

Example 26

medium
U={1,2,3,4,5}, A={1,2}, B={2,3}. Find Ac∪Bc.

Example 27

medium
U={1,2,3,4,5,6}, A={1,2,3}, B={3,4}. Find Ac∩Bc.

Example 28

medium
U={1,2,3,4,5,6,7,8,9,10}, A={even numbers in U}. Find Ac.

Example 29

hard
Let U=R. Find the complement of A={x:x2<4}.

Example 30

hard
U={1,2,…,12}, A={multiples of 3 in U}. List Ac.

Example 31

medium
U={a,b,c,d,e,f,g}, A={a,b,c}, B={c,d,e}. Find (A∪B)c.

Example 32

medium
U={1,2,3,4,5,6,7}, A={1,2,3,4}, B={3,4,5}. Find (A∩B)c.

Example 33

hard
Use De Morgan: simplify (A∪B)c.

Example 34

medium
U=R. What is the complement of {0}?

Example 35

hard
Out of 50 students, 32 take math and 28 take science. If 10 take neither, how many take math and science?

Example 36

challenge
In R, find (Q)c (the complement of the rationals).

Example 37

medium
U={1,2,3,4,5,6,7,8,9,10}. Find {x∈U:x is prime}c.

What to focus on

Core idea: The complement of A is every element of the universe U that is not in A.

Common stuck point: The procedure for complement is the easy part; the trap is computing a complement without naming the universe U. Asking "Am I collecting everything in the fixed universe that is NOT in this set?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Am I collecting everything in the fixed universe that is NOT in this set?

Concept recap

The complement of set A relative to a universal set U is the set of all elements in U that do not belong to A, written Ac or A′.

Cut a star out of a sheet of paper: the star is A and the sheet with the star-shaped hole is A′. Together they make the whole sheet, and they never overlap. A bigger sheet leaves more paper around the same star, just as a bigger universe gives a bigger complement.

Read the full lesson on Complement

Related concepts

Background knowledge

These ideas may be useful before you work through the harder examples.

set