Interactive · 5 questions
Set-Builder Notation
Sometimes, we use roster form to describe sets. When we use roster form (or roster method), we simply list, or enumerate, each element of the set within a set of curly braces. For example, the following set is in roster form:
But what if we had a really big set—one with a large number of elements that all share a certain property? For example, what if we wanted to describe the set of integers from to inclusive? That's a lot of numbers, and it would take a while to write all of them out.
In this scenario, we might want to use set-builder notation. This means that instead of listing every single element of the set, we define the set based on conditions, (also called rules, properties, or predicates). So, if all members of your set meet a certain condition, set-builder notation may be the way to go.
Here's how it's set up:

Image source: by Caroline Kulczycky
Let's say our variable is In set-builder notation, we would write: or
This is the set of elements such that satisfies certain specified conditions. We will see examples of such conditions next.
Important note: We read the colon, or the bar, as "such that."
Let's revisit our set of integers from to All elements of this set meet the conditions that they are integers and they are between and inclusive. Thus, instead of describing this set in roster form, we can use set-builder notation like so:
This reads as " such that is an integer and is between and inclusive." Notice that this is more concise than writing out all the integers from and in the roster form of the set. However, sometimes it is easier to express a set in roster form, depending on the situation.
Expressing a Set using Set-Builder Notation
Is the following set described using set-builder notation?
Right! This set is in roster form because each element is listed separately. However, we can also describe this set with set-builder notation.
Describe the following set using set-builder notation.
The first thing we need to do is find conditions met by each element of the set. First, notice that all elements of are between and inclusive. Next notice that all of the elements of are integers. Now that we know the two necessary conditions elements in satisfy, we can write the set in set-builder notation.
First we write our curly brackets:
Next we write our variable, in this case let's say
Next we write a bar or a colon to separate the variable from the conditions. In this case, let's use a bar. Remember, the bar means "such that."
Finally, we include our two conditions on the right of the bar.
Many Ways to Express the Same Set
Let's do another example! This one is a little tricky.
Describe the following set using set-builder notation. Check all that apply.
As it turns out, there may be more than one way to describe a set using set-builder notation! Let's take a closer look at our set: Notice that and are all integers, so we will want to include that in our list of conditions. Also notice that each element of is between and inclusive, so we will also want to include that as a condition.
However, not all integers from to are included in this set. For example, is not in . So, we need another condition in our set-builder notation to make it clear that only consists of and
What do and all have in common? Well for one, they're all odd. But, if you think about it a little more, you can also see that they're all prime. and are the only odd numbers between and inclusive, and they are also the only prime numbers between and inclusive. Thus, our third condition in our set-builder notation will be either that the elements of are odd or the elements of are prime. (Saying both would be redundant.)
So, our set-builder notation for might look like either of these, if we want to be more wordy:
Or, it might look like either of these if we want to use more mathematical notation:
Example Problem
Describe the set of all numbers between and non-inclusive, using set-builder notation.
We are trying to describe the set of numbers between and non-inclusive, so one of our conditions will be Let's find another condition. We know we are including all numbers between and not just integers. For example, we can include in our set, even though it is not an integer. Thus, our other condition will be that is a real number, or
Putting everything together, we now can express the set using the following set-builder notation:
Extension of Set-Builder Notation
Sometimes, instead of a single variable before the condition, you will see a term that more closely resembles a function. For example, instead of you might see something like or the set of all perfect squares.
How do we know that is the set of perfect squares? First, we look at the conditions. Here, we can see that or is an integer. Then, we look at the term, or the function to the left of the condition. This represents the elements in our set. Here, our term is so our set consists of squares of integers.
Let's let equal some integers, and then see what happens when we square them. Remember, if we square a negative integer, we will get the same result as if we square its positive counterpart. Thus, the set of squares of integers looks like this:
Basically, with extended set-builder notation, you have to do an extra step and perform a function on your variable to find the elements of the set.
Example of Extended Set-Builder Notation
Express the following set in roster form:
Instead of a single variable in the left of the colon, we have a function Since we are dealing with extended set-builder notation, first look at the conditions. To find the elements of the set, we will perform the function on integers between and non-inclusive.
What integers are between and and of course! Now, all we have to is plug and into our function to find the elements of the set.
So, the elements of our set are and and out set in roster form is
Wrap-Up
The most important things to take away from this explanation are
- Set-builder notation looks like this:
- Set-builder notation is helpful when you want to describe elements of the set based on a rule or a condition, rather than listing each individual element.
- There may be more than one way to express a set using set-builder notation or extended set-builder notation.

