Rational and Irrational Numbers
Identify rational numbers and irrational numbers
We have already described numbers as counting numbers, whole numbers, and integers. Do you remember what the difference is among these types of numbers?
| counting numbers | |
| whole numbers | |
| integers |
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.
All fractions, both positive and negative, are rational numbers. A few examples are
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.
Are integers rational numbers? To decide, we try to write each one as a ratio of two integers. An easy way to do this is to write it as a fraction with denominator one.
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.
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 could be written as the decimal . So, clearly, some decimals are rational.
Think about the decimal . Can we write it as a ratio of two integers? Because means , we can write it as an improper fraction, . So is the ratio of the integers and . It is a rational number.
In general, any decimal that ends after a number of digits (such as or ) is a rational number. We simply write it as a mixed number and then convert it to an improper fraction. Every one of the numbers we have used so far can be summarized this way:
| Fractions | Integers | |
|---|---|---|
| Number | ||
| Ratio of integers | ||
| Decimal number |
Example. Write each as the ratio of two integers: (a) (b) (c) .
(a) Write the integer as a fraction with denominator :
(b) Write the decimal as a mixed number, then convert it to an improper fraction:
(c) Convert the mixed number to an improper fraction:
Write as the ratio of two integers, in lowest terms.
3.57 means 3 and 57 hundredths — write it as a mixed number, then convert to an improper fraction.Write as the ratio of two integers, in lowest terms.
8.41 means 8 and 41 hundredths — write it as a mixed number, then convert to an improper fraction.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 for any integer . We can also change any integer to a decimal by adding a decimal point and a zero: become — these decimals stop.
We have also seen that every fraction is a rational number. Look at the decimal form of the fractions we just considered:
These decimals either stop, or they repeat. What do these examples tell us? Every rational number can be written both as a ratio of integers and as a decimal that either stops or repeats.
Irrational numbers
Are there any decimals that do not stop or repeat? Yes. The number (the Greek letter pi, pronounced “pie”), which is very important in describing circles, has a decimal form that does not stop or repeat:
Similarly, the decimal representations of square roots of whole numbers that are not perfect squares never stop and never repeat. For example,
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.
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; if it does not stop and does not repeat, the number is irrational.
Example. Identify each of the following as rational or irrational: (a) (b) (c)
(a) The bar above the indicates that it repeats. Therefore is a repeating decimal, and is therefore a rational number.
(b) This decimal stops after the , so it is a rational number.
(c) The ellipsis () means that this number does not stop. There is no repeating pattern of digits. Since the number doesn’t stop and doesn’t repeat, it is irrational.
How many of these three numbers are irrational: , (the 6 repeats forever), and ?
stops. repeats. Only neither stops nor settles into a repeating pattern.How many of these three numbers are irrational: (the 3 repeats forever), , and ?
repeats and stops, so both are rational. Only neither stops nor repeats.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: (a) (b) .
(a) The number is a perfect square, since . So . Therefore is rational.
(b) Remember that and , so is not a perfect square. This means is irrational.
Evaluate .
is a perfect square: .How many of these two square roots are irrational: and ?
, a perfect square, so is rational. is not a perfect square ( and ).Classify real numbers
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.
The diagram below illustrates how the number sets are related: counting numbers sit inside whole numbers, which sit inside integers, which sit inside rational numbers; rational numbers and irrational numbers together make up the real numbers.
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 course, but you will later on in your studies of algebra.
Example. Determine whether each of the numbers in the following list is a (a) whole number (b) integer (c) rational number (d) irrational number and (e) real number:
(a) The whole numbers are The number is the only whole number given.
(b) The integers are the whole numbers, their opposites, and . From the given numbers, and are integers. Also, notice that is the square of , so . So the integers are .
(c) Since all integers are rational, the numbers and are also rational. Rational numbers also include fractions and decimals that terminate or repeat, so and are rational.
(d) The number is not a perfect square, so is irrational.
(e) All of the numbers listed are real.
We can summarize the results in a table:
| Number | Whole | Integer | Rational | Irrational | Real |
|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | |||
| ✓ | ✓ | ||||
| ✓ | ✓ | ✓ | ✓ | ||
| ✓ | ✓ | ||||
| ✓ | ✓ | ||||
| ✓ | ✓ | ✓ |
How many of these numbers are integers: , , (repeating), , , ?
. Together with and , that's every integer in the list — the rest are irrational or non-integer fractions.How many of these numbers are whole numbers: , , , , , ?
Whole numbers are non-negative integers. and both qualify; and are negative.Key terms
rational number — a number that can be written as , where and are integers and ; its decimal form stops or repeats. irrational number — a number that cannot be written as the ratio of two integers; its decimal form neither stops nor repeats. real number — a number that is either rational or irrational.
This section is adapted from Prealgebra 2e, Section 7.1: Rational and Irrational Numbers by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the nested real-number-sets diagram as an accessible inline graphic; omitted the Be Prepared quiz, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback, rephrasing the rational-vs-irrational classification problems as counting questions so they can be graded as math expressions.