How to Factor Polynomials
Written by Awn · Published · 9 min read
Quick Answer
Here is how to factor polynomials. Take out the greatest common factor first. Then count the terms. Two terms may be a difference of squares or cubes. Three terms factor with two numbers that multiply and add correctly. Four terms usually need grouping. Keep going until nothing factors, then multiply back to check.
What Does Factoring a Polynomial Mean?
Factoring polynomials means writing them as a product. It is multiplying in reverse. Multiplying turns into . Factoring turns it back.
Factored form is useful because you can see the roots. If , then or .
How to Factor Polynomials Step by Step
- Put the terms in order, highest power first.
- Take out the greatest common factor (GCF).
- Count the terms that are left.
- Use the method for that number of terms.
- Look at each factor again.
- Multiply back to check.
Which Factoring Method Should You Use?
| Terms | Look for | Pattern |
|---|---|---|
| Any | GCF | |
| 2 | Difference of squares | |
| 2 | Difference of cubes | |
| 2 | Sum of cubes | |
| 3 | Perfect square | |
| 3 | Trinomial | Two numbers: multiply and add |
| 4 | Grouping | Two pairs with a shared bracket |
The factoring calculator shows which one it used.
Method 1: Greatest Common Factor
Factor .
- The biggest number in both is 3, and the biggest power in both is .
- Divide each term by : and 3.
- Answer: .
Method 2: Trinomials With 1 in Front
Factor .
- Find two numbers that multiply to and add to .
- They are and 4.
- Answer: .
Method 3: Trinomials With Another Number in Front
Factor . This is the ac method.
- . Two numbers that multiply to 6 and add to 7 are 6 and 1.
- Split the middle: .
- Group: .
- Answer: .
Method 4: Difference of Squares
Factor . Since and , the answer is . A sum of squares, such as , does not factor with real numbers.
Method 5: Sum and Difference of Cubes
Factor . Since , use the pattern: . The word SOAP helps with signs: same, opposite, always positive.
Method 6: Factoring by Grouping
Factor .
- Pair the terms: .
- Take out the bracket: .
- The second part is a difference of squares: .
Substitution: A Hidden Trinomial
Some polynomials with higher powers are trinomials in disguise. The sign is that one power is double the other.
Factor .
- Let . Then it reads .
- Two numbers that multiply to 36 and add to are and : .
- Put back: .
- Both are differences of squares: .
Step 4 is easy to miss. Always look at each factor again before you stop.
The Factor and Remainder Theorems
Two short facts make higher powers easier.
- Remainder theorem: when you divide a polynomial by , the remainder is the value of the polynomial at .
- Factor theorem: if that value is 0, then is a factor.
So you can test a factor just by putting a number in. Is a factor of ? Put in 2: . Yes, it is. Is ? Put in 1: . No, and the remainder would be 2.
Which numbers are worth testing? If the first coefficient is 1, try the numbers that divide the last term, both positive and negative. For , that means 1, 2 and 4, and their negatives. If the first coefficient is not 1, also try those numbers divided by its factors. This is called the rational root theorem.
Factoring With Two Letters
The same methods work when there are two letters. Treat one of them like a number.
- GCF: . Take the smaller power of each letter.
- Trinomial: . Find the two numbers as usual, then attach .
- Squares: .
What If Nothing Works?
For higher powers, test small numbers. If putting in gives 0, then is a factor. Divide it out with polynomial long division and factor what is left. If no rational number works, the polynomial may be prime over the whole numbers.
Worked Examples
Example 1: GCF and a Pattern Together
Factor .
- GCF: .
- Difference of squares: .
Example 2: A Negative Middle Term
Factor .
- . Two numbers that multiply to 24 and add to are and .
- Split: .
- Group: .
Example 3: A Perfect Square
Factor .
- The ends are squares: and .
- Test the middle: . It fits.
- So the answer is .
Example 4: Three Steps in a Row
Factor .
- The GCF is : .
- Two numbers that multiply to and add to 3 are 5 and .
- Answer: .
Example 5: A Cubic With a Known Root
Factor .
- Test small numbers that divide 6. At : . So is a factor.
- Divide it out. The quotient is .
- Factor that: .
- Answer: .
Example 6: A Cubic With a Double Factor
Factor .
- At the value is 0, so is a factor.
- Divide it out. The quotient is .
- Factor that: .
- Put it together: .
The factor appears twice. On a graph, the curve touches the axis at 2 instead of crossing it.
Example 7: A Leading Minus Sign
Factor .
- Take out first: . Every sign inside changes.
- Two numbers that multiply to and add to are and 3.
- Answer: .
Taking the minus out first makes the sign patterns work normally.
Example 8: Grouping With a Negative
Factor .
- Pair the terms: and .
- Take out of the second pair: . Now both brackets match.
- Answer: .
If you take out 5 instead of , the second bracket is and the two don't match. When brackets are exact opposites, change the sign you took out.
How to Find the Two Numbers Faster
For , you need two numbers that multiply to and add to . The signs tell you a lot before you list anything:
| Sign of | Sign of | The two numbers |
|---|---|---|
| Positive | Positive | Both positive |
| Positive | Negative | Both negative |
| Negative | Positive | Different signs, the bigger one positive |
| Negative | Negative | Different signs, the bigger one negative |
Say you have . Since is negative, the signs differ, and since is negative, the bigger number is negative. List pairs for 24 and look for a difference of 2: 1 and 24, 2 and 12, 3 and 8, 4 and 6. The pair 4 and 6 works, so the numbers are 4 and .
If no pair works, check . When it is not a perfect square, the trinomial does not factor over the whole numbers, and you can stop looking.
A Plan You Can Use on a Test
Write the terms in order, then say three questions in your head. Is there a common factor? How many terms are left? Can any piece be broken down again?
If you are stuck on a trinomial, check its discriminant before you keep hunting for pairs. If you are stuck on four terms, try pairing them in a different order. And if you only need the roots, remember that you can use the quadratic formula instead of factoring.
How to Check a Factored Answer
Multiply the factors and compare every term. For Example 4: .
For a quick test, pick a number, such as . The original gives . The factors give . A match is a good sign, but one number can agree by luck, so multiply back when it matters.
Common Mistakes
Skipping the GCF
does not look like a difference of squares until the 5 comes out.
Getting the Signs Backward
If is positive, both numbers have the same sign as . If is negative, they have different signs.
Factoring a Sum of Squares
is not or . It does not factor with real numbers.
Stopping After One Step
is not finished, because factors again. The full answer is .
Forgetting the GCF in the Answer
After you take out 2 from , keep it. The answer is , not . The 2 is a factor like any other.
Confusing the Cube Patterns
In the middle term of the long bracket is minus. In it is plus. The middle sign is always the opposite of the sign you started with.
Practice Problems
- Factor .
- Factor .
- Factor .
- Factor .
- Factor .
Show the answers
Check Your Answer With the Factoring Calculator
Multiply your factors. If you don't get the original, look at the signs first. Then compare with the factor calculator. To use factors to find roots, read how to solve quadratic equations. There are more exercises in Factoring Polynomials in OpenStax College Algebra.
FAQ
What Is the First Step in Factoring?
Look for a greatest common factor. Taking it out makes the numbers smaller and can reveal a pattern.
How to Factor Trinomials Quickly?
List the factor pairs of and find the pair that adds to . When is not 1, use the pairs of instead.
How Do You Factor a Polynomial With 4 Terms?
Try factoring by grouping. Pair the terms so that both pairs share the same bracket.
How Do You Know When You Are Done?
When no factor has a GCF and none matches a pattern. is done. is not.
Is Factoring the Same as Solving?
No. Factoring rewrites an expression. Solving sets it equal to zero and finds .
How Do You Factor a Cubic Polynomial?
Try the GCF and grouping first. If they fail, test small numbers until one gives zero. Divide that factor out, and factor the quadratic that is left.
Are There Polynomials You Can't Factor?
Not with whole numbers. A polynomial that can't be broken down that way is called prime or irreducible. is one example.
Next step: sort ten problems by number of terms before factoring any of them. Knowing how to factor polynomials is mostly knowing which method to reach for.
Try the Calculator
Related Pages
- How to Solve Quadratic EquationsLearn how to solve quadratic equations by factoring, square roots, completing the square, the formula and graphing. See solving quadratics by example.
- Polynomial Long DivisionLearn polynomial long division step by step, with remainders, missing terms and worked examples. See dividing polynomials in diagrams, then practice.