Variables

a
Real number
b
Real number
n
Integer
1.
Square of difference
(ab)2=a22ab+b2(a-b)^2=a^2-2ab+b^2
2.
Square of sum
(a+b)2=a2+2ab+b2(a+b)^2=a^2+2ab+b^2
3.
Cube of difference
(ab)3=a33a2b+3ab2b3(a-b)^3=a^3-3a^2b+3ab^2-b^3
4.
Cube of sum
(a+b)3=a3+3a2b+3ab2+b3(a+b)^3=a^3+3a^2b+3ab^2+b^3
5.
Fourth power of difference
(ab)4=a44a3b+6a2b24ab3+b4(a-b)^4=a^4-4a^3b+6a^2b^2-4ab^3+b^4
6.
Fourth power of sum
(a+b)4=a4+4a3b+6a2b2+4ab3+b4(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^4