Skip to main content
Mathematics LibreTexts

9.1.3: Rational and Real Numbers

  • Page ID
    64038
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Identify the subset(s) of the real numbers that a given number belongs to.
    • Locate points on a number line.
    • Compare rational numbers.
    • Identify rational and irrational numbers.

    Introduction

    You’ve worked with fractions and decimals, like 3.8 and \(\ 21 \frac{2}{3}\). These numbers can be found between the integer numbers on a number line. There are other numbers that can be found on a number line, too. When you include all the numbers that can be put on a number line, you have the real number line. Let's dig deeper into the number line to see what those numbers look like and where they fall on the number line.

    Rational Numbers

    The fraction \(\ \frac{16}{3}\), mixed number \(\ 5 \frac{1}{3}\), and decimal 5.33... (or \(\ 5 . \overline{3}\)) all represent the same number. This number belongs to a set of numbers that mathematicians call rational numbers. Rational numbers are numbers that can be written as a ratio of two integers. Regardless of the form used, \(\ 5 . \overline{3}\) is rational because this number can be written as the ratio of 16 over 3, or \(\ \frac{16}{3}\).

    Examples of rational numbers include the following.

    0.5, as it can be written as \(\ \frac{1}{2}\)

    \(\ 2 \frac{3}{4}\), as it can be written as \(\ \frac{11}{4}\)

    \(\ -1.6\), as it can be written as \(\ -1 \frac{6}{10}=\frac{-16}{10}\)

    \(\ 4\), as it can be written as \(\ \frac{4}{1}\)

    -10, as it can be written as \(\ \frac{-10}{1}\)

    All of these numbers can be written as the ratio of two integers.

    You can locate these points on the number line.

    In the following illustration, points are shown for 0.5 or \(\ \frac{1}{2}\), and for 2.75 or \(\ 2 \frac{3}{4}=\frac{11}{4}\).

    Screen Shot 2021-05-20 at 3.04.16 PM.png

    As you have seen, rational numbers can be negative. Each positive rational number has an opposite. The opposite of \(\ 5 . \overline{3}\) is \(\ -5 . \overline{3}\), for example.

    Be careful when placing negative numbers on a number line. The negative sign means the number is to the left of 0, and the absolute value of the number is the distance from 0. So to place -1.6 on a number line, you would find a point that is |-1.6| or 1.6 units to the left of 0. This is more than 1 unit away, but less than 2.

    Screen Shot 2021-05-20 at 3.10.06 PM.png

    Example

    Place \(\ -\frac{23}{5}\) on a number line.

    Solution

    It's helpful to first write this improper fraction as a mixed number: 23 divided by 5 is 4 with a remainder of 3, so \(\ -\frac{23}{5}\) is \(\ -4 \frac{3}{5}\).

    Since the number is negative, you can think of it as moving \(\ 4 \frac{3}{5}\) units to the left of 0. \(\ -4 \frac{3}{5}\) will be between -4 and -5.

    Screen Shot 2021-05-20 at 3.13.38 PM.png

    Exercise

    Which of the following points represents \(\ -1 \frac{1}{4}\)?

    Screen Shot 2021-05-20 at 3.16.02 PM.png

    Answer
    1. Incorrect. This point is just over 2 units to the left of 0. The point should be 1.25 units to the left of 0. The correct answer is point B.
    2. Correct. Negative numbers are to the left of 0, and \(\ -1 \frac{1}{4}\) should be 1.25 units to the left. Point B is the only point that’s more than 1 unit and less than 2 units to the left of 0.
    3. Incorrect. Notice that this point is between 0 and and the first unit mark to the left of 0, so it represents a number between -1 and 0. The point for \(\ -1 \frac{1}{4}\) should be 1.25 units to the left of 0. You may have correctly found 1 unit to the left, but instead of continuing to the left another 0.25 unit, you moved right. The correct answer is point B.
    4. Incorrect. Negative numbers are to the left of 0, not to the right. The point for \(\ -1 \frac{1}{4}\) should be 1.25 units to the left of 0. The correct answer is point B.
    5. Incorrect. This point is 1.25 units to the right of 0, so it has the correct distance but in the wrong direction. Negative numbers are to the left of 0. The correct answer is point B.

    Comparing Rational Numbers

    When two whole numbers are graphed on a number line, the number to the right on the number line is always greater than the number on the left.

    The same is true when comparing two integers or rational numbers. The number to the right on the number line is always greater than the one on the left.

    Here are some examples.

    Numbers to Compare Comparison Symbolic Expression
    \(\ -2 \text { and }-3\) -2 is greater than -3 because -2 is to the right of -3 \(\ -2>-3 \text { or }-3<-2\)
    \(\ 2 \text { and } 3\) 3 is greater than 2 because 3 is to the right of 2 \(\ 3>2 \text { or } 2<3\)
    \(\ -3.5 \text { and }-3.1\) -3.1 is greater than -3.5 because -3.1 is to the right of -3.5 (see below) \(\ \begin{array}{l}
    -3.1>-3.5 \text { or }
    -3.5<-3.1
    \end{array}\)

    Screen Shot 2021-05-20 at 3.36.38 PM.png

    Exercise

    Which of the following are true?

    Option \(\ \text { 1. }-4.1>3.2\)

    Option \(\ \text { 2. }-3.2>-4.1\)

    Option \(\ \text { 3. }3 .2>4.1\)

    Option \(\ \text { 4. }-4.6<-4.1\)

    1. Option 1 and Option 4
    2. Option 1 and Option 2
    3. Option 2 and Option 3
    4. Option 2 and Option 4
    5. Options 1, 2, and 3
    Answer
    1. Incorrect. -4.6 is to the left of -4.1, so -4.6<-4.1. However, positive numbers such as 3.2 are always to the right of negative numbers such as -4.1, so 3.2>-4.1 or -4.1<3.2. The correct answer is ii and iv, -3.2>-4.1 and -4.6<-4.1.
    2. Incorrect. -3.2 is to the right of -4.1, so -3.2>-4.1. However, positive numbers such as 3.2 are always to the right of negative numbers such as -4.1, so 3.2>-4.1 or -4.1<3.2. The correct answer is ii and iv, -3.2>-4.1 and -4.6<-4.1.
    3. Incorrect. -3.2 is to the right of -4.1, so -3.2>-4.1. However, 3.2 is to the left of 4.1, so 3.2<4.1. The correct answer is ii and iv, -3.2>-4.1 and -4.6<-4.1.
    4. Correct. -3.2 is to the right of -4.1, so -3.2>-4.1. Also, -4.6 is to the left of -4.1, so -4.6<-4.1.
    5. Incorrect. -3.2 is to the right of -4.1, so -3.2>-4.1. However, positive numbers such as 3.2 are always to the right of negative numbers such as -4.1, so 3.2>-4.1 or -4.1<3.2. Also, 3.2 is to the left of 4.1, so 3.2<4.1. The correct answer is ii and iv, -3.2>-4.1 and -4.6<-4.1.

    Irrational and Real Numbers

    There are also numbers that are not rational. Irrational numbers cannot be written as the ratio of two integers.

    Any square root of a number that is not a perfect square, for example \(\ \sqrt{2}\), is irrational. Irrational numbers are most commonly written in one of three ways: as a root (such as a square root), using a special symbol (such as \(\ \pi\)), or as a nonrepeating, nonterminating decimal.

    Numbers with a decimal part can either be terminating decimals or nonterminating decimals. Terminating means the digits stop eventually (although you can always write zeros at the end). For example, 1.3 is terminating, because there’s a last digit. The decimal form of \(\ \frac{1}{4}\) is 0.25. Terminating decimals are always rational.

    Nonterminating decimals have digits (other than 0) that continue forever. For example, consider the decimal form of \(\ \frac{1}{3}\), which is 0.3333 ... The 3s continue indefinitely. Or the decimal form of \(\ \frac{1}{11}\), which is 0.090909 ...: the sequence "09" continues forever.

    In addition to being nonterminating, these two numbers are also repeating decimals. Their decimal parts are made of a number or sequence of numbers that repeats again and again. A nonrepeating decimal has digits that never form a repeating pattern. The value of \(\ \sqrt{2}\), for example, is 1.414213562... No matter how far you carry out the numbers, the digits will never repeat a previous sequence.

    If a number is terminating or repeating, it must be rational; if it is both nonterminating and nonrepeating, the number is irrational.

    Type of Decimal Rational or Irrational Examples
    Terminating Rational

    \(\ \left.0.25 \text { (or } \frac{1}{4}\right)\)

    \(\ \left.1.3 \text { (or } \frac{13}{10}\right)\)

    Nonterminating and Repeating Rational

    \(\ \left.0.66 \ldots \text { (or } \frac{2}{3}\right)\)

    \(\ 3.242424 \ldots \text { (or) }\)

    \(\ \frac{321}{99}=\frac{107}{33}\)

    Nonterminating and Nonrepeating Irrational

    \(\ \pi \text { (or 3.14159...) }\)

    \(\ \sqrt{7} \text { (or } 2.6457 \ldots)\)

    Screen Shot 2021-05-20 at 8.10.40 PM.png

    Example

    Is -82.91 rational or irrational?

    Solution

    -82.91 is rational. The number is rational, because it is a terminating decimal.

    The set of real numbers is made by combining the set of rational numbers and the set of irrational numbers. The real numbers include natural numbers or counting numbers, whole numbers, integers, rational numbers (fractions and repeating or terminating decimals), and irrational numbers. The set of real numbers is all the numbers that have a location on the number line.

    Sets of Numbers

    Natural numbers 1, 2, 3, ...

    Whole numbers 0, 1, 2, 3, ...

    Integers ..., -3, -2, -1, 0, 1, 2, 3, ...

    Rational numbers: numbers that can be written as a ratio of two integers—rational numbers are terminating or repeating when written in decimal form

    Irrational numbers: numbers that cannot be written as a ratio of two integers—irrational numbers are nonterminating and nonrepeating when written in decimal form

    Real numbers: any number that is rational or irrational

    Example

    What sets of numbers does 32 belong to?

    Solution

    The number 32 belongs to all these sets of numbers:

    Natural numbers

    Whole numbers

    Integers

    Rational numbers

    Real numbers

    Every natural or counting number belongs to all of these sets!
    Example

    What sets of numbers does \(\ 382 . \overline{3}\) belong to?

    Solution

    \(\ 382 . \overline{3}\) belongs to these sets of numbers:

    Rational numbers

    Real numbers

    The number is rational because it's a repeating decimal. It's equal to \(\ 382 \frac{1}{3}\) or \(\ \frac{1,147}{3}\), or \(\ 382 . \overline{3}\).
    Example

    What sets of numbers does \(\ -\sqrt{5}\) belong to?

    Solution

    \(\ -\sqrt{5}\) belongs to these sets of numbers:

    Irrational numbers

    Real numbers

    The number is irrational because it can't be written as a ratio of two integers. Square roots that aren't perfect squares are always irrational.
    Exercise

    Which of the following sets does \(\ \frac{-33}{5}\) belong to?

    whole numbers

    integers

    rational numbers

    irrational numbers

    real numbers

    1. rational numbers only
    2. irrational numbers only
    3. rational and real numbers
    4. irrational and real numbers
    5. integers, rational numbers, and real numbers
    6. whole numbers, integers, rational numbers, and real numbers
    Answer
    1. Incorrect. The number is rational (it's written as a ratio of two integers) but it's also real. All rational numbers are also real numbers. The correct answer is rational and real numbers, because all rational numbers are also real.
    2. Incorrect. Irrational numbers can't be written as a ratio of two integers. The correct answer is rational and real numbers, because all rational numbers are also real.
    3. Correct. The number is between integers, so it can't be an integer or a whole number. It's written as a ratio of two integers, so it's a rational number and not irrational. All rational numbers are real numbers, so this number is rational and real.
    4. Incorrect. Irrational numbers can't be written as a ratio of two integers. The correct answer is rational and real numbers, because all rational numbers are also real.
    5. Incorrect. The number is between integers, not an integer itself. The correct answer is rational and real numbers.
    6. Incorrect. The number is between integers, so it can't be an integer or a whole number. The correct answer is rational and real numbers.

    Summary

    The set of real numbers is all numbers that can be shown on a number line. This includes natural or counting numbers, whole numbers, and integers. It also includes rational numbers, which are numbers that can be written as a ratio of two integers, and irrational numbers, which cannot be written as a the ratio of two integers. When comparing two numbers, the one with the greater value would appear on the number line to the right of the one with the lesser value.


    This page titled 9.1.3: Rational and Real Numbers is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform.