• Practice
  • About 18 min
  • 5 practice questions

Algebraic identities: squares, products and cubes

Use the identities for (a + b + c)², (x + a)(x + b)(x + c), (x ± y)³ and x³ + y³ + z³ − 3xyz to expand, simplify and evaluate quickly.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Recall the basic identities and expand (a + b + c)².
  • Expand the product of three binomials (x + a)(x + b)(x + c).
  • Expand (x + y)³ and (x − y)³ and use x³ + y³ + z³ − 3xyz, including the case x + y + z = 0.

An identity is an equality that is true for every value of its variables, unlike an equation, which is true only for some values. Identities are short-cuts: they let you expand, factorise and calculate without long multiplication. You already know some from earlier classes; this lesson extends the list.

Identities you already know

  • (a + b)² ≡ a² + 2ab + b²
  • (a − b)² ≡ a² − 2ab + b²
  • (a + b)(a − b) ≡ a² − b²
  • (x + a)(x + b) ≡ x² + (a + b)x + ab
  • Useful rearrangements: a² + b² = (a + b)² − 2ab = (a − b)² + 2ab

New identities

Identities of this lesson
IdentityExpanded form
(a + b + c)²a² + b² + c² + 2ab + 2bc + 2ca
(x + a)(x + b)(x + c)x³ + (a + b + c)x² + (ab + bc + ca)x + abc
(x + y)³x³ + 3x²y + 3xy² + y³ = x³ + y³ + 3xy(x + y)
(x − y)³x³ − 3x²y + 3xy² − y³ = x³ − y³ − 3xy(x − y)
(x + y + z)(x² + y² + z² − xy − yz − zx)x³ + y³ + z³ − 3xyz

The square of a trinomial comes from (x + y)² with x = a + b and y = c. The cube (x + y)³ comes from putting a = b = c = y in the three-binomial identity. Two useful consequences: x³ + y³ = (x + y)³ − 3xy(x + y) and x³ − y³ = (x − y)³ + 3xy(x − y).

If x + y + z = 0, then x³ + y³ + z³ = 3xyz.

— A special case worth remembering

Choosing an identity

  • Square of a sum
    • Two terms: (a ± b)²
    • Three terms: (a + b + c)²
  • Product of binomials
    • (a + b)(a − b)
    • (x + a)(x + b)
    • (x + a)(x + b)(x + c)
  • Cubes
    • (x ± y)³
    • x³ + y³ + z³ − 3xyz

Worked example 1: square of a trinomial

Expand (2a − b + 3c)². Working: use (p + q + r)² with p = 2a, q = −b, r = 3c. Squares: 4a² + b² + 9c². Products: 2(2a)(−b) = −4ab; 2(−b)(3c) = −6bc; 2(3c)(2a) = 12ca. So (2a − b + 3c)² = 4a² + b² + 9c² − 4ab − 6bc + 12ca.

Worked example 2: using the identity backwards

If a + b + c = 9 and ab + bc + ca = 26, find a² + b² + c². Working: (a + b + c)² = a² + b² + c² + 2(ab + bc + ca), so 81 = a² + b² + c² + 52, giving a² + b² + c² = 29.

Worked example 3: three binomials

Expand (x + 2)(x − 3)(x + 5). Working: a = 2, b = −3, c = 5. a + b + c = 4; ab + bc + ca = −6 − 15 + 10 = −11; abc = 2 × (−3) × 5 = −30. So the product is x³ + 4x² − 11x − 30. Check with x = 1: left side 3 × (−2) × 6 = −36; right side 1 + 4 − 11 − 30 = −36.

Worked example 4: cubes

(a) (2x + 3y)³ = (2x)³ + 3(2x)²(3y) + 3(2x)(3y)² + (3y)³ = 8x³ + 36x²y + 54xy² + 27y³. (b) (3a − 2b)³ = 27a³ − 3(9a²)(2b) + 3(3a)(4b²) − 8b³ = 27a³ − 54a²b + 36ab² − 8b³. (c) If x + y = 5 and xy = 6, then x³ + y³ = (x + y)³ − 3xy(x + y) = 125 − 90 = 35.

Worked example 5: the special case

Evaluate 7³ − 10³ + 3³ without cubing. Working: take x = 7, y = −10, z = 3. Then x + y + z = 7 − 10 + 3 = 0, so x³ + y³ + z³ = 3xyz = 3 × 7 × (−10) × 3 = −630. Check: 343 − 1000 + 27 = −630.

Key takeaways: an identity holds for all values; (a + b + c)² has three squares and three doubled products; the three-binomial identity uses the sum, the sum of products in pairs and the product; (x ± y)³ = x³ ± 3x²y + 3xy² ± y³; and when x + y + z = 0, x³ + y³ + z³ = 3xyz.

Check your understanding

  1. 1. What is (x + y + 2z)²?

    1. x² + y² + 4z² + 2xy + 4yz + 4zx
    2. x² + y² + 2z² + 2xy + 2yz + 2zx
    3. x² + y² + 4z² + xy + 2yz + 2zx
    4. x² + y² + 4z² + 2xy + 2yz + 2zx
    Show answer

    Answer: A. Squares: x² + y² + (2z)² = x² + y² + 4z². Doubled products: 2(x)(y) = 2xy, 2(y)(2z) = 4yz and 2(2z)(x) = 4zx.

  2. 2. What is the coefficient of x in (x + 1)(x + 2)(x + 4)?

    1. 7
    2. 8
    3. 14
    4. 6
    Show answer

    Answer: C. The coefficient of x is ab + bc + ca = 1 × 2 + 2 × 4 + 4 × 1 = 2 + 8 + 4 = 14. The coefficient of x² would be 1 + 2 + 4 = 7, and the constant would be 8.

  3. 3. What is (a − 2)³?

    1. a³ − 8
    2. a³ − 6a² + 12a − 8
    3. a³ − 6a² − 12a − 8
    4. a³ + 6a² + 12a − 8
    Show answer

    Answer: B. (a − 2)³ = a³ − 3(a²)(2) + 3(a)(4) − 8 = a³ − 6a² + 12a − 8.

  4. 4. If x − y = 3 and xy = 10, what is x³ − y³?

    1. 27
    2. 117
    3. 57
    4. −63
    Show answer

    Answer: B. x³ − y³ = (x − y)³ + 3xy(x − y) = 27 + 3 × 10 × 3 = 27 + 90 = 117. Check with x = 5, y = 2: 125 − 8 = 117.

  5. 5. What is the value of 12³ − 5³ − 7³?

    1. 1260
    2. −1260
    3. 0
    4. 420
    Show answer

    Answer: A. Take x = 12, y = −5, z = −7: x + y + z = 0, so x³ + y³ + z³ = 3xyz = 3 × 12 × (−5) × (−7) = 1260. Check: 1728 − 125 − 343 = 1260.

Privacy · Terms · Refunds · Delivery