Sets

Download as PDF

Ever organized your music into playlists or sorted your clothes by color? You've already used the core idea of sets! In math, a set is simply a collection of distinct items. This guide will walk you through the language and logic of sets, a fundamental concept in all of mathematics.

Sets — an original Algebra911 reference diagram defining sets with its key formula and a worked example.
Understanding Sets: The Ultimate Guide for Beginners

What Is a Mathematical Set?

A set is a well-defined collection of distinct objects. This is the foundational definition you need to know. Let's break down those key terms:

  • Collection: This just means we are grouping things together. These things can be numbers, letters, names, or even other sets!
  • Well-defined: This is crucial. It means we can determine with absolute certainty whether an object belongs to the collection or not. For example, "the collection of tall students in your class" is not well-defined because "tall" is subjective. However, "the collection of students in your class over 160cm tall" is well-defined because we can measure each student and get a definite yes or no answer.
  • Distinct objects: Each object in a set must be unique. We don't list the same object more than once. The set of letters in the word "book" is {b,o,k}, not {b,o,o,k}.

The objects within a set are called its elements or members. We use curly braces {} to enclose the elements of a set. For example, if we have a set named A that contains the first five positive integers, we would write it as:

A={1,2,3,4,5}

To show that an object is an element of a set, we use the symbol . To show it is not an element, we use . Using our set A above:

  • 3A (Read as: "3 is an element of A")
  • 7A (Read as: "7 is not an element of A")

How Do We Describe and Write Sets?

There are two primary ways to describe the elements of a set. The method you choose often depends on which is clearer or more convenient for the specific set you're working with.

1. Roster Method (or Listing Method)

This is the most straightforward method. You simply list all the elements of the set, separated by commas, inside the curly braces. We've already seen this with A={1,2,3,4,5}. The order in which you list the elements does not matter. The set {1,2,3} is exactly the same as the set {3,1,2}.

For sets with many elements that follow a clear pattern, we can use an ellipsis (...) to save space. For example, the set of all integers from 1 to 100 can be written as:

B={1,2,3,...,100}

2. Set-Builder Notation (or Rule Method)

This method is more powerful, especially for large or infinite sets. Instead of listing the elements, you describe them by stating a property or rule that its members must satisfy. The notation looks like this:

S={xproperty of x}

This is read as: "S is the set of all elements x such that x has a certain property." The vertical bar means "such that." A colon (:) is sometimes used instead.

For example, let's define the set E of all even integers greater than 0. Listing them all is impossible! But with set-builder notation, it's easy:

E={xx is a positive even integer}

Here's another example. The set A={1,2,3,4,5} can be written in set-builder notation as:

A={xx is an integer and 1x5}

What Are the Different Types of Sets?

Sets can be categorized based on the number and nature of their elements. Understanding these types is essential for working with them.

  • Finite Set: A set that has a limited, countable number of elements. The process of counting its elements would eventually come to an end. The set of days in a week, {Monday, Tuesday, ... Sunday}, is a finite set.
  • Infinite Set: A set that has an unlimited number of elements. You could never finish counting them. The set of all whole numbers, {0,1,2,3,...}, is an infinite set.
  • Empty Set (or Null Set): This is a special set that contains no elements at all. It is denoted by the symbol or by empty curly braces {}. For example, the set of dogs that can fly is the empty set.
  • Universal Set: This is the set of all possible elements relevant to a particular problem or context. It is denoted by the letter U. For example, if we are discussing sets of single-digit numbers, our universal set might be U={0,1,2,3,4,5,6,7,8,9}. The universal set provides the boundaries for our discussion.

The number of distinct elements in a finite set is called its cardinality. The cardinality of a set A is written as n(A) or |A|. For example, if A={1,2,3,4,5}, then |A|=5.

Summary of Set Types

Type of SetDescriptionExample
Finite SetContains a countable number of elements.A={a,b,c}, |A|=3
Infinite SetContains an endless number of elements.N={1,2,3,...}
Empty SetContains no elements. or {}
Universal SetContains all elements for a given context.If discussing vowels, U={a,e,i,o,u}

