Orthogonal Change of Variables for Quadratic Forms