Figuring out the transformation matrix for a projection onto a subspace by figuring out the matrix for the projection onto the subspace's orthogonal complement first
Watch the next lesson:

https://www.khanacademy.org/math/linear-algebra/alternate_bases/orthogonal_projections/v/linear-alg-projection-is-closest-vector-in-subspace?utm_source=YT&utm_medium=Desc&utm_campaign=LinearAlgebra
Missed the previous lesson?

https://www.khanacademy.org/math/linear-algebra/alternate_bases/orthogonal_projections/v/linear-algebra-subspace-projection-matrix-example?utm_source=YT&utm_medium=Desc&utm_campaign=LinearAlgebra
Linear Algebra on Khan Academy: Have you ever wondered what the difference is between speed and velocity? Ever try to visualize in four dimensions or six or seven? Linear algebra describes things in two dimensions, but many of the concepts can be extended into three, four or more. Linear algebra implies two dimensional reasoning, however, the concepts covered in linear algebra provide the basis for multi-dimensional representations of mathematical reasoning. Matrices, vectors, vector spaces, transformations, eigenvectors/values all help us to visualize and understand multi dimensional concepts. This is an advanced course normally taken by science or engineering majors after taking at least two semesters of calculus (although calculus really isn't a prereq) so don't confuse this with regular high school algebra.
About Khan Academy: Khan Academy offers practice exercises, instructional videos, and a personalized learning dashboard that empower learners to study at their own pace in and outside of the classroom. We tackle math, science, computer programming, history, art history, economics, and more. Our math missions guide learners from kindergarten to calculus using state-of-the-art, adaptive technology that identifies strengths and learning gaps. We've also partnered with institutions like NASA, The Museum of Modern Art, The California Academy of Sciences, and MIT to offer specialized content.
For free. For everyone. Forever. #YouCanLearnAnything
Subscribe to KhanAcademy’s Linear Algebra channel:

https://www.youtube.com/channel/UCGYSKl6e3HM0PP7QR35Crug?sub_confirmation=1
Subscribe to KhanAcademy:

https://www.youtube.com/subscription_center?add_user=khanacademy