Expanding (a + b)³ Equation Solver with Worked Examples

Expanding a cube gives . Type a cube such as and the solver expands it.

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 Expanding (a + b)³ means

means . The coefficients 1, 3, 3, 1 come from Pascal’s triangle.

You can expand by multiplying out in stages: first , then multiply by again.

The powers of go down and the powers of go up, and the total power in each term is 3. A cube is a perfect square times a bracket, the coefficients 1, 3, 3, 1 are binomial coefficients, and the general case is the binomial theorem.

This page is part of Expressions, brackets and factorising in Algebra. Topics that work alongside it: Perfect square (sum), Binomial theorem (positive integer n), Binomial coefficient, Perfect square (difference), Collecting like terms, Expanding double brackets and Even, odd and consecutive numbers (algebraic proof).

What is it used for?

Expanding (a + b)³ gives a³ + 3a²b + 3ab² + b³. The coefficients 1, 3, 3, 1 come from Pascal’s triangle.

How to use expanding (a + b)³

  1. Use the pattern 1, 3, 3, 1.
  2. Write the terms with falling powers of and rising powers of .
  3. Substitute the actual terms and simplify.
  4. Check with a number.

Diagram

a + ba + ba + b

A cube of side a + b can be cut into 8 pieces: one a³, three a²b, three ab² and one b³.

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: a positive cube

Expand .

Binomial expansion Answer checked
Answer
27+27x+9x2+x327 + 27 x + 9 x^{2} + x^{3}
  1. Use the binomial theorem:
  2. Pascal's triangle row 3 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 2: another cube

Expand .

Binomial expansion Answer checked
Answer
8+12x+6x2+x38 + 12 x + 6 x^{2} + x^{3}
  1. Use the binomial theorem:
  2. Pascal's triangle row 3 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 3: a negative term

Expand (x − 2)³.

Binomial expansion Answer checked
Answer
−8+12x−6x2+x3-8 + 12 x - 6 x^{2} + x^{3}
  1. Use the binomial theorem:
  2. Pascal's triangle row 3 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

Special cases

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

A positive cube

(x + 3)³ = x³ + 9x² + 27x + 27

Coefficients 1, 3, 3, 1.

Constant first

(2 + x)³ = x³ + 6x² + 12x + 8

Same pattern.

A minus sign

(x − 2)³ = x³ − 6x² + 12x − 8

Signs alternate.

Not a sum of cubes

(x + 3)³ is not x³ + 27

There are cross terms.

Word problems

(a + b)³ = a³ + 3a²b + 3ab² + b³. For a minus sign, alternate the signs.

A positive cube

Expand (x + 3)³.

  1. Termsx³ + 3x²(3) + 3x(9) + 27
  2. Simplifyx³ + 9x² + 27x + 27
  3. Check: x = 1: 64 and 1 + 9 + 27 + 27 = 64 ✓x³ + 9x² + 27x + 27.

Constant first

Expand (2 + x)³.

  1. Terms8 + 12x + 6x² + x³
  2. Orderx³ + 6x² + 12x + 8
  3. Check: x = 1: 27 and 27 ✓x³ + 6x² + 12x + 8.

A minus sign Higher

Expand (x − 2)³.

  1. Alternate signsx³ − 6x² + 12x − 8
  2. Check: x = 3: 1 and 27 − 54 + 36 − 8 = 1 ✓x³ − 6x² + 12x − 8.

Finding a coefficient Higher

Find the coefficient of x in (x + 4)³.

  1. Term3 × x × 4² = 48x
  2. Check: 3 × 16 = 48 ✓48.

Common mistakes

Cubing each term only

(x + 3)³ = x³ + 27 ✗

x³ + 9x² + 27x + 27 ✓

There are cross terms.

Wrong coefficients

1, 2, 1 ✗

1, 3, 3, 1 ✓

Use Pascal’s triangle row 3.

Forgetting to cube the constant

… + 3 ✗

… + 27 ✓

3³ = 27.

Sign errors with a minus

(x − 2)³ = x³ − 6x² − 12x − 8 ✗

alternate signs ✓

Check by substituting.

Exam tips

  1. 1, 3, 3, 1.
  2. Powers of a fall, of b rise.
  3. Alternate signs for a minus.
  4. Cube the constant.
  5. Test with x = 1.

Practice questions

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

1. Expand (x + 1)³. What is the coefficient of x²? Foundation

3

2. Expand (x + 2)³. What is the coefficient of x? Foundation

12

3. Expand (x + 2)³. What is the constant term? Foundation

8

4. Expand (x − 3)³. What is the coefficient of x²? Higher

−9

5. Expand (x + 5)³. What is the coefficient of x? Higher

75

6. Expand (2x + 1)³. What is the coefficient of x³? Higher

8

Practice generator

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

Solve: …

Key terms

Cube
A bracket to the power 3.
Pascal’s triangle
A triangle of binomial coefficients.
Binomial
An expression with two terms.
Expand
Multiply out.
Coefficient
The number in front of a term.
Cross term
A product of different letters.

Frequently asked questions

What is (a + b)³?

a³ + 3a²b + 3ab² + b³.

Where do 1, 3, 3, 1 come from?

Pascal’s triangle.

What about (a − b)³?

a³ − 3a²b + 3ab² − b³.

How do I check?

Substitute x = 1.

Which page covers the general case?

binomial theorem.

Which page covers squares?

perfect squares.

More in Algebra and the formula sheets.