Skip to content

The Real Numbers

By the end of this section, you will be able to: simplify expressions with square roots, identify integers, rational numbers, irrational numbers, and real numbers, locate fractions on the number line, and locate decimals on the number line.

Simplify expressions with square roots

Remember that when a number nn is multiplied by itself, we write n2n^2 and read it “n squared.” The result is called the square of nn. For example, 828^2 is read “8 squared,” and 82=648^2 = 64, so 6464 is called the square of 88.

Similarly, 121121 is the square of 1111, because 11211^2 is 121121.

Square of a number. If n2=mn^2 = m, then mm is the square of nn.

The squares of the counting numbers are positive numbers. What about the squares of negative numbers? We know that when the signs of two numbers are the same, their product is positive. So the square of any negative number is also positive.

(3)2=9(8)2=64(11)2=121(15)2=225(-3)^2 = 9 \qquad (-8)^2 = 64 \qquad (-11)^2 = 121 \qquad (-15)^2 = 225

Did you notice that these squares are the same as the squares of the positive numbers?

Sometimes we will need to look at the relationship between numbers and their squares in reverse. Because 102=10010^2 = 100, we say 100100 is the square of 1010. We also say that 1010 is a square root of 100100. A number whose square is mm is called a square root of mm.

Square root of a number. If n2=mn^2 = m, then nn is a square root of mm.

Notice (10)2=100(-10)^2 = 100 also, so 10-10 is also a square root of 100100. Therefore, both 1010 and 10-10 are square roots of 100100.

So, every positive number has two square roots — one positive and one negative. What if we only wanted the positive square root of a positive number? The radical sign, m\sqrt{m}, denotes the positive square root. The positive square root is called the principal square root. When we use the radical sign that always means we want the principal square root.

We also use the radical sign for the square root of zero. Because 02=00^2 = 0, 0=0\sqrt{0} = 0. Notice that zero has only one square root.

Square root notation. m\sqrt{m} is read “the square root of mm.” If m=n2m = n^2, then m=n\sqrt{m} = n, for n0n \geq 0. The square root of mm, m\sqrt{m}, is the positive number whose square is mm.

Since 1010 is the principal square root of 100100, we write 100=10\sqrt{100} = 10.

Example. Simplify: (a) 25\sqrt{25} (b) 121\sqrt{121}.

(a) Since 52=255^2 = 25, 25=5\sqrt{25} = 5.

(b) Since 112=12111^2 = 121, 121=11\sqrt{121} = 11.

Simplify: 36\sqrt{36}

Simplify: 169\sqrt{169}

Simplify: 16\sqrt{16}

We know that every positive number has two square roots and the radical sign indicates the positive one. We write 100=10\sqrt{100} = 10. If we want to find the negative square root of a number, we place a negative in front of the radical sign. For example, 100=10-\sqrt{100} = -10. We read 100-\sqrt{100} as “the opposite of the square root of 100.”

Example. Simplify: (a) 9-\sqrt{9} (b) 144-\sqrt{144}.

(a) The negative is in front of the radical sign: 9=3-\sqrt{9} = -3.

(b) The negative is in front of the radical sign: 144=12-\sqrt{144} = -12.

Simplify: 4-\sqrt{4}

Simplify: 225-\sqrt{225}

Simplify: 81-\sqrt{81}

Identify integers, rational numbers, irrational numbers, and real numbers

We have already described numbers as counting numbers, whole numbers, and integers. What is the difference between these types of numbers?

Counting numbers1,2,3,4,\text{Counting numbers} \quad 1, 2, 3, 4, \dotsWhole numbers0,1,2,3,4,\text{Whole numbers} \quad 0, 1, 2, 3, 4, \dotsIntegers,3,2,1,0,1,2,3,\text{Integers} \quad \dots, -3, -2, -1, 0, 1, 2, 3, \dots

What type of numbers would we get if we started with all the integers and then included all the fractions? The numbers we 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 number. A rational number is a number of the form pq\tfrac{p}{q}, where pp and qq are integers and q0q \neq 0. A rational number can be written as the ratio of two integers.

All signed fractions, such as 45,78,134,203\tfrac{4}{5}, -\tfrac{7}{8}, \tfrac{13}{4}, -\tfrac{20}{3} are rational numbers. Each numerator and each denominator is an integer.

Are integers rational numbers? To decide if an integer is a rational number, we try to write it as a ratio of two integers. Each integer can be written as a ratio of integers in many ways. For example, 33 is equivalent to 31,62,93,124,155\tfrac{3}{1}, \tfrac{6}{2}, \tfrac{9}{3}, \tfrac{12}{4}, \tfrac{15}{5} \dots

An easy way to write an integer as a ratio of integers is to write it as a fraction with denominator one.

3=318=810=013 = \frac{3}{1} \qquad -8 = -\frac{8}{1} \qquad 0 = \frac{0}{1}

Since any integer can be written as the ratio of two integers, all integers are rational numbers! Remember that the counting numbers and 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 8-8 could be written as the decimal 8.0-8.0. So, clearly, some decimals are rational.

Think about the decimal 7.37.3. Can we write it as a ratio of two integers? Because 7.37.3 means 73107\tfrac{3}{10}, we can write it as an improper fraction, 7310\tfrac{73}{10}. So 7.37.3 is the ratio of the integers 7373 and 1010. It is a rational number.

In general, any decimal that ends after a number of digits (such as 7.37.3 or 1.2684-1.2684) is a rational number. Simply write the decimal as a mixed number.

Example. Write as the ratio of two integers: (a) 27-27 (b) 7.317.31.

(a) Write it as a fraction with denominator 11: 27=271-27 = -\tfrac{27}{1}.

(b) Write it as a mixed number. Remember, 77 is the whole number and the decimal part, 0.310.31, indicates hundredths. Convert to an improper fraction: 7.31=731100=7311007.31 = 7\tfrac{31}{100} = \tfrac{731}{100}.

So we see that 27-27 and 7.317.31 are both rational numbers, since they can be written as the ratio of two integers.

Write as the ratio of two integers: 24-24

Write as the ratio of two integers: 3.573.57

Write as the ratio of two integers: 19-19

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=a1a = \tfrac{a}{1} for any integer aa. We can also change any integer to a decimal by adding a decimal point and a zero.

2=2.01=1.00=0.01=1.02=2.03=3.0-2 = -2.0 \qquad -1 = -1.0 \qquad 0 = 0.0 \qquad 1 = 1.0 \qquad 2 = 2.0 \qquad 3 = 3.0

These decimal numbers stop, which is why we call them stopping decimals.

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

45=0.878=0.875134=3.25203=6.666=6.6 \frac{4}{5} = 0.8 \qquad -\frac{7}{8} = -0.875 \qquad \frac{13}{4} = 3.25 \qquad -\frac{20}{3} = -6.666\ldots = -6.\overline{6}

These decimals either stop or repeat. What do these examples tell us? Every rational number can be written both as a ratio of integers, (pq, where p and q are integers and q0)\left(\tfrac{p}{q}\text{, where } p \text{ and } q \text{ are integers and } q \neq 0\right), and as a decimal that either stops or repeats.

Rational number. A rational number is a number of the form pq\tfrac{p}{q}, where pp and qq are integers and q0q \neq 0. Its decimal form stops or repeats.

Are there any decimals that do not stop or repeat? Yes! 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.

π=3.141592654\pi = 3.141592654\ldots

We can even create a decimal pattern that does not stop or repeat, such as

2.010010001000012.01001000100001\ldots

Numbers whose decimal form does not stop or repeat cannot be written as a fraction of integers. We call these numbers irrational.

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.

Rational or irrational? If the decimal form of a number

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

Example. Given the numbers 0.583,0.47,3.6055512750.58\overline{3}, 0.47, 3.605551275\ldots, list the (a) rational numbers (b) irrational numbers.

