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.
On this page
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
To expand, multiply every term in the first bracket by every term in the second, then collect like terms. To factorise x² + bx + c, find two numbers that multiply to c and add to b. For ax² + bx + c, find two numbers that multiply to ac and add to b, then split the middle term. Spot special cases: a² - b² = (a + b)(a - b) and a² ± 2ab + b² = (a ± b)². 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.
Try this in the solver: factor x^2 + 7x + 12
Factorise
Answer
( x + 3 ) ( x + 4 ) \left(x+3\right) \left(x+4\right) ( x + 3 ) ( x + 4 ) The expression
x 2 + 7 x + 12
Factorise
x 2 + 7 x + 12 = ( x + 3 ) ( x + 4 )
Example 2: factor x^2 - 49 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: factor x^2 - 49
Factorise
Answer
( x − 7 ) ( x + 7 ) \left(x-7\right) \left(x+7\right) ( x − 7 ) ( x + 7 ) The expression
x 2 − 49
Factorise
x 2 − 49 = ( x − 7 ) ( x + 7 )
Example 3: factor 2x^2 + 7x + 3 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: factor 2x^2 + 7x + 3
Factorise
Answer
( 2 x + 1 ) ( x + 3 ) \left(2 x+1\right) \left(x+3\right) ( 2 x + 1 ) ( x + 3 ) The expression
2 x 2 + 7 x + 3
Factorise
2 x 2 + 7 x + 3 = ( 2 x + 1 ) ( x + 3 )
Example 4: expand (x + 3)^2 Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: expand (x + 3)^2
Binomial expansion Answer checked
Answer
9 + 6 x + x 2 9 + 6 x + x^{2} 9 + 6 x + x 2 Use the binomial theorem: ( a + b ) n = ∑ n C k a n − k b k
a = x , b = 3 , n = 2
Pascal's triangle row 2 gives the coefficients
1 2 1
Write out every term
1 ( x ) 2 ( 3 ) 0 + 2 ( x ) 1 ( 3 ) 1 + 1 ( x ) 0 ( 3 ) 2
Simplify each term and write in ascending powers of x
9 + 6 x + x 2
Check: put a number in for the letter and compare both sides
x = 2 : 25 = 25
Example 5: expand (2x + 1)(x - 4) Worked out by the solver on this page. Press the button to try it yourself.
Try this in the solver: expand (2x + 1)(x - 4)
Expand
Answer
2 x 2 − 7 x − 4 2 x^{2}-7 x-4 2 x 2 − 7 x − 4 The expression
( x − 4 ) ( 2 x + 1 )
Expand the brackets
( x − 4 ) ( 2 x + 1 ) = 2 x 2 − 7 x − 4
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)².
Write as two brackets (x + 3)(x + 3) Multiply x² + 3x + 3x + 9 Collect x² + 6x + 9 Check: x = 1 gives 16 ✓ 16
Factorising Factorise x² + 7x + 12.
Product 12 and sum 7 3 and 4 Write (x + 3)(x + 4) Check: 3 × 4 = 12, 3 + 4 = 7 ✓ 7
Difference of squares Higher Factorise x² − 49.
Square roots x and 7 Write (x − 7)(x + 7) Check: −7 × 7 = −49 ✓ 49
Harder quadratic Higher Factorise 2x² + 7x + 3.
Multiply a × c 6 Find the pair 1 and 6 Result (2x + 1)(x + 3) 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
Multiply every term.
Take out the highest common factor first.
Check by expanding.
Spot a²−b² and perfect squares.
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.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
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.