In mathematics, a binary quadratic form is a quadratic homogeneous polynomial in two variables
q(x,y)=ax2+bxy+cy2,
where a, b, c are the coefficients. When the coefficients can be arbitrary complex numbers, most results are not specific to the case of two variables, so they are described in quadratic form. A quadratic form with integer coefficients is called an integral binary quadratic form, often abbreviated to binary quadratic form.
This article is entirely devoted to integral binary quadratic forms. This choice is motivated by their status as the driving force behind the development of algebraic number theory. Since the late nineteenth century, binary quadratic forms have given up their preeminence in algebraic number theory to quadratic and more general number fields, but advances specific to binary quadratic forms still occur on occasion.
Pierre Fermat stated that if p is an odd prime then the equation
p=x2+y2
p\equiv1\pmod{4}
p=x2+2y2
p=x2+3y2
p=x2-2y2
p=x2-3y2
x2+y2,x2+2y2,x2-3y2
x2-ny2=1
Binary quadratic forms are closely related to ideals in quadratic fields. This allows the class number of a quadratic field to be calculated by counting the number of reduced binary quadratic forms of a given discriminant.
The classical theta function of 2 variables is
\sum | |
(m,n)\inZ2 |
m2+n2 | |
q |
f(x,y)
\sum | |
(m,n)\inZ2 |
qf(m,n)
Two forms f and g are called equivalent if there exist integers
\alpha,\beta,\gamma,and\delta
\begin{align}f(\alphax+\betay,\gammax+\deltay)&=g(x,y),\\ \alpha\delta-\beta\gamma&=1.\end{align}
For example, with
f=x2+4xy+2y2
\alpha=-3
\beta=2
\gamma=1
\delta=-1
g=(-3x+2y)2+4(-3x+2y)(x-y)+2(x-y)2
-x2+4xy-2y2
The above equivalence conditions define an equivalence relation on the set of integral quadratic forms. It follows that the quadratic forms are partitioned into equivalence classes, called classes of quadratic forms. A class invariant can mean either a function defined on equivalence classes of forms or a property shared by all forms in the same class.
Lagrange used a different notion of equivalence, in which the second condition is replaced by
\alpha\delta-\beta\gamma=\pm1
In matrix terminology, which is used occasionally below, when
\begin{pmatrix}\alpha&\beta\ \gamma&\delta\end{pmatrix}
has integer entries and determinant 1, the map
f(x,y)\mapstof(\alphax+\betay,\gammax+\deltay)
SL2(Z)
If
f=ax2+bxy+cy2
\Delta=b2-4ac
Terminology has arisen for classifying classes and their forms in terms of their invariants. A form of discriminant
\Delta
\Delta<0
\Delta
\Delta\equiv0,1\pmod4.
If f is a quadratic form, a matrix
\begin{pmatrix}\alpha&\beta\ \gamma&\delta\end{pmatrix}
in
SL2(Z)
f(\alphax+\betay,\gammax+\deltay)=f(x,y)
\begin{pmatrix}3&-4\ -2&3\end{pmatrix}
is an automorphism of the form
f=x2-2y2
SL2(Z)
A binary quadratic form
q(x,y)
n
x
y
n=q(x,y).
Diophantus considered whether, for an odd integer
n
x
y
n=x2+y2
n=65
\begin{align}65&=12+82,\\ 65&=42+72, \end{align}
so we find pairs
(x,y)=(1,8)and(4,7)
x
y
x
y
n=3
3=x2+y2
does not have integer solutions. To see why, we note that
x2\geq4
x=-1,0
1
x2+y2
(x,y)
x
y
-1,0
3=x2+y2
A similar argument shows that for each
n
n=x2+y2
x2+y2
n
|x|
|y|
\sqrt{n}
Another ancient problem involving quadratic forms asks us to solve Pell's equation. For instance, we may seek integers x and y so that
1=x2-2y2
(x,y)=(3,2)
1=32-2 ⋅ 22
(x,y)
1=x2-2y2
(3x+4y,2x+3y)
(3,2)
(3 ⋅ 3+4 ⋅ 2,2 ⋅ 3+3 ⋅ 2)=(17,12)
and we can check that this satisfies
1=172-2 ⋅ 122
(x,y)
1=x2-2y2
\begin{align} (3 ⋅ 17+4 ⋅ 12,2 ⋅ 17+3 ⋅ 12)&=(99,70),\\ (3 ⋅ 99+4 ⋅ 70,2 ⋅ 99+3 ⋅ 70)&=(577,408),\\ &\vdots\end{align}
x2-2y2
The oldest problem in the theory of binary quadratic forms is the representation problem: describe the representations of a given number
n
The examples above discuss the representation problem for the numbers 3 and 65 by the form
x2+y2
x2-2y2
x2+y2
x2-2y2
x2+y2
x2+y2
r2(n)
x2+y2
r2(n)=4(d1(n)-d3(n)),
where
d1(n)
d3(n)
There are several class invariants relevant to the representation problem:
The minimum absolute value represented by a class is zero for degenerate classes and positive for definite and indefinite classes. All numbers represented by a definite form
f=ax2+bxy+cy2
a>0
a<0
The number of representations of an integer n by a form f is finite if f is definite and infinite if f is indefinite. We saw instances of this in the examples above:
x2+y2
x2-2y2
The notion of equivalence of forms can be extended to equivalent representations. Representations
m=f(x1,y1)
n=g(x2,y2)
\begin{pmatrix}\alpha&\beta\ \gamma&\delta\end{pmatrix}
with integer entries and determinant 1 so that
f(\alphax+\betay,\gammax+\deltay)=g(x,y)
\begin{pmatrix}\delta&-\beta\ -\gamma&\alpha\end{pmatrix}\begin{pmatrix}x1\ y1\end{pmatrix}=\begin{pmatrix}x2\ y2\end{pmatrix}
The above conditions give a (right) action of the group
SL2(Z)
As an example, let
f=x2-2y2
1=f(x1,y1)
\begin{pmatrix}3&-4\ -2&3\end{pmatrix}
has determinant 1 and is an automorphism of f. Acting on the representation
1=f(x1,y1)
1=f(3x1+4y1,2x1+3y1)
1=x2-2y2
There are generally finitely many equivalence classes of representations of an integer n by forms of given nonzero discriminant
\Delta
\Delta<0
\Delta
\Delta>0
\Delta
n=f(x,y)
x>0
y\geq0
Lagrange proved that for every value D, there are only finitely many classes of binary quadratic forms with discriminant D. Their number is the of discriminant D. He described an algorithm, called reduction, for constructing a canonical representative in each class, the reduced form, whose coefficients are the smallest in a suitable sense.
Gauss gave a superior reduction algorithm in Disquisitiones Arithmeticae, which ever since has been the reduction algorithm most commonly given in textbooks. In 1981, Zagier published an alternative reduction algorithm which has found several uses as an alternative to Gauss's.
Composition most commonly refers to a binary operation on primitive equivalence classes of forms of the same discriminant, one of the deepest discoveries of Gauss, which makes this set into a finite abelian group called the form class group (or simply class group) of discriminant
\Delta
\Delta
Q(\sqrt{\Delta})
\Delta
\Delta
\Delta
"Composition" also sometimes refers to, roughly, a binary operation on binary quadratic forms. The word "roughly" indicates two caveats: only certain pairs of binary quadratic forms can be composed, and the resulting form is not well-defined (although its equivalence class is). The composition operation on equivalence classes is defined by first defining composition of forms and then showing that this induces a well-defined operation on classes.
"Composition" can also refer to a binary operation on representations of integers by forms. This operation is substantially more complicated than composition of forms, but arose first historically. We will consider such operations in a separate section below.
Composition means taking 2 quadratic forms of the same discriminant and combining them to create a quadratic form of the same discriminant, as follows from Brahmagupta's identity.
A variety of definitions of composition of forms has been given, often in an attempt to simplify the extremely technical and general definition of Gauss. We present here Arndt's method, because it remains rather general while being simple enough to be amenable to computations by hand. An alternative definition is described at Bhargava cubes.
Suppose we wish to compose forms
f1=A1x2+B1xy+C1y2
f2=A2x2+B2xy+C2y2
\Delta
B\mu=\tfrac{B1+B2}{2}
e=\gcd(A1,A2,B\mu)
A=\tfrac{A1
2} | |
A | |
2}{e |
\begin{align}x&\equivB1\pmod{2\tfrac{A1}{e}}\ x&\equivB2\pmod{2\tfrac{A2}{e}}\ \tfrac{B\mu}{e}x&\equiv\tfrac{\Delta+B1B2}{2e}\pmod{2A}\end{align}
2A
\Delta=B2-4AC
The form
Ax2+Bxy+Cy2
f1
f2
\begin{pmatrix}1&n\ 0&1\end{pmatrix}
where n is an integer. If we consider the class of
Ax2+Bxy+Cy2
It can be shown that if
f1
f2
g1
g2
f1
f2
g1
g2
\Delta
x2+Bxy+Cy2
\Delta\equiv0or1\pmod{4}
Ax2+Bxy+Cy2
Ax2-Bxy+Cy2
Cx2+Bxy+Ay2
Ax2-Bxy+Cy2
Gauss also considered a coarser notion of equivalence, with each coarse class called a genus of forms. Each genus is the union of a finite number of equivalence classes of the same discriminant, with the number of classes depending only on the discriminant. In the context of binary quadratic forms, genera can be defined either through congruence classes of numbers represented by forms or by genus characters defined on the set of forms. A third definition is a special case of the genus of a quadratic form in n variables. This states that forms are in the same genus if they are locally equivalent at all rational primes (including the Archimedean place).
There is circumstantial evidence of protohistoric knowledge of algebraic identities involving binary quadratic forms. The first problem concerning binary quadratic forms asks for the existence or construction of representations of integers by particular binary quadratic forms. The prime examples are the solution of Pell's equation and the representation of integers as sums of two squares. Pell's equation was already considered by the Indian mathematician Brahmagupta in the 7th century CE. Several centuries later, his ideas were extended to a complete solution of Pell's equation known as the chakravala method, attributed to either of the Indian mathematicians Jayadeva or Bhāskara II. The problem of representing integers by sums of two squares was considered in the 3rd century by Diophantus. In the 17th century, inspired while reading Diophantus's Arithmetica, Fermat made several observations about representations by specific quadratic forms including that which is now known as Fermat's theorem on sums of two squares. Euler provided the first proofs of Fermat's observations and added some new conjectures about representations by specific forms, without proof.
The general theory of quadratic forms was initiated by Lagrange in 1775 in his Recherches d'Arithmétique. Lagrange was the first to realize that "a coherent general theory required the simulatenous consideration of all forms." He was the first to recognize the importance of the discriminant and to define the essential notions of equivalence and reduction, which, according to Weil, have "dominated the whole subject of quadratic forms ever since". Lagrange showed that there are finitely many equivalence classes of given discriminant, thereby defining for the first time an arithmetic class number. His introduction of reduction allowed the quick enumeration of the classes of given discriminant and foreshadowed the eventual development of infrastructure. In 1798, Legendre published Essai sur la théorie des nombres, which summarized the work of Euler and Lagrange and added some of his own contributions, including the first glimpse of a composition operation on forms.
The theory was vastly extended and refined by Gauss in Section V of Disquisitiones Arithmeticae. Gauss introduced a very general version of a composition operator that allows composing even forms of different discriminants and imprimitive forms. He replaced Lagrange's equivalence with the more precise notion of proper equivalence, and this enabled him to show that the primitive classes of given discriminant form a group under the composition operation. He introduced genus theory, which gives a powerful way to understand the quotient of the class group by the subgroup of squares. (Gauss and many subsequent authors wrote 2b in place of b; the modern convention allowing the coefficient of xy to be odd is due to Eisenstein).
These investigations of Gauss strongly influenced both the arithmetical theory of quadratic forms in more than two variables and the subsequent development of algebraic number theory, where quadratic fields are replaced with more general number fields. But the impact was not immediate. Section V of Disquisitiones contains truly revolutionary ideas and involves very complicated computations, sometimes left to the reader. Combined, the novelty and complexity made Section V notoriously difficult. Dirichlet published simplifications of the theory that made it accessible to a broader audience. The culmination of this work is his text Vorlesungen über Zahlentheorie. The third edition of this work includes two supplements by Dedekind. Supplement XI introduces ring theory, and from then on, especially after the 1897 publication of Hilbert's Zahlbericht, the theory of binary quadratic forms lost its preeminent position in algebraic number theory and became overshadowed by the more general theory of algebraic number fields.
Even so, work on binary quadratic forms with integer coefficients continues to the present. This includes numerous results about quadratic number fields, which can often be translated into the language of binary quadratic forms, but also includes developments about forms themselves or that originated by thinking about forms, including Shanks's infrastructure, Zagier's reduction algorithm, Conway's topographs, and Bhargava's reinterpretation of composition through Bhargava cubes.
x2+y2