Skip to main content

Section 0.5 Factoring Polynomials

Factoring: rewriting a polynomial as a product of simpler ones. For example:
\begin{equation*} 6x^2+11x+4=(2x+1)(3x+4) \end{equation*}

Subsection 0.5.1 Greatest Common Factor (GCF)

The Greatest Common Factor (GCF) is the "largest" common factor of all the terms of the polynomial.
It has the form \(cx^m\) where:
  • \(c=\) biggest common factor of the coefficients.
  • \(m=\) smallest exponent on \(x\text{.}\)

Example 0.5.1.

Find the GCF of \(12x^2+18x^3\text{.}\)
Solution: Β  We start by considering the coefficients and then looking at the exponents on \(x\text{.}\)
  • The largest integer that divides \(12\) and \(18\) is \(6\text{.}\)
  • The smallest exponent on \(x\) is \(2\text{.}\)
  • Therefore, the GCF is \(6x^2\text{.}\)

Example 0.5.2.

Find the GCF of \(4x^5+6x^3 -10x^2 \text{.}\)
Solution: Β  We start by considering the coefficients and then looking at the exponents on \(x\text{.}\)
  • The largest integer that divides \(4\text{,}\) \(6\) and \(-10\) is \(2\text{.}\)
  • The smallest exponent on \(x\) is \(2\text{.}\)
  • Therefore, the GCF is \(2x^2 \text{.}\)
The GCF is useful because we can factor it out.

Example 0.5.3.

Factor out the GCF first using a positive coefficient, then with a negative coefficient.
\begin{equation*} 9x^4 -6x^3+12x^2 \end{equation*}
Solution: Β  The GCF is \(3x^2\text{.}\)
\begin{align*} 9x^4 -6x^3+12x^2 \amp =3x^2(3x^2-2x+4) \\[0.25em]\\ \amp \text{and} \\[0.25em]\\ 9x^4 -6x^3+12x^2 \amp = -3x^2 (-3x^2 +2x-4) \end{align*}

Subsection 0.5.2 Factoring by Grouping

Group the terms in pairs and factor out a common factor from each pair.

Example 0.5.4.

Factor \(x^3 -4x^2 + 2x -8\) by grouping.
Solution: Β  Group together the first two terms and the last two terms.
\begin{align*} x^3 -4x^2 + 2x -8 \amp = (x^3-4x^2) + (2x -8) \\ \amp =x^2(x-4) + 2(x-4) \\ \amp =(x^2+2)(x-4) \end{align*}

Subsection 0.5.3 Factoring \(x^2 +bx+c\)

Find numbers \(d\) and \(e\) so that \(d+e=b\) and \(de=c\text{.}\)
Then \(x^2 +bx+c \text{ }\) factors as \((x+d)(x+e)\text{.}\)

Example 0.5.5.

Factor Β  Β  (a) \(x^2+7x+12\) Β  Β  Β  Β  (b) \(x^2+3x-18\)
Solution:
(a) What \(2\) numbers multiply to \(12\) and add to \(7\text{?}\) Β  \(3\) and \(4\text{.}\)
\begin{equation*} \text{So, }x^2+7x+12=(x+3)(x+4). \end{equation*}
Let’s check using FOIL:
\begin{align*} (x+3)(x+4) \amp= x^2 +4x +3x + 3 \cdot 4\\ \amp =x^2 +7x+12 \end{align*}
(b) What \(2\) numbers multiply to \(-18\) and add to \(3\text{?}\) Β  \(-3\) and \(6\text{.}\)
\begin{equation*} \text{So, } x^2+3x-18 = (x-3)(x+6). \end{equation*}

Subsection 0.5.4 Factoring \(ax^2+bx+c\text{,}\) \(a \not =1\)

  1. Find \(2\) numbers \(d\) and \(e\) whose sum is \(b\) and whose product is \(ac\text{.}\)
  2. Replace \(bx\) with \(dx+ex\text{.}\)
  3. Group and factor.

Example 0.5.6.

Factor each polynomial Β  Β  (a) \(3x^2 +10x -8\) Β  Β  Β  Β  Β  (b) \(3x^2+5x-2\)
Solution
(a) What \(2\) numbers multiply to \(3(-8)=-24\) and add to \(10\text{?}\) \(\text{ }12\) and \(-2\text{.}\)
\begin{align*} 3x^2 +\underline{10x} -8 \amp = 3x^2 + \underline{12x-2x} -8 \\ \amp =(3x^2+12x) + (-2x-8) \\ \amp =3x(x+4) + (-2)(x+4) \\ \amp =(3x-2)(x+4) \quad \quad \quad \text{Factor out $(x+4)$} \end{align*}
(b) What \(2\) numbers multiply to \(3(-2)=-6\) and add to \(5\text{?}\) \(\text{ }6\) and \(-1\text{.}\)
\begin{align*} 3x^2+\underline{5x}-2 \amp =3x^2 + \underline{6x-x} -2 \\ \amp =(3x^2 + 6x) + (-x-2) \\ \amp =3x(x+2) + (-1)(x+2) \\ \amp =(3x-1)(x+2) \quad \quad \quad \text{Factor out $(x+2)$} \end{align*}

