Skip to main content

Factoring Polynomials

Factoring is multiplication run in reverse. When you multiply (x+2)(x+3)(x + 2)(x + 3) you get x2+5x+6 x^2 + 5x + 6; factoring asks the opposite question — given x2+5x+6 x^2 + 5x + 6, which two things were multiplied to produce it? That single skill quietly powers most of algebra: it turns messy expressions into products, and products are what let you solve equations, simplify fractions, and find where a curve crosses zero.

If algebra ever felt like a bag of unrelated tricks, factoring is where it clicks together. Every technique below is really one idea — rewrite a sum as a product — and once an expression is a product, the zero-product property hands you the solutions almost for free. Let us build that understanding, not just the recipes.

Learning Objectives

  • Factor out the greatest common factor (GCF) from any polynomial.
  • Factor four-term polynomials by grouping.
  • Factor quadratic trinomials, both when the leading coefficient is 1 1 and when it is not.
  • Recognize and apply the special patterns: difference of squares, and sum/difference of cubes.
  • Explain why factoring solves polynomial equations through the zero-product property.
  • Choose the right technique quickly by reading the structure of an expression.

Quick Answer

To factor a polynomial means to write it as a product of simpler polynomials. Always start by pulling out the greatest common factor. Then match the structure: four terms suggest grouping; a three-term quadratic suggests trinomial factoring; two terms suggest a special pattern (difference of squares a2b2=(ab)(a+b) a^2 - b^2 = (a-b)(a+b), or sum/difference of cubes). Factoring matters because of the zero-product property: if a product equals zero, at least one factor must be zero — so (x3)(x+2)=0(x-3)(x+2)=0 instantly gives x=3x=3 or x=2x=-2. Factor fully, checking each factor to see if it factors further.

Where It Came From

Factoring did not begin with xx's and ++ signs — it began with areas. Ancient and medieval mathematicians had no symbolic algebra, so a quadratic like x2+10x x^2 + 10x was literally a square of side xx plus a rectangle. The Greek geometers of Euclid's Elements (around 300 BCE) proved algebraic identities as theorems about regions: Book II contains what we now read as (a+b)2=a2+2ab+b2(a+b)^2 = a^2 + 2ab + b^2 and a2b2=(ab)(a+b) a^2 - b^2 = (a-b)(a+b), drawn as squares cut into pieces. There was no factoring "formula," only the picture — and the picture is the factorization.

The decisive step came from the Persian mathematician al-Khwārizmī (around 820 CE) in Baghdad, whose book al-Kitāb al-mukhtaṣar fī ḥisāb al-jabr wa'l-muqābala gave algebra its name (al-jabr). To solve quadratics he used "completing the square" — physically building the square that a quadratic was missing — a technique that is the geometric ancestor of factoring. Later Islamic mathematicians such as Thābit ibn Qurra and al-Karajī pushed these manipulations toward general polynomial arithmetic.

The need driving all of this was practical and persistent: solving equations for unknown quantities — inheritance shares, land measurement, trade. Once symbolic notation matured in Renaissance Europe (Viète, Descartes, 1500s–1600s), the geometric pictures collapsed into the compact algebraic rules you are about to learn. Factoring is the modern, symbolic shadow of cutting a square into rectangles.

The Greatest Common Factor: Always Start Here

The GCF is the largest expression that divides every term. Factoring it out uses the distributive law backwards: ab+ac=a(b+c) ab + ac = a(b + c). Take the numerical GCF of the coefficients and the lowest power of each shared variable.

Worked example. Factor 12x3+18x230x 12x^3 + 18x^2 - 30x.

  • Coefficient GCF of 12,18,30 12, 18, 30 is 6 6.
  • Every term has at least x1x^1, so factor out xx.
  • GCF is 6x 6x.

12x3+18x230x=6x(2x2+3x5) 12x^3 + 18x^2 - 30x = 6x(2x^2 + 3x - 5)

Check by distributing: 6x2x2=12x3 6x \cdot 2x^2 = 12x^3, 6x3x=18x2 6x \cdot 3x = 18x^2, 6x(5)=30x 6x \cdot (-5) = -30x. Correct. Notice the leftover trinomial 2x2+3x5 2x^2 + 3x - 5 can factor further — always ask whether you are done.

Factoring by Grouping (Four Terms)

When a polynomial has four terms, split it into two pairs, factor the GCF from each pair, and hope a common binomial appears.

Worked example. Factor x3+3x2+4x+12 x^3 + 3x^2 + 4x + 12.

Group: (x3+3x2)+(4x+12)(x^3 + 3x^2) + (4x + 12).

Factor each pair: x2(x+3)+4(x+3) x^2(x + 3) + 4(x + 3).

Both terms share the binomial (x+3)(x + 3), so factor it out:

x3+3x2+4x+12=(x+3)(x2+4) x^3 + 3x^2 + 4x + 12 = (x + 3)(x^2 + 4)

