Write the symmetric matrix associated with the quadratic form