GENERAL ARTICLE Composition of Binary Quadratic Forms∗ Understanding the Approaches of Gauss, Dirichlet and Bhargava

François Séguin

In 2004, Bhargava introduced a new way to understand the composition law of integral binary quadratic forms through what he calls the ‘cubes of ’. The goal of this article is to introduce the reader to Bhargava’s cubes and this new composition law, as well as to relate it to the composition law as it is known classically. We will present a historical expo- sition of the subject, from Gauss to Bhargava, and see how the different formulations of the composition laws are equiv- alent. François Séguin received his PhD from Queen’s University in 2018. His research interests are in analytic number 1. Introduction theory, specifically concerning questions of Binary quadratic forms were already studied in the seventeenth algebraic nature. and eighteenth centuries. Originally, the main questions formu- lated in terms of binary quadratic forms were about the repre- sentation of numbers. Given a binary f (x, y) = ax2 + bxy + cy2, we can ask which integers n can be written as n = f (x0, y0)forsomex0, y0, in which case f is said to represent n. Given an n, we can also ask which binary quadratic forms could represent n. Finally, given such a representation, how many other representations can we find. It is interesting to note that these very questions will eventually come to play a role in subjects such as Diophantine equations, quadratic reciprocity and even class field theory. Mathematicians like Fermat and Eu- ler tried to classify all the possible binary quadratic forms, but Keywords the biggest results came from in 1801 in his Cubes of integers, binary quadratic forms, composition Disquisitiones Arithmeticae. Gauss spells out the underlying laws. structure that those binary quadratic forms have – a structure that

∗DOI: https://doi.org/10.1007/s12045-019-0822-4

RESONANCE | June 2019 633 GENERAL ARTICLE

In this article, we explore later came to be known as a . What is now known as Gauss how the composition law composition law for binary quadratic forms has been modern- came to be understood ized using through the works of Dirichlet by Gauss, Dirichlet and finally Bhargava, as well amongst others. This construction plays a critical role in number as, see how these theory. In particular, it is one of the primary tools to understand different formulations class groups of quadratic number fields. are really equivalent. Recently, formulated a brand new way to ap- proach the composition law for binary quadratic forms. In his thesis [1] and then a series of articles [2–5], Bhargava uses a ge- ometric approach to describe the composition law, giving insight into a new possible way to understand it. Bhargava also gener- alizes the composition law to other objects, establishing a corre- spondence with structures in higher degree number fields. In this article, we will explore how the composition law came to be understood by Gauss, Dirichlet and finally Bhargava, as well as, see how these different formulations are really equivalent. The proofs for most of the propositions we will be presenting are easy exercises, accessible to undergraduate students. We encourage the reader to take them as exercises when possible.

2. Preliminaries

Recently, Manjul We define a (integral) binary quadratic form as a homogenous Bhargava formulated a degree 2 polynomial in two variables, i.e., of the form: brand new way to approach the F(x, y) = ax2 + bxy + cy2, composition law for binary quadratic forms. where a, b, c ∈ Z. Since any binary quadratic form is completely Bhargava uses a determined by its three coefficients a, b and c, we sometimes de- geometric approach to note the above polynomial by (a, b, c). describe the composition law, giving insight into a The of a binary quadratic form (a, b, c) is defined as: new possible way to understand it. Disc(a, b, c) = b2 − 4ac.

Also, we say that a binary quadratic form is primitive if the three coefficients are coprime, i.e., gcd(a, b, c) = 1, and positive definite if the binary quadratic form takes only positive values, i.e., ax2 + bxy + cy2 > 0forallx, y  0.

634 RESONANCE | June 2019 GENERAL ARTICLE

Proposition 2.1 The binary quadratic form (a, b, c) is positive definite if and only if Disc(a, b, c) < 0 and a > 0.

Proof. If f (x, y) = ax2 + bxy + cy2 is of discriminant D,then

4af(x, y) = (2ax + by)2 − Dy2.



From now on, we will use the term binary quadratic forms to mean integral primitive positive definite binary quadratic forms.

