# Square of Difference

## Reference > Algebra: Sums and Differences of Squares and Cubes

 DescriptionThe Square of Difference Rule states that:$${(a-b)}^{2}={a}^{2}-2ab+{b}^{2}$$
 Examples${(x-y)}^{2}$1 Use Square of Difference: $${(a-b)}^{2}={a}^{2}-2ab+{b}^{2}$$.${x}^{2}-2xy+{y}^{2}$Donex^2-2*x*y+y^2