Question
Question: How can I find the projection of a vector onto a subspace?...
How can I find the projection of a vector onto a subspace?
Solution
From the question given, we have been asked to find the projection of a vector onto a subspace. We can find the projection of a vector onto a subspace by using the concept of linear combination of vectors.
Complete step-by-step solution:
Projection of a vector onto a subspace:
First of all, for our convenience, let us assume a subspace.
Let us assume as a subspace of S⊂V
The subspace S⊂V admits u1,u2,..........un as an orthogonal basis.
This means that every vector u∈S can be written as a linear combination of the ui vectors.
Representation of the vector as a linear combination of the ui vectors: u=i=1∑naiui
Now, assume that you want to project a certain vector v∈V onto S. Of course, if in particular v∈S, then its projection is v itself. Let us assume that v∈V but v∈/S.
Let us call u as the projection of v onto S.
Following what we wrote before, we need to find the coefficients ai to express u inside S.
Now, as discussed above the coefficients are ai=⟨ui,ui⟩⟨v,ui⟩
Therefore, we got the coefficients.
Now, we have to find the projection of the vector onto a subspace.
The projection of vector onto a subspace using the coefficient we found is u=i=1∑n⟨ui,ui⟩⟨v,ui⟩
Hence, the projection of the vector onto a subspace is found.
Note: We should be well aware of the vectors concept. Also, we should be well aware of the properties of vectors. Also, we should be very careful while finding the coefficient. Also, we should make the assumptions very clear to get the correct answer for the given question. Also we should not get confused while doing the vector calculation.