Recall that the group SL2(Z) is defined as: ⎧⎛ ⎞ ⎫ ⎪⎜ ⎟ ⎪ ⎨⎜ab⎟ ⎬ SL2(Z)  ⎪⎝ ⎠ : a, b, c, d ∈ Z, ad − bc = 1⎪ . ⎩ cd ⎭

We define the action of SL2(Z) on a binary quadratic form as: ⎛ ⎞ ⎜αβ⎟ 2 + + 2 ∗ ⎝⎜ ⎠⎟ = α + β 2 + α + β (ax bxy cy ) γδ a( x y) b( x y) (γx + δy) + c(γx + δy)2.

Note that this is simply a change of variable. An alternative way of expressing this action is, for Q(x, y) a binary quadratic form and M ∈ SL2(Z),

Q(x, y) ∗ M = Q(x, y) , where ⎛ ⎞ ⎛ ⎞  ⎜x ⎟ ⎜x⎟ ⎝⎜ ⎠⎟ = M ⎝⎜ ⎠⎟ . y y ⎛ ⎞ ⎜0 −1⎟ Example 2.1 The result of the action of the ⎝⎜ ⎠⎟ on 10 the binary quadratic form (a, b, c)is ⎛ ⎞ ⎜0 −1⎟ (a, b, c) ∗ ⎝⎜ ⎠⎟ = ay2 − bxy + cx2 10 = (c, −b, a).

RESONANCE | June 2019 635 GENERAL ARTICLE

Proposition 2.2 For any matrix M,

Disc ((a, b, c) ∗ M) = det(M)2 Disc(a, b, c).

Proof. Note that for f (x, y) = ax2 + bxy + cy2 of discriminant D, ⎛ ⎞ ⎛ ⎞ ⎜ ab/2⎟ ⎜x⎟ f (x, y) = xy⎝⎜ ⎠⎟ ⎝⎜ ⎠⎟ , b/2 c y

and ab/2 Disc( f (x, y)) = −4 . b/2 c Therefore, ⎛ ⎞ ⎛ ⎞ ⎜ ab/2⎟ ⎜x⎟ f (x, y) ∗ M = xyMT ⎝⎜ ⎠⎟ M ⎝⎜ ⎠⎟ . b/2 c y

and computing the determinant we are done. 

From this Proposition, we can conclude that the action of SL2(Z) preserves the discriminant. We now fix a certain integer D and consider all the possible binary quadratic forms of discriminant D. On this set, we define the following . If Q1 and Q2 are binary quadratic forms of discriminant D,then

Q1 ∼ Q2 if and only if Q1 ∗ M = Q2

for some M ∈ SL2(Z). We call the set of equivalence classes under this relation GD, i.e.,

GD = {(a, b, c):a, b, c ∈ Z, Disc(a, b, c) = D} / ∼ .

We denote [a, b, c] the equivalence class containing (a, b, c)in GD.

Proposition 2.3 Any binary quadratic form that is equivalent to a primitive binary quadratic form is primitive.

636 RESONANCE | June 2019 GENERAL ARTICLE

Proof. Consider the set of integers that can be written as Q(x, y) for a binary quadratic form Q and x, y ∈ Z. Q is non-primitive if and only if those integers are all multiple of some N (consider (x, y) = (1, 0), (0, 1) and (1, 1) for the reverse implication). However, since equivalence of binary quadratic forms is given by a simple invertible change of variables, any equivalent binary quadratic forms represent the same integers. 

We say that a binary quadratic form (a, b, c)isreduced if |b|≤a ≤ c. Proposition 2.4 There are finitely many reduced binary quadratic forms of a fixed discriminant D. Furthermore, every binary quadratic form is equivalent to a unique reduced binary quadratic form, with the exception of (a, b, a) ∼ (a, −b, a) and (a, a, c) ∼ (a, −a, c) where the reduced form is not unique.

Finally, we conclude that |GD| is finite for any discriminant D.

