Cauchy–Schwarz inequality

From HandWiki
Short description: Mathematical inequality relating inner products and norms

The Cauchy–Schwarz inequality (also called Cauchy–Bunyakovsky–Schwarz inequality)[1][2][3][4] is an upper bound on the inner product between two vectors in an inner product space in terms of the product of the vector norms. It is considered one of the most important and widely used inequalities in mathematics.[5]

The inequality for sums was published by Augustin-Louis Cauchy (1821). The corresponding inequality for integrals was published by Viktor Bunyakovsky (1859)[2] and Hermann Schwarz (1888). Schwarz gave the modern proof of the integral version.[5]

Statement of the inequality

The Cauchy–Schwarz inequality states that for all vectors [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] of an inner product space

[math]\displaystyle{ \left |\langle \mathbf{u}, \mathbf{v} \rangle\right |^2 \leq \langle \mathbf{u}, \mathbf{u} \rangle \cdot \langle \mathbf{v}, \mathbf{v} \rangle, }[/math]

 

 

 

 

([[#equation_Cauchy–Schwarz inequality [written using only the inner product]|Cauchy–Schwarz inequality [written using only the inner product]]])

where [math]\displaystyle{ \langle \cdot, \cdot \rangle }[/math] is the inner product. Examples of inner products include the real and complex dot product; see the examples in inner product. Every inner product gives rise to a Euclidean [math]\displaystyle{ l_2 }[/math] norm, called the canonical or induced norm, where the norm of a vector [math]\displaystyle{ \mathbf{u} }[/math] is denoted and defined by [math]\displaystyle{ \|\mathbf{u}\| := \sqrt{\langle \mathbf{u}, \mathbf{u} \rangle}, }[/math] where [math]\displaystyle{ \langle \mathbf{u}, \mathbf{u} \rangle }[/math] is always a non-negative real number (even if the inner product is complex-valued). By taking the square root of both sides of the above inequality, the Cauchy–Schwarz inequality can be written in its more familiar form:[6][7]

[math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle| \leq \|\mathbf{u}\| \|\mathbf{v}\|. }[/math]

 

 

 

 

(Cauchy–Schwarz inequality - written using norm and inner product)

Moreover, the two sides are equal if and only if [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] are linearly dependent.[8][9][10]

Special cases

Sedrakyan's lemma - Positive real numbers

Sedrakyan's inequality, also called Bergström's inequality, Engel's form, the T2 lemma, or Titu's lemma, states that for real numbers [math]\displaystyle{ u_1, u_2, \dots, u_n }[/math] and positive real numbers [math]\displaystyle{ v_1, v_2, \dots, v_n }[/math]: [math]\displaystyle{ \frac{\left(\sum_{i=1}^n u_i\right)^2 }{\sum_{i=1}^n v_i} \leq \sum_{i=1}^n \frac{u_i^2}{v_i} \quad \text{ or equivalently, } \quad \frac{\left(u_1 + u_2 + \cdots + u_n\right)^2}{v_1 + v_2 + \cdots + v_n} \leq \frac{u^2_1}{v_1} + \frac{u^2_2}{v_2} + \cdots + \frac{u^2_n}{v_n} . }[/math]

It is a direct consequence of the Cauchy–Schwarz inequality, obtained by using the dot product on [math]\displaystyle{ \R^n }[/math] upon substituting [math]\displaystyle{ u_i' = u_i / \sqrt{v_i} }[/math] and [math]\displaystyle{ v_i' = \sqrt{v_i} }[/math]. This form is especially helpful when the inequality involves fractions where the numerator is a perfect square.

R2 - The plane

Cauchy-Schwarz inequality in a unit circle of the Euclidean plane

The real vector space [math]\displaystyle{ \R^2 }[/math] denotes the 2-dimensional plane. It is also the 2-dimensional Euclidean space where the inner product is the dot product. If [math]\displaystyle{ \mathbf{u} = \left(u_1, u_2\right) }[/math] and [math]\displaystyle{ \mathbf{v} = \left(v_1, v_2\right) }[/math] then the Cauchy–Schwarz inequality becomes: [math]\displaystyle{ \langle \mathbf{u}, \mathbf{v} \rangle^2 = (\|\mathbf{u}\| \|\mathbf{v}\| \cos \theta)^2 \leq \|\mathbf{u}\|^2 \|\mathbf{v}\|^2, }[/math] where [math]\displaystyle{ \theta }[/math] is the angle between [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math].

The form above is perhaps the easiest in which to understand the inequality, since the square of the cosine can be at most 1, which occurs when the vectors are in the same or opposite directions. It can also be restated in terms of the vector coordinates [math]\displaystyle{ u_1 }[/math], [math]\displaystyle{ u_2 }[/math], [math]\displaystyle{ v_1 }[/math], and [math]\displaystyle{ v_2 }[/math] as [math]\displaystyle{ \left(u_1 v_1 + u_2 v_2\right)^2 \leq \left(u_1^2 + u_2^2\right) \left(v_1^2 + v_2^2\right), }[/math] where equality holds if and only if the vector [math]\displaystyle{ \left(u_1, u_2\right) }[/math] is in the same or opposite direction as the vector [math]\displaystyle{ \left(v_1, v_2\right) }[/math], or if one of them is the zero vector.

Rn - n-dimensional Euclidean space

In Euclidean space [math]\displaystyle{ \R^n }[/math] with the standard inner product, which is the dot product, the Cauchy–Schwarz inequality becomes: [math]\displaystyle{ \left(\sum_{i=1}^n u_i v_i\right)^2 \leq \left(\sum_{i=1}^n u_i^2\right) \left(\sum_{i=1}^n v_i^2\right). }[/math]

The Cauchy–Schwarz inequality can be proved using only elementary algebra in this case by observing that the difference of the right and the left hand side is [math]\displaystyle{ \frac{1}{2} \sum_{i,j=1,\ldots,n} (u_i v_j - u_j v_i)^2 \ge 0 }[/math]


or by considering the following quadratic polynomial in [math]\displaystyle{ x }[/math] [math]\displaystyle{ \left(u_1 x + v_1\right)^2 + \cdots + \left(u_n x + v_n\right)^2 = \left(\sum_i u_i^2\right) x^2 + 2 \left(\sum_i u_i v_i\right) x + \sum_i v_i^2. }[/math]

Since the latter polynomial is nonnegative, it has at most one real root, hence its discriminant is less than or equal to zero. That is, [math]\displaystyle{ \left(\sum_i u_i v_i\right)^2 - \left(\sum_i {u_i^2}\right) \left(\sum_i {v_i^2}\right) \leq 0. }[/math]


Cn - n-dimensional Complex space

If [math]\displaystyle{ \mathbf{u}, \mathbf{v} \in \Complex^n }[/math] with [math]\displaystyle{ \mathbf{u} = \left(u_1, \ldots, u_n\right) }[/math] and [math]\displaystyle{ \mathbf{v} = \left(v_1, \ldots, v_n\right) }[/math] (where [math]\displaystyle{ u_1, \ldots, u_n \in \Complex }[/math] and [math]\displaystyle{ v_1, \ldots, v_n \in \Complex }[/math]) and if the inner product on the vector space [math]\displaystyle{ \Complex^n }[/math] is the canonical complex inner product (defined by [math]\displaystyle{ \langle \mathbf{u}, \mathbf{v} \rangle := u_1 \overline{v_1} + \cdots + u_{n} \overline{v_n}, }[/math] where the bar notation is used for complex conjugation), then the inequality may be restated more explicitly as follows: [math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle|^2 = \left|\sum_{k=1}^n u_k\bar{v}_k\right|^2 \leq \langle \mathbf{u}, \mathbf{u} \rangle \langle \mathbf{v}, \mathbf{v} \rangle = \left(\sum_{k=1}^n u_k \bar{u}_k\right) \left(\sum_{k=1}^n v_k \bar{v}_k\right) = \sum_{j=1}^n \left|u_j\right|^2 \sum_{k=1}^n \left|v_k\right|^2. }[/math]

That is, [math]\displaystyle{ \left|u_1 \bar{v}_1 + \cdots + u_n \bar{v}_n\right|^2 \leq \left(\left|u_1\right|^2 + \cdots + \left|u_n\right|^2\right) \left(\left|v_1\right|^2 + \cdots + \left|v_n\right|^2\right). }[/math]

L2

For the inner product space of square-integrable complex-valued functions, the following inequality: [math]\displaystyle{ \left|\int_{\R^n} f(x) \overline{g(x)}\,dx\right|^2 \leq \int_{\R^n} |f(x)|^2\,dx \int_{\R^n} |g(x)|^2 \,dx. }[/math]

The Hölder inequality is a generalization of this.

Applications

Analysis

In any inner product space, the triangle inequality is a consequence of the Cauchy–Schwarz inequality, as is now shown: [math]\displaystyle{ \begin{alignat}{4} \|\mathbf{u} + \mathbf{v}\|^2 &= \langle \mathbf{u} + \mathbf{v}, \mathbf{u} + \mathbf{v} \rangle && \\ &= \|\mathbf{u}\|^2 + \langle \mathbf{u}, \mathbf{v} \rangle + \langle \mathbf{v}, \mathbf{u} \rangle + \|\mathbf{v}\|^2 ~ && ~ \text{ where } \langle \mathbf{v}, \mathbf{u} \rangle = \overline{\langle \mathbf{u}, \mathbf{v} \rangle} \\ &= \|\mathbf{u}\|^2 + 2 \operatorname{Re} \langle \mathbf{u}, \mathbf{v} \rangle + \|\mathbf{v}\|^2 && \\ &\leq \|\mathbf{u}\|^2 + 2|\langle \mathbf{u}, \mathbf{v} \rangle| + \|\mathbf{v}\|^2 && \\ &\leq \|\mathbf{u}\|^2 + 2\|\mathbf{u}\|\|\mathbf{v}\| + \|\mathbf{v}\|^2 ~ && ~ \text{ using CS}\\ &=(\|\mathbf{u}\| + \|\mathbf{v}\|)^2. && \end{alignat} }[/math]

Taking square roots gives the triangle inequality: [math]\displaystyle{ \|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\|. }[/math]

The Cauchy–Schwarz inequality is used to prove that the inner product is a continuous function with respect to the topology induced by the inner product itself.[11][12]

Geometry

The Cauchy–Schwarz inequality allows one to extend the notion of "angle between two vectors" to any real inner-product space by defining:[13][14] [math]\displaystyle{ \cos\theta_{\mathbf{u} \mathbf{v}} = \frac{\langle \mathbf{u}, \mathbf{v} \rangle}{\|\mathbf{u}\| \|\mathbf{v}\|}. }[/math]

The Cauchy–Schwarz inequality proves that this definition is sensible, by showing that the right-hand side lies in the interval [−1, 1] and justifies the notion that (real) Hilbert spaces are simply generalizations of the Euclidean space. It can also be used to define an angle in complex inner-product spaces, by taking the absolute value or the real part of the right-hand side,[15][16] as is done when extracting a metric from quantum fidelity.

Probability theory

Let [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] be random variables, then the covariance inequality[17][18] is given by: [math]\displaystyle{ \operatorname{Var}(X) \geq \frac{\operatorname{Cov}(X, Y)^2}{\operatorname{Var}(Y)}. }[/math]

After defining an inner product on the set of random variables using the expectation of their product, [math]\displaystyle{ \langle X, Y \rangle := \operatorname{E}(X Y), }[/math] the Cauchy–Schwarz inequality becomes [math]\displaystyle{ |\operatorname{E}(XY)|^2 \leq \operatorname{E}(X^2) \operatorname{E}(Y^2). }[/math]

To prove the covariance inequality using the Cauchy–Schwarz inequality, let [math]\displaystyle{ \mu = \operatorname{E}(X) }[/math] and [math]\displaystyle{ \nu = \operatorname{E}(Y), }[/math] then [math]\displaystyle{ \begin{align} |\operatorname{Cov}(X, Y)|^2 &= |\operatorname{E}((X - \mu)(Y - \nu))|^2 \\ &= |\langle X - \mu, Y - \nu \rangle |^2\\ &\leq \langle X - \mu, X - \mu \rangle \langle Y - \nu, Y - \nu \rangle \\ & = \operatorname{E}\left((X - \mu)^2\right) \operatorname{E}\left((Y - \nu)^2\right) \\ & = \operatorname{Var}(X) \operatorname{Var}(Y), \end{align} }[/math] where [math]\displaystyle{ \operatorname{Var} }[/math] denotes variance and [math]\displaystyle{ \operatorname{Cov} }[/math] denotes covariance.

Proofs

There are many different proofs[19] of the Cauchy–Schwarz inequality other than those given below.[5][7] When consulting other sources, there are often two sources of confusion. First, some authors define ⟨⋅,⋅⟩ to be linear in the second argument rather than the first. Second, some proofs are only valid when the field is [math]\displaystyle{ \mathbb R }[/math] and not [math]\displaystyle{ \mathbb C. }[/math][20]

This section gives proofs of the following theorem:

Cauchy–Schwarz inequality — Let [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] be arbitrary vectors in an inner product space over the scalar field [math]\displaystyle{ \mathbb{F}, }[/math] where [math]\displaystyle{ \mathbb F }[/math] is the field of real numbers [math]\displaystyle{ \R }[/math] or complex numbers [math]\displaystyle{ \Complex. }[/math] Then

[math]\displaystyle{ \left|\langle \mathbf{u}, \mathbf{v} \rangle\right| \leq \|\mathbf{u}\| \|\mathbf{v}\| }[/math]

 

 

 

 

(Cauchy–Schwarz Inequality)

with equality holding in the Cauchy–Schwarz Inequality if and only if [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] are linearly dependent.

Moreover, if [math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle| = \|\mathbf{u}\| \|\mathbf{v}\| }[/math] and [math]\displaystyle{ \mathbf{v} \neq \mathbf{0} }[/math] then [math]\displaystyle{ \mathbf{u} = \frac{\langle \mathbf{u}, \mathbf{v} \rangle}{\|\mathbf{v}\|^2} \mathbf{v}. }[/math]


In all of the proofs given below, the proof in the trivial case where at least one of the vectors is zero (or equivalently, in the case where [math]\displaystyle{ \|\mathbf{u}\|\|\mathbf{v}\|= 0 }[/math]) is the same. It is presented immediately below only once to reduce repetition. It also includes the easy part of the proof of the Equality Characterization given above; that is, it proves that if [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] are linearly dependent then [math]\displaystyle{ \left|\langle \mathbf{u}, \mathbf{v} \rangle\right| = \|\mathbf{u}\| \|\mathbf{v}\|. }[/math]

Proof of the trivial parts: Case where a vector is [math]\displaystyle{ \mathbf{0} }[/math] and also one direction of the Equality Characterization

By definition, [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] are linearly dependent if and only if one is a scalar multiple of the other. If [math]\displaystyle{ \mathbf{u} = c \mathbf{v} }[/math] where [math]\displaystyle{ c }[/math] is some scalar then [math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle| = |\langle c \mathbf{v}, \mathbf{v} \rangle| = |c \langle \mathbf{v}, \mathbf{v} \rangle| = |c|\|\mathbf{v}\| \|\mathbf{v}\| =\|c \mathbf{v}\| \|\mathbf{v}\| =\|\mathbf{u}\| \|\mathbf{v}\| }[/math]

which shows that equality holds in the Cauchy–Schwarz Inequality. The case where [math]\displaystyle{ \mathbf{v} = c \mathbf{u} }[/math] for some scalar [math]\displaystyle{ c }[/math] is very similar, with the main difference between the complex conjugation of [math]\displaystyle{ c: }[/math] [math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle| = |\langle \mathbf{u}, c \mathbf{u} \rangle| = \left|\overline{c} \langle \mathbf{u}, \mathbf{u} \rangle\right| = \left|\overline{c}\right| \|\mathbf{u}\| \|\mathbf{u}\| = |c| \|\mathbf{u}\| \|\mathbf{u}\| =\|\mathbf{u}\| \|c \mathbf{u}\| =\|\mathbf{u}\| \|\mathbf{v}\|. }[/math]

If at least one of [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] is the zero vector then [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] are necessarily linearly dependent (just scalar multiply the non-zero vector by the number [math]\displaystyle{ 0 }[/math] to get the zero vector; for example, if [math]\displaystyle{ \mathbf{u} = \mathbf{0} }[/math] then let [math]\displaystyle{ c = 0 }[/math] so that [math]\displaystyle{ \mathbf{u} = c \mathbf{v} }[/math]), which proves the converse of this characterization in this special case; that is, this shows that if at least one of [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] is [math]\displaystyle{ \mathbf{0} }[/math] then the Equality Characterization holds.

If [math]\displaystyle{ \mathbf{u} = \mathbf{0}, }[/math] which happens if and only if [math]\displaystyle{ \|\mathbf{u}\|= 0, }[/math] then [math]\displaystyle{ \|\mathbf{u}\| \|\mathbf{v}\| = 0 }[/math] and [math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle| = |\langle \mathbf{0}, \mathbf{v} \rangle| = |0| = 0 }[/math] so that in particular, the Cauchy–Schwarz inequality holds because both sides of it are [math]\displaystyle{ 0. }[/math] The proof in the case of [math]\displaystyle{ \mathbf{v} = \mathbf{0} }[/math] is identical.

Consequently, the Cauchy–Schwarz inequality only needs to be proven only for non-zero vectors and also only the non-trivial direction of the Equality Characterization must be shown.

Proof 1

The special case of [math]\displaystyle{ \mathbf{v} = \mathbf{0} }[/math] was proven above so it is henceforth assumed that [math]\displaystyle{ \mathbf{v} \neq \mathbf{0}. }[/math] The Cauchy–Schwarz inequality (and the rest of the theorem) is an almost immediate corollary of the following equality:[21]

[math]\displaystyle{ \frac{1}{\|\mathbf{v}\|^2} \left\|\|\mathbf{v}\|^2 \mathbf{u} - \langle \mathbf{u}, \mathbf{v} \rangle \mathbf{v}\right\|^2 ~=~ \|\mathbf{u}\|^2 \|\mathbf{v}\|^2 - |\langle \mathbf{u}, \mathbf{v} \rangle|^2 }[/math]

 

 

 

 

(Eq. 1)

Equality Eq. 1 is readily verified by elementarily expanding [math]\displaystyle{ \left\|\|\mathbf{v}\|^2 \mathbf{u} - \langle \mathbf{u}, \mathbf{v} \rangle \mathbf{v}\right\|^2 }[/math] (via the definition of the norm) and then simplifying:

This expansion does not require [math]\displaystyle{ \mathbf{v} }[/math] to be non-zero; however, [math]\displaystyle{ \mathbf{v} }[/math] must be non-zero in order to divide both sides by [math]\displaystyle{ \|\mathbf{v}\|^2 }[/math] and to deduce the Cauchy–Schwarz inequality from it. Swapping [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v} }[/math] gives rise to: [math]\displaystyle{ \left\|\|\mathbf{u}\|^2 \mathbf{v} - \overline{\langle \mathbf{u}, \mathbf{v} \rangle} \mathbf{u}\right\|^2 ~=~ \|\mathbf{u}\|^2 \left[\|\mathbf{u}\|^2\|\mathbf{v}\|^2 - |\langle \mathbf{u}, \mathbf{v} \rangle|^2\right] }[/math] and thus [math]\displaystyle{ \begin{alignat}{4} \|\mathbf{u}\|^2\|\mathbf{v}\|^2 \left[\|\mathbf{u}\|^2 \|\mathbf{v}\|^2 - |\langle \mathbf{u}, \mathbf{v} \rangle|^2\right] ~&=~ \|\mathbf{u}\|^2 \left\|\|\mathbf{v}\|^2 \mathbf{u} - \langle \mathbf{u}, \mathbf{v} \rangle \mathbf{v}\right\|^2 \\ ~&=~ \|\mathbf{v}\|^2 \left\|\|\mathbf{u}\|^2 \mathbf{v} - \overline{\langle \mathbf{u}, \mathbf{v} \rangle} \mathbf{u}\right\|^2. \\ \end{alignat} }[/math]

Proof 2

The special case of [math]\displaystyle{ \mathbf{v} = \mathbf{0} }[/math] was proven above so it is henceforth assumed that [math]\displaystyle{ \mathbf{v} \neq \mathbf{0}. }[/math] Let [math]\displaystyle{ \mathbf{z} := \mathbf{u} - \frac {\langle \mathbf{u}, \mathbf{v} \rangle} {\langle \mathbf{v}, \mathbf{v} \rangle} \mathbf{v}. }[/math]

It follows from the linearity of the inner product in its first argument that: [math]\displaystyle{ \langle \mathbf{z}, \mathbf{v} \rangle = \left\langle \mathbf{u} - \frac{\langle \mathbf{u}, \mathbf{v} \rangle} {\langle \mathbf{v}, \mathbf{v} \rangle} \mathbf{v}, \mathbf{v} \right\rangle = \langle \mathbf{u}, \mathbf{v} \rangle - \frac{\langle \mathbf{u}, \mathbf{v} \rangle} {\langle \mathbf{v}, \mathbf{v} \rangle} \langle \mathbf{v}, \mathbf{v} \rangle = 0. }[/math]

Therefore, [math]\displaystyle{ \mathbf{z} }[/math] is a vector orthogonal to the vector [math]\displaystyle{ \mathbf{v} }[/math] (Indeed, [math]\displaystyle{ \mathbf{z} }[/math] is the projection of [math]\displaystyle{ \mathbf{u} }[/math] onto the plane orthogonal to [math]\displaystyle{ \mathbf{v}. }[/math]) We can thus apply the Pythagorean theorem to [math]\displaystyle{ \mathbf{u}= \frac{\langle \mathbf{u}, \mathbf{v} \rangle} {\langle \mathbf{v}, \mathbf{v} \rangle} \mathbf{v} + \mathbf{z} }[/math] which gives [math]\displaystyle{ \|\mathbf{u}\|^2 = \left|\frac{\langle \mathbf{u}, \mathbf{v} \rangle}{\langle \mathbf{v}, \mathbf{v} \rangle}\right|^2 \|\mathbf{v}\|^2 + \|\mathbf{z}\|^2 = \frac{|\langle \mathbf{u}, \mathbf{v} \rangle|^2}{(\|\mathbf{v}\|^2 )^2} \,\|\mathbf{v}\|^2 + \|\mathbf{z}\|^2 = \frac{|\langle \mathbf{u}, \mathbf{v} \rangle|^2}{\|\mathbf{v}\|^2} + \|\mathbf{z}\|^2 \geq \frac{|\langle \mathbf{u}, \mathbf{v} \rangle|^2}{\|\mathbf{v}\|^2}. }[/math]

The Cauchy–Schwarz inequality follows by multiplying by [math]\displaystyle{ \|\mathbf{v}\|^2 }[/math] and then taking the square root. Moreover, if the relation [math]\displaystyle{ \geq }[/math] in the above expression is actually an equality, then [math]\displaystyle{ \|\mathbf{z}\|^2 = 0 }[/math] and hence [math]\displaystyle{ \mathbf{z} = \mathbf{0}; }[/math] the definition of [math]\displaystyle{ \mathbf{z} }[/math] then establishes a relation of linear dependence between [math]\displaystyle{ \mathbf{u} }[/math] and [math]\displaystyle{ \mathbf{v}. }[/math] The converse was proved at the beginning of this section, so the proof is complete. [math]\displaystyle{ \blacksquare }[/math]

Proof for real inner products

Let [math]\displaystyle{ (V, \langle \cdot, \cdot \rangle) }[/math] be a real inner product space. Consider an arbitrary pair [math]\displaystyle{ \mathbf{u}, \mathbf{v} \in V }[/math] and the function [math]\displaystyle{ p : \R \to \R }[/math] defined by [math]\displaystyle{ p(t) = \langle t\mathbf{u} + \mathbf{v}, t\mathbf{u} + \mathbf{v}\rangle. }[/math] Since the inner product is positive-definite, [math]\displaystyle{ p(t) }[/math] only takes non-negative values. On the other hand, [math]\displaystyle{ p(t) }[/math] can be expanded using the bilinearity of the inner product and using the fact that [math]\displaystyle{ \langle \mathbf{u}, \mathbf{v} \rangle = \langle \mathbf{v}, \mathbf{u} \rangle }[/math] for real inner products: [math]\displaystyle{ p(t) = \Vert \mathbf{u} \Vert^2 t^2 + t \left[\langle \mathbf{u}, \mathbf{v} \rangle + \langle \mathbf{v}, \mathbf{u} \rangle\right] + \Vert \mathbf{v} \Vert^2 = \Vert \mathbf{u} \Vert^2 t^2 + 2t \langle \mathbf{u}, \mathbf{v} \rangle + \Vert \mathbf{v} \Vert^2. }[/math] Thus, [math]\displaystyle{ p }[/math] is a polynomial of degree [math]\displaystyle{ 2 }[/math] (unless [math]\displaystyle{ u = 0, }[/math] which is a case that can be independently verified). Since the sign of [math]\displaystyle{ p }[/math] does not change, the discriminant of this polynomial must be non-positive: [math]\displaystyle{ \Delta = 4 \left(\langle \mathbf{u}, \mathbf{v} \rangle ^2 - \Vert \mathbf{u} \Vert^2 \Vert \mathbf{v} \Vert^2\right) \leqslant 0. }[/math] The conclusion follows.

For the equality case, notice that [math]\displaystyle{ \Delta = 0 }[/math] happens if and only if [math]\displaystyle{ p(t) = (t\Vert \mathbf{u} \Vert + \Vert \mathbf{v} \Vert)^2. }[/math] If [math]\displaystyle{ t_0 = -\Vert \mathbf{v} \Vert / \Vert \mathbf{u} \Vert, }[/math] then [math]\displaystyle{ p(t_0) = \langle t_0\mathbf{u} + \mathbf{v},t_0\mathbf{u} + \mathbf{v}\rangle = 0, }[/math] and hence [math]\displaystyle{ \mathbf{v} = -t_0\mathbf{u}. }[/math]

Proof for the dot product

The Cauchy–Schwarz inequality in the case where the inner product is the dot product on [math]\displaystyle{ \R^n }[/math] is now proven. The Cauchy–Schwarz inequality may be rewritten as [math]\displaystyle{ \left|\mathbf{a} \cdot \mathbf{b}\right|^2 \leq \left\|\mathbf{a}\right\|^2 \, \left\|\mathbf{b}\right\|^2 }[/math] or equivalently, [math]\displaystyle{ \left(\mathbf{a} \cdot \mathbf{b}\right)^2 \leq \left(\mathbf{a} \cdot \mathbf{a}\right) \, \left(\mathbf{b} \cdot \mathbf{b}\right) }[/math] for [math]\displaystyle{ \mathbf{a} := \left(a_1, \ldots, a_n\right), \mathbf{b} := \left(b_1, \ldots, b_n\right) \in \R^n, }[/math] which expands to: [math]\displaystyle{ \left(a_1^2 + a_2^2 + \cdots + a_n^2\right) \left(b_1^2 + b_2^2 + \cdots + b_n^2\right) \geq \left(a_1b_1 + a_2b_2 + \cdots + a_nb_n\right)^2. }[/math]

To simplify, let [math]\displaystyle{ \begin{align} A &= a_1^2 + a_2^2 + \cdots + a_n^2, \\ B &= b_1^2 + b_2^2 + \cdots + b_n^2 \\ D &= a_1 b_1 + a_2 b_2 + \cdots + a_n b_n \\\end{align} }[/math] so that the statement that remains to be to proven can be written as [math]\displaystyle{ A B \geq D^2, }[/math] which can be rearranged to [math]\displaystyle{ D^2 - A B \leq 0. }[/math] The discriminant of the quadratic equation [math]\displaystyle{ A x^2 + 2 D x + B }[/math] is [math]\displaystyle{ 4 D^2 - 4 A B. }[/math]

Therefore, to complete the proof it is sufficient to prove that this quadratic either has no real roots or exactly one real root, because this will imply: [math]\displaystyle{ 4 \left(D^2 - A B\right) \leq 0. }[/math]

Substituting the values of [math]\displaystyle{ A, B, D }[/math] into [math]\displaystyle{ A x^2 + 2 D x + B }[/math] gives: [math]\displaystyle{ \begin{alignat}{4} A x^2 + 2 D x + B &= \left(a_1^2 + a_2^2 + \cdots + a_n^2\right) x^2 + 2 \left(a_1 b_1 + a_2 b_2 + \cdots + a_n b_n\right) x + \left(b_1^2 + b_2^2 + \cdots + b_n^2\right) \\ &= \left(a_1^2 x^2 + 2a_1 b_1 x + b_1^2\right) + \left(a_2^2 x^2 + 2a_2 b_2 x + b_2^2\right) + \cdots + \left(a_n^2 x^2 + 2a_n b_n x + b_n^2\right) \\ &= \left(a_1x + b_1\right)^2 + \left(a_2 x + b_2\right)^2 + \cdots + \left(a_n x + b_n\right)^2 \\ &\geq 0 \end{alignat} }[/math] which is a sum of terms that are each [math]\displaystyle{ \,\geq 0\, }[/math] by the trivial inequality: [math]\displaystyle{ r^2 \geq 0 }[/math] for all [math]\displaystyle{ r \in \R. }[/math] This proves the inequality and so to finish the proof, it remains to show that equality is achievable. The equality [math]\displaystyle{ a_i x = - b_i }[/math] is the equality case for Cauchy–Schwarz after inspecting [math]\displaystyle{ \left(a_1 x + b_1\right)^2 + \left(a_2 x + b_2\right)^2 + \cdots + \left(a_n x + b_n\right)^2 \geq 0, }[/math] which proves that equality is achievable. [math]\displaystyle{ \blacksquare }[/math]

Generalizations

Various generalizations of the Cauchy–Schwarz inequality exist. Hölder's inequality generalizes it to [math]\displaystyle{ L^p }[/math] norms. More generally, it can be interpreted as a special case of the definition of the norm of a linear operator on a Banach space (Namely, when the space is a Hilbert space). Further generalizations are in the context of operator theory, e.g. for operator-convex functions and operator algebras, where the domain and/or range are replaced by a C*-algebra or W*-algebra.

An inner product can be used to define a positive linear functional. For example, given a Hilbert space [math]\displaystyle{ L^2(m), m }[/math] being a finite measure, the standard inner product gives rise to a positive functional [math]\displaystyle{ \varphi }[/math] by [math]\displaystyle{ \varphi (g) = \langle g, 1 \rangle. }[/math] Conversely, every positive linear functional [math]\displaystyle{ \varphi }[/math] on [math]\displaystyle{ L^2(m) }[/math] can be used to define an inner product [math]\displaystyle{ \langle f, g \rangle _\varphi := \varphi\left(g^* f\right), }[/math] where [math]\displaystyle{ g^* }[/math] is the pointwise complex conjugate of [math]\displaystyle{ g. }[/math] In this language, the Cauchy–Schwarz inequality becomes[22] [math]\displaystyle{ \left|\varphi\left(g^* f\right)\right|^2 \leq \varphi\left(f^* f\right) \varphi\left(g^* g\right), }[/math]

which extends verbatim to positive functionals on C*-algebras:

Cauchy–Schwarz inequality for positive functionals on C*-algebras[23][24] — If [math]\displaystyle{ \varphi }[/math] is a positive linear functional on a C*-algebra [math]\displaystyle{ A, }[/math] then for all [math]\displaystyle{ a, b \in A, }[/math] [math]\displaystyle{ \left|\varphi\left(b^*a\right)\right|^2 \leq \varphi\left(b^*b\right) \varphi\left(a^*a\right). }[/math]

The next two theorems are further examples in operator algebra.

Kadison–Schwarz inequality[25][26] (Named after Richard Kadison) — If [math]\displaystyle{ \varphi }[/math] is a unital positive map, then for every normal element [math]\displaystyle{ a }[/math] in its domain, we have [math]\displaystyle{ \varphi(a^*a) \geq \varphi\left(a^*\right) \varphi(a) }[/math] and [math]\displaystyle{ \varphi\left(a^*a\right) \geq \varphi(a) \varphi\left(a^*\right). }[/math]

This extends the fact [math]\displaystyle{ \varphi\left(a^*a\right) \cdot 1 \geq \varphi(a)^* \varphi(a) = |\varphi(a)|^2, }[/math] when [math]\displaystyle{ \varphi }[/math] is a linear functional. The case when [math]\displaystyle{ a }[/math] is self-adjoint, that is, [math]\displaystyle{ a = a^*, }[/math] is sometimes known as Kadison's inequality.

Cauchy–Schwarz inequality (Modified Schwarz inequality for 2-positive maps[27]) — For a 2-positive map [math]\displaystyle{ \varphi }[/math] between C*-algebras, for all [math]\displaystyle{ a, b }[/math] in its domain, [math]\displaystyle{ \varphi(a)^*\varphi(a) \leq \Vert\varphi(1)\Vert\varphi\left(a^*a\right), \text{ and } }[/math] [math]\displaystyle{ \Vert\varphi\left(a^* b\right)\Vert^2 \leq \Vert\varphi\left(a^*a\right)\Vert \cdot \Vert\varphi\left(b^*b\right)\Vert. }[/math]

Another generalization is a refinement obtained by interpolating between both sides of the Cauchy–Schwarz inequality:

Callebaut's Inequality[28] — For reals [math]\displaystyle{ 0 \leqslant s \leqslant t \leqslant 1, }[/math] [math]\displaystyle{ \left(\sum_{i=1}^n a_i b_i\right)^2 ~\leqslant~ \left(\sum_{i=1}^n a_i^{1+s} b_i^{1-s}\right) \left(\sum_{i=1}^n a_i^{1-s} b_i^{1+s}\right) ~\leqslant~ \left(\sum_{i=1}^n a_i^{1+t} b_i^{1-t}\right) \left(\sum_{i=1}^n a_i^{1-t} b_i^{1+t}\right) ~\leqslant~ \left(\sum_{i=1}^n a_i^2\right) \left(\sum_{i=1}^n b_i^2\right). }[/math]

This theorem can be deduced from Hölder's inequality.[29] There are also non-commutative versions for operators and tensor products of matrices.[30]

Several matrix versions of the Cauchy–Schwarz inequality and Kantorovich inequality are applied to linear regression models.[31] [32]

See also

Notes

  1. In fact, it follows immediately from Eq. 1 that when [math]\displaystyle{ \mathbf{v} \neq \mathbf{0}, }[/math] then [math]\displaystyle{ |\langle \mathbf{u}, \mathbf{v} \rangle| = \|\mathbf{u}\|\|\mathbf{v}\| }[/math] if and only if [math]\displaystyle{ \|\mathbf{v}\|^2 \mathbf{u} = \langle \mathbf{u}, \mathbf{v} \rangle \mathbf{v}. }[/math]

Citations

  1. O'Connor, J.J.; Robertson, E.F.. "Hermann Amandus Schwarz". https://mathshistory.st-andrews.ac.uk/Biographies/Schwarz/. 
  2. 2.0 2.1 Hazewinkel, Michiel, ed. (2001), "Bunyakovskii inequality", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=b/b017770 
  3. Ćurgus, Branko. "Cauchy-Bunyakovsky-Schwarz inequality". http://www.wwu.edu/faculty/curgus/Courses/Math_pages/Math_504/Cauchy-Schwarz-Bunyakovsky.html. 
  4. Joyce, David E.. "Cauchy's inequality". https://mathcs.clarku.edu/~djoyce/ma130/cauchy.pdf. 
  5. 5.0 5.1 5.2 Steele, J. Michael (2004). The Cauchy–Schwarz Master Class: an Introduction to the Art of Mathematical Inequalities. The Mathematical Association of America. p. 1. ISBN 978-0521546775. http://www-stat.wharton.upenn.edu/~steele/Publications/Books/CSMC/CSMC_index.html. "...there is no doubt that this is one of the most widely used and most important inequalities in all of mathematics." 
  6. Strang, Gilbert (19 July 2005). "3.2". Linear Algebra and its Applications (4th ed.). Stamford, CT: Cengage Learning. pp. 154–155. ISBN 978-0030105678. 
  7. 7.0 7.1 Hunter, John K.; Nachtergaele, Bruno (2001). Applied Analysis. World Scientific. ISBN 981-02-4191-7. https://books.google.com/books?id=oOYQVeHmNk4C. 
  8. Bachmann, George; Narici, Lawrence; Beckenstein, Edward (2012-12-06). Fourier and Wavelet Analysis. Springer Science & Business Media. p. 14. ISBN 9781461205050. https://books.google.com/books?id=PkHhBwAAQBAJ. 
  9. Hassani, Sadri (1999). Mathematical Physics: A Modern Introduction to Its Foundations. Springer. p. 29. ISBN 0-387-98579-4. "Equality holds iff <c|c>=0 or |c>=0. From the definition of |c>, we conclude that |a> and |b> must be proportional." 
  10. Axler, Sheldon (2015). Linear Algebra Done Right, 3rd Ed.. Springer International Publishing. p. 172. ISBN 978-3-319-11079-0. https://books.google.com/books?id=CQWwoQEACAAJ. "This inequality is an equality if and only if one of u, v is a scalar multiple of the other." 
  11. Bachman, George; Narici, Lawrence (2012-09-26). Functional Analysis. Courier Corporation. pp. 141. ISBN 9780486136554. https://books.google.com/books?id=_lTDAgAAQBAJ. 
  12. Swartz, Charles (1994-02-21). Measure, Integration and Function Spaces. World Scientific. pp. 236. ISBN 9789814502511. https://books.google.com/books?id=SsbsCgAAQBAJ. 
  13. Ricardo, Henry (2009-10-21). A Modern Introduction to Linear Algebra. CRC Press. pp. 18. ISBN 9781439894613. https://books.google.com/books?id=s7bMBQAAQBAJ. 
  14. Banerjee, Sudipto; Roy, Anindya (2014-06-06). Linear Algebra and Matrix Analysis for Statistics. CRC Press. pp. 181. ISBN 9781482248241. https://books.google.com/books?id=WDTcBQAAQBAJ. 
  15. Valenza, Robert J. (2012-12-06). Linear Algebra: An Introduction to Abstract Mathematics. Springer Science & Business Media. pp. 146. ISBN 9781461209010. https://books.google.com/books?id=7x8MCAAAQBAJ. 
  16. Constantin, Adrian (2016-05-21). Fourier Analysis with Applications. Cambridge University Press. pp. 74. ISBN 9781107044104. https://books.google.com/books?id=JnMZDAAAQBAJ. 
  17. Mukhopadhyay, Nitis (2000-03-22). Probability and Statistical Inference. CRC Press. pp. 150. ISBN 9780824703790. https://books.google.com/books?id=TMSnGkr_DxwC. 
  18. Keener, Robert W. (2010-09-08). Theoretical Statistics: Topics for a Core Course. Springer Science & Business Media. pp. 71. ISBN 9780387938394. https://books.google.com/books?id=aVJmcega44cC. 
  19. Wu, Hui-Hua; Wu, Shanhe (April 2009). "Various proofs of the Cauchy-Schwarz inequality". Octogon Mathematical Magazine 17 (1): 221–229. ISBN 978-973-88255-5-0. ISSN 1222-5657. http://www.uni-miskolc.hu/~matsefi/Octogon/volumes/volume1/article1_19.pdf. Retrieved 18 May 2016. 
  20. Aliprantis, Charalambos D.; Border, Kim C. (2007-05-02). Infinite Dimensional Analysis: A Hitchhiker's Guide. Springer Science & Business Media. ISBN 9783540326960. https://books.google.com/books?id=4hIq6ExH7NoC. 
  21. 21.0 21.1 Halmos 1982, pp. 2, 167.
  22. Faria, Edson de; Melo, Welington de (2010-08-12). Mathematical Aspects of Quantum Field Theory. Cambridge University Press. pp. 273. ISBN 9781139489805. https://books.google.com/books?id=u9M9PFLNpMMC. 
  23. Lin, Huaxin (2001-01-01). An Introduction to the Classification of Amenable C*-algebras. World Scientific. pp. 27. ISBN 9789812799883. https://books.google.com/books?id=2qru8d7BCAAC. 
  24. Arveson, W. (2012-12-06). An Invitation to C*-Algebras. Springer Science & Business Media. pp. 28. ISBN 9781461263715. https://books.google.com/books?id=d5TqBwAAQBAJ. 
  25. Størmer, Erling (2012-12-13). Positive Linear Maps of Operator Algebras. Springer Monographs in Mathematics. Springer Science & Business Media. ISBN 9783642343698. https://books.google.com/books?id=lQtKAIONqwIC. 
  26. Kadison, Richard V. (1952-01-01). "A Generalized Schwarz Inequality and Algebraic Invariants for Operator Algebras". Annals of Mathematics 56 (3): 494–503. doi:10.2307/1969657. 
  27. Paulsen, Vern (2002). Completely Bounded Maps and Operator Algebras. Cambridge Studies in Advanced Mathematics. 78. Cambridge University Press. p. 40. ISBN 9780521816694. https://books.google.com/books?id=VtSFHDABxMIC&pg=PA40. 
  28. Callebaut, D.K. (1965). "Generalization of the Cauchy–Schwarz inequality". J. Math. Anal. Appl. 12 (3): 491–494. doi:10.1016/0022-247X(65)90016-8. 
  29. Callebaut's inequality. Entry in the AoPS Wiki. https://artofproblemsolving.com/wiki/index.php?title=Callebaut%27s_Inequality. 
  30. Moslehian, M.S.; Matharu, J.S.; Aujla, J.S. (2011). "Non-commutative Callebaut inequality". Linear Algebra and Its Applications 436 (9): 3347–3353. doi:10.1016/j.laa.2011.11.024. 
  31. Liu, Shuangzhe; Neudecker, Heinz (1999). "A survey of Cauchy-Schwarz and Kantorovich-type matrix inequalities". Statistical Papers 40: 55–73. doi:10.1007/BF02927110. 
  32. Liu, Shuangzhe; Trenkler, Götz; Kollo, Tõnu; von Rosen, Dietrich; Baksalary, Oskar Maria (2023). "Professor Heinz Neudecker and matrix differential calculus" (in en). Statistical Papers. doi:10.1007/s00362-023-01499-w. 

References

External links