If the shared binomials had not matched, the fix is often to reorder the terms or factor out a negative from the second pair. Grouping is also the engine behind the "AC method" for hard trinomials below.

Trinomials: The Heart of Factoring

Leading coefficient 1

To factor x2+bx+c x^2 + bx + c, find two numbers that multiply to cc and add to bb.

Worked example. Factor x2+5x+6 x^2 + 5x + 6. Need two numbers multiplying to 6 6, adding to 5 5: that is 2 2 and 3 3.

x2+5x+6=(x+2)(x+3) x^2 + 5x + 6 = (x + 2)(x + 3)

Worked example with signs. Factor x22x15 x^2 - 2x - 15. Need product 15-15, sum 2-2: that is 5-5 and +3+3.

x22x15=(x5)(x+3) x^2 - 2x - 15 = (x - 5)(x + 3)

Leading coefficient not 1 — the AC method

To factor ax2+bx+c ax^2 + bx + c, find two numbers that multiply to ac a \cdot c and add to bb, then split the middle term and group.

Worked example. Factor 2x2+7x+3 2x^2 + 7x + 3. Here ac=23=6 ac = 2 \cdot 3 = 6; need two numbers with product 6 6 and sum 7 7: that is 6 6 and 1 1.

Split the middle term: 2x2+6x+1x+3 2x^2 + 6x + 1x + 3.

Group: 2x(x+3)+1(x+3)=(x+3)(2x+1) 2x(x + 3) + 1(x + 3) = (x + 3)(2x + 1).

Check: (x+3)(2x+1)=2x2+x+6x+3=2x2+7x+3(x+3)(2x+1) = 2x^2 + x + 6x + 3 = 2x^2 + 7x + 3. Correct.

Special Patterns: Recognize Them Instantly

Difference of squares

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

This is Euclid's cut-square identity. Note a sum of squares a2+b2 a^2 + b^2 does not factor over the real numbers.

Worked example. Factor 9x216 9x^2 - 16. Here 9x2=(3x)2 9x^2 = (3x)^2 and 16=42 16 = 4^2:

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

Sum and difference of cubes

a3+b3=(a+b)(a2ab+b2) a^3 + b^3 = (a + b)(a^2 - ab + b^2) a3b3=(ab)(a2+ab+b2) a^3 - b^3 = (a - b)(a^2 + ab + b^2)

A memory aid is SOAP: the signs are Same, Opposite, Always Positive.

Worked example. Factor x327 x^3 - 27. Here a=x a = x, b=3b = 3 (since 33=27 3^3 = 27):

x327=(x3)(x2+3x+9) x^3 - 27 = (x - 3)(x^2 + 3x + 9)

The quadratic factor x2+3x+9 x^2 + 3x + 9 has no real roots, so this is fully factored over the reals.

Why Factoring Solves Equations: The Zero-Product Property

Here is the payoff. The zero-product property says: if AB=0 AB = 0, then A=0 A = 0 or B=0 B = 0 (or both). This works only because the right side is zero — no other number has this power.

Worked example. Solve x2+5x+6=0 x^2 + 5x + 6 = 0.

Factor: (x+2)(x+3)=0(x + 2)(x + 3) = 0. By the zero-product property, either x+2=0 x + 2 = 0 or x+3=0 x + 3 = 0, giving x=2 x = -2 or x=3 x = -3.

Check x=2 x = -2: (2)2+5(2)+6=410+6=0 (-2)^2 + 5(-2) + 6 = 4 - 10 + 6 = 0. Correct. This is why you always move everything to one side to make the equation equal zero before factoring — the property fails for AB=12 AB = 12.

Real-World Applications

  • Projectile motion. A ball's height might be h=16t2+32t h = -16t^2 + 32t. Factoring gives h=16t(t2) h = -16t(t - 2); setting h=0 h = 0 shows the ball is on the ground at t=0 t = 0 (launch) and t=2 t = 2 seconds (landing).
  • Engineering and design. Finding where a beam's stress function equals zero, or where a signal crosses a threshold, reduces to solving factored polynomial equations.
  • Simplifying rational expressions. To simplify x29x2+5x+6\frac{x^2 - 9}{x^2 + 5x + 6}, factor both: (x3)(x+3)(x+2)(x+3)=x3x+2\frac{(x-3)(x+3)}{(x+2)(x+3)} = \frac{x-3}{x+2}. Cancellation is only legal after factoring.
  • Cryptography and number theory. Integer factorization — the arithmetic cousin of polynomial factoring — underpins RSA encryption, because factoring huge numbers is hard.

