Subsets of the set of real numbers

Every number system you have met since primary school nests inside the next: naturals sit inside integers, integers inside rationals, rationals inside the full set of real numbers R\mathbb{R}. That chain of inclusions is the first subset story in this chapter, but the far more useful one for the rest of Class 11 is the interval — a compact bracket notation for "all real numbers between here and there." Domains of functions, solution sets of inequalities, and the ranges you will compute in later chapters are almost always written as intervals, not as long-winded inequality sentences. This section builds both stories together: the inclusion chain N⊊Z⊊Q⊊R\mathbb{N} \subsetneq \mathbb{Z} \subsetneq \mathbb{Q} \subsetneq \mathbb{R}, the four bounded interval types, the unbounded ones that reach out to ∞\infty, and a general rule for deciding when one interval sits inside another — the exact skill needed the moment inequalities and functions arrive.

The core insight

Real numbers are built from nested subsets N⊊Z⊊Q⊊R\mathbb{N} \subsetneq \mathbb{Z} \subsetneq \mathbb{Q} \subsetneq \mathbb{R}, and intervals — open, closed, or half-open stretches of R\mathbb{R} written with round and square brackets — are the compact notation used to describe and compare such subsets.

The core idea

The nested number systems. Every real number belongs to one of several progressively larger families:

N⊊Z⊊Q⊊R\mathbb{N} \subsetneq \mathbb{Z} \subsetneq \mathbb{Q} \subsetneq \mathbb{R}

where N={1,2,3,… }\mathbb{N} = \{1, 2, 3, \dots\} is the natural numbers, Z={…,−2,−1,0,1,2,… }\mathbb{Z} = \{\dots, -2, -1, 0, 1, 2, \dots\} adds zero and the negatives, Q\mathbb{Q} is every number expressible as pq\frac{p}{q} with p,q∈Zp, q \in \mathbb{Z} and q≠0q \ne 0, and R\mathbb{R} additionally contains the irrationals — numbers like 2\sqrt{2} and π\pi that cannot be written as such a fraction. Each inclusion is proper (the symbol ⊊\subsetneq, not just ⊆\subseteq): 00 is in Z\mathbb{Z} but not N\mathbb{N}, 12\frac{1}{2} is in Q\mathbb{Q} but not Z\mathbb{Z}, and 2\sqrt{2} is in R\mathbb{R} but not Q\mathbb{Q}. A common slip is assuming rationals already "fill up" the number line — they do not, since between any two rationals sits an irrational, and vice versa.

Intervals as subsets of R\mathbb{R}. An interval collects every real number lying between two fixed endpoints aa and bb, with a<ba < b. There are four bounded types, distinguished only by whether each endpoint is included:

  • Open: (a,b)={x∈R:a<x<b}(a, b) = \{x \in \mathbb{R} : a < x < b\}, both endpoints excluded.
  • Closed: [a,b]={x∈R:a≤x≤b}[a, b] = \{x \in \mathbb{R} : a \le x \le b\}, both endpoints included.
  • Half-open, left-excluded: (a,b]={x∈R:a<x≤b}(a, b] = \{x \in \mathbb{R} : a < x \le b\}.
  • Half-open, right-excluded: [a,b)={x∈R:a≤x<b}[a, b) = \{x \in \mathbb{R} : a \le x < b\}.

A round bracket always means "strictly beyond, endpoint not counted"; a square bracket always means "up to and including." Even though (a,b)(a,b) looks like a short segment on paper, it is an infinite set — between any two of its points sit infinitely many more real numbers.

Figure
A number line showing a closed interval from negative one to three with filled circles at both ends and an open interval from three to six with unfilled circles at both ends
Closed interval [-1, 3] and open interval (3, 6) on the real line -1 0 3 6 [-1, 3] closed (3, 6) open

Unbounded intervals. Some intervals extend forever in one direction, using ∞\infty and −∞-\infty as boundary markers. Since infinity is not an actual number that a set can "contain," it always sits beside a round bracket: (a,∞)={x∈R:x>a}(a, \infty) = \{x \in \mathbb{R} : x > a\}, [a,∞)={x∈R:x≥a}[a, \infty) = \{x \in \mathbb{R} : x \ge a\}, (−∞,b)={x∈R:x<b}(-\infty, b) = \{x \in \mathbb{R} : x < b\}, (−∞,b]={x∈R:x≤b}(-\infty, b] = \{x \in \mathbb{R} : x \le b\}, and the whole real line is (−∞,∞)=R(-\infty, \infty) = \mathbb{R}. The length of a bounded interval with endpoints aa and bb is simply b−ab - a, regardless of whether the brackets are round or square.

Derivation AWhen is one interval a subset of another?

Deciding whether every element of a smaller interval also lies in a larger one is a skill needed constantly once inequalities and function domains arrive, so it pays to have a general rule rather than checking numbers one at a time; the goal here is to derive, from the definitions alone, the exact condition under which the closed interval [c,d][c, d] is a subset of the closed interval [a,b][a, b], assuming a≤ba \le b and c≤dc \le d throughout.

Step 1. Write down what subset means. [c,d]⊆[a,b][c, d] \subseteq [a, b] means: for every real xx with c≤x≤dc \le x \le d, it must also be true that a≤x≤ba \le x \le b. So we must show the inequality chain c≤x≤dc \le x \le d forces a≤x≤ba \le x \le b for every such xx, not just some.

