For a Quadratic Form in the canonical form
References
Gradshteyn, I. S. and Ryzhik, I. M. Tables of Integrals, Series, and Products, 5th ed. San Diego, CA: Academic Press, p. 1105, 1979.