girgit.org

Sets

Number sets and intervals

The big ideaThe number sets fit inside one another, and an interval is a short way to write "all the real numbers between two ends".

In simple words

Counting numbers sit inside the bigger family of whole numbers with minus signs. Those sit inside the family of fractions, and fractions sit inside the family of every point on the number line. An interval is just one stretch of that line, like the part between 2 and 5. You only have to say whether the two ends are part of it or not.

Subsets of the real numbers

The real numbers \( \mathbf{R} \) have many important subsets:

  • Natural numbers: \( \mathbf{N} = \{1, 2, 3, 4, \dots\} \)
  • Integers: \( \mathbf{Z} = \{\dots, -2, -1, 0, 1, 2, \dots\} \)
  • Rational numbers: \( \mathbf{Q} = \{\, x : x = \tfrac{p}{q},\ p, q \in \mathbf{Z} \text{ and } q \ne 0 \,\} \). Read: "all numbers that can be written as one integer divided by another, non-zero, integer". So \( -6 = \tfrac{-6}{1} \), \( 2\tfrac{1}{4} = \tfrac{9}{4} \) and \( 0.2 = \tfrac{1}{5} \) are all rational.
  • Irrational numbers: every real number that is not rational. NCERT calls this set \( \mathbf{T} \): \[ \mathbf{T} = \{\, x : x \in \mathbf{R} \text{ and } x \notin \mathbf{Q} \,\} \] Examples: \( \sqrt{2} \), \( \sqrt{7} \), \( \pi \). Their decimals never end and never repeat.

How they sit inside each other:

\[ \mathbf{N} \subset \mathbf{Z} \subset \mathbf{Q} \subset \mathbf{R}, \qquad \mathbf{T} \subset \mathbf{R}, \qquad \mathbf{N} \not\subset \mathbf{T} \]

The last one is clear: 1 is natural, and 1 is rational, so \( 1 \notin \mathbf{T} \). In fact \( \mathbf{Q} \) and \( \mathbf{T} \) share nothing: together they make up all of \( \mathbf{R} \).

Try it: drop each number into its smallest home, and watch the counts climb as you go outwards.

Intervals

Let \( a \) and \( b \) be real numbers with \( a < b \). An interval is the set of all real numbers between them. There are four kinds, depending on whether each end is in or out:

IntervalSet-builder formEnds
\( (a, b) \)\( \{\, x : a < x < b \,\} \)both left out: open interval
\( [a, b] \)\( \{\, x : a \le x \le b \,\} \)both included: closed interval
\( [a, b) \)\( \{\, x : a \le x < b \,\} \)\( a \) in, \( b \) out
\( (a, b] \)\( \{\, x : a < x \le b \,\} \)\( a \) out, \( b \) in

The last two are closed at one end and open at the other; they are often called half-open intervals. The rule to remember: a round bracket ( ) means the end is left out; a square bracket [ ] means the end is kept in.

On a number line, a kept end is drawn as a filled dot and a left-out end as a hollow circle, with the stretch between them shaded.

Whatever its type, the number \( b - a \) is the length of the interval. So \( (2, 9) \), \( [2, 9] \), \( [2, 9) \) and \( (2, 9] \) all have length 7.

Every interval, however short, contains infinitely many real numbers. Between 0 and 0.001 there are still endless numbers: 0.0005, 0.00051, 0.000511, …

Now hold one. Drag the ends, flip the brackets, and zoom in on an open end to see that it is never reached.

Intervals that never end

The symbol \( \infty \) (infinity) lets an interval run on for ever. Infinity is not a number you can reach, so it always gets a round bracket.

  • \( [0, \infty) \): all non-negative real numbers, 0 included.
  • \( (-\infty, 0) \): all negative real numbers.
  • \( (-\infty, \infty) \): the whole real line, that is, \( \mathbf{R} \).

Worked example

  1. Write \( \{\, x : x \in \mathbf{R},\ -1 < x \le 4 \,\} \) as an interval. Left end out, right end in: \( (-1, 4] \).
  2. Write \( [-2, 3) \) in set-builder form: \( \{\, x : -2 \le x < 3 \,\} \).
  3. Is \( (0, 1) \subset [-1, 2] \)? Every \( x \) with \( 0 < x < 1 \) also satisfies \( -1 \le x \le 2 \), so yes.
  4. Is \( 3 \in (1, 3) \)? No: the round bracket leaves 3 out. But \( 3 \in (1, 3] \).

Don't mix these up

  • The interval \( (2, 5) \) is a set of infinitely many real numbers. The set \( \{2, 5\} \) has just two elements.
  • \( (2, 5) \) contains no integers except 3 and 4; it does not contain 2 or 5.
  • Never write \( [3, \infty] \): \( \infty \) is not a number, so it can never be "included".

Try it. (a) Write \( \{\, x : x \in \mathbf{R},\ 5 \le x \le 8 \,\} \) as an interval and give its length. (b) Write \( (-7, 0) \) in set-builder form. (c) Which integers belong to \( [-2, 1) \)?

Answer
(a) \( [5, 8] \), length \( 8 - 5 = 3 \). (b) \( \{\, x : -7 < x < 0 \,\} \). (c) \( -2, -1, 0 \); the 1 is left out by the round bracket.

Words to know

Irrational numbers \( \mathbf{T} \)
Real numbers that are not rational, such as \( \sqrt{2} \) and \( \pi \).
Open interval \( (a, b) \)
All reals between \( a \) and \( b \), ends left out.
Closed interval \( [a, b] \)
All reals from \( a \) to \( b \), ends included.
Half-open interval
\( [a, b) \) or \( (a, b] \): one end in, one end out.
Length of an interval
\( b - a \), the same for all four types.

Which interval is the same as \( \{\, x : x \in \mathbf{R},\ 0 \le x < 6 \,\} \)?

  1. \( (0, 6) \)
  2. \( [0, 6) \)
  3. \( [0, 6] \)

Which of these is true?

  1. \( \mathbf{Z} \subset \mathbf{N} \)
  2. \( \mathbf{R} \subset \mathbf{Q} \)
  3. \( \mathbf{Z} \subset \mathbf{Q} \)

How many real numbers are in the interval \( (1, 1.01) \)?

  1. None
  2. About 10
  3. Infinitely many