Professional Documents
Culture Documents
Forms
S. E. Payne
February 4, 2000
a b=2
b=2
and B = A + AT =
2a b , where a; b;
b 2
2 Z.
dy 2 :
(2)
(3)
Theorem 1.1 f (x; y ) fa
tors over Q if and only if f (x; y ) fa
tors over Z if
and only if its dis
riminant d is a square in Z .
Proof: First suppose that
(4)
DE )2 .
(5)
(6)
Theorem 1.3 Let f (x; y ) = ax2 + bxy +
y 2 be a binary quadrati
form over
Z with dis
riminant d. Then
d > 0 =) f is indenite;
d = 0 =) f is semidenite (and NOT denite);
d < 0 =) f is denite.
(7)
(8)
(9)
Theorem 1.4 Let d 2 Z . Then there exists a binary quadrati
form f with
dis
riminant d if and only if d 0 or 1 (mod 4), i.e., if and only if d is a
square modulo 4.
Proof: Suppose f has dis
riminant d = b2 4a
b2 (mod 4). Then
learly d 0 or 1 (mod 4).
For the
onverse, rst suppose that d 0 (mod 4). Then x2 d4 y 2 has
dis
riminant d. Se
ond, suppose that d 1 (mod 4). Then x2 + xy d 4 1 y 2
has dis
riminant d.
Denition: We say that f represents n properly provided there are integers
(x0 ; y0) for whi
h g
d(x0 ; y0) = 1 and f (x0 ; y0) = n. More generally, if
k = g
d(x0 ; y0 ) and f (x0 ; y0 ) = n, then f ( xk ; yk ) = kn .
0
4a g.
(10)
For example,
m1 =
Then
p jj4n
p ; m2 =
pjx0
4j n j
:
m1
So u2 = (2
y0 + bx0 )x0 solves u22 d (mod m2 ). By the Chinese Remainder Theorem we
an nd a w 2 Z for whi
h w u1 (mod m1 ) and
w u2 (mod m2 ). Then w2 d (mod m1 m2 = 4jnj).
x
y
a b=2
b=2
x
f by [f . So f
= (x; y )[f y . Then note the following: if f
!
!
x
x
so there is a matrix M 2 for whi
h g y = f (M y ), then
g
x
y
x
y
x
= (x; y )[g y
= f (M
x ) = (x; y )M t [f M
y
x
y
of
g,
M T [f M = [g :
(11)
Sin
e (M T ) 1 = (M 1 )T , we may simply write M T for this matrix.
Moreover, the following is now an easy exer
ise to prove.
Theorem 2.4 The relation \" on binary quadrati
forms is an equivalen
e
relation.
6
The next theorem shows that if f and g are \equivalent binary quadrati
forms over Z " they have mu
h in
ommon.
Theorem 2.5 Suppose that f and g are equivalent quadrati
forms, say
M T [f M = [g . Then the following hold.
f
x
y
= (x; y )M T M T [f MM
= (x; y )M
"
T [g M
x
y
!#
x
y
[g M
"
x
y
x
y
!#
= g (M
x ): (12)
y
x
y
= n i g (M
x ) = n:
y
(13)
(14)
g
d xy = g
d(M 1 xy );
implying that f represents n properly if and only if g represents n properly.
or
(15)
2
x2 + y 2
is the unique redu
ed positive denite form in Q( 4). By Theorem 1.4
there is a form f 2 Q( 4) properly representing n (n 6= 0) if and only if
x2 4 (mod j4nj) has a solution. Hen
e by Theorem 2.5, with n > 0,
x2 + y 2 = n properly if and only if x2 4(mod 4n).
Note that x2 4 (mod 8) has a solution but x2 4 (mod 16) does
not. So if x2 4 (mod 4n) has a solution, 2jn is possible, but not 4jn.
If p is a prime with p 1 (mod 4), then x2 4 (mod p) has a solution.
Then h(x) = x2 + 4 0 (mod p) has a solution; h0 (x) = 2x 6 0 (mod p),
so any solution of x2 + 4 0 (mod p) lifts to all powers of p. Then by
the Chinese Remainder Theorem we see that if n = ek, where e = 1 or 2
and k is a produ
t of powers of primes all
ongruent to 1 modulo 4, then
x2 + 4 0 (mod n) is solvable, so that n is properly representable in the
form n = x2 + y 2.
But if p 3 (mod 4), then x2 4 (mod p) has no solution. Hen
e
if n is divisible by a prime p with p 3 (mod 4), then n is not properly
representable in the form n = x2 + y 2. We have proved the following theorem.
We have now all the information needed to give another proof of the
following theorem whi
h we proved in
lass.
(16)
(17)
: 2
d>0
10
that r(n) = 4P (n). We now show that P (n) = N (n) by exhibiting a oneto-one
orresponden
e between proper representations of n with x > 0 and
y 0, and solutions s of the
ongruen
e s2 1 (mod n).
Suppose that
(x; y ) satises x2 + y 2 = n; x > 0; y 0; g
d(x; y ) = 1:
Then g
d(x; n) = 1, so there is a unique integer x modulo n for whi
h xx
1 (mod n. Put s xy . Then sin
e x2 y 2 (mod n), s2 x2 y 2 x2 x2
1 (mod n). So F : (x; y ) 7! s denes a fun
tion F from the set of proper
representations (x; y ) of n with x > 0; y 0, to the set of s with s2
1 (mod n).
Next we show that F is one-to-one. So suppose n = x2i +yi2, xi > 0, yi 0,
g
d(x; y ) = 1, xi si yi (mod n), i = 1; 2. Suppose that s1 s2 (mod n).
Then x1 y2 s1 y1 y2 x2 y1 s2 (mod n). Hen
e x1 y2 x2 y1 (mod np), sin
e
s1 s2 (mod n) and g
d(spi; n) = 1. But 0 < x2i n =) 0 < xi n, and
0 yi2 < n =) 0 yi < n. This for
es 0 x1 y2 < n and 0 x2 y1 < n
and thus x1 y2 = x2 y1 . But then x1 jx2 y1 and g
d(x1; y1 ) = 1 for
es x1 jx2 .
Similarly, x2 jx1 , implying x1 = x1 =) y1 = y2 .
At this point we know that F is well-dened and one-to-one. We want to
show that it is onto. So suppose that s2 1 (mod n). Say s2 +1 = n
. Then
(2s)2 4n
= 4 so that the binary quadrati
form g (x; y ) = nx2 +2sxy +
y 2
has dis
riminant 4. Hen
e g 2 Q( 4) and g is positive denite. In the
pre
eding se
tion we showed that the unique redu
ed positive denite binary
quadrati
form in !Q( 4) is x2 + y 2 . This implies that there is a matrix
m12
11
M= m
m21 m22 for whi
h
!
!
m s = [g = M T 1 0 M:
0 1
s
Writing out this matrix produ
t gives
!
m211 + m221
m11 m12 + m21 m22 = m s :
s
m11 m12 + m21 m22
m212 + m222
Also 1 = det(M ) = m11 m22 m12 m21 , implying g
d(m11 ; m21 ) = 1. Hen
e
m11 s = m211 m12 + m11 m21 m22
11
Exa
tly one of (m11 ; m21 ), ( m21 ; m11 ), ( m11 ; m21 ), (m21 ; m11 ) has
positive rst
oordinate and nonnegative se
ond
oordinate. Also, starting with m11 s m21 (mod n) and s2 1 (mod n), we have ( m21 s
s2 m11 m11 (mod n). It follows that xs y mod n) for any one of the
four pairs given above. Hen
e F is onto, implying that F is a bije
tion and
proving that r(n) = 4P (n) = 4N (n).
P
Now we prove that R(n) = d:d jn r dn . But this follows immediately
from the observation that
2
u2 + v 2 =
n
properly i (du)2 + (dv )2 = n with d = g
d(du; dv ):
d2
p jjn
p
q :
q jjn
q3 (mod 4)
mod 4)
(1) If 2 f0; 1g and
= 0 for all q , then r(n) = 2t+2 , where t is the
number of primes p 1 (mod 4) dividing nQ
. Otherwise r(n) = 0.
( + 1). Otherwise
(2) If all
are even, then R(n) = 4
p jjn
p1 (mod 4)
R ( n ) = 0.
p1
Proof:
UsingQ the Chinese Remainder Theorem we nd that N (n) =
Q
N (2 ) p N (p ) q N (q
). Note that N (2) = 1 and N (4) = 0 (sin
e s2
1 (mod 4) has no solution). So N (2 ) = 0 for all 2. Similarly N (q ) = 0
and N (q
) = 0 for all
1. Hen
e we have
(
2t ; if = 0 or 1 and all
= 0;
0; otherwise.
This implies r(n) = 4N (n) = 2t+2 if = 0 or 1 and all
= 0, and
P
equals 0 otherwise. We know R(n) = 4 d jn N dn . If n = m1 m2 with
N (n) =
12
g
d(m1 ; m2 ) = 1, then d2 jn if and only if d = d1 d2 with d21 jm1 and d22 jm2 .
Moreover, d $ (d1 ; d2 ) is a bije
tion. Hen
e we have the following:
n
N 2 =
d
d jn
X
2
d21 jm1
d22 jm2
m m
N 21 22
d1 d2
m
N 21
d1
N md22
2
m
=
N 21
d1
d jm
m
N 22 :
d2
d jm
d21 jm1
d22 jm2
X
2
1
X
2
2
p
n X 2 Y X
N 2
N 2
N 2 =
d
d p d jp
d
d j2
d jn
X
!1
A
0
Y
q
A
N 2 :
d
d jq
X
Now
onsider the
ontributions of the three main fa
tors above. For the
rst fa
tor, if is even, the only nonzero
ontribution
omes from d2 = 2 .
If is odd, the only nonzero
ontribution
omes from d2 = 2 1. So
the rst
p
fa
tor is 1 in any
ase. For the se
ond fa
tor, if is even, N d = 2 for
d = 1, p; p2 ; : : : ; p 1 , and N pd = 1 if d2 = p . So the prime p
ontributes
2 2 + 1 = + 1. If is odd, then N pd = 2 for d = 1; p; : : : ; p . So
the third fa
tor, if
again the prime p
ontributes 2 1 + 2 1 = + 1. For
is odd, then q divides qd for all appropriate q , so N qd = 0 always. If
is
(
2
= q
;
q
even, then N d = 10;; dotherwise.
This implies that q
ontributes 1 if
is even, and
ontributes a fa
tor of zero
if
is odd. Hen
e
2
Y
n
R(n) = 4 N 2 = 4 1 ( + 1)
d
p
d jn
X
13
1; all
even;
0; otherwise.
n = 2
p1
mod
p jjn
p
4)
with = 0 or 1, and in that
ase r(n) = 4N (n) = 2t+2 , where t is the number
of p 1 (mod 4), pjn.
F=
3
X
k;l=1
akl xk xl = (x1 ; x2 ; x3 )A B
x1
x2
x3
1
C
A
(19)
where
a a
a2 a11 a23 a12 a13
[K (x2 ; x3 ) = a 11a 22 a 12a
a11 a33 a213
11 23
12 13
Now a bit of routine
omputation shows that
det([K (x2 ; x3 )) = a11 det(A):
Theorem 4.1 F is positive denite if and only
(i) a11 > 0;
(ii)
b=
and
(iii)
d=
det(A) > 0:
14
> 0;
(20)
(21)
Proof: F (1; 0; 0)! = a11 ,!so if F is denite, then a11 > 0. F (x1 ; x2 ; 0) =
x1 , so if F is denite then b > 0 by the theory of
(x1 ; x2 ) aa11 aa12
x2
21
22
binary forms.
So assume that (i) and (ii) hold. Then by Eq. 19, if K is positive denite,
learly F is positive denite. And if K is not positive denite, we
an nd
x2 ; x3 not bot 0, but both divisible by a11 , for whi
h K (x2 ; x3 ) 0. And sin
e
x2 x3 0 (mod a11 ), we
an solve for x1 su
h that a11 x1 + a12 x2 +a13 x3 = 0.
Then F (x1 ; x2 ; x3 ) 0 with at least one of s1 ; x2 ; x3 not zero. So if (i) and
(ii) hold, then F is positive denite if and only K is positive denite. And
this holds if and only if b > 0 and a11 det(A) > 0, whi
h is if and only if
d = det(A) > 0.
det
B
11
12
g v
21
22
31
0
11
2 1 v
g
C
A
=
31
=
12 21 v
11 22 v
31 v + ug = 1:
+ u( 11 22
21
(22)
21 )
(23)
11
21
2
31
Then0if we
say [G = B = (bij ) = C T [F C , we have b11 = G(1; 0; 0) =
1
1
B
F (C 0 C
A) = F (
11 ;
21 ;
31 ) = a11 . To G apply the transformation (dkl ) =
0
1
0
1 r s
B
t u C
uv = 1. Then for arbitrary r; s we have det(dkl ) =
A where tw
0
0 v w
1. Put D = (dkl ), and put H (y) = G(Dy), so A = [H = DT [GD =
DT BD. The
oe
ient of y12 in H (y) is the (1; 1) entry of DT BD, whi
h is
(1st row of DT ) B (1st
ol of D) = G(1; 0; 0) = a11 , i.e., (A)11 = a11 . IF
A = (AIJ ) for general i; j , 1 i; j 3, then
1
C
A
(24)
0
r
t
v
1
C
A
(25)
must equal L
y2 .
y3
16
By Eq. 21,
a11 a22
a . So we may
hoose
2
12
a212
t u
v w
so
p2 a d:
3
q
11
11
2
11
3
2
1
3
Theorem 4.4 Every positive denite ternary form f (x) = xT Ax with A =
AT and det(A) = 1 is equivalent to the form f (x) = x21 + x22 + x23 . Consequently, every number representable by su
h a form
an be written as a sum
of three squares.
Proof: By Theorem 4.3 the given form is equivalent to a form xT (aij )x
in whi
h a11 43 , 2ja12 j a11 43 , 2ja13 j a11 34 . Hen
e a11 = 1,
a12 = a13 = 0. The
lass therefore
ontains a form
Lemma 4.5 If n = x21 + x22 + x23 , n > 0, then n is not of the form 4a (8b + 7),
a 0, b 0.
Proof: Clearly n = 8b + 7 7 (mod 8), but ea
h perfe
t square is
ongruent to one of 0, 1 or 4 modulo 8. So the sum of three squares is
ongruent
to one of 0, 1, 2, 3, 4, 5, 6 modulo 8. So 8b + 7 is not a sum of three squares.
Suppose 4a+1 (8b + 7) = x21 + x22 + x23 0 (mod
4). Clearly
ea
h of x1 , x2
2
2
2
x
x
x
a
and x3 must be even. Hen
e 4 (8b + 7) = 2 + 2 + 2 . The result
follows.
1
(i)
(ii)
(iii)
(iv )
(iv) 1 = det
B
a11 a12 1
a12 a22 0
1 0 n
1
C
A
= a112 a022 + n aa11 aa12 + = a22 + nb,
12
22
i.e., a22 = bn 1.
Sin
e the
ase n = 1 is trivial, we assume n > 1. Then b > 0, so
a22 = bn 1 > 0. Here b > 0 implies a11 a22 > a212 0, hen
e a11 > 0. So (ii)
follows from (iii) and (iv). So we need: b = a11 a22 a212 > 0 and a22 = bn 1.
This is equivalent to saying: b > 0 and b is a quadrati
residue modulo
bn 1.
Case 1. n 2 or 6 (mod 8). Sin
e g
d(4n; n 1), by Diri
hlet's Theorem
there is a prime p n 1 (mod 4n), say p = 4nv + n 1 = (4v + 1)n 1.
If we set 4v + 1 = b, then b > 0, and sin
e p 1 (mod 4),
!
b
bn 1
p
1
=
=
=
= +1 sin
e b 1 (mod 4):
p
b
b
b
19
20