以內積證明柯西—施瓦茲不等式 | 應用範例
Proof of the Cauchy–Schwarz Inequality Using Inner Product 柯西—施瓦茲不等式如下所示: 若 $a_1$,$a_2$,$...$,$a_n$,以及 $b_1$,$b_2$,$...$,$b_n$ 均為實數,則 $(a_1b_1+...+a_nb_n)^2\le (a_1^2+...+a_n^2)(b_1^2+...+b_n^2)$ 證明: 令 $\mathbf A$ 與 $\mathbf B$ 為 $n$ 維空間的兩個向量, $$\mathbf A=(a_1,...,a_n)\;\;\;\;\;\;且\;\;\;\;\;\;\mathbf B=(b_1,...,b_n)$$ 已知 $$\mathbf A \cdot \mathbf B=\Vert \mathbf A \Vert \Vert\mathbf B\Vert\cos \theta$$ 其中的 $0\le\theta \le \pi$,是 $\mathbf A$ 與 $\mathbf B$ 之間的夾角。 則 $$\cos \theta =\frac{\mathbf A \cdot \mathbf B}{\Vert\mathbf A\Vert\Vert\mathbf B||}\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;$$ $$=\frac{a_1b_1+...+a_nb_n}{(a_1^2+...+a_n^2)^{1/2}(b_1^2+...+b_n^2)^{1/2}}$$ 又已知 $$\vert \cos \theta \; \vert \le 1$$ 所以 $$\frac{\vert a_1b_1+...+a_nb_n\vert}{(a_1^2+...+a_n^2)^{1/2}(b_1^2+...+b_n^2)^{1/2}}\le 1$$ 即 $$\vert a_1b_1+...+a_nb_n\vert \le (a_1^2+...+a_n^2)^{1/2}(b_1^2+...+b_n^2)^{1/2}$$ 不等式兩邊平方可得 $$(a_1b_1+...+a_nb_n)^2 \le (a_1^2+.....