IMAT Mathematics · Sets and Logic
Sets, Intervals and Venn Diagrams
A set is a collection of distinct objects; union, intersection, complement, difference and the Cartesian product build new sets, and Venn diagrams count them.
Why this matters
The 2025 paper asked what the Cartesian product of two sets is. Set notation, intervals, ℝ and ∅ also fill the answer options of recent algebra questions, so you need to read them fluently.
Concept 1 of 4: Sets, elements, subsets and set notation
Definition
A set is a collection of distinct objects, its elements. It can be given by listing, , or by a rule (set-builder notation), .
- Two sets are equal when they have exactly the same elements.
- means every element of is also in . Every set is a subset of itself, and is a subset of every set.
- A set with elements has subsets (each element is either in or out).
| Symbol | Read as | Example |
|---|---|---|
| x is an element of A | ||
| x is not an element of A | ||
| A is a subset of B | ||
| A is a proper subset of B (a subset, not equal to B) | ||
| or | the empty set, with no elements | the solutions of in |
| or | the number of elements of A | |
| the integers x such that x is positive | the set |
Practice this conceptself-check · 4 quick reps
An element is not a subset
Concept 2 of 4: Union, intersection, difference, complement and Cartesian product
Definition
The table uses , and the universal set .
- and are disjoint when .
- De Morgan's laws: and .
- In the Cartesian product order matters: , so in general, and .
- is often written ; is the coordinate plane.
| Operation | Symbol | Contains | Example |
|---|---|---|---|
| Union | elements in A or in B (or both) | ||
| Intersection | elements in both A and B | ||
| Difference | elements in A but not in B | ||
| Complement | or | elements of U that are not in A | |
| Cartesian product | all ordered pairs with and | contains but not ; 12 pairs |
Practice this conceptself-check · 3 quick reps
The Cartesian product is a set of pairs, not of products
Concept 3 of 4: Intervals of real numbers
Definition
- A square bracket includes the endpoint; a round bracket excludes it. Some Italian books write for .
- is never a number, so it always takes a round bracket.
- An answer such as or is a union of intervals: . Two conditions that must both hold give an intersection.
- means every real number is a solution; means none is.
| Interval | Inequality | Endpoints |
|---|---|---|
| both included (closed) | ||
| both excluded (open) | ||
| a included, b excluded | ||
| a excluded, b included | ||
| a included; infinity never is | ||
| a excluded |
Practice this conceptself-check · 4 quick reps
Round brackets do not mean a smaller set of whole numbers
Concept 4 of 4: Counting with Venn diagrams: inclusion and exclusion
Definition
- Two sets: .
- Elements in neither set: .
- In A only: .
- Three sets: add the three sizes, subtract the three pairwise overlaps, add back the triple overlap.
- With three sets, fill the Venn diagram from the centre outwards: the triple overlap first, then each pair minus the centre, then each set alone.
Inclusion and exclusion
Worked example
Practice this conceptself-check · 3 quick reps
Adding the set sizes counts the overlap twice
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (1)
- Counting with Venn diagrams: inclusion and exclusion
Inclusion and exclusion
Reference tables (3)
Sets, elements, subsets and set notation7 rows
| Symbol | Read as | Example |
|---|---|---|
| x is an element of A | ||
| x is not an element of A | ||
| A is a subset of B | ||
| A is a proper subset of B (a subset, not equal to B) | ||
| or | the empty set, with no elements | the solutions of in |
| or | the number of elements of A | |
| the integers x such that x is positive | the set |
Union, intersection, difference, complement and Cartesian product5 rows
| Operation | Symbol | Contains | Example |
|---|---|---|---|
| Union | elements in A or in B (or both) | ||
| Intersection | elements in both A and B | ||
| Difference | elements in A but not in B | ||
| Complement | or | elements of U that are not in A | |
| Cartesian product | all ordered pairs with and | contains but not ; 12 pairs |
Intervals of real numbers6 rows
| Interval | Inequality | Endpoints |
|---|---|---|
| both included (closed) | ||
| both excluded (open) | ||
| a included, b excluded | ||
| a excluded, b included | ||
| a included; infinity never is | ||
| a excluded |
Watch out for (4)
- An element is not a subset→ Sets, elements, subsets and set notation
- The Cartesian product is a set of pairs, not of products→ Union, intersection, difference, complement and Cartesian product
- Round brackets do not mean a smaller set of whole numbers→ Intervals of real numbers
- Adding the set sizes counts the overlap twice→ Counting with Venn diagrams: inclusion and exclusion
Drill the past-year questions on this topic
Open the bank with this topic pre-filtered.