What Are Subsets and Proper Subsets?

Often, we need to talk about sets that are contained within other sets. This is where the idea of a subset comes in.

A set A is a subset of a set B if every element of A is also an element of B. We use the symbol to denote this relationship. We write AB.

For example, if A={1,3} and B={1,2,3,4}, then AB because both 1 and 3 are in set B. However, B is not a subset of A (written BA) because 2 and 4 are in B but not in A.

Two important rules for subsets:

  1. Every set is a subset of itself (e.g., AA).
  2. The empty set is a subset of every set (e.g., A).

A set A is a proper subset of a set B if A is a subset of B, but A is not equal to B. This means B must contain at least one element that is not in A. We use the symbol to denote a proper subset. We write AB.

Using our example above, {1,3}{1,2,3,4} because it's a subset and it's not equal to the larger set. However, {1,2,3,4} is NOT a proper subset of {1,2,3,4}.

Example 1

List all possible subsets of the set C={apple, banana}.

Solution:
Let the number of elements in C be n. Here, n=2. The total number of subsets will be 2n=22=4. Let's list them systematically.

  1. Start with the subset that has no elements:
  2. List the subsets with one element: {apple}, {banana}
  3. List the subset with two elements: {apple, banana}

So, the four subsets of C are: ,{apple},{banana},{apple, banana}.
The proper subsets are: ,{apple},{banana}.

For a set with n elements, the total number of subsets is 2n.

How Do We Combine Sets? Union and Intersection

Just like we can add or multiply numbers, we can perform operations on sets. The two most common operations are union and intersection.

Union of Sets ( )

The union of two sets, A and B, is a new set that contains all the elements that are in set A, or in set B, or in both. The key word here is "OR". The symbol for union is . We read AB as "A union B".

AB={xxA or xB}

When you combine the sets, remember not to list any duplicate elements.

Intersection of Sets ( )

The intersection of two sets, A and B, is a new set that contains only the elements that are in BOTH set A and set B. The key word here is "AND". The symbol for intersection is . We read AB as "A intersection B".

AB={xxA and xB}

If two sets have no elements in common, their intersection is the empty set. Such sets are called disjoint sets.

Example 2

Let P={2,4,6,8,10} and Q={1,2,3,4,5}. Find PQ and PQ.

Solution:

To find the union (PQ):
We list every element from both sets, without repeating any. Start with the elements of P, then add any elements from Q that are not already listed.

PQ={2,4,6,8,10,1,3,5}

It's common practice to write the final set in numerical order:

PQ={1,2,3,4,5,6,8,10}

To find the intersection (PQ):
We look for the elements that appear in both sets.

  • Is 2 in both sets? Yes.
  • Is 4 in both sets? Yes.
  • Is 6 in both sets? No.
  • Is 8 in both sets? No.
  • Is 10 in both sets? No.

The only common elements are 2 and 4.

PQ={2,4}
Key formulas for sets by Algebra911.
Key formulas for sets by Algebra911.

What Is the Difference of Sets and the Complement?

Besides combining sets, we can also talk about what's left over after taking elements away. This leads to the operations of difference and complement.

Difference of Sets ( AB )

The difference between two sets, written as AB, is the set of all elements that are in set A but are NOT in set B. Think of it as starting with set A and removing everything that is also in B.

AB={xxA and xB}

Note that AB is generally not the same as BA. The order matters!

Complement of a Set ( A )

The complement of a set A, denoted as A or Ac, is the set of all elements in the universal set U that are NOT in set A. To find the complement, you must know what the universal set U is for that problem.

A=UA

Essentially, the complement is everything *outside* of set A.

Example 3

Let the universal set be U={1,2,3,4,5,6,7,8,9,10}.
Let A={1,3,5,7,9} (the odd numbers) and B={1,2,3,4,5}.
Find: (a) AB, (b) BA, and (c) A.

Solution:

