Euler's four-square identity

From HandWiki
Short description: Product of sums of four squares expressed as a sum of four squares

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

Algebraic identity

For any pair of quadruples from a commutative ring, the following expressions are equal:

(a12+a22+a32+a42)(b12+b22+b32+b42)=(a1b1a2b2a3b3a4b4)2+(a1b2+a2b1+a3b4a4b3)2+(a1b3a2b4+a3b1+a4b2)2+(a1b4+a2b3a3b2+a4b1)2.

Euler wrote about this identity in a letter dated May 4, 1748 to Goldbach[1][2] (but he used a different sign convention from the above). It can be verified with elementary algebra.

The identity was used by Lagrange to prove his four square theorem. More specifically, it implies that it is sufficient to prove the theorem for prime numbers, after which the more general theorem follows. The sign convention used above corresponds to the signs obtained by multiplying two quaternions. Other sign conventions can be obtained by changing any ak to ak, and/or any bk to bk.

If the ak and bk are real numbers, 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. This property is the definitive feature of composition algebras.

Hurwitz's theorem states that an identity of form,

(a12+a22+a32++an2)(b12+b22+b32++bn2)=c12+c22+c32++cn2

where the ci are bilinear functions of the ai and bi is possible only for n = 1, 2, 4, or 8.

Proof of the identity using quaternions

Comment: The proof of Euler's four-square identity is by simple algebraic evaluation. Quaternions derive from the four-square identity, which can be written as the product of two inner products of 4-dimensional vectors, yielding again an inner product of 4-dimensional vectors: (a·a)(b·b) = (a×b)·(a×b). This defines the quaternion multiplication rule a×b, which simply reflects Euler's identity, and some mathematics of quaternions. Quaternions are, so to say, the "square root" of the four-square identity. But let the proof go on:

Let α=a1+a2i+a3j+a4k and β=b1+b2i+b3j+b4k be a pair of quaternions. Their quaternion conjugates are α*=a1a2ia3ja4k and β*=b1b2ib3jb4k. Then

A:=αα*=a12+a22+a32+a42

and

B:=ββ*=b12+b22+b32+b42.

The product of these two is AB=αα*ββ*, where ββ* is a real number, so it can commute with the quaternion α*, yielding

AB=αββ*α*.

No parentheses are necessary above, because quaternions associate. The conjugate of a product is equal to the commuted product of the conjugates of the product's factors, so

AB=αβ(αβ)*=γγ*

where γ is the Hamilton product of α and β:

γ=(a1+a2,a3,a4)(b1+b2,b3,b4)=a1b1+a1b2, b3, b4+a2, a3, a4b1+a2, a3, a4b2, b3, b4=a1b1+a1b2, a1b3, a1b4+a2b1, a3b1, a4b1a2, a3, a4b2, b3, b4+a2, a3, a4×b2, b3, b4=a1b1+a1b2+a2b1, a1b3+a3b1, a1b4+a4b1a2b2a3b3a4b4+a3b4a4b3, a4b2a2b4, a2b3a3b2=(a1b1a2b2a3b3a4b4)+a1b2+a2b1+a3b4a4b3, a1b3+a3b1+a4b2a2b4, a1b4+a4b1+a2b3a3b2γ=(a1b1a2b2a3b3a4b4)+(a1b2+a2b1+a3b4a4b3)i+(a1b3+a3b1+a4b2a2b4)j+(a1b4+a4b1+a2b3a3b2)k.

Then

γ*=(a1b1a2b2a3b3a4b4)(a1b2+a2b1+a3b4a4b3)i(a1b3+a3b1+a4b2a2b4)j(a1b4+a4b1+a2b3a3b2)k.

If γ=r+u where r is the scalar part and u=u1,u2,u3 is the vector part, then γ*=ru so

γγ*=(r+u)(ru)=r2ru+ruuu=r2+uuu×u=r2+uu=r2+u12+u22+u32.

So,

AB=γγ*=(a1b1a2b2a3b3a4b4)2+(a1b2+a2b1+a3b4a4b3)2+(a1b3+a3b1+a4b2a2b4)2+(a1b4+a4b1+a2b3a3b2)2.

Pfister's identity

Pfister found another square identity for any even power:[3]

If the ci are just rational functions of one set of variables, so that each ci has a denominator, then it is possible for all n=2m.

Thus, another four-square identity is as follows: (a12+a22+a32+a42)(b12+b22+b32+b42)=(a1b4+a2b3+a3b2+a4b1)2+(a1b3a2b4+a3b1a4b2)2+(a1b2+a2b1+a3u1b12+b22a4u2b12+b22)2+(a1b1a2b2a4u1b12+b22a3u2b12+b22)2

where u1 and u2 are given by u1=b12b42b1b2b3b22b4u2=b12b3+2b1b2b4b22b3

Incidentally, the following identity is also true:

u12+u22=(b12+b22)2(b32+b42)

See also

References

  1. Leonhard Euler: Life, Work and Legacy, R.E. Bradley and C.E. Sandifer (eds), Elsevier, 2007, p. 193
  2. Mathematical Evolutions, A. Shenitzer and J. Stillwell (eds), Math. Assoc. America, 2002, p. 174
  3. Keith Conrad Pfister's Theorem on Sums of Squares from University of Connecticut