Why Are 1, 2, 4, and 8 Special? The Mathematics of Sums of Squares

What do ordinary numbers, complex numbers, quaternions, and octonions have in common? Each supports a remarkable multiplication rule: the length of a product is the product of the lengths. But why do these structures have dimensions 1, 2, 4, and 8? Why not 3, 5, or 16?

We can begin with a familiar algebraic identity, follow it into geometry, and arrive at a theorem that places a surprising restriction on the dimensions of certain number systems.

1. A familiar identity hides a bigger story

Recall the identity

(a2+b2)(c2+d2)=(ac−bd)2+(ad+bc)2.

Expanding the right side verifies the identity: the mixed terms cancel. This means that multiplying two numbers that are sums of two squares produces another sum of two squares.

For instance,

(12+22)(32+42)=(3−8)2+(4+6)2=125.

The formula is more than an algebraic coincidence. It comes directly from multiplying complex numbers.

2. Dimension 2: complex numbers and rotations

Write two complex numbers as

z=a+bi,w=c+di,i2=−1.

Multiplication gives

zw=(ac−bd)+(ad+bc)i.

The squared length, or squared modulus, of a complex number is

|z|2=a2+b2.

Because complex multiplication adds angles and multiplies lengths, we have

|zw|=|z||w|.
Complex plane: z and w coincide at (1,1), while their product 2i lies at (0,2). The 45 degree input angle doubles to 90 degrees. No filled triangles.
Figure 1. An exact example: z = w = 1 + i, so zw = 2i. Two 45° angles add to 90°, and √2 × √2 = 2. The two input vectors coincide.

Thus the two-square identity is simply the coordinate version of the multiplicative length law in the complex plane.

3. Dimension 4: quaternions

In 1843, William Rowan Hamilton introduced quaternions, numbers with four real coordinates:

q=a+bi+cj+dk.

The imaginary units satisfy

i2=j2=k2=ijk=−1,ij=k,ji=−k.

Notice the surprise: quaternion multiplication is not commutative. Yet quaternions retain a multiplicative norm.

Define the conjugate and norm by

q¯=a−bi−cj−dk,N(q)=qq¯=a2+b2+c2+d2.

Quaternion conjugation reverses multiplication: the conjugate of a product is the product of the conjugates in reverse order. Since quaternion multiplication is associative,

N(pq)=(pq)(pq)¯=p(qq¯)p¯=N(p)N(q).

Therefore the product of two sums of four squares is again a sum of four squares.

A concrete four-square example

Take p=1+i and q=1+j. Then

pq=1+i+j+k,N(pq)=4=2·2.

Here a product of two sums of two squares becomes a sum of four squares, demonstrating the four-dimensional multiplication rule.

For more on this identity and how it produces new sums of four squares, see How Euler’s Four-Square Identity Generates New Sums of Four Squares.

4. Dimension 8: octonions

We can go further. An octonion has eight real coordinates, and its squared norm is the sum of their eight squares:

N(x)=∑r=07xr2.

Octonions also satisfy

N(xy)=N(x)N(y).

So there exists an eight-square identity. Its fully expanded coordinate formula is long; the important point is that octonion multiplication supplies eight bilinear expressions whose squares add to the product of two sums of eight squares.

There is a price: octonion multiplication is neither commutative nor associative. For example, one cannot generally move parentheses from (xy)z to x(yz). Nevertheless, the norm identity survives.

A useful distinction: The eight-square identity is an existence statement about bilinear expressions. It does not claim that arbitrary choices of eight expressions will work.

5. Why not 3, 5, or 16?

We now ask a precise question. Suppose a finite-dimensional real algebra has an identity element and a positive-definite quadratic norm that satisfies

N(xy)=N(x)N(y).

Hurwitz’s theorem says that the dimension must be

n∈{1,2,4,8}.

These dimensions are realized by the real numbers, complex numbers, quaternions, and octonions. No comparable positive-definite, multiplicative quadratic norm exists on a 3-, 5-, or 16-dimensional real unital algebra.

