From Gilbert Strang “Linear Algebra and its Applications”, problem
3.2.2
Verify that the length of the projection is ||p|| = ||b|| |cosθ| using
p = (aTb/aTa ) a
and possibly using cosθ = aTb/ (||a|| ||b||)
Verify that the length of the projection is ||p|| = ||b|| |cosθ| using p = (aTb/aTa ) a and possibly using cosθ = aTb/ (||a|| ||b||)
(Please see attachment for proper equations)
The length of a projection is verified.