Salta al contenuto
Note per Studenti Orthogonal Projections and Cauchy-Schwarz Inequality Report

Orthogonal Projections and Cauchy-Schwarz Inequality

In questa pagina 4

Throughout, VV is a vector space with a scalar product (see Vector Spaces, Scalar Product and NormsReview of geometry for signals: vector spaces over a field, the scalar product and norm in complex vector spaces, p-norms, orthogonality, and the generalized Pythagorean theorem.Vector Spaces, Scalar Product and Norms →).

Subspaces

Definition (subspace). A subspace of VV is a subset W⊂VW \subset V with the following property:

αw1+βw2∈W\alpha w_1 + \beta w_2 \in W

for all w1,w2∈Ww_1, w_2 \in W and for each couple of scalars α,β\alpha, \beta.

Example. Consider C\mathbb{C} as a vector space over the field K=R\mathbb{K} = \mathbb{R}. Perhaps the most popular subspace of C\mathbb{C} is R={z:Im(z)=0}\mathbb{R} = \{z : \mathrm{Im}(z) = 0\}, the set of real numbers. Another one is Ij={z:Re(z)=0}\mathbb{I}_j = \{z : \mathrm{Re}(z) = 0\}, the set of imaginary numbers.

Span, generators, basis, dimension

Definition (span of a subspace).

W:=span{w1,w2,…,wN}={w∈V  |  w=∑k=1Nαkwk, ∀k:wk≠0, α1,…,αN∈K},W := \mathrm{span}\{w_1, w_2, \dots, w_N\} = \left\{w \in V \;\middle|\; w = \sum_{k=1}^{N}\alpha_k w_k,\ \forall k : w_k \ne 0,\ \alpha_1, \dots, \alpha_N \in \mathbb{K}\right\},

with K=R\mathbb{K} = \mathbb{R} or K=C\mathbb{K} = \mathbb{C}, for instance. Exception: if W={0}W = \{0\} then 00 is the generator.

Definition (generators of a subspace). The vectors w1,…,wNw_1, \dots, w_N such that W=span{w1,…,wN}W = \mathrm{span}\{w_1, \dots, w_N\} are called generators of WW.

Examples.

  • w1=[11]w_1 = \begin{bmatrix}1 \\ 1\end{bmatrix}, w2=[−1−1]w_2 = \begin{bmatrix}-1 \\ -1\end{bmatrix} span all the points on the straight line {(x,y)∈R×R∣y=x}\{(x, y) \in \mathbb{R}\times\mathbb{R} \mid y = x\}.
  • v1=[10]v_1 = \begin{bmatrix}1 \\ 0\end{bmatrix} and v2=[01]v_2 = \begin{bmatrix}0 \\ 1\end{bmatrix} span R2\mathbb{R}^2. Also, v1,v2v_1, v_2 are an orthogonal basis for R2\mathbb{R}^2 because v1⊥v2v_1 \perp v_2.

Definition (basis for a subspace). A group of linearly independent vectors w1,…,wNw_1, \dots, w_N that generate a subspace WW. Linear independence means ∑k=1Nβkwk=0⇒β1=⋯=βN=0\sum_{k=1}^{N}\beta_k w_k = 0 \Rightarrow \beta_1 = \dots = \beta_N = 0.

Definition (orthonormal basis). A basis composed of orthonormal generators.

Definition (dimension of a subspace). dim⁡(W)\dim(W) = number of basis vectors generating WW.

Orthogonal projection

Definition (orthogonal projection of a vector onto a subspace). Let VV be a vector space with scalar product and let WW be a subspace of VV. Given v∈Vv \in V, the orthogonal projection of vv onto WW is a vector, denoted by PvWP^W_v, such that:

  1. PvW∈WP^W_v \in W;
  2. v−PvW⊥wv - P^W_v \perp w for all w∈Ww \in W, which means ⟨v−PvW,w⟩=0\langle v - P^W_v, w\rangle = 0 for all w∈Ww \in W.
              v
             /|
            / |
           /  |  v - P_v^W   (residual, orthogonal to W)
          /   |
 --------o----o----------- W
            P_v^W

