## Classifying Real Numbers

### Learning Outcomes

• Identify rational numbers and irrational numbers
• Classify different types of real numbers

The real numbers can be divided into three subsets: negative real numbers, zero, and positive real numbers. Each subset includes fractions, decimals, and irrational numbers according to their algebraic sign (+ or –). In this section we will further define real numbers and use their properties to solve linear equations and inequalities.

To begin, we will review the natural numbers, whole numbers, and integers that have already been covered in this course.  We will then discuss the rational numbers and irrational numbers in greater detail.

### Natural numbers

The most familiar numbers are the natural numbers (sometimes called counting numbers): $1, 2, 3$, and so on.  These are numbers we use for counting, or enumerating items.  The mathematical symbol for the set of all natural numbers is written as $\mathbb{N}$.  We describe them in set notation as $\{1, 2, 3, …\}$ where the ellipsis (…) indicates that the numbers continue to infinity. The natural numbers are, of course, also called the counting numbers. Any time we enumerate the members of a team, count the coins in a collection, or tally the trees in a grove, we are using the set of natural numbers.

### Whole numbers

The set of whole numbers includes all natural numbers as well as  $0$:  $\{0, 1, 2, 3,…\}$.

### Integers

When the set of negative numbers is combined with the set of natural numbers (including 0), the result is defined as the set of integers, $\mathbb{Z}$.  The set of integers adds the opposites of the natural numbers to the set of whole numbers: {3,2,1,0,1,2,3,}{…−3,−2,−1,0,1,2,3,…}. It is useful to note that the set of integers is made up of three distinct subsets: negative integers, zero, and positive integers. In this sense, the positive integers are just the natural numbers. Another way to think about it is that the natural numbers are a subset of the integers.

$\begin{array}{lll}{\text{negative integers}}\hfill & {\text{zero}}\hfill & {\text{positive integers}}\\{\dots ,-3,-2,-1,}\hfill & {0,}\hfill & {1,2,3,\dots }\end{array}$

## Rational numbers

What type of numbers would you get if you started with all the integers and then included all the fractions? The numbers you would have form the set of rational numbers. A rational number is a number that can be written as a ratio of two integers.

### Rational Numbers

A rational number is a number that can be written in the form ${\Large\frac{p}{q}}$, where $p$ and $q$ are integers and $q\ne 0$.

A rational number, $\mathbb{Q}$, is a number that can be expressed as a fraction with an integer numerator and a positive integer denominator.  The set of rational numbers is written as $\left\{\dfrac{m}{n}\normalsize |m\text{ and }{n}\text{ are integers and }{n}\ne{ 0 }\right\}$. Notice from the definition that rational numbers are fractions (or quotients) containing integers in both the numerator and the denominator, and the denominator is never $0$. We can also see that every natural number, whole number, and integer is a rational number with a denominator of $1$.

All fractions, both positive and negative, are rational numbers. A few examples are

$\Large\frac{4}{5}\normalsize ,-\Large\frac{7}{8}\normalsize ,\Large\frac{13}{4}\normalsize ,\text{and}-\Large\frac{20}{3}$

Each numerator and each denominator is an integer.

We need to look at all the numbers we have used so far and verify that they are rational. The definition of rational numbers tells us that all fractions are rational. We will now look at the counting numbers, whole numbers, integers, and decimals to make sure they are rational.

#### Integers are rational

Are integers rational numbers? To decide if an integer is a rational number, we try to write it as a ratio of two integers. An easy way to do this is to write it as a fraction with denominator one.

$3=\Large\frac{3}{1}\normalsize ,\space-8=\Large\frac{-8}{1}\normalsize ,\space0=\Large\frac{0}{1}$

Since any integer can be written as the ratio of two integers, all integers are rational numbers. Remember that all the counting numbers and all the whole numbers are also integers, and so they, too, are rational.

#### Decimals are rational

What about decimals? Are they rational? Let’s look at a few to see if we can write each of them as the ratio of two integers. We’ve already seen that integers are rational numbers. The integer $-8$ could be written as the decimal $-8.0$. So, clearly, some decimals are rational.

Think about the decimal $7.3$. Can we write it as a ratio of two integers? Because $7.3$ means $7\Large\frac{3}{10}$, we can write it as an improper fraction, $\Large\frac{73}{10}$. So $7.3$ is the ratio of the integers $73$ and $10$. It is a rational number.

In general, any decimal that ends after a number of digits such as $7.3$ or $-1.2684$ is a rational number. We can use the place value of the last digit as the denominator when writing the decimal as a fraction.

### example

Write each as the ratio of two integers:

1. $-15$

2. $6.81$

3. $-3\Large\frac{6}{7}$

Solution:

 1. $-15$ Write the integer as a fraction with denominator 1. $\Large\frac{-15}{1}$
 2. $6.81$ Write the decimal as a mixed number. $6\Large\frac{81}{100}$ Then convert it to an improper fraction. $\Large\frac{681}{100}$
 3. $-3\Large\frac{6}{7}$ Convert the mixed number to an improper fraction. $-\Large\frac{27}{7}$

