In mathematics, a binary quadratic form is a quadratic form in two variables. More concretely, it is a homogeneous polynomial of degree 2 in two variables
: q(x,y)=ax^2+bxy+cy^2, \,
where a, b, c are the coefficients. Properties of binary quadratic forms depend in an essential way on the nature of the coefficients, which may be real numbers, rational numbers, or in the most delicate case, integers. Arithmetical aspects of the theory of binary quadratic forms are related to the arithmetic of quadratic fields and have been much studied, notably, by Gauss in Section V of Disquisitiones Ar...