Skip to main content
Mathematics LibreTexts

1.1: Real Numbers

  • Page ID
    62172
  • \( \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}\)

    We begin our study of real numbers by discussing the rules for working with these numbers and combining them in a variety of ways. In elementary school, we typically start by learning basic ways of combining numbers, such as addition, subtraction, multiplication, and division, and later more advanced operations like exponents and roots. We will not be reviewing each of these operations, but we will discuss how these operations interact with each other and how to determine which operations need to be completed first in complicated mathematical expressions.

    You are probably already familiar with the phrase “order of operations.” When mathematicians refer to the order of operations they are referring to a guideline for which operations need to be computed first in complicated expressions:

    \[\begin{array}{lll}{\text{1. Parentheses}}&{\qquad}&{\text{3. Multiplication/Division}} \\ {\text{2. Exponents}}&{\qquad}&{\text{4. Addition/Subtraction}}\end{array}\nonumber\]

    Often we learn phrases such as “Please Excuse My Dear Aunt Sally” to help remember the order of these operations, but this guideline glosses over a few important details. Let’s take a look at each of the operations in more detail.

    1.1.1: Parentheses

    There are two important details to focus on with parentheses: nesting and “implied parentheses.” Let’s take a look at an example of nested parentheses first:

    Here we see a set of parentheses “nested” inside of a second set of parentheses. When we see this, we want to start with the inside set of parentheses first:

    Example \(\PageIndex{1}\): Nested Parentheses

    Evaluate

    \[\label{eq:1}2\times(3+(4\times 2))\]

    Solution

    Here we see a set of parentheses “nested” inside of a second set of parentheses. When we see this, we want to start with the inside set of parentheses first.

    \[\label{eqn:nested_parentheses_soln1} 2\times(3+(4\times2)) = 2\times(3+(8))\] Once we simplify the inside set of parentheses to where they contain only a single number, we can drop them. Then, it’s time to start on the next parentheses layer: \[\begin{align}\begin{aligned}\label{eqn:nested_parentheses_soln2} \begin{split} 2\times(3+(8)) & =2\times(3+8)\\ & = 2\times (11) \\ & = 22 \end{split}\end{aligned}\end{align}\] This gives our final answer:

    \[2\times (3+(4\times 2))=22\]

    Sometimes this can get confusing when we have lots of layers of parentheses. Often, you will see mathematicians use both parentheses, “(” and “)”, and brackets, “[” and “]”. This can make it a bit easier to see where the parentheses/brackets start and where they end. Let’s look at an example:

    Example \(\PageIndex{2}\): Alternating Parentheses and Brackets

    Evaluate

    \[(2+(3\times (4+(2-1))-1))+2\]

    Solution

    \[\begin{align}\begin{aligned}\label{eqn:parentheses_brackets} \begin{split} (2+(3\times(4+(2-1)) -1)) +2 & = [2+(3\times[4+(2-1)] -1)] +2 \\ & = [2+(3\times[4+(1)]-1)]+2 \\ & = [2+(3\times[4+1]-1)]+2 \\ & = [2+(3\times[5]-1)]+2 \\ & = [2+(3\times 5 -1)] + 2 \\ & = [2+(15-1)]+2 \\ & = [2+(14)]+2 \\ & = [2+14] + 2 \\ & = [16] + 2 \\ & = 16 + 2 =18 \end{split}\end{aligned}\end{align}\]

    We started by finding the very inside set of parentheses: \((2-1)\). The next layer of parentheses we changed to brackets: \([4+(2-1)]\). We continued alternating between parentheses and brackets until we had found all layers. As before, we started with evaluating the inside parentheses first: \((2-1)=(1)=1\). The next layer was brackets: \([4+1]=[5]=5\). Next, we had more parentheses: \((3\times 5 -1)=(15-1)=(14)=14\). Then, we had our final layer: \([2+14]+2=[16]+2=16+2=18\).

    This gives our final answer:

    \[(2+(3\times (4+(2-1))-1))+2=18\]

    When you are working these types of problems by hand, you can also make the parentheses bigger as you move out from the center: \[\label{eqn:sizes_of_parentheses} (2+(3\times(4+(2-1)) -1)) +2 = \bigg[2+\Big(3\times \big[4+(2-1)\big] -1\Big)\bigg] +2\]

    This may make it easier to see which parentheses/brackets are paired. You never have to switch a problem from all parentheses to parentheses and brackets, but you can alternate between them as you please, as long as you match parentheses “(” with parentheses “)” and brackets “[” with brackets “]”.

    There’s one more thing that we have to be careful about with parentheses, and that is “implied” parenthesis. Implied parentheses are an easy way to run into trouble, particularly if you are using a calculator to help you evaluate an expression. So what are implied parentheses? They are parentheses that aren’t necessarily written down, but are implied. For example, in a fraction, there is a set of implied parentheses around the numerator and a set of implied parentheses around the denominator:

    \[ \frac{3+4}{2+5} = \frac{(3+4)}{(2+5)}\label{implied_parentheses_fraction}\]

    You will almost never see the second form written down, however the first form can you get into trouble if you are using a calculator. If you enter \(3+4\div 2+5\) on a calculator, it will first do the division and then the two additions since it can only follow the order of operations (listed earlier). This would give you an answer of 10. However, the work to find the actual answer is shown below.

    Example \(\PageIndex{3}\): Implied Parentheses in a Fraction

    Evaluate the expression in \(\eqref{implied_parentheses_fraction}\).

    Solution

    First, let’s go back and find \(\eqref{implied_parentheses_fraction}\). You may have noticed that the fractions above have \(\eqref{implied_parentheses_fraction}\) next to them on the right side of the page. This tells us that \(\eqref{implied_parentheses_fraction}\) is referring to this expression. Now that we know what we are looking at, let’s evaluate it:
    \[\begin{align}\begin{aligned}\label{eqn:implied_parentheses_fraction_solution} \begin{split} \frac{3+4}{2+5} & = \frac{(3+4)}{(2+5)} \\ & = \frac{(7)}{(7)} \\ & = \frac{7}{7} \\ & = 1 \end{split}\end{aligned}\end{align}\] This reflects what we would get on a calculator if we entered \((3+4) \div (2+5)\), giving us our final answer:

    \[\frac{3+4}{2+5}=1\]

    As you can see, leaving off the implied parentheses drastically changes our answer. Another place we can have implied parentheses is under root operations, like square roots:

    Example \(\PageIndex{4}\): Implied Parenthesis Under a Square Root

    Evaluate

    \[\sqrt{12\times 3}-20\]

    Solution

    \[\begin{align}\begin{aligned}\sqrt{12\times 3}-20&=\sqrt{(12\times 3)}-20 \\ &=\sqrt{(36)}-20 \\ &=6-20 \\ &=-14 \end{aligned}\end{align}\]

    This gives our final answer:

    \[\sqrt{12\times 3}-20=-14\]

    Most calculators will display \(\sqrt{(}\) when you press the square root button; notice that this gives you the opening parenthesis, but not the closing parenthesis. Be sure to put the closing parenthesis in the correct spot. If you leave it off, the calculator assumes that everything after \(\sqrt{(}\) is under the root otherwise. This also applies to other kinds of roots, like cube roots. In the expression in Example \(\PageIndex{4}\), without a closing parenthesis, a calculator would give us \(\sqrt{(}12\times 3 - 20 = \sqrt{(}36 -20 = \sqrt{(}16 = 4\).

    We’ll see another example of a common issue with implied parentheses in the next section.

    1.1.2: Exponents

    With exponents, we have to be careful to only apply the exponent to the term immediately before it.

    Example \(\PageIndex{5}\): Applying an Exponent

    Evaluate

    \[2+3^{3}\]

    Solution

    \[\begin{align}\begin{aligned}\label{eqn:applying_exponent} \begin{split} 2+3^3 & = 2 + 27 \\ & = 29 \end{split}\end{aligned}\end{align}\]

    Notice we only cubed the \(3\) and not the expression \(2+3\), giving us a final answer of

    \[2+3^{3}=29\]

    This looks relatively straight-forward, but there’s a special case where it’s easy to get confused, and it relates to implied parentheses.

    Example \(\PageIndex{6}\): Applying an Exponent When there is a Negative

    Evaluate

    \[-4^{2}\]

    Solution

    \[\begin{align}\begin{aligned}\label{eqn:applying_exponent_negative} \begin{split} -4^2 & = - (4^2) \\ & = - (16) \\ &=-16 \end{split}\end{aligned}\end{align}\]

    Here, our final answer is

    \[-4^{2}=-16\]

    Notice where we placed the implied parenthesis in the problem. Since exponents only apply to the term immediately before them, only the \(4\) is squared, not \(-4\). Taking the extra step to include these implied parentheses will help reinforce this concept for you; it forces you to make a clear choice to show how the exponent is being applied. If we wanted to square \(-4\), we would write \((-4)^2\) instead of \(-4^2\).

    Note that we don’t take this to the extreme; \(12^2\) still means “take \(12\) and square it,” rather than \(1\times (2^2)\).

    It’s also important to note that all root operations, like square roots, count as exponents, and should be done after parentheses but before multiplication and division.

    1.1.3: Multiplication and Division

    In our original list for the order of operations, we listed multiplication and division on the same line. This is because mathematicians consider multiplication and division to be on the same level, meaning that one does not take precedence over the other. This means you should not do all multiplication steps and then all division steps. Instead, you should do multiplication/division from left to right.

    Example \(\PageIndex{7}\): Multiplication/Division: Left to Right

    Evaluate

    \[6\div 2\times 3+1\times 8\div 4\]

    Solution

    \[\begin{align}\begin{aligned}\begin{split} 6 \div 2 \times 3 + 1 \times 8 \div 4 & = 3 \times 3 + 1 \times 8 \div 4 \\ & = 9 + 1 \times 8 \div 4 \\ & = 9 + 8 \div 4 \\ & = 9 + 2 \\ & = 11 \end{split}\end{aligned}\end{align}\] Since this expression doesn’t have any parentheses or exponents, we look for multiplication or division, starting on the left. First, we find \(6\div 2\), which gives \(3\). Next, we have \(3 \times 3\), giving 9. The next operation is an addition, so we skip it until we have no more multiplication or division. That means that we have \(1 \times 8=8\) next. Our last step at this level is \(8 \div 4=2\). Now, we only have addition left: \(9+2 = 11\). Our final answer is

    \[6\div 2\times 3+1\times 8\div 4=11\]

    Note that we get a different, incorrect, answer of 3 if we do all the multiplication first and then all the division.

    1.1.4: Addition and Subtraction

    Just like with multiplication and division, addition and subtraction are on the same level and should be performed from left to right:

    Example \(\PageIndex{8}\): Addition/Subtraction: Left to Right

    Evaluate \[1-3+6\]

    Solution

    \[\begin{align}\begin{aligned}\begin{split} 1-3+6 & = -2 + 6 \\ & = 4 \end{split}\end{aligned}\end{align}\] By doing addition and subtraction on the same level, from left to right, we get a final answer of

    \[1-3+6=4\]

    Again, note that if we do all the addition and then all the subtraction, we get an incorrect answer of \(-8\).

    1.1.5: Summary: Order of Operations

    Now that we’ve refined some of the ideas about the order of operations, let’s summarize what we have:

    1. Parentheses (including implied parentheses)
    2. Exponents
    3. Multiplication/Division (left to right)
    4. Addition/Subtraction (left to right)

    Let’s walk through one example that uses all of our rules.

    Example \(\PageIndex{9}\): Order of Operations

    Evaluate \[-2^2 + \sqrt{6-2} - 2 (8 \div 2 \times (1+1))\]

    Solution

    Since this is more complicated than our earlier examples, let’s make a table showing each step on the left, with an explanation on the right:

    \(-2^2 + \sqrt{6-2} - 2 (8 \div 2 \times (1+1))\) = We have a bit of everything here, so let’s write down any implied parentheses first.
    \(= -2^2 + \sqrt{(6-2)} - 2 (8 \div 2 \times (1+1))\) We have nested parentheses on the far right, so let’s work on the inside set.
    \(= -2^2 + \sqrt{(6-2)} - 2 (8 \div 2 \times 2)\) There aren’t any more nested parentheses, so let’s work on the set of parentheses on the far left.
    \(= -2^2 + \sqrt{4} - 2 (8 \div 2 \times 2)\) Now, we’ll work on the other set of parentheses. This set only has multiplication and division, so we’ll work from left to right inside of the parentheses.
    \(= -2^2 + \sqrt{4} - 2 (4 \times 2)\) Now, we’ll complete that set of parentheses.
    \(= -2^2 + \sqrt{4} - 2 (8)\) Let’s rewrite slightly to completely get rid of all parentheses.
    \(= -2^2 + \sqrt{4} - 2 \times 8\) Now, we’ll work on exponents, from left to right.
    \(= -4 + \sqrt{4} - 2 \times 8\) We only squared 2, and not \(-2\). Square roots are really exponents, so we’ll take care of that next.
    \(= -4 + 2 - 2 \times 8\) We’re done with exponents; time for multiplication/division.
    \(= -4 + 2 - 16\) Now, only addition and subtraction are left, so we’ll work from left to right.
    \(= -2 - 16\) Almost there!
    \(=-18\)  

    Table \(\PageIndex{1}\)

    Our final answer is

    \[-2^{2}+\sqrt{6-2}-2(8\div 2\times (1+1))=-18\]

    1.1.6: Computations with Rational Numbers

    Rational numbers are real numbers that can be written as a fraction, such as \(\frac{1}{2}\), \(\frac{5}{4}\), and \(-\frac{2}{3}\). You may notice that \(\frac{5}{4}\) is a special type of rational number, called an improper fraction. It’s called improper because the value in the numerator, \(5\), is bigger than the number in the denominator, \(4\). Often, students are taught to write these improper fractions as mixed numbers: \(\frac{5}{4} = 1\frac{1}{4}\). This does help give a quick estimate of the value; we can quickly see that it is between 1 and 2. However, writing as a mixed number can make computations more difficult and can lead to some confusion when working with complicated expressions; it may be tempting to see \(1 \frac{1}{4}\) as \(1\times \frac{1}{4}\) rather than \(\frac{5}{4}\). For this reason, we will leave all improper fractions as improper fractions.

    With fractions, multiplication and exponents are two of the easier operations to work with, while addition and subtraction are more complicated. Let’s start by looking at how to work with multiplication of fractions.

    Example \(\PageIndex{10}\): Multiplication of Fractions

    Evaluate \[\frac{1}{4} \times \frac{2}{3} \times 2\]

    Solution

    With multiplication of fractions, we will work just like we do with any other type of real number and multiply from left to right. When multiplying two fractions together, we will multiply their numerators together (the tops) and we will multiply the denominators together (the bottoms). \[\begin{align}\begin{aligned}\begin{split} \frac{1}{4} \times \frac{2}{3} \times 2 & = \frac{1\times 2}{4 \times 3} \times 2 \\ & = \frac{2}{12} \times 2 \\ & = \frac{1}{6} \times 2 \\ & = \frac{1}{6} \times \frac{2}{1} \\ & = \frac{1\times 2}{6 \times 1} \\ & = \frac{2}{6} \\ & = \frac{1}{3} \end{split}\end{aligned}\end{align}\]

    After each step, we look to see if we can simplify any fractions. After the first multiplication, we get \(\frac{2}{12}\). Both \(2\) and \(12\) have \(2\) as a factor (are both divisible by \(2\)), so we can simplify by dividing each by 2, giving us \(\frac{1}{6}\). Before doing the second multiplication, we transform the whole number, 2, into a fraction by writing it as \(\frac{2}{1}\). Then, we can compute the multiplication of the two fractions, giving us \(\frac{2}{6}\). We can simplify this because 2 and 3 have 2 as a common factor, so our final answer is

    \[\frac{1}{4}\times\frac{2}{3}\times 2=\frac{1}{3}\]

    Next, let’s look at exponentiation of a fraction.

    Example \(\PageIndex{11}\): Exponentiation of a Fraction

    Evaluate \[\bigg( \frac{1+2}{5} \bigg) ^2\]

    Solution

    With exponentiation, we need to apply the exponent to both the numerator and the denominator. This gives \[\begin{align}\begin{aligned}\begin{split} \bigg(\frac{1+2}{5} \bigg)^2 & = \bigg(\frac{(1+2)}{(5)}\bigg)^2 \\[6pt] & = \bigg(\frac{(3)}{(5)}\bigg)^2 \\[6pt] & = \bigg(\frac{3}{5} \bigg)^2 \\[6pt] & = \frac{3^2}{5^2} \\[6pt] & = \frac{9}{25} \end{split}\end{aligned}\end{align}\]
    Notice that we were careful to include the implied parentheses around the numerator and around the denominator. This helps to guarantee that we are correctly following the order of operations by working inside of any parentheses first, before applying the exponent. We can’t simplify our fraction at any point since 3 and 5 do not share any factors. This gives us our final answer of

    \[\left(\frac{1+2}{5}\right)^{2}=\frac{9}{25}\]

    With division of fractions, we will build off of multiplication. For example, if we want to divide a number by 2, we know that we could instead multiply it by \(\frac{1}{2}\) because dividing something into two equal pieces is the same as splitting it in half. These numbers are reciprocals; 2 can be written as \(\frac{2}{1}\) and if we flip it, we get \(\frac{1}{2}\), its reciprocal. This works for any fractions; if we want to divide by \(\frac{5}{6}\), we can instead multiply by its reciprocal, \(\frac{6}{5}\).

    Addition and subtraction of fractions can be a bit more complicated. With a fraction, we can think of working with pieces of a whole. The denominator tells us how many pieces we split the item into, and the numerator tells us how many pieces we are using. For example, \(\frac{3}{4}\) tells us that we split the item into 4 pieces and are using 3 of them. In order to add or subtract fractions, we need to work with pieces that are all the same size, so our first step will be getting a common denominator. We will do this by multiplying by 1 in a sneaky way. Multiplying by 1 doesn’t change the meaning of our expression, but it will allow us to make sure all of our pieces are the same size.

    Example \(\PageIndex{12}\): Addition and Subtraction of Fractions

    Evaluate \[\frac{1}{2} - \frac{1}{3} + \frac{1}{4}\]

    Solution

    Since we only have addition and subtraction, we will work from left to right. This means that our first step is to subtract \(\frac{1}{3}\) from \(\frac{1}{2}\). The denominators are different, so we don’t yet have pieces that are all the same size. To make sure our pieces are all the same size, we will multiply each term by 1; we will multiply \(\frac{1}{2}\) by \(\frac{3}{3}\) and we will multiply \(\frac{1}{3}\) by \(\frac{2}{2}\). Since we are multiplying by the “missing” factor for each, both will have the same denominator. Once they have the same denominator, we can combine the numerators: 

    \[\begin{align}\begin{aligned}\frac{1}{2}-\frac{1}{3}+\frac{1}{4}&=\frac{1}{2}\times\frac{3}{3}-\frac{1}{3}\times\frac{2}{2}+\frac{1}{4} \\ &=\frac{3}{6}-\frac{2}{6}+\frac{1}{4} \\ &=\frac{3-2}{6}+\frac{1}{4} \\ &=\frac{1}{6}+\frac{1}{4} \\ &=\frac{1}{6}\times\frac{2}{2}+\frac{1}{4}\times\frac{3}{3} \\ &=\frac{2}{12}+\frac{3}{12} \\ &=\frac{2+3}{12}\\ &=\frac{5}{12}\end{aligned}\end{align}\]

    After combining the first two fractions, we had to find a common denominator for the remaining two fractions. Here, we found the smallest possible common denominator. We did this by looking at each denominator and factoring them. The first denominator, 6, has 2 and 3 as factors; the second denominator, 4 has 2 as a repeated factor since \(4=2\times2\). These means our common denominator needed to have 3 as a factor and 2 as a double factor: \(3\times 2 \times 2 = 12\). We don’t have to find the smallest common denominator, but it often keeps the numbers more manageable. We could have instead done: \[\begin{align}\begin{aligned}\begin{split} \frac{1}{6} + \frac{1}{4} & = \frac{1}{6} \times \frac{4}{4} + \frac{1}{4} \times \frac{6}{6} \\[6pt] & = \frac{4}{24} + \frac{6}{24} \\[6pt] & = \frac{4+6}{24} \\[6pt] & = \frac{10}{24} \\[6pt] & = \frac{5}{12} \end{split}\end{aligned}\end{align}\]

    We still end up with the same final answer:

    \[\frac{1}{2}-\frac{1}{3}+\frac{1}{4}=\frac{5}{12}\]

    Like fractions, decimals can also be difficult to work with. Note that all repeating decimals and all terminating decimals can be written as fractions: \(0.\overline{333} = \frac{1}{3}\) and \(2.1 = 2 + \frac{1}{10} = \frac{20}{10} + \frac{1}{10} = \frac{21}{10}\). You can convert these into fractions or you can work with them as decimals. When adding or subtracting decimals, make sure to align the numbers at the decimal point. When multiplying, first multiply as though there are no decimals, aligning the last digit of each number. Then, as your final step place the decimal point so that it has the appropriate number of digits after it. For example,

    \[\begin{array}{c} \phantom{\times999}1.2\\ \underline{\times\phantom{99}1.1\phantom{.}5}\\ \phantom{\times999.}6\phantom{.}0\\ \phantom{\times9}1\phantom{.}2 \\ \underline{\phantom{\times}1\phantom{.}2\phantom{.9.}}\\ \phantom{\times 1} 1.3\phantom{.}8 \phantom{.} 0 \end{array}\]
    Because 1.2 has one digit after the decimal place and 1.15 has 2 digits after the decimal place, we need a total of \(1+2=3\) digits after the decimal place in our final answer, giving us 1.380, or 1.38. It is important to note that we placed the decimal point before dropping the zero on the end; our final answer would have quite a different meaning otherwise.

    1.1.7: Computations with Units

    So far, we have only looked at examples without any context to them. However, in calculus you will see many problems that are based on a real world problem. These types of problems will come with units, whether the problem focuses on lengths, time, volume, or area. With these problems, it is important to include units as part of your answer. When working with units, you first need to make sure all units are consistent; for example, if you are finding the area of a square and one side is measured in feet and the other side in inches, you will need to convert so that both sides have the same units. You could use measurements that are both in feet or both in inches, either will give you a meaningful answer. Let’s look at a few examples.

    Example \(\PageIndex{13}\): Determining Volume

    Determine the volume of a rectangular solid that has a width of 8 inches, a height of 3 inches, and a length of 0.5 feet.

    Solution

    First, we need to get all of our measurements in the same units. Since two of the dimensions are given in inches, we will start by converting the third dimension into inches as well. Since there are 12 inches in a foot, we get

    \[\begin{align}\begin{aligned}0.5\text{ ft}\times\frac{12\text{ in}}{1\text{ ft}}&=\frac{0.5\times 12\text{ ft}\times\text{in}}{1\text{ ft}} \\&=\frac{6\text{ ft}\times\text{in}}{1\text{ ft}}\\ &=6\text{ in}\end{aligned}\end{align}\]

    In the last step we simplify our fraction. We can simplify \(\frac{6}{1}\) as \(6\), and we can simplify \(\frac{\text{ ft} \times \text{ in}}{\text{ft}}\) as in. This means that we know our rectangular solid is 8 inches wide, 3 inches tall, and 6 inches long. The volume is then

    \[\begin{align}\begin{aligned}\begin{split} V &= (8 \text{ in})\times (3 \text{ in}) \times (6 \text{ in})\\ &= (8 \times 3 \times 6) \times (\text{ in} \times \text{ in} \times \text{ in}) \\ & = (24 \times 6)\times (\text{ in} \times \text{ in} \times \text{ in}) \\ & = 144 \text{ in}^3 \end{split}\end{aligned}\end{align}\]

    Since all three measurements are in inches and are being multiplied, we end up with units of inches cubed, giving us a final answer of

    \[V=144\text{ in}^{3}\]

    Units can also give you hints as to how a number is calculated. For instance, the speed of a car is often measured in mph, or miles per hour. We write these units in fraction form as \(\frac{\text{miles}}{\text{hour}}\), which tells us that in our computations we should be dividing a distance by a time. Sometimes, however, a problem will start with units, but the final answer will have no units, meaning it is unitless. We will run across examples of this when we discuss trigonometric functions. Trigonometric functions can be calculated as a ratio of side lengths of a right triangle. For example, in a right triangle with a leg of length 3 inches and a hypotenuse of 5 inches, the ratio of the leg length to the hypotenuse length is \(\frac{3 \text{ in}}{5 \text{ in}}=\frac{3}{5}\). Since both sides are measured in inches, the units cancel when we calculate the ratio. We would see the same final answer if the triangle had a leg of 3 miles and a hypotenuse of 4 miles; they are similar triangles, so the ratios are the same.

    In this section, we have examined how to work with basic mathematical operations and how these operations interact with each other. In the next section we’ll talk about how to make specialized rules or operations through the use of functions. In the exercises following this section, we continue our work with order of operations and practice these rules in situations with a bit more context. Note that answers to all example problems are available at the end of this book to help you gauge your level of understanding. If your professor allows it, it is a good idea to check the answer to each question as you complete it; this will allow you to see if you understand the ideas and will prevent you from practicing these rules incorrectly.


    This page titled 1.1: Real Numbers is shared under a CC BY-NC license and was authored, remixed, and/or curated by Amy Givler Chapman, Meagan Herald, Jessica Libertini.

    • Was this article helpful?