(a) Look for decimals that repeat or stop. The 33 repeats in 0.5830.58\overline{3}. The decimal 0.470.47 stops after the 77. So 0.5830.58\overline{3} and 0.470.47 are rational.

(b) Look for decimals that neither stop nor repeat. 3.6055512753.605551275\ldots has no repeating block of digits and it does not stop. So 3.6055512753.605551275\ldots is irrational.

Among the numbers 0.290.29, 0.80.8 with a repeating 66, and 2.5151151112.515115111\ldots, which one has a decimal form that repeats forever? Give that number.

Among the numbers 0.290.29, 0.80.8 with a repeating 66, and 2.5151151112.515115111\ldots, which one is irrational? Give that number.

Example. For each number given, identify whether it is rational or irrational: (a) 36\sqrt{36} (b) 44\sqrt{44}.

(a) Recognize that 3636 is a perfect square, since 62=366^2 = 36. So 36=6\sqrt{36} = 6, therefore 36\sqrt{36} is rational.

(b) Remember that 62=366^2 = 36 and 72=497^2 = 49, so 4444 is not a perfect square. Therefore, the decimal form of 44\sqrt{44} will never repeat and never stop, so 44\sqrt{44} is irrational.

For each number given, identify whether it is rational or irrational, by giving its simplified value if rational: 81\sqrt{81}

Is 17\sqrt{17} rational or irrational? Enter 11 if rational, 00 if irrational.

We have seen that all counting numbers are whole numbers, all whole numbers are integers, and all integers are rational numbers. The irrational numbers are numbers whose decimal form does not stop and does not repeat. When we put together the rational numbers and the irrational numbers, we get the set of real numbers.

Real number. A real number is a number that is either rational or irrational.

All the numbers we use in elementary algebra are real numbers. The figure below illustrates how the number sets we’ve discussed in this section fit together.

Real NumbersRational NumbersIntegersWhole NumbersCountingNumbersIrrationalNumbers

Can we simplify 25\sqrt{-25}? Is there a number whose square is 25-25?

( )2=25?(\ )^2 = -25?

None of the numbers that we have dealt with so far has a square that is 25-25. Why? Any positive number squared is positive. Any negative number squared is positive. So we say there is no real number equal to 25\sqrt{-25}.

The square root of a negative number is not a real number.

Example. For each number given, identify whether it is a real number or not a real number: (a) 169\sqrt{-169} (b) 64-\sqrt{64}.

(a) There is no real number whose square is 169-169. Therefore, 169\sqrt{-169} is not a real number.

(b) Since the negative is in front of the radical, 64-\sqrt{64} is 8-8. Since 8-8 is a real number, 64-\sqrt{64} is a real number.

Is 196\sqrt{-196} a real number? Enter 11 if it is a real number, 00 if it is not.

Simplify 81-\sqrt{81}, and note that this value is a real number.

Given the numbers 7,145,8,5,5.9,64-7, \tfrac{14}{5}, 8, \sqrt{5}, 5.9, -\sqrt{64}: the whole numbers are the counting numbers, plus zero — so 88 is the only whole number given. The integers are the whole numbers, their opposites, and 00. So the whole number 88 is an integer, and 7-7 is the opposite of a whole number so it is an integer, too. Also, notice that 6464 is the square of 88 so 64=8-\sqrt{64} = -8. So the integers are 7,8,64-7, 8, -\sqrt{64}.

Since all integers are rational, then 7,8,64-7, 8, -\sqrt{64} are rational. Rational numbers also include fractions and decimals that repeat or stop, so 145\tfrac{14}{5} and 5.95.9 are also rational. So the list of rational numbers is 7,145,8,5.9,64-7, \tfrac{14}{5}, 8, 5.9, -\sqrt{64}.

Remember that 55 is not a perfect square, so 5\sqrt{5} is irrational. All the numbers listed are real numbers.

