Set Notation

Learn how to write and read sets using mathematical notation, including roster form and set-builder notation.

Intermediate25 minLesson

Definition

A set is a collection of distinct objects called elements or members. Sets are written using curly braces { }.

Roster Form (List Notation)

Roster form lists all elements inside curly braces, separated by commas:
A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}

Set-Builder Notation

Set-builder notation describes the properties that elements must have:
B={x∣x is an even number less than 10}B = \{x \mid x \text{ is an even number less than 10}\}
This reads: "B is the set of all xx such that xx is an even number less than 10."
So B={2,4,6,8}B = \{2, 4, 6, 8\}

Key Symbols

SymbolMeaningExample
{}\{\}Set braces{a,b,c}\{a, b, c\}
∈\inIs an element of3∈{1,2,3}3 \in \{1, 2, 3\}
∉\notinIs not an element of5∉{1,2,3}5 \notin \{1, 2, 3\}
∣\mid or ::Such that{x∣x>0}\{x \mid x > 0\}
∅\emptyset or {}\{\}Empty setA set with no elements
N\mathbb{N}Natural numbers{1,2,3,...}\{1, 2, 3, ...\}
Z\mathbb{Z}Integers{...,−2,−1,0,1,2,...}\{..., -2, -1, 0, 1, 2, ...\}

Try it now

Which of the following is a correct way to write a set?

Worked Examples

Write the set of vowels in the English alphabet.

1

Identify the vowels

The vowels are: a, e, i, o, u → 5 elements

2

Use curly braces

Place the vowels inside { } → {a,e,i,o,u}\{a, e, i, o, u\}

3

Check for duplicates

Each vowel appears once → No duplicates

Common Mistakes

Writing repeated elements: {1,2,2,3}\{1, 2, 2, 3\}

Why it's wrong: Sets contain unique elements only. Listing 2 twice does not add it again.

Correct: Write each element once: {1,2,3}\{1, 2, 3\}

Confusing {0}\{0\} with ∅\emptyset

Why it's wrong: {0}\{0\} is a set containing the number zero (1 element). ∅\emptyset is the empty set (0 elements).

Correct: {0}\{0\} has one element (zero); ∅\emptyset or {}\{\} has no elements

Using wrong brackets: (1,2,3)(1, 2, 3) or [1,2,3][1, 2, 3]

Why it's wrong: Parentheses are for ordered pairs/tuples. Square brackets are for intervals. Sets use curly braces.

Correct: Always use curly braces for sets: {1,2,3}\{1, 2, 3\}

Order matters: thinking {1,2,3}≠{3,2,1}\{1, 2, 3\} \ne \{3, 2, 1\}

Why it's wrong: Sets are unordered collections. Only the elements matter, not their arrangement.

Correct: {1,2,3}={3,2,1}={2,1,3}\{1, 2, 3\} = \{3, 2, 1\} = \{2, 1, 3\} are all the same set

Interactive Visual

Venn Diagram - GCF & LCM

Number A:
Number B:
121822, 33Only in ACommonOnly in B

Prime factors of 12:

223

Prime factors of 18:

233

GCF

6

2 × 3 = 6

LCM

36

2 × 2 × 3 × 3 = 36

How it works:

  • • GCF = product of common prime factors (center of diagram)
  • • LCM = product of all prime factors (entire diagram)

Enter two numbers to see their prime factorization in a Venn diagram.

Interactive Sandbox

Expression Calculator

Try these:

History

No calculations yet

Practice Problems

18 problems
Problem 1 of 18
Easy

Which of the following is a correct way to write a set?

Why It Matters

Set notation is the foundation of modern mathematics and has practical applications everywhere:
  • Computer Science: Databases use sets to store and query unique records. Search engines use set operations to combine results.
  • Statistics: Sample spaces, events, and probability all use set theory.
  • Logic: Venn diagrams represent sets visually to solve logical problems.
  • Everyday Life: Organizing playlists (set of songs), sports teams (set of players), or social media followers (set of users).
Understanding set notation prepares you for advanced math, computer programming, and data science!

Real World Applications

Database Queries

When you search on an e-commerce website, the system uses sets. Searching for 'blue shirts' returns the set of blue items intersected with the set of shirts.

Example:

If A={blue items}A = \{\text{blue items}\} and B={shirts}B = \{\text{shirts}\}, your search result is A∩BA \cap B (items that are both blue AND shirts).

Social Media

Your followers list is a set of users. Set operations help platforms suggest mutual friends.

Example:

If A={your friends}A = \{\text{your friends}\} and B={their friends}B = \{\text{their friends}\}, then A∩BA \cap B shows mutual friends.

Genetics and Biology

Scientists use sets to classify organisms. Each species belongs to sets representing genus, family, order, and kingdom.

Example:

The set of mammals intersected with the set of aquatic animals gives us marine mammals like dolphins and whales.

Key Takeaways

  • 1A set is a collection of distinct elements written in curly braces: {1,2,3}\{1, 2, 3\}
  • 2Roster form lists all elements: A={a,e,i,o,u}A = \{a, e, i, o, u\}
  • 3Set-builder notation describes properties: {x∣x>0}\{x \mid x > 0\}
  • 4The symbol ∈\in means 'is an element of' and ∉\notin means 'is not an element of'
  • 5The empty set ∅\emptyset or {}\{\} contains no elements
  • 6Order does not matter in sets, and elements cannot repeat

Frequently Asked Questions

{1,2,3}\{1, 2, 3\} is a set where order does not matter and elements are unique. (1,2,3)(1, 2, 3) is an ordered triple or tuple where position matters and repetition is allowed.
{1,2,3}\{1, 2, 3\} is a set where order does not matter and elements are unique. (1,2,3)(1, 2, 3) is an ordered triple or tuple where position matters and repetition is allowed.
Yes! A set can contain numbers, letters, or even other sets. For example: {1,a,{2,b}}\{1, a, \{2, b\}\} is a valid set with three elements.
Yes! The empty set ∅\emptyset is a subset of every set, including itself. This is because there are no elements in ∅\emptyset that could violate the subset condition.

Glossary

Set
A collection of distinct objects called elements or members
Element
An object that belongs to a set, also called a member
Roster form
Writing a set by listing all its elements inside curly braces
Set-builder notation
Describing a set by stating the properties its elements must satisfy
Empty set
A set with no elements, written as ∅\emptyset or {}\{\}
Cardinality
The number of elements in a set, written as ∣A∣|A|

More in This Topic