Complement Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Complement.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

The complement of set AA relative to a universal set UU is the set of all elements in UU that do not belong to AA, written AcA^c or AA'.

If the universal set is all students in your school and set AA is students who wear glasses, then the complement of AA is every student who does NOT wear glasses. It is everything outside the circle in a Venn diagram—the NOT operator applied to a set.

Read the full concept explanation →

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

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 UU. 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.

Sense of Study hint: Ask: Am I collecting everything in the fixed universe that is NOT in this set?

Worked Examples

Example 1

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

Answer

A={1,3,5,7,9}A' = \{1, 3, 5, 7, 9\}

First step

1
The complement AA' (also written AcA^c or Aˉ\bar{A}) relative to universal set UU is defined as A={xU:xA}A' = \{x \in U : x \notin A\}.

Full solution

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

Example 2

medium
Let U={1,2,3,4,5,6,7,8,9,10}U = \{1,2,3,4,5,6,7,8,9,10\}, A={1,2,3,4,5}A = \{1,2,3,4,5\}, B={4,5,6,7}B = \{4,5,6,7\}. Find (AB)(A \cap B)'.

Example 3

medium
Let U=ZU = \mathbb{Z} and A={even integers}A = \{\text{even integers}\}. Describe AcA^c.

Example 4

medium
Show that AAc=UA \cup A^c = U when AUA \subseteq U.

Example 5

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

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

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

Example 2

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

Example 3

easy
With universal set U={1,2,3,4,5}U = \{1, 2, 3, 4, 5\} and A={1,2}A = \{1, 2\}, find AcA^c.

Example 4

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

Example 5

easy
For any set AA with universe UU, what is (Ac)c(A^c)^c?

Example 6

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

Example 7

easy
With UU given, what is UcU^c?

Example 8

easy
With UU given, what is c\emptyset^c?

Example 9

easy
With U={a,b,c,d}U = \{a,b,c,d\} and A={a,b,c,d}A = \{a,b,c,d\}, find AcA^c.

Example 10

easy
With U={1,2,3,4}U=\{1,2,3,4\} and A={2}A=\{2\}, compute AAcA \cup A^c.

Example 11

medium
With U={1,,10}U=\{1,\dots,10\} and A={2,4,6,8,10}A=\{2,4,6,8,10\}, compute AcA^c and verify A+Ac=U|A|+|A^c|=|U|.

Example 12

medium
With U={1,,8}U=\{1,\dots,8\}, A={1,2,3,4}A=\{1,2,3,4\}, B={3,4,5,6}B=\{3,4,5,6\}, compute AcBA^c \cap B.

Example 13

medium
Using De Morgan's law, rewrite (AB)c(A \cup B)^c in terms of AcA^c and BcB^c.

Example 14

medium
Using De Morgan's law, rewrite (AB)c(A \cap B)^c in terms of AcA^c and BcB^c.

Example 15

medium
With U={1,,6}U=\{1,\dots,6\}, A={1,2,3}A=\{1,2,3\}, verify AAc=A \cap A^c = \emptyset.

Example 16

medium
If U=30|U| = 30 and Ac=12|A^c| = 12, find A|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 (AB)c=AcBc(A \cup B)^c = A^c \cap B^c.

Example 19

challenge
Prove that ABA \subseteq B if and only if BcAcB^c \subseteq A^c.

Example 20

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

Example 21

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

Example 22

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

Example 23

easy
Let U={1,2,3,4,5,6,7,8}U = \{1, 2, 3, 4, 5, 6, 7, 8\} and A={3,5,7}A = \{3, 5, 7\}. Find AcA^c.

Example 24

medium
Let U=RU = \mathbb{R} and A=[0,5]A = [0, 5]. Express AcA^c in interval notation.

Example 25

medium
Let U=RU = \mathbb{R} and A=(2,3]A = (-2, 3]. Find AcA^c.

Example 26

medium
U={1,2,3,4,5}U = \{1, 2, 3, 4, 5\}, A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\}. Find AcBcA^c \cup B^c.

Example 27

medium
U={1,2,3,4,5,6}U = \{1, 2, 3, 4, 5, 6\}, A={1,2,3}A = \{1, 2, 3\}, B={3,4}B = \{3, 4\}. Find AcBcA^c \cap B^c.

Example 28

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

Example 29

hard
Let U=RU = \mathbb{R}. Find the complement of A={x:x2<4}A = \{x : x^2 < 4\}.

Example 30

hard
U={1,2,,12}U=\{1,2,\ldots,12\}, A={A=\{multiples of 33 in U}U\}. List AcA^c.

Example 31

medium
U={a,b,c,d,e,f,g}U=\{a,b,c,d,e,f,g\}, A={a,b,c}A=\{a,b,c\}, B={c,d,e}B=\{c,d,e\}. Find (AB)c(A \cup B)^c.

Example 32

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

Example 33

hard
Use De Morgan: simplify (AB)c(A \cup B)^c.

Example 34

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

Example 35

hard
Out of 5050 students, 3232 take math and 2828 take science. If 1010 take neither, how many take math and science?

Example 36

challenge
In R\mathbb{R}, find (Q)c(\mathbb{Q})^c (the complement of the rationals).

Example 37

medium
U={1,2,3,4,5,6,7,8,9,10}U = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}. Find {xU:x is prime}c\{x \in U : x \text{ is prime}\}^c.

Related Concepts

Background Knowledge

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

set