2A

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.

SetSymbolWhat it containsWhy 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 lineLengths 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.

Example 1●

Write $0.\overline{81} = 0.818181\ldots$ as a fraction.

Let $x = 0.8181\ldots$
Name the number so we can do algebra with it.
$100x = 81.8181\ldots$
Two digits repeat, so multiply by 100 to shift one whole cycle.
$99x = 81$
Subtract the first line from the second. The tails are identical, so they cancel exactly.
$x = \dfrac{81}{99} = \dfrac{9}{11}$
Cancel the common factor 9.
Example 2: the cycle starts late●●

Write $0.4\overline{6} = 0.4666\ldots$ as a fraction.

$10x = 4.666\ldots$ and $100x = 46.666\ldots$
Only the 6 repeats. Multiply by 10 and by 100 so that both lines end in the same tail of 6s.
$90x = 42$
Subtract to kill the tail.
$x = \dfrac{42}{90} = \dfrac{7}{15}$

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.

InequalityBracket notationDescription
$-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$.

Build an interval

Drag the dots or use the buttons. Choose an open or closed dot for each end, or send an end off to infinity.

Try this

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]$.

Flashcards
Rational number
Any $\tfrac{a}{b}$ with $a, b$ integers and $b \ne 0$. Its decimal stops or recurs.
Square or round bracket?
Square includes the endpoint, round excludes it.
Bracket next to $infty$
Always round.
Practice
  1. Which number is irrational?

  2. $x \ge -2$ in bracket notation is:

  3. $0.\overline{7} = \dfrac{a}{9}$. Find $a$.

  4. $-4 \lt x \le 6$ in bracket notation is:

  5. Write $0.\overline{36}$ as a fraction in lowest terms. Enter the denominator.

  6. Which interval is open?

  7. How many integers lie in the interval $[-3, 4)$?

  8. $360 = 2^a \times 3^b \times 5^c$. Find $a + b + c$.

  9. Exam style: write $0.2\overline{3} = 0.2333\ldots$ as a fraction in lowest terms. Enter the denominator.

  10. Exam style: $n$ is a whole number and $\sqrt n$ lies in the open interval $(6, 7)$. How many values of $n$ are possible?

Formula sheet