Sets and set operations

Maths · Sets, functions and groups. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

The idea

A set is a well-defined collection of distinct objects. It can be written in descriptive form (in words), tabular form (elements listed in braces) or set-builder form, such as {x | x ∈ N ∧ x is even}.

A is a subset of B when every element of A is also in B. It is a proper subset when, in addition, A ≠ B. The empty set ∅ is a subset of every set.

Sets are combined by union, intersection, difference and complement, all taken inside a universal set U. The power set P(A) is the set of all subsets of A.

In simpler words

A set is a clear collection of different objects. You can describe it in words, list its members in curly brackets, or use set-builder form. A is a subset of B if everything in A is also in B. The empty set is a subset of every set. Sets can be joined (union), overlapped (intersection), taken away (difference) or flipped (complement).

An everyday comparison

Picture two clubs at college. The union is everyone in the debating club or the cricket club. The intersection is students in both clubs. The complement of the debating club is every student not in it. The comparison stops working for the power set, which is a set of sets: all the possible groups you could form from one club's members.

Rules to remember

Common mistake

In De Morgan's laws students take the complement of each set but forget to change the sign. The complement of a union is the intersection of the complements, and the complement of an intersection is the union of the complements.

In the exam

Write each set in tabular form first, then work out the operation step by step. For De Morgan's laws, find both sides separately and show they are equal: (A ∪ B)′ = A′ ∩ B′. Draw a Venn diagram if it helps. For the number of subsets, write n(P(A)) = 2n and substitute. Use n(A ∪ B) = n(A) + n(B) − n(A ∩ B) for counting.

Worked example

U = {1, 2, 3, 4, 5, 6, 7, 8}, A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Verify that (A ∪ B)′ = A′ ∩ B′.

  1. A ∪ B = {1, 2, 3, 4, 5, 6}, so (A ∪ B)′ = {7, 8}.
  2. A′ = {5, 6, 7, 8} and B′ = {1, 2, 7, 8}.
  3. A′ ∩ B′ = {7, 8}, the same set as in step one.

Answer: Both sides equal {7, 8}, so the law is verified.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Complex numbersLogic, relations and functions →Take a Maths test