ArticleslgStudy

mathematics

Set-builder notation

Set-builder notation is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Set-builder notation rather than just read about it. In short: In mathematics and more specifically in set theory, set-builder notation is a notation for specifying a set by a property that characterizes its members. Roster notation is a similar notation used for specifying a set by enumerating its elements.

Key takeaways

  • Set-builder notation belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Set-builder notation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Set-builder notation from memory before moving on to harder problems.

Reference excerpt

In mathematics and more specifically in set theory, set-builder notation is a notation for specifying a set by a property that characterizes its members. Roster notation is a similar notation used for specifying a set by enumerating its elements. Specifying sets by member properties is allowed by the axiom schema of specification. This is also known as set comprehension and set abstraction.

Sets defined by a predicate Set-builder notation can be used to describe a set that is defined by a predicate, that is, a logical formula that evaluates to true for an element of the set, and false otherwise. In this form, set-builder notation has three parts: a variable, a colon or vertical bar separator, and a predicate. Thus there is a variable on the left of the separator, and a rule on the right of it. These three parts are contained in curly brackets:

{x∣Φ(x)} or

{x:Φ(x)}. The vertical bar (or colon) is a separator that can be read as "such that", "for which", or "with the property that". The formula Φ(x) is said to be the rule or the predicate. All values of x for which the predicate holds (is true) belong to the set being defined. All values of x for which the predicate does not hold do not belong to the set. Thus {x∣Φ(x)} is the set of all values of x that satisfy the formula Φ. It may be the empty set, if no value of x satisfies the formula.

Specifying the domain A domain E—that is a set to which the notation defines a subset—can appear on the left of the vertical bar:

{x∈E∣Φ(x)}, or by adjoining it to the predicate:

{x∣x∈E and Φ(x)}or{x∣x∈E∧Φ(x)}. (The symbol ⁠∈⁠ denotes set membership, and the symbol ∧ denotes the logical and operator). This notation represents the set of all values of x that belong to the set E and for which the predicate is true. The subset axiom insures that if E is a set and ⁠Φ⁠ is a predicate, the notation defines always a set, which is a subset of E. If Φ(x) has the form Φ1(x)∧Φ2(x), then {x∈E∣Φ(x)} is sometimes written {x∈E∣Φ1(x),Φ2(x)}, using a comma instead of the symbol ∧. In cases where the set E is clear from context, it may be not explicitly specified. It is common in the literature for an author to state the domain ahead of time, and then not specify it in the set-builder notation. For example, an author may say something such as, "Unless otherwise stated, variables are to be taken to be natural numbers," though in less formal contexts where the domain can be assumed, a written mention is often unnecessary. In the cases where the domain E is not defined (implicitly or explicitly), it may occur that the notation does not define a set, but a proper class. For example, Russell's paradox shows that the expression {x∣x∉x}, although seemingly well formed as a set builder expression, cannot define a set without producing a contradiction. In some cases, the notation may define a set that is not a subset of a previously defined set. This is the case of the power set of a set E, which is defined as 𝒫(E)={x∣x⊂E}={x∣y∈x⟹y∈E}. The fact that this defines a set is an axiom of set theory, called the axiom of power set.

Examples The following examples illustrate particular sets defined by set-builder notation via predicates. In each case, the domain is specified on the left side of the vertical bar, while the rule is specified on the right side.

{x∈ℝ∣x>0} is the set of all strictly positive real numbers, which can be written in interval notation as (0,∞). {x∈ℝ∣|x|=1} is the set {−1,1}. This set can also be defined as {x∈ℝ∣x2=1}; see equivalent predicates yield equal sets below. For each integer m, we can define Gm={x∈ℤ∣x≥m}={m,m+1,m+2,…}. As an example, G3={x∈ℤ∣x≥3}={3,4,5,…} and G−2={−2,−1,0,…}. {(x,y)∈ℝ×ℝ∣0<y<f(x)} is the set of pairs of real numbers such that y is greater than 0 and less than f(x), for a given function f. Here the cartesian product ℝ×ℝ denotes the set of ordered pairs of real numbers. {n∈ℕ∣(∃k)[k∈ℕ∧n=2k]} is the set of all even natural numbers. The ∧ sign stands for "and", which is known as logical conjunction. The ∃ sign stands for "there exists", which is known as existential quantification. So for example, (∃x)P(x) is read as "there exists an x such that P(x)". {n∣(∃k∈ℕ)[n=2k]} is a notational variant for the same set of even natural numbers. It is not necessary to specify that n is a natural number, as this is implied by the formula on the right. {a∈ℝ∣(∃p∈ℤ)(∃q∈ℤ)[q≠0∧aq=p]} is the set of rational numbers; that is, real numbers that can be written as the ratio of two integers.

More complex expressions on the left side of the notation An extension of set-builder notation replaces the single variable x with an expression. So instead of {x∣Φ(x)}, we may have {f(x)∣Φ(x)}, which should be read

{f(x)∣Φ(x)}={y∣∃x(y=f(x)∧Φ(x))}. For example:

{2n∣n∈ℕ}, where ℕ is the set of all natural numbers, is the set of all even natural numbers. {p/q∣p,q∈ℤ,q≠0}, where ℤ is the set of all integers, is ℚ, the set of all rational numbers. {2t+1∣t∈ℤ} is the set of odd integers. {(t,2t+1)∣t∈ℤ} creates a set of pairs, where each pair puts an integer into correspondence with an odd integer. When inverse functions can be explicitly stated, the expression on the left can be eliminated through simple substitution. Consider the example set {2t+1∣t∈ℤ}. Make the substitution u=2t+1, which is to say t=(u−1)/2, then replace t in the set builder notation to find

{2t+1∣t∈ℤ}={u∣(u−1)/2∈ℤ}.

Equivalent predicates yield equal sets Two sets are equal if and only if they have the same elements. Sets defined by set builder notation are equal if and only if their set builder rules, including the domain specifiers, are equivalent. That is

{x∈A∣P(x)}={x∈B∣Q(x)} if and only if

(∀t)[(t∈A∧P(t))⇔(t∈B∧Q(t))]. Therefore, in order to prove the equality of two sets defined by set builder notation, it suffices to prove the equivalence of their predicates, including the domain qualifiers. For example,

{x∈ℝ∣x2=1}={x∈ℚ∣|x|=1} because the two rule predicates are logically equivalent:

(x∈ℝ∧x2=1)⇔(x∈ℚ∧|x|=1). This equivalence holds because, for any real number x, we have x2=1 if and only if x is a rational number with |x|=1. In particular, both sets are equal to the set {−1,1}.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Set-builder notation

Start with the simplest possible case. Write down what Set-builder notation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Set-builder notation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Set-builder notation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Set-builder notation

In research
Set-builder notation appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Set-builder notation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Set-builder notation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical notation, Set theory, so understanding it makes those chapters shorter.
In everyday life
Look for Set-builder notation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Set-builder notation” →

How to study Set-builder notation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Set-builder notation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Set-builder notation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Set-builder notation in simple terms?

In mathematics and more specifically in set theory, set-builder notation is a notation for specifying a set by a property that characterizes its members. Roster notation is a similar notation used for specifying a set by enumerating its elements.

Why does Set-builder notation matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Set-builder notation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Set-builder notation.

Tags

  • Mathematical notation
  • Set theory

Keep exploring