Lesson 9 · Factorization of the expression in the form of a⁴ + a²b² + b⁴

The Simplified Form of \( (a^3 + b^3) \)

MathematicsSubject
8 minEstimated read

Cubes of a Sum and a Difference

The cube of an expression is that expression multiplied by itself three times. For a binomial such as \( a+b \) or \( a-b \), the cube spreads out into four terms. Every new formula in this topic grows out of these two expansions:

\[ (a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 \]

\[ (a-b)^3 = a^3 - 3a^2b + 3ab^2 - b^3 \]

Look at the two middle terms of each expansion. Both contain \( 3ab \). Taking \( 3ab \) out as a common factor gives a shorter form of each formula, and this shorter form is the one used again and again below:

\[ (a+b)^3 = a^3 + b^3 + 3ab(a+b) \]

\[ (a-b)^3 = a^3 - b^3 - 3ab(a-b) \]

Seeing the Cube Formula in a Solid Cube

The formula for \( (a-b)^3 \) can be seen in a real solid. Take a wooden cube whose every edge is \( a \). Make three straight cuts, each one at a distance \( b \) from a face: one from the top, one from the front and one from the side. Every edge is now split into two parts, one of length \( a-b \) and one of length \( b \).

A cube of edge \( a \), cut so that every edge splits into \( a-b \) and \( b \)
A cube of edge \( a \), cut so that every edge splits into \( a-b \) and \( b \)

These cuts break the cube into eight pieces, and the pieces are of four kinds:

  • one large cube of edge \( a-b \), with volume \( (a-b)^3 \)
  • one small cube of edge \( b \), with volume \( b^3 \)
  • three flat cuboids measuring \( (a-b) \) by \( (a-b) \) by \( b \), each with volume \( (a-b)^2b \)
  • three long cuboids measuring \( (a-b) \) by \( b \) by \( b \), each with volume \( (a-b)b^2 \)
The large piece: a cube of edge \( a-b \)
The large piece: a cube of edge \( a-b \)
The small piece: a cube of edge \( b \)
The small piece: a cube of edge \( b \)
First flat slab: \( (a-b) \times (a-b) \times b \)
First flat slab: \( (a-b) \times (a-b) \times b \)
Second flat slab: \( (a-b) \times (a-b) \times b \)
Second flat slab: \( (a-b) \times (a-b) \times b \)
Third flat slab: \( (a-b) \times (a-b) \times b \)
Third flat slab: \( (a-b) \times (a-b) \times b \)

Put back together, the eight pieces rebuild the whole cube, so their volumes add up to \( a^3 \). Keeping the large cube on one side and moving every other piece across:

\[ \begin{aligned} (a-b)^3 &= a^3 - b^3 \\ &\quad - 3(a-b)^2b - 3(a-b)b^2 \end{aligned} \]

The last two terms share \( 3(a-b)b \). Taking it out leaves \( (a-b)+b \) inside the bracket, and that is simply \( a \):

\[ (a-b)^3 = a^3 - b^3 - 3ab(a-b) \]

This is exactly the short form found by algebra above. The pieces show why it holds: the cube of a difference is what remains of \( a^3 \) after the small cube and the six cuboids are taken away. The same way of thinking now gives us the simplified forms of \( a^3+b^3 \) and \( a^3-b^3 \).

Simplified Form of a Sum of Two Cubes

The expression \( a^3 + b^3 \) is a sum of two cubes. Its two terms have no common factor, yet it can still be broken into factors. The way in is to start from the cube of \( a+b \) and work backwards.

Step 1: Writing the short form of the cube of \( a+b \):

\[ (a+b)^3 = 3ab(a+b) + a^3 + b^3 \]

Step 2: Subtracting \( 3ab(a+b) \) from both sides:

\[ (a+b)^3 - 3ab(a+b) = a^3 + b^3 \]

Step 3: Writing \( (a+b)^3 \) as \( (a+b)(a+b)^2 \):

\[ (a+b)(a+b)^2 - 3ab(a+b) = a^3 + b^3 \]

Step 4: Taking out \( (a+b) \), because it is common to both terms:

\[ (a+b)\{(a+b)^2 - 3ab\} = a^3 + b^3 \]

Step 5: Putting in the formula \( (a+b)^2 = a^2 + 2ab + b^2 \):

\[ (a+b)(a^2 + 2ab + b^2 - 3ab) = a^3 + b^3 \]

Step 6: Collecting the like terms, since \( 2ab - 3ab = -ab \):

\[ (a+b)(a^2 - ab + b^2) = a^3 + b^3 \]

Definition

A sum of two cubes, \( a^3+b^3 \), can be written in two ways: as \( (a+b)^3 - 3ab(a+b) \), or as \( (a+b)(a^2-ab+b^2) \). The second way is a product of factors, and it is the one used for factorising.

\[ a^3 + b^3 = (a+b)^3 - 3ab(a+b) \]

\[ a^3 + b^3 = (a+b)(a^2 - ab + b^2) \]

A quick check with numbers makes the formula believable. Take \( a = 2 \) and \( b = 1 \). The left side is \( 8 + 1 = 9 \). The right side is \( (2+1)(4-2+1) = 3 \times 3 = 9 \). The two sides agree.

Simplified Form of a Difference of Two Cubes

The difference of two cubes, \( a^3 - b^3 \), is handled in the same way. This time the starting point is the cube of \( a-b \).

Step 1: Writing the short form of the cube of \( a-b \):

\[ (a-b)^3 = a^3 - b^3 - 3ab(a-b) \]

Step 2: Adding \( 3ab(a-b) \) to both sides:

\[ (a-b)^3 + 3ab(a-b) = a^3 - b^3 \]

Step 3: Writing \( (a-b)^3 \) as \( (a-b)(a-b)^2 \):

\[ (a-b)(a-b)^2 + 3ab(a-b) = a^3 - b^3 \]

Step 4: Taking out \( (a-b) \), because it is common to both terms:

\[ (a-b)\{(a-b)^2 + 3ab\} = a^3 - b^3 \]

Step 5: Putting in \( (a-b)^2 = a^2 - 2ab + b^2 \):

\[ (a-b)(a^2 - 2ab + b^2 + 3ab) = a^3 - b^3 \]

Step 6: Collecting the like terms, since \( -2ab + 3ab = ab \):

\[ (a-b)(a^2 + ab + b^2) = a^3 - b^3 \]

Definition

A difference of two cubes, \( a^3-b^3 \), can be written in two ways: as \( (a-b)^3 + 3ab(a-b) \), or as \( (a-b)(a^2+ab+b^2) \). The second way is its factorised form.

\[ a^3 - b^3 = (a-b)^3 + 3ab(a-b) \]

\[ a^3 - b^3 = (a-b)(a^2 + ab + b^2) \]

Check: with \( a = 3 \) and \( b = 1 \), the left side is \( 27 - 1 = 26 \), and the right side is \( (3-1)(9+3+1) = 2 \times 13 = 26 \). They match.

Telling the Two Formulas Apart

The two formulas look alike, so the signs are what you must watch. Here they are side by side:

ExpressionFirst factorSecond factor
\( a^3 + b^3 \)\( a + b \)\( a^2 - ab + b^2 \)
\( a^3 - b^3 \)\( a - b \)\( a^2 + ab + b^2 \)
Key idea

An easy way to remember the signs: the first bracket takes the same sign as the expression. The middle term \( ab \) in the second bracket takes the opposite sign. The last term \( b^2 \) is always positive.

Common mistake

The second bracket has \( ab \), not \( 2ab \). So \( a^2 - ab + b^2 \) is not \( (a-b)^2 \), and \( a^2 + ab + b^2 \) is not \( (a+b)^2 \). In the same way, \( a^3 + b^3 \) is not equal to \( (a+b)^3 \), because \( (a+b)^3 \) carries an extra \( 3ab(a+b) \).

Finding a Cube with the Formula

To cube a binomial there is no need to multiply it out three times. Match it with \( (a+b)^3 \) or \( (a-b)^3 \), decide what \( a \) and \( b \) are, and substitute.

Example 1: Using the formula, find the cube of \( (x+3) \).

Step 1: Comparing with \( (a+b)^3 \), we have \( a = x \) and \( b = 3 \). The formula to use is:

\[ (a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 \]

Step 2: Substituting \( a = x \) and \( b = 3 \):

\[ (x+3)^3 = x^3 + 3 \cdot x^2 \cdot 3 + 3 \cdot x \cdot 3^2 + 3^3 \]

Step 3: Multiplying out each term:

\[ (x+3)^3 = x^3 + 9x^2 + 27x + 27 \]

Example 2: Find the cube of \( (x-2) \).

Step 1: Comparing with \( (a-b)^3 \), we have \( a = x \) and \( b = 2 \). The formula to use is:

\[ (a-b)^3 = a^3 - 3a^2b + 3ab^2 - b^3 \]

Step 2: Substituting \( a = x \) and \( b = 2 \):

\[ (x-2)^3 = x^3 - 3 \cdot x^2 \cdot 2 + 3 \cdot x \cdot 2^2 - 2^3 \]

Step 3: Multiplying out each term:

\[ (x-2)^3 = x^3 - 6x^2 + 12x - 8 \]

In the cube of a difference the signs take turns: plus, minus, plus, minus. In the cube of a sum all four signs are plus.

Writing a Cube as a Product

A power means repeated multiplication. So \( (3x+5y)^3 \) means \( (3x+5y) \) multiplied by itself three times, and writing it as a product of three factors is its factorised form.

Example 3 (a): Factorising \( (3x+5y)^3 \):

\[ (3x+5y)^3 = (3x+5y)(3x+5y)(3x+5y) \]

Example 3 (b): Factorising \( (2x-7y)^3 \):

\[ (2x-7y)^3 = (2x-7y)(2x-7y)(2x-7y) \]

Recognising a Perfect Cube Expansion

Sometimes a four-term expression is given and has to be written as \( (a+b)^3 \) or \( (a-b)^3 \). Here the formula is used in reverse.

Example: Write \( 8a^3 + 60a^2b + 150ab^2 + 125b^3 \) in the form \( (a+b)^3 \).

Step 1: Writing the first and last terms as cubes:

\[ 8a^3 = (2a)^3, \quad 125b^3 = (5b)^3 \]

Step 2: Checking that the middle terms are \( 3(2a)^2(5b) \) and \( 3(2a)(5b)^2 \):

\[ 3 \cdot 4a^2 \cdot 5b = 60a^2b, \quad 3 \cdot 2a \cdot 25b^2 = 150ab^2 \]

Step 3: All four signs are plus, so it is the cube of a sum:

\[ 8a^3 + 60a^2b + 150ab^2 + 125b^3 = (2a+5b)^3 \]

If the signs run plus, minus, plus, minus, the expression is written as \( (a-b)^3 \) instead. If the middle terms do not match, the expression is not a perfect cube at all.

Factorising a Sum or Difference of Cubes

When an expression has two terms and both are cubes, follow these steps:

  • Step 1: If there is a common factor, take it out first.
  • Step 2: Write each term as the cube of something.
  • Step 3: Look at the sign between them and choose the sum formula or the difference formula.
  • Step 4: Substitute for \( a \) and \( b \), then simplify the second bracket.

Example 4 (a): Factorise \( 8x^3 + y^3 \).

Step 1: Writing both terms as cubes:

\[ 8x^3 + y^3 = (2x)^3 + (y)^3 \]

Step 2: Using \( a^3 + b^3 = (a+b)(a^2 - ab + b^2) \) with \( a = 2x \) and \( b = y \):

\[ = (2x+y)\{(2x)^2 - 2x \cdot y + (y)^2\} \]

Step 3: Simplifying the second bracket:

\[ = (2x+y)(4x^2 - 2xy + y^2) \]

Example 4 (b): Factorise \( \frac{p^3}{q^3} - \frac{q^3}{p^3} \).

Step 1: Writing each term as a cube:

\[ \frac{p^3}{q^3} - \frac{q^3}{p^3} = \left(\frac{p}{q}\right)^3 - \left(\frac{q}{p}\right)^3 \]

Step 2: Using \( a^3 - b^3 = (a-b)(a^2+ab+b^2) \). Here \( a = \frac{p}{q} \) and \( b = \frac{q}{p} \), so \( ab = 1 \):

\[ = \left(\frac{p}{q} - \frac{q}{p}\right)\left(\frac{p^2}{q^2} + 1 + \frac{q^2}{p^2}\right) \]

Step 3: Since \( \left(\frac{p}{q} + \frac{q}{p}\right)^2 = \frac{p^2}{q^2} + 2 + \frac{q^2}{p^2} \), the second bracket equals \( \left(\frac{p}{q} + \frac{q}{p}\right)^2 - 1 \):

\[ = \left(\frac{p}{q} - \frac{q}{p}\right)\left\{\left(\frac{p}{q} + \frac{q}{p}\right)^2 - (1)^2\right\} \]

Step 4: Using the difference of two squares, \( x^2 - y^2 = (x+y)(x-y) \):

\[ \begin{aligned} &= \left(\frac{p}{q} - \frac{q}{p}\right) \\ &\quad \times \left(\frac{p}{q} + 1 + \frac{q}{p}\right)\left(\frac{p}{q} - 1 + \frac{q}{p}\right) \end{aligned} \]

Example 5: Factorise \( 3x^4 - 24x \).

Step 1: Taking out \( 3x \), which is common to both terms:

\[ 3x^4 - 24x = 3x(x^3 - 8) \]

Step 2: Writing \( 8 = 2^3 \) and using the difference formula:

\[ = 3x(x-2)(x^2 + 2x + 4) \]

Common mistake

If the common factor is not taken out first, \( 3x^4 \) and \( 24x \) do not look like cubes and the work gets stuck. The \( 3x \) taken out must also appear in the final answer.

A Cube Cut from a Block

A difference of cubes turns up in real measuring too. Suppose a small cube of edge 4 cm is cut out of a wooden cube of edge 10 cm. The wood that is left has a volume equal to the difference of two cubes.

Step 1: Writing the volume left as a difference of cubes:

\[ V = 10^3 - 4^3 \]

Step 2: Using \( a^3 - b^3 = (a-b)(a^2+ab+b^2) \):

\[ V = (10-4)(100 + 40 + 16) = 6 \times 156 \]

Step 3: Multiplying:

\[ V = 936 \text{ cm}^3 \]

Working it directly, \( 1000 - 64 = 936 \) cm³, the same answer. When the edges are letters, say \( x \) cm for the large cube and \( y \) cm for the small one, the volume left is \( (x^3 - y^3) \) cm³, which factorises as \( (x-y)(x^2+xy+y^2) \) cm³.

🔐

The full lesson is waiting for you

The notes are free to read in full. A free account opens the rest of the practice, and tracks your progress and confidence score for every subject. Presentations and videos need approval from Learn Yeti.