∣⟨x,y⟩∣≤∥x∥∥y∥ — the inner product never exceeds the product of the norms. Proved from the discriminant of 0≤∥x−ty∥2; equality holds exactly for parallel vectors.
∣⟨x,y⟩∣≤∥x∥∥y∥
∥x+y∥≤∥x∥+∥y∥
Examples & Exercises
Prove the Cauchy–Schwarz inequality ∣⟨x,y⟩∣≤∥x∥∥y∥ in Rn by the discriminant argument.
0≤∥x−ty∥2=∥y∥2t2−2⟨x,y⟩t+∥x∥2(t∈R)
Δ=4⟨x,y⟩2−4∥x∥2∥y∥2≤0
θ=0: y=(1,0)∥x, so ∣⟨x,y⟩∣=3=∥x∥∥y∥ — the equality case (discriminant 0) is visible.Show proof
If y=0, both sides are 0 and the claim is trivial. Assume y=0.
For every real t, 0≤∥x−ty∥2. Expanding the inner product, ∥x−ty∥2=⟨x−ty,x−ty⟩=∥y∥2t2−2⟨x,y⟩t+∥x∥2, so the quadratic ∥y∥2t2−2⟨x,y⟩t+∥x∥2 in t is always nonnegative.
A quadratic that is always nonnegative has nonpositive discriminant: Δ=4⟨x,y⟩2−4∥y∥2∥x∥2≤0. Rearranging gives ⟨x,y⟩2≤∥x∥2∥y∥2, i.e. ∣⟨x,y⟩∣≤∥x∥∥y∥.
The same argument works in every inner product space. In ℓ2, applying the RN case to the first N terms gives ∣∑n≤Nxnyn∣≤∥x∥∥y∥; letting N→∞ shows the series ∑xnyn converges absolutely, so the inner product ⟨x,y⟩=∑n=1∞xnyn is well defined.
Prove that equality ∣⟨x,y⟩∣=∥x∥∥y∥ in Cauchy–Schwarz holds if and only if x and y are linearly dependent.
∣⟨x,y⟩∣=∥x∥∥y∥⟺x,y are linearly dependent
θ=π/2: x⊥y, so ⟨x,y⟩=0<3=∥x∥∥y∥ — x and y are linearly independent and equality fails.Show proof
If y=0, both sides are 0 so equality holds, and {x,0} is linearly dependent, making both directions trivial. Assume henceforth y=0.
(⇐) If x and y are linearly dependent, x=cy for some scalar c. Then ∣⟨x,y⟩∣=∣⟨cy,y⟩∣=∣c∣∥y∥2=∥cy∥∥y∥=∥x∥∥y∥.
(⇒) If equality holds, the discriminant of the quadratic ∥y∥2t2−2⟨x,y⟩t+∥x∥2 from the discriminant argument is 0, so it has a real root t0. At that root 0=∥y∥2t02−2⟨x,y⟩t0+∥x∥2=∥x−t0y∥2, hence x=t0y — i.e. x and y are linearly dependent.
Deduce the triangle inequality ∥x+y∥≤∥x∥+∥y∥ as a corollary of Cauchy–Schwarz.