# Factoring polynomials

Factoring polynomials involves breaking an expression down into a product of other, smaller polynomials, similar to how prime factorization breaks integers down into a product of prime factors.

There are a number of different approaches to factoring polynomials. Certain types of polynomials are relatively simple to factor, particularly when some identity or property can be used, but others can be more complicated, and require the use of methods such as the FOIL method.

## Factoring out the GCF

In some cases, factoring a polynomial may be as simple as determining the greatest common factor (GCF) between the terms. To do this, look at each term in the expression to determine what shared factors they may have. Then write the new expression as a product of the GCF and the reduced terms.

Examples

Factor the following expressions.

1. 2x^{2} + 14x:

2x^{2} + 14x = 2x(x + 7)

2. 12x^{2} + 9x - 15:

3(4x^{2} + 3x - 5)

3. x + 7:

Since x and 7 share no common factors, the expression is already fully factored.

## Factoring binomials

In many cases, fully factoring binomials may just require finding a GCF. Others can be factored further using identities such as difference of squares, difference of cubes, or sum of cubes:

- Difference of squares: (q
^{2}- r^{2}) = (q + r)(q - r) - Difference of cubes: (q
^{3}- r^{3}) = (q - r)(q^{2}+ qr + r^{2}) - Sum of cubes: q
^{3}+ r^{3}= (q + r)(q^{2}- qr + r^{2}

Examples

Factor the following binomials

1. x^{2} - 9 (difference of squares):

(x^{2} - 9) = (x + 3)(x - 3)

2. x^{3} - 27 (difference of cubes):

x^{3} - 27 = (x - 3)(x^{2} + 3x + 9)

3. 2x^{3} + 54 (sum of cubes):

(2x^{3} + 54) = 2(x^{3} + 27)

2(x^{3} + 27) = 2(x + 3)(x^{2} - 3x + 9)

## Factoring trinomials

Like binomials, there are a few identities that can be used to factor trinomials:

(q^{2} + 2qr + r^{2}) = (q + r)(q + r)

(q^{2} - 2qr + r^{2}) = (q - r)(q - r)

Trinomials that don't have the above pattern can be factored using the FOIL method.

### Using the FOIL method to factor

FOIL stands for "First Outer Inner Last," which refers to a method for multiplying binomials. In the context of factoring, the FOIL method is used to help visualize the binomials that make up a polynomial. Essentially, factoring is the opposite of expanding a binomial, and can be thought of as performing the FOIL method, backwards. To factor using the FOIL method, use the following steps, and refer to the example below.

- Set up a product of binomials. Write 2 empty parentheses that will be filled with 2 binomials that are equivalent to the original equation.
- Write values for the first term in each binomial such that the product of the values is equal to the first term of the expression being factored.
- Find a product of two values that is equal to the third term in the expression being factored, that when added, equals the coefficient of the second term in the equation. Write each value as the second term in each binomial with the appropriate sign.

Example

Factor x^{2} + 3x - 28:

1. | ( )( ) |

2. | (x )(x ) |

3. | (x + 7)(x - 4) |

## Factoring identities

Below is a list of identities that can be used when factoring or expanding polynomials.

(q^{2} - r^{2}) |
= | (q + r)(q - r) |

(q^{2} + 2qr + r^{2}) |
= | (q + r)(q + r) |

(q^{2} - 2qr + r^{2}) |
= | (q - r)(q - r) |

(q^{3} + r^{3}) |
= | (q + r)(q^{2} - qr + r^{2}) |

(q^{3} - r^{3}) |
= | (q - r)(q^{2} + qr + r^{2}) |

(q^{3} + 3q^{2}r + 3qr^{2} + r^{3}) |
= | (q + r)^{3} |

(q^{3} - 3q^{2}r + 3qr^{2} - r^{3}) |
= | (q - r)^{3} |