Euler's four-square identity

From Wikipedia, the free encyclopedia

In mathematics, Euler's four-square identity says that the product of two numbers, each of which being a sum of four squares, is itself a sum of four squares. Specifically:

(a_1^2+a_2^2+a_3^2+a_4^2)(b_1^2+b_2^2+b_3^2+b_4^2)=\,
(a_1 b_1 - a_2 b_2 - a_3 b_3 - a_4 b_4)^2 +\,
(a_1 b_2 + a_2 b_1 + a_3 b_4 - a_4 b_3)^2 +\,
(a_1 b_3 - a_2 b_4 + a_3 b_1 + a_4 b_2)^2 +\,
(a_1 b_4 + a_2 b_3 - a_3 b_2 + a_4 b_1)^2\,

Euler wrote about this identity in the letter CXXV, April 12, 1749, to Goldbach (but note that he used a different sign convention from the above). It can be proven with elementary algebra and holds in every commutative ring. If the as and bs are real numbers, a more elegant proof is available: the identity expresses the fact that the absolute value of the product of two quaternions is equal to the product of their absolute values, in the same way that the Brahmagupta-Fibonacci two-square identity does for complex numbers.

The identity was used by Lagrange to prove his four square theorem. More specifically, it allows the theorem to be proven only for prime numbers.

[edit] See also