### try it

#### Rational numbers as decimals

Let’s look at the decimal form of the numbers we know are rational. We have seen that every integer is a rational number, since $a=\Large\frac{a}{1}$ for any integer, $a$. We can also change any integer to a decimal by adding a decimal point and a zero.

Integer $-2,-1,0,1,2,3$

Decimal $-2.0,-1.0,0.0,1.0,2.0,3.0$

These decimal numbers stop.

We have also seen that every fraction is a rational number. Look at the decimal form of the fractions we just considered.

Ratio of Integers $\Large\frac{4}{5}\normalsize ,\Large\frac{7}{8}\normalsize ,\Large\frac{13}{4}\normalsize ,\Large\frac{20}{3}$

Decimal Forms $0.8,-0.875,3.25,-6.666\ldots,-6.\overline{66}$

These decimals either stop or repeat.

What do these examples tell you? Every rational number can be written both as a ratio of integers and as a decimal that either stops or repeats. The table below shows the numbers we looked at expressed as a ratio of integers and as a decimal.

Rational Numbers
Fractions Integers
Number $\Large\frac{4}{5}\normalsize ,-\Large\frac{7}{8}\normalsize ,\Large\frac{13}{4}\normalsize ,\Large\frac{-20}{3}$ $-2,-1,0,1,2,3$
Ratio of Integer $\Large\frac{4}{5}\normalsize ,\Large\frac{-7}{8}\normalsize ,\Large\frac{13}{4}\normalsize ,\Large\frac{-20}{3}$ $\Large\frac{-2}{1}\normalsize ,\Large\frac{-1}{1}\normalsize ,\Large\frac{0}{1}\normalsize ,\Large\frac{1}{1}\normalsize ,\Large\frac{2}{1}\normalsize ,\Large\frac{3}{1}$
Decimal number $0.8,-0.875,3.25,-6.\overline{6}$ $-2.0,-1.0,0.0,1.0,2.0,3.0$

Because they are fractions, any rational number can also be expressed in decimal form. Any rational number can be represented as either:

1. a terminating decimal: $\dfrac{15}{8}\normalsize =1.875$, or
2. a repeating decimal: $\dfrac{4}{11}\normalsize =0.36363636\dots =0.\overline{36}$

We use a line drawn over the repeating block of numbers instead of writing the group multiple times.

### Example

Write each of the following as a rational number.

1. $7$
2. $0$
3. $–8$

### Example

Write each of the following rational numbers as either a terminating or repeating decimal.

1. $-\dfrac{5}{7}$
2. $\dfrac{15}{5}$
3. $\dfrac{13}{25}$

## Irrational Numbers

Are there any decimals that do not stop or repeat? Yes.  At some point in the ancient past, someone discovered that not all numbers are rational numbers. A builder, for instance, may have found that the diagonal of a square with unit sides was not $2$ or even $\dfrac{3}{2}$, but was something else. Or a garment maker might have observed that the ratio of the circumference to the diameter of a roll of cloth was a little bit more than $3$, but still not a rational number.  The number $\pi$ (the Greek letter pi, pronounced ‘pie’), which is very important in describing circles, has a decimal form that does not stop or repeat ($\pi =\text{3.141592654…….}$).  Such numbers are said to be irrational because they cannot be written as fractions. These numbers make up the set of irrational numbers. Irrational numbers cannot be expressed as a fraction of two integers. It is impossible to describe this set of numbers by a single rule except to say that a number is irrational if it is not rational. So we write this as {h | h is not a rational number}.

Similarly, the decimal representations of square roots of numbers that are not perfect squares never stop and never repeat. For example,

$\sqrt{5}=\text{2.236067978…..}$

A decimal that does not stop and does not repeat cannot be written as the ratio of integers. We call this kind of number an irrational number.

### Irrational Number

An irrational number is a number that cannot be written as the ratio of two integers. Its decimal form does not stop and does not repeat.

Let’s summarize a method we can use to determine whether a number is rational or irrational.
If the decimal form of a number

• stops or repeats, the number is rational.
• does not stop and does not repeat, the number is irrational.

### example

Identify each of the following as rational or irrational:
1. $0.58\overline{3}$
2. $0.475$
3. $3.605551275\dots$

### try it

Let’s think about square roots now. Square roots of perfect squares are always whole numbers, so they are rational. But the decimal forms of square roots of numbers that are not perfect squares never stop and never repeat, so these square roots are irrational.

### example

Identify each of the following as rational or irrational:
1. $\sqrt{36}$
2. $\sqrt{44}$

### try it

In the following video we show more examples of how to determine whether a number is irrational or rational.

### Example

Determine whether each of the following numbers is rational or irrational. If it is rational, determine whether it is a terminating or repeating decimal.

1. $\sqrt{25}$
2. $\dfrac{33}{9}$
3. $\sqrt{11}$
4. $\dfrac{17}{34}$
5. $0.3033033303333\dots$

## Real numbers

