Math Core

Lesson 1.1 · Real Numbers

Rational and irrational numbers

You already know how to work with fractions, decimals and negative numbers. In 8th grade you meet a surprising fact: some numbers on the number line can never be written as a fraction. This lesson shows you how to tell the two kinds of numbers apart.

Rational numbers

The word rational comes from ratio. A rational number is any number you can write as a ratio (a fraction) of two integers.

Definition

Rational number

A rational number is a number that can be written as ab\dfrac{a}{b}, where aa and bb are integers and b≠0b \ne 0.

The key word is can. A number doesn't have to look like a fraction to be rational. You just need to be able to rewrite it as one.

numberwritten as a fraction
7771\dfrac{7}{1}
−4-4−41\dfrac{-4}{1}
0001\dfrac{0}{1}
0.90.9910\dfrac{9}{10}
−1.25-1.25−125100=−54-\dfrac{125}{100} = -\dfrac{5}{4}
3123\tfrac{1}{2}72\dfrac{7}{2}

So every integer, every terminating decimal and every mixed number is rational.

Decimals of rational numbers

To turn a fraction into a decimal, divide the numerator by the denominator. Only two things can happen:

  • The division ends (terminates): 38=3÷8=0.375\dfrac{3}{8} = 3 \div 8 = 0.375.
  • The division repeats forever: 511=0.454545…\dfrac{5}{11} = 0.454545\ldots

We write a repeating decimal with a bar over the digits that repeat: 0.454545…=0.45‾0.454545\ldots = 0.\overline{45}.

Why must it end or repeat? When you divide by 1111, each remainder is one of 0,1,2,…,100, 1, 2, \dots, 10. If you ever get a remainder of 00, the decimal ends. If not, you only have 1010 possible remainders, so sooner or later a remainder comes back. From that point on, the same steps (and the same digits) happen again and again.

Worked example: Fractions to decimals

Write each fraction as a decimal. Does it terminate or repeat?

  1. 720\dfrac{7}{20}
  2. 23\dfrac{2}{3}
  3. 56\dfrac{5}{6}

Solutions.

  1. 7÷20=0.357 \div 20 = 0.35. It terminates.
  2. 2÷3=0.666…=0.6‾2 \div 3 = 0.666\ldots = 0.\overline{6}. It repeats.
  3. 5÷6=0.8333…=0.83‾5 \div 6 = 0.8333\ldots = 0.8\overline{3}. Only the 33 repeats, so the bar goes over the 33 alone.

Irrational numbers

Some decimals go on forever and never fall into a repeating pattern. Since every fraction's decimal ends or repeats, these numbers cannot be fractions.

Definition

Irrational number

An irrational number is a number that cannot be written as ab\dfrac{a}{b} with integers aa and bb (b≠0b \ne 0). Its decimal never ends and never repeats.

The most famous examples are:

  • π=3.14159265…\pi = 3.14159265\ldots, the ratio of a circle's circumference to its diameter.
  • 2=1.41421356…\sqrt{2} = 1.41421356\ldots, the number that gives 22 when you multiply it by itself.
  • The square root of any whole number that is not a perfect square, such as 3\sqrt{3}, 10\sqrt{10} or 50\sqrt{50}.

A decimal can also be built to never repeat, like 0.101001000100001…0.101001000100001\ldots (one more 00 each time). There is a pattern, but no block of digits repeats, so it is irrational.

Together, the rational and irrational numbers make up the real numbers, which fill the whole number line. Every real number is exactly one of the two: rational or irrational, never both.

How to decide

  • Ends or repeats? Rational.
  • Goes on forever with no repeating block? Irrational.
  • A square root? Check whether the number inside is a perfect square. 25=5\sqrt{25} = 5 is rational; 26\sqrt{26} is irrational.

Common mistake

A calculator shows only about 10 digits, so it can't tell you whether a decimal repeats forever. 17\dfrac{1}{7} shows as 0.14285714290.1428571429, which looks random, but it really is 0.142857‾0.\overline{142857}, which is rational. Decide by what the number is (a fraction? a square root of a non-perfect square? π\pi?), not by what the screen shows.

Worked example: Classifying numbers

Is each number rational or irrational?

  1. 64\sqrt{64}
  2. 15\sqrt{15}
  3. −2.7‾-2.\overline{7}
  4. π2\dfrac{\pi}{2}
  5. 227\dfrac{22}{7}

Solutions.

  1. 64=8=81\sqrt{64} = 8 = \dfrac{8}{1}. Rational.
  2. 1515 is not a perfect square (32=93^2 = 9, 42=164^2 = 16). Irrational.
  3. The decimal repeats. Rational. (You'll learn how to write it as a fraction later in this unit.)
  4. Half of π\pi still never ends or repeats. Irrational.
  5. It is already a fraction of integers. Rational. It is close to π\pi, but it is not equal to π\pi: 227=3.142857‾\dfrac{22}{7} = 3.\overline{142857} while π=3.14159…\pi = 3.14159\ldots

Practice

Practice 1

Which number is irrational?

Practice 2

Write 920\dfrac{9}{20} as a decimal.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which is the correct way to write 712\dfrac{7}{12} as a decimal?

Practice 4

Which statement is true?

Practice 5

How many of these numbers are irrational?

81,8,5.21‾,2π,30,−49\sqrt{81}, \quad \sqrt{8}, \quad 5.\overline{21}, \quad 2\pi, \quad \sqrt{30}, \quad -\dfrac{4}{9}

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Maya's calculator shows 317=0.1764705882\dfrac{3}{17} = 0.1764705882. She says, "I see no pattern, so 317\dfrac{3}{17} is irrational." What is wrong with her reasoning?

Practice 7

The decimal 0.12112111211112…0.12112111211112\ldots keeps adding one more 11 before each 22. What kind of number is it?