Proof. Recall that two generators for SL2(Z)are ⎛ ⎞ ⎛ ⎞ ⎜11⎟ ⎜0 −1⎟ T = ⎝⎜ ⎠⎟ and S = ⎝⎜ ⎠⎟ . (2.1) 01 10 Using T n, we can show that  (a, b, c) ∼ (a, b + 2an, c ) (2.2) Note that c is uniquely determined from the first two entries by the fact that the discriminant is fixed. Here, c = an2 + bn + c. Using S ,wehave (a, b, c) ∼ (c, −b, a). (2.3) Using (2.2) we can find a representative with |b|≤|a|, and using (2.3) we can insure that |a|≤|c|. Uniqueness follows from the fact that T and S are generators for SL2(Z), and any transformation can be expressed in terms of these two. The last statement is an obvious consequence of the first two. 

RESONANCE | June 2019 637 GENERAL ARTICLE

3. Gauss’s Composition Law

Numbers of the form x2 We recall the following identity attributed to 7th century Indian + Dy2 are closed under mathematician Brahmagupta (see [6]). multiplication. Gauss asked whether it was Proposition 3.1 For any integers x1, y1, x2, y2, D, possible to generalize 2 + 2 2 + 2 = − 2 + + 2 . this result to numbers of x1 Dy1 x2 Dy2 (x1 x2 Dy1y2) D (x1y2 x2y1) a more general form. He √ comes up with the Proof. Note that N(x + y −D) = x2 + Dy2. Therefore, answer: Yes! x2 + Dy2 x2 + Dy2 1 1 √2 2 √ = N x + y −D N x + y −D 1 1 2 2 √ = N x1 x2 − Dy1y2 + (x1y2 + x2y1) −D

by the multiplicativity of the norm, and so

2 2 = (x1 x2 − Dy1y2) + D (x1y2 + x2y1) . 

We can summarize this previous identity by saying that the num- bers of the form x2 + Dy2 are closed under multiplication. In 1801, Gauss asked in his Disquisitiones Arithmeticae whether it was possible to generalize this to numbers of a more general form, namely ax2 + bxy + cy2. He comes up with the answer: Yes! Theorem 3.2 (Gauss) 2+ + 2 2+ + Let a1 x1 b1 x1y1 c1y1 and a2 x2 b2 x2y2 2 c2y2 be binary quadratic forms of discriminant D. Then, there exists an (explicit) transformation (change of variables): ⎛ ⎞ ⎜x x ⎟ ⎛ ⎞ ⎛ ⎞ ⎜ 1 2⎟ ⎜X⎟ ⎜p p p p ⎟ ⎜x y ⎟ ⎝⎜ ⎠⎟ = ⎝⎜ 0 1 2 3⎠⎟ ⎜ 1 2⎟ , ⎜ ⎟ Y q0 q1 q2 q3 ⎝⎜y1 x2⎠⎟ y1 y2 and integers A, B and C, such that 2 + + 2 2 + + 2 a1 x1 b1 x1y1 c1y1 a2 x2 b2 x2y2 c2y2 = AX2 + BXY + CY2.

Moreover, B2 − 4AC = D.

638 RESONANCE | June 2019 GENERAL ARTICLE

From this, it is easy to conclude the following. It is worth noting that the modern notion of a Proposition 3.3 The set GD forms a finite . group did not exist when Gauss wrote his Proof. We need to show that the composition law defined this Disquisitiones.However, it is clear that, without way is well-defined on G . Indeed, the two changes of variables ⎛ ⎞ ⎛ ⎞ ⎛ ⎞ D ⎛ ⎞ using our modern terms, ⎜  ⎟ ⎜ ⎟ ⎜  ⎟ ⎜ ⎟ ⎜x1⎟ ⎜x1⎟ ⎜x2⎟ ⎜x2⎟ this is really what he was ⎝  ⎠ = M1 ⎝ ⎠ and ⎝  ⎠ = M2 ⎝ ⎠ correspond to the change of y1 y1 y2 y2 after. variable ⎛ ⎞ ⎛ ⎞ ⎜x x ⎟ ⎜x x ⎟ ⎜ 1 2⎟ ⎜ 1 2⎟ ⎜x y ⎟ ⎜x y ⎟ ⎜ 1 2⎟ = (M ⊗ M ) ⎜ 1 2⎟ ⎜   ⎟ 1 2 ⎜ ⎟ ⎜y1 x2⎟ ⎜y1 x2⎟ ⎝   ⎠ ⎝ ⎠ y1y2 y1 y2 so the matrix ⎛ ⎞ ⎛ ⎞ ⎜     ⎟ ⎜ ⎟ ⎜p0 p1 p2 p3⎟ ⎜p0 p1 p2 p3⎟ ⎝     ⎠ = ⎝ ⎠ (M1 ⊗ M2) q0 q1 q2 q3 q0 q1 q2 q3 will yield the correct change of variable for the multiplication of  ,   ,  Q1(x1 y1)andQ2(x2 y2). 