Given any number n, we know that n is either rational or irrational. It cannot be both. The sets of rational and irrational numbers together make up the set of real numbers.

### Real Numbers

Real numbers are numbers that are either rational or irrational.

The real numbers include all the measuring numbers. The symbol for the real numbers is $\mathbb{R}$. Real numbers are usually represented by using decimal numerals.  As we saw with integers, the real numbers can be divided into three subsets: negative real numbers, zero, and positive real numbers. Each subset includes fractions, decimals, and irrational numbers according to their algebraic sign (+ or –). Zero is considered neither positive nor negative.

The real numbers can be visualized on a horizontal number line with an arbitrary point chosen as $0$, with negative numbers to the left of $0$ and positive numbers to the right of $0$. A fixed unit distance is then used to mark off each integer (or other basic value) on either side of $0$. Any real number corresponds to a unique position on the number line.  The converse is also true: Each location on the number line corresponds to exactly one real number. This is known as a one-to-one correspondence. We refer to this as the real number line as shown below. The real number line.

### Example

Classify each number as either positive or negative and as either rational or irrational. Does the number lie to the left or the right of 0 on the number line?

1. $-\dfrac{10}{3}$
2. $\sqrt{5}$
3. $-\sqrt{289}$
4. $-6\pi$
5. $0.615384615384\dots$

We have seen that all counting numbers are whole numbers, all whole numbers are integers, and all integers are rational numbers. Irrational numbers are a separate category of their own. When we put together the rational numbers and the irrational numbers, we get the set of real numbers.  Beginning with the natural numbers, we have expanded each set to form a larger set, meaning that there is a subset relationship between the sets of numbers we have encountered so far. These relationships become more obvious when seen as a diagram.

This diagram illustrates the relationships between the different types of real numbers. Here is another visualization of the subsets of the real numbers. Sets of numbers.   N: the set of natural numbers   W: the set of whole numbers   I: the set of integers   Q: the set of rational numbers   : the set of irrational numbers

### A General Note: Sets of Numbers

The set of natural numbers includes the numbers used for counting: $\{1,2,3,\dots\}$.

The set of whole numbers is the set of natural numbers and zero: $\{0,1,2,3,\dots\}$.

The set of integers adds the negative natural numbers to the set of whole numbers: $\{\dots,-3,-2,-1,0,1,2,3,\dots\}$.

The set of rational numbers includes fractions written as $\{\dfrac{m}{n}\normalsize |m\text{ and }n\text{ are integers and }n\ne 0\}$.

The set of irrational numbers is the set of numbers that are not rational. They are nonrepeating and nonterminating decimals: $\{h|h\text{ is not a rational number}\}$.

Does the term “real numbers” seem strange to you? Are there any numbers that are not “real”, and, if so, what could they be? For centuries, the only numbers people knew about were what we now call the real numbers. Then mathematicians discovered the set of imaginary numbers. You won’t encounter imaginary numbers in this module, but you will later on in your studies of algebra.

### example

Determine whether each of the numbers in the following list is a 1. whole number, 2. integer, 3. rational number, 4. irrational number, and 5. real number.

$-7,\Large\frac{14}{5}\normalsize ,8,\sqrt{5},5.9,-\sqrt{64}$

Solution:
1. The whole numbers are $0,1,2,3\dots$ The number $8$ is the only whole number given.

2. The integers are the whole numbers, their opposites, and $0$. From the given numbers, $-7$ and $8$ are integers. Also, notice that $64$ is the square of $8$ so $-\sqrt{64}=-8$. So the integers are $-7,8,-\sqrt{64}$.

3. Since all integers are rational, the numbers $-7,8,\text{and}-\sqrt{64}$ are also rational. Rational numbers also include fractions and decimals that terminate or repeat, so $\Large\frac{14}{5}\normalsize\text{and}5.9$ are rational.

4. The number $5$ is not a perfect square, so $\sqrt{5}$ is irrational.

5. All of the numbers listed are real.

We’ll summarize the results in a table.

Number Whole Integer Rational Irrational Real
$-7$ $\quad\checkmark$ $\quad\checkmark$ $\quad\checkmark$
$\Large\frac{14}{5}$ $\quad\checkmark$ $\quad\checkmark$
$8$ $\quad\checkmark$ $\quad\checkmark$ $\quad\checkmark$ $\quad\checkmark$
$\sqrt{5}$ $\quad\checkmark$ $\quad\checkmark$
$5.9$ $\quad\checkmark$ $\quad\checkmark$
$-\sqrt{64}$ $\quad\checkmark$ $\quad\checkmark$ $\quad\checkmark$

### Example

Classify each number as being a natural number (N), whole number (W), integer (I), rational number (Q), and/or irrational number (Q’).

1. $\sqrt{36}$
2. $\dfrac{8}{3}$
3. $\sqrt{73}$
4. $-6$
5. $3.2121121112\dots$

### try it

The following mini-lesson provides more examples of how to classify real numbers.

## Contribute!

Did you have an idea for improving this content? We’d love your input.