Sums of Squares and Galois Theory

Why does multiplying two sums of two squares produce another sum of two squares? And why can some numbers be written as two rational squares while others cannot? A surprising answer comes from Galois theory: a sum of two squares is a special kind of field norm.

This article assumes familiarity with complex numbers and basic field extensions. We will develop the key definitions through examples, rather than assume advanced Galois theory.

1. A familiar identity with an unfamiliar explanation

Start with the two-square identity:

(a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2.

For example, 5=1^2+2^2 and 13=2^2+3^2, so

65=5\cdot13=(-4)^2+7^2.

We could verify the identity by expansion. But why does this pattern exist at all?

2. Complex multiplication explains the identity

For a complex number z=a+bi, its conjugate is \overline z=a-bi. Multiplying gives

z\overline z=(a+bi)(a-bi)=a^2+b^2.

Define N(z)=z\overline z. Since conjugation respects multiplication,

N(zw)=zw\overline{zw}=z\overline z\,w\overline w=N(z)N(w).

Thus the product of two sums of two squares is another sum of two squares. The four-term algebraic identity is simply the coordinate version of this multiplicative law.

ReIma + bia − bi
Complex conjugation reflects across the real axis. Multiplying a number by its conjugate gives its squared distance from the origin.

3. From complex conjugation to Galois theory

Now replace the real numbers with a field F of characteristic different from 2, and suppose -1 is not a square in F. Then

K=F(i),\qquad i^2=-1

is a quadratic field extension. Every element has a unique expression a+bi, with a,b\in F. There are exactly two field automorphisms of K that fix F: the identity and conjugation

\sigma(a+bi)=a-bi.

They form the Galois group \operatorname{Gal}(K/F)=\{1,\sigma\}, a group of order two. The field norm is

\boxed{N_{K/F}(a+bi)=(a+bi)\sigma(a+bi)=a^2+b^2.}

Notice the important distinction: when F=\mathbb Q, the coefficients a,b are rational; when F=\mathbb R, they are real. The same formula has different arithmetic consequences in different fields.

4. A useful equivalence

Norm criterion. Let F be a field of characteristic different from 2 in which -1 is not a square. A nonzero element t\in F is a sum of two squares in F if and only if it is a norm from F(i).

Proof. If t=a^2+b^2, then t=N_{F(i)/F}(a+bi). Conversely, every element of F(i) is a+bi, and its norm is exactly a^2+b^2. This proves both directions.

The criterion does not automatically tell us which elements are norms. That is a deeper arithmetic question. But it translates an additive-looking problem into a multiplicative one.

5. Rational squares: why 5 works but 3 does not

We have 5=1^2+2^2, so 5=N_{\mathbb Q(i)/\mathbb Q}(1+2i). In contrast, 3 is not a sum of two rational squares.

To prove this, suppose 3=(m/n)^2+(k/n)^2 with integers m,k,n, n\ne0, chosen with no common factor. Then

m^2+k^2=3n^2.

Modulo 3, a square is 0 or 1. Thus m^2+k^2\equiv0\pmod3 forces 3\mid m and 3\mid k. The equation then implies 3\mid n, contradicting the choice of m,k,n.

Therefore 3 is not a norm from \mathbb Q(i). The familiar obstruction involving primes congruent to 3\pmod4 is part of this same arithmetic story.

6. The choice of extension matters

Consider a different quadratic extension:

K=\mathbb Q(\sqrt5),\qquad \sigma(a+b\sqrt5)=a-b\sqrt5.

Its norm is

N_{K/\mathbb Q}(a+b\sqrt5)=a^2-5b^2.

In particular,

N_{K/\mathbb Q}(2+\sqrt5)=4-5=-1.

But -1 cannot be a sum of rational squares. So not every quadratic norm is a sum of squares. The sign in the norm formula depends on the defining quadratic extension.

7. What about sums of three or four squares?

The two-square problem is especially transparent because a^2+b^2 is a norm from a quadratic extension. Higher sums of squares connect to quadratic forms, quaternion algebras, and the arithmetic of fields. There is no direct claim that every sum of three or four squares is the norm of an element in a quadratic field.

For instance, over \mathbb Q, 3=1^2+1^2+1^2 is a sum of three squares but, as we just proved, not of two rational squares. Thus the minimum number of squares needed depends on the element and on the underlying field.

In Section 9 of her 1970 survey, Olga Taussky discusses how sums of squares interact with Galois theory, including the role of quadratic extensions and norm equations. Our introductory norm criterion is a first step toward that more advanced perspective.

8. The bigger lesson

Galois theory is often introduced as a theory of polynomial equations and their symmetries. Here the same symmetry—conjugation—explains an arithmetic identity:

\underbrace{a^2+b^2}_{\text{sum of squares}}=\underbrace{(a+bi)(a-bi)}_{\text{Galois norm}}.

Because norms multiply, two-square representations multiply. Because different fields have different norm images, an element may be representable in one field and not another. That is the hidden bridge between elementary sums of squares and abstract algebra.

Try it yourself

Exercise 1. Use complex multiplication to express 10\cdot17 as a sum of two integer squares.

Solution. Since 10=1^2+3^2 and 17=1^2+4^2, multiply (1+3i)(1+4i)=-11+7i. Hence 170=11^2+7^2.

Exercise 2. Find the norm of 3+2\sqrt2 from \mathbb Q(\sqrt2) to \mathbb Q.

Solution. Conjugation sends \sqrt2 to -\sqrt2, so N(3+2\sqrt2)=9-8=1.

Exercise 3. Show that if u and v are sums of two rational squares, then so is uv.

Solution. Write u=a^2+b^2 and v=c^2+d^2 with rational coefficients. Then uv=(ac-bd)^2+(ad+bc)^2, again with rational coefficients.

Challenge. Prove that 7 is not a sum of two rational squares.

Solution. If 7=(m/n)^2+(k/n)^2 in lowest common terms, then m^2+k^2=7n^2. The quadratic residues modulo 7 are 0,1,2,4, and no two nonzero residues in this set sum to 0\pmod7. Thus 7\mid m,k, and then 7\mid n, a contradiction.

Connections and references

For the elementary arithmetic background, see Generate Pythagorean Triples via Complex Numbers and Why Are 1, 2, 4, and 8 Special?. These are related topics; the new idea here is the interpretation of a sum of squares as a field norm.

Primary inspiration: Olga Taussky, “Sums of Squares,” The American Mathematical Monthly 77 (1970), 805–830, especially §9, JSTOR. The exposition and examples above are independently developed.

Leave a Reply

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