Orthogonal projections
![]() Everything You Need in One PlaceHomework problems? Exam preparation? Trying to grasp a concept or just brushing up the basics? Our extensive help & practice library have got you covered. | ![]() Learn and Practice With EaseOur proven video lessons ease you through problems quickly, and you get tonnes of friendly practice on questions that trip students up on tests and finals. | ![]() Instant and Unlimited HelpOur personalized learning platform enables you to instantly find the exact walkthrough to your specific type of question. Activate unlimited help now! |
Make math click 🤔 and get better grades! 💯Join for Free
Intros
Lessons
- Orthogonal Projections Overview:
- The Orthogonal Decomposition Theorem
• Make y as the sum of two vectors y^ and z
• Orthogonal basis → y^=v1⋅v1y⋅v1v1+⋯+vp⋅vpy⋅vpvp
• Orthonormal basis → y^=(y⋅v1)v1+⋯+(y⋯vp)vp
• z=y−y^ - Property of Orthogonal Projections
• projsy=y
• Only works if y is in S - The Best Approximation Theorem
• What is the point closest to y in S? y^!
• Reason why: ∥y−y^∥ < ∥y−u∥
• The Distance between the y and y^
Examples
Lessons
- The Orthogonal Decomposition Theorem
Assume that {v1,v2,v3} is an orthogonal basis for Rn. Write y as the sum of two vectors, one in Span{v1}, and one in Span{v2,v3}. You are given that:
- Verify that {v1,v2} is an orthonormal set, and then find the orthogonal projection of y onto Span{v1,v2}.
- Best Approximation
Find the best approximation of y by vectors of the form c1v1+c2v2, where, and
,
.
- Finding the Closest Point and Distance
Find the closest point to y in the subspace S spanned by v1 and v2. - Find the closest distance from y to S=Span{v1,v2} if
Free to Join!
StudyPug is a learning help platform covering math and science from grade 4 all the way to second year university. Our video tutorials, unlimited practice problems, and step-by-step explanations provide you or your child with all the help you need to master concepts. On top of that, it's fun — with achievements, customizable avatars, and awards to keep you motivated.
Easily See Your Progress
We track the progress you've made on a topic so you know what you've done. From the course view you can easily see what topics have what and the progress you've made on them. Fill the rings to completely master that section or mouse over the icon to see more details.Make Use of Our Learning Aids
Earn Achievements as You Learn
Make the most of your time as you use StudyPug to help you achieve your goals. Earn fun little badges the more you watch, practice, and use our service.Create and Customize Your Avatar
Play with our fun little avatar builder to create and customize your own avatar on StudyPug. Choose your face, eye colour, hair colour and style, and background. Unlock more options the more you use StudyPug.
Topic Notes
Orthogonal projections
What is an orthogonal projection
The orthogonal projection of a vector onto another is, just as the name says it, the projection of the first vector above the second one. You may be wondering what is that supposed to mean then?, well, for a better explanation let us show you graphically in the next figure:
Notice that in the right hand side of the figure we can see how we added the vector which is the orthogonal projection of a onto b. The word orthogonal (which you know already that it means there is perpendicularity involved) comes from the angle made by the projection and the normal line connecting the projection and the original vector, for this case, this normal line (the dashed line in figure 1) is the component of vector a that is orthogonal to b, and can its length can be written as: ∥a−b∥.
Orthogonal projection vector
A formal orthogonal projection definition would be that it refers to the projection of a vector onto a plane which is parallel to another vector, in other words and taking figure 1 in mind, the projection of vector a falls in the same plane as vector b, and so, the projection of vector a is a vector parallel to vector b.
And so, if we consider a subspace spanned by the vector v, then the orthogonal projection of y onto v is defined as y^ and can be calculated with the next equation:
Where y^ is called the orthogonal projection vector, and so, equation 1 may be referred to (in general) as the orthogonal projection formula .

Notice the component of y orthogonal to v is equal to z=y−y^.
Now let us talk about orthogonal projections onto a subspace, not another vector, but a plane. For that:

Let S be a subspace in Rn, then each vector y in Rn can be written as: y=y^+z
Where y^ is in S and z=y−y^ is in S⊥. And so, y^ is the orthogonal projection of y onto S.
Therefore, if we want to calculate y^ we need to check if {v1,...,vp} is an orthogonal basis of S, if the vectors from the subset happen to form an orthogonal set and orthogonal basis (which remember, this can be checked by performing the dot product of all of the vectors in the set) then we can calculate the projection of y onto S as:
However, if {v1,...,vp} is an orthonormal basis of S, then the equation changes a little bit:
Remember that an orthonormal basis is a basis conformed by a set of vectors which are orthogonal with each other AND at the same time they are all unit vectors themselves.
How to find orthogonal projection
The steps to find the orthogonal projection of vector y onto a subspace are as follows:
- Verify that the set of vectors provided is either an orthogonal basis or an orthonormal basis
- If orthogonal basis continue on step 2
- If orthonormal basis continue on step 3
- Having an orthogonal basis containing a set of vectors {v1,...,vp}, compute the projection of y onto S by solving the formula found in equation 2. In order to do that, follow the next steps:
- Calculate the dot products y⋅v1,...,y⋅vp
- Calculate the dot products v1⋅v1,...,vp⋅vp
- Compute the divisions v1⋅v1y⋅v1,...,vv⋅vvy⋅vv
- Multiply each result from our last step with its corresponding vector {v1,...,vp}
- Add all of the resulting vectors together to find the final projection vector.
- Having an orthonormal basis containing a set of vectors {v1,...,vn}, compute the projection of y onto S by solving the formula found in equation 3. In order to do that, follow the next steps:
- Calculate the dot products y⋅v1,...,y⋅vp
- Multiply each result from our last step with its corresponding vector {v1,...,vp}
- Add all of the resulting vectors together to find the final projection vector.
And now you are ready to solve some exercise problems!
Orthogonal projection examples
Example 1
Assume that {v1,v2,v3} is an orthogonal basis for Rn. Write y as a sum of two vectors, one in Span{v1} and one in Span{v2,v3}. The vectors v1,v2,v3 and y are defined as follows:
For this first problem we are already assuming that the vectors provided form an orthogonal basis in Rn, that means each vector is orthogonal to each other, and linearly independent. Therefore the spans Span{v1} and Span{v2,v3} each have basis {v1} and {v2,v3} containing orthogonal vectors which makes them linearly independent, these characteristics make them orthogonal bases!.
Therefore, we can be sure already that we can use equation 2 in order to solve for y^ when needed, in BOTH cases: y as a sum of two vectors in Span{v1} and y as a sum of two vectors in Span{v2,v3}.
If we need to write y as a sum of two vectors, remember from figures 2 and 3 that y=y^+z,
And so, we calculate y^ first and then add it to z.
We will work only on the first part of the problem writing y as a sum of two vectors in Span{v1} and leave the second case for you to solve on your own.
So let us calculate y^!
For this case we have only one vector in the basis of the span S, and so, the formula goes as:

With that we can now write y as a sum of two vectors in Span{v1} as follows:

And what is z? Easy! We can calculate it just to see what it is:

Example 2
Verify that {v1,v2} is an orthonormal set, and then define orthogonal projection of y onto Span {v1,v2}.
To verify if the set {v1,v2} is orthonormal we first check if the vectors in the set are orthogonal to each other by computing their dot product:

Since the dot product yielded a result of zero, then it means the vectors are orthogonal to each other. The second condition for the set to be an orthonormal set is that its vectors are unit vectors, thus, let us check if their magnitude is one.
And so, we have an orthonormal set since we just proved that the vectors v1 and v2 are unit vectors. Now we have to find the orthogonal projection of y onto Span {v1,v2}.
Using this equation, we plug the values that we have for vectors v1,v2 and y in order to calculate the projection vector y^:




