Definition
Integral binary quadratic form
A homogeneous quadratic polynomial in two variables with integer coefficients, with discriminant b²−4ac.
An integral binary quadratic form is a polynomial
Its discriminant is . The form is primitive if , and positive definite if for every nonzero , equivalently and . It is a quadratic form on together with its integral coordinate lattice.
Normalization
The middle coefficient is , not . The symmetric matrix of the form is , so its determinant is . Confusing these two middle-coefficient conventions changes the discriminant.
For instance, is primitive positive definite of discriminant . Integer changes of variables with determinant give proper equivalence.
References
- Andrew V. Sutherland, 18.785 Number Theory, Fall 2018, Problem Set 7, Problem 4, initial definitions.