What Is 4 square theorem

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 17, 2026

Quick Answer: The Four Square Theorem, proven by Joseph-Louis Lagrange in 1770, states that every natural number can be expressed as the sum of four integer squares. For example, 7 = 2² + 1² + 1² + 1².

Key Facts

Overview

The Four Square Theorem, also known as Lagrange's Four Square Theorem, is a foundational result in number theory. It asserts that every positive integer can be written as the sum of at most four perfect squares. This includes zero as a valid square (0² = 0), allowing combinations like 5 = 2² + 1² + 0² + 0².

First proven in 1770 by Joseph-Louis Lagrange, the theorem resolved a conjecture that had intrigued mathematicians since the time of Diophantus. Its elegance lies in its universality—no matter how large the number, four squares are always sufficient. The theorem does not require all four squares to be nonzero, but some numbers, like 7, use all four.

How It Works

The theorem relies on algebraic identities and properties of quadratic forms. By leveraging Euler’s four-square identity, Lagrange showed that if all primes can be written as sums of four squares, then so can all integers.

Comparison at a Glance

The following table compares the Four Square Theorem with related number representation theorems:

TheoremMaximum Squares NeededProven ByYearLimitations
Four Square Theorem4Joseph-Louis Lagrange1770Applies to all natural numbers
Three Square Theorem3Adrien-Marie Legendre1798Fails for numbers of the form 4ᵏ(8m + 7)
Two Square Theorem2Fermat, proved by Euler1749Only works for primes ≡ 1 mod 4
Waring’s Problem (k=2)4Hilbert, 19091909Generalization to all powers
Sums of Cubes9Various contributors20th centuryNot all numbers need 9; most use fewer

This comparison highlights the Four Square Theorem’s completeness—unlike the Three Square Theorem, which fails for certain integers, Lagrange’s result holds universally. It also underscores the progression of additive number theory from Fermat to Hilbert, showing how Lagrange’s work laid the foundation for later generalizations.

Why It Matters

The Four Square Theorem is more than a mathematical curiosity—it has lasting implications in number theory, computer science, and cryptography. Its proof introduced techniques still used in modern algebra and inspired further research into quadratic forms and Diophantine equations.

By proving that four squares suffice for any number, Lagrange provided a complete solution to an ancient problem. The theorem remains a cornerstone of additive number theory and continues to influence both theoretical and applied mathematics.

Sources

  1. WikipediaCC-BY-SA-4.0

Missing an answer?

Suggest a question and we'll generate an answer for it.