<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />

# Factoring Completely

## Sum or difference with higher powers, factoring algorithm, and grouping.

Estimated14 minsto complete
%
Progress
Practice Factoring Completely
Progress
Estimated14 minsto complete
%

The difference of perfect squares can be generalized as a factoring technique.  By extension, any difference between terms that are raised to an even power like a6b6\begin{align*}a^6-b^6\end{align*} can be factored using the difference of perfect squares technique.  This is because even powers can always be written as perfect squares: a6b6=(a3)2(b3)2\begin{align*}a^6-b^6=(a^3)^2-(b^3)^2\end{align*}.

What about the sum or difference of terms with matching odd powers?  How can those be factored?

### More Factoring Techniques

Factoring a trinomial of the form ax2+bx+c\begin{align*}ax^2+bx+c\end{align*} is much more difficult when a1\begin{align*}a \neq 1\end{align*}. There are four techniques that can be used to factor such expressions.

#### Guess and Check

The educated guess and check method can be time consuming but if the first and last coefficient only have a few factors, there are a finite number of possibilities. Take the expression:

6x213x28\begin{align*}6x^2-13x-28\end{align*}

The 6 can be factored into the following four pairs:

1, 6

2, 3

-1, -6

-2, -3

The -28 can be factored into the following twelve pairs:

1, -28 or -28, 1

-1, 28 or 28, -1

2, -14 or -14, 2

-2, 14 or 14, -2

4, -7 or -7, 4

-4, -7 or -7, -4

The correctly factored expression will need a pair from the top list and a pair from the bottom list.  This is 48 possible combinations to try.

If you try the first pair from each list and multiply out you will see that the first and the last coefficients are correct but the b\begin{align*}b\end{align*} coefficient does not.

(1x+1)(6x28)=6x28x+6x28\begin{align*}(1x+1)(6x-28)=6x-28x+6x-28\end{align*}

A systematic approach to every one of the 48 possible combinations is the best way to avoid missing the correct pair.  In this case it is:

(2x7)(3x+4)=6x2+8x21x28=6x213x28\begin{align*}(2x-7)(3x+4)=6x^2+8x-21x-28=6x^2-13x-28\end{align*}

This method can be extremely long and rely heavily on good guessing which is why other methods are preferable.

#### Factoring by Grouping

The next factoring technique is factoring by grouping.  Suppose you start with an expression already in factored form:

12x2+4xz+3xy+yz\begin{align*}12x^2+4xz+3xy+yz\end{align*}

Notice that the first two terms are divisible by both 4 and x\begin{align*}x\end{align*} and the last two terms are divisible by y\begin{align*}y\end{align*}. First, factor out these common factors and then notice that there emerges a second layer of common factors.  The binomial (3x+z)\begin{align*}(3x+z)\end{align*} is now common to both terms and can be factored out just as before.

12x2+4xz+3xy+yz=4x(3x+z)+y(3x+z)=(3x+z)(4x+y)\begin{align*}12x^2+4xz+3xy+yz &= 4x(3x+z)+y(3x+z)\\ &= (3x+z)(4x+y)\end{align*}

To check your work, multiply the binomials and compare it with the original expression.

(4x+y)(3x+z)=12x2+4xz+3xy+yz\begin{align*}(4x+y)(3x+z)=12x^2+4xz+3xy+yz\end{align*}

Usually when you multiply the factored form of a polynomial, two terms can be combined because they are like terms.  In this case, there are no like terms that can be combined.

An alternative method to the guess and check method and factoring by grouping is the quadratic formula as a clue even though this is an expression and not an equation set equal to zero.

6x213x28\begin{align*}6x^2-13x-28\end{align*}

a=6,b=13,c=28\begin{align*}a=6, b=-13, c=-28\end{align*}

x=b±b24ac2a=13±169462826=13±2912=4212 or1612=72 or 43\begin{align*}x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}=\frac{13 \pm \sqrt{169-4 \cdot 6 \cdot -28}}{2 \cdot 6}=\frac{13 \pm 29}{12}=\frac{42}{12} \ or -\frac{16}{12}=\frac{7}{2} \ or \ -\frac{4}{3}\end{align*}

