diagonalization and quadratic forms section 36 supplement 1378104