Gauss Duplication Theorem using Ternary Forms

Let us begin with two forms, x^2+14y^2 and 2x^2+7y^2 . Both have discriminant -56 . But there is an obvious difference between them. The first represents the integer 1 : take x=1,y=0 . No choice of integer coordinates will give us 1 in the second form. In particular, the two forms cannot be equivalent. Now suppose we ask a slightly less demanding question. Can the second form represent a number congruent to one modulo the discriminant? Indeed it can: 57=2\cdot5^2+7\cdot1^2 , and 57\equiv1\pmod{56} . If we look only at this residue, we cannot tell the second form apart from the first. Is there nevertheless something we can deduce about the second form? Gauss discovered that there is. Although its class is not the principal class, it is the square of another class. The same phenomenon occurs for every form in the principal genus. We would like to understand why.

Recall what we mean by a class of quadratic forms. We start with an expression F(x,y)=ax^2+bxy+cy^2 , where a>0 , \gcd(a,b,c)=1 , and D=b^2-4ac<0 . We regard two expressions as properly equivalent if one can be obtained from the other by an integer change of variables of determinant one. Such a change merely rearranges the integer pairs at which we evaluate the form. The classes of a fixed discriminant form a finite group under Gauss composition, denoted by \mathrm{Cl}(D) . A square class is simply one obtained by composing a class with itself.

There is another way to study these classes, without composing them at all. We can look at the residues of the integers they represent. The genus characters record certain quadratic-residue signs; the forms whose signs agree with those of the principal form constitute the principal genus. The question is why these two very different operations, taking residues and composing forms, should lead to the same collection of classes.

There are two proofs worth understanding. In the first, we take a single form in the principal genus and try to find its composition square root. The surprising step is to introduce a third variable. In the second proof, we forget about constructing a root and instead count the classes that are their own inverses. Comparing this count with the number of possible genus signs gives the result. We begin with the first approach, keeping our example of discriminant -56 beside us so that we can see what each calculation accomplishes.

Ternary Forms

Suppose F(x,y)=ax^2+bxy+cy^2 belongs to the principal genus. We use the characterization of the principal genus by the primitive residue classes it represents. In particular, we can find integers u,v for which F(u,v)\equiv1\pmod{|D|} . In our example these were five and one. What does the congruence actually give us? It says that the difference between the represented integer and one is a multiple of the discriminant. Thus, for some integer k , we have

\displaystyle F(u,v)=au^2+buv+cv^2=1+kD

The integer k can be negative. Of course, this does not give a representation of one. But the equality contains something useful: it relates the value of the form to its discriminant. Can we put this relation to work? The idea is to build a new quadratic form that contains the old one and whose determinant depends on precisely this equality. A third variable gives us the freedom to do that.

Keep the original terms in the two variables and introduce a third variable z . Define

\displaystyle T(x,y,z)=ax^2+bxy+cy^2-vxz+uyz-kz^2

At first sight the new terms may seem rather arbitrary. Why these particular coefficients? Notice first that setting z=0 returns the original form, so we have not lost it. Next, the coefficients of the new mixed terms are the very integers we used to represent a number congruent to one. The reason for their order and signs becomes apparent when we calculate the determinant. Recall that in the symmetric matrix of a quadratic form a mixed coefficient is divided by two, since it occurs twice in the matrix product. The matrix here is

\displaystyle A=\begin{pmatrix}a&b/2&-v/2\\b/2&c&u/2\\-v/2&u/2&-k\end{pmatrix}

Expand the determinant using the last row or column. The term involving k is -k(ac-b^2/4)=kD/4 . The other terms combine to give -(au^2+buv+cv^2)/4 . This is exactly the represented value with which we began. Substituting our original equality, we obtain

\displaystyle \det A=\frac{kD-F(u,v)}4=\frac{kD-(1+kD)}4=-\frac14