It is worth noting that the modern notion of a group did not exist when Gauss wrote his Disquisitiones. However, it is clear that, without using our modern terms, this is really what he was after.

4. Dirichlet’s United Forms

Gustav Lejeune Dirichlet was a student of Gauss, and apparently Dirichlet established a spent a considerable amount of time studying Gauss’s Disquisi- way to realize Gauss’s tiones Arithmeticae. During his private study of Gauss’s work, composition law in a much simpler way. This Dirichlet established a way to realize Gauss’s composition law in approach was so a much simpler way. This approach was so successful that it gave successful that it gave the basis for the modern understanding of this composition law. the basis for the modern understanding of this We say that two binary quadratic forms (a1, b1, c1)and composition law. (a2, b2, c2) of discriminant D are united if b + b gcd a , a , 1 2 = 1. 1 2 2

RESONANCE | June 2019 639 GENERAL ARTICLE

+ = 2 − Remark 1 The quantity b1 b2 is always even. Indeed, D b1 = 2 − 2 ≡ 2 ≡ 4a1c1 b2 4a2c2 and so b1 b2 (mod 4) and b1 b2 (mod 2).

Proposition 4.1 If (a1, b1, c1) and (a2, b2, c2) are united forms, then there exist integers B and C such that

(a1, b1, c1) ∼ (a1, B, a2C)

and

(a2, b2, c2) ∼ (a2, B, a1C).

See [7, Prop.4.5] for the proof.

Corollary 4.2 If (a1, b1, c1) and (a2, b2, c2) are united forms, then in the group GD,

[a1, b1, c1] · [a2, b2, c2] = [a1a2, B, C].

Proof. Consider the matrix ⎛ ⎞ ⎜10 0−C⎟ ⎝⎜ ⎠⎟ 0 a1 a2 B

in Theorem 3.2, where B and C are as in Proposition 4.1. 

Corollary 4.2 allows us to compute some group operations in a more efficient way than what is given by Theorem 3.2. Also, we now have a way to explicitly describe the identity of GD,aswell as inverses.

Proposition 4.3 In GD, ⎧ ⎪ ⎪ 1, 0, D if D ≡ 0(mod4) ⎨⎪ 4 1) 1G = ⎪ D ⎪ ⎩⎪ , , 1−D ≡ 1 1 4 if D 1(mod4)

− 2) [a, b, c] 1 = [a, −b, c] = [c, b, a].

640 RESONANCE | June 2019 GENERAL ARTICLE

Proof. 1) We consider the case D ≡ 0 (mod 4). Consider (a, b, c) , , · , , D of discriminant D, we want to compute [a b c] 1 0 4 .Note that b is even, say b = 2n. Using notation from the solution of n , , D = , ,  = Proposition 2.4, we can use T to have 1 0 4 [1 2n c ] [1, b, c]. The last coefficient c is entirely determined by the  = b2−D first two entries, and here c 4 . Also, by the same rea- = b2−D  = soning c 4a and so c ac.Sowehave D [a, b, c] · 1, 0, = [a, b, c] · [1, b, ac] = [a, b, c] 4 by Corollary 4.2. The case D ≡ 1 (mod 4) is similar.

2) We want to compute [a, b, c][c, b, a]. By Corollary 4.2 with B = b and C = 1, we get

[a, b, c] · [c, b, a] = [ac, b, 1] = [1, −b, ac] ,

and applying T n for a suitable n will retrieve the identity from the previous part. 

Dirichlet went on to use the notion of ideals in quadratic num- ber fields to obtain the ‘modern’ formulation of the composition law. To understand this formulation, one must first understand the concepts of ideals and ideal class groups. For the benefit of the reader, we include here a short summary. We recommend [7, Ch.6] for a more in-depth exposition.

Let K be a number field. An ideal I of the ring of integer of Dirichlet went on to use K, OK, is called an integral ideal of K. Additionally, we say that the notion of ideals in the ideal I is principal if there exists a single element α ∈O quadratic number fields K to obtain the ‘modern’ generating it, i.e., such that formulation of the composition law. To I = {αx : x ∈OK}. understand this formulation, one must first understand the For our application,√ we only consider quadratic numbers fields, concepts of ideals and i.e., fields K = Q( D), where D is a . ideal class groups. It is a well-known fact that for any integral ideal A of a quadratic

RESONANCE | June 2019 641 GENERAL ARTICLE

number field K, there exists at most two algebraic integers a, b in

OK such that

A = α, β = {αx + βy : x, y ∈ Z}.

We call α, β the Z-basis of A. √ Given a quadratic number field K = Q( D), the set of all its in- tegral ideals forms an abelian group, where the operation is given by multiplication. Specifically, if A and B are integral ideals, then

AB = {ab : a ∈ A and b ∈ B}

is also an integral ideal. The set of all principal integral ideals forms a of this group. The quotient of all the integral ideals by the principal ideals is called the . Here, we actually need to refine this concept slightly and intro-

duce the narrow class group. Given an algebraic integer α ∈OK, α = αα we define its√ norm to be√ N( ) , where conjugation is defined by sending D to − D. Then, the set of all principal integral ideals (α) with N(α) > 0 also form a subgroup of the group of all integral ideals. The quotient of all ideals by this new subgroup is called the narrow class group of K, denoted C+(K).

In the narrow class In the narrow class group, two integral ideals A and B are ‘the group, two integral same’ (narrowly equivalent) if they differ by a principal ideal gen- A B ideals and are ‘the erated by an element of positive norm, that is if same’ (narrowly ff equivalent) if they di er A = α B by a principal ideal ( ) generated by an element of positive norm. with N(α) > 0. √ Finally, let A = α, β be an integral ideal of K = Q( D). We √ define the norm of A as N(A) = αβ − αβ / D. Note that this norm is independent of the choice of basis for A. The modern formulation of the composition law relies on the fol- lowing theorem.

Theorem 4.4 The√ group GD is isomorphic to the narrow class group of K = Q( D).

642 RESONANCE | June 2019 GENERAL ARTICLE

More specifically, there is an explicit that allows us to compute compositions of binary quadratic forms. To each bi- nary quadratic form, we associate an ideal of OK in the following way: ⎛ √ ⎞ Φ ⎜b − D⎟ (a, b, c) −→ aZ + ⎝⎜ ⎠⎟ Z. 2

Conversely, for every ideal of OK, we associate a binary quadratic form:

α + β α + β Ψ ( x y)( x y) ←− αZ + βZ = A. |N(A)| Theorem 4.5 1) The map Φ sends equivalent binary quadratic + forms in GD to (narrowly) equivalent ideals in C (K).

2) The map Ψ sends (narrowly) equivalent ideals in C+(K) to

equivalent binary quadratic forms in GD.

3) The maps Φ and Ψ are inverses of each other.

See [7, Theorem 6.20] for the proof of this theorem. Under this correspondence above, the composition of binary quadratic + forms in GD corresponds to the multiplication of ideals in C (K). Therefore, given two binary quadratic forms of discriminant D, say Q1 and Q2, we can compute Q1 · Q2 by

1. Finding Φ(Q1)andΦ(Q2),

2. Finding a 2 elements Z-basis for the ideal Φ(Q1)Φ(Q2), say α, β (one always exists since OK is a Dedekind domain),

3. Computing Ψ( α, β ), and finding a reduced representative if necessary. Proposition 4.6 The algorithm described above is equivalent to the composition law defined in Corollary 4.2. That is, if (a1, b1, c1) and (a2, b2, c2) are united forms, then Ψ Φ ([a1, b1, c1]) Φ ([a2, b2, c2]) = [a1a2, B, C], where B and C are the integers from Proposition 4.1.

