MathIsimple
Grades 9–11
polynomials
11 min read

Factoring Polynomials: Strategies, Examples, and How to Spot the Right Method

A step-by-step guide to factoring polynomials in Algebra I and II: GCF, factoring trinomials, difference of squares, perfect-square trinomials, and factor by grouping.

Why factor polynomials?

Factoring rewrites a polynomial as a product of simpler polynomials. The process is the reverse of expanding (FOIL or distribution). Factoring matters because once a polynomial is in factored form, you can:

This article walks through the five techniques you should reach for, in roughly the order you should try them.

Step 0: Always factor out the GCF first

Before anything else, look for a greatest common factor (GCF) shared by every term — a number, a power of xx, or both. Pulling it out makes the remaining polynomial smaller and often easier to factor further.

Example 1. Factor 6x3+9x26x^3 + 9x^2.

Both terms share 3x23x^2:

6x3+9x2=3x2(2x+3).6x^3 + 9x^2 = 3x^2(2x + 3).

Example 2. Factor 4x412x3+8x24x^4 - 12x^3 + 8x^2.

The GCF is 4x24x^2:

4x412x3+8x2=4x2(x23x+2)=4x2(x1)(x2).4x^4 - 12x^3 + 8x^2 = 4x^2(x^2 - 3x + 2) = 4x^2(x - 1)(x - 2).

After factoring out 4x24x^2, the remaining trinomial x23x+2x^2 - 3x + 2 factors further (Method 1 below).

Method 1: Factoring trinomials x2+bx+cx^2 + bx + c

For a monic trinomial (leading coefficient 11), look for two numbers that multiply to cc and add to bb. Those numbers become the constants of the two factors.

Example 3. Factor x2+7x+12x^2 + 7x + 12.

Find two numbers that multiply to 1212 and add to 77. Those are 33 and 44:

x2+7x+12=(x+3)(x+4).x^2 + 7x + 12 = (x + 3)(x + 4).

Example 4. Factor x25x+6x^2 - 5x + 6.

We need numbers that multiply to +6+6 and add to 5-5. Both are negative: 2-2 and 3-3.

x25x+6=(x2)(x3).x^2 - 5x + 6 = (x - 2)(x - 3).

If cc is negative, the two factors have opposite signs.

Method 2: Factoring trinomials ax2+bx+cax^2 + bx + c (with a1a \ne 1)

When the leading coefficient is not 11, the most reliable approach is the AC method:

  1. Multiply aca \cdot c.
  2. Find two numbers that multiply to aca \cdot c and add to bb.
  3. Split the middle term into those two pieces.
  4. Factor by grouping.

Example 5. Factor 2x2+7x+32x^2 + 7x + 3.

  1. ac=23=6a \cdot c = 2 \cdot 3 = 6.
  2. Find numbers that multiply to 66 and add to 77: those are 66 and 11.
  3. Split: 2x2+6x+x+32x^2 + 6x + x + 3.
  4. Group: (2x2+6x)+(x+3)=2x(x+3)+1(x+3)=(2x+1)(x+3)(2x^2 + 6x) + (x + 3) = 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3).

You can sanity-check by FOILing: (2x+1)(x+3)=2x2+6x+x+3=2x2+7x+3(2x + 1)(x + 3) = 2x^2 + 6x + x + 3 = 2x^2 + 7x + 3. ✓

Method 3: Difference of squares

Whenever you see a2b2a^2 - b^2, factor on sight using

a2b2=(a+b)(ab).a^2 - b^2 = (a + b)(a - b).

This pattern only works for a difference; a2+b2a^2 + b^2 does not factor over the real numbers.

Example 6. Factor x225x^2 - 25.

This is x252x^2 - 5^2, so x225=(x+5)(x5)x^2 - 25 = (x + 5)(x - 5).

Example 7. Factor 9x2169x^2 - 16.

Recognize this as (3x)242(3x)^2 - 4^2:

9x216=(3x+4)(3x4).9x^2 - 16 = (3x + 4)(3x - 4).

Method 4: Perfect-square trinomials

If a trinomial fits the pattern

a2±2ab+b2=(a±b)2,a^2 \pm 2ab + b^2 = (a \pm b)^2,

you can factor it as a single square. The middle term is the giveaway: it must be exactly 22 times the product of the square roots of the first and last terms.

Example 8. Factor x2+6x+9x^2 + 6x + 9.

The first and last terms are perfect squares (x2x^2 and 323^2), and the middle term equals 2x3=6x2 \cdot x \cdot 3 = 6x. ✓ So x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2.

Example 9. Factor 4x220x+254x^2 - 20x + 25.

