Both versions name the same set. Everything else in the notation (membership, subsets, unions, intervals) is a short list of symbols that describe how sets relate. Each symbol below is tied to an idea you can test, along with the traps that cost the most points.
What does set notation mean and how do you read it?
A set is a collection of distinct objects, and the braces say “gather these.” Order carries no information and repeats add nothing, so , and are one and the same set. That separates a set from an ordered pair or a sequence, where and are different. By convention, capital letters name sets and lowercase letters name elements, as in .
The symbols you need first:
- means 2 is an element of , and means 5 is not.
- or is the number of distinct elements, called the cardinality. Here .
- or is the empty set, with no elements.
- is the universal set, everything under discussion.
- , , , are the natural numbers, integers, rationals and reals.
Textbooks disagree on whether starts at 0 or 1, and it changes answers. The set is in one convention and in the other, so check which one your course uses.
Elements can themselves be sets. The set has two elements, the number 1 and the set , not three. A Venn diagram draws a set as a region, which is a useful way to see all of this before the symbols get heavier.
Quick check
Answer:
Roster form vs set-builder notation: how do you convert?
Roster form lists the elements. Set-builder notation states a rule, and it has three parts: a variable, a separator (a vertical bar or a colon, both meaning “such that”), and a condition. A domain such as usually sits before the bar.
The domain is the part students drop, and it changes the set. The set has infinitely many elements if is real, such as and , but no elements at all if must be an integer. Without a stated domain, the notation is ambiguous.
Going from a list to a rule means spotting the pattern. For , the elements are for to , so works. Going the other way, expressions can appear left of the bar, which is where repeats sneak in.
Worked example. Write in roster form.
- List the allowed values of : .
- Square each one: .
- Remove repeats, since a set lists each element once.
The set has 3 elements, not 5. Squaring sends both and to 4, and both and to 1.
Inequalities in set notation and interval notation
Interval notation is a compact way to write a set of real numbers that forms an unbroken stretch of the number line. A parenthesis excludes an endpoint and a square bracket includes it. Infinity is not a number you can reach, so it always gets a parenthesis.
| Set-builder | Interval | Number line |
|---|---|---|
| open dot at 3, arrow right | ||
| closed dot at 3, arrow right | ||
| open at , closed at 4 | ||
| everything except 2 |
One trap: is also how an ordered pair is written. Context decides, and a quick glance at whether the problem is about points or about solutions usually settles it.
The same idea describes geometry. The set of acute angles is , which is the interval , and a right angle is the single-element set . The types of angles are really named intervals. Domains work the same way: since the input of a log must be positive, the domain of is , a fact the logarithm rules rely on constantly.
Worked example. Solve and write the answer in set notation.
- Subtract 5 from both sides: .
- Divide by and flip the inequality: .
- Write the set: .
Check: gives , which is true, and gives , which is false.
Try this: Write the set of all with in both set-builder and interval notation. Then test , and to see which endpoints belong.
Element of or subset of: what is the difference?
The symbol connects a thing to a set. The symbol connects a set to a set. With , the statements and are true, while is meaningless and is false. A quick test: if the left side is a set, use , and if it is a single object, use .
Sets can be elements of other sets, which is the only time a set belongs after . For , the statement is true because that set is one of the two elements of .
Each of the elements is either in a subset or out, two choices each, so there are subsets. The set has of them, including and the set itself, and are proper.
The empty set is a subset of every set. To fail there would have to be an element of missing from , and has no elements to be missing. Also keep and apart: the first is an empty box, the second is a box holding an empty box, so but .
A proper subset is written and means with . Some books use for a plain subset and others use it for proper, so match your course.
Quick check
Answer: False
Union, intersection and complement in set notation

