encyclopegia.org

Binary quadratic form

In mathematics, a binary quadratic form is a quadratic homogeneous polynomial in two variables : q(x,y)=ax^2+bxy+cy^2, \, where a, b, c are the coefficients.[src] 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.[src] A quadratic form with integer coefficients is called an integral binary quadratic form, often abbreviated to binary quadratic form.[src] This article is entirely devoted to integral binary quadratic forms.[src] This choice is motivated by their status as the driving force behind the development of algebraic number theory.[src] 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.[src] Pierre Fermat stated that if p is an odd prime then the equation p = x^2 + y^2 has a solution iff p \equiv 1 \pmod{4} , and he made similar statements about the equations p = x^2 + 2y^2 , p = x^2 + 3y^2 , p = x^2 - 2y^2 and p = x^2 - 3y^2 .[src] In addition, x^2 + y^2, x^2 + 2y^2, x^2 - 3y^2 and so on are quadratic forms, and the theory of quadratic forms gives a unified way of looking at and proving these theorems.[src] Another instance of quadratic forms is Pell's equation x^2-ny^2=1 .…[src]

In mathematics, a binary quadratic form is a quadratic homogeneous polynomial in two variables q(x,y)=ax^2+bxy+cy^2, \, where a, b, c are the coefficients.[src] 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.[src] A quadratic form with integer coefficients is called an integral binary quadratic form, often abbreviated to binary quadratic form.[src] This article is entirely devoted to integral binary quadratic forms.[src] This choice is motivated by their status as the driving force behind the development of algebraic number theory.[src] 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.[src] Pierre Fermat stated that if p is an odd prime then the equation p = x^2 + y^2 has a solution iff p \equiv 1 \pmod{4} , and he made similar statements about the equations p = x^2 + 2y^2 , p = x^2 + 3y^2 , p = x^2 - 2y^2 and p = x^2 - 3y^2 .[src] In addition, x^2 + y^2, x^2 + 2y^2, x^2 - 3y^2 and so on are quadratic forms, and the theory of quadratic forms gives a unified way of looking at and proving these theorems.[src] Another instance of quadratic forms is Pell's equation x^2-ny^2=1 .[src] Binary quadratic forms are closely related to ideals in quadratic fields.[src] 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.[src] The classical theta function of 2 variables is \sum_{(m,n)\in \mathbb{Z}^2} q^{m^2 + n^2} , if f(x,y) is a positive definite quadratic form then \sum_{(m,n)\in \mathbb{Z}^2} q^{f(m,n)} is a theta function.[src] \begin{align} f(\alpha x + \beta y, \gamma x + \delta y) &= g(x,y),\\ \alpha \delta - \beta \gamma &= 1.\end{align} For example, with f= x^2 + 4xy + 2y^2 and \alpha = -3 , \beta = 2 , \gamma = 1 , and \delta = -1 , we find that f is equivalent to g = (-3x+2y)^2 + 4(-3x+2y)(x-y)+2(x-y)^2 , which simplifies to -x^2+4xy-2y^2 .[src] The above equivalence conditions define an equivalence relation on the set of integral quadratic forms.[src] It follows that the quadratic forms are partitioned into equivalence classes, called classes of quadratic forms.[src] 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.[src] Lagrange used a different notion of equivalence, in which the second condition is replaced by \alpha \delta - \beta \gamma = \pm 1 .[src] Since Gauss it has been recognized that this definition is inferior to that given above.[src] If there is a need to distinguish, sometimes forms are called properly equivalent using the definition above and improperly equivalent if they are equivalent in Lagrange's sense.[src] 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) \mapsto f(\alpha x + \beta y, \gamma x + \delta y) is a (right) group action of \mathrm{SL}_2(\mathbb{Z}) on the set of binary quadratic forms.[src] The equivalence relation above then arises from the general theory of group actions.[src] If f=ax^2+bxy+cy^2 , then important invariants include The discriminant \Delta=b^2-4ac .[src] The content, equal to the greatest common divisor of a, b, and c.[src] Terminology has arisen for classifying classes and their forms in terms of their invariants.[src] A form of discriminant \Delta is definite if \Delta , degenerate if \Delta is a perfect square, and indefinite otherwise.[src] A form is primitive if its content is 1, that is, if its coefficients are coprime.[src] If a form's discriminant is a fundamental discriminant, then the form is primitive.[src] Discriminants satisfy \Delta\equiv 0,1 \pmod 4.[src] in \mathrm{SL}_2(\mathbb{Z}) is an automorphism of f if f(\alpha x + \beta y, \gamma x + \delta y) = f(x,y) .[src] For example, the matrix \begin{pmatrix} 3 & -4 \\ -2 & 3 \end{pmatrix} is an automorphism of the form f = x^2 - 2y^2 .[src] The automorphisms of a form are a subgroup of \mathrm{SL}_2(\mathbb{Z}) .[src] When f is definite, the group is finite, and when f is indefinite, it is infinite and cyclic.[src] ==Representation== A binary quadratic form q(x,y) represents an integer n if it is possible to find integers x and y satisfying the equation n = q(x,y).[src] Such an equation is a representation of by .[src] Diophantus considered whether, for an odd integer n , it is possible to find integers x and y for which n = x^2 + y^2 .[src] When n=65 , we have \begin{align} 65 &= 1^2 + 8^2,\\ 65 &= 4^2 + 7^2, \end{align} so we find pairs (x,y) = (1,8) \text{ and } (4,7) that do the trick.[src] We obtain more pairs that work by switching the values of x and y and/or by changing the sign of one or both of x and y .[src] In all, there are sixteen different solution pairs.[src] On the other hand, when n=3 , the equation 3=x^2 + y^2 does not have integer solutions.[src] To see why, we note that x^2 \geq 4 unless x = -1, 0 or 1 .[src] Thus, x^2+y^2 will exceed 3 unless (x,y) is one of the nine pairs with x and y each equal to -1, 0 or 1 .[src] We can check these nine pairs directly to see that none of them satisfies 3 = x^2 + y^2 , so the equation does not have integer solutions.[src] A similar argument shows that for each n , the equation n =x^2+y^2 can have only a finite number of solutions since x^2+y^2 will exceed n unless the absolute values |x| and |y| are both less than \sqrt{n} .[src] There are only a finite number of pairs satisfying this constraint.[src] Another ancient problem involving quadratic forms asks us to solve Pell's equation.[src] For instance, we may seek integers x and y so that 1 = x^2 - 2y^2 .[src] Changing signs of x and y in a solution gives another solution, so it is enough to seek just solutions in positive integers.[src] One solution is (x,y) = (3,2) , that is, there is an equality 1 = 3^2 - 2 \cdot 2^2 .[src] If (x,y) is any solution to 1 = x^2 - 2 y^2 , then (3x+4y,2x+3y) is another such pair.[src] For instance, from the pair (3,2) , we compute (3\cdot 3 + 4 \cdot 2, 2\cdot 3 + 3 \cdot 2) = (17,12) , and we can check that this satisfies 1 = 17^2 - 2 \cdot 12^2 .[src] Iterating this process, we find further pairs (x,y) with 1 = x^2 - 2y^2 : \begin{align} (3 \cdot 17 + 4 \cdot 12, 2 \cdot 17 + 3 \cdot 12) &= (99,70),\\ (3 \cdot 99 + 4 \cdot 70, 2 \cdot 99 + 3 \cdot 70) &= (577,408),\\ &\vdots \end{align} These values will keep growing in size, so we see there are infinitely many ways to represent 1 by the form x^2 - 2y^2 .[src] This recursive description was discussed in Theon of Smyrna's commentary on Euclid's Elements.[src] r_2(n) = 4(d_1(n) - d_3(n)), where d_1(n) is the number of divisors of n that are congruent to 1 modulo 4 and d_3(n) is the number of divisors of n that are congruent to 3 modulo 4.[src] There are several class invariants relevant to the representation problem: The set of integers represented by a class.[src] If an integer n is represented by a form in a class, then it is represented by all other forms in a class.[src] The minimum absolute value represented by a class.[src] This is the smallest nonnegative value in the set of integers represented by a class.[src] The congruence classes modulo the discriminant of a class represented by the class.[src] The minimum absolute value represented by a class is zero for degenerate classes and positive for definite and indefinite classes.[src] All numbers represented by a definite form f = ax^2 + bxy + cy^2 have the same sign: positive if a>0 and negative if a .[src] For this reason, the former are called positive definite forms and the latter are negative definite.[src] The number of representations of an integer n by a form f is finite if f is definite and infinite if f is indefinite.[src] We saw instances of this in the examples above: x^2+y^2 is positive definite and x^2 - 2y^2 is indefinite.[src] The notion of equivalence of forms can be extended to equivalent representations.[src] Representations m = f(x_1,y_1) and n = g(x_2,y_2) are equivalent if there exists a matrix \begin{pmatrix} \alpha & \beta \\ \gamma & \delta \end{pmatrix} with integer entries and determinant 1 so that f(\alpha x + \beta y, \gamma x + \delta y) = g(x,y) and \begin{pmatrix} \delta& -\beta \\ -\gamma & \alpha\end{pmatrix} \begin{pmatrix} x_1 \\ y_1 \end{pmatrix} = \begin{pmatrix} x_2 \\ y_2 \end{pmatrix} The above conditions give a (right) action of the group \mathrm{SL}_2(\mathbb{Z}) on the set of representations of integers by binary quadratic forms.[src] It follows that equivalence defined this way is an equivalence relation and in particular that the forms in equivalent representations are equivalent forms.[src] As an example, let f = x^2 - 2y^2 and consider a representation 1 = f(x_1,y_1) .[src] Such a representation is a solution to the Pell equation described in the examples above.[src] The matrix \begin{pmatrix} 3 & -4 \\ -2 & 3 \end{pmatrix} has determinant 1 and is an automorphism of f.[src] Acting on the representation 1 = f(x_1,y_1) by this matrix yields the equivalent representation 1 = f(3x_1 + 4y_1, 2x_1 + 3 y_1) .[src] This is the recursion step in the process described above for generating infinitely many solutions to 1 = x^2 - 2y^2 .[src] Iterating this matrix action, we find that the infinite set of representations of 1 by f that were determined above are all equivalent.[src] There are generally finitely many equivalence classes of representations of an integer n by forms of given nonzero discriminant \Delta .[src] A complete set of representatives for these classes can be given in terms of reduced forms defined in the section below.[src] When \Delta , every representation is equivalent to a unique representation by a reduced form, so a complete set of representatives is given by the finitely many representations of n by reduced forms of discriminant \Delta .[src] When \Delta > 0 , Zagier proved that every representation of a positive integer n by a form of discriminant \Delta is equivalent to a unique representation n = f(x,y) in which f is reduced in Zagier's sense and x > 0 , y \geq 0 .[src] The set of all such representations constitutes a complete set of representatives for equivalence classes of representations.[src] Suppose we wish to compose forms f_1 = A_1 x^2 + B_1 xy + C_1 y^2 and f_2 = A_2 x^2 + B_2 xy + C_2 y^2 , each primitive and of the same discriminant \Delta .[src] We perform the following steps: Compute B_\mu = \tfrac{B_1 + B_2}{2} and e = \gcd(A_1, A_2, B_\mu) , and A = \tfrac{A_1 A_2}{e^2} Solve the system of congruences \begin{align} x &\equiv B_1 \pmod{2 \tfrac{A_1}{e}}\\ x &\equiv B_2 \pmod{2 \tfrac{A_2}{e}}\\ \tfrac{B_\mu}{e} x &\equiv \tfrac{\Delta + B_1 B_2}{2e} \pmod{2A} \end{align} It can be shown that this system always has a unique integer solution modulo 2A .[src] We arbitrarily choose such a solution and call it B.[src] Compute C such that \Delta = B^2 - 4AC .[src] It can be shown that C is an integer.[src] The form Ax^2 + Bxy + Cy^2 is "the" composition of f_1 and f_2 .[src] We see that its first coefficient is well-defined, but the other two depend on the choice of B and C.[src] One way to make this a well-defined operation is to make an arbitrary convention for how to choose B—for instance, choose B to be the smallest positive solution to the system of congruences above.[src] Alternatively, we may view the result of composition, not as a form, but as an equivalence class of forms modulo the action of the group of matrices of the form \begin{pmatrix} 1 & n\\ 0 & 1\end{pmatrix} , where n is an integer.[src] If we consider the class of Ax^2 + Bxy + Cy^2 under this action, the middle coefficients of the forms in the class form a congruence class of integers modulo 2A.[src] Thus, composition gives a well-defined function from pairs of binary quadratic forms to such classes.[src] It can be shown that if f_1 and f_2 are equivalent to g_1 and g_2 respectively, then the composition of f_1 and f_2 is equivalent to the composition of g_1 and g_2 .[src] It follows that composition induces a well-defined operation on primitive classes of discriminant \Delta , and as mentioned above, Gauss showed these classes form a finite abelian group.[src] The identity class in the group is the unique class containing all forms x^2 + Bxy + Cy^2 , i.e., with first coefficient 1.[src] (It can be shown that all such forms lie in a single class, and the restriction \Delta \equiv 0 \text{ or } 1 \pmod{4} implies that there exists such a form of every discriminant.) To invert a class, we take a representative Ax^2 + Bxy + Cy^2 and form the class of Ax^2 - Bxy + Cy^2 .[src] Alternatively, we can form the class of Cx^2 + Bxy + Ay^2 since this and Ax^2 - Bxy + Cy^2 are equivalent.[src] ==See also== Bhargava cube Fermat's theorem on sums of two squares Legendre symbol Brahmagupta's identity ==Notes== ==References== Johannes Buchmann, Ulrich Vollmer: Binary Quadratic Forms, Springer, Berlin 2007, Duncan A.[src] Buell: Binary Quadratic Forms, Springer, New York 1989 David A.[src] Cox, Primes of the form x^2 + ny^2 , Fermat, class field theory, and complex multiplication ==External links== Peter Luschny, Positive numbers represented by a binary quadratic form[src]

105 sentences · 105 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Binary quadratic form." encyclopegia.org, 2026, https://encyclopegia.org/wiki/binary-quadratic-form. Accessed 29 November 2026.

Chicago

"Binary quadratic form." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/binary-quadratic-form.

APA

encyclopegia.org. (2026). Binary quadratic form. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/binary-quadratic-form

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373412763 · 0.5 · snapshot enwiki-001373412763

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.