Factorising and expanding brackets

Expanding multiplies brackets out and factorising is the reverse. Both are the basis of nearly every algebra topic that follows, so it is worth being fast and accurate at them.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What this topic covers

Expand with a single bracket or double brackets. To factorise, take out a common factor first, then look for a difference of two squares or a perfect square.

Each part of this topic has its own page with the formula, worked examples and a solver: Cancelling a common factor, Even, odd and consecutive numbers (algebraic proof), Expanding (a + b)³, Collecting like terms, Expanding a single bracket, Factorising: common factor, Expanding double brackets, Product of two linear factors, Perfect square (sum), Perfect square (difference).

Closely related topics: Quadratic equations, Linear equations, Binomial expansion.

What is it used for?

Expanding multiplies out brackets; factorising does the reverse and writes an expression as a product. Together they are the basic tools for simplifying and solving algebra.

How to solve it

  1. To expand, multiply every term in the first bracket by every term in the second, then collect like terms.
  2. To factorise x² + bx + c, find two numbers that multiply to c and add to b.
  3. For ax² + bx + c, find two numbers that multiply to ac and add to b, then split the middle term.
  4. Spot special cases: a² - b² = (a + b)(a - b) and a² ± 2ab + b² = (a ± b)².
  5. Expand your factorised answer to check that it returns the original expression.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: factor x^2 + 7x + 12

Worked out by the solver on this page. Press the button to try it yourself.

Factorise
Answer
(x+3)(x+4)\left(x+3\right) \left(x+4\right)
  1. The expression
  2. Factorise

Example 2: factor x^2 - 49

Worked out by the solver on this page. Press the button to try it yourself.

Factorise
Answer
(x−7)(x+7)\left(x-7\right) \left(x+7\right)
  1. The expression
  2. Factorise

Example 3: factor 2x^2 + 7x + 3

Worked out by the solver on this page. Press the button to try it yourself.

Factorise
Answer
(2x+1)(x+3)\left(2 x+1\right) \left(x+3\right)
  1. The expression
  2. Factorise

Example 4: expand (x + 3)^2

Worked out by the solver on this page. Press the button to try it yourself.

Binomial expansion Answer checked
Answer
9+6x+x29 + 6 x + x^{2}
  1. Use the binomial theorem:
  2. Pascal's triangle row 2 gives the coefficients
  3. Write out every term
  4. Simplify each term and write in ascending powers of x
  5. Check: put a number in for the letter and compare both sides

Example 5: expand (2x + 1)(x - 4)

Worked out by the solver on this page. Press the button to try it yourself.

Expand
Answer
2x2−7x−42 x^{2}-7 x-4
  1. The expression
  2. Expand the brackets

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

Expand a bracket

3(x + 4) = 3x + 12

Multiply every term.

Double brackets

(x + 3)(x + 5) = x² + 8x + 15

Four products, then collect.

Difference of two squares

x² − 49 = (x − 7)(x + 7)

Square root of each term.

Factorise a quadratic

x² + 7x + 12 = (x + 3)(x + 4)

Product 12, sum 7.

Word problems

Expand by multiplying every term in one bracket by every term in the other. Factorise by reversing it.

Expanding

Expand (x + 3)².

  1. Write as two brackets(x + 3)(x + 3)
  2. Multiplyx² + 3x + 3x + 9
  3. Collectx² + 6x + 9
  4. Check: x = 1 gives 16 ✓16

Factorising

Factorise x² + 7x + 12.

  1. Product 12 and sum 73 and 4
  2. Write(x + 3)(x + 4)
  3. Check: 3 × 4 = 12, 3 + 4 = 7 ✓7

Difference of squares Higher

Factorise x² − 49.

  1. Square rootsx and 7
  2. Write(x − 7)(x + 7)
  3. Check: −7 × 7 = −49 ✓49

Harder quadratic Higher

Factorise 2x² + 7x + 3.

  1. Multiply a × c6
  2. Find the pair1 and 6
  3. Result(2x + 1)(x + 3)
  4. Check: 2 × 3 = 6 ✓6

Common mistakes

Multiplying only the first term

3(x + 4) = 3x + 4 ✗

3x + 12 ✓

Multiply every term.

Sign errors in double brackets

(x − 3)(x + 5) = x² + 2x + 15 ✗

x² + 2x − 15 ✓

A negative times a positive is negative.

Squaring a bracket by squaring each term

(x + 3)² = x² + 9 ✗

x² + 6x + 9 ✓

Write it as two brackets.

Stopping before the common factor

4x + 8 = 2(2x + 4) ✗

4(x + 2) ✓

Take out the highest common factor.

Exam tips

  1. Multiply every term.
  2. Take out the highest common factor first.
  3. Check by expanding.
  4. Spot a²−b² and perfect squares.
  5. Mind the signs.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Expand 5(x − 2): the constant term Foundation

-10

2. Expand (x + 2)(x + 6): the x coefficient Foundation

8

3. Factorise x² − 100: the number in the bracket Foundation

10

4. Factorise x² + 9x + 20: the larger number Higher

5

5. Expand (x − 4)²: the constant term Higher

16

6. Common factor of 12x + 18 Higher

6

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Expand
Multiply out brackets.
Factorise
Write as a product.
Common factor
A factor shared by all terms.
Difference of two squares
a² − b² = (a − b)(a + b).
Perfect square
(a + b)².
Quadratic
Highest power is 2.

Frequently asked questions

What is the difference between expanding and factorising?

Expanding removes brackets; factorising puts them back.

How do I check a factorisation?

Expand it again.

Which page covers double brackets?

expanding double brackets.

Which page covers a common factor?

factorising a common factor.

Which page covers squares?

difference of two squares and perfect squares.

Which page covers cubes?

expanding a cube.

More in Algebra and the formula sheets.