Subsection 0.5.5 Factoring Special Products

\(a^2-b^2 = (a+b)(a-b)\)
\(\quad\)Difference of squares
\(a^2+2ab+b^2=(a+b)^2\)
\(\text{ }\)
\(a^2-2ab+b^2=(a-b)^2\)
\(\text{ }\)

Example 0.5.7.

Factor each polynomial. Β  Β  (a) \(9t^2-1\) Β  Β  Β  Β  Β  (b) \(m^2+10m+25\)
Solution: Β  Match each with the left-side of one of the special products.
(a) This matches the difference of squares, \(a^2-b^2 \text{.}\)
\begin{align*} 9t^2-1 \amp =(3t)^2-1^2 \\ \amp =(3t+1)(3t-1) \end{align*}
(b) This matches the left-side of the middle formula, \(a^2+2ab+b^2\text{.}\)
\begin{align*} m^2+10m+25 \amp = m^2 + 10m + 5^2 \\ \amp =m^2 + 2(5m) + 5^2 \\ \amp =(m+5)^2 \end{align*}

Subsection 0.5.6 Factoring the Difference and Sum of Cubes

\(a^3-b^3 = (a-b)(a^2+ab+b^2)\)
\(\quad\)Difference of Cubes
\(a^3+b^3 =(a+b)(a^2-ab+b^2)\)
\(\quad\)Sum of Cubes

Example 0.5.8.

Factor each polynomial Β  Β (a) \(27y^3+8\) Β  Β  Β  Β  Β  Β  (b) \(x^3-8\)
Solution:Β  Match each with the left-side of one of the above formulas.
(a) This matches the Sum of Cubes, \(a^3+b^3.\)
\begin{align*} 27y^3+8 \amp =(3y)^3 + 2^3 \\ \amp =(3y+2)((3y)^2-3y(2) + 2^2) \\ \amp =(3y+2)( 3^2y^2 -6y +4) \\ \amp =(3y+2)(9y^2-6y+4) \end{align*}
(b) This matches the Difference of Cubes, \(a^3-b^3.\)
\begin{align*} x^3-8 \amp =x^3-2^3 \\ \amp = (x-2)(x^2+2x+2^2) \\ \amp = (x-2)(x^2 + 2x +4) \end{align*}
Question: Can we factor \(x^2 + 2x +4\) using integer coefficients?
We would need \(2\) integers that multiply to \(4\) and add to \(2\text{.}\) This can’t be done, so no.

Subsection 0.5.7 Factoring Completely

Prime (irreducible) polynomials are polynomials that can’t be factored using integer coefficients.
For example: linear polynomials, \(x^2+2x+4\text{,}\) \(x^2-3\text{,}\) \(x^2+1\text{,}\) \(x^2 +x +1\text{,}\) etc.
A polynomial is factored completely if it’s written as the product of prime polynomials.

Example 0.5.9.

Factor each polynomial completely.
Β  Β  (a) \(-3x^3+27x\) Β  Β  Β  Β  Β  Β  (b) \(x^3+x^2-4x-4\)
Solution
(a) Factor out the GCF with a negative coefficient.
\begin{align*} -3x^3+27x \amp= -3x(x^2-9) \\ \amp =-3x(x^2-3^2) \\ \amp =-3x(x+3)(x-3) \quad \quad \quad \text{(Difference of Squares)} \end{align*}
(b) Since there are four terms, we’ll use factoring by grouping:
\begin{align*} x^3+x^2-4x-4 \amp = (x^3+x^2) + (-4x-4) \\ \amp =x^2(x+1)+ (-4)(x+1) \\ \amp =(x^2-4)(x+1) \quad \quad \quad \quad \quad \quad \text{Factor out $x+1$} \\ \amp =(x+2)(x-2)(x+1) \quad \quad \quad \text{Difference of Squares} \end{align*}

Example 0.5.10.

Factor \(\text{ } -36x^3 + 18x^2 + 4x \text{ }\) completely.
Solution:Β  First, factor out the GCF with a negative coefficient.
\begin{equation*} -36x^3 + 18x^2 + 4x = -2x(18x^2-9x-2) \end{equation*}
Factor \(18x^2-9x-2\text{.}\) Find \(2\) integers that multiply to \(-36\) and add to \(-9\text{.}\)
\(-12\) and \(3\) work.
\begin{align*} 18x^2 \underline{-9x}-2 \amp = 18x^2 \underline{-12x+3x} -2 \\ \amp =(18x^2 - 12x) + (3x-2) \\ \amp =6x(3x-2) + (1)(3x-2) \\ \amp =(6x+1)(3x-2) \end{align*}
Put it all together!
\begin{align*} -36x^3 + 18x^2 + 4x \amp = -2x(18x^2-9x-2) \\ \amp =-2x(6x+1)(3x-2) \end{align*}