No history yet

Set Builder and Intervals

From Rules to Rosters

You already know that sets can be described by listing their elements. But often, it's more powerful to define a set by the rule its members must follow. This is called set-builder notation. The real skill is translating this rule-based format into a simple list, also known as Roster form .

Let's take an example. Consider the set A, defined as:

A = {x : x is a positive integer and x2<40x^2 < 40}

Here, 'x' is our variable. The colon means 'such that'. The rule is that x must be a positive integer whose square is less than 40. To convert this to Roster form, we just test the numbers.

12=1(<40)1^2 = 1 (< 40) 22=4(<40)2^2 = 4 (< 40) 32=9(<40)3^2 = 9 (< 40) 42=16(<40)4^2 = 16 (< 40) 52=25(<40)5^2 = 25 (< 40) 62=36(<40)6^2 = 36 (< 40) 72=49(>40)7^2 = 49 (> 40) - too high.

So, the Roster form of set A is {1, 2, 3, 4, 5, 6}.

Intervals on the Real Number Line

Things get interesting when we talk about subsets of the Real numbers (denoted by the symbol R). It's impossible to list all the numbers between 1 and 2—there are infinitely many! Instead, we use a special notation called intervals.

An interval is a continuous section of the real number line. We define it by its endpoints. There are four main types, depending on whether the endpoints themselves are included in the set.

Let's break down these notations. Suppose we have two real numbers, a and b, where a<ba < b.

Interval NotationSet-Builder NotationDescription
(a,b)(a, b){x ∈ R : a < x < b}Open Interval: Includes all numbers between a and b, but not a or b themselves.
[a,b][a, b]{x ∈ R : a ≤ x ≤ b}Closed Interval: Includes all numbers between a and b, and includes a and b.
[a,b)[a, b){x ∈ R : a ≤ x < b}Semi-Open/Closed: Includes a but does not include b.
(a,b](a, b]{x ∈ R : a < x ≤ b}Semi-Open/Closed: Does not include a but does include b.

The parenthesis () means the endpoint is not included. The square bracket [] means it is included.

So, if we see the set-builder notation {x ∈ R : -5 ≤ x < 2}, we can immediately write it in interval notation as [-5, 2). This concise format is extremely common when defining the domain of functions.

Measuring Intervals

A simple but important concept is the length of an interval. For any of the four interval types between endpoints a and b, the length is the same.

Length=ba\text{Length} = b - a

For example, the length of the interval [-3, 10] is $10 - (-3) = 13$. The length of the open interval (-3, 10) is also 13. This might seem counterintuitive, but because there's no 'next' real number after -3, the inclusion of the single point endpoint doesn't add to the overall length of the span.

Quiz Questions 1/5

Which of the following sets represents A = {x : x is a positive integer and x2<50x^2 < 50} in Roster form?

Quiz Questions 2/5

How would you write the set of real numbers defined by {x ∈ R : -8 ≤ x < 1} in interval notation?

Being able to switch between these notations is a key skill for your exams.