Skip to content

Search topics

Practise for free Sign in

Formula Algebra and functions

Sum and difference of two cubes

When to use it

Factorising cubics such as x³ − 27. Numerical check with a = 3, b = 2: 3³ − 2³ = 19 and (a − b)(a² + ab + b²) = 19. For the sum: 3³ + 2³ = 35 and (a + b)(a² − ab + b²) = 35.

Last checked Source: Manipulate polynomials Source: Manipulate polynomials qualifications.pearson.com (opens in a new tab)

Sum and difference of two cubes for your study of A-level maths, with its source.

Worked case: Factorise x³ − 27.

See also Difference of two squares, Limiting friction, nth term of a geometric sequence and Friction inequality.

Result: (x − 3)(x² + 3x + 9)

Application 1: Show that (x + 1) is a factor of f(x) = x³ − 5x² + 2x + 8 and factorise f(x) completely. Step 1: Evaluate f(−1) = 0. Step 2: Divide f(x) by (x + 1) to get x² − 6x + 8. Step 3: Factorise the quadratic: (x − 4)(x − 2). Step 4: Full factorisation: (x − 4)(x − 2)(x + 1). Result: (x − 4)(x − 2)(x + 1).

Application 2: Find the remainder when x³ − 4x² + x + 6 is divided by (x − 2). Step 1: The divisor is x − 2, so the remainder theorem uses x = 2. (The remainder on dividing by (x − a) is f(a).) Step 2: Substitute: f(2) = 1×2³ − 4×2² + 1×2¹ + 6. (Evaluate each power first.) Step 3: The value is 0. (No division is needed.) Result: remainder 0.

Application 3: Show that (x − 1) is a factor of f(x) = x³ + 4x² + x − 6 and factorise f(x) completely. Step 1: Evaluate f(1) = 0. Step 2: Divide f(x) by (x − 1) to get x² + 5x + 6. Step 3: Factorise the quadratic: (x + 2)(x + 3). Step 4: Full factorisation: (x − 1)(x + 2)(x + 3). Result: (x − 1)(x + 2)(x + 3).

Points to check

  • Writing a³ − b³ = (a − b)³: A difference of cubes has a quadratic factor: for a = 3 and b = 2 the value is 19, but (a − b)³ gives 1.
  • Using a minus in the quadratic factor, a³ + b³ = (a + b)(a² − ab + b²) taken as (a + b)(a² + ab + b²): For the sum of cubes the middle sign is a minus; with a = 3 and b = 2 the correct value is 35, not 95.
  • Writing a³ − b³ = (a − b)(a² − ab + b²): For a difference the middle sign is a plus: with a = 3 and b = 2 the true value is 19, not 7.
  • Substituting x = −a instead of x = a.

Study brief

  • In the study of mathematics, specifically when learning to manipulate polynomials, students must understand how to factorise various algebraic expressions. This includes working with cubic expressions. For example, an expression such as x3 + 3x2 – 4 or 6x3 + 11x2 – x – 6 may require factorisation. When dealing with these types of polynomials, techniques such as expanding brackets, collecting like terms, and applying the factor theorem are essential. The factor theorem provides a method where if f(x) = 0 when x = b/a, then (ax – b) is a factor of f(x). Beyond simple factorisation, learners may encounter the need to simplify rational expressions or perform algebraic division, specifically division by forms such as (ax + b) or (ax – b). Mastery of these polynomial operations is a key component of algebraic manipulation required for advanced mathematical studies.

Practise for free

Test yourself with exam-style questions and see why each answer is right or wrong.

Start practising
Free practice, no card Start without an account Sources checked Every fact names its official source
Works on any device Phone, tablet or desktop
Contact us Questions or a correction