Common Mistakes

  1. Applying zero-product to a nonzero side. Students see (x2)(x3)=2 (x-2)(x-3) = 2 and write x2=2 x - 2 = 2. Why wrong: the property needs the product to equal zero. Correction: expand, move everything to one side to get x25x+4=0 x^2 - 5x + 4 = 0, then factor (x1)(x4)=0(x-1)(x-4)=0.

  2. Forgetting the GCF first. Trying to factor 2x2+12x+18 2x^2 + 12x + 18 directly as a trinomial is painful. Why wrong: you skipped a common factor of 2 2. Correction: factor first to 2(x2+6x+9)=2(x+3)2 2(x^2 + 6x + 9) = 2(x+3)^2.

  3. Trying to factor a sum of squares. Writing x2+4=(x+2)(x2) x^2 + 4 = (x+2)(x-2). Why wrong: that expands to x24 x^2 - 4, not x2+4 x^2 + 4; a sum of squares does not factor over the reals. Correction: leave x2+4 x^2 + 4 as is (it only factors using complex numbers).

Comparison and Connections

Factoring, the distributive law, and the quadratic formula are three views of the same object. The distributive law builds products; factoring breaks them apart; the quadratic formula solves even when factoring is ugly.

MethodWhen to useResult
GCFAlways firstCommon factor pulled out front
GroupingFour termsProduct of two binomials
Trinomial (AC)Three terms, quadraticTwo binomials
Difference of squaresTwo terms, a2b2 a^2 - b^2(ab)(a+b)(a-b)(a+b)
Sum/difference of cubesTwo terms, cubesBinomial × trinomial
Quadratic formulaTrinomial that won't factor nicelyExact (possibly irrational) roots

Every quadratic that factors over the rationals will also yield rational answers from the quadratic formula — factoring is just the shortcut when the numbers are friendly.

Practice Questions

Recall

State the difference-of-squares formula and the two cube formulas. Answer: a2b2=(ab)(a+b) a^2 - b^2 = (a-b)(a+b); a3+b3=(a+b)(a2ab+b2) a^3 + b^3 = (a+b)(a^2 - ab + b^2); a3b3=(ab)(a2+ab+b2) a^3 - b^3 = (a-b)(a^2 + ab + b^2).

Understanding

Explain why (x4)(x+1)=0 (x-4)(x+1) = 0 lets you conclude x=4 x = 4 or x=1 x = -1, but (x4)(x+1)=6 (x-4)(x+1) = 6 does not let you set each factor to 6 6. Guidance: The zero-product property applies only when a product equals zero; for a nonzero product, many factor pairs are possible, so you must expand and re-factor against zero.

Application

Factor completely: 3x312x 3x^3 - 12x. Answer: GCF is 3x 3x: 3x(x24)=3x(x2)(x+2) 3x(x^2 - 4) = 3x(x-2)(x+2).

Analysis

A rectangle's area is x2+7x+10 x^2 + 7x + 10 square units. Find possible expressions for its side lengths, and state the value of xx that would make the area zero. Answer: x2+7x+10=(x+2)(x+5) x^2 + 7x + 10 = (x+2)(x+5), so sides are (x+2) (x+2) and (x+5) (x+5). Area is zero when x=2 x = -2 or x=5 x = -5 (neither is physically valid for a real rectangle, since lengths must be positive — a nice reminder to check context).

FAQ

Q: How do I know which method to use? Count terms and look for structure. Two terms → special pattern (difference of squares or cubes). Three terms → trinomial. Four terms → grouping. But always pull out the GCF first, every single time.

Q: What does "factor completely" mean? Keep factoring until no factor can be broken down further over the given number system. For example x416=(x24)(x2+4)=(x2)(x+2)(x2+4) x^4 - 16 = (x^2-4)(x^2+4) = (x-2)(x+2)(x^2+4) — you must go the extra step.

Q: What if a trinomial just won't factor? Then it is either prime (irreducible over the rationals) or has irrational/complex roots. Use the quadratic formula. The discriminant b24ac b^2 - 4ac tells you: a perfect square means it factors nicely over the rationals.

Q: Why do we set equations equal to zero before factoring? Because the zero-product property is the only reason factoring solves equations. Zero is special — no other number lets you conclude that one of the factors must equal it.

Q: Is there a difference between factoring and the quadratic formula? They give the same roots. Factoring is faster when numbers are nice; the quadratic formula always works, even for irrational or complex answers. Factoring also reveals the structure (the actual binomials), which the formula does not.

Quick Revision

  • Always factor the GCF first: ab+ac=a(b+c) ab + ac = a(b+c).
  • Trinomial x2+bx+c x^2 + bx + c: two numbers that multiply to cc, add to bb.
  • Hard trinomial ax2+bx+c ax^2+bx+c: multiply to acac, add to bb, split the middle, group.
  • Difference of squares: a2b2=(ab)(a+b) a^2 - b^2 = (a-b)(a+b). A sum of squares does not factor over the reals.
  • Cubes (SOAP): a3±b3=(a±b)(a2ab+b2) a^3 \pm b^3 = (a \pm b)(a^2 \mp ab + b^2).
  • Zero-product property: AB=0A=0 AB = 0 \Rightarrow A = 0 or B=0 B = 0. Set the equation to zero first.

Prerequisites

  • Quadratic Equations and the quadratic formula
  • Rational Expressions (simplifying via factoring)

Next Topics

  • Solving Polynomial Equations
  • Graphing Polynomials and finding roots