From Wikipedia, the free encyclopedia
In mathematics, the Cauchy-Schwarz inequality, also known as the Schwarz inequality, or the Cauchy-Bunyakovski-Schwarz inequality, named after Augustin Louis Cauchy, Hermann Amandus Schwarz and Viktor Yakovlevich Bunyakovsky, 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 inequality states that if x and y are elements of real or complex inner product spaces then
![{\displaystyle |\langle x,y\rangle |^{2}\leq \langle x,x\rangle \cdot \langle y,y\rangle .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4e69a28efcfa3ed173401f978c9432529fa0cbce)
The two sides are equal if and only if x and y are linearly dependent.
An important consequence of the Cauchy-Schwarz inequality is that the inner product is a continuous function.
Another form of the Cauchy-Schwarz inequality is given using the notation of norm, as explained under norms on inner product spaces, as
![{\displaystyle |\langle x,y\rangle |\leq \|x\|\cdot \|y\|.\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e17c70faf19166b0eb83787189bc892003c83f1e)
Proof
As the inequality is trivially true in the case y = 0, we may assume <y, y> is nonzero. Let
. Then,
![{\displaystyle 0\leq \left\|x-\lambda y\right\|^{2}=\langle x-\lambda y,x-\lambda y\rangle }](https://wikimedia.org/api/rest_v1/media/math/render/svg/89a81a894e399c2ae3ecbc028075ad3caec7d163)
![{\displaystyle =\langle x,x\rangle -\lambda \langle x,y\rangle -{\overline {\lambda }}\langle y,x\rangle +|\lambda |^{2}\langle y,y\rangle .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3498d49ff423289ff02502e126274d5124fe58e1)
Choosing
![{\displaystyle \lambda =\langle y,x\rangle \cdot \langle y,y\rangle ^{-1}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2370b2d568edc162b7bf0a2833dfc6313c605401)
we obtain
![{\displaystyle 0\leq \langle x,x\rangle -|\langle x,y\rangle |^{2}\cdot \langle y,y\rangle ^{-1}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d97322beccd0059607a98a2562090ec1db65b3a2)
which is true if and only if
![{\displaystyle |\langle x,y\rangle |^{2}\leq \langle x,x\rangle \cdot \langle y,y\rangle }](https://wikimedia.org/api/rest_v1/media/math/render/svg/2f7d19c1e376ec5db526ab45b1b3b968d51578e1)
or equivalently:
![{\displaystyle {\big |}\langle x,y\rangle {\big |}\leq \left\|x\right\|\left\|y\right\|.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ae7e18844a9c9af94ad115da743e4a211a7ac155)
Q.E.D.
Notable special cases
![{\displaystyle \left(\sum _{i=1}^{n}x_{i}y_{i}\right)^{2}\leq \left(\sum _{i=1}^{n}x_{i}^{2}\right)\left(\sum _{i=1}^{n}y_{i}^{2}\right).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/eed7585c4a3fa7684bdfccefb3578fe682b2669f)
![{\displaystyle \left|\int f^{(}x)g(x)\,dx\right|^{2}\leq \int \left|f(x)\right|^{2}\,dx\cdot \int \left|g(x)\right|^{2}\,dx.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d310ac316ac21928e7387cf5b7927c2841f01346)
A generalization of these two inequalities is the Hölder inequality.
- A notable strengthening of the basic inequality occurs in dimension n = 3, where a stronger equality holds:
![{\displaystyle \langle x,x\rangle \cdot \langle y,y\rangle =|\langle x,y\rangle |^{2}+|x\times y|^{2}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2ae88478ae9275946fdd82f48f40aee92b7b4270)
See also