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 a^6-b^6 can be factored using the difference of perfect squares technique. This is because even powers can always be written as perfect squares: @$a^6-b^6=(a^3)^2-(b^3)^2@$ .

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

#### Watch This

http://www.youtube.com/watch?v=55wm2c1xkp0 James Sousa: Factoring: Trinomials using Trial and Error and Grouping

#### Guidance

Factoring a trinomial of the form @$ax^2+bx+c@$ is much more difficult when @$a \neq 1@$ . In Examples A and B, you will see how the following expression can be factored using educated guessing and checking and the quadratic formula. Additionally, you will see an algorithm (a step by step procedure) for factoring these types of polynomials without guessing. 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:

@$6x^2-13x-28@$

When you compare the computational difficulty of the three methods, you will see that the algorithm described in Example A is the most efficient.

A second type of advanced factoring technique is factoring by grouping. Suppose you start with an expression already in factored form:

@$(4x+y)(3x+z)=12x^2+4xz+3xy+yz@$

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. In Example C, you will see how to factor by grouping.

The last method of advanced factoring is the sum or difference of terms with matching odd powers. The pattern is:

@$a^3+b^3=(a+b)(a^2-ab+b^2)@$

@$a^3-b^3=(a-b)(a^2+ab+b^2)@$

This method is shown in the guided practice and the pattern is fully explored in the exercises.

**
Example A
**

Factor the following expression: @$6x^2-13x-28@$

**
Solution:
**
While this trinomial can be factored by using the quadratic formula or by guessing and checking, it can also be factored using a factoring algorithm. Here, you will learn how this algorithm works.

@$6x^2-13x-28@$

First, multiply the first coefficient with the last coefficient:

@$x^2-13x-168@$

Second, factor as you normally would with @$a=1@$ :

@$(x-21)(x+8)@$

Third, divide the second half of each binomial by the coefficient that was multiplied originally:

@$\left(x-\frac{21}{6}\right)\left(x+\frac{8}{6}\right)@$

Fourth, simplify each fraction completely:

@$\left(x-\frac{7}{2}\right)\left(x+\frac{4}{3}\right)@$

Lastly, move the denominator of each fraction to become the coefficient of @$x@$ :

@$(2x-7)(3x+4)@$

Note that this is a procedural algorithm that has not been proved in this text. It does work and can be a great time saving tool.

**
Example B
**

Factor the following expression using two methods different from the method used in Example A: @$6x^2-13x-28@$

**
Solution:
**
The educated guess and check method can be time consuming, but since there are a finite number of possibilities, it is still possible to check them all. 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@$ coefficient does not.

@$(1x+1)(6x-28)=6x-28x+6x-28@$

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:

@$(2x-7)(3x+4)=6x^2+8x-21x-28=6x^2-13x-28@$

This method can be extremely long and rely heavily on good guessing which is why the algorithm in Example A is provided and preferable.

An alternative method is using the quadratic formula as a clue even though this is not an equation set equal to zero.

@$6x^2-13x-28@$

@$a=6, b=-13, c=-28@$

@$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}@$

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

@$\left(x-\frac{7}{2}\right)\left(x+\frac{4}{3}\right)=0@$

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@$ just like in Example A.

@$6x^2-13x-28=(2x-7)(3x+4)@$

**
Example C
**

Factor the following expression using grouping: @$12x^2+4xz+3xy+yz@$

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

@$$12x^2+4xz+3xy+yz &= 4x(3x+z)+y(3x+z)\\ &= (3x+z)(4x+y)@$$

**
Concept Problem Revisited
**

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.

@$$a^5+b^5=(a+b)(a^4-a^3b+a^2b^2-ab^3+b^4)@$$

When @$a@$ is distributed: @$a^5-a^4b+a^3b^2-a^2b^3+ab^4@$

When @$b@$ is distributed: @$+a^4b-a^3b^2+a^2b^3-ab^4+b^5@$

Notice all the inside terms cancel: @$a^5+b^5@$

#### Vocabulary

**
To factor
**
means to rewrite a polynomial expression given as a sum of terms into a product of factors.

#### Guided Practice

1. Show how @$a^3-b^3@$ factors by checking the result given in the guidance section.

2. Show how @$a^3+b^3@$ factors by checking the result given in the guidance section.

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

@$8x^2+30x+27@$

**
Answers:
**

1. Factoring,

@$$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@$$

2. Factoring,

@$$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@$$

3. Use the algorithm described in Example A.

@$$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)@$$

#### Practice

Factor each expression completely.

1. @$2x^2-5x-12@$

2. @$12x^2+5x-3@$

3. @$10x^2+13x-3@$

4. @$18x^2+9x-2@$

5. @$6x^2+7x+2@$

6. @$8x^2+34x+35@$

7. @$5x^2+23x+12@$

8. @$12x^2-11x+2@$

Expand the following expressions. What do you notice?

9. @$(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)@$

10. @$(a-b)(a^6+a^5b+a^4b^2+a^3b^3+a^2b^4+ab^5+b^6)@$

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. @$27x^3-64@$

14. @$x^5-y^5@$

15. @$32a^5-b^5@$

16. @$32x^5+y^5@$

17. @$8x^3+27@$

18. @$2x^2+2xy+x+y@$

19. @$8x^3+12x^2+2x+3@$

20. @$3x^2+3xy-4x-4y@$