Dot Products and Orthogonality
We first consider orthogonal projection onto a line. To orthogonally project a vector onto a line , mark the point on the line at which someone standing on that point could see by looking straight up or down (from that person's point of view).
The picture shows someone who has walked out on the line until the tip of is straight overhead. That is, where the line is described as the span of some nonzero vector , the person has walked out to find the coefficient with the property that is orthogonal to .
We can solve for this coefficient by noting that because is orthogonal to a scalar multiple of it must be orthogonal to itself, and then the consequent fact that the dot product is zero gives that .
- Definition 1.1
The orthogonal projection of onto the line spanned by a nonzero is this vector.
- Remark 1.2
The wording of that definition says "spanned by " instead the more formal "the span of the set ". This casual first phrase is common.
- Example 1.3
To orthogonally project the vector onto the line , we first pick a direction vector for the line. For instance,
will do. Then the calculation is routine.
- Example 1.4
In , the orthogonal projection of a general vector
onto the -axis is
which matches our intuitive expectation.
The picture above with the stick figure walking out on the line until
's tip is overhead is one way to think of the orthogonal projection of
a vector onto a line.
We finish this subsection with two other ways.
- Example 1.5
A railroad car left on an east-west track without its brake is pushed by a wind blowing toward the northeast at fifteen miles per hour; what speed will the car reach?
For the wind we use a vector of length that points toward the northeast.
The car can only be affected by the part of the wind blowing in the east-west direction— the part of in the direction of the -axis is this (the picture has the same perspective as the railroad car picture above).
So the car will reach a velocity of miles per hour toward the east.
Thus, another way to think
of the picture that precedes the definition is that it shows
as decomposed into two parts, the part with the line (here, the part
with the tracks, ),
and the part that is orthogonal to the line
(shown here lying on the north-south axis).
These two are "not interacting" or "independent",
in the sense that the east-west car is not at all affected by the
north-south part of the wind (see Problem 5).
So the orthogonal projection of
onto the line spanned by can be thought of as
the part of that lies in the direction of .
Finally, another useful way to think of the orthogonal projection is to have the person stand not on the line, but on the vector that is to be projected to the line. This person has a rope over the line and pulls it tight, naturally making the rope orthogonal to the line.
That is, we can think of the projection as being the vector in the line that is closest to (see Problem 11).
- Example 1.6
A submarine is tracking a ship moving along the line . Torpedo range is one-half mile. Can the sub stay where it is, at the origin on the chart below, or must it move to reach a place where the ship will pass within range?
The formula for projection onto a line does not immediately apply because the line doesn't pass through the origin, and so isn't the span of any . To adjust for this, we start by shifting the entire map down two units. Now the line is , which is a subspace, and we can project to get the point of closest approach, the point on the line through the origin closest to
the sub's shifted position.
The distance between and is approximately miles and so the sub must move to get in range.
This subsection has developed a natural projection map: orthogonal projection
onto a line.
As suggested by the examples, it is often called for in applications.
The next subsection shows how the definition of orthogonal
projection onto a line gives us a way to calculate especially convienent bases
for vector spaces, again something that is common in applications.
The final subsection completely generalizes projection, orthogonal or not,
onto any subspace at all.
Licensing
Content obtained and/or adapted from:
- Orthogonal Projection Onto a Line, Wikibooks: Linear Algebra under a CC BY-SA license