This is why we chose the extra coefficients as we did. The determinant is now a fixed small number, no matter how complicated the original discriminant or coefficients were. Moreover, integer changes of variables of determinant plus or minus one preserve it. The new form is positive on the plane z=0 , but its negative determinant tells us that it also takes negative values elsewhere. Unlike the original positive definite form, it has directions in which positive and negative terms can cancel.

Why is this useful? If we can find integer coordinates in which the new expression is a square minus a product, then making one factor of the product vanish will leave a square. If we can do this while keeping z=0 , that square will be represented by our original binary form. Let us see how this works in the example.

Reduction of Ternary Forms

Return to F(x,y)=2x^2+7y^2 . We know that F(5,1)=57=1-(-56) . Thus we take u=5 , v=1 , and k=-1 . Substituting these numbers into our construction gives

\displaystyle T(x,y,z)=2x^2+7y^2-xz+5yz+z^2

As expected, its determinant is -1/4 . In this small example we can exhibit the useful change of coordinates explicitly. The following identity can be checked just by expanding the right-hand side:

\displaystyle T(x,y,z)=(3x-z)^2-(-7x+7y+5z)(-x-y)

There is an important detail about this identity. The three linear expressions 3x-z , -7x+7y+5z , and -x-y have a coefficient matrix of determinant plus or minus one, depending on their order. Consequently the transformation is reversible over the integers: it does not restrict us to a smaller lattice of possible triples. We now have a square minus a product. Let us return to the original binary form by setting z=0 :

\displaystyle 2x^2+7y^2=(3x)^2-(-7x+7y)(-x-y)

We can now see how to make the product disappear. Take x=y , which makes its first factor zero. In particular F(1,1)=9=3^2 . Admittedly, we could have noticed this square without any ternary form! But the point of the calculation is to understand how to find a square even when it is not obvious from the coefficients. We began with a congruence involving 57 and ended with an actual square represented by the form. What makes this procedure work in general is a theorem about ternary quadratic forms.

Here we need a result about reduction in three variables. An integral ternary quadratic form of determinant -1/4 , positive definite on some two-dimensional real plane, is integrally equivalent to W^2-UV . The variables U,V,W are integer linear expressions in the original variables, with a coefficient matrix of determinant plus or minus one.

This is the ternary reduction theorem we use. The determinant calculation by itself does not prove it; the theorem requires a separate reduction argument using integer substitutions. We take it as known here. Our example illustrates its precise role: it supplies coordinates in which a represented square becomes easy to find.

Representing a Square

We can now repeat the calculation for an arbitrary form in the principal genus. Apply the ternary reduction theorem to the expression we constructed earlier. It gives integer linear forms U,V,W satisfying

\displaystyle T(x,y,z)=W(x,y,z)^2-U(x,y,z)V(x,y,z)

The matrix of their coefficients has determinant plus or minus one. But we are not interested in all the values of the ternary form; we want values of the original binary form. So put z=0 . Each of the three linear expressions now involves just two variables. Write them as U=p_1x+q_1y , W=p_2x+q_2y , and V=p_3x+q_3y . We obtain

\displaystyle F(x,y)=(p_2x+q_2y)^2-(p_1x+q_1y)(p_3x+q_3y)

How do we make the product vanish? We need only solve one linear equation in two integers. Taking x=-q_1 and y=p_1 makes the first factor zero. The remaining expression gives

\displaystyle F(-q_1,p_1)=(p_1q_2-p_2q_1)^2

We have obtained a square represented by the form, but before using it in composition we need to be a little more careful. We want the square root to be relatively prime to the discriminant. The preceding choice of coordinates need not have this property. Fortunately there are many ways of writing the same ternary form as a square minus a product, and we can use this freedom to avoid the primes dividing the discriminant.

The square root we found is a two-by-two determinant. There are three such determinants associated with the linear expressions on the plane z=0 . Denote them by

\displaystyle A_0=p_1q_2-p_2q_1,\qquad B_0=p_1q_3-p_3q_1,\qquad C_0=p_2q_3-p_3q_2

