A set is a collection of distinct objects, called its elements. A set is completely determined by which objects belong to it: neither the order in which the elements are listed nor any repetition in the list makes any difference.
Quick Reference
| Symbol | Read as | Meaning |
|---|---|---|
| "the set whose elements are , , " | Roster (list) form | |
| "the set of all such that " | Set-builder form | |
| " belongs to " | is an element of | |
| " is not in " | is not an element of | |
| " is a subset of " | Every element of is an element of | |
| " equals " | and | |
| "the empty set" | The set with no elements | |
| "the universal set" | All objects under discussion | |
| " union " | ||
| " intersection " | ||
| (or ) | " minus " |
Concepts and Notations
In mathematics, the words "collection", "class", or "set" are interchangeable. However, the word "set" is most commonly used.
- A "set" is a gathering or collection of distinct objects, which are called elements (or members) of the set.
- The number of elements can be finite, infinite, or even none.
- Sets are usually designated by upper-case letters and elements by lower-case letters .
- A simple way to specify a set is to list its elements (when it is possible). To this end, we put the elements inside a pair of braces (curly brackets) . For example is a set whose elements are 1, and 0. This way of writing a set is called the roster form or list form.
- Sometimes when writing all the elements of a set is not feasible, we may skip some of the elements and replace them by ellipsis. For example, to show the set of positive integers from 1 to 50, we can write .
- The ellipsis is used only when the elements follow a pattern that can be clearly understood from the first few elements.
- If there are no elements after the ellipsis, it is assumed that the pattern continues forever. For example the set written as contains all positive integers. To show that the elements of a set go on forever in both directions, we may use the ellipsis at both ends. For example, the set of all integers (positive, negative and zero) may be displayed as
- Changing the order of the elements or repeating the elements does NOT change the set. Therefore the set is the same as .
- When the object is an element of the set , we writeAlternatively we can say " is in ", " belongs to ", or " contains ". When is not an element of , we writeFor example, let . Here is a set whose elements are 1, 2, and 3. In this example, but .
Write in roster form the set of all distinct letters appearing in the word MISSISSIPPI.
Solution
Reading the word from left to right, the letters that occur are M, I, S, S, I, S, S, I, P, P, I. A set is not changed by repeating an element, so each letter needs to be recorded only once:
The set has four elements, even though the word has eleven letters. Because order does not matter either, is the same set.
Subsets
We say a set is a subset of a set , and we write
if every element of also belongs to . In other words, for every
We can also say " contains " or " is contained in ."
For example, if , , and then
because every element of is also an element of , but is not a subset of
because but .
Keep the two symbols and apart. The symbol relates an object to a set, while relates a set to a set. If , then is correct and is correct, but and are both wrong.
Let . Decide whether each statement is true or false.
(a)
(b)
(c)
(d)
(e)
(f)
Solution
First read off the elements of . There are four of them, and two of them happen to be sets themselves:
(a) True. The number appears in the list of elements.
(b) False. The number is not in the list. What is in the list is the set , which is a box containing , not the number itself.
(c) True. The set is one of the four elements.
(d) False. To say means every element of belongs to . The only element of is , and by part (b) .
(e) True. The only element of is , and by part (a).
(f) False. The elements of are and , and neither is an element of . The correct statement here is .
Parts (c) and (d) together, and parts (e) and (f) together, are the two traps worth remembering.
Equality
Two sets and are called "equal" or "identical", and we write , if they consist of exactly the same elements.
- If two sets and are equal then and . If and , then . That is,
This equivalence is the standard way of proving that two sets are equal: show that each is a subset of the other. It is called the double inclusion method, and it turns one equality into two subset statements, each of which is proved by taking an arbitrary element of one set and showing it lies in the other.
Universal Set
A set that contains all the elements that we want to consider for now is called the "universal set", usually denoted by (or in some books by ). For example, we might say that the universal set is the set of all real numbers or the set of all integers.
The universal set is also called the domain of discourse or the universe of discourse. The universal set may vary from one application to another.
In elementary calculus, the universal set is assumed to be the set of all real numbers unless otherwise stated.
Set Builder Notation
When listing of all elements of a set is not possible, we can specify the set by describing a property common to the elements in the set and only to those elements. For example:
set of all numbers which are positive odd integers
or
set of all real numbers for which .
When we want to describe a set in this way, we can use set-builder notation. The general form of set-builder notation is
that designates the set of all elements in for which the property is satisfied. The vertical bar which can also be written as a colon ":" is a separator that is used in place of "such that."
In calculus the universal set when not specified is assumed to be the set of real numbers, so we may omit the reference to and simply write
For example,
means the set of all real numbers which are greater than 1 but less than 2.
means the set of all numbers for which .
In the above examples, is a "variable". A variable is a symbol that represents any element of a given set.
Because it does not matter which symbol we use to represent the elements of a set, the letter is a dummy and can be replaced by any other symbol. Thus we may write
Write each set in roster form.
(a)
(b)
Solution
(a) The condition restricts to integers, so only integers are candidates, and they must satisfy . Testing integers outward from : , , , , all less than , while , which is not. Since squaring makes larger integers larger still, nothing beyond can work. Hence
(c) The condition is . Squaring a positive number gives a positive number, squaring a negative number also gives a positive number, and , so no number on the number line has a negative square. The set has no elements:
Part (c) is a reminder that a perfectly sensible description may describe nothing at all. The universal set matters here: had we allowed complex numbers, the answer would have been .
Empty Set or Void Set
A set is empty if it has no elements. The empty set or void set is denoted by
- Note that a box that contains only an empty box is not empty. Similarly is not an empty set, because it has one element: .
- For every set :
Why is true for every set ? To fail, there would have to be an element of that does not belong to . The empty set has no elements at all, so no such element can be produced, and the requirement is satisfied by default. A statement that holds for this reason is said to be vacuously true.
Venn Diagrams
Venn diagrams, introduced by the English mathematician John Venn, are useful for visualizing sets and relations between them. In a Venn diagram, we represent a set as a region, often a disk, in the plane and its elements as points. The universal set, conventionally represented by a rectangle, is the outermost shape. If two regions overlap, it means that the two corresponding sets have some elements in common. The following Venn diagrams illustrate the relations we have discussed so far.




