Difference of two squares

In elementary algebra, a difference of two squares is one squared number (the number multiplied by itself) subtracted from another squared number. Every difference of squares may be factored as the product of the sum of the two numbers and the difference of the two numbers:

Note that and can represent more complicated expressions, such that the difference of their squares can be factored as the product of their sum and difference. For example, given , and  :

In the reverse direction, the product of any two numbers can be expressed as the difference between the square of their average and the square of half their difference: