The minimization problem stated above arises in lot of applications. So, it will be very helpful if the matrix of the orthogonal projection can be obtained under a given basis.
To this end, let 
 be a 
-dimensional subspace of 
 with
 as its  orthogonal
complement. Let 
 be the orthogonal
projection of 
 onto 
.
Suppose, we are given an orthonormal basis 
of 
 Under the assumption that 
 is known, we explicitly give the
matrix of 
 with respect to an extended ordered basis
 of 
Let us extend the given ordered orthonormal basis 
 of 
 to get an orthonormal
ordered basis 
of 
 Then by Theorem 5.1.12, for any
Thus, by definition,
Let 
 Consider the
standard orthogonal  ordered basis
 of 
Therefore, if
 for 
 then
and
Then as observed in Remark 5.2.3.4,
 That is, for 
![]()  | 
|||
![]()  | 
|||
![]()  | 
|||
and that of
Therefore, if
Hence, the matrix of the orthogonal projection
is
It is easy to see that
Thus,
whenever