Set theory in 3D

A 3D Venn diagram on a white board with blue set A, green set B, and an orange overlap labelled A∩B.Drag to turn

A set is a collection of distinct objects, called elements, treated as a single whole. A Venn diagram draws sets as overlapping regions inside a rectangle so that unions, intersections and complements can be seen at a glance.

Sets, elements and notation

A set is written with curly braces, such as A = {1, 2, 3}. The symbol ∈ means "is an element of", so 2 ∈ A. Order and repetition do not matter, so {1, 2, 2, 3} and {3, 2, 1} name the same set.

The empty set, written ∅, has no elements. The universal set, written U, contains every element under discussion in a given problem. A set B is a subset of A, written B ⊆ A, when every element of B is also in A.

Union, intersection, difference and complement

The union A ∪ B holds the elements that are in A, in B, or in both. The intersection A ∩ B holds only the elements in both. The difference A \ B holds the elements of A that are not in B.

The complement of A, written A′, is the set of elements of U that are not in A. In a Venn diagram, the rectangle stands for U, each circle stands for a set, and shading marks the region described by the expression. Two sets with no common element are called disjoint, and their intersection is ∅.

Worked example: counting with two sets

Suppose 30 students are surveyed. Let M be the set who study music and S the set who study sport. Then n(M) = 18, n(S) = 15 and n(M ∩ S) = 6, where n counts elements.

Adding n(M) and n(S) counts the overlap twice, so the union rule subtracts it once: n(M ∪ S) = n(M) + n(S) − n(M ∩ S). This gives 18 + 15 − 6 = 27. The complement then has 30 − 27 = 3 students who study neither.

To fill the diagram, start with the overlap. Only music is 18 − 6 = 12 and only sport is 15 − 6 = 9. The regions total 12 + 6 + 9 + 3 = 30, which matches the survey.

Common misconceptions

A frequent error is to add n(A) and n(B) and treat the result as the union. This is correct only when the sets are disjoint. Another error is to confuse ∈ with ⊆: 2 ∈ {1, 2, 3} is true, while {2} ⊆ {1, 2, 3} is the subset statement.

Circles in a Venn diagram do not show sizes. A larger circle does not mean a larger set unless the diagram is stated to be drawn to scale.

Where sets appear

Sets underlie the number systems in algebra, such as the natural numbers inside the integers inside the real numbers. Solution sets of equations and inequalities are written as sets, and interval notation is a shorthand for sets of real numbers.

Probability uses the same rules, with events as sets. Database queries and search filters also combine groups using the logic of union, intersection and complement.

Key terms

Set
A collection of distinct objects treated as one whole.
Element
An object that belongs to a set, written with the symbol ∈.
Subset
A set whose elements all belong to another set.
Union
The set of elements in at least one of two sets, written A ∪ B.
Intersection
The set of elements common to both sets, written A ∩ B.
Complement
The elements of the universal set that are not in a given set.
Empty set
The set with no elements, written ∅.

Common questions

What is the difference between ∅ and {∅}?

The empty set ∅ has no elements. The set {∅} has one element, which is the empty set itself.

Is every set a subset of itself?

Yes. Every element of A is in A, so A ⊆ A. The empty set is also a subset of every set.

How do Venn diagrams handle three sets?

Three circles overlap to make eight regions, including the area outside all circles. The counting rule then adds the three sets, subtracts the three pairwise overlaps, and adds back the triple overlap.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.