(a) Find AB:
We start with all elements of A and remove any that are also in B.
A={1,3,5,7,9}
The elements of A that are also in B are {1,3,5}. Removing them leaves us with:

AB={7,9}

(b) Find BA:
We start with all elements of B and remove any that are also in A.
B={1,2,3,4,5}
The elements of B that are also in A are {1,3,5}. Removing them leaves us with:

BA={2,4}

(c) Find A:
The complement of A is everything in the universal set U that is not in A.
U={1,2,3,4,5,6,7,8,9,10}
A={1,3,5,7,9}
So, A contains all the elements of U that are not odd. These are the even numbers.

A={2,4,6,8,10}

Common Mistakes to Avoid with Sets

As you get comfortable with sets, it's easy to fall into a few common traps. Keep an eye out for these potential mistakes:

  • Confusing and {}: The symbol represents the empty set—a set with zero elements. The notation {} represents a set that contains one element, and that element happens to be the empty set. They are not the same.
  • Repeating Elements: Remember that elements in a set are distinct. Writing {a,b,b,c} is incorrect; it should simply be {a,b,c}. The repetition is ignored.
  • Mixing Up Subset Symbols: The symbol means "is a subset of" (and could be equal), while means "is a proper subset of" (and cannot be equal). Be precise with your notation.
  • Confusing Union and Intersection: A simple way to remember is that Union starts with 'U' and its symbol looks like a 'U'. Intersection's symbol looks like an 'n', as in 'and'—it contains elements in set A and set B.
  • Forgetting the Empty Set is a Subset: It's a fundamental rule that is easy to forget when listing all subsets of a set. The empty set is a subset of every single set.
  • Confusing Element and Subset: The symbol is used for elements, while is for subsets. For the set A={5,6}, it is correct to say 5A and {5}A, but it is incorrect to say 5A or {5}A.

Quick Reference Summary

Here is a quick summary table of the key terms and symbols covered in this lesson. Use it as a handy reference as you practice working with sets.

TermSymbolMeaning
Set{...}A well-defined collection of distinct objects.
Element / An object within a set. aA means 'a is an element of A'.
Cardinality|A| or n(A)The number of elements in a set.
Empty Set or {}A set with no elements.
Universal SetUThe set of all possible elements for a given context.
SubsetEvery element of the first set is also in the second set.
Proper SubsetA subset that is not equal to the original set.
UnionCombines all elements from two or more sets (OR).
IntersectionFinds elements common to two or more sets (AND).
DifferenceABElements in A but not in B.
ComplementA or AcElements in the universal set U but not in A.

Frequently Asked Questions

What is the difference between an element and a subset?

An element is a single object within a set. A subset is a set containing some (or all) of the elements from another set. For A={1,2}, 1 is an element, while {1} is a subset.

Why is the empty set a subset of every set?

A set A is a subset of B if there are no elements in A that are not in B. Since the empty set has no elements, it's impossible to find an element in that isn't in another set, so the condition is always met.

Is the order of elements in a set important?

No, the order of elements in a set does not matter. The set {a,b,c} is exactly the same as the set {c,a,b}. What matters is only which elements are included.

What does 'well-defined' mean for a set?

A set is well-defined if you can definitively say whether any given object is an element of the set or not. 'The set of tasty fruits' is not well-defined because 'tasty' is an opinion, but 'the set of fruits that are red' is well-defined.

What is the cardinality of a set?

The cardinality of a set is simply the number of distinct elements it contains. It is denoted by n(A) or |A|. For example, the cardinality of the set B={2,4,6,8} is 4.

What's the difference between union (∪) and intersection (∩)?

The union of two sets includes all elements from both sets combined (think 'OR'). The intersection includes only the elements that the two sets have in common (think 'AND').

Is {0} the same as the empty set?

No, they are different. The empty set, or {}, has zero elements. The set {0} is a set that contains one element, and that element is the number 0.

Can a set contain another set as an element?

Yes, absolutely. A set can contain any type of object, including other sets. For example, S={1,2,{3,4}} is a valid set with three elements: the number 1, the number 2, and the set {3,4}.