# Degen's eight-square identity

In mathematics, Degen's eight-square identity establishes that the product of two numbers, each of which is a sum of eight squares, is itself the sum of eight squares. Namely: ${\begin{aligned}&\left(a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}+a_{5}^{2}+a_{6}^{2}+a_{7}^{2}+a_{8}^{2}\right)\left(b_{1}^{2}+b_{2}^{2}+b_{3}^{2}+b_{4}^{2}+b_{5}^{2}+b_{6}^{2}+b_{7}^{2}+b_{8}^{2}\right)=\\[1ex]&\quad \left(a_{1}b_{1}-a_{2}b_{2}-a_{3}b_{3}-a_{4}b_{4}-a_{5}b_{5}-a_{6}b_{6}-a_{7}b_{7}-a_{8}b_{8}\right)^{2}+\\&\quad \left(a_{1}b_{2}+a_{2}b_{1}+a_{3}b_{4}-a_{4}b_{3}+a_{5}b_{6}-a_{6}b_{5}-a_{7}b_{8}+a_{8}b_{7}\right)^{2}+\\&\quad \left(a_{1}b_{3}-a_{2}b_{4}+a_{3}b_{1}+a_{4}b_{2}+a_{5}b_{7}+a_{6}b_{8}-a_{7}b_{5}-a_{8}b_{6}\right)^{2}+\\&\quad \left(a_{1}b_{4}+a_{2}b_{3}-a_{3}b_{2}+a_{4}b_{1}+a_{5}b_{8}-a_{6}b_{7}+a_{7}b_{6}-a_{8}b_{5}\right)^{2}+\\&\quad \left(a_{1}b_{5}-a_{2}b_{6}-a_{3}b_{7}-a_{4}b_{8}+a_{5}b_{1}+a_{6}b_{2}+a_{7}b_{3}+a_{8}b_{4}\right)^{2}+\\&\quad \left(a_{1}b_{6}+a_{2}b_{5}-a_{3}b_{8}+a_{4}b_{7}-a_{5}b_{2}+a_{6}b_{1}-a_{7}b_{4}+a_{8}b_{3}\right)^{2}+\\&\quad \left(a_{1}b_{7}+a_{2}b_{8}+a_{3}b_{5}-a_{4}b_{6}-a_{5}b_{3}+a_{6}b_{4}+a_{7}b_{1}-a_{8}b_{2}\right)^{2}+\\&\quad \left(a_{1}b_{8}-a_{2}b_{7}+a_{3}b_{6}+a_{4}b_{5}-a_{5}b_{4}-a_{6}b_{3}+a_{7}b_{2}+a_{8}b_{1}\right)^{2}\end{aligned}}$
First discovered by Carl Ferdinand Degen around 1818, the identity was independently rediscovered by John Thomas Graves (1843) and Arthur Cayley (1845). The latter two derived it while working on an extension of quaternions called octonions. In algebraic terms the identity means that the norm of product of two octonions equals the product of their norms: $\left\|ab\right\|=\left\|a\right\|\left\|b\right\|$. Similar statements are true for quaternions (Euler's four-square identity), complex numbers (the Brahmagupta–Fibonacci two-square identity) and real numbers. In 1898 Adolf Hurwitz proved that there is no similar bilinear identity for 16 squares (sedenions) or any other number of squares except for 1,2,4, and 8. However, in the 1960s, H. Zassenhaus, W. Eichhorn, and A. Pfister (independently) showed there can be a non-bilinear identity for 16 squares.
Note that each quadrant reduces to a version of Euler's four-square identity: ${\begin{aligned}&\left(a_{1}^{2}+a_{2}^{2}+a_{3}^{2}+a_{4}^{2}\right)\left(b_{1}^{2}+b_{2}^{2}+b_{3}^{2}+b_{4}^{2}\right)=\\&\quad \left(a_{1}b_{1}-a_{2}b_{2}-a_{3}b_{3}-a_{4}b_{4}\right)^{2}+\\&\quad \left(a_{1}b_{2}+a_{2}b_{1}+a_{3}b_{4}-a_{4}b_{3}\right)^{2}+\\&\quad \left(a_{1}b_{3}-a_{2}b_{4}+a_{3}b_{1}+a_{4}b_{2}\right)^{2}+\\&\quad \left(a_{1}b_{4}+a_{2}b_{3}-a_{3}b_{2}+a_{4}b_{1}\right)^{2}\end{aligned}}$
and similarly for the other three quadrants.
Comment: The proof of the eight-square identity is by algebraic evaluation. The eight-square identity can be written in the form of a product of two inner products of 8-dimensional vectors, yielding again an inner product of 8-dimensional vectors: (a·a)(b·b) = (a×b)·(a×b). This defines the octonion multiplication rule a×b, which reflects Degen's 8-square identity and the mathematics of octonions.
By Pfister's theorem, a different sort of eight-square identity can be given where the $z_{i}$, introduced below, are non-bilinear and merely rational functions of the $x_{i},y_{i}$. Thus, $\left(x_{1}^{2}+x_{2}^{2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