Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Projection with dot product

English · فارسی

Projection with dot product

p=x⟨x,y⟩∣∣x∣∣2 {p} = {x} \frac{\langle {x}, {y} \rangle}{||{x}||^{2}}

array([[0., 0.], [2., 4.]])
array([[0.02173913, 0.04347826, 0.08695652, 0.10869565], [0.04347826, 0.08695652, 0.17391304, 0.2173913 ], [0.08695652, 0.17391304, 0.34782609, 0.43478261], [0.10869565, 0.2173913 , 0.43478261, 0.54347826]])
<Figure size 288x288 with 1 Axes>

Exercises

  1. Compute the projection of b=(3,4)b=(3,4) onto a=(1,0)a=(1,0) by hand and verify that the residual is orthogonal to aa.

  2. Show that the projection matrix onto the line spanned by aa equals aa⊤/(a⊤a)aa^\top/(a^\top a), and that P2=PP^2=P and P⊤=PP^\top=P.

  3. Project a point onto the plane spanned by two vectors and compare with the pseudoinverse formula for the same plane.