a,b = Any expressions (numbers, variables, or combinations)
r,s = The roots of the quadratic; the values that make each factor zero
n = A positive integer exponent
x = The variable in the polynomial being factored
Worked Example
Problem:Factor the expression x2−5x+6 completely.
Step 1:Identify the form. This is a quadratic x2−(r+s)x+rs, so you need two numbers r and s whose sum is 5 and whose product is 6.
r+s=5andrs=6
Step 2:Find the pair. The numbers 2 and 3 satisfy both conditions: 2+3=5 and 2×3=6.
r=2,s=3
Step 3: Apply Rule 1 to write the factored form.
x2−5x+6=(x−2)(x−3)
Step 4:Verify by expanding: (x−2)(x−3)=x2−3x−2x+6=x2−5x+6. The factoring is correct.
✓
Answer:x2−5x+6=(x−2)(x−3)
Another Example
This example uses the difference of cubes rule instead of the basic trinomial rule, and it shows how to handle coefficients other than 1 by rewriting terms as perfect cubes.
Problem:Factor 8x3−27 completely.
Step 1:Recognize that both terms are perfect cubes. Write each term as a cube: 8x3=(2x)3 and 27=33.
8x3−27=(2x)3−33
Step 2:Apply the difference of cubes rule (Rule 4): a3−b3=(a−b)(a2+ab+b2), with a=2x and b=3.
a=2x,b=3
Step 3:Substitute into the formula. Compute each part of the trinomial factor: (2x)2=4x2, (2x)(3)=6x, and 32=9.
(2x−3)(4x2+6x+9)
Step 4:Check that the trinomial 4x2+6x+9 does not factor further over the reals. Its discriminant is 36−144=−108<0, so it is irreducible.
8x3−27=(2x−3)(4x2+6x+9)
Answer:8x3−27=(2x−3)(4x2+6x+9)
Frequently Asked Questions
What is the difference between the difference of cubes and the sum of cubes formulas?
The difference of cubes a3−b3=(a−b)(a2+ab+b2) has a minus sign in the binomial factor and all plus signs in the trinomial. The sum of cubes a3+b3=(a+b)(a2−ab+b2) has a plus in the binomial and an alternating pattern (plus, minus, plus) in the trinomial. A helpful mnemonic is "SOAP": Same sign, Opposite sign, Always Positive — referring to the signs in order across both factors.
Can you factor a sum of squares like a2+b2?
No, a2+b2 cannot be factored into real-number factors. It only factors over the complex numbers as (a−bi)(a+bi), where i=−1. This is a key distinction from the difference of squares a2−b2, which always factors over the reals.
When should you use the general rule an−bn instead of a specific formula?
Use the general rule an−bn=(a−b)(an−1+an−2b+⋯+bn−1) when n is larger than 3 and no simpler factoring path exists. For even exponents like n=4, you can often factor in stages — for example, treating a4−b4 as a difference of squares first, then factoring again. Choosing the most efficient path depends on the specific exponent.
Factoring vs. Expanding (Distributing)
Factoring
Expanding (Distributing)
Direction
Breaks a product apart: rewrites a polynomial as a product of factors
Multiplies factors out: rewrites a product as a sum of terms
Simplifying expressions, verifying a factoring result, distributing
Difficulty
Requires pattern recognition; harder because multiple rules may apply
Mechanical process; apply the distributive property systematically
Why It Matters
Factoring rules appear constantly in algebra and precalculus, especially when solving quadratic and higher-degree polynomial equations. You also need them to simplify rational expressions (algebraic fractions) by canceling common factors. In calculus, factoring is used to evaluate limits, integrate rational functions via partial fractions, and simplify derivatives — making fluency with these rules essential long before and well beyond Algebra 2.
Common Mistakes
Mistake:Confusing the signs in the sum vs. difference of cubes trinomial factor. Students often write a3+b3=(a+b)(a2+ab+b2) with a plus on the ab term.
Correction:The middle term of the trinomial always has the opposite sign from the binomial factor. For a3+b3, the binomial is (a+b), so the trinomial must be (a2−ab+b2). Use the SOAP mnemonic: Same, Opposite, Always Positive.
Mistake:Trying to factor a sum of squares a2+b2 as (a+b)2 or (a+b)(a−b).
Correction:Neither of those is correct. Expanding (a+b)2 gives a2+2ab+b2, and (a+b)(a−b) gives a2−b2. The sum of two squares does not factor over the real numbers. Only the difference of squares a2−b2 factors as (a−b)(a+b).