Math 2.0

Number theory Proof

Proof of Euler's four-square identity by expansion

Builds on Commutative ring

Proof

We expand both sides, using the laws of a commutative ring.

  1. Call the four expressions on the right z1,z2,z3,z4z_1, z_2, z_3, z_4, in the order written. Each zkz_k is a sum of four terms ±aibj\pm a_i b_j.
  2. The index pairs (i,j)(i, j) in the terms are: in z1z_1, (1,1),(2,2),(3,3),(4,4)(1,1), (2,2), (3,3), (4,4); in z2z_2, (1,2),(2,1),(3,4),(4,3)(1,2), (2,1), (3,4), (4,3); in z3z_3, (1,3),(2,4),(3,1),(4,2)(1,3), (2,4), (3,1), (4,2); in z4z_4, (1,4),(2,3),(3,2),(4,1)(1,4), (2,3), (3,2), (4,1).
  3. So each of the 1616 pairs (i,j)(i, j) occurs in exactly one zkz_k, and in exactly one term.
  4. For t1,…,t4t_1, \dots, t_4 in a commutative ring, (t1+t2+t3+t4)2=∑iti2+2∑i<ltitl(t_1 + t_2 + t_3 + t_4)^2 = \sum_i t_i^2 + 2\sum_{i < l} t_i t_l.
  5. By steps 3 and 4, the squares of the terms add up to ∑i,jai2bj2\sum_{i, j} a_i^2 b_j^2. This is the left side (∑iai2)(∑jbj2)(\sum_i a_i^2)(\sum_j b_j^2).
  6. It remains to show that the cross terms 2titl2 t_i t_l cancel. Each cross term is ±2 aialbjbr\pm 2\, a_i a_l b_j b_r with i≠li \ne l and j≠rj \ne r. We list the coefficients of each such monomial, without the factor 22.
  7. a1a2b1b2a_1a_2b_1b_2: −1-1 from z1z_1 and +1+1 from z2z_2. a1a2b3b4a_1a_2b_3b_4: −1-1 from z3z_3 and +1+1 from z4z_4.
  8. a1a3b1b3a_1a_3b_1b_3: −1-1 from z1z_1 and +1+1 from z3z_3. a1a3b2b4a_1a_3b_2b_4: +1+1 from z2z_2 and −1-1 from z4z_4.
  9. a1a4b1b4a_1a_4b_1b_4: −1-1 from z1z_1 and +1+1 from z4z_4. a1a4b2b3a_1a_4b_2b_3: −1-1 from z2z_2 and +1+1 from z3z_3.
  10. a2a3b2b3a_2a_3b_2b_3: +1+1 from z1z_1 and −1-1 from z4z_4. a2a3b1b4a_2a_3b_1b_4: +1+1 from z2z_2 and −1-1 from z3z_3.
  11. a2a4b2b4a_2a_4b_2b_4: +1+1 from z1z_1 and −1-1 from z3z_3. a2a4b1b3a_2a_4b_1b_3: −1-1 from z2z_2 and +1+1 from z4z_4.
  12. a3a4b3b4a_3a_4b_3b_4: +1+1 from z1z_1 and −1-1 from z2z_2. a3a4b1b2a_3a_4b_1b_2: +1+1 from z3z_3 and −1-1 from z4z_4.
  13. Each zkz_k has 66 cross terms, so there are 2424 in all. Steps 7 to 12 account for all 2424, in 1212 pairs with opposite signs.
  14. For example, in z1z_1 the terms a1b1a_1b_1 and −a2b2-a_2b_2 give −2a1a2b1b2-2a_1a_2b_1b_2. In z2z_2 the terms a1b2a_1b_2 and a2b1a_2b_1 give +2a1a2b1b2+2a_1a_2b_1b_2. The other lines are read off in the same way.
  15. So all cross terms cancel, and z12+z22+z32+z42z_1^2 + z_2^2 + z_3^2 + z_4^2 equals the left side.

Idea

Each product aibja_i b_j appears in exactly one of the four squares, so the squared terms give the product of the two sums. The signs are arranged, as in the multiplication of quaternions, so that the cross terms cancel in pairs.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Group concept
  2. Ring definition
  3. Commutative ring definition
  4. Proof of Euler's four-square identity by expansion proof

Where this leads

6 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Euler%27s_four-square_identity
About this page
TagBTTJMY7FJ0
URIm2://BTTJMY7FJ0
Kindproof
WritingW0 stub
MSC11E25
ProvesEuler's four-square identity
UsesCommutative ring
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.