FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Polynomials & Quadratics
Polynomials & Quadratics

How to Factorise Quadratics: Sum-Product Method and Difference of Two Squares

Factorising as expanding in reverse, the sum-and-product method, how the signs of bbb and ccc guide you, the difference of two squares, and how to handle a leading coefficient that is not 1.

3 min read Supports 4 lessons
In short

Factorising a quadratic rewrites it as a product of brackets: x2+7x+12=(x+3)(x+4)x^2 + 7x + 12 = (x + 3)(x + 4)x2+7x+12=(x+3)(x+4). For x2+bx+cx^2 + bx + cx2+bx+c, look for two numbers that add to bbb and multiply to ccc.

Expanding turns brackets into a sum: (x+3)(x+4)=x2+7x+12(x + 3)(x + 4) = x^2 + 7x + 12(x+3)(x+4)=x2+7x+12. Factorising goes the other way, from the sum back to the brackets. It is like being told 121212 and asked which numbers multiply to make it.

Always look for a common factor first

Before anything else, pull out the greatest common factor of every term.

Worked example

Factorise 12x3−18x212x^3 - 18x^212x3−18x2.

  1. 1

    The GCF of the numbers is 666; of x3x^3x3 and x2x^2x2 it is x2x^2x2.

    6x26x^26x2

The sum-and-product method

Expand (x+p)(x+q)(x + p)(x + q)(x+p)(x+q) and look at where each coefficient comes from:

(x+p)(x+q)=x2+(p+q)x+pq(x + p)(x + q) = x^2 + (p + q)x + pq(x+p)(x+q)=x2+(p+q)x+pq
Key idea

To factorise x2+bx+cx^2 + bx + cx2+bx+c, find two numbers ppp and qqq that add to bbb and multiply to ccc.

  1. x2+7x+12x^2 + 7x + 12x2+7x+12

    Need two numbers: product 12, sum 7.

1/4

Using the signs

Tip

If c>0c > 0c>0, both numbers have the same sign as bbb. If c<0c < 0c<0, the numbers have opposite signs, and the bigger one has the sign of bbb.

Worked example

Factorise x2−2x−15x^2 - 2x - 15x2−2x−15.

  1. 1

    The product is negative, so the signs differ. The sum is negative, so the bigger number is negative.

Difference of two squares

When a quadratic has no middle term and is one square minus another, it factorises instantly.

Difference of two squares
a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)a2−b2=(a−b)(a+b)

e.g. x2−49=(x−7)(x+7)x^2 - 49 = (x - 7)(x + 7)x2−49=(x−7)(x+7)

The middle terms cancel when you expand: (a−b)(a+b)=a2+ab−ab−b2(a - b)(a + b) = a^2 + ab - ab - b^2(a−b)(a+b)=a2+ab−ab−b2. A grid shows why: the two cross terms are equal and opposite.

Watch out

A sum of two squares, like x2+9x^2 + 9x2+9, does not factorise using real numbers.

When the leading coefficient is not 1

For ax2+bx+cax^2 + bx + cax2+bx+c, find two numbers that multiply to acacac and add to bbb. Use them to split the middle term, then factorise in pairs.

Worked example

Factorise 2x2+7x+32x^2 + 7x + 32x2+7x+3.

  1. 1

    ac=6ac = 6ac=6. Two numbers with product 666 and sum 777: 666 and 111.

Key idea

Factorising is how quadratic equations are solved: once x2+7x+12=(x+3)(x+4)=0x^2 + 7x + 12 = (x + 3)(x + 4) = 0x2+7x+12=(x+3)(x+4)=0, one bracket must be zero, so x=−3x = -3x=−3 or x=−4x = -4x=−4.

Not every quadratic factorises neatly. If you cannot find the numbers, the quadratic formula always works.

Common questions

How do you factorise x² + bx + c?

Find two numbers that multiply to ccc and add to bbb. If they are ppp and qqq, the answer is (x+p)(x+q)(x + p)(x + q)(x+p)(x+q).

What if a quadratic will not factorise?

Some quadratics have no neat factors. Use completing the square or the quadratic formula instead; they work for every quadratic.

Practise factorising quadratics

The Factoring Quadratics lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. Always look for a common factor first
  2. The sum-and-product method
  3. Using the signs
  4. Difference of two squares
  5. When the leading coefficient is not 1
  6. Common questions
Lessons on this
  • Factoring QuadraticsPolynomials, Quadratics & Rational Functions
  • Factoring Out the GCFPolynomials, Quadratics & Rational Functions
  • Solving Quadratics by FactoringPolynomials, Quadratics & Rational Functions
  • Rational ExpressionsPolynomials, Quadratics & Rational Functions
Related reading5
Ideas this article builds on or leads to.
  • Algebra
    The Distributive Property: Expanding Brackets with the Area Model

    The distributive property says a(b+c)=ab+aca(b + c) = ab + aca(b+c)=ab+ac: multiplying a sum means multiplying each part of it. It is how brackets are expanded, and, run backwards, how expressions are factorised.

  • Polynomials & Quadratics
    The Quadratic Formula and the Discriminant Explained

    The quadratic formula solves any equation ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0: x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}x=2a−b±b2−4ac​​. The discriminant b2−4acb^2 - 4acb2−4ac tells you how many real solutions there are.

  • Polynomials & Quadratics
    What Is a Polynomial? Terms, Degree and the Factor Theorem

    A polynomial is a sum of terms of the form axnax^naxn, where each power nnn is a whole number, such as 4x3−x+74x^3 - x + 74x3−x+7. Its degree is the highest power present.

  • Number & Arithmetic
    Greatest Common Factor and Least Common Multiple (GCF and LCM)

    The greatest common factor (GCF, or HCF) of two numbers is the largest number that divides both. The least common multiple (LCM) is the smallest number that both divide into.

  • Algebra
    Algebraic Expressions: Variables, Terms, Coefficients and Like Terms

    An expression combines numbers and variables (letters standing for numbers) with operations, like 3x+53x + 53x+5. Like terms have exactly the same variable part and can be combined by adding their coefficients.