Exercise 3.2.12. Find a projection matrix that projects every vector in onto the line described by the equation .

Answer: One solution to the equation is . The projection matrix that projects vectors onto the line through is

NOTE: This continues a series of posts containing worked out exercises from the (out of print) book Linear Algebra and Its Applications, Third Edition by Gilbert Strang.

If you find these posts useful I encourage you to also check out the more current Linear Algebra and Its Applications, Fourth Edition, Dr Strang’s introductory textbook Introduction to Linear Algebra, Fourth Edition and the accompanying free online course, and Dr Strang’s other books.