Skip to main content
Mathematics LibreTexts

1.1: Algebraic Manipulations Critical for Calculus

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

    Learning Objectives
    • State the Mathematical Mantra.
    • Briefly review the following topics from Algebra:
      • nontrivial factoring techniques
      • understand when to distribute and, just as important, when not to distribute
      • simplifying compound fractions
      • rationalizing numerators and denominators
      • using the piecewise definition of the absolute value

    The material in this section was included from years of experience teaching Calculus and seeing students, semester after semester, struggle to succeed in the subject due to holes in their prerequisite Algebra skills.

    It is incredibly important to note that the material reviewed in this section is not instruction. If you have never seen some of the topics being covered here, you should speak with your instructor about course alternatives that will better set you up for success in Calculus.1

    Subsection Footnotes

    1 Trust me when I say it is better to step back to a previous course to fill in knowledge gaps than start a cycle of failure in Calculus.


    The Mathematical Mantra

    The following "mantra" is very helpful throughout all levels of mathematics, and significantly more so in Calculus.

    Mathematical Mantra

    Perform mathematics in the order you learned mathematics. That is, perform

    Arithmetic before Algebra,

    Algebra before Trigonometry,

    Trigonometry before Precalculus, and

    Precalculus before Differential Calculus.

    Always be willing to ask yourself, "Is there something I learned previously that can simplify my work here?"

    We will reference this rule of thumb2 continuously throughout this course.

    Subsection Footnotes

    2 The Mathematical Mantra is a "rule of thumb" and, as such, there are times when it is not applicable. In such cases, I will endeavor to point out why it does not apply.


    Nontrivial Factoring Techniques

    Each of the following factoring techniques will be required at many different points throughout this Calculus course. They will often be needed as required peripheral skills while working on your homework, quizzes, and exams. As with all material in this section, it is assumed you have mastered these skills in your prerequisite courses; however, it is presented here as a gentle reminder for those who might have been away from their studies in mathematics for a while.

    Sums and Differences of Cubes

    Theorem: Sums and Differences of Cubes

    \[ F^3 \pm L^3 = (F \pm L)(F^2 \mp FL + L^2) \label{sumdiffcubes} \]

    Example \(\PageIndex{1}\): Factor a Difference of Cubes

    You are working on a complex Calculus problem during an exam and arrive at the following expression.

    \[  \dfrac{e^{6x} - 8}{e^{2x} - 2} \nonumber \]

    You are told that \( x \neq \ln{(2^{1/2})} \).

    You cannot move forward on the problem without somehow removing that denominator (this is something that will be necessary, for reasons to be revealed later in the course). Simplify the expression to an equivalent expression not involving the denominator \( e^{2x} - 2 \).

    Solution

    Note that3\[ \begin{array}{rclcrclcr}
    x & \neq & \ln{(2^{1/2})} & \implies & x & \neq & \dfrac{1}{2} \ln{(2)} & \quad & \left( \text{Algebra: Laws of Logarithms} \right) \\
     &  &  & \implies & 2 x & \neq & \ln{(2)} & \quad & \left( \text{Algebra: Multiply both sides of an equation by a nonzero constant} \right) \\
     &  &  & \implies & e^{2 x} & \neq & 2 & \quad & \left( \text{Algebra: Logarithms and exponentials are inverses} \right) \\
     &  &  & \implies & e^{2 x} - 2 & \neq & 0 & \quad & \left( \text{Algebra: Subtract a constant from both sides of an equation} \right) \\
    \end{array} \nonumber \]

    Therefore, we know the denominator of 

    \[  \dfrac{e^{6x} - 8}{e^{2x} - 2} \nonumber \]

    is nonzero. Moreover, we see that the numerator is a difference of cubes. Thus, using the difference of cubes formula (Equation \(\ref{sumdiffcubes}\)) we get

    \[ \begin{array}{rclcr}
    \dfrac{e^{6x} - 8}{e^{2x} - 2} & = & \dfrac{\left(e^{2x}\right)^3 - \left(2\right)^3}{e^{2x} - 2} & \quad & \left( \text{Algebra: Laws of Exponents} \right) \\
     & = & \dfrac{\left(e^{2x} - 2\right) \left( \left(e^{2x}\right)^2 + 2 e^{2x} + \left(2\right)^2\right)}{e^{2x} - 2} & \quad & \left( \text{Algebra: Difference of Cubes} \right) \\
     & = & \dfrac{\left(e^{2x} - 2\right) \left( e^{4x} + 2 e^{2x} + 4\right)}{e^{2x} - 2} & \quad & \left( \text{Algebra: Laws of Exponents} \right) \\
     & = & \dfrac{\cancel{\left(e^{2x} - 2\right)} \left( e^{4x} + 2 e^{2x} + 4\right)}{\cancel{\left(e^{2x} - 2\right)}} & \quad & \left( \text{Algebra: Cancel like factors} \right) \\
     & = & e^{4x} + 2 e^{2x} + 4 & &  \\
    \end{array} \nonumber \]

    Factoring the GCF Out of Expressions Involving Negative Rational Exponents

    One of the more common factoring techniques required in Calculus comes up when the result of some Calculus manipulations leads to an expression of the form

    \[ 3(1 + x)^{1/3} - x(1 + x)^{-2/3}. \nonumber \]

    It will be necessary to factor this expression. But how?

    When all terms of an algebraic expression share a common factor, but the common factor has different powers in each term, factor out the smallest-powered version of the shared factor.

    Example \(\PageIndex{2}\): Factor Out a Common Expression Having a Negative Rational Exponent

    It's the third exam in your Differential Calculus4 course and you are trying to use Calculus to graph the function

    \[ f(x) = \dfrac{3}{2} \left( 1 + x \right)^{4/3} + 3 \left( 1 + x \right)^{1/3} + 2. \nonumber \]

    You have done some great work so far, but at some point you arrive at the expression

    \[ 3(1 + x)^{1/3} - x(1 + x)^{-2/3}, \nonumber \]

    and you need to factor this to make the rest of your mathematics easy.

    Solution

    Both terms in the expression share the factor \( (1 + x) \); however, the second term has the smallest-powered version of this factor. Therefore, we factor out \( \left(1 + x\right)^{-2/3} \).

    \[ \begin{array}{rclcr}
    3(1 + x)^{1/3} - x(1 + x)^{-2/3} & = & (1 + x)^{-2/3} \left(\dfrac{3(1 + x)^{1/3}}{(1 + x)^{-2/3}} - \dfrac{x (1 + x)^{-2/3}}{(1 + x)^{-2/3}} \right) & \quad & \left( \text{Algebra: Factoring out the GCF is division} \right) \\
      & = & (1 + x)^{-2/3} \left(3(1 + x)^{1/3 + 2/3} - x (1 + x)^{-2/3 + 2/3} \right) & \quad & \left( \text{Algebra: Laws of Exponents} \right) \\
      & = & (1 + x)^{-2/3} \left(3(1 + x) - x (1 + x)^{0} \right) & \quad & \left( \text{Arithmetic} \right) \\
      & = & (1 + x)^{-2/3} \left(3(1 + x) - x \right) & \quad & \left( \text{Algebra: Laws of Exponents} \right) \\
      & = & (1 + x)^{-2/3} \left(3 + 2x \right) & \quad & \left( \text{Algebra: Distribution and combining like terms} \right) \\
    \end{array} \nonumber \]

    Subsection Foonotes

    3 All examples in this section will have step-by-step justifications; however, as we move forward in the text, the justifications occur less frequently. At some point, several elementary steps will be skipped between steps. As you can see by the justifications listed here, your success in Calculus is built on a solid foundation of Arithmetic, Algebra, and Trigonometry.

    4 "Differential Calculus" is another name for "Calculus I."


    Knowing When to Distribute

    In the past, when we were allowed to offer Algebra to help students remediate lost or broken skills,5 I would make a point to my Algebra students that factoring is the ultimate end game for a lot of mathematics. Are there times when you don't want or need to factor? Sure! However, if you have an expression that is already factored, then distributing things out is almost always a bad idea.

    In Calculus, there are going to be many times when you are going to multiply the numerator and denominator of a given expression by a fraction equivalent to \( 1 \). You might be multiplying both the numerator and denominator by the LCD of all fractions within a compound fraction,6 or you might be multiplying the numerator and denominator by the conjugate of the numerator, for example.

    In these cases, you are faced with a simple decision - do you distribute everything out? Do you only distribute out the numerator? Do you only distribute out the denominator? Do you leave things factored?

    The following is a good rule of thumb to follow:

    Rule of Thumb

    When you have no choice but to multiply the numerator and denominator of a rational expression by either

    1. a conjugate (to clear radicals), or
    2. an LCD (to clear a compound fraction), 

    only perform distribution on the part (numerator or denominator) that caused the need for such an operation. That is, do not use distribution on the non-offending piece.

    That Rule of Thumb probably doesn't make sense, so we will clarify it in Example \( \PageIndex{3} \).

    Subsection Footnotes

    5 This is no longer a reality due to a horrible bill, AB 705, which essentially closes the door to opportunity in STEM for an entire generation of students.

    6 Also known as a complex fraction.


    Simplifying Compound Fractions

    The first half of this course will be littered with "fractions containing fractions." These are commonly known as compound fractions. For example, it is inevitable that you will have to deal with a compound fraction of the form

    \[ \dfrac{(1+x+h)^{-1} - (1 + x)^{-1}}{h}. \nonumber \]

    When faced with such an expression, you need to find the LCD of all fractions in the numerator and denominator. If you multiply both numerator and denominator of the compound fraction by this LCD, the entire compound fraction will unravel.

    Example \(\PageIndex{3}\): Simplify a Compound Rational Expression

    On your first Calculus exam, you end up having to work with the following rational expression.

    \[ \dfrac{(1+x+h)^{-1} - (1 + x)^{-1}}{h} \nonumber \]

    However, you cannot move past the first step of the given exam problem without having to simplify the compound rational expression (a fact that will not be explicitly stated).

    Solution

    \[ \begin{array}{rclcr}
    \dfrac{(1+x+h)^{-1} - (1 + x)^{-1}}{h} & = & \dfrac{\dfrac{1}{1+x+h} - \dfrac{1}{1 + x}}{h} & \quad & \left( \text{Algebra: Laws of Exponents} \right) \\
      & = & \dfrac{\left( \dfrac{1}{1+x+h} - \dfrac{1}{1 + x} \right)}{h} \cdot \dfrac{(1+x+h)(1+x)}{(1+x+h)(1+x)} & \quad & \left( \text{Algebra: Multiply numerator and denominator by the LCD} \right) \\
      & = & \dfrac{\dfrac{(1+x+h)(1+x)}{1+x+h} - \dfrac{(1+x+h)(1+x)}{1 + x}}{h (1+x+h)(1+x)} & \quad & \left( \text{Algebra: Distribute}^7 \right) \\
      & = & \dfrac{\dfrac{\cancel{(1+x+h)}(1+x)}{\cancel{(1+x+h)}} - \dfrac{(1+x+h)\cancel{(1+x)}}{\cancel{(1 + x)}}}{h (1+x+h)(1+x)} & \quad & \left( \text{Algebra: Cancel like factors} \right) \\
      & = & \dfrac{(1+x) - (1+x+h)}{h (1+x+h)(1+x)} & \quad &  \\
      & = & \dfrac{1+x - 1 - x - h}{h (1+x+h)(1+x)} & \quad & \left( \text{Algebra: Distribution} \right) \\
      & = & \dfrac{- h}{h (1+x+h)(1+x)} & \quad & \left( \text{Algebra: Combine like terms} \right) \\
      & = & \dfrac{- \cancel{h}}{\cancel{h} (1+x+h)(1+x)} & \quad & \left( \text{Algebra: Cancel like factors} \right) \\
      & = & \dfrac{- 1}{(1+x+h)(1+x)} & \quad & \left( \text{Algebra: Cancel like factors} \right) \\
    \end{array} \nonumber \]

    Subsection Footnotes

    7 In the distribution step (third line), notice that we did not distribute the denominator. This was because the entire reason we were forced to multiply by the LCD was the fractions in the numerator. Remember the Rule of Thumb: do not use distribution on the non-offending piece.


    Rationalizing Numerators and Denominators

    As with simplifying compound fractions, you will need to instinctively know when to rationalize a numerator or denominator at many points throughout this course (without explicit instruction to do so from your instructor). My Rule of Thumb on knowing when to distribute and when not to distribute will be helpful here.

    Example \(\PageIndex{4}\): Rationalize to Avoid Division By Zero

    Early on in this course you will be working with expressions like

    \[ -\dfrac{ \dfrac{1}{\sqrt{x}} - \dfrac{1}{\sqrt{x + h}} }{h}. \nonumber \]

    You must immediately identify the need to simplify the compound fraction. Moreover, the \( h \) in the denominator is going to be a problem (the reason for which will be discussed in Chapter 2). Simplify this expression and try to remove \( h \) from the denominator.

    Solution

    The first step to simplifying this expression is to simplify the compound fraction.

    \[ \begin{array}{rclcr}
    -\dfrac{ \dfrac{1}{\sqrt{x}} - \dfrac{1}{\sqrt{x + h}} }{h} & = & -\dfrac{ \left(\dfrac{1}{\sqrt{x}} - \dfrac{1}{\sqrt{x + h}} \right) }{h} \cdot \dfrac{\sqrt{x} \sqrt{x + h}}{\sqrt{x} \sqrt{x + h}} & \quad & \left( \text{Algebra: Multiply numerator and denominator by the LCD} \right) \\
      & = & -\dfrac{ \sqrt{x + h} - \sqrt{x} }{h \sqrt{x} \sqrt{x + h}} & \quad & \left( \text{Algebra: Distribute}^8 \right) \\
      & = & \dfrac{ -\sqrt{x + h} + \sqrt{x} }{h \sqrt{x} \sqrt{x + h}} & \quad & \left( \text{Algebra: Distribute} \right) \\
      & = & \dfrac{ \sqrt{x} - \sqrt{x + h} }{h \sqrt{x} \sqrt{x + h}} & \quad & \left( \text{Arithmetic: Commutative property of addition} \right) \\
    \end{array} \nonumber \]

    Now that the compound fraction has been simplified, we are faced with an expression that still has the \( h \) in the denominator. Remember, there is a hidden, underlying reason that will compel us to somehow remove that through creative uses of Algebra. One such use is conjugate multiplication!

    \[ \begin{array}{rclcr}
    \dfrac{ \sqrt{x} - \sqrt{x + h} }{h \sqrt{x} \sqrt{x + h}} & = & \dfrac{ \left( \sqrt{x} - \sqrt{x + h} \right)}{h \sqrt{x} \sqrt{x + h}} \cdot \dfrac{ \left( \sqrt{x} + \sqrt{x + h} \right) }{ \left( \sqrt{x} + \sqrt{x + h} \right) } & \quad & \left( \text{Algebra: Multiply numerator and denominator by the conjugate of the numerator} \right) \\
     & = & \dfrac{ x - (x + h)}{h \sqrt{x} \sqrt{x + h}\left( \sqrt{x} + \sqrt{x + h} \right) } & \quad & \left( \text{Algebra: Distribute}^9 \right) \\
     & = & \dfrac{-h}{h \sqrt{x} \sqrt{x + h}\left( \sqrt{x} + \sqrt{x + h} \right) } & \quad & \left( \text{Algebra: Distribute} \right) \\
     & = & \dfrac{-\cancel{h}}{\cancel{h} \sqrt{x} \sqrt{x + h}\left( \sqrt{x} + \sqrt{x + h} \right) } & \quad & \left( \text{Algebra: Cancel like factors} \right) \\
     & = & \dfrac{-1}{\sqrt{x} \sqrt{x + h}\left( \sqrt{x} + \sqrt{x + h} \right) } &  &  \\
    \end{array} \nonumber \]

    Our final expression is no longer a compound fraction nor does it have that pesky \( h \) in the denominator!

    Subsection Footnotes

    8 In this distribution step, notice that we did not (and, technically, could not) distribute the denominator. The entire reason we were forced to multiply by the LCD was the fractions in the numerator. Remember the Rule of Thumb: do not use distribution on the non-offending piece.

    9 In this distribution step, notice that we did not distribute the denominator. The entire reason we were forced to multiply by the conjugate was the difference of radicals in the numerator. Remember the Rule of Thumb: do not use distribution on the non-offending piece.


    Using the Piecewise Definition of the Absolute Value

    This topic is so important that it is covered twice in this chapter. When we first learn of the absolute value, it is often from a flawed perspective. We are told, "The absolute value makes things positive," and, in essence, it does. It forces \( -3 \) to become \( 3 \) and \( \pi \) to stay \( \pi \), but what about algebraic expressions like \( -3x + \pi \)? Since this expression has an unknown, there is no way of knowing beforehand whether or not this expression is negative. This is where knowledge of the piecewise definition of the absolute value (the true definition) comes into play!

    \[ | \Box | = \begin{cases}
    \Box & \text{if } \Box \geq 0 \\
    -\Box & \text{if } \Box \lt 0 \\
    \end{cases} \nonumber \]

    In language, this is saying that the absolute value of \( \Box \) has two possibilities:

    1. If \( \Box \) is already non-negative, then there is no need for the absolute values.
    2. If \( \Box \) is negative, then the absolute value will force it to become positive by returning the opposite of \( \Box \).

    The part people trip up on constantly are the inequalities. They assume the absolute value returns \( \Box \) if \( x \geq 0 \) and \( -\Box \) if \( x \lt 0 \). This is not true!

    Example \(\PageIndex{5}\): Using the Piecewise Definition of the Absolute Value

    You are diligently working through your first exam and are given a problem where you know that \( x \lt 2 \) and you need to simplify

    \[ \dfrac{x^2 + x - 6}{|x - 2|}. \nonumber \]

    Solution

    \[ \begin{array}{rclcr}
    \dfrac{x^2 + x - 6}{|x - 2|} & = & \dfrac{(x + 3)(x - 2)}{|x - 2|} & \quad & \left( \text{Algebra: Factoring} \right) \\
    \end{array} \nonumber \]

    At this point, canceling \( (x - 2) \) and \( |x - 2| \) is impossible - you can only cancel like factors and these expressions are not exactly the same. Using the piecewise definition of the absolute value, we see

    \[ | x - 2| = \begin{cases}
    x - 2 & \text{if } x - 2 \geq 0 & \implies & x \geq 2 \\
    -(x - 2) & \text{if } x - 2 \lt 0 & \implies & x \lt 2\\
    \end{cases} \nonumber \]

    Luckily, we know that \( x \lt 2 \), so we can replace \( |x - 2| \) with \( -(x - 2) \). Therefore, 

    \[ \begin{array}{rclcr}
    \dfrac{x^2 + x - 6}{|x - 2|} & = & \dfrac{(x + 3)(x - 2)}{|x - 2|} & \quad & \left( \text{Algebra: Factoring} \right) \\
     & = & \dfrac{(x + 3)(x - 2)}{-(x - 2)} & \quad & \left( \text{Algebra: Piecewise definition of the absolute value} \right) \\
     & = & \dfrac{(x + 3)\cancel{(x - 2)}}{-\cancel{(x - 2)}} & \quad & \left( \text{Algebra: Cancel like factors} \right) \\
     & = & \dfrac{(x + 3)}{-1} & &  \\
     & = & -(x + 3) & &  \\
    \end{array} \nonumber \]

    Caution

    \[ | \Box | \text{ is not necessarily equal to } \Box \nonumber \]

    Therefore,

    \[ \dfrac{|\Box|}{\Box} \text{ is not necessarily } 1. \nonumber \]


    This page titled 1.1: Algebraic Manipulations Critical for Calculus is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Roy Simpson.