For the given numbers 3-3, 2-\sqrt{2}, 0.30.3 repeating, 95\tfrac{9}{5}, 44, 49\sqrt{49}, list the one irrational number.

For the given numbers 3-3, 2-\sqrt{2}, 0.30.3 repeating, 95\tfrac{9}{5}, 44, 49\sqrt{49}, two of the numbers are whole numbers. Find their sum.

Locate fractions on the number line

The last time we looked at the number line, it only had positive and negative integers on it. We now want to include fractions and decimals on it.

Let’s start with fractions and locate 15,45,3,74,92,5\tfrac{1}{5}, -\tfrac{4}{5}, 3, \tfrac{7}{4}, -\tfrac{9}{2}, -5, and 83\tfrac{8}{3} on the number line.

We’ll start with the whole numbers 33 and 5-5, because they are the easiest to plot. The proper fractions listed are 15\tfrac{1}{5} and 45-\tfrac{4}{5}. We know the proper fraction 15\tfrac{1}{5} has value less than one and so would be located between 00 and 11. The denominator is 55, so we divide the unit from 00 to 11 into 55 equal parts: 15,25,35,45\tfrac{1}{5}, \tfrac{2}{5}, \tfrac{3}{5}, \tfrac{4}{5}. We plot 15\tfrac{1}{5}. Similarly, 45-\tfrac{4}{5} is between 00 and 1-1. After dividing the unit into 55 equal parts we plot 45-\tfrac{4}{5}.

Finally, look at the improper fractions 74,92,83\tfrac{7}{4}, -\tfrac{9}{2}, \tfrac{8}{3}. These are fractions in which the numerator is greater than the denominator. Locating these points may be easier if you change each of them to a mixed number:

74=13492=41283=223\frac{7}{4} = 1\frac{3}{4} \qquad -\frac{9}{2} = -4\frac{1}{2} \qquad \frac{8}{3} = 2\frac{2}{3}

The figure below shows the number line with all the points plotted.

-6-5-4-3-2-10123456-9/2-4/51/57/48/3

Example. Locate and label the following on a number line: 4,34,14,3,65,524, \tfrac{3}{4}, -\tfrac{1}{4}, -3, \tfrac{6}{5}, -\tfrac{5}{2}, and 73\tfrac{7}{3}.

Locate and plot the integers, 4,34, -3.

Locate the proper fraction 34\tfrac{3}{4} first. The fraction 34\tfrac{3}{4} is between 00 and 11. Divide the distance between 00 and 11 into four equal parts then we plot 34\tfrac{3}{4}. Similarly plot 14-\tfrac{1}{4}.

Now locate the improper fractions 65,52,73\tfrac{6}{5}, -\tfrac{5}{2}, \tfrac{7}{3}. It is easier to plot them if you convert them to mixed numbers and then plot them as described above: 65=115,52=212,73=213\tfrac{6}{5} = 1\tfrac{1}{5}, -\tfrac{5}{2} = -2\tfrac{1}{2}, \tfrac{7}{3} = 2\tfrac{1}{3}.

-6-5-4-3-2-10123456-5/2-1/43/46/57/3

Locate the following on a number line, then give the value that is farthest to the left: 1-1, 13\tfrac{1}{3}, 65\tfrac{6}{5}, 74-\tfrac{7}{4}, 92\tfrac{9}{2}, 55, 83-\tfrac{8}{3}.

In the next example, we’ll use the inequality symbols to order fractions. In previous chapters we used the number line to order numbers.

  • a<ba < baa is less than bb” when aa is to the left of bb on the number line
  • a>ba > baa is greater than bb” when aa is to the right of bb on the number line

As we move from left to right on a number line, the values increase.

Example. Order each of the following pairs of numbers, using << or >>: (a) 23 ___ 1-\tfrac{2}{3}\ \_\_\_\ -1 (b) 312 ___ 3-3\tfrac{1}{2}\ \_\_\_\ -3 (c) 34 ___ 14-\tfrac{3}{4}\ \_\_\_\ -\tfrac{1}{4} (d) 2 ___ 83-2\ \_\_\_\ -\tfrac{8}{3}.

