Skip to content
MathsMaths
Start learning

Maths · Lesson 2.1

Sets & Set Operations

Roster and set-builder notation, subsets, union, intersection, difference and complement.

Core syllabus1 linked experiment
01

Learning objectives

By the end of this lesson, you should be able to:

  • Write sets in roster and set-builder notation.
  • Find union, intersection, difference and complement.
  • Apply De Morgan's laws.
  • Distinguish subsets, proper subsets and power sets.
02

Lesson

A set is a well-defined collection of objects. The objects are called elements, and the phrase well-defined means that for any object we can decide whether it belongs to the set. Sets are the language in which modern mathematics states definitions, relations and functions.

This lesson introduces the basic operations on sets. Union, intersection, difference and complement behave like the logical connectives or, and, and not. Once you see that correspondence, the algebra of sets becomes much easier to remember.

Two overlapping circles showing the union and intersection of two sets.
Union and intersection on a two-set Venn diagram

Notation, subsets and equality

We write x ∈ A when x is an element of A, and x ∉ A otherwise. A set can be listed in roster form, A = {1, 2, 3}, or described in set-builder form, A = {x ∈ N : x < 4}. Two sets are equal when they have exactly the same elements; order and repetition do not matter.

A is a subset of B, written A ⊂ B, when every element of A is also an element of B. If A ⊂ B and A ≠ B, then A is a proper subset. The set with no elements is the empty set ∅, and it is a subset of every set. A set with n elements has 2n subsets.

Operations and De Morgan's laws

The union A ∪ B contains everything in A or B. The intersection A ∩ B contains everything in both. The difference A - B contains the elements of A that are not in B. The complement A′ contains the elements of the universal set U that are not in A.

De Morgan's laws connect these operations: (A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′. In words, the complement of a union is the intersection of the complements, and vice versa. These laws are the set version of negating an or statement and a and statement.

03

Worked example

Let U = {1, 2, ..., 10}, A = {1, 2, 3, 4, 5} and B = {4, 5, 6, 7}. Find A ∪ B, A ∩ B, A - B and A′.

A ∪ B = {1, 2, 3, 4, 5, 6, 7}, because it contains every element that appears in at least one set.

A ∩ B = {4, 5}, because those are the only elements common to both sets.

A - B = {1, 2, 3}, because 4 and 5 are removed from A.

A′ = {6, 7, 8, 9, 10}, because those are the elements of U that are not in A.

04

Equations

UnionA ∪ B = {x : x ∈ A or x ∈ B}
IntersectionA ∩ B = {x : x ∈ A and x ∈ B}
ComplementA′ = {x ∈ U : x ∉ A}
De Morgan(A ∪ B)′ = A′ ∩ B′
05

Key points

  • A set is determined by its elements, not by the order or repetition of the list.
  • A ⊂ B means every element of A is an element of B.
  • Union means or, intersection means and, complement means not.
  • De Morgan's laws let you push a complement through a union or intersection.
06

Common misconceptions

Common mistake

The empty set is not a subset of a set because it has no elements.

Correct understanding

The empty set is a subset of every set. The condition 'every element of ∅ belongs to A' is vacuously true.

07

Check your understanding

1. If A = {1, 2, 3} and B = {3, 4}, what is A ∩ B?

2. Which statement is De Morgan's law?

08

Frequently asked questions

How many subsets does a set with 4 elements have?

24 = 16 subsets, including the empty set and the whole set.

What is the difference between A - B and B - A?

A - B contains elements of A that are not in B, while B - A contains elements of B that are not in A. They are different unless A = B.

NERDLYY · FEEDBACK

Help shape Nerdlyy

Your feedback goes directly to the team. We read every submission.

No reply needed — you can send feedback without sharing contact details.