Example 3
Find the best approximation of y by vectors of the form c1v1+c2v2, where:
Having vectors of the form c1v1+c2v2 means that we have a linear combination that is the same as having a span of vectors, in this case, the span of vectors v1 and v2. And so, we can obtain a basis S such as:
Now the first thing to do in order to find the best approximation of y is to check if the basis provided is an orthogonal basis, for that, we obtain the inner product of the two vectors inside the basis:

And given that the set is an orthogonal set due the inner product above resulting in a zero, we can now finally compute the vector y^ (which is the best approximation of y) by using the projection formula shown in equation 2 as shown below:


Example 4
Find the closest point to y in the subspace S spanned by v1 and v2:
The closest point to y is simply y^ since its the shortest distance compared to any other vector given that is the best approximation of y itself. And so, the purpose of this problem is to calculate y^.
For that we will use equation 2 once more in order to calculate the orthogonal projection of y onto S, but the problem is that at this point we need more information for us to use that equation.
First we need to check if we have an orthogonal basis for S.
In here we have a subspace spanned by v1 and v2, which means that we have the linear combination of v1 and v2 (so v1 and v2 are linearly independent) which is equal to the basis S= Span{v1,v2}. In order to check if this basis S is an orthogonal basis, we have to see if v1 and v2 are orthogonal to each other, therefore, we compute their dot product!
And so, we have an orthogonal basis since the dot product above yielded a result of zero.
So now we can calculate y^ using equation 2:



Example 5
Find the closest distance from y to S= Span{v1,v2} if v1,v2 and y are defined as below:
In this case, the closest distance from y to S can be graphically represented below:

Therefore the closest distance is equal to the magnitude of the subtraction of the vector y and y, therefore the closest distance =∥y−y^∥
So if we want to calculate the closest distance, we need to compute y^ and for that, we first need to check that we have an orthogonal basis, and so, we check for an orthogonal basis by calculating the dot product of v1 and v2:
Knowing that we have an orthogonal basis due the result above, we can now compute y^:


And now that we have the vector y^ we can finally compute the length =∥y−y^∥:

And so, we have arrived to the end of our lesson, we hope you enjoyed it and see you in the next topic!
The Orthogonal Decomposition Theorem
Let S be a subspace in Rn. Then each vector y in Rn can be written as:
y=y^+z
where y^ is in S and z is in S⊥. Note that y^ is the orthogonal projection of y onto S
If {v1,⋯,vp} is an orthogonal basis of S, then
projSy=y^=v1⋅v1y⋅v1v1+v2⋅v2y⋅v2v2+⋯+vp⋅vpy⋅vpvp
However if {v1,⋯,vp} is an orthonormal basis of S, then
projSy=y^=(y⋅v1)v1+(y⋅v2)v2+⋯+(y⋅vp)vp
Property of Orthogonal Projection
If {v1,⋯,vp} is an orthogonal basis for S and if y happens to be in S, then
projSy=y
In other words, if y is in S=Span{v1,⋯,vp}, then projSy=y.
The Best Approximation Theorem
Let S be a subspace of Rn. Also, let y be a vector in Rn, and y^ be the orthogonal projection of y onto S. Then y is the closest point in S, because
∥y−y^∥ < ∥y−u∥
where u are all vectors in S that are distinct from y^.
Let S be a subspace in Rn. Then each vector y in Rn can be written as:
where y^ is in S and z is in S⊥. Note that y^ is the orthogonal projection of y onto S
If {v1,⋯,vp} is an orthogonal basis of S, then
However if {v1,⋯,vp} is an orthonormal basis of S, then
Property of Orthogonal Projection
If {v1,⋯,vp} is an orthogonal basis for S and if y happens to be in S, then
In other words, if y is in S=Span{v1,⋯,vp}, then projSy=y.
The Best Approximation Theorem
Let S be a subspace of Rn. Also, let y be a vector in Rn, and y^ be the orthogonal projection of y onto S. Then y is the closest point in S, because
where u are all vectors in S that are distinct from y^.
2
videos
remaining today
remaining today
5
practice questions
remaining today
remaining today