Real numbers and intervals
Natural numbers, integers, rationals, irrationals and reals, plus intervals on the number line in inequality and bracket notation.
Every function in this course takes in real numbers and gives back real numbers, and every domain and range you write will be an interval. So it pays to be precise about what the real numbers are and how to describe a piece of the number line.
Four number systems
Each new kind of number was invented because an operation got stuck without it.
| Set | Symbol | What it contains | Why we needed it |
|---|---|---|---|
| Whole numbers | $\mathbb{N}$ | $0, 1, 2, 3, \ldots$ | Counting |
| Integers | $\mathbb{Z}$ | $\ldots, -2, -1, 0, 1, 2, \ldots$ | So that $4 - 9$ has an answer |
| Rational numbers | $\mathbb{Q}$ | Every $\tfrac{a}{b}$ with $a, b$ integers and $b \ne 0$ | So that $5 \div 3$ has an answer |
| Real numbers | $\mathbb{R}$ | Every point on the number line | Lengths such as $\sqrt2$ that no fraction reaches |
Each set sits inside the next. Every integer is rational, because $-7 = \tfrac{-7}{1}$. A real number that is not rational is called irrational: $\sqrt2$, $\sqrt[3]{5}$, $\pi$ and Euler's number $e$ are all irrational.
Whole numbers bigger than $1$ are either prime (only divisible by $1$ and themselves) or composite. Every composite number factors into primes in exactly one way, for example $252 = 2^2 \times 3^2 \times 7$. You use this every time you find a lowest common denominator.
Rational numbers as decimals
Divide $a$ by $b$ by long division. There are only $b$ possible remainders, so sooner or later a remainder repeats, and from then on the digits cycle. That is why the decimal of a fraction either stops ($\tfrac38 = 0.375$) or recurs ($\tfrac{5}{11} = 0.\overline{45}$). An irrational number does neither.
Going the other way, any recurring decimal can be turned back into a fraction. Multiply by a power of $10$ that shifts the decimal one full cycle, then subtract so the endless tail cancels.
Write $0.\overline{81} = 0.818181\ldots$ as a fraction.
Write $0.4\overline{6} = 0.4666\ldots$ as a fraction.
Why $\sqrt2$ is irrational
By Pythagoras, the diagonal of a $1 \times 1$ square is $\sqrt2$, so $\sqrt2$ is a genuine length on the number line. Yet no fraction equals it. The proof is by contradiction: assume it is a fraction and show that leads to nonsense.
The same idea shows $\sqrt n$ is irrational whenever the whole number $n$ is not a perfect square. That is why $\sqrt{49} = 7$ is rational but $\sqrt{50}$ is not.
Intervals
An interval is an unbroken piece of the number line. On a diagram, a filled dot means the endpoint is included and an open dot means it isn't. Bracket notation says the same thing: a square bracket includes the endpoint and a round bracket excludes it.
| Inequality | Bracket notation | Description |
|---|---|---|
| $-2 \le x \le 5$ | $[-2, 5]$ | closed, bounded |
| $-2 \lt x \lt 5$ | $(-2, 5)$ | open, bounded |
| $-2 \le x \lt 5$ | $[-2, 5)$ | half-closed, bounded |
| $x \ge 1$ | $[1, \infty)$ | closed, unbounded |
| $x \lt 1$ | $(-\infty, 1)$ | open, unbounded |
| all real $x$ | $(-\infty, \infty)$ | the whole line |
Closed means every endpoint is included, open means none is. Bounded means there are two endpoints; an unbounded interval runs off towards $\infty$ or $-\infty$.
Drag the dots or use the buttons. Choose an open or closed dot for each end, or send an end off to infinity.
Build the interval shown above the number line. Then build $x \gt 1.5$ and read its bracket notation. Why is the bracket next to $\infty$ always round?
Your turn
Write $0.1\overline{2} = 0.1222\ldots$ as a fraction, then write "$x$ is more than $-3$ and at most $0$" in bracket notation.
Show the working
$10x = 1.222\ldots$ and $100x = 12.222\ldots$, so $90x = 11$ and $x = \tfrac{11}{90}$.
"More than $-3$" excludes $-3$ and "at most $0$" includes $0$, so the interval is $(-3, 0]$.
Which number is irrational?
$\sqrt{25} = 5$, $0.\overline{3} = \tfrac13$ and $\tfrac{22}{7}$ are all fractions. $12$ is not a perfect square, so $\sqrt{12}$ is irrational.
$x \ge -2$ in bracket notation is:
$-2$ is included, so a square bracket. The other end runs to $\infty$, which always takes a round bracket.
$0.\overline{7} = \dfrac{a}{9}$. Find $a$.
$x = 0.777\ldots$ and $10x = 7.777\ldots$. Subtracting, $9x = 7$, so $x = \tfrac79$ and $a = 7$.
$-4 \lt x \le 6$ in bracket notation is:
$-4$ is excluded (strict $\lt$), so round. $6$ is included ($\le$), so square.
Write $0.\overline{36}$ as a fraction in lowest terms. Enter the denominator.
$100x - x = 36.\overline{36} - 0.\overline{36} = 36$, so $x = \tfrac{36}{99} = \tfrac{4}{11}$. The denominator is $11$.
Which interval is open?
$x \lt 4$ has one endpoint, $4$, and it is excluded, so the interval contains none of its endpoints. $x \ge 3$ and $[0, 1]$ are closed; $-1 \lt x \le 2$ is half-closed.
How many integers lie in the interval $[-3, 4)$?
$-3$ is included and $4$ is not: $-3, -2, -1, 0, 1, 2, 3$. That is $7$ integers.
$360 = 2^a \times 3^b \times 5^c$. Find $a + b + c$.
$360 = 8 \times 45 = 2^3 \times 3^2 \times 5$. So $a + b + c = 3 + 2 + 1 = 6$.
Exam style: write $0.2\overline{3} = 0.2333\ldots$ as a fraction in lowest terms. Enter the denominator.
$10x = 2.333\ldots$ and $100x = 23.333\ldots$. Subtracting, $90x = 21$, so $x = \tfrac{21}{90} = \tfrac{7}{30}$. The denominator is $30$.
Exam style: $n$ is a whole number and $\sqrt n$ lies in the open interval $(6, 7)$. How many values of $n$ are possible?
$6 \lt \sqrt n \lt 7$ means $36 \lt n \lt 49$, since squaring keeps the order for positive numbers. So $n = 37, 38, \ldots, 48$, which is $48 - 37 + 1 = 12$ values.
Coaching Centre