This means that when set equal to zero, this expression is equivalent to

(x72)(x+43)=0\begin{align*}\left(x-\frac{7}{2}\right)\left(x+\frac{4}{3}\right)=0\end{align*}

Multiplying by 2 and multiplying by 3 only changes the left hand side of the equation because the right hand side will remain 0.  This has the effect of shifting the coefficient from the denominator of the fraction to be in front of the x\begin{align*}x\end{align*}.

6x213x28=(2x7)(3x+4)\begin{align*}6x^2-13x-28=(2x-7)(3x+4)\end{align*}

#### Factoring Algorithm

Another useful and efficient technique is the procedural factoring algorithm. The proof of the algorithm is beyond the scope of this book, but is a reliable technique for getting a handle on tricky factoring questions of the form: 6x213x28\begin{align*}6x^2-13x-28\end{align*}

We will factor 6x213x28\begin{align*}6x^2-13x-28\end{align*} using the factoring algorithm to introduce it to you.

First, multiply the first coefficient with the last coefficient and set the first coefficient to 1:

x213x168\begin{align*}x^2-13x-168\end{align*}

Second, factor as you normally would with a=1\begin{align*}a=1\end{align*}:

(x21)(x+8)\begin{align*}(x-21)(x+8)\end{align*}

Third, divide the second half of each binomial by the coefficient that was multiplied in step 1:

(x216)(x+86)\begin{align*}\left(x-\frac{21}{6}\right)\left(x+\frac{8}{6}\right)\end{align*}

Fourth, simplify each fraction completely:

(x72)(x+43)\begin{align*}\left(x-\frac{7}{2}\right)\left(x+\frac{4}{3}\right)\end{align*}

Lastly, move the denominator of each fraction to become the coefficient of x\begin{align*}x\end{align*}:

(2x7)(3x+4)\begin{align*}(2x-7)(3x+4)\end{align*}

When you compare the computational difficulty of the three methods mentioned above, you will see that the factoring algorithm is the most efficient.

#### Sum or Difference of Matching Odd Powers

The last method of advanced factoring does not involve expressions of the form ax2+bx+c\begin{align*}ax^2+bx+c\end{align*}. Instead, it involves the patterns that arise from factoring the sum or difference of terms with matching odd powers.  The patterns are:

a3+b3=(a+b)(a2ab+b2)\begin{align*}a^3+b^3=(a+b)(a^2-ab+b^2)\end{align*}

a3b3=(ab)(a2+ab+b2)\begin{align*}a^3-b^3=(a-b)(a^2+ab+b^2)\end{align*}

This method is shown in the examples below and the pattern is fully explored in the Review.

### Examples

#### Example 1

Earlier, you were asked how the sum and difference of terms with matching odd powers can be factored. The sum or difference of terms with matching odd powers can be factored in a precise pattern because when multiplied out, all intermediate terms cancel each other out.

a5+b5=(a+b)(a4a3b+a2b2ab3+b4)\begin{align*}a^5+b^5=(a+b)(a^4-a^3b+a^2b^2-ab^3+b^4)\end{align*}

When a\begin{align*}a\end{align*} is distributed: a5a4b+a3b2a2b3+ab4\begin{align*}a^5-a^4b+a^3b^2-a^2b^3+ab^4\end{align*}

When b\begin{align*}b\end{align*} is distributed: +a4ba3b2+a2b3ab4+b5\begin{align*}+a^4b-a^3b^2+a^2b^3-ab^4+b^5\end{align*}

Notice all the inside terms cancel: a5+b5\begin{align*}a^5+b^5\end{align*}

#### Example 2

Show that a3b3\begin{align*}a^3-b^3\end{align*}  factors into the result given in the Sum or Difference of Matching Odd Powers section.

Factoring,