The full proof of Hurwitz’s theorem requires more algebra than we have developed here. Our calculations prove the two- and four-dimensional cases; the eight-dimensional case and the exclusion of other dimensions are established by the general theorem, not by those calculations alone.

Real numbersComplex numbersQuaternionsOctonions1248CommutativeCommutativeNot commutativeNot commutativeAssociativeAssociativeAssociativeNot associative
Figure 2. Four dimensions with multiplicative Euclidean norms—and the algebraic properties lost along the way.
Number systemReal dimensionCommutative?Associative?
Real numbers1YesYes
Complex numbers2YesYes
Quaternions4NoYes
Octonions8NoNo

6. A subtle point: sixteen squares are not impossible in every sense

We must be careful about what Hurwitz’s theorem actually rules out. It does not say that no identity involving sixteen squares can ever be written. For example, products of sums of sixteen squares can be expanded and rearranged in many ways.

What fails in dimension 16 is the very special kind of identity in which exactly sixteen bilinear coordinate expressions have squares adding to the product of the two Euclidean squared norms. Equivalently, there is no 16-dimensional real bilinear multiplication with a positive-definite multiplicative Euclidean norm.

That precision is what makes the result remarkable.

7. Try it yourself

Work through these problems before opening the solutions.

Problem 1. Prove the two-square identity by direct expansion.

Expand the right side:

(ac−bd)2+(ad+bc)2=a2c2+b2d2+a2d2+b2c2.

Factor to obtain the left side.

Problem 2. Find two different representations of 65 as a sum of two squares.

We have 65=12+82=42+72. One way to discover the second is to multiply 5=12+22 by 13=22+32 and choose the two possible signs.

Problem 3. Show that quaternion multiplication is not commutative.

By the quaternion multiplication rules, ij=k while ji=−k. Thus ij≠ji.

Problem 4. Compute the norm of (1 + i)(1 + j) without multiplying first.

Each factor has squared norm 2, so the product has squared norm 2·2=4. Multiplication confirms that the product is 1+i+j+k, whose squared norm is 4.

Challenge. Why does Hurwitz’s theorem not rule out an identity expressing a product as a sum of 32 squares?

Hurwitz’s theorem rules out a 16-square composition identity with 16 bilinear output expressions, not every possible representation using a larger number of squares. The precise number and bilinear structure of the output expressions matter.

8. The larger mathematical picture

We began with an elementary identity and found a sequence of increasingly unusual number systems. Complex numbers give up the ordinary one-dimensional number line; quaternions give up commutativity; octonions give up associativity. Yet all four systems preserve the multiplicative length law.

That is why 1, 2, 4, and 8 are special: they are exactly the possible dimensions of real composition algebras with a positive-definite multiplicative quadratic norm.

References and further reading

  1. Olga Taussky, “Sums of Squares,” The American Mathematical Monthly 77, no. 8 (1970), 805–830. JSTOR article. The discussion of composition identities and division algebras is especially relevant.
  2. Adolf Hurwitz, foundational work on composition identities and sums of squares (1898). The classification theorem is often called Hurwitz’s theorem on composition algebras.
  3. John C. Baez, “The Octonions,” Bulletin of the American Mathematical Society 39 (2002), 145–205. Open-access preprint.

Editorial note: This is an original educational exposition inspired in part by Taussky’s historical survey. Its explanations, examples, and illustrations were prepared independently.

Explore More: Pythagorean Triples

The mathematics of sums of squares is closely connected to Pythagorean triples. Explore how these classical number-theoretic relationships lead to surprising patterns in our article on Pythagorean Runs.

From Complex Numbers to Faster Matrix Multiplication

Complex numbers have another surprising property: multiplying two complex numbers requires only three real multiplications instead of four.

This idea is closely related to a remarkable discovery in computational mathematics: Strassen’s algorithm, which multiplies two 2-by-2 matrices using only seven multiplications instead of eight.

Explore this connection in our article Can We Multiply Matrices Faster by Multiplying Less? .

Leave a Reply

Your email address will not be published. Required fields are marked *