RESONANCE | June 2019 643 GENERAL ARTICLE

Proof. From Proposition 4.1, (a1, b1, c1) ∼ (a1, B, a2C)and(a2, b2, c2) ∼ (a2, B, a1C)forsomeB and C. Clearly gcd(a1, a2, B) = 1 (see Proposition 2.3). Then, we compute

A =Φ((a1, B, a2C)) Φ ((a2, B, a1C)) √ √ = , B− D , B− D , a1a2 a1 2 a2 2 √ B2+D−2B D 4 Z = 2 − as a -basis. Also, writing √ D B 4a1a2C, the last generator B− D can be replaced by B 2 .

Finally, since gcd(a1, a2, B) = 1, we can find a linear combination of them that equals 1. As such, we can easily see √ ⎛ √ ⎞ B − D ⎜ B − D⎟ a a , ⊆ a a , a ⎝⎜ ⎠⎟ , 1 2 2 1 2 1 2 ⎛ √ ⎞ ⎛ √ ⎞ ⎜ B − D⎟ ⎜B − D⎟ a ⎝⎜ ⎠⎟ , B ⎝⎜ ⎠⎟ , 2 2 2 and since the reverse inclusion is trivial, we have √ , , , , =Ψ , B− D [a1 B a2C][a2 B a1C] a1a2 2

= [a1a2, B, C].



5. Bhargava’s Cube

Consider the following cube of integers, that is a cube with an integer at every corner. In Figure 1, a, b, c, d, e, f, g, h are all inte- gers. We can cut the cube to obtain two squares in three ways.

Figure 1. Bhargava’s cube e of integers. f a b

g h

c d

644 RESONANCE | June 2019 GENERAL ARTICLE

1) Front–Back:

e f

a b

g h

c d

We then define the following two matrices using the two squares we get. ⎛ ⎞ ⎛ ⎞ ⎜ab⎟ ⎜ef⎟ M  ⎝⎜ ⎠⎟ N  ⎝⎜ ⎠⎟ . 1 cd 1 gh

We do the same for the next two cuts, rotating the whole cube so that a is always the top left entry of the first matrix.

2) Left–Right:

e f

a b ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ac⎟ ⎜bd⎟ M2  ⎝ ⎠ N2  ⎝ ⎠ . g h eg fh

c d

3) Up–Down:

e f

a b ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ae⎟ ⎜cg⎟ M3  ⎝ ⎠ N3  ⎝ ⎠ . g h bf dh

c d

Now, we define an action of the group

Γ=SL2(Z) × SL2(Z) × SL2(Z) on the space C of all cubes of integers. ⎛ ⎞ ⎜rs⎟ If γ ∈ Γ and ⎝⎜ ⎠⎟ is its ith factor, 1 ≤ i ≤ 3, then the action of γ tu on a cube replaces (Mi, Ni) with (rMi + sNi, tMi + uNi). In other

RESONANCE | June 2019 645 GENERAL ARTICLE

words, each factor of γ performs a ‘face operation’ on the cube, similar to what we would do on a matrix with row and column operations. The first factor performs a face operation on the front and back faces, the second factor on the left and right faces, and the last on the up and down faces.

Proposition 5.1 The action of each factor of γ ∈ Γ commutes with each other.

Proof. This can be viewed simply as the analogue of row and column operation on matrices commuting with each other. A mo- ment’s reflection should make this clear. 

Given a cube C, we define three binary quadratic forms as:

C = − − , Qi det(Mix Niy)

for 1 ≤ i ≤ 3.

Example 5.1 If we take C to be the cube of Figure 1, then ⎛ ⎞ ⎜ax − ey bx − fy⎟ QC = − det ⎝⎜ ⎠⎟ , 1 cx − gy dx − hy

which indeed gives a binary quadratic form.

C, C, C We say that a cube C is projective if Q1 Q2 Q3 are primitive binary quadratic forms.

Proposition 5.2 For any cube C, C = C = C . Disc Q1 Disc Q2 Disc Q3

