Two f,gf,g are properly equivalent if there is a matrix

γ=(rstu)∈SL⁡2(Z)\gamma=\begin{pmatrix}r&s\\t&u\end{pmatrix}\in\operatorname{SL}_2(\mathbb Z)

such that g(x,y)=f(rx+sy,tx+uy)g(x,y)=f(rx+sy,tx+uy). Thus a proper form class is an orbit for determinant-one integral changes of variables. Allowing determinant −1-1 as well gives a different, coarser equivalence relation.

Preserved data

The discriminant changes by the square of the determinant of the substitution matrix, so proper equivalence preserves it. Primitivity is preserved because both the matrix and its inverse have integer entries. Positive definiteness is preserved by invertible real substitution.

Quadratic ideals

For a negative fundamental discriminant DD, proper classes of primitive positive definite forms correspond to of the quadratic field of discriminant DD. The construction sends (a,b,c)(a,b,c) to the ideal

aZ+−b+D2Z.a\mathbb Z+\frac{-b+\sqrt D}{2}\mathbb Z.

For nonfundamental discriminants the corresponding setting is the of the quadratic order, rather than all ideals of its .

References
  1. Andrew V. Sutherland, 18.785 Number Theory, Fall 2018, Problem Set 7, Problem 4(b)–(c), for fundamental discriminants.
  2. David A. Cox, Primes of the Form x² + ny², §7.B, Theorem 7.7, general imaginary quadratic orders.