Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Projections
from Strang's Introduction to Linear Algebra, 5th ed.
Section 4.2
Projection Onto a Line
Projecting a vector onto a vector will result in a vector that is in the direction of , but scaled. The scalar can be represented by , and hence the projection can be written . The error vector is the shortest distance to , and is perpendicular.
Projecting onto with error
Note, Sage does not distinguish between column and row vectors, and interprets them as needed in operations.
is determined by both and . What we need next is the projection matrix that gives . The matrix is a transform for projecting ANY vector onto .
Note that in the numerator we have a column times a row, therefore an matrix.
Projection Onto a Subspace
To find the projection of vector onto the subspace , we'll proceed as before. First find in , then find , then find in .
As before, the error vector is perpendicular to the subspace.
from Strang, v.5
The combination that is closest to :
solve for :
from problem set 4.2
problem 5. Find the projection matrix P onto the lines and . Find .
problem 6. Project onto , , and . Find .
problem 7. Show that .