Number sets: natural, integers, rational, real

Number sets: natural, integers, rational, real

A small child counting toy cars only needs 1, 2, 3, … When we read a thermometer in winter, we also need −5 °C. When we cut a pizza into three pieces, we get 1/3. And when we measure the diagonal of a square with side 1 m, we get √2 m — a number that cannot be written as a fraction at all.

Mathematicians “added” new numbers exactly like this, whenever they needed them. That is how we got five number sets that fit inside each other like boxes inside boxes.


Contents


Natural numbers ℕ

ℕ = {1, 2, 3, 4, …} — the numbers we count things with.

⚠️ Books do not agree about zero. Some include 0 in ℕ, others do not. In this article ℕ = {1, 2, 3, …}, and if we want zero too, we write ℕ₀ = {0, 1, 2, 3, …}. Check how your textbook does it.

In ℕ we can always add and multiply. But we cannot always subtract: 3 − 5 = −2, and that is not a natural number.


Integers ℤ

ℤ = {…, −3, −2, −1, 0, 1, 2, 3, …} — the natural numbers, zero and the negative whole numbers.

We need integers for temperatures below zero, money we owe, or floors in an underground car park. In ℤ we can add, subtract and multiply. But not always divide: 7 ÷ 2 = 3.5 is not an integer.


Rational numbers ℚ

A rational number is any number that can be written as a fraction a/b, where a is an integer and b is a non-zero integer.

Examples: 1/2, −3/4, 5 (= 5/1), 0 (= 0/1), 0.75 (= 3/4), −2.5 (= −5/2).

Recurring decimals are rational too. For example 0.333… = 1/3, because 1 ÷ 3 = 0.333…

💡 You can recognise a rational number from its decimal form. It either terminates (0.75), or it recurs — some digits repeat forever (0.1666… = 1/6).


Irrational numbers

An irrational number cannot be written as a fraction. Its decimal form goes on forever and never repeats in a pattern.

The best-known examples:

  • √2 = 1.41421356… — the diagonal of a square with side 1,
  • π = 3.14159265… — how many times bigger the circumference of a circle is than its diameter,
  • √3, √5, √7 … — the square root of any whole number that is not a square number.

There is no single standard letter for the irrational numbers. They are often written as ℝ ∖ ℚ — “the real numbers without the rational ones”.

⚠️ Not every square root is irrational. √9 = 3 is an integer, and √(1/4) = 1/2 is rational.


Real numbers ℝ

The real numbers are all the rational and all the irrational numbers together. They are exactly the numbers we can mark on a number line. Every point on the line is one real number.


How they fit together

Number sets as nested boxes: ℕ inside ℤ, ℤ inside ℚ, and ℚ together with the irrationals ℝ∖ℚ make up ℝ
  • Every natural number is an integer: ℕ ⊆ ℤ.
  • Every integer is rational (5 = 5/1): ℤ ⊆ ℚ.
  • Every rational number is real: ℚ ⊆ ℝ.
  • Irrational numbers are real as well, but they have nothing in common with the rational ones. Every real number is either rational or irrational — never both.

We write: ℕ ⊆ ℤ ⊆ ℚ ⊆ ℝ. (The symbol ⊆ means “is a subset of” — see the next article.)


How to decide where a number belongs

Always go in the same order:

  1. Simplify the number if you can: √16 = 4, 12/4 = 3, (√3)² = 3.
  2. Can it be written as a fraction? If not → irrational: it belongs to ℝ ∖ ℚ and ℝ. Done.
  3. If yes, it is rational: it belongs to ℚ and ℝ.
  4. Is it a whole number? If yes, it also belongs to ℤ.
  5. Is it a positive whole number? If yes, it also belongs to ℕ.

Worked example 1

Which sets does −12/4 belong to?

  1. Simplify: −12/4 = −3.
  2. −3 can be written as a fraction (−3/1), so it is rational → ℚ, ℝ.
  3. −3 is a whole number → ℤ.
  4. −3 is not positive → not in ℕ.
  5. −12/4 ∈ ℤ, ℚ, ℝ.

Worked example 2

Which sets does √2 × √8 belong to?

  1. Simplify: √2 × √8 = √(2 × 8) = √16 = 4.
  2. 4 is rational, whole and positive.
  3. √2 × √8 ∈ ℕ, ℤ, ℚ, ℝ — even though we started with two irrational numbers!

Worked example 3

Which sets does √5 + 1 belong to?

  1. √5 cannot be simplified, because 5 is not a square number. √5 is irrational.
  2. An irrational number plus a rational number is still irrational.
  3. √5 + 1 is irrational, so it belongs only to ℝ ∖ ℚ and ℝ.

Common mistakes

  • “Every square root is irrational”: √25 = 5 is a natural number.
  • “A decimal is not rational”: 0.75 = 3/4 and 0.333… = 1/3 are both rational.
  • Forgetting the bigger sets: the number 7 is in ℕ, but also in ℤ, ℚ and ℝ.
  • Rational and irrational at once: this never happens; the two sets have no element in common.
  • Zero: 0 is an integer, rational and real. Whether it is natural depends on your book.

Summary

  • ℕ = {1, 2, 3, …} (some books include 0), ℤ = {…, −2, −1, 0, 1, 2, …}.
  • ℚ: numbers that can be written as a fraction — terminating and recurring decimals.
  • Irrational numbers (ℝ ∖ ℚ): numbers that cannot be written as a fraction (√2, π) — decimals that never end and never repeat.
  • ℝ = rational and irrational numbers together — all points on the number line.
  • ℕ ⊆ ℤ ⊆ ℚ ⊆ ℝ. A number is either rational or irrational.

Try it yourself

Decide which of the sets ℕ, ℤ, ℚ, ℝ ∖ ℚ, ℝ each number belongs to:

  1. 17
  2. −8
  3. 2/7
  4. 1.25
  5. √36
  6. √10
  7. 0.121212…
  8. π/2

Answers

  1. 17 ∈ ℕ, ℤ, ℚ, ℝ.
  2. −8 ∈ ℤ, ℚ, ℝ.
  3. 2/7 ∈ ℚ, ℝ.
  4. 1.25 = 5/4 ∈ ℚ, ℝ.
  5. √36 = 6 ∈ ℕ, ℤ, ℚ, ℝ.
  6. √10 is irrational (10 is not a square number): √10 ∈ ℝ ∖ ℚ, ℝ.
  7. 0.121212… recurs, so it is 12/99 = 4/33 ∈ ℚ, ℝ.
  8. π/2 is irrational: π/2 ∈ ℝ ∖ ℚ, ℝ. Dividing an irrational number by a non-zero rational number keeps it irrational.

Practise

👉 Next article: Subsets and equal sets