The discriminant of a binary quadratic form
is defined by
It is equal to four times the corresponding binary quadratic form determinant.
Unfortunately, some authors define the discriminant of a binary quadratic form as the negative of above, so care is needed when consulting the literature.