Home > Maths

This web page gives some elmentary definitions and results concerning quadratic forms. They are needed to help with the proof of Legendre's theorem about numbers that are the sum of 3 squares.

Definition: A quadratic form F is a polynomial in n variables

F(x1,...,xn) = sum(i=1,...,n) sum(j=1,...,n) ai,j xi x_j

Definition: A quadratic form F is positive definite if F(x1,...,xn) > 0 unless all its parameters x1,...,xn are 0.

Definition: A quadratic form F is negative definite if F(x1,...,xn) < 0 unless all its parameters x1,...,xn are 0.

Definition: A quadratic form F represents an integer m if F(x1,...,xn)=m for some integers x1,...,xn.

Definition: The matrix of the above quadratic form F is A = {i,j}

Thus, using matrix and vector notation, F(x) = xAx' Note that the matrix A is symmetrical.

Definition: The determinant D(F) of the above quadratic form F is det A.

Definition: A square matrix is unimodular if its coefficients are integers and its determinant is 1.

Lemma 1. A unimodular matrix has an inverse, and this is unimodular.

Proof. Let T be a unimodular n-by-n matrix. Then det T = 1 so T has an inverse and det T−1 = 1. By the formula for the inverse of an n-by-n matrix, each entry in T−1 is an n−1-by-n−1 determinant of coefficients of T divided by det T. These coefficients are integers, so this n−1-by-n−1 determinant is an integer. Thus T−1 is unimodular. []

Definition: Let F, G be quadratic forms with respective matrices A, B. Then F and G are equivalent, notated F ~ G, if there is a unimodular matrix T such that

B = TAT−1

Lemma 2. If F ~ G, D(F) = D(G)

Proof [R], p. 165

Lemma 3. ~ is an equivalence relation

Lemma 4. For i=1,...,n, the diagonal elements of TAT−1 are F(ti,1,...,ti,n) where (ti,1,...,ti,n) is row i of T.

Lemma 5. If F ~ G then F represents m iff G represents m.

Lemma 6. [R]'s Lemma 1.4, p.166

Lemma 7. [R]'s Lemma 2.1, p.168

Only ternary quadratic forms will be needed in this proof. Simpler definitions and notation can thus be used:

Definition: A ternary quadratic form is a quadratic polynomial in 3 variables

F(x, y, z) = ax2 + by2 + cz2 + 2dyz + 2exz + 2fxy

Definition: The determinant D(F) of a ternary quadratic form F is

D(F) =
afe
fbd
edc
= abc + 2def - ad2 - be2 - cf2

Home > Maths