Perfect square

The term perfect square is used in mathematics in two meanings:

This is not the same as a magic square.

Using differences of squares as multiplication

Integer multiplication can be done entirely by a difference of two squares.

Examples:

In general, the product of two numbers is equal to the square of their average minus their difference from the average squared.

A geometric constructive "proof" of this relation is shown the following animation: Missing image
Rectangle_to_square_difference2.gif
Image:Rectangle_to_square_difference2.gif

The starting rectangle is A by B. The resulting large square is length (A+B)/2, and the smaller gray square (remainder being subtracted) is length |A-B|/2.

Using this relation, you can multiply relatively large nearly equal numbers more quickly if you memorize a relatively small list of squares.

If you're multiplying an even by an odd, you can avoid "halves" by adjust one number, by requiring one more addition at the end

Example:

See also

List of perfect square between 1-10,000

See also: Perfect square, Integer, Magic square, Mathematics, Square (algebra), Square number