(a) 23-\tfrac{2}{3} is to the right of 1-1 on the number line, so 23>1-\tfrac{2}{3} > -1.

(b) 312-3\tfrac{1}{2} is to the left of 3-3 on the number line, so 312<3-3\tfrac{1}{2} < -3.

(c) 34-\tfrac{3}{4} is to the left of 14-\tfrac{1}{4} on the number line, so 34<14-\tfrac{3}{4} < -\tfrac{1}{4}.

(d) 2-2 is to the right of 83-\tfrac{8}{3} on the number line, so 2>83-2 > -\tfrac{8}{3}.

Order the following pair of numbers, using the complete inequality: 13-\tfrac{1}{3} or 1-1

Order the following pair of numbers, using the complete inequality: 112-1\tfrac{1}{2} or 2-2

Order the following pair of numbers, using the complete inequality: 23-\tfrac{2}{3} or 13-\tfrac{1}{3}

Locate decimals on the number line

Since decimals are forms of fractions, locating decimals on the number line is similar to locating fractions on the number line.

Example. Locate 0.40.4 on the number line.

A proper fraction has value less than one. The decimal number 0.40.4 is equivalent to 410\tfrac{4}{10}, a proper fraction, so 0.40.4 is located between 00 and 11. On a number line, divide the interval between 00 and 11 into 1010 equal parts. Now label the parts 0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.00.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0. We write 00 as 0.00.0 and 11 as 1.01.0, so that the numbers are consistently in tenths. Finally, mark 0.40.4 on the number line.

0.00.10.20.30.40.50.60.70.80.91

Locate 0.60.6 on the number line by giving its equivalent tenths fraction with denominator 1010.

Locate 0.90.9 on the number line by giving its equivalent tenths fraction with denominator 1010.

Example. Locate 0.74-0.74 on the number line.

The decimal 0.74-0.74 is equivalent to 74100-\tfrac{74}{100}, so it is located between 00 and 1-1. On a number line, mark off and label the hundredths in the interval between 00 and 1-1.

-1.00-0.90-0.80-0.70-0.60-0.50-0.40-0.30-0.20-0.100.00-0.74

Locate 0.6-0.6 on the number line: is it to the left or to the right of 0.7-0.7? Give the complete inequality comparing 0.6-0.6 to 0.7-0.7.

Locate 0.7-0.7 on the number line: is it to the left or to the right of 0.6-0.6? Give the complete inequality comparing 0.7-0.7 to 0.6-0.6.

Which is larger, 0.040.04 or 0.400.40? If you think of this as money, you know that $0.40 (forty cents) is greater than $0.04 (four cents). So,

0.40>0.040.40 > 0.04

Again, we can use the number line to order numbers. Where are 0.040.04 and 0.400.40 located on the number line? We see that 0.400.40 is to the right of 0.040.04 on the number line. This is another way to demonstrate that 0.40>0.040.40 > 0.04.

How does 0.310.31 compare to 0.3080.308? This doesn’t translate into money to make it easy to compare. But if we convert 0.310.31 and 0.3080.308 into fractions, we can tell which is larger.

0.31=311000.308=30810000.31 = \frac{31}{100} \qquad 0.308 = \frac{308}{1000}

We need a common denominator to compare them:

311010010=31010003081000\frac{31 \cdot 10}{100 \cdot 10} = \frac{310}{1000} \qquad \frac{308}{1000}

Because 310>308310 > 308, we know that 3101000>3081000\tfrac{310}{1000} > \tfrac{308}{1000}. Therefore, 0.31>0.3080.31 > 0.308.

Notice what we did in converting 0.310.31 to a fraction — we started with the fraction 31100\tfrac{31}{100} and ended with the equivalent fraction 3101000\tfrac{310}{1000}. Converting 3101000\tfrac{310}{1000} back to a decimal gives 0.3100.310. So 0.310.31 is equivalent to 0.3100.310. Writing zeros at the end of a decimal does not change its value!

