The following special formulas are vastly used in algebra and calculus, and should be memorized. You can verify each of the formulas by actual multiplication.
 
  1.   (A+B)2=A2+2AB+B2    (Square of a Sum)
  2.   (AB)2=A22AB+B2                 (Square of a Difference)
  3.   (A+B)3=A3+3A2B+3AB2+B3  (Cube of a Sum)
  4.   (AB)3=A33A2B+3AB2B3  (Cube of a Difference) 

Here A and B represent real numbers, variables, or algebraic expressions.

  • Note than the Square of Difference formula can be obtained if we replace B with B in the Square of Sum formula. Similarly replacing B with B in the Cube of Sum formula yields the Cube of Difference formula.

 

Read more: Expansion of (A ± B)n

 

  5.   (x+A)(x+B)=x2+(A+B)x+AB (Product of two Binomials having a Common Term)
  6.   (AB)(A+B)=A2B2  (Product of Sum and Difference)
  7.   (AB)(A2+AB+B2)=A3B3 (Difference of Cubes)
  8.   (A+B)(A2AB+B2)=A3+B3 (Sum of Cubes) 
 
The formula for the square or cube of trinomial (=polynomial with three terms) can also be obtained using the Square of a Sum and the Cube of a Sum formulas.
  • (A+B+C)2=A2+B2+C2+2AB+2AC+2BC
  • (A+B+C)3=A3+B3+C3+3A2B+3AB2+3A2C+3AC2+3B2C+3BC2

Examples

Example 1

Expand (3x5y)2

Solution

Let A=3x and B=5y. Then

(3x5y)2=(AB)2=A22AB+B2=(3x)22(3x)(5y)+(5y)2=9x230xy+25y2

Example 2

Simplify (xy)(x+y)+y2

Solution

Because (Formula 6)

(xy)(x+y)=x2y2

we have

(xy)(x+y)+y2=x2y2+y2=x2.

Example 3

Simplify (x32y)(x3+2y)

Solution

Let A=x3 and B=2y. Then the above product can be written as (AB)(A+B). Thus

(x32y)(x3+2y)=(AB)(A+B)=A2B2=(x3)2(2y)2=x64(y)2=x64y

Note that the above equation has a meaning only when y>0.