Expanding the coefficients of F=W^2-UV gives D=B_0^2-4A_0C_0 . Thus the discriminant has appeared again, now in a relation among these three determinants. They also have a useful property: no prime divides all three. To see this, recall that they are the minors of the first two columns of an integer matrix of determinant plus or minus one. If all three vanished modulo a prime, those columns would be dependent modulo that prime, and the determinant of the full matrix would vanish there too. This is impossible. We shall use this observation to choose a square root avoiding the prime divisors of the discriminant.

Coprimality

There is a convenient way to produce more coordinate systems without changing W^2-UV . Regard U,2W,V as the coefficients of an auxiliary binary quadratic expression. An integer change of its two variables with determinant one preserves its discriminant, and hence preserves W^2-UV . If the first column of this change is a coprime pair r,s , the new first coefficient is r^2U+2rsW+s^2V . Completing the pair to a determinant-one matrix determines the other coefficients. Calculating the new two-by-two minor that gives our square root, we obtain, up to sign,

\displaystyle A_0'=r^2A_0+rsB_0+s^2C_0

Consider one prime p dividing the discriminant. We want the new square root not to vanish modulo this prime. Try the three simplest pairs, (1,0),(0,1),(1,1) . They give the residues A_0,C_0,A_0+B_0+C_0 . If all three were zero, then all three minors would be divisible by the prime, which we just ruled out.

Thus for each prime dividing the discriminant there is a choice of the pair that works. We do not need the same choice at each prime. The Chinese remainder theorem combines these local choices into one pair of residues. We can lift it to coprime integers: choose a nonzero first coordinate in its residue class, and choose the second coordinate in its prescribed residue class while avoiding any additional prime divisors of the first. This is another application of the Chinese remainder theorem. The resulting pair defines a reversible substitution over the integers, and the square root it produces is coprime to the discriminant.

There is one last adjustment. The integer pair representing the square might have a common divisor d . Divide both coordinates by this divisor. Since the form is quadratic, its value is divided by d^2 ; consequently the square root is divided by d and remains an integer coprime to the discriminant. We have now obtained exactly the kind of representation we need:

\displaystyle F(x_0,y_0)=M^2,\qquad\gcd(x_0,y_0)=1,\qquad\gcd(M,D)=1

The advantage of a primitive representation is that we can make the represented integer the first coefficient of an equivalent form. By Bézout’s identity, complete (x_0,y_0) to the first column of an integer matrix of determinant one. Under the corresponding substitution, the coefficient of the square of the first variable becomes F(x_0,y_0)=M^2 . Thus our form is properly equivalent to

\displaystyle F_1(x,y)=M^2x^2+Bxy+Cy^2,\qquad D=B^2-4M^2C

We no longer need the third variable. Its purpose was to help us find a primitive square represented by the binary form. Now that the square is sitting in the leading coefficient, the composition root is almost visible.

Finding the square root by composition

Suppose we have reached F_1=[M^2,B,C] . If composition multiplies leading coefficients, a natural candidate for its square root has leading coefficient M . Keep the middle coefficient unchanged. To preserve the discriminant, the last coefficient must then be MC . This gives G=[M,B,MC] , whose discriminant is B^2-4M(MC)=D . It is primitive because a prime dividing both the first and middle coefficients would divide the discriminant, contrary to \gcd(M,D)=1 . The special composition rule now says

\displaystyle [M,B,MC]\circ[M,B,MC]=[M^2,B,C]

We can see why this rule is plausible by looking at represented integers. Let G(x,y)=Mx^2+Bxy+MCy^2 . Set A=xu-Cyv and E=M(xv+yu)+Byv . Direct multiplication gives the identity

\displaystyle G(x,y)G(u,v)=M^2A^2+BAE+CE^2=F_1(A,E)

