To expand algebraic expressions, we need to use the distributive property. The reverse of expansion, called factorization or factoring, consists of using the distributive property in reverse and writing the expression as product of simpler ones. For example, we can write

We say that x3 and x+1 are factors of x22x3.

Click here to read why factorization is important

Now let’s review some techniques of factorization.

Common Factors

When there is a factor common to every term of an expression, we can simply factor it out by applying the distributive property in reverse.

Example 1
Factor each expression

(a) 12x315x2 

(b) 4x58x416x320x2

(c) (2x5)(3x7)+4(3x7)

Solution

(a) The greatest common factor of the terms 12x3 and 15x2 is 3x2, so we have

12x315x2=3x2(4x5)

(b) The greatest common factor of all terms is 4x2, so we have

4x58x416x320x2=4x2(x32x24x5).

(c) The greatest common factor of (2x5)(3x7) and 4(3x7) is (3x7). Thus

(2x5)(3x7)+4(3x7)=(3x7)[(2x5)+4]=(3x7)(2x1)

In calculus sometimes we need to factor expressions with fractional or negative exponents. In this case, we factor out the common factor with the smallest exponent.
 
Example 2

Factor each expression

(a) x3/2+4x1/27x1/2

(b) (x4)3/5+5(x4)2/5

Solution

(a) The common factor is x and its smallest exponent is 1/2. Thus

x3/2+4x1/27x1/2=x1/2(x2+4x7)

Note that x1/2x2=x(21/2)=x3/2 and x1/2x=x(11/2)=x1/2.

(b) The common factor is x4 and its smallest exponent is 3/5. Thus

(x4)3/5+5(x4)2/5=(x4)3/5[1+(x4)1]=(x4)3/2(x3).

Note (x4)3/5(x4)=(x4)(13/5)=(x4)2/5.

Factorization of polynomials of the form x2 + bx + c

Because

(x+p)(x+q)=x2+(p+q)x+pq

we can factor polynomials of the form x2+bx+c if we can find numbers p and q such that

p+q=bandpq=c.

In this section, we choose p and q by trial and error, but technically we can choose them systematically (see the Section on Solutions and Roots).

Example 3

Factor each expression

(a) x2+3x+2

(b) x22x15

Solution

(a) We need to find p and q such that p+q=3 and pq=2. By trial and error we find that they are 2 and 1. Thus the factorization is

x2+3x+2=(x+2)(x+1).

(b) We need to choose p and q such that p+q=2 and pq=15. By trial and error we find that they are 5 and 3. Thus

x22x15=(x5)(x+3).

Special Factorization Formulas

If there is no common factor, to factor algebraic expressions we can sometimes use the following formulas that we reviewed in Section 1.12 and reverse the process.

  1.   A2B2=(A+B)(AB) (Difference of Squares)
  2.  A2±2AB+B2=(A±B)2 (Perfect Square)
  3.  A3B3=(AB)(A2+AB+B2) (Difference of Cubes)
  4.  A3+B3=(A+B)(A2AB+B2)  (Sum of Cubes)
 

Mnemonics for Memorizing the Sum/Difference of Cubes Formulas

Remember a cube of SOAP

 

Example 4
  Factor each expression 

(a) 9x249

(b) x416

(c) x2+10x+25

(d) x327

(e) 8x3+64

Solution
 (a) Rewriting as difference of squares

9x249=(3x)272

Let A=3x and B=7 in A2B2=(AB)(A+B). Then

(3x)272=A2B2=(AB)(A+B)=(3x7)(3x+7).

(b) Let A=x2 and B=4, then

x416=A2B2=(AB)(A+B)=(x24)(x2+4)

We note that we can rewrite x24 as x224, so we can use the Difference of Squares formula and factor it as

x222=(x2)(x+2)

Thus

x416=(x24)(x2+4)=(x2)(x+2)(x2+4).

(c) Let A=x and B=5. Because the middle term 10x=2AB, the polynomial is a perfect square. By the Perfect Square formula we have

x2+10x+25=(x+5)2.

(d) Let A=x and B=3, then

x327=A3B3=(AB)(A2+AB+B2)=(x3)(x2+3x+9).

(e) Here the terms 8x3 and 64 have the common factor 8, so first of all we factor it out.

8x3+64=8(x3+8).

Then we can use the Sum of Cubes formula with A=x and B=2:

x3+8=A3+B3=(A+B)(A2AB+B2)=(x+2)(x22x+4).

Therefore

8x3+64=8(x3+8)=8(x+2)(x22x+4).

Click here for more special factorization formulas

 

 Factorization by Grouping Terms

Sometimes there is no a common factor (other than ±1) to all terms of a polynomial. However, the polynomial can sometimes be factored if we suitably group the terms that have common factors. This strategy may work for polynomials with at least four terms.

For example, we can factor the polynomial x3+3x2+4x+12 if we group the first two terms together and the last two terms together and then factor each group, namely

x3+3x2+4x+12=(x3+3x2)+(4x+12)=x2(x+3)+4(x+3)=(x+3)(x2+4)

For the last equation, we have factored out the common factor x+3.

Example 5

Factor 2x3+x218x9.

Solution

2x3+x218x9=(2x3+x2)(18x+9) (Group terms)=x2(2x+1)9(2x+1) (Factor out common factor of each group)=(2x+1)(x29) (Factor out (2x+1))=(2x+1)(x3)(x+3) (Use Difference of Squares formula)