Step 2. Test the two endpoints of [c,d][c,d], since they are the extreme cases. If x=cx = c satisfies a≤c≤ba \le c \le b, and x=dx = d satisfies a≤d≤ba \le d \le b, then every xx strictly between cc and dd automatically satisfies a≤x≤ba \le x \le b too, because c≥ac \ge a and d≤bd \le b sandwich the whole range [c,d][c,d] inside [a,b][a,b].

Step 3. Simplify the two endpoint conditions. Since c≤d≤bc \le d \le b already gives c≤bc \le b, the condition a≤c≤ba \le c \le b reduces to just a≤ca \le c; likewise a≤c≤da \le c \le d already gives a≤da \le d, so a≤d≤ba \le d \le b reduces to just d≤bd \le b. The two conditions that matter are therefore a≤ca \le c and d≤bd \le b — the smaller interval's left endpoint must not fall below aa, and its right endpoint must not rise above bb.

Step 4. State the result and check it both ways. [c,d]⊆[a,b][c, d] \subseteq [a, b] if and only if a≤ca \le c and d≤bd \le b. Conversely, if either c<ac < a or d>bd > b, the endpoint cc or dd itself lies outside [a,b][a, b], so the subset relation fails. The same reasoning, with strict inequalities at the relevant ends, extends directly to open and half-open intervals.

Worked example

Let A=[3,8)A = [3, 8) and B=[0,10]B = [0, 10]. Using the rule just derived, determine whether A⊆BA \subseteq B, and separately determine whether AA is a proper subset.

Step 1. Write AA in set-builder form to identify its endpoints: [3,8)={x∈R:3≤x<8}[3, 8) = \{x \in \mathbb{R} : 3 \le x < 8\}, so its left endpoint is 33 (included) and its effective right boundary is 88 (excluded). Compare against B=[0,10]={x∈R:0≤x≤10}B = [0, 10] = \{x \in \mathbb{R} : 0 \le x \le 10\}.

Step 2. Apply the endpoint test. The left-endpoint condition needs 0≤30 \le 3, which holds. The right-boundary condition needs every x<8x < 8 to also satisfy x≤10x \le 10; since 8≤108 \le 10, this holds too. Both conditions are satisfied, so A⊆BA \subseteq B.

Step 3. Check for a proper subset by finding an element of BB that is not in AA. Take x=0x = 0: it satisfies 0≤0≤100 \le 0 \le 10, so 0∈B0 \in B, but 0<30 < 3 means 0∉A0 \notin A. Since BB has at least one element AA lacks, AA is a proper subset of BB: A⊊BA \subsetneq B.

Step 4 (competitive stretch). Now find the interval A∩BA \cap B (their common elements) and A∪BA \cup B (everything in either). Since A⊆BA \subseteq B, every element of AA is already in BB, so A∩B=A=[3,8)A \cap B = A = [3, 8) and A∪B=B=[0,10]A \cup B = B = [0, 10]. This is a general fact: whenever A⊆BA \subseteq B, A∩B=AA \cap B = A and A∪B=BA \cup B = B — a shortcut worth remembering instead of recomputing from scratch.

Common traps

  • Swapping round and square brackets: a round bracket always excludes its endpoint, a square bracket always includes it — mixing them up flips the whole answer.
  • Writing [a,∞][a, \infty] or (−∞,b](-\infty, b]-style errors with a square bracket touching an infinity symbol — infinity is never an included endpoint, so it must always sit next to a round bracket.
  • Checking only one endpoint when testing [c,d]⊆[a,b][c,d] \subseteq [a,b] — both a≤ca \le c and d≤bd \le b must hold; satisfying only one is not enough.
  • Reversing the inclusion chain, e.g. writing Q⊊Z\mathbb{Q} \subsetneq \mathbb{Z} — the correct order is smallest to largest: N⊊Z⊊Q⊊R\mathbb{N} \subsetneq \mathbb{Z} \subsetneq \mathbb{Q} \subsetneq \mathbb{R}.

Ask the tutor: Want to practice converting a compound inequality into interval notation, or test whether one interval sits inside another using the endpoint rule? Ask the AI tutor to walk through a few with you.

Why do we even need interval notation when set-builder notation already describes the same thing?

Both describe the same set, but interval notation is far shorter to write and read once you are doing this repeatedly — writing (2,9](2, 9] takes a moment, while writing {x∈R:2<x≤9}\{x \in \mathbb{R} : 2 < x \le 9\} every time slows you down and invites inequality-sign slips. Later chapters on function domains and inequality solutions lean on interval notation constantly, so learning it now as a fast, reliable shorthand pays off immediately.

Is an interval like (a, b) really infinite, even if a and b are close together, like (1, 1.001)?

Yes, always, no matter how close aa and bb are. Between any two distinct real numbers there are infinitely many more real numbers — you can always average two numbers in the interval to find another one strictly between them, and repeat that forever. So (1,1.001)(1, 1.001) is just as infinite as (−∞,∞)(-\infty, \infty) itself, even though it looks "small" on a number line. Length and infinitude are different properties.

How is deciding subset for intervals different from deciding subset for sets like {1, 2, 3}?

The idea is identical — every element of the smaller set must be in the larger one — but with finite sets like {1,2,3}\{1,2,3\} you can check each element individually, while an interval has infinitely many elements, so checking one at a time is impossible. That is exactly why the endpoint-comparison rule derived above matters: instead of testing infinitely many xx-values, you only ever need to compare the two endpoints of each interval.

Before this

Where this leads