Exercise 3.3.5. Given the system

with no solution, provide a graph of a straight line that minimizes

and solve for the equation of the line. What is the result of projecting the vector onto the column space of ?

Answer: We have

In other words, this problem is essentially that of finding , the least squares solution to that minimizes the error vector .

From 3L on page 156 we have . In this case we have

and thus

so that

Thus the line that minimizes

is with slope and intercept .

Also from 3L on page 156 the projection of onto the column space of 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.