Four operations cover most problems. The union collects everything in either set. The intersection keeps what is in both. The difference keeps what is in but not in . The complement (also written ) is everything in the universal set that is not in . For worked cases beyond these, see union and intersection of sets.
The complement is the only operation that cannot be computed without a universe. Asking for without has no answer, because “not in ” could mean anything.
Worked example. Let , and . Find , , , and test the counting rule.
- Union: .
- Intersection: .
- Difference: .
- Complement of the union: .
The counting rule says the overlap is counted twice if the sizes are simply added:
That matches the 8 elements in step 1. De Morgan’s law also checks out: and , and , the same as .
One habit prevents a common slip: the union symbol is a rounded cup, while is the universal set. In handwriting the two look alike, so write the universal set as with a serif or say it aloud.
How does set notation connect to logic?
Every set operation is a logical connective in disguise. Membership in means AND . Membership in means OR , with “or” being inclusive. Membership in means NOT . The truth tables for the five logical connectives are the same information as the Venn diagram regions.
Subset is an implication. The statement says: if then . So the contrapositive must also be true: if then , which is . For example, the multiples of 6 are a subset of the multiples of 3. The converse fails, since 9 is a multiple of 3 but not of 6.
To show , prove and . One direction alone proves only containment.
That two-direction requirement is a biconditional statement in set form: if and only if . It is also why De Morgan’s laws for sets and for logic are the same law: “not (P or Q)” matches “not P and not Q” exactly as .
How do you write a solution set in set notation?
A solution set collects every value that makes a statement true, and the domain you solve over changes the answer. Over the reals, factors as , so the solution set is . For , the real solution set is , but over the complex numbers it is . The discriminant, which the quadratic formula practice problems use, tells you whether the real solution set has two elements, one or none.
Inequalities give intervals. For , the parabola opens upward and crosses zero at 2 and 3, so it is negative between them:
A quick check: gives , which is negative.
Graphs are sets too. A line like is the set , and its form is explored in slope-intercept form. Solving a system is then intersecting two such sets. For and , set the right sides equal: , so and , then . The intersection is the single-element set . Parallel lines would give .
Quick check
Answer:
How can you check an answer written in set notation?
Four quick tests catch nearly every error:
- Read it aloud. Translate the symbols into “the set of all … such that …” and see whether it matches the question.
- Test the boundary. Plug each endpoint into the original statement to decide between a bracket and a parenthesis.
- Test one member and one non-member. A value inside should satisfy the original condition, and a value outside should fail it.
- Count. For two finite sets, compare with .
The boundary test is the fastest fix for the most common lost point. For , the endpoints are the roots and . Plugging in gives , and is true, so the endpoint stays in: . With a strict inequality , the same plug-in gives , which is false, so the interval would be open.
Also check that the notation itself is legal. Braces belong around sets, so is correct for a list of solutions, but alone is not a set. And a stray repeat like is not wrong, only redundant, but counting it as four elements is.
Where is set notation used in real problems?
Probability is built on it. Rolling a die has sample space . The event “roll an even number” is , and when outcomes are equally likely:
Events combine with the same operations: “even or greater than 4” is a union, and “even and greater than 4” is an intersection.
Databases use the same ideas. A table is a set of rows, and the SQL commands UNION and INTERSECT do exactly what and do, including removing duplicate rows. Programming languages such as Python have a built-in set type where order is ignored and repeats collapse, matching the rules from the first section.
In algebra, the notation shows up whenever a function’s domain and range are stated, for example for . Reading that line aloud is all it takes: every real number except zero.
Practice problems
0 of 5 solved
- Write in roster form.
Answer:
The domain is the integers, so only whole numbers count. must be greater than , so is excluded. may equal , so is included. The list is . - Write in set-builder notation.
Answer:
The interval runs from negative infinity up to . The square bracket means is included, so the rule is . State the domain: . - Let and . Find and .
Answer: and
The union collects every element from either set, listing repeats once: . The intersection keeps only shared elements: and . Check: elements in the union. - Let , and . Find .
Answer:
, so . Also . The elements in both and are and . - Solve and write the answer in set-builder and interval notation.
Answer:
Factor: , with roots and . The parabola opens upward, so it is at or below zero between the roots. The endpoints are included because of , giving . Test : is true.
Common questions
What does the symbol ∈ mean in set notation?
The symbol means 'is an element of'. Writing says that 5 is one of the members of set , and says it is not.
How do you read {x | x > 3}?
Read it as 'the set of all such that is greater than 3'. The vertical bar means 'such that', and it is the same as a colon in . In interval notation the same set is .
What is the difference between roster form and set-builder notation?
Roster form lists every element, as in . Set-builder notation states a rule that decides membership, as in . Set-builder is the only practical choice for large or infinite sets.
Does the order of elements matter in a set?
No. and are the same set, and repeating an element changes nothing. Order does matter in ordered pairs and sequences, which use parentheses instead of braces.
What is the symbol for the empty set?
The empty set is written or . It has no elements and is a subset of every set. Do not confuse it with , which has one element.
What is the difference between a subset and a proper subset?
A subset allows to equal . A proper subset requires to contain at least one element that lacks. Some textbooks write for either one, so check which meaning your course uses.