Solution Sets and Set-Builder Notation for Equations
Write answers as sets, read set-builder notation aloud, and see how the choice of number system changes what solves an equation.
Key takeaways
- A solution set contains every value in the domain that makes the equation true, and nothing else.
- Braces with a list name the members, while set-builder notation names a rule for membership.
- The empty set, written ∅ or { }, means that no value in the domain works.
- The same equation can have different solution sets in different number systems.
- The word "or" between conditions corresponds to a union of sets, and "and" to an intersection.
The solution set of an equation is the collection of all values, taken from a stated domain, that make the equation true. For 2x + 3 = 13 over the real numbers, the solution set is {5}. Set-builder notation describes such a collection by a rule: {x ∈ ℝ : 2x + 3 = 13} is read "the set of all real x such that 2x + 3 equals 13."
Writing answers as sets makes three things explicit: which numbers were allowed, how many solutions there are, and that you have listed all of them.
The symbols you need
| Symbol | Read as |
|---|---|
| { } | the set containing |
| ∈ | is an element of |
| : or a vertical bar | such that |
| ∅ | the empty set |
| ∪ | union: in either set |
| ∩ | intersection: in both sets |
The common number systems are ℕ for the natural numbers, ℤ for the integers, ℚ for the rational numbers, ℝ for the real numbers and ℂ for the complex numbers. Books disagree about whether ℕ includes 0, so check the convention in yours or state it yourself. Number systems sorted for algebra students describes how they nest.
Listing versus describing
Roster notation lists the members: {−3, 3}. Order and repetition do not matter, so {3, −3} and {−3, 3, 3} are the same set. The equation (x − 3)² = 0 therefore has solution set {3}, even though algebraists call 3 a double root.
Set-builder notation has two parts separated by a colon or bar. The left part names a variable and usually its domain. The right part gives the condition for membership.
{x ∈ ℝ : x² = 9} = {−3, 3}
└ candidates ┘ └ test ┘ The first form restates the problem, and the second answers it. Solving an equation is the work of turning a description into a plain list, or into the simplest description available.
The variable inside is a placeholder. {x ∈ ℝ : x² = 9} and {t ∈ ℝ : t² = 9} are the same set.
The domain changes the answer
A solution set is only defined once you say where to look.
| Equation | Over ℤ | Over ℚ | Over ℝ | Over ℂ |
|---|---|---|---|---|
| 2x = 7 | ∅ | {7/2} | {7/2} | {7/2} |
| x² = 2 | ∅ | ∅ | {−√2, √2} | {−√2, √2} |
| x² = −4 | ∅ | ∅ | ∅ | {−2i, 2i} |
None of these entries contradicts another. Each answers a different question. If a hypothetical problem asks how many identical tables seat exactly 7 people at 2 per table, the domain is whole numbers and the empty set is the correct, informative answer.
When a course does not say, the real numbers are the usual assumption in school algebra.
Worked example: one equation, three domains
Find the solution set of (2x − 1)(x + 4)(x² − 3) = 0 in each number system.
A product of real or complex numbers is zero exactly when some factor is zero, so solve the factors one at a time.
2x − 1 = 0 gives x = 1/2
x + 4 = 0 gives x = −4
x² − 3 = 0 gives x = √3 or x = −√3 Now filter by domain. Only −4 is an integer, so over ℤ the set is {−4}. The rationals admit 1/2 as well, so over ℚ it is {−4, 1/2}. Over ℝ it is {−4, −√3, 1/2, √3}.
The method is the same each time: find candidates in the largest system you understand, then keep those that belong to the stated domain. In symbols, the integer answer is the intersection of the real solution set with ℤ.
Checking a claimed solution set
A proposed set can be wrong in two ways. It can contain something that does not work, or it can leave out something that does.
Suppose someone claims that the solution set of x² = 3x over ℝ is {3}. Substituting 3 succeeds, since both sides are 9. But 0 also satisfies the equation and is missing. Substitution tests membership one element at a time; completeness needs an argument, here the factoring x(x − 3) = 0.
Proving that two sets are equal always has these two halves: every element of the first belongs to the second, and every element of the second belongs to the first. When each solving step can be reversed, you get both halves at once.
Four sizes of solution set
For linear equations in one variable, only the first, third and fourth can happen, as shown in why linear equations have zero, one or infinitely many solutions.
An equation true for every allowed value has the whole domain as its solution set, and domain restrictions still count. The equation x · (1/x) = 1 has solution set {x ∈ ℝ : x ≠ 0}.
Empty is not zero
Three expressions look alike and mean different things.
- {0} is a set with one member, the number zero. It is the solution set of 5x = 0.
- ∅, or { }, is a set with no members. It is the solution set of 0x = 5.
- {∅} is a set with one member, and that member is the empty set. It is almost never what an equation solver means.
So "the answer is zero" and "there is no answer" must never be confused. The first reports a solution; the second reports that there is none.
Combining conditions
The factored equation (x − 1)(x + 2) = 0 is true when x − 1 = 0 or x + 2 = 0. The word "or" becomes a union.
{x : (x − 1)(x + 2) = 0} = {1} ∪ {−2} = {−2, 1} Requiring two equations at once becomes an intersection. If x² = 4 and x + 2 = 0 must both hold, the sets are {−2, 2} and {−2}, and their intersection is {−2}.
Exclusions are written inside the condition or as a set difference. The expression ℝ ∖ {3} means every real number except 3, the same as {x ∈ ℝ : x ≠ 3}.
Two variables and infinite families
An equation in x and y has ordered pairs as solutions. For y = 2x + 1,
{(x, y) ∈ ℝ² : y = 2x + 1} = {(t, 2t + 1) : t ∈ ℝ} The left form states a test: given a pair, you check it. The right form is a generator: put in any real t and out comes a solution. Both describe the same line. Order matters within a pair, so (0, 1) belongs and (1, 0) does not.
Generators are handy for integers too. The set {2k + 1 : k ∈ ℤ} is all odd integers, and {x ∈ ℤ : x² < 10} is {−3, −2, −1, 0, 1, 2, 3}.
Intervals and inequalities
Inequalities usually have infinitely many solutions, so set-builder or interval notation is needed. The solutions of 2x > 6 form {x ∈ ℝ : x > 3}, also written (3, ∞).
Keep brackets and braces straight. {−3, 3} has two members. The interval [−3, 3] contains every real number from −3 to 3, endpoints included. The interval (−3, 3) excludes the endpoints, and the same symbols can also mean a point in the plane, so context has to settle it. For more, see solving and graphing linear inequalities.
Why sets make solving clearer
Two equations are called equivalent when they have the same solution set over the same domain. Each good solving step replaces the equation with an equivalent one, until the set is obvious.
4x − 1 = 11 solution set unknown
4x = 12 same set
x = 3 same set, visibly {3} A step that enlarges the set leaves you with candidates to test; a step that shrinks it loses answers. That idea is developed in equivalent equations.
Reading harder descriptions
Take a description apart in order: what kind of object, where it comes from, and what it must satisfy.
- {x ∈ ℤ : −2 < x ≤ 3} is the integers above −2 and at most 3, namely {−1, 0, 1, 2, 3}.
- {x² : x ∈ {−2, −1, 0, 1, 2}} collects the squares of the listed numbers, namely {0, 1, 4}. Duplicates count once.
- {x ∈ ℝ : x² < 0} is empty, since no real square is negative.
- {x ∈ ℝ : |x| = x} is every real number that is zero or positive.
In the second line the expression before the colon is a formula and the part after it says where the inputs come from. In the others, the part before the colon names candidates and the part after tests them. Both styles are standard.
Solution sets with a parameter
A parameter is a letter treated as fixed while you solve for another. The solution set then depends on its value. Consider {x ∈ ℝ : x² = c}.
| Value of c | Solution set | Number of elements |
|---|---|---|
| c > 0 | {−√c, √c} | two |
| c = 0 | {0} | one |
| c < 0 | ∅ | none |
The variable named before the colon, x, is the one being collected. The letter c is not collected; it selects which set you are talking about. Writing {c ∈ ℝ : x² = c} would describe something else, namely the values of c that work for a given x.
When the parameter has an unknown value, report all the rows. Choosing only the case c > 0 answers the question for some values and stays silent about the rest, which a reader may not notice.
Writing your answer well
- State the domain if it is not obvious.
- Use braces for a finite list: {−3, 3}, not "x = {−3, 3}". The equation's solution set is the set; x itself is one number.
- Write ∅ when nothing works, and say so in words if your reader may not know the symbol.
- For a parameter, give cases. For ax = b over ℝ, the set is {b/a} if a ≠ 0, ∅ if a = 0 and b ≠ 0, and ℝ if both are zero.
- Confirm both halves: each listed value works, and your steps show that nothing else can.