Proof. From Example 5.1, we can find a formula for the discrim- C inant of Q1 as:

C = 2 + 2 + 2 + 2 − + + Disc(Q1 ) (cf) (ed) (bg) (ah) 2ah(de cf bg) −2(bc f g + cde f + bdeg + bc f g) .

646 RESONANCE | June 2019 GENERAL ARTICLE

Then, we notice that we can retrieve M2 and N2 from M1 and N1 by permuting the elements a, b, c, d, e, f, g, h as follows: ⎛ ⎞ ⎜abcde f gh⎟ ⎝⎜ ⎠⎟ acegbd fh or in cycle notation (a)(bce)(dg f)(h). Actually, we notice that we can also retrieve M3 and N3 from M2 and N2 using the same permutation. Finally, note that the formula above for the discriminant is invari- ant under this permutation. 

It, therefore, makes sense to define Disc(C) for a cube C as the discriminant of its associated binary quadratic forms. We now examine the action of Γ on these newly defined binary quadratic forms.

Proposition 5.3 Any element of {1}×SL2(Z) × SL2(Z) acts triv- C ially on Q1 .

Proof. Let γ ∈{1}×SL2(Z) × SL2(Z) act on the cube C. Suppose G2 is the second factor of γ and G3 the third. Then note that G2 acts on M1 and N1 by column operation. Specifically, M1 and N1 become M1G2 and N1G2 respectively. On the other hand, G3 act on M1G2 and N1G2 by row operations, and they become G3 M1G2 and G3N1G2 respectively. Therefore, we have that

C∗γ = − − = − Q1 det (G3 M1G2 x G3N1G2y) det(G3) − = C. det (M1x N1y) det(G2) Q1 

Proposition 5.4 γ = × × ∈ Γ C The element M 1 1 acts on Q1 in the usual way. Specifically,

C∗γ = C ∗ ˜ , Q1 Q1 M

RESONANCE | June 2019 647 GENERAL ARTICLE

where ⎛ ∼ ⎞ ⎛ ⎞ ⎜rs⎟ ⎜ r −t⎟ ⎝⎜ ⎠⎟= ⎝⎜ ⎠⎟ . tu −su ⎛ ⎞ ⎜rs⎟ Proof. This time, let γ = ⎝⎜ ⎠⎟ × 1 × 1 act on C. Then, tu

C∗γ , = − + − + Q1 (x y) det ((rM1 sN1)x (tM1 uN1)y) = − det (M1(rx − ty) − N1(uy − sx)) = QC(rx − ty, uy − sx) 1 ⎛ ⎞ ⎜ r −t⎟ = QC ∗ ⎝⎜ ⎠⎟ . 1 −su



By symmetry, the above two Propositions hold for the i-th factor Γ C ≤ ≤ of and Qi ,1 i 3. In particular, note that we can conclude the following corollary.

Corollary 5.5 Disc(C) is invariant under the action of Γ.

From there, we can impose a group structure on the set of prim- itive binary quadratic forms of discriminant D by declaring that A, A, A for any triplet Q1 Q2 Q3 arising from a cube A of discriminant D, A + A + A = . Q1 Q2 Q3 0 In other words, we mod out this relation on the free abelian group generated by all binary quadratic forms of discriminant D.Note that we obtain the SL2(Z) equivalence of binary quadratic forms for free from this definition. Indeed, if γ = M × 1 × 1 ∈ Γ,

A + A + A = = A∗γ + A∗γ + A∗γ Q1 Q2 Q3 0 Q1 Q2 Q3 = A ∗ ˜ + A + A Q1 M Q2 Q3 ⇒ A = A ∗ ˜ . Q1 Q1 M

As it turns out, this is exactly equivalent to the previously defined composition law. Indeed, Bhargava proved the following theorem

648 RESONANCE | June 2019 GENERAL ARTICLE

Theorem5.6([2,Thm1]) There exists a projective cube A of A, A, A discriminant D with Q1 Q2 Q3 if and only if A · A · A = , Q1 Q2 Q3 1GD and that cube is unique up to Γ-equivalence.

