Understanding Number Sets
Real numbers belong to related sets: natural numbers are whole numbers, integers, rational numbers, and real numbers, while irrational numbers lie outside the rationals. Simplifying reveals a number’s classification, decimal values help order different forms, and endpoint conditions determine how sets are written in interval, set-builder, roster, and verbal notation.

Meet the Real Numbers
Lengths, prices, fractions of a pizza, and temperatures below zero all involve numbers. Are these numbers the same kind of thing? The real-number family provides a map for identifying their similarities and differences
Consider five numbers in this order: $$\sqrt{10}$$, $$-8$$, $$\frac{3}{4}$$, $$0.\overline{7}$$, and $$\pi$$. Negative eight is an integer, and three fourths is a fraction. The bar in $$0.\overline{7}$$ means the 7 repeats forever. Can a decimal that never ends still be a fraction? Yes: this repeating decimal is rational. In contrast, $$\sqrt{10}$$ and $$\pi$$ have decimals that never terminate and never repeat
The tasks in this lesson are to classify real numbers into every set they belong to, order numbers written in different forms, and describe sets using appropriate notation
The Family of Number Sets
A number’s appearance can hide its identity
What kind of number is each of $$\sqrt{9}$$, $$0.\overline{7}$$, and $$\pi$$? The first simplifies to $$\sqrt{9}=3$$, a counting number. The second repeats forever but equals $$\frac{7}{9}$$, so it is rational. The decimal for $$\pi$$ never ends and never repeats, and no fraction of integers equals it
The nested number map
| Set | Meaning in this lesson | Examples |
|---|---|---|
| Natural numbers, $$\mathbb{N}$$ | The counting numbers, starting at 1 | $$1,2,3,\dots$$ |
| Whole numbers, $$\mathbb{W}$$ | The natural numbers together with zero | $$0,1,2,3,\dots$$ |
| Integers, $$\mathbb{Z}$$ | The whole numbers together with the negative integers | $$-25$$, $$0$$, $$3$$ |
| Rational numbers, $$\mathbb{Q}$$ | Numbers that can be written as a ratio of integers; includes terminating and repeating decimals | $$\frac{1}{8}$$, $$4.\overline{6}$$ |
| Irrational numbers | Real numbers that cannot be written as a ratio of integers; their decimals never terminate and never repeat | $$\sqrt{6}$$, $$\pi$$ |
| Real numbers, $$\mathbb{R}$$ | All the rational and irrational numbers | Every number considered in this lesson |
The nesting order is $$\mathbb{N}\subset\mathbb{W}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}$$. Membership carries outward: a natural number such as 3 is also whole, integer, rational, and real. Irrational numbers are inside the real numbers but outside the rational numbers. Every real number is either rational or irrational, never both
Worked example: classify four numbers
Classify each number by all the sets it belongs to, using $$\mathbb{N}$$, $$\mathbb{W}$$, $$\mathbb{Z}$$, $$\mathbb{Q}$$, $$\mathbb{R}$$, or irrational: $$-\frac{81}{3}$$, $$\sqrt{25}$$, $$\frac{3}{8}$$, and $$\sqrt{10}$$
| Number | Simplification or reasoning | All memberships |
|---|---|---|
| $$-\frac{81}{3}$$ | $$-\frac{81}{3}=-27$$. It is a negative integer, so it is neither whole nor natural. | $$\mathbb{Z},\mathbb{Q},\mathbb{R}$$ |
| $$\sqrt{25}$$ | 25 is a perfect square, so $$\sqrt{25}=5$$. | $$\mathbb{N},\mathbb{W},\mathbb{Z},\mathbb{Q},\mathbb{R}$$ |
| $$\frac{3}{8}$$ | $$\frac{3}{8}=0.375$$, a terminating decimal, not an integer. | $$\mathbb{Q},\mathbb{R}$$ |
| $$\sqrt{10}$$ | 10 has no whole-number square root. $$\sqrt{10}\approx3.162\dots$$, and its decimal never terminates or repeats. | Irrational, $$\mathbb{R}$$ |
Practice 1: full classifications
Classify $$\sqrt{49}$$, $$-\frac{18}{3}$$, and $$\sqrt{11}$$ into the groups listing all their memberships. The available groups are N, W, Z, Q, R; Z, Q, R only; Q, R only; and irrational, R
Answers: $$\sqrt{49}=7$$ belongs to N, W, Z, Q, and R. The fraction $$-\frac{18}{3}=-6$$ belongs to Z, Q, and R only. The number $$\sqrt{11}$$ is irrational and real. None of these three numbers belongs to the Q, R only group. Simplifying first prevents a fraction or radical from being mistaken for a non-integer
Ordering Real Numbers
To compare radicals, fractions, mixed numbers, and repeating decimals, express them in the same form: decimals. Compare their decimal values rather than their written appearances. A repeating bar and a coefficient outside a radical both affect the value
Worked example: least to greatest
Order $$2\sqrt{3}$$, $$\sqrt{8}$$, $$3.375$$, $$3\frac{2}{5}$$, and $$3.\overline{4}$$ from least to greatest
| Original form | Decimal value or approximation | Reasoning |
|---|---|---|
| $$2\sqrt{3}$$ | $$\approx3.464$$ | $$\sqrt{3}\approx1.732$$, so $$2\sqrt{3}\approx2(1.732)=3.464$$. |
| $$\sqrt{8}$$ | $$\approx2.828$$ | It is between 2 and 3. More closely, $$2.8^2=7.84$$ and $$2.9^2=8.41$$, so it lies between 2.8 and 2.9. |
| $$3.375$$ | $$3.375$$ | Already written as a decimal. |
| $$3\frac{2}{5}$$ | $$3.4$$ | The fractional part $$\frac{2}{5}$$ equals 0.4. |
| $$3.\overline{4}$$ | $$3.444\dots$$ | The bar means the digit 4 repeats forever. |
The decimal comparison is $$2.828\dots<3.375<3.4<3.444\dots<3.464\dots$$. Therefore, the numbers in their original forms satisfy $$\sqrt{8}<3.375<3\frac{2}{5}<3.\overline{4}<2\sqrt{3}$$
Practice 2: complete an ordered list
Complete a least-to-greatest list with $$-\sqrt{2}\approx-1.414$$ fixed first and $$\sqrt{3}\approx1.732$$ fixed last. The three missing numbers are $$-1\frac{2}{5}$$, $$\frac{\pi}{3}$$, and $$1.\overline{2}$$
Answer: $$-\sqrt{2}<-1\frac{2}{5}<\frac{\pi}{3}<1.\overline{2}<\sqrt{3}$$. Convert the mixed number’s fractional part by division, use about 3.14 for $$\pi$$ before dividing by 3, and let the repeating bar continue the digit 2. When comparing the negative values, remember that the more negative value is farther left and therefore smaller
Interval Notation
Interval notation describes a stretch of the number line using its boundaries and symbols that show whether an endpoint is included
| Endpoint condition | Number-line mark | Interval symbol |
|---|---|---|
| Included: $$\le$$ or $$\ge$$ | Filled, closed point | Square bracket: [ or ] |
| Excluded: $$<$$ or $$>$$ | Hollow, open point | Parenthesis: ( or ) |
| Unbounded toward $$-\infty$$ or $$\infty$$ | Continues indefinitely in that direction | Always a parenthesis |
Infinity and negative infinity are not reachable endpoints that can be included, so neither takes a bracket. Write the smaller boundary first, on the left. The backward expression $$(10,-10]$$ does not correctly describe an interval from a smaller boundary to a larger one
From an inequality to an interval
Write $$-4<x\le7$$ in interval notation. The inequality at −4 is strict, so −4 is excluded and takes a parenthesis. The inequality at 7 includes equality, so 7 is included and takes a bracket. The answer is $$(-4,7]$$: open at −4 and closed at 7, with the smaller boundary first
From a graph to an interval
A number line has labeled ticks at −9, −6, −3, 0, and 3. A filled point sits at −3, and the shading extends leftward indefinitely, including −3; the region to its right is unshaded. Write this graphed set in interval notation
The leftward shading represents values less than −3, and the filled point includes −3 itself. Thus the inequality is $$x\le-3$$, and the interval is $$(-\infty,-3]$$. The parenthesis belongs at negative infinity; the bracket belongs at the included endpoint −3
Joining separate pieces with a union
For a set described by two separate pieces with a gap between them, write an interval for each piece and join them with the union symbol $$\cup$$. In the following example, “or” connects the two pieces. Do not replace the union symbol with a comma or merge the pieces into one interval that includes the gap
Write $$2\le x<15\text{ or }x>25$$ in interval notation. The first piece includes 2 but excludes 15: its graph has a filled point at 2, a hollow point at 15, and shading between them. Its interval is $$[2,15)$$. The second piece excludes 25 and extends indefinitely to the right: its graph has a hollow point at 25 and rightward shading. Its interval is $$(25,\infty)$$
The complete answer is $$[2,15)\cup(25,\infty)$$. The two shaded pieces remain separate, and the gap is not part of the set
Practice 3: an open endpoint and a rightward ray
Complete the interval notation for a number line with labeled ticks at −2, 0, 2, 4, and 6, a hollow point exactly at 2, and shading extending rightward indefinitely. The region left of 2 is unshaded. In the form “___ 2, ___”, choose either ( or [ for the left symbol and either $$\infty)$$ or $$\infty]$$ for the right end
Answer: $$(2,\infty)$$. The hollow point excludes 2, requiring a parenthesis, and infinity always takes a parenthesis. A bracket at 2 would incorrectly include the open endpoint; a bracket at infinity is never appropriate
Set-Builder, Roster, and Words
Set-builder notation describes a condition
Read $$\{x\mid x\le4\}$$ as “the set of all values of x such that x is less than or equal to 4.” The opening brace and x introduce the elements, the vertical bar means “such that,” and $$x\le4$$ gives the condition each element must satisfy. The bar is not an absolute-value symbol or a division sign
On a number line labeled at −6, −4, −2, 0, 2, 4, and 6, this set has shading extending from the left indefinitely to a filled point at 4. The filled point matches the equality allowed by $$\le$$
Roster notation lists elements
The roster $$\{0,4,8,12,16,\dots\}$$ means “the nonnegative multiples of 4.” The dots indicate that the pattern continues forever. By contrast, “the integers from −3 to 3” gives the finite roster $$\{-3,-2,-1,0,1,2,3\}$$. Include zero and both endpoints, and do not add dots to this complete finite list
Practice 4: match notation to meaning
Match $$\{x\mid x>6\}$$, $$\{2,4,6,8,\dots\}$$, and $$\{-2,-1,0,1,2\}$$ to these descriptions: “All real numbers greater than 6,” “The positive even numbers,” and “The integers from −2 to 2.”
Answers: $$\{x\mid x>6\}$$ describes all real numbers greater than 6. The roster $$\{2,4,6,8,\dots\}$$ lists the positive even numbers, with dots continuing the pattern. The finite roster $$\{-2,-1,0,1,2\}$$ lists the integers from −2 to 2. Read the bar as “such that,” and distinguish an ongoing roster pattern from a complete finite list
Summary
The nested map is $$\mathbb{N}\subset\mathbb{W}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}$$. Irrationals are the real numbers that are not rational. A real number is rational or irrational, never both
Simplify, then classify. For example, $$\sqrt{25}=5$$, so it belongs to every set from natural through real. List all memberships rather than stopping at the most specific label
Order different forms by decimal value. Convert radicals, fractions, and mixed numbers, and preserve the meaning of repeating decimals: $$3.4<3.\overline{4}$$
In interval notation, brackets include endpoints and parentheses exclude them. Infinity and negative infinity always take parentheses. Write the smaller boundary first and join separate pieces with $$\cup$$
Set-builder notation $$\{x\mid\text{condition}\}$$ describes a condition, with the bar meaning “such that.” Roster notation lists elements, and words state the meaning. Choose a form that fits the set: continuous sets cannot be expressed as rosters listing every real-number element
Quiz
1. Classify a number
2. Locate a radical
Where does $$\sqrt{5}$$ belong on a number line from 0 to 5, labeled at each integer? Since $$2^2=4$$ and $$3^2=9$$, its position is between 2 and 3, closer to 2. The course’s approximate target is 2.24, just past 2
3. Write a two-piece interval
Write $$x<-1\text{ or }x\ge4$$ in interval notation by choosing both pieces. The original choices for the left piece are $$(-\infty,-1)$$, $$[-\infty,-1)$$, and $$(-\infty,-1]$$. The choices for the right piece are $$[4,\infty)$$ and $$(4,\infty)$$
Answer: $$(-\infty,-1)\cup[4,\infty)$$. The strict inequality excludes −1, so that endpoint takes a parenthesis. The inequality $$x\ge4$$ includes 4, so that endpoint takes a bracket. Both infinities require parentheses, and the union symbol joins the two separate pieces