Cauchy-Schwarz Inequality (Finite-Dimensional Real Inner Product Spaces)
Statement: Let and be vectors in with the standard Euclidean inner product . Then,
[
|\langle \mathbf{u}, \mathbf{v} \rangle| \leq |\mathbf{u}| |\mathbf{v}|,
]
where and . Equivalently,
[
\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).
]
Equality holds if and only if and are linearly dependent (i.e., one is a scalar multiple of the other).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Proof: (For real vectors; the absolute value follows immediately since the inequality is unchanged under sign flips.)
Consider the quadratic function in the real variable t:
[
f(t) = \sum_{i=1}^n (u_i t + v_i)^2 = \sum_{i=1}^n u_i^2 t^2 + 2 t \sum_{i=1}^n u_i v_i + \sum_{i=1}^n v_i^2 = At^2 + Bt + C,
]
where A=∑ui2≥0, B=2∑uivi, and C=∑vi2≥0.
Since f(t)≥0 for all real t (as it is a sum of squares), this quadratic in t is non-negative everywhere. For a quadratic At2+Bt+C with A>0 (or A=0 and B=C=0), the discriminant must satisfy D=B2−4AC≤0 (if A=0, then B=C=0 trivially holds by non-negativity).
Thus,
[
B^2 - 4AC \leq 0 \implies B^2 \leq 4AC \implies (2 \sum u_i v_i)^2 \leq 4 \left( \sum u_i^2 \right) \left( \sum v_i^2 \right) \implies \left( \sum u_i v_i \right)^2 \leq \left( \sum u_i^2 \right) \left( \sum v_i^2 \right).
]
If A=0, then u=0, so both sides are zero. The absolute value version follows by replacing v with −v if needed.
Equality case:D=0 iff there exists t0 such that f(t0)=0, i.e., uit0+vi=0 for all i, so v=−t0u (linear dependence).
This proof extends immediately to any real inner product space by replacing sums with inner products, and to complex spaces via ∣⟨u,v⟩∣2=⟨u,v⟩⟨u,v⟩≤∥u∥2∥v∥2 using the same quadratic argument on ⟨u+tv,u+tv⟩≥0.