Sub topic 10
A Step-by-Step Strategy for Factoring Completely
This chapter assumes you can already do each technique separately: pull out a greatest common factor (GCF), factor by grouping, factor trinomials with the ac method, and recognize a difference of squares, a perfect square trinomial, and a sum or difference of cubes. Here you will learn to choose among them in a fixed order. You will also learn how to tell when you are finished.
What "completely" means
A polynomial is factored completely when it is written as a product of factors that cannot be factored further using integer coefficients. Each factor is either a constant, a variable power, or a prime polynomial. A prime polynomial is one that has no factorization into lower-degree polynomials with integer coefficients.
Take x^2 - 4x. Written as x(x - 4), it is factored completely. But 2x^2 - 8 written as 2(x^2 - 4) is not finished, because x^2 - 4 still factors. The complete answer is 2(x - 2)(x + 2).
Most mistakes in factoring come from stopping too early or from using a technique in the wrong order. A fixed procedure prevents both.
The strategy
- Factor out the GCF. If the leading coefficient is negative, factor out a negative GCF so the polynomial left in parentheses has a positive leading term.
- Count the terms of what remains in the parentheses.
- Two terms: test for a difference of squares, a difference of cubes, or a sum of cubes. A sum of squares is prime.
- Three terms: test for a perfect square trinomial. If it is not one, factor with
x^2 + bx + creasoning when the leading coefficient is 1, or with theacmethod otherwise. - Four terms: try grouping.
- Examine every factor you produced and apply the strategy to it again, starting at step 1.
- Multiply the factors back out to check.
The loop from "Can any factor be factored again?" back to step 1 is the part people skip. Every new factor goes through the whole procedure.
Worked examples
A difference of squares hiding behind a GCF
Factor 3x^3 - 12x.
- The GCF is
3x, so3x^3 - 12x = 3x(x^2 - 4). - The parentheses hold two terms, and
x^2 - 4is a difference of squares:(x - 2)(x + 2). - Recheck:
x - 2,x + 2, and3xare all prime.
Answer: 3x(x - 2)(x + 2).
Repeated difference of squares
Factor 2x^4 - 32.
- Factor out 2:
2(x^4 - 16). - Since
x^4 = (x^2)^2and16 = 4^2, this is a difference of squares:2(x^2 - 4)(x^2 + 4). - Recheck:
x^2 - 4factors again, butx^2 + 4is a sum of squares and is prime.
Answer: 2(x - 2)(x + 2)(x^2 + 4).
Check: (x - 2)(x + 2) = x^2 - 4, and (x^2 - 4)(x^2 + 4) = x^4 - 16. Multiplying by 2 gives 2x^4 - 32.
A negative leading coefficient
Factor -2x^2 + 10x - 12.
- Factor out
-2:-2(x^2 - 5x + 6). - The trinomial has leading coefficient 1. You need two numbers with product 6 and sum -5. They are -2 and -3.
Answer: -2(x - 2)(x - 3).
If you had factored out only 2, you would get 2(-x^2 + 5x - 6). That is correct but not as clean, and the negative leading coefficient makes the trinomial harder to factor by hand.
The `ac` method after a GCF
Factor 12x^2 + 34x + 20.
- The GCF is 2:
2(6x^2 + 17x + 10). - For the trinomial,
ac = 6 * 10 = 60. You need two numbers with product 60 and sum 17. They are 5 and 12. - Split the middle term and group:
6x^2 + 17x + 10
= 6x^2 + 5x + 12x + 10
= x(6x + 5) + 2(6x + 5)
= (6x + 5)(x + 2)Answer: 2(6x + 5)(x + 2).
Skipping step 1 would have made the ac search harder: ac = 240 for the original trinomial, with many more factor pairs to test.
Grouping that leads to another pattern
Factor x^3 + 3x^2 - 4x - 12.
- There is no common factor in all four terms.
- Four terms, so group:
x^2(x + 3) - 4(x + 3) = (x + 3)(x^2 - 4). - Recheck:
x^2 - 4is a difference of squares.
Answer: (x + 3)(x - 2)(x + 2).
Grouping rarely ends the problem by itself. Always recheck the factors it produces.
Edge cases
Three terms plus one: a grouped square
Some four-term polynomials do not group in pairs. Factor x^2 + 6x + 9 - y^2.
The first three terms are a perfect square trinomial, (x + 3)^2. That leaves a difference of squares:
x^2 + 6x + 9 - y^2
= (x + 3)^2 - y^2
= (x + 3 - y)(x + 3 + y)The clue is a four-term polynomial where pairing terms fails but three terms form a perfect square. Group three and one instead of two and two.
Choosing between squares and cubes
Factor x^6 - 64. It is both a difference of squares, (x^3)^2 - 8^2, and a difference of cubes, (x^2)^3 - 4^3.
Use the difference of squares first:
x^6 - 64 = (x^3 - 8)(x^3 + 8)
= (x - 2)(x^2 + 2x + 4)(x + 2)(x^2 - 2x + 4)The difference of cubes first gives (x^2 - 4)(x^4 + 4x^2 + 16). That is still correct, but the quartic factor x^4 + 4x^2 + 16 is hard to spot as (x^2 + 2x + 4)(x^2 - 2x + 4). When both patterns apply, use the difference of squares first. It leaves you with simpler pieces.
Substitution for quartic trinomials
Factor x^4 - 5x^2 + 4. The exponents are 4 and 2, so treat x^2 as a single unit u:
u^2 - 5u + 4 = (u - 1)(u - 4)Replace u with x^2 to get (x^2 - 1)(x^2 - 4). Both factors are differences of squares, so the complete answer is (x - 1)(x + 1)(x - 2)(x + 2).
Recognizing a prime polynomial
You are done with a polynomial when none of the steps apply. These are prime over the integers:
x^2 + 9, a sum of squares.x^2 + x + 1, a trinomial with no valid integer pair.- Any linear polynomial such as
3x + 5.
For a trinomial ax^2 + bx + c with no common factor, there is a quick test. It factors over the integers only if the discriminant b^2 - 4ac is a perfect square. For x^2 + x + 1, the discriminant is 1 - 4 = -3, which is negative, so the trinomial is prime. For 6x^2 + 17x + 10, it is 289 - 240 = 49 = 7^2, so it factors. Use the test to avoid long searches for pairs that do not exist.
Common errors
| Error | Example | Fix |
|---|---|---|
| Stopping after the first technique | `2x^2 - 8 = 2(x^2 - 4)` | Recheck each factor; continue to `2(x - 2)(x + 2)` |
| Forgetting the GCF | Leaving `4x^2 - 36` unfactored by grouping or trial | Pull out 4 first: `4(x^2 - 9)` |
| Losing a sign when factoring a negative | `-x^2 + 9 = -(x^2 + 9)` | Distribute the negative: `-(x^2 - 9)`, which gives `-(x - 3)(x + 3)` |
| Dropping the GCF from the final answer | Factoring `3x^2 - 12` to `(x - 2)(x + 2)` | Keep the 3: `3(x - 2)(x + 2)` |
| Treating a sum of squares as factorable | `x^2 + 25 = (x + 5)(x + 5)` | It is prime; expanding shows the middle term `10x` appears |
| Using the wrong sign pattern for cubes | `x^3 - 8 = (x - 2)(x^2 - 2x + 4)` | The trinomial is `x^2 + 2x + 4`; the signs are the opposite pattern, with all plus inside the quadratic for a difference |
Checking with software
The SymPy library can verify a hand factorization. factor_list returns the constant content and the list of prime factors with their powers, so you can confirm that nothing else factors.
from sympy import symbols, factor, factor_list, expand
x = symbols('x')
exprs = [3*x**3 - 12*x, 2*x**4 - 32, x**2 + 9, 12*x**2 + 34*x + 20]
for e in exprs:
content, factors = factor_list(e)
product = content
for f, power in factors:
product *= f**power
print(e, "->", factor(e), "| check:", expand(product - e) == 0)Each line ends with check: True. For x**2 + 9, SymPy returns the same expression, which signals that it is prime over the integers. Use SymPy to check your work, not to replace the hand procedure. The procedure is what you will need on exams and in later algebra.
Exercises
Exercise
Factor 5x^3 - 45x completely, and state which steps of the strategy you used.
Show answer
Step 1: the GCF is 5x, giving 5x(x^2 - 9). Step 2: the parentheses hold two terms and form a difference of squares, x^2 - 9 = (x - 3)(x + 3). Step 3: every remaining factor is prime. Answer: 5x(x - 3)(x + 3). Check: (x - 3)(x + 3) = x^2 - 9, and 5x(x^2 - 9) = 5x^3 - 45x.
Exercise
Factor x^3 - 2x^2 - 9x + 18 completely.
Show answer
There is no common factor in all four terms, so group: x^2(x - 2) - 9(x - 2) = (x - 2)(x^2 - 9). The factor x^2 - 9 is a difference of squares, so the complete answer is (x - 2)(x - 3)(x + 3). Check: (x - 3)(x + 3) = x^2 - 9, and (x - 2)(x^2 - 9) = x^3 - 2x^2 - 9x + 18.
Exercise
Use the discriminant to decide whether 2x^2 + 3x + 4 factors over the integers.
Show answer
The discriminant is b^2 - 4ac = 9 - 32 = -23. It is negative, so it is not a perfect square, and the trinomial is prime over the integers. There is no GCF to remove, so it cannot be factored further.