a3b3=(ab)(a2+ab+b2)=a3+a2b+ab2a2bab2b3=a3b3\begin{align*}a^3-b^3 &= (a-b)(a^2+ab+b^2)\\ &= a^3+a^2b+ab^2-a^2b-ab^2-b^3\\ &= a^3-b^3\end{align*}

#### Example 3

Show that a3+b3\begin{align*}a^3+b^3\end{align*}  factors into the result given in the Sum or Difference of Matching Odd Powers section.

Factoring,

a3+b3=(a+b)(a2ab+b2)=a3a2b+ab2+ba2ab2+b3=a3+b3\begin{align*}a^3+b^3 &= (a+b)(a^2-ab+b^2)\\ &= a^3-a^2b+ab^2+ba^2-ab^2+b^3\\ &= a^3+b^3\end{align*}

#### Example 4

Factor the following expression without using the quadratic formula or trial and error:

8x2+30x+27\begin{align*}8x^2+30x+27\end{align*}

Using the factoring algorithm:

8x2+30x+27x2+30x+216(x+12)(x+18)(x+128)(x+188)(x+32)(x+94)(2x+3)(4x+9)\begin{align*}8x^2+30x+27 &\rightarrow x^2+30x+216\\ & \rightarrow (x+12)(x+18)\\ & \rightarrow \left(x+ \frac{12}{8}\right) \left(x+\frac{18}{8}\right)\\ & \rightarrow \left(x+\frac{3}{2}\right) \left(x+\frac{9}{4}\right)\\ & \rightarrow (2x+3)(4x+9)\end{align*}

### Review

Factor each expression completely.

1. 2x25x12\begin{align*}2x^2-5x-12\end{align*}

2. 12x2+5x3\begin{align*}12x^2+5x-3\end{align*}

3. 10x2+13x3\begin{align*}10x^2+13x-3\end{align*}

4. 18x2+9x2\begin{align*}18x^2+9x-2\end{align*}

5. 6x2+7x+2\begin{align*}6x^2+7x+2\end{align*}

6. 8x2+34x+35\begin{align*}8x^2+34x+35\end{align*}

7. \begin{align*}5x^2+23x+12\end{align*}

8. \begin{align*}12x^2-11x+2\end{align*}

Expand the following expressions. What do you notice?

9. \begin{align*}(a+b)(a^8-a^7b+a^6b^2-a^5b^3+a^4b^4-a^3b^5+a^2b^6-ab^7+b^8)\end{align*}

10. \begin{align*}(a-b)(a^6+a^5b+a^4b^2+a^3b^3+a^2b^4+ab^5+b^6)\end{align*}

11. Describe in words the pattern of the signs for factoring the difference of two terms with matching odd powers.

12. Describe in words the pattern of the signs for factoring the sum of two terms with matching odd powers.

Factor each expression completely.

13. \begin{align*}27x^3-64\end{align*}

14. \begin{align*}x^5-y^5\end{align*}

15. \begin{align*}32a^5-b^5\end{align*}

16. \begin{align*}32x^5+y^5\end{align*}

17. \begin{align*}8x^3+27\end{align*}

18. \begin{align*}2x^2+2xy+x+y\end{align*}

19. \begin{align*}8x^3+12x^2+2x+3\end{align*}

20. \begin{align*}3x^2+3xy-4x-4y\end{align*}

To see the Review answers, open this PDF file and look for section 2.2.

### My Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes
Please to create your own Highlights / notes

### Vocabulary Language: English

Cubed

The cube of a number is the number multiplied by itself three times. For example, "two-cubed" = $2^3 = 2 \times 2 \times 2 = 8$.

factor

Factors are the numbers being multiplied to equal a product. To factor means to rewrite a mathematical expression as a product of factors.

Factor to Solve

"Factor to Solve" is a common method for solving quadratic equations accomplished by factoring a trinomial into two binomials and identifying the values of $x$ that make each binomial equal to zero.

The quadratic formula states that for any quadratic equation in the form $ax^2+bx+c=0$, $x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}$.

Trinomial

A trinomial is a mathematical expression with three terms.