31100=3101000and0.31=0.310\frac{31}{100} = \frac{310}{1000} \qquad \text{and} \qquad 0.31 = 0.310

We say 0.310.31 and 0.3100.310 are equivalent decimals.

Equivalent decimals. Two decimals are equivalent if they convert to equivalent fractions.

We use equivalent decimals when we order decimals.

Order decimals.

  1. Write the numbers one under the other, lining up the decimal points.
  2. Check to see if both numbers have the same number of digits. If not, write zeros at the end of the one with fewer digits to make them match.
  3. Compare the numbers as if they were whole numbers.
  4. Order the numbers using the appropriate inequality sign.

Example. Order 0.64 ___ 0.60.64\ \_\_\_\ 0.6 using << or >>.

Write the numbers one under the other, lining up the decimal points: 0.640.64 and 0.60.6.

Add a zero to 0.60.6 to make it a decimal with 2 decimal places. Now they are both hundredths: 0.640.64 and 0.600.60.

6464 hundredths is greater than 6060 hundredths, so 0.64>0.600.64 > 0.60, and therefore 0.64>0.60.64 > 0.6.

Order the following pair of numbers, giving the complete inequality: 0.420.42 versus 0.40.4

Order the following pair of numbers, giving the complete inequality: 0.180.18 versus 0.10.1

Example. Order 0.83 ___ 0.8030.83\ \_\_\_\ 0.803 using << or >>.

Write the numbers one under the other, lining up the decimals: 0.830.83 and 0.8030.803.

They do not have the same number of digits. Write one zero at the end of 0.830.83: 0.8300.830 and 0.8030.803.

Since 830>803830 > 803, 830830 thousandths is greater than 803803 thousandths, so 0.830>0.8030.830 > 0.803, and therefore 0.83>0.8030.83 > 0.803.

Order the following pair of numbers, giving the complete inequality: 0.760.76 versus 0.7060.706

Order the following pair of numbers, giving the complete inequality: 0.3050.305 versus 0.350.35

When we order negative decimals, it is important to remember how to order negative integers. Recall that larger numbers are to the right on the number line. For example, because 2-2 lies to the right of 3-3 on the number line, we know that 2>3-2 > -3. Similarly, smaller numbers lie to the left on the number line. For example, because 9-9 lies to the left of 6-6 on the number line, we know that 9<6-9 < -6.

If we zoomed in on the interval between 00 and 1-1, we would see in the same way that 0.2>0.3-0.2 > -0.3 and 0.9<0.6-0.9 < -0.6.

Example. Use << or >> to order 0.1 ___ 0.8-0.1\ \_\_\_\ -0.8.

Write the numbers one under the other, lining up the decimal points. They have the same number of digits: 0.1-0.1 and 0.8-0.8.

Since 1>8-1 > -8, 1-1 tenth is greater than 8-8 tenths, so 0.1>0.8-0.1 > -0.8.

Order the following pair of numbers, giving the complete inequality: 0.3-0.3 versus 0.5-0.5

Order the following pair of numbers, giving the complete inequality: 0.6-0.6 versus 0.7-0.7

Key terms

square — the result n2n^2 of multiplying a number nn by itself. square root — a number whose square is mm; every positive number has a positive and a negative square root. principal square root — the positive square root of a number, denoted by the radical sign m\sqrt{m}. rational number — a number of the form pq\tfrac{p}{q}, where pp and qq are integers and q0q \neq 0; its decimal form stops or repeats. irrational number — a number that cannot be written as the ratio of two integers; its decimal form does not stop and does not repeat. real number — a number that is either rational or irrational. equivalent decimals — two decimals that convert to equivalent fractions.


This section is adapted from Elementary Algebra 2e, Section 1.8: The Real 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 number-set diagram and the number-line figures as accessible inline graphics; omitted the Be Prepared quiz, Manipulative Mathematics callouts, media links, Self Check checklist, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.