There is a way to easily see that this composition law agrees with our previously defined composition. Start with a projective cube C.

e f

a b

g h

c d

Since C is projective, we can show that gcd(a, b, c, d, e, f, g, h) = 1. As such, we can find a Γ-equivalent cube such that a = 1. We then use this entry to clear entries b, c and e using face operations again. We, therefore, have the equivalent cube C˜ as follows.

0 f

1 0

g h

0 d

The three binary quadratic forms associated to C˜ are:

2 2 Q1 = −dx + hxy + fgy , 2 2 Q2 = −gx + hxy + dfy , 2 2 Q3 = − fx + hxy + dgy .

RESONANCE | June 2019 649 GENERAL ARTICLE

The cube law tells us that

−1 [Q1] · [Q2] = [Q3] .

Let us now use Dirichlet’s united form to arrive at the same con- clusion. Recall that from Proposition 4.3,

−1 [Q3] = [dg, h, − f ].

Also, from Corollary 4.2, we get,

−1 [Q1] · [Q2] = [−d, h, gf] · [−g, h, df] = [dg, h, − f ] = [Q3]

by letting a1 = −d, a2 = −g, B = h and C = − f . Thus, we conclude that the two composition laws are equivalent.

6. Concluding Remarks

One of the most One of the most remarkable and surprising aspects of this new remarkable and approach to the composition law might be how it generalizes to surprising aspect of this ‘higher’ compositions. Although it was only briefly mentioned new approach to the composition law might in the rest of this article, Bhargava describes in [2] how he gen- be how it generalizes to eralizes the cube law presented here to retrieve some algebraic ‘higher’ compositions. structure in higher degree number fields. The correspondence between binary quadratic forms and the narrow class group of quadratic fields was already well-known, but getting a handle on other types of algebraic structures for higher degree is very im- portant in algebraic number theory. In particular, see [2–5] for generalizations. For a more involved introduction to the topic, we refer the reader to [8], while [9] also provides a good introduction to the results arising from this new theory of higher compositions.

Acknowledgment

I would like to thank Professor M. Ram Murty, Siddhi Pathak, as well as the referee for their helpful comments and suggestions on a previous version of this article.

650 RESONANCE | June 2019 GENERAL ARTICLE

Suggested Reading

[1] Manjul Bhargava, Higher Composition Laws, PhD Thesis, Princeton Univer- sity, June 2001. [2] Manjul Bhargava, Higher Composition Laws I: A New View on Gauss Compo- sition and Quadratic Generalizations, Annals of Mathematics, Vol.159, pp.217– 250, 2004. [3] Manjul Bhargava, Higher Composition Laws II: On Cubic Analogues of Gauss Composition, Annals of Mathematics, Vol.159, pp.865–886, 2004. [4] Manjul Bhargava, Higher Composition Laws III: The Parametrization of Quartic Rings, Annals of Mathematics, Vol.159, pp.1329–1360, 2004. [5] Manjul Bhargava, Higher Composition Laws IV: The Parametrization of Quintic Rings, Annals of Mathematics, Vol.167, pp.53–94, 2008. [6] André Weil, Number Theory: An Approach Through History from Hammurapi to Legendre, Basel:Birkhäuser, 2001. [7]DABuell,Binary Quadratic Forms: Classical Theory and Modern Computa- tions, New York: Springer–Verlag, 1989. [8] Karim Belabas, Paramétrisation de structures algébriques et densité de dis- Address for Correspondence criminants [d’aprés Bhargava], Astérisque, No.299 (2005) Exp.No.935, ix, François Séguin pp.267–299, Seminaire Bourbaki Vol.2003–2004. Department of Mathematics [9] Arul Shankar and Xiaoheng Wang, Laws of Composition and Arithmetic Queen’s University, Kingston Statistics: From Gauss to Bhargava, The Mathematics Student, Vol.84, Nos.3–4, Ontario K7L 3N6, Canada. pp.159–171, 2015. Email: [10] Johannes Buchmann and Ulrich Vollmer, Binary Quadratic Forms: An Algo- [email protected] rithmic Approach, Berlin: Springer–Verlag, 2007.

RESONANCE | June 2019 651