Union
If and are two sets, the union of and , written as is the set that contains all elements of and ; that is, a set whose elements belong to or or both
In the following figure, the shaded portion represents .

The word "or" here is the inclusive or of mathematics: an element that lies in both sets still belongs to the union. It is listed only once, since repetition does not change a set.
Intersection
The intersection of two sets, and , is the set whose elements belong to both and to . The intersection of and is denoted by :
In the following figure, the shaded portion represents .

Two sets with no element in common, so that , are called disjoint. In a Venn diagram, disjoint sets are drawn as two regions that do not overlap.
The two operations sit either side of every set. For any sets and ,
Intersecting can only make a set smaller or leave it unchanged, and taking a union can only make it larger or leave it unchanged.
Set Difference
Let and be two sets. The difference is the set of all elements in that are not in :
In the following, the shaded portion in the first figure represents and that of the second figure represents .
- Some books use a backslash and write to emphasize that the operation of set difference is different from the ordinary idea of subtraction.
- Unlike union and intersection, the difference depends on the order: in general and are different sets.


Given and . Find , , , and .
Solution
Let , let be the set of even numbers in , and let . Find , , , , and .
Solution
Write each set in roster form first:
Intersection. The numbers that are even and greater than are and :
Difference. Remove from everything that is also in , that is, remove and :
Union, and what is left of . Collecting the elements of and of , listing each once,
so what is left of is
These leftovers are the odd numbers that are at most , which is exactly what "not even and not greater than " should mean.
Exercises
Write each set in roster form.
(a) the set of distinct letters in the word ALGEBRA
(b)
(c) the set of positive odd integers less than
Answer
(a) (b) (c)
Solution
(a) The letters of ALGEBRA in order are A, L, G, E, B, R, A. The letter A occurs twice, but repeating an element does not change a set, so it is written once:
Six elements, from a seven-letter word.
(b) The description restricts to integers, so only whole numbers, positive, negative or zero, qualify. The condition uses one weak inequality and one strict inequality: is included because of the , and is excluded because of the . Walking up from :
(c) The odd positive integers are , and the condition "less than " stops the list at :
Note that , so is included; there is no odd integer between and .
Write each set using set-builder notation.
(a) all real numbers greater than and at most
(b)
(c) all real numbers whose square is
Answer
(a) (b) , or (c)
Solution
(a) Two conditions must hold at once, and they can be combined into a double inequality. "Greater than " is strict, so use ; "at most " allows itself, so use :
Since no universal set is named, ranges over the real numbers, as agreed in this section.
(b) The pattern is the positive even numbers. One way is to state the property directly,
and another is to build the elements from a parameter,
read as "the set of all numbers of the form where is a positive integer." Both describe the same set, and either is acceptable.
(c) The property is "the square equals ":
In roster form this is . Writing would be wrong, since as well.
Let . Mark each statement true or false.
(a)
(b)
(c)
(d)
(e)
(f)
Answer
(a) True (b) False (c) False (d) True (e) False (f) True
Solution
The four elements of are
(a) True. The number is on the list.
(b) False. The number is not on the list. The set is, and a set is not the same thing as the object inside it.
(c) False. The claim means every element of lies in . The only element of is , and by (b) it does not. What is true here is .
(d) True. The elements of number exactly one, namely , and is an element of . So the inclusion holds. Comparing (c) and (d) is the whole point of this exercise: adding a pair of braces converts a true membership statement into a true subset statement.
(e) False. The elements of are and , and neither is an element of . Again the true statement is .
(f) True. The empty set is a subset of every set, vacuously: there is no element of that could fail to lie in .
How many elements does each of the following sets have?
(a)
(b)
(c)
(d)
Also decide whether and whether .
Answer
(a) (b) (c) (d) . is false; is true.
Solution
Count what sits between the outermost braces, treating each inner set as a single object.
(a) has nothing between its braces, so it has elements.
(b) has one thing between its braces, namely . So it has element and is therefore not empty. This is the point made in the section with the boxes: a box containing an empty box is not itself empty.
(c) lists two objects, and , and they are different from each other by (a) and (b). So it has elements.
(d) has one element, the number . Do not confuse the number zero with the empty set; is a set with one element, while has none.
Is ? No. Membership in would require to have at least one element, and it has none.
Is ? Yes. Every set is a subset of itself, and in any case the empty set is a subset of every set.
Let , and . Find
(a)
(b)
(c)
(d)
(e)
(f)
Answer
(a) (b) (c) (d) (e) (f)
Solution
(a) Union. Collect everything that appears in or in , writing each element once:
The elements and belong to both sets but are listed a single time.
(b) Intersection. Keep only what appears in both lists. Scanning : is in , is in , and are not. So
(c) . Start with and delete anything that also lies in , that is, delete and :
(d) . Start with this time and delete and :
Comparing (c) and (d) shows clearly that set difference is not symmetric.
(e) . Every element of is even and every element of is odd, so no number can be in both:
The sets and are disjoint.
(f) . Work inside the parentheses first, using (b):
It is customary, though not required, to list the elements in increasing order.
Let , and . Verify by direct computation that
and
Answer
Both sides of the first identity equal ; both sides of the second equal .
Solution
First identity, left side. Inside the parentheses,
and intersecting with keeps only and :
First identity, right side. Compute each intersection separately,
and take their union:
The two sides agree.
Second identity, left side. Inside the parentheses,
so
Second identity, right side. Compute each union,
and intersect them. Every element of the first list also appears in the second, so the intersection is the first list itself:
The two sides agree again. These two rules are the distributive laws for sets: intersection distributes over union, and union distributes over intersection. Checking one numerical case does not prove them in general, but it does make them easy to remember.
With and , compute and . What do you observe?
Answer
Both equal . This common value is called the symmetric difference of and .
Solution
First expression. Removing from what it shares with , and then removing from what it shares with ,
so
Second expression. The union and the intersection are
and deleting the second from the first leaves
Observation. The two results are the same. Both describe the elements that belong to exactly one of the two sets, that is, to one of them but not to both. This set is called the symmetric difference of and , often written . On a Venn diagram it is the whole of both circles with the overlapping lens removed.
List all subsets of . How many are there? How many subsets does a set with elements have?
Answer
; there are of them, and a set with elements has subsets.
Solution
Organise the list by the number of elements, which guarantees that none is missed and none is repeated.
- No elements: . That is subset.
- One element: , , . That is subsets.
- Two elements: , , . That is subsets.
- Three elements: , the whole set itself. That is subset.
Altogether subsets. Two of them are easy to forget: the empty set, which is a subset of every set, and itself, since .
The general count. Building a subset amounts to making one independent decision per element of : put it in, or leave it out. With elements there are such decisions, each with outcomes, so the number of subsets is
For this gives , matching the list. The collection of all subsets of is called the power set of .
Let and be any sets. Prove that and .
Answer
Both follow directly from the definitions of intersection and union.
Solution
First claim: . By the definition of subset, we must show that every element of is an element of . So let be an arbitrary element of . By the definition of intersection,
In particular , which is what had to be shown. Since was arbitrary, .
Second claim: . Let be an arbitrary element of . By the definition of union,
and the first alternative already holds. Hence , and since was arbitrary, .
Putting the two together gives the chain
and by the same argument with the roles of and exchanged, as well. Both proofs are short because each amounts to reading the definition and keeping only the part that is needed: "and" gives away either half, while "or" is satisfied by either half.
In a class of 30 students, 18 study mathematics, 15 study physics, and 7 study both. How many study at least one of the two subjects, and how many study neither?
Answer
study at least one subject; study neither.
Solution
Let be the set of all students, the set of those studying mathematics and the set of those studying physics. The data are
where denotes the number of elements of .
At least one subject. "At least one" is the union . Adding and counts the students who take both subjects twice, once in each total, so subtract that overlap once:
To find we have to subtract from , to avoid double counting those who study both. This is called the inclusion-exclusion principle for two sets.
Neither subject. These students form , everything in the class outside the union:
A check with the four Venn regions. Mathematics only: . Physics only: . Both: . Neither: . The four counts add to , the size of the class, so nothing has been double counted or lost.
Decide whether each statement is true for all sets and . If it is false, give a counterexample.
(a) If then .
(b) .
(c) If then or .
(d) .
Answer
(a) True (b) False (c) False (d) True
Solution
(a) True. Suppose . Every element of lies in , so . Conversely, if then as well, because ; so lies in both sets, that is, . Hence . Both inclusions give .
(b) False. Take and . Then
and these are different sets. The two differences are equal only in the special case , when both are .
(c) False. Disjoint sets need not be empty. Take and . Then , yet neither set is empty. The statement confuses sets with numbers: for numbers, does force or , but there is no analogous rule for sets.
(d) True. By definition, means or . The second alternative is impossible, so the condition reduces to . Hence the two sets have exactly the same elements. The empty set plays the same role for union that plays for addition.
Frequently Asked Questions
What exactly is a set in mathematics?
A set is a collection of distinct objects, called its elements or members. The collection may be finite, infinite, or empty. A set is determined entirely by which objects belong to it, so , and are all the same set: neither the order of the listing nor any repetition has any effect.
What is the difference between and ?
The symbol connects an object to a set, and connects a set to a set. If , then says the number is one of the things listed in , while says the set has all of its elements inside . Both are true. By contrast, and are both false, because is not a set and is not one of the three things listed in .
Is the empty set really a subset of every set?
Yes. For to fail, there would have to be some element of that does not belong to . The empty set has no elements, so no such element can be produced and the requirement holds by default. Statements true for this reason are called vacuously true. Note also that and are different: the first has no elements, the second has exactly one, namely .
How do I read set-builder notation aloud?
Read the vertical bar (or colon) as "such that". So is read "the set of all such that is greater than and less than ", and is read "the set of all such that is an integer and squared is less than ". The letter is a dummy: replacing it throughout by or any other symbol gives the same set.
What is the difference between union and intersection?
The union collects everything in either set, so it is at least as large as each of them. The intersection keeps only what is in both, so it is at most as large as each of them. In symbols, . A memory aid: the "or" of union is inclusive, so an element in both sets still belongs to the union, and it is written only once.
Why is not the same as ?
The difference starts from and removes whatever it shares with , so its elements all come from . Reversing the order starts from instead. With and we get but . Union and intersection are unaffected by order, but difference is not, which is one reason some books write to keep it visually distinct from ordinary subtraction.
What does it mean for two sets to be equal, and how do I prove it?
Two sets are equal when they have exactly the same elements. The standard proof technique is double inclusion: show and , and conclude . Each half is proved the same way, by taking an arbitrary element of one set and showing it must lie in the other. Both halves are needed, and the one showing that no extra elements sneak in is the one more often forgotten.