The vector vv is split into its projection PvWP^W_v, lying on WW, and the residual v−PvWv - P^W_v, perpendicular to WW.

Lemma (uniqueness of the orthogonal projection). If the orthogonal projection exists then it is unique.

Proof. Let w1,w2∈Ww_1, w_2 \in W be both projections of the same v∈Vv \in V. By property 2, for all w∈Ww \in W,

⟨v−w1,w⟩=⟨v−w2,w⟩=0.\langle v - w_1, w\rangle = \langle v - w_2, w\rangle = 0.

The second identity is equivalent to ⟨w2−v,w⟩=0\langle w_2 - v, w\rangle = 0, so, by linearity of the scalar product (adding it to the first),

⟨w2−w1,w⟩=0for all w∈W.\langle w_2 - w_1, w\rangle = 0 \qquad \text{for all } w \in W.

Take w=w2−w1w = w_2 - w_1 (which belongs to WW, because WW is a subspace). Then

⟨w2−w1,w2−w1⟩=∥w2−w1∥2=0,\langle w_2 - w_1, w_2 - w_1\rangle = \|w_2 - w_1\|^2 = 0,

and thus w1=w2w_1 = w_2. ■\blacksquare

Cauchy-Schwarz inequality

Fact (Cauchy-Schwarz inequality).

∣⟨v,w⟩∣≤∥v∥⋅∥w∥∀v,w.\boxed{|\langle v, w\rangle| \le \|v\|\cdot\|w\|} \qquad \forall v, w.

Proof.

Step 1. If w=0w = 0 the claim is trivial, because ⟨v,w⟩=0\langle v, w\rangle = 0 and ∥v∥∥w∥=0\|v\|\|w\| = 0.

Step 2. Let w≠0w \ne 0. Set

β:=⟨v,w⟩∥w∥2∈C\beta := \frac{\langle v, w\rangle}{\|w\|^2} \in \mathbb{C}

and define the vector z:=v−βwz := v - \beta w. Here βw\beta w plays the role of PvWP^{\mathcal{W}}_v, where W={αw:α∈C}\mathcal{W} = \{\alpha w : \alpha \in \mathbb{C}\} is the line generated by ww.

Step 3. Compute

⟨z,w⟩=⟨v−βw,w⟩=⟨v,w⟩−⟨βw,w⟩=⟨v,w⟩−β⟨w,w⟩=⟨v,w⟩−⟨v,w⟩∥w∥2∥w∥2=0.\langle z, w\rangle = \langle v - \beta w, w\rangle = \langle v, w\rangle - \langle \beta w, w\rangle = \langle v, w\rangle - \beta\langle w, w\rangle = \langle v, w\rangle - \frac{\langle v, w\rangle}{\|w\|^2}\|w\|^2 = 0.

Hence z⊥wz \perp w: zz is the residual of the projection, and PvW=⟨v,w⟩∥w∥2wP^{\mathcal{W}}_v = \frac{\langle v, w\rangle}{\|w\|^2}w is the orthogonal projection of vv onto W\mathcal{W}, as expected.

         v
        /|
   z   / |        z = v - beta w  (orthogonal to w)
      /  |
 ----o---o-------> W (line generated by w)
      P_v^W = beta w

Step 4. Apply the generalized Pythagorean theorem (Carnot, see Vector Spaces, Scalar Product and NormsReview of geometry for signals: vector spaces over a field, the scalar product and norm in complex vector spaces, p-norms, orthogonality, and the generalized Pythagorean theorem.Vector Spaces, Scalar Product and Norms →) to v=βw+zv = \beta w + z:

