Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (2024)

Linear Algebra
ProjectionOrthogonal Projection Onto a LineGram-Schmidt Orthogonalization

We first consider orthogonal projection onto a line.To orthogonally project a vector Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (1) onto a line Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (2),mark the point on the line at which someone standing on that point could see Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (3) by looking straight up or down (from that person's point of view).

The picture shows someone who has walked out on the lineuntil the tip of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (5) is straight overhead.That is, where the line is described as the span of some nonzerovector Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (6),the person has walked out to find the coefficient Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (7)with the property that Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (8) is orthogonalto Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (9).

We can solve for this coefficient by noting that becauseLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (11) is orthogonal to a scalar multipleof Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (12) it must be orthogonal to Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (13) itself,and then the consequent fact that the dot productLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (14) is zero gives thatLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (15).

Definition 1.1

The orthogonal projection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (16) onto the line spanned by a nonzero Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (17) is this vector.

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (18)

Problem 13 checks that theoutcome of the calculation depends only on the line and not on which vectorLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (19) happens to be used to describe that line.

Remark 1.2

The wording of that definition says "spanned by Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (20)" instead the more formal "the span of the set Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (21)". This casual first phrase is common.

Example 1.3

To orthogonally projectthe vector Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (22) onto the line Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (23),we first pick a direction vector for the line.For instance,

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (24)

will do.Then the calculation is routine.

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (26)
Example 1.4

In Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (27), the orthogonal projection of a general vector

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (28)

onto the Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (29)-axis is

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (30)

which matches our intuitive expectation.

The picture above with the stick figure walking out on the line untilLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (31)'s tip is overhead is one way to think of the orthogonal projection ofa 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 bya 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 Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (33) that points towardthe northeast.

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (34)

The car can only be affected by the part of the wind blowing in theeast-west direction— the part of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (35) in the directionof the Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (36)-axis is this (the picture has the same perspective as therailroad car picture above).

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (38)

So the car will reach a velocity of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (39) miles per hour toward the east.

Thus, another way to thinkof the picture that precedes the definition is that it showsLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (40) as decomposed into two parts, the part with the line (here, the partwith the tracks, Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (41)),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 thenorth-south part of the wind (see Problem 5).So the orthogonal projection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (42)onto the line spanned by Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (43) can be thought of asthe part of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (44) that lies in the direction of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (45).

Finally, another useful way to think of the orthogonal projectionis to have the person stand not on the line, but on the vector that is to beprojected 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 Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (47) as being the vectorin the line that is closest to Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (48)(see Problem 11).

Example 1.6

A submarine is tracking a ship moving along the line Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (49).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 projectiononto a line does not immediately apply because the line doesn't pass throughthe origin, and so isn't the span of any Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (51).To adjust for this, we start by shifting the entire map down two units.Now the line is Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (52), which is a subspace, and we can project to getthe point Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (53) of closest approach, the point on theline through the origin closest to

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (54)

the sub's shifted position.

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (55)

The distance between Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (56) and Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (57) is approximately Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (58) miles and so the sub must move to get in range.

This subsection has developed a natural projection map: orthogonal projectiononto a line.As suggested by the examples, it is often called for in applications.The next subsection shows how the definition of orthogonalprojection onto a line gives us a way to calculate especially convienent basesfor vector spaces, again something that is common in applications.The final subsection completely generalizes projection, orthogonal or not,onto any subspace at all.

Exercises

[edit | edit source]

This exercise is recommended for all readers.
Problem 1

Project the first vector orthogonallyonto the line spanned by the second vector.

  1. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (59), Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (60)
  2. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (61), Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (62)
  3. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (63), Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (64)
  4. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (65), Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (66)
This exercise is recommended for all readers.
Problem 2

Project the vector orthogonally onto the line.

  1. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (67)
  2. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (68), the line Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (69)
Problem 3

Although the development of Definition 1.1is guided by the pictures, we are not restricted to spaces thatwe can draw.In Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (70) project this vector onto this line.

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (71)
This exercise is recommended for all readers.
Problem 4

Definition 1.1 uses two vectors Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (72) andLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (73).Consider the transformation of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (74) resulting from fixing

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (75)

and projecting Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (76) onto the line that is the span of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (77).Apply it to these vectors.

  1. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (78)
  2. Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (79)

Show that in general the projection tranformation is this.

Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (80)

Express the action of this transformation with a matrix.

Problem 5

Example 1.5 suggests that projection breaks Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (81) intotwo parts, Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (82) andLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (83), that are"not interacting".Recall that the two are orthogonal.Show that any two nonzero orthogonal vectors make up a linearlyindependent set.

Problem 6
  1. What is the orthogonal projection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (84)onto a line if Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (85) is a member of that line?
  2. Show thatif Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (86) is not a member of the linethen the setLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (87)is linearly independent.
Problem 7

Definition 1.1 requires that Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (88) benonzero.Why?What is the right definition of the orthogonal projectionof a vector onto the (degenerate) line spanned by the zero vector?

Problem 8

Are all vectors the projection of some other vector onto some line?

This exercise is recommended for all readers.
Problem 9

Show that the projection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (89) onto the line spanned byLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (90) has length equal to the absolute value of the numberLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (91) divided by the length of the vectorLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (92).

Problem 10

Find the formula for the distance from a point to a line.

Problem 11

Find the scalar Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (93) such that Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (94)is a minimum distance from the point Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (95)by using calculus (i.e., consider the distance function, set thefirst derivative equal to zero, and solve).Generalize to Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (96).

This exercise is recommended for all readers.
Problem 12

Prove that the orthogonal projection of a vector onto a line is shorterthan the vector.

This exercise is recommended for all readers.
Problem 13

Show that the definition of orthogonal projection onto a linedoes not dependon the spanning vector: if Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (97) is a nonzero multipleof Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (98) thenLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (99) equalsLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (100).

This exercise is recommended for all readers.
Problem 14

Consider the function mapping to plane to itself that takesa vector to its projection onto the line Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (101).These two each show that the map is linear, the first one in a way thatis bound to the coordinates (that is, it fixes a basis and then computes)and the second in a way that is more conceptual.

  1. Produce a matrix that describes the function's action.
  2. Show also that this map can be obtained by first rotatingeverything in the plane Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (102) radians clockwise,then projecting onto the Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (103)-axis,and then rotating Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (104) radians counterclockwise.
Problem 15

For Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (105) let Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (106) be theprojection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (107) onto the line spanned by Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (108), letLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (109) be the projection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (110) onto the line spannedby Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (111), let Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (112) be the projection of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (113)onto the line spanned by Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (114), etc.,back and forth between the spans of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (115) and Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (116).That is, Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (117) is the projection ofLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (118) onto the span of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (119) if Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (120) is even, andonto the span of Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (121) if Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (122) is odd.Must that sequence of vectors eventually settle down— mustthere be a sufficiently large Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (123) such thatLinear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (124) equals Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (125)and Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (126) equals Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (127)?If so, what is the earliest such Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (128)?

Solutions

Linear Algebra
ProjectionOrthogonal Projection Onto a LineGram-Schmidt Orthogonalization
Linear Algebra/Orthogonal Projection Onto a Line - Wikibooks, open books for an open world (2024)
Top Articles
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 5749

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.