In other words, the product of two integers represented by the candidate root is represented by the form we wanted. Gauss composition makes this multiplication precise at the level of classes; the coprimality condition ensures that the primitive composite is the displayed form. Hence the original class really is a square. Starting with nothing more than the principal-genus condition, we have found a way to construct a composition root, using the ternary reduction theorem along the way.

Let us finish the example to see the root itself. We found that 2x^2+7y^2 represents nine at the primitive pair (1,1) . To put nine in the leading coefficient, use the substitution x=X , y=X+Y . We get

\displaystyle 2X^2+7(X+Y)^2=9X^2+14XY+7Y^2

Our rule now gives the root of [9,14,7] immediately: it is [3,14,21] . This form is not reduced, but replacing x by x-2y gives 3x^2+2xy+5y^2 . Thus the calculation, expressed in classes, is

\displaystyle [3,2,5]^2=[3,14,21]^2=[9,14,7]=[2,0,7]

The brackets here refer to classes, so the forms need not have identical coefficients. We have found that the class of 2x^2+7y^2 , though not the identity, is the square of the class of 3x^2+2xy+5y^2 . This is the claim with which we began, and now we can see exactly where its square root comes from.

Gauss’s duplication theorem

Let \mathcal G_0 denote the principal genus. The argument just completed shows that every class in it is a square. Notice the sequence of ideas: the residue condition lets us construct a ternary form of fixed determinant; ternary reduction lets us find a represented square; and binary composition lets us recover a class whose square is the original one.

The converse is much easier. A genus character respects composition and takes values plus or minus one. On a square its value is therefore always one. Every square belongs to the principal genus, and so

\displaystyle \boxed{\mathcal G_0=\{[G]^2:[G]\in\mathrm{Cl}(D)\}}

This is Gauss’s duplication theorem. It also explains the other genera. Suppose we know one class in a genus. Multiplying it by any square does not change its genus signs. Conversely, the quotient of two classes having the same signs has all signs positive and is therefore a square. So each genus consists of exactly one coset of the subgroup of squares.

We can prove this same result without ternary reduction. Instead of trying to find a root of an individual class, we ask how many distinct squares exist in the whole class group. To answer this question we first count classes that are their own inverses.

Counting ambiguous classes

Recall that reversing the middle coefficient gives the inverse class: the inverse of [a,b,c] is represented by [a,-b,c] . We call a class ambiguous if this reversal leaves its class unchanged. In group language, this means its square is the identity.

How can we recognize such classes without composing anything? Use reduced representatives, for which |b|\le a\le c , with the usual boundary convention. If both inequalities are strict and the middle coefficient is nonzero, reversing its sign gives a different reduced form. Since reduced representatives are unique, these are different classes. The only possibilities left for ambiguity are

\displaystyle b=0,\qquad |b|=a,\qquad a=c

Each of these conditions really does give an ambiguous class. If the middle coefficient vanishes there is nothing to prove. If its absolute value equals the leading coefficient, a translation reverses its sign; if the first and last coefficients are equal, interchanging the variables with one sign changed does the same. Both are proper substitutions.

We can now count by substituting the three conditions into b^2-4ac=D . The first gives ac=|D|/4 , the second gives a(4c-a)=|D| , and the third gives (2a-b)(2a+b)=|D| (using the nonnegative boundary middle coefficient). Each is a factorization of an ordinary integer. We retain only the primitive forms satisfying the reduction inequalities, with the necessary parity conditions. This is why the prime factors of the discriminant control the count.

For our example of discriminant D=-56 , the reduction bound a\le\sqrt{56/3}<5 leaves only four possible leading coefficients. The equation 4ac=b^2+56 requires an even middle coefficient. With a=1,2 , the only possibilities are [1,0,14] and [2,0,7] . With a=3 we find [3,2,5] and [3,-2,5] . With four there are none. So the complete list is

\displaystyle [1,0,14],\qquad[2,0,7],\qquad[3,2,5],\qquad[3,-2,5]

