Factoring Polynomials

To factor a polynomial means to rewrite it as a product of simpler polynomials that cannot be factored further over the real numbers. For example,

\[ x^2 + 6x + 8 = (x + 2)(x + 4) \]

Below you will find the main factoring formulas, worked examples with full solutions, and practice questions with answers. A factor polynomial calculator is also available to check your work.


Factoring Polynomials: Key Formulas

  1. Common factor (reverse distributive property) \[ ax + ay = a(x + y) \]
  2. Factoring by grouping \[ ax + ay + bx + by = a(x + y) + b(x + y) = (a + b)(x + y) \]
  3. Difference of two squares \[ x^2 - y^2 = (x + y)(x - y) \]
  4. Difference of two squares (extended) \[ (x + y)^2 - z^2 = (x + y + z)(x + y - z) \]
  5. Sum of two cubes \[ x^3 + y^3 = (x + y)(x^2 - xy + y^2) \]
  6. Difference of two cubes \[ x^3 - y^3 = (x - y)(x^2 + xy + y^2) \]
  7. Difference of fourth powers \[ x^4 - y^4 = (x + y)(x - y)(x^2 + y^2) \]
  8. Perfect square trinomials \[ x^2 + 2xy + y^2 = (x + y)^2 \] \[ x^2 - 2xy + y^2 = (x - y)^2 \]
  9. Perfect cubes \[ x^3 + 3x^2y + 3xy^2 + y^3 = (x + y)^3 \] \[ x^3 - 3x^2y + 3xy^2 - y^3 = (x - y)^3 \]

Worked Examples

Example 1: Factoring Out a Common Factor

Factor the binomial

\[ 12x - 8 \]

Solution

The greatest common factor of 12 and 8 is 4. Rewrite each term using this factor:

\[ 12x - 8 = 4(3x) - 4(2) \]

Factor out 4:

\[ 12x - 8 = 4(3x - 2) \]

You can check the result by expanding \(4(3x - 2)\).


Example 2: Difference of Two Squares

Factor the binomial

\[ 9 - 4x^2 \]

Solution

Rewrite the expression as a difference of squares:

\[ 9 - 4x^2 = 3^2 - (2x)^2 \]

Apply the difference of squares formula:

\[ 9 - 4x^2 = (3 - 2x)(3 + 2x) \]

Example 3: Factoring a Trinomial

Factor the trinomial

\[ 9x^2 + 3x - 2 \]

Solution

Assume a factorization of the form

\[ (ax + m)(bx + n) \]

Expanding gives

\[ abx^2 + x(mb + na) + mn \]

Match coefficients with \(9x^2 + 3x - 2\):

\[ ab = 9, \quad mb + na = 3, \quad mn = -2 \]

Choosing \(a = 3\), \(b = 3\), \(m = 2\), and \(n = -1\) satisfies all conditions. Therefore,

\[ 9x^2 + 3x - 2 = (3x + 2)(3x - 1) \]

Example 4: Factoring by Grouping

Factor the polynomial

\[ x^3 + 2x^2 - 16x - 32 \]

Solution

Group terms with common factors:

\[ (x^3 + 2x^2) - (16x + 32) \]

Factor each group:

\[ x^2(x + 2) - 16(x + 2) \]

Factor out \(x + 2\):

\[ (x + 2)(x^2 - 16) \]

Apply the difference of squares:

\[ (x + 2)(x + 4)(x - 4) \]

Practice Questions

Part A: Factor the polynomials

  1. \((x + 1)^2 - 4\)
  2. \(x^2 + 5x + 6\)
  3. \(x^3 - 1\)
  4. \(x^3 - x^2 - 25x + 25\)
  5. \(27 + 8x^3\)

Part B

Prove that

\[ x^3 - 3x^2y + 3xy^2 - y^3 = (x - y)^3 \]

Solutions

Part A

  1. \[(x + 1)^2 - 4 = (x - 1)(x + 3)\]
  2. \[x^2 + 5x + 6 = (x + 2)(x + 3)\]
  3. \[x^3 - 1 = (x - 1)(x^2 + x + 1)\]
  4. \[x^3 - x^2 - 25x + 25 = (x - 1)(x + 5)(x - 5)\]
  5. \[27 + 8x^3 = (3 + 2x)(4x^2 - 6x + 9)\]

    Note: The quadratic \(4x^2 - 6x + 9\) cannot be factored over the real numbers.

Part B

Grouping and factoring step by step:

\[ \begin{aligned} x^3 - 3x^2y + 3xy^2 - y^3 \\ &= (x^3 - y^3) - (3x^2y - 3xy^2) \\ &= (x - y)(x^2 + xy + y^2) - 3xy(x - y) \\ &= (x - y)(x^2 - 2xy + y^2) \\ &= (x - y)^3 \end{aligned} \]

More References on Polynomials