First term is (2x)2(2x)^2, last term is 525^2, middle is 2(2x)5=20x-2 \cdot (2x) \cdot 5 = -20x. ✓ So 4x220x+25=(2x5)24x^2 - 20x + 25 = (2x - 5)^2.

Method 5: Factor by grouping (four-term polynomials)

When you have four terms, try grouping them in pairs and factoring each pair.

Example 10. Factor x3+2x2+3x+6x^3 + 2x^2 + 3x + 6.

Group: (x3+2x2)+(3x+6)=x2(x+2)+3(x+2)(x^3 + 2x^2) + (3x + 6) = x^2(x + 2) + 3(x + 2).

Both pieces share (x+2)(x + 2), so factor it out:

x2(x+2)+3(x+2)=(x+2)(x2+3).x^2(x + 2) + 3(x + 2) = (x + 2)(x^2 + 3).

If the two binomials don't match after the first grouping, try rearranging the terms before pairing.

A quick decision flow

When you see a polynomial, work through this short list:

  1. Always factor out the GCF first. Do not skip this — it makes everything simpler.
  2. Two terms? Check for a difference of squares.
  3. Three terms with leading coefficient 11? Try Method 1 (find numbers that multiply to cc and add to bb).
  4. Three terms with leading coefficient 1\ne 1? Use the AC method (Method 2). Also check if it is a perfect-square trinomial.
  5. Four terms? Try grouping.

If none of these works, the polynomial may be prime (not factorable over the integers), or you may need higher-degree techniques like synthetic division or the rational root theorem (Algebra II topics).

Common mistakes

Practice Yourself

Try each one on paper first, then click Show answer to check your work.

  1. 1Practice problem 1

    Factor 5x310x25x^3 - 10x^2 completely.

    Show answer

    GCF is 5x25x^2: 5x310x2=5x2(x2)5x^3 - 10x^2 = 5x^2(x - 2).

  2. 2Practice problem 2

    Factor x29x^2 - 9.

    Show answer

    Difference of squares: x29=(x+3)(x3)x^2 - 9 = (x + 3)(x - 3).

  3. 3Practice problem 3

    Factor x2+8x+15x^2 + 8x + 15.

    Show answer

    Find two numbers that multiply to 1515 and add to 88: those are 33 and 55. So x2+8x+15=(x+3)(x+5)x^2 + 8x + 15 = (x + 3)(x + 5).

  4. 4Practice problem 4

    Factor 3x2+11x+63x^2 + 11x + 6 using the AC method.

    Show answer

    ac=18a \cdot c = 18. Find numbers that multiply to 1818 and add to 1111: 99 and 22. Split: 3x2+9x+2x+63x^2 + 9x + 2x + 6. Group: 3x(x+3)+2(x+3)=(3x+2)(x+3)3x(x + 3) + 2(x + 3) = (3x + 2)(x + 3).

  5. 5Practice problem 5

    Factor x33x2+4x12x^3 - 3x^2 + 4x - 12 by grouping.

    Show answer

    Group: (x33x2)+(4x12)=x2(x3)+4(x3)=(x3)(x2+4)(x^3 - 3x^2) + (4x - 12) = x^2(x - 3) + 4(x - 3) = (x - 3)(x^2 + 4). Note: x2+4x^2 + 4 does not factor further over the reals.

Related Topics

Frequently Asked Questions

Which method should I try first?

Always factor out the GCF first. Then count terms: two terms hint at difference of squares, three terms point to trinomial factoring, and four terms suggest grouping.

Does every polynomial factor over the integers?

No. Some polynomials are prime — they cannot be factored into lower-degree polynomials with integer coefficients. x2+1x^2 + 1 is a classic example. Over the complex numbers, it factors as (x+i)(xi)(x + i)(x - i).

How is factoring related to solving equations?

Once you factor P(x)=0P(x) = 0 into a product of pieces, the zero-product property says each piece equals zero. Setting each factor equal to zero gives you all the solutions.

How do I know if a trinomial is a perfect square?

Check three things: the first term is a perfect square, the last term is a perfect square, and the middle term equals ±2\pm 2 times the product of the two square roots. If all three match, the trinomial factors as (first±last)2(\sqrt{\text{first}} \pm \sqrt{\text{last}})^2.

What is the AC method?

A reliable way to factor ax2+bx+cax^2 + bx + c when a1a \ne 1. You multiply aca \cdot c, find two numbers that multiply to that product and add to bb, split the middle term, and factor by grouping.

Want to keep going?

Try a different problem with the AI Math Solver, browse the practice library, or return to High School Math.

Ask AI ✨