In mathematics, the Cauchy Schwarz inequality is a useful inequality encountered in many different settings, such as linear algebra applied to vectors, in analysis applied to infinite series and integration of products, and in probability theory, applied to variances and covariances. The general formulation of the Heisenberg uncertainty principle is derived using the Cauchy Schwarz inequality in the Hilbert space of pure quantum states.