Orthogonal Projections and Cauchy-Schwarz Inequality
In questa pagina 4
Throughout, 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 is a subset with the following property:
for all and for each couple of scalars .
Example. Consider as a vector space over the field . Perhaps the most popular subspace of is , the set of real numbers. Another one is , the set of imaginary numbers.
Span, generators, basis, dimension
Definition (span of a subspace).
with or , for instance. Exception: if then is the generator.
Definition (generators of a subspace). The vectors such that are called generators of .
Examples.
- , span all the points on the straight line .
- and span . Also, are an orthogonal basis for because .
Definition (basis for a subspace). A group of linearly independent vectors that generate a subspace . Linear independence means .
Definition (orthonormal basis). A basis composed of orthonormal generators.
Definition (dimension of a subspace). = number of basis vectors generating .
Orthogonal projection
Definition (orthogonal projection of a vector onto a subspace). Let be a vector space with scalar product and let be a subspace of . Given , the orthogonal projection of onto is a vector, denoted by , such that:
- ;
- for all , which means for all .
v
/|
/ |
/ | v - P_v^W (residual, orthogonal to W)
/ |
--------o----o----------- W
P_v^WThe vector is split into its projection , lying on , and the residual , perpendicular to .
Lemma (uniqueness of the orthogonal projection). If the orthogonal projection exists then it is unique.
Proof. Let be both projections of the same . By property 2, for all ,
The second identity is equivalent to , so, by linearity of the scalar product (adding it to the first),
Take (which belongs to , because is a subspace). Then
and thus .
Cauchy-Schwarz inequality
Fact (Cauchy-Schwarz inequality).
Proof.
Step 1. If the claim is trivial, because and .
Step 2. Let . Set
and define the vector . Here plays the role of , where is the line generated by .
Step 3. Compute
Hence : is the residual of the projection, and is the orthogonal projection of onto , as expected.
v
/|
z / | z = v - beta w (orthogonal to w)
/ |
----o---o-------> W (line generated by w)
P_v^W = beta wStep 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 :
The last term is thanks to the fact that . Therefore, since (comparison between nonnegative numbers),
Step 5. Multiplying by gives ; take the square roots.
Versione ripasso
- Subspace : for all and all scalars . Example: and the imaginary numbers inside over .
- Span all linear combinations of ; the are generators. Basis = linearly independent generators ( all ); orthonormal basis = orthonormal generators; = number of basis vectors.
- Orthogonal projection of onto : (i) ; (ii) for all . If it exists it is unique (take to get ).
- Projection onto a line : (check: ).
- Cauchy-Schwarz: . Proof: trivial; else , ; Carnot on gives .
- Typical mistakes: forgetting that the projection must belong to and the residual must be orthogonal to every (not just one); dropping the case in Cauchy-Schwarz (division by ).