∥v∥2=∥βw+z∥2=∥βw∥2+∥z∥2+2 Re[⟨βw,z⟩]=∥βw∥2+∥z∥2+2 Re[β⋅⟨w,z⟩].\|v\|^2 = \|\beta w + z\|^2 = \|\beta w\|^2 + \|z\|^2 + 2\,\mathrm{Re}\left[\langle\beta w, z\rangle\right] = \|\beta w\|^2 + \|z\|^2 + 2\,\mathrm{Re}\left[\beta\cdot\langle w, z\rangle\right].

The last term is 00 thanks to the fact that z⊥wz \perp w. Therefore, since ∥z∥2≥0\|z\|^2 \ge 0 (comparison between nonnegative numbers),

∥v∥2=∥βw∥2+∥z∥2≥∥βw∥2=∣β∣2⋅∥w∥2=∣⟨v,w⟩∣2∥w∥4⋅∥w∥2=∣⟨v,w⟩∣2∥w∥2.\|v\|^2 = \|\beta w\|^2 + \|z\|^2 \ge \|\beta w\|^2 = |\beta|^2\cdot\|w\|^2 = \frac{|\langle v, w\rangle|^2}{\|w\|^4}\cdot\|w\|^2 = \frac{|\langle v, w\rangle|^2}{\|w\|^2}.

Step 5. Multiplying by ∥w∥2\|w\|^2 gives ∥v∥2∥w∥2≥∣⟨v,w⟩∣2\|v\|^2\|w\|^2 \ge |\langle v, w\rangle|^2; take the square roots. ■\blacksquare

Versione ripasso

  • Subspace W⊂VW \subset V: αw1+βw2∈W\alpha w_1 + \beta w_2 \in W for all w1,w2∈Ww_1, w_2 \in W and all scalars α,β\alpha, \beta. Example: R\mathbb{R} and the imaginary numbers inside C\mathbb{C} over R\mathbb{R}.
  • Span == all linear combinations of w1,…,wNw_1, \dots, w_N; the wkw_k are generators. Basis = linearly independent generators (∑βkwk=0⇒\sum\beta_kw_k = 0 \Rightarrow all βk=0\beta_k = 0); orthonormal basis = orthonormal generators; dim⁡W\dim W = number of basis vectors.
  • Orthogonal projection PvWP^W_v of vv onto WW: (i) PvW∈WP^W_v \in W; (ii) ⟨v−PvW,w⟩=0\langle v - P^W_v, w\rangle = 0 for all w∈Ww \in W. If it exists it is unique (take w=w2−w1w = w_2 - w_1 to get ∥w2−w1∥2=0\|w_2 - w_1\|^2 = 0).
  • Projection onto a line {αw}\{\alpha w\}: PvW=⟨v,w⟩∥w∥2wP^W_v = \dfrac{\langle v, w\rangle}{\|w\|^2}w (check: ⟨v−βw,w⟩=0\langle v - \beta w, w\rangle = 0).
  • Cauchy-Schwarz: ∣⟨v,w⟩∣≤∥v∥∥w∥|\langle v, w\rangle| \le \|v\|\|w\|. Proof: w=0w = 0 trivial; else β=⟨v,w⟩∥w∥2\beta = \frac{\langle v, w\rangle}{\|w\|^2}, z=v−βw⊥wz = v - \beta w \perp w; Carnot on v=βw+zv = \beta w + z gives ∥v∥2=∥βw∥2+∥z∥2≥∣β∣2∥w∥2=∣⟨v,w⟩∣2∥w∥2\|v\|^2 = \|\beta w\|^2 + \|z\|^2 \ge |\beta|^2\|w\|^2 = \frac{|\langle v, w\rangle|^2}{\|w\|^2}.
  • Typical mistakes: forgetting that the projection must belong to WW and the residual must be orthogonal to every w∈Ww \in W (not just one); dropping the case w=0w = 0 in Cauchy-Schwarz (division by ∥w∥2\|w\|^2).

Teoria collegata