Variables

a
Real number
b
Real number
n
Integer
1.
Square of difference
$(a-b)^2=a^2-2ab+b^2$
2.
Square of sum
$(a+b)^2=a^2+2ab+b^2$
3.
Cube of difference
$(a-b)^3=a^3-3a^2b+3ab^2-b^3$
4.
Cube of sum
$(a+b)^3=a^3+3a^2b+3ab^2+b^3$
5.
Fourth power of difference
$(a-b)^4=a^4-4a^3b+6a^2b^2-4ab^3+b^4$
6.
Fourth power of sum
$(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^4$