MathLabs
TheoremProved

Cauchy–Schwarz inequality

Statement

For real (or complex) vectors u=(u1,…,un)u=(u_1,\dots,u_n) and v=(v1,…,vn)v=(v_1,\dots,v_n), ∣∑i=1nuivi‾∣2≤(∑i=1n∣ui∣2)(∑i=1n∣vi∣2)\left|\sum_{i=1}^n u_i\overline{v_i}\right|^2 \le \left(\sum_{i=1}^n |u_i|^2\right)\left(\sum_{i=1}^n |v_i|^2\right), with equality iff uu and vv are linearly dependent.

Why is it true?

The inequality is a disguised statement about angles: ∑uivi\sum u_iv_i is the dot product ∥u∥∥v∥cos⁡θ\lVert u\rVert\lVert v\rVert\cos\theta, and cos⁡θ\cos\theta can never exceed 11 in absolute value. So the inequality just says that projecting one vector onto another can never produce something longer than the vectors themselves allow — the projection is largest exactly when the vectors point in the same (or opposite) direction.

Proof sketch

For real vectors, consider the quadratic f(t)=∑i(tui−vi)2=t2∑ui2−2t∑uivi+∑vi2≥0f(t)=\sum_i (tu_i - v_i)^2 = t^2\sum u_i^2 - 2t\sum u_iv_i + \sum v_i^2 \ge 0 for all t∈Rt \in \mathbb{R}: its discriminant must be ≤0\le 0, which rearranges directly into the inequality. In general (for both real and complex vectors), Lagrange's identity (∑i∣ui∣2)(∑i∣vi∣2)−∣∑iuivi‾∣2=∑i<j∣uivj−ujvi∣2≥0\left(\sum_i |u_i|^2\right)\left(\sum_i |v_i|^2\right) - \left|\sum_i u_i\overline{v_i}\right|^2 = \sum_{i<j} |u_iv_j - u_jv_i|^2 \ge 0 yields the inequality immediately and shows that equality holds iff uivj=ujviu_iv_j = u_jv_i for all i,ji,j, i.e. uu and vv are linearly dependent.

Proved by

Topics that use this theorem

Related theorems

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. G. H. Hardy, J. E. Littlewood, G. Pólya (1934). Inequalities