The first two are ambiguous because their middle coefficients vanish. The last two are distinct inverses. There are thus two ambiguous classes among four classes. This already tells us that the group is cyclic of order four: the other two elements cannot have order one or two. Earlier we explicitly calculated that [3,2,5]^2=[2,0,7] .

Now forget composition for a moment and look at represented integers modulo seven. The first two forms represent only squares among the nonzero residues, since 2x^2+7y^2\equiv2x^2 and two is a square modulo seven. The last two represent nonsquares, since 3x^2\pm2xy+5y^2\equiv3(x\mp2y)^2 and three is a nonsquare. So the residue test divides the four classes into two pairs, and the pair in the principal genus is exactly the pair of square classes. We want to understand why these counts agree in general.

For a negative fundamental discriminant D , let t be the number of its distinct prime divisors. Counting the primitive reduced forms satisfying the three ambiguity conditions gives the formula

\displaystyle \#\{[F]\in\mathrm{Cl}(D):[F]^2=1\}=2^{t-1}

Where does the power of two come from? In the factorization equations, each prime can be placed on one side or the other. Exchanging complementary factors describes the same class, so one binary choice is redundant. At two we must take some extra care: the parity of the factors determines which of the three ambiguity conditions can occur, and primitivity must be checked. The general count uses a separate case split for this reason. We use the resulting formula here, rather than repeat that case analysis. It applies in this form to fundamental discriminants; for nonfundamental discriminants the count has to be modified.

How does this help us count squares? Imagine writing down the square of every class. The same square may appear several times. Two classes [F] and [G] produce the same square precisely when [F][G]^{-1} has square one, that is, when their quotient is ambiguous. Thus, once we know one root of a square, all its roots are obtained by multiplying that root by the ambiguous classes. Every square appears the same number of times in our list, namely 2^{t-1} . Dividing the class number h(D) by this number gives the number of distinct squares:

\displaystyle \frac{h(D)}{2^{t-1}}

The subgroup of squares therefore has index 2^{t-1} . Equivalently, we can partition the whole class group into this many cosets of the squares. We have arrived at this number entirely through composition and the symmetries of reduced forms.

Now count from the congruence side. For a fundamental discriminant with t prime divisors, the genus-character count gives t signs with one relation between them. All the admissible sign patterns occur, so there are 2^{t-1} genera.

We already know that multiplying by a square leaves every genus sign unchanged. Thus a coset of the squares cannot be split between two genera. Could a genus contain several cosets? No: there are exactly as many cosets as genera, and every genus is nonempty. If one genus contained two cosets, another would have none. Each genus must therefore be precisely one coset. In particular, the principal genus is the subgroup of squares. This proves the duplication theorem a second time, using the two counting results but no ternary reduction.

In our example all these numbers are visible in the list of four reduced forms. We have h(-56)=4 , two prime divisors, and two ambiguous classes. Therefore there are 4/2=2 distinct squares. There are also 2^{2-1}=2 genera. The principal genus is the pair [1,0,14] and [2,0,7] ; the other consists of [3,2,5] and [3,-2,5] . The counting argument explains the partition, while the earlier ternary calculation tells us how to construct a square root of the nonprincipal class in the first pair.

It is worth comparing what the two proofs tell us. The first begins with one form and uses its residue information to construct a composition root. The second studies all the classes at once and shows why the number of genera agrees with the number of cosets of squares. Together they explain precisely what is lost when we pass from a form class to its genus signs.

If every class squares to the identity, each genus contains just one class, and congruence tests distinguish the classes completely. Otherwise several classes have exactly the same signs. Our two forms of discriminant minus fifty-six illustrate the difficulty: they belong to the same genus but are not equivalent. How can we distinguish the primes represented by one from those represented by the other? This is a question that quadratic residue tests alone cannot settle. It leads naturally to finer tests, such as studying the factorization of suitable class polynomials modulo primes. Genus theory tells us where the elementary congruence method succeeds, and also identifies exactly the ambiguity that a finer theory must resolve.

Posted in $.

Leave a Reply