Orthogonality, Orthogonal Projections and the Gram-Schmidt Algorithm Flashcards
Define orthogonality of sets.
A set of vectors {u1, u2, · · · , um} is called orthogonal if
ui.uj = 0, for all 1 ≤ i < j ≤ m and uj 6≠0 for 1 ≤ j ≤ m.
(They are all non-zero vectors and pairwise orthogonal).
What is a fact about orthogonality and norms?
If {u1, u2, · · · , um} is an orthogonal set, then
||u1+u2+···+um||^2 = ||u1||^2 + ||u2||^2 + · · · + ||um||^2,
where ||ui||^2 = ui.ui for 1 ≤ i ≤ m.
What are general facts about orthogonality of sets? (3)
- Any orthogonal set of vectors is linearly independent,
- Any orthogonal set of vectors in R^n has at most n vectors,
- Any orthogonal set of vectors in R^n is a basis for R^n, which is called an orthogonal basis.
The Expansion Theorem
Suppose {u1, · · · , um} is an orthogonal basis for a subspace W of R^n. Then…
Any vector v∈W can be written as
v = (v.u1/||u1||^2)u1 + … + (v.um/||um||^2)um
where the coefficients of u1, · · · , um are the coordinates of v relative to the basis. There are also called the Fourier coefficients.
Orthogonal Projection onto a Subspace
Let W be a subspace of R^n and {u1, · · · , um} an orthogonal basis for W . Then,
For every v∈R^n, the orthogonal projection of v onto W is given by
Projw(v) = (v.u1/||u1||^2)u1 + … + (v.um/||um||^2)um
Best Approximation Theorem
Let W be a subspace of R^n and v∈R^n. Then… (5)
- ProjW(v) ∈ W ,
- v − ProjW (v) is orthogonal to every vector in W ,
- ProjW (v) is the best approximation to v by vectors in W (ProjW (v) is the closest vector in W to v),
- ProjW (v) is the only vector in R^n which satisfies (1) and (2) above (It cannot even be scaled).
- The orthogonal projection does not depend on a choice of orthogonal basis and with different bases we will obtain exactly the same projection.
Give the intuition behind the Gram-Schmidt Algorithm.
Every subspace W of R^n has an orthogonal basis.
The Gram-Schmidt algorithm takes any basis of W as input and outputs an orthogonal basis of W .
Gram-Schmidt Algorithm: Finding Orthogonal Basis
Suppose {u1, · · · , um} is any basis of W: (4)
- w1 = u1 and V1 = Span{w1},
- w2 = u2− ProjV1(u2) and V2=Span{w1, w2},
- w3 = u3− ProjV2(u3) and V3 = Span{w1, w2, w3}
m. wm = um− ProjVm−1(um) and Vm=Span{w1, w2,···,wm}
Then, {w1, w2, · · · , wm} is an orthogonal basis for W .
How else can one produce an orthogonal basis using the gram-schmidt algorithm?
One could also scale each of the vectors wi by dividing by their norm to produce an orthonornal basis:
{w1/||w1||, w2/||w2||, … wm/||wm||}, ||wi||= √(wi.wi)
Give a general formula for the gram-schmidt algorithm.
see notes