Probability

Set Difference

A pupil removes a circle token from a tray containing a star and a triangle.

Set Difference definition

The set difference A ∖ B contains elements that belong to A and do not belong to B.

In Spanish
diferencia de conjuntos
Topic
Sets and Venn diagrams

Set Difference in a picture

Set Difference diagramThe left crescent contains elements of A that are outside B.AB
The left crescent contains elements of A that are outside B.

How it works

Start with A and remove all members that also lie in B. The order matters: A ∖ B and B ∖ A usually differ. If U is the universal set, A ∖ B equals A ∩ Bᶜ, using the complement relative to U.

Worked examples

Find {1, 2, 3} ∖ {2, 4}.

{1, 3}.

Reverse the order. What is {2, 4} ∖ {1, 2, 3}?

{4}.

Find A ∖ A.

∅.

Common mistake

An element in B but outside A was never available to keep. The first set supplies the candidates.

Quick check

What is A ∖ ∅?

Show answer

A.

What is ∅ ∖ A?

Show answer

∅.

What is A ∖ B when A and B are disjoint?

Show answer

A.

Sources

Flashcard

Set Difference

Reveal the definition

The set difference A ∖ B contains elements that belong to A and do not belong to B.

Effortless Math. “Set Difference.” Math Dictionary.