Skip to main content
Mathematics LibreTexts

7.4: Factor Special Products

  • Page ID
    18973
  • \( \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

    By the end of this section, you will be able to:

    • Factor perfect square trinomials
    • Factor differences of squares
    • Factor sums and differences of cubes
    • Choose method to factor a polynomial completely
    Note

    Before you get started, take this readiness quiz.

    1. Simplify: \((12 x)^{2}\)
      If you missed this problem, review Example 6.2.22.
    2. Multiply: \((m+4)^{2}\)
      If you missed this problem, review Example 6.4.1.
    3. Multiply: \((p-9)^{2}\)
      If you missed this problem, review Example 6.4.4.
    4. Multiply: \((k+3)(k-3)\)
      If you missed this problem, review Example 6.4.16.

    The strategy for factoring we developed in the last section will guide you as you factor most binomials, trinomials, and polynomials with more than three terms. We have seen that some binomials and trinomials result from special products—squaring binomials and multiplying conjugates. If you learn to recognize these kinds of polynomials, you can use the special products patterns to factor them much more quickly.

    Factor Perfect Square Trinomials

    Some trinomials are perfect squares. They result from multiplying a binomial times itself. You can square a binomial by using FOIL, but using the Binomial Squares pattern you saw in a previous chapter saves you a step. Let’s review the Binomial Squares pattern by squaring a binomial using FOIL.

    This image shows the FOIL procedure for multiplying (3x + 4) squared. The polynomial is written with two factors (3x + 4)(3x + 4). Then, the terms are 9 x squared + 12 x + 12 x + 16, demonstrating first, outer, inner, last. Finally, the product is written, 9 x squared + 24 x + 16.

    The first term is the square of the first term of the binomial and the last term is the square of the last. The middle term is twice the product of the two terms of the binomial.

    \[\begin{array}{c}{(3 x)^{2}+2(3 x \cdot 4)+4^{2}} \\ {9 x^{2}+24 x+16}\end{array}\]

    The trinomial \(9 x^{2}+24+16\) is called a perfect square trinomial. It is the square of the binomial 3x+4.

    We’ll repeat the Binomial Squares Pattern here to use as a reference in factoring.

    BINOMIAL SQUARES PATTERN

    If a and b are real numbers,

    \[(a+b)^{2}=a^{2}+2 a b+b^{2} \qquad(a-b)^{2}=a^{2}-2 a b+b^{2}\]

    When you square a binomial, the product is a perfect square trinomial. In this chapter, you are learning to factor—now, you will start with a perfect square trinomial and factor it into its prime factors.

    You could factor this trinomial using the methods described in the last section, since it is of the form \(ax^{2}+bx+c\). But if you recognize that the first and last terms are squares and the trinomial fits the perfect square trinomials pattern, you will save yourself a lot of work.

    Here is the pattern—the reverse of the binomial squares pattern.

    PERFECT SQUARE TRINOMIALS PATTERN

    If a and b are real numbers,

    \[a^{2}+2 a b+b^{2}=(a+b)^{2} \qquad a^{2}-2 a b+b^{2}=(a-b)^{2}\]

    To make use of this pattern, you have to recognize that a given trinomial fits it. Check first to see if the leading coefficient is a perfect square, \(a^2\). Next check that the last term is a perfect square, \(b^2\). Then check the middle term—is it twice the product, \(2ab\)? If everything checks, you can easily write the factors.

    Example \(\PageIndex{1}\): How to Factor Perfect Square Trinomials

    Factor: \(9 x^{2}+12 x+4\)

    Solution

    This table gives the steps for factoring 9 x squared +12 x +4. The first step is recognizing the perfect square pattern “a” squared + 2 a b + b squared. This includes, is the first term a perfect square and is the last term a perfect square. The first term can be written as (3 x) squared and the last term can be written as 2 squared. Also, in the first step, the middle term has to be twice “a” times b. This is verified by 2 times 3 x times 2 being 12 x.The second step is writing the square of the binomial. The polynomial is written as (3 x) squared + 2 times 3 x times 2 + 2 squared. This is factored as (3 x + 2) squared.The last step is to check with multiplication.

    Try It \(\PageIndex{2}\)

    Factor: \(4 x^{2}+12 x+9\)

    Answer

    \((2 x+3)^{2}\)

    Try It \(\PageIndex{3}\)

    Factor: \(9 y^{2}+24 y+16\)

    Answer

    \((3 y+4)^{2}\)

    The sign of the middle term determines which pattern we will use. When the middle term is negative, we use the pattern \(a^{2}-2 a b+b^{2}\), which factors to \((a-b)^{2}\).

    The steps are summarized here.

    FACTOR PERFECT SQUARE TRINOMIALS.

    \(\begin{array} {lcc} \textbf { Step 1} \text { . Does the trinomial fit the pattern? } & a^{2}+2 a b+b^{2} & a^{2}-2 a b+b^{2} \\ \qquad \bullet \text { Is the first term a perfect square? } & (a)^{2} & (a)^{2} \\ \qquad \quad\text { Write it as a square. } \\ \qquad \bullet \text { Is the last term a perfect square? } & (a)^{2} \qquad\quad (b)^{2} & (a)^{2} \qquad \quad(b)^{2} \\ \qquad \quad \text { Write it as a square. } \\ \qquad \bullet \text { Check the middle term. Is it } 2 a b ? & (a)^{2} \searrow_{2 \cdot a \cdot b }\swarrow(b)^{2} & (a)^{2} \searrow_{2 \cdot a \cdot b} \swarrow(b)^{2} \\ \textbf { Step 2} . \text { Write the square of the binomial. } & (a+b)^{2} & (a-b)^{2} \\ \textbf { Step 3} . \text { Check by multiplying. }\end{array}\)

    We’ll work one now where the middle term is negative.

    Example \(\PageIndex{4}\)

    Factor: \(81 y^{2}-72 y+16\)

    Solution

    The first and last terms are squares. See if the middle term fits the pattern of a perfect square trinomial. The middle term is negative, so the binomial square would be \((a-b)^{2}\).

      .
    Are the first and last terms perfect squares? .
    Check the middle term. .
    Does is match \((a-b)^{2}\)? Yes. .
    Write the square of a binomial. .
    Check by multiplying.  
    \((9 y-4)^{2}\)  
    \((9 y)^{2}-2 \cdot 9 y \cdot 4+4^{2}\)  
    \(81 y^{2}-72 y+16 \checkmark\)
    Try It \(\PageIndex{5}\)

    Factor: \(64 y^{2}-80 y+25\)

    Answer

    \((8 y-5)^{2}\)

    Try It \(\PageIndex{6}\)

    Factor: \(16 z^{2}-72 z+81\)

    Answer

    \((4 z-9)^{2}\)

    The next example will be a perfect square trinomial with two variables.

    Example \(\PageIndex{7}\)

    Factor: \(36 x^{2}+84 x y+49 y^{2}\)

    Solution

      .
    Test each term to verify the pattern. .
    Factor. .
    Check by multiplying.  
    \((6 x+7 y)^{2}\)  
    \((6 x)^{2}+2 \cdot 6 x \cdot 7 y+(7 y)^{2}\)  
    \(36 x^{2}+84 x y+49 y^{2} \checkmark\)
    Try It \(\PageIndex{8}\)

    Factor: \(49 x^{2}+84 x y+36 y^{2}\)

    Answer

    \((7 x+6 y)^{2}\)

    Try It \(\PageIndex{9}\)

    Factor: \(64 m^{2}+112 m n+49 n^{2}\)

    Answer

    \((8 m+7 n)^{2}\)

    Example \(\PageIndex{10}\)

    Factor: \(9 x^{2}+50 x+25\)

    Solution

    \(\begin{array}{lc} & 9 x^{2}+50 x+25 \\ \text { Are the first and last terms perfect squares? } & (3 x)^{2} \qquad\quad (5)^2 \\ \text { Check the middle term-is it 2ab? } & (3 x)^{2} \searrow_{2(3 x)(5) }\swarrow (5)^{2}. \\ & \tiny{30x} \\ \text { No! } 30 x \neq 50 x & \text { This does not fit the pattern! } \\ \text { Factor using the "ac" method. } & 9 x^{2}+50 x+25 \\ \begin{array}{c}{\text { ac }} \\ {\text { Notice: } 9 \cdot 25 \text { and } 5 \cdot 45=225} \\ {225}\end{array} \\ {\text { Split the middle term. }} & \begin{array}{c}{9 x^{2}+5 x+45 x+25} \\ {x(9 x+5)+5(9 x+5)} \\ {(9 x+5)(x+5)}\end{array}\\ {\text { Factor by grouping. }} \\ \text { Check. } & \\ \begin{array}{l}{(9 x+5)(x+5)} \\ {9 x^{2}+45 x+5 x+25} \\ {9 x^{2}+50 x+25}\checkmark\end{array}\end{array}\)

    Try It \(\PageIndex{11}\)

    Factor: \(16 r^{2}+30 r s+9 s^{2}\)

    Answer

    \((8 r+3 s)(2 r+3 s)\)

    Try It \(\PageIndex{12}\)

    Factor: \(9 u^{2}+87 u+100\)

    Answer

    \((3 u+4)(3 u+25)\)

    Remember the very first step in our Strategy for Factoring Polynomials? It was to ask “is there a greatest common factor?” and, if there was, you factor the GCF before going any further. Perfect square trinomials may have a GCF in all three terms and it should be factored out first. And, sometimes, once the GCF has been factored, you will recognize a perfect square trinomial.

    Example \(\PageIndex{13}\)

    Factor: \(36 x^{2} y-48 x y+16 y\)

    Solution

      \(36 x^{2} y-48 x y+16 y\)
    Is there a GCF? Yes, 4y, so factor it out. 4\(y\left(9 x^{2}-12 x+4\right)\)
    Is this a perfect square trinomial?  
    Verify the pattern. .
    Factor. 4\(y(3 x-2)^{2}\)
    Remember: Keep the factor 4y in the final product.  
    Check.  
    \(4y(3 x-2)^{2}\)  
    \(4y[(3 x)^{2}-2 \cdot 3 x \cdot 2+2^{2}]\)  
    \(4 y(9 x)^{2}-12 x+4\)  
    \(36 x^{2} y-48 x y+16 y\checkmark\)
    Try It \(\PageIndex{14}\)

    Factor: \(8 x^{2} y-24 x y+18 y\)

    Answer

    2\(y(2 x-3)^{2}\)

    Try It \(\PageIndex{15}\)

    Factor: \(27 p^{2} q+90 p q+75 q\)

    Answer

    3\(q(3 p+5)^{2}\)

    Factor Differences of Squares

    The other special product you saw in the previous was the Product of Conjugates pattern. You used this to multiply two binomials that were conjugates. Here’s an example:

    \[\begin{array}{c}{(3 x-4)(3 x+4)} \\ {9 x^{2}-16}\end{array}\]

    Remember, when you multiply conjugate binomials, the middle terms of the product add to 0. All you have left is a binomial, the difference of squares.

    Multiplying conjugates is the only way to get a binomial from the product of two binomials.

    PRODUCT OF CONJUGATES PATTERN

    If a and b are real numbers

    \[(a-b)(a+b)=a^{2}-b^{2}\]

    The product is called a difference of squares.

    To factor, we will use the product pattern “in reverse” to factor the difference of squares. A difference of squares factors to a product of conjugates.

    DIFFERENCE OF SQUARES PATTERN

    If a and b are real numbers,

    This image shows the difference of two squares formula, a squared – b squared = (a – b)(a + b). Also, the squares are labeled, a squared and b squared. The difference is shown between the two terms. Finally, the factoring (a – b)(a + b) are labeled as conjugates.

    Remember, “difference” refers to subtraction. So, to use this pattern you must make sure you have a binomial in which two squares are being subtracted.

    Example \(\PageIndex{16}\): How to Factor Differences of Squares

    Factor: \(x^{2}-4\)

    Solution

    This table gives the steps for factoring x squared minus 4. The first step is identifying the pattern in the binomial including it is a difference. Also, the first and last terms are verified as squares.The second step is writing the two terms as squares, x squared and 2 squared.The second step is writing the two terms as squares, x squared and 2 squared. The third step is to write the factoring as a product of the conjugates (x – 2)(x + 2).The last step is to check with multiplication.

    Try It \(\PageIndex{17}\)

    Factor: \(h^{2}-81\)

    Answer

    \((h-9)(h+9)\)

    Try It \(\PageIndex{18}\)

    Factor: \(k^{2}-121\)

    Answer

    \((k-11)(k+11)\)

    FACTOR DIFFERENCES OF SQUARES.

    \(\begin{array}{lc} \textbf { Step 1} . \text { Does the binomial fit the pattern? } & a^{2}-b^{2} \\ \qquad \bullet \text { Is this a difference? } & \underline{\quad} - \underline{\quad} \\ \qquad \bullet \text { Are the first and last terms perfect squares? } \\ \textbf { Step 2} . \text { Write them as squares. } & (a)^{2}-(b)^{2} \\ \textbf { Step 3.} \text{ Write the product of conjugates. } & (a-b)(a+b) \\ \textbf { Step 4.} \text{ Check by multiplying. } \end{array}\)

    It is important to remember that sums of squares do not factor into a product of binomials. There are no binomial factors that multiply together to get a sum of squares. After removing any GCF, the expression \(a^{2}+b^{2}\) is prime!

    Don’t forget that 1 is a perfect square. We’ll need to use that fact in the next example.

    Example \(\PageIndex{19}\)

    Factor: \(64 y^{2}-1\)

    Solution

      .
    Is this a difference? Yes. .
    Are the first and last terms perfect squares?  
    Yes - write them as squares. .
    Factor as the product of conjugates. .
    Check by multiplying.  
    \((8 y-1)(8 y+1)\)  
    \(64 y^{2}-1 \checkmark\)
    Try It \(\PageIndex{20}\)

    Factor: \(m^{2}-1\)

    Answer

    \((m-1)(m+1)\)

    Try It \(\PageIndex{21}\)

    Factor: \(81 y^{2}-1\)

    Answer

    \((9 y-1)(9 y+1)\)

    Example \(\PageIndex{22}\)

    Factor: \(121 x^{2}-49 y^{2}\)

    Solution

    \(\begin{array}{lc} & 121 x^{2}-49 y^{2} \\ \text { Is this a difference of squares? Yes. } & (11 x)^{2}-(7 y)^{2} \\ \text { Factor as the product of conjugates. } & (11 x-7 y)(11 x+7 y) \\ \text { Check by multiplying. } & \\ \begin{array}{l}{(11 x-7 y)(11 x+7 y)} \\ {121 x^{2}-49 y^{2}} \checkmark \end{array} \end{array}\)

    Try It \(\PageIndex{23}\)

    Factor: \(196 m^{2}-25 n^{2}\)

    Answer

    \((16 m-5 n)(16 m+5 n)\)

    Try It \(\PageIndex{24}\)

    Factor: \(144 p^{2}-9 q^{2}\)

    Answer

    \((12 p-3 q)(12 p+3 q)\)

    The binomial in the next example may look “backwards,” but it’s still the difference of squares.

    Example \(\PageIndex{25}\)

    Factor: \(100-h^{2}\)

    Solution

    \(\begin{array}{lc} & 100-h^{2} \\ \text { Is this a difference of squares? Yes. } & (10)^{2}-(h)^{2}\\ \text { Factor as the product of conjugates. } & (10-h)(10+h)\\ \text { Check by multiplying. } & \\ \begin{array}{l}{(10-h)(10+h)} \\ {100-h^{2}} \checkmark \end{array} \end{array}\)

    Be careful not to rewrite the original expression as \(h^{2}-100\).

    Factor \(h^{2}-100\) on your own and then notice how the result differs from \((10-h)(10+h)\).

    Try It \(\PageIndex{26}\)

    Factor: \(144-x^{2}\)

    Answer

    \((12-x)(12+x)\)

    Try It \(\PageIndex{27}\)

    Factor: \(169-p^{2}\)

    Answer

    \((13-p)(13+p)\)

    To completely factor the binomial in the next example, we’ll factor a difference of squares twice!

    Example \(\PageIndex{28}\)

    Factor: \(x^{4}-y^{4}\)

    Solution

    \(\begin{array}{lc}\text { Is this a difference of squares? Yes. } & {x^{4}-y^{4}} \\\text { Factor it as the product of conjugates. } & {\left(x^{2}\right)^{2}-\left(y^{2}\right)^{2}} \\ \text { Notice the first binomial is also a difference of squares! } & {\left(x^{2}-y^{2}\right)\left(x^{2}+y^{2}\right)} \\ \text { Factor it as the product of conjugates. The last }& {(x-y)(x+y)\left(x^{2}+y^{2}\right)} \\ \text { factor, the sum of squares, cannot be factored. } \\ \\ \text { Check by multiplying. } & \\\begin{array}{l}{(x-y)(x+y)\left(x^{2}+y^{2}\right)} \\ {[(x-y)(x+y)]\left(x^{2}+y^{2}\right)} \\ {\left(x^{2}-y^{2}\right)\left(x^{2}+y^{2}\right)} \\ {x^{4}-y^{4}} \checkmark \end{array} \end{array}\)

    Try It \(\PageIndex{29}\)

    Factor: \(a^{4}-b^{4}\)

    Answer

    \(\left(a^{2}+b^{2}\right)(a+b)(a-b)\)

    Try It \(\PageIndex{30}\)

    Factor: \(x^{4}-16\)

    Answer

    \(\left(x^{2}+4\right)(x+2)(x-2)\)

    As always, you should look for a common factor first whenever you have an expression to factor. Sometimes a common factor may “disguise” the difference of squares and you won’t recognize the perfect squares until you factor the GCF.

    Example \(\PageIndex{31}\)

    Factor: \(8 x^{2} y-98 y\)

    Solution

    \(\begin{array}{lc}& 8 x^{2} y-98 y \\ \text { Is there a GCF? Yes, } 2 y-\text { factor it out! } & 2 y\left(4 x^{2}-49\right) \\ \text { Is the binomial a difference of squares? Yes. } & 2 y\left((2 x)^{2}-(7)^{2}\right) \\ \text { Factor as a product of conjugates. } & 2 y(2 x-7)(2 x+7) \\ \text { Check by multiplying. } \\ \\ \begin{array}{l}{2 y(2 x-7)(2 x+7)} \\ {2 y[(2 x-7)(2 x+7)]} \\ {2 y\left(4 x^{2}-49\right)} \\ {8 x^{2} y-98 y} \checkmark \end{array} \end{array}\)

    Try It \(\PageIndex{32}\)

    Factor: \(7 x y^{2}-175 x\)

    Answer

    7\(x(y-5)(y+5)\)

    Try It \(\PageIndex{33}\)

    Factor: \(45 a^{2} b-80 b\)

    Answer

    5\(b(3 a-4)(3 a+4)\)

    Example \(\PageIndex{34}\)

    Factor: \(6 x^{2}+96\)

    Solution

    \(\begin{array}{lc}&6 x^{2}+96 \\ \text { Is there a GCF? Yes, } 6-\text { factor it out! } & 6\left(x^{2}+16\right) \\ \text { Is the binomial a difference of squares? No, it } & \\ \text { is a sum of squares. Sums of squares do not factor! } & \\ \text { Check by multiplying. } \\ \\ \begin{array}{l}{6\left(x^{2}+16\right)} \\ {6 x^{2}+96 }\checkmark \end{array} \end{array}\)

    Try It \(\PageIndex{35}\)

    Factor: \(8 a^{2}+200\)

    Answer

    8\(\left(a^{2}+25\right)\)

    Try It \(\PageIndex{36}\)

    Factor: \(36 y^{2}+81\)

    Answer

    9\(\left(4 y^{2}+9\right)\)

    Factor Sums and Differences of Cubes

    There is another special pattern for factoring, one that we did not use when we multiplied polynomials. This is the pattern for the sum and difference of cubes. We will write these formulas first and then check them by multiplication.

    \[\begin{aligned} a^{3}+b^{3} &=(a+b)\left(a^{2}-a b+b^{2}\right) \\ a^{3}-b^{3} &=(a-b)\left(a^{2}+a b+b^{2}\right) \end{aligned}\]

    We’ll check the first pattern and leave the second to you.

      .
    Distribute. .
    Multiply. \(a^{3}-a^{2} b+a b^{2}+a^{2} b-a b^{2}+b^{3}\)
    Combine like terms. \(a^{3}+b^{3}\)
    SUM AND DIFFERENCE OF CUBES PATTERN

    \[\begin{array}{l}{a^{3}+b^{3}=(a+b)\left(a^{2}-a b+b^{2}\right)} \\ {a^{3}-b^{3}=(a-b)\left(a^{2}+a b+b^{2}\right)}\end{array}\]

    The two patterns look very similar, don’t they? But notice the signs in the factors. The sign of the binomial factor matches the sign in the original binomial. And the sign of the middle term of the trinomial factor is the opposite of the sign in the original binomial. If you recognize the pattern of the signs, it may help you memorize the patterns.

    This figure demonstrates the sign patterns in the sum and difference of two cubes. For the sum of two cubes, this figure shows the first two signs are plus and the first and the third signs are opposite, plus minus. The difference of two cubes has the first two signs the same, minus. The first and the third sign are minus plus.

    The trinomial factor in the sum and difference of cubes pattern cannot be factored.

    It can be very helpful if you learn to recognize the cubes of the integers from 1 to 10, just like you have learned to recognize squares. We have listed the cubes of the integers from 1 to 10 in Figure \(\PageIndex{1}\).

    This table has two rows. The first row is labeled n. The second row is labeled n cubed. The first row has the integers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. The second row has the perfect cubes 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000.
    Figure \(\PageIndex{1}\)
    Example \(\PageIndex{37}\): How to Factor the Sum or Difference of Cubes

    Factor: \(x^{3}+64\)

    Solution

    This table gives the steps for factoring x cubed + 64. The first step is to verify the binomial fits the pattern. Also, to check the sign for a sum or difference. This binomial is a sum that fits the pattern.The second step is to write the terms as cubes, x cubed + 4 cubed.The third step is follow the pattern for the sum of two cubes, (x + 4)(x squared minus x times 4 + 4 squared).The fourth step is to simplify, (x + 4)(x squared minus 4 x +16).The last step is to check the answer with multiplication.
    Try It \(\PageIndex{38}\)

    Factor: \(x^{3}+27\)

    Answer

    \((x+3)\left(x^{2}-3 x+9\right)\)

    Try It \(\PageIndex{39}\)

    Factor: \(y^{3}+8\)

    Answer

    \((y+2)\left(y^{2}-2 y+4\right)\)

    FACTOR THE SUM OR DIFFERENCE OF CUBES.

    To factor the sum or difference of cubes:

    1. Does the binomial fit the sum or difference of cubes pattern?
      • Is it a sum or difference?
      • Are the first and last terms perfect cubes?
    2. Write them as cubes.
    3. Use either the sum or difference of cubes pattern.
    4. Simplify inside the parentheses
    5. Check by multiplying the factors.
    Example \(\PageIndex{40}\)

    Factor: \(: x^{3}-1000\)

    Solution

      .
    This binomial is a difference. The first and last terms are perfect cubes.  
    Write the terms as cubes. .
    Use the difference of cubes pattern. .
    Simplify. .
    Check by multiplying.  
    .
    Try It \(\PageIndex{41}\)

    Factor: \(u^{3}-125\)

    Answer

    \((u-5)\left(u^{2}+5 u+25\right)\)

    Try It \(\PageIndex{42}\)

    Factor: \(v^{3}-343\)

    Answer

    \((v-7)\left(v^{2}+7 v+49\right)\)

    Be careful to use the correct signs in the factors of the sum and difference of cubes.

    Example \(\PageIndex{43}\)

    Factor: \(512-125 p^{3}\)

    Solution

      .
    This binomial is a difference. The first and last terms are perfect cubes.  
    Write the terms as cubes. .
    Use the difference of cubes pattern. .
    Simplify. .
    Check by multiplying. We'll leave the check to you.
    Try It \(\PageIndex{44}\)

    Factor: \(64-27 x^{3}\)

    Answer

    \((4-3 x)\left(16+12 x+9 x^{2}\right)\)

    Try It \(\PageIndex{45}\)

    Factor: \(27-8 y^{3}\)

    Answer

    \((3-2 y)\left(9+6 y+4 y^{2}\right)\)

    Example \(\PageIndex{46}\)

    Factor: \(27 u^{3}-125 v^{3}\)

    Solution

      .
    This binomial is a difference. The first and last terms are perfect cubes.  
    Write the terms as cubes. .
    Use the difference of cubes pattern. .
    Simplify. .
    Check by multiplying. We'll leave the check to you.
    Try It \(\PageIndex{47}\)

    Factor: \(8 x^{3}-27 y^{3}\)

    Answer

    \((2 x-3 y)\left(4 x^{2}+6 x y+9 y^{2}\right)\)

    Try It \(\PageIndex{48}\)

    Factor: \(1000 m^{3}-125 n^{3}\)

    Answer

    \((10 m-5 n)\left(100 m^{2}+50 m n+25 n^{2}\right)\)

    In the next example, we first factor out the GCF. Then we can recognize the sum of cubes.

    Example \(\PageIndex{49}\)

    Factor: \(5 m^{3}+40 n^{3}\)

    Solution

      .
    Factor the common factor. .
    This binomial is a sum. The first and last terms are perfect cubes.  
    Write the terms as cubes. .
    Use the sum of cubes pattern. .
    Simplify. .
    Check. To check, you may find it easier to multiply the sum of cubes factors first, then multiply that product by 5. We’ll leave the multiplication for you.

    5\((m+2 n)\left(m^{2}-2 m n+4 n^{2}\right)\)

    Try It \(\PageIndex{50}\)

    Factor: \(500 p^{3}+4 q^{3}\)

    Answer

    4\((5 p+q)\left(25 p^{2}-5 p q+q^{2}\right)\)

    Try It \(\PageIndex{51}\)

    Factor: \(432 c^{3}+686 d^{3}\)

    Answer

    2\((6 c+7 d)\left(36 c^{2}-42 c d+49 d^{2}\right)\)

    Note

    Access these online resources for additional instruction and practice with factoring special products.

    Key Concepts

    • Factor perfect square trinomials See Example. \(\begin{array} {lcc} \textbf { Step 1} \text { . Does the trinomial fit the pattern? } & a^{2}+2 a b+b^{2} & a^{2}-2 a b+b^{2} \\ \qquad \bullet \text { Is the first term a perfect square? } & (a)^{2} & (a)^{2} \\ \qquad \quad\text { Write it as a square. } \\ \qquad \bullet \text { Is the last term a perfect square? } & (a)^{2} \qquad\quad (b)^{2} & (a)^{2} \qquad \quad(b)^{2} \\ \qquad \quad \text { Write it as a square. } \\ \qquad \bullet \text { Check the middle term. Is it } 2 a b ? & (a)^{2} \searrow_{2 \cdot a \cdot b }\swarrow(b)^{2} & (a)^{2} \searrow_{2 \cdot a \cdot b} \swarrow(b)^{2} \\ \textbf { Step 2} . \text { Write the square of the binomial. } & (a+b)^{2} & (a-b)^{2} \\ \textbf { Step 3} . \text { Check by multiplying. }\end{array}\)
    • Factor differences of squares See Example. \(\begin{array}{lc} \textbf { Step 1} . \text { Does the binomial fit the pattern? } & a^{2}-b^{2} \\ \qquad \bullet \text { Is this a difference? } & \underline{\quad} - \underline{\quad} \\ \qquad \bullet \text { Are the first and last terms perfect squares? } \\ \textbf { Step 2} . \text { Write them as squares. } & (a)^{2}-(b)^{2} \\ \textbf { Step 3.} \text{ Write the product of conjugates. } & (a-b)(a+b) \\ \textbf { Step 4.} \text{ Check by multiplying. } \end{array}\)
    • Factor sum and difference of cubes To factor the sum or difference of cubes: See Example.
      1. Does the binomial fit the sum or difference of cubes pattern? Is it a sum or difference? Are the first and last terms perfect cubes?
      2. Write them as cubes.
      3. Use either the sum or difference of cubes pattern.
      4. Simplify inside the parentheses
      5. Check by multiplying the factors.

    Glossary

    perfect square trinomials pattern
    If a and b are real numbers,

    \[\begin{array}{cc} {a^2+2ab+b^2=(a+b)^2}&{a^2−2ab+b^2=(a−b)^2}\\ \nonumber \end{array}\]

    difference of squares pattern
    If a and b are real numbers,
    This image shows the difference of two squares formula, a squared – b squared = (a – b)(a + b). Also, the squares are labeled, a squared and b squared. The difference is shown between the two terms. Finally, the factoring (a – b)(a + b) are labeled as conjugates.
    sum and difference of cubes pattern

    \[\begin{array}{cc} {a^3+b^3=(a+b)(a^2−ab+b^2)}&{a^3−b^3=(a−b)(a^2+ab+b^2)}\\ \nonumber \end{array}\]


    This page titled 7.4: Factor Special Products is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by OpenStax.