06.09.2021 Views

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.11. Orthogonality and the Gram Schmidt Process 249<br />

Example 4.153: Least Squares Solution to a System<br />

F<strong>in</strong>d a least squares solution to the system<br />

⎡ ⎤ ⎡<br />

2 1 [ ]<br />

⎣ −1 3 ⎦ x<br />

= ⎣<br />

y<br />

4 5<br />

2<br />

1<br />

1<br />

⎤<br />

⎦<br />

Solution. <strong>First</strong>, consider whether there exists a real solution. To do so, set up the augmnented matrix given<br />

by<br />

⎡ ⎤<br />

2 1 2<br />

⎣ −1 3 1 ⎦<br />

4 5 1<br />

The reduced row-echelon form of this augmented matrix is<br />

⎡<br />

1 0<br />

⎤<br />

0<br />

⎣ 0 1 0 ⎦<br />

0 0 1<br />

It follows that there is no real solution to this system. Therefore we wish to f<strong>in</strong>d the least squares<br />

solution. The normal equations are<br />

[<br />

2 −1 4<br />

1 3 5<br />

] ⎡ ⎣<br />

2 1<br />

−1 3<br />

4 5<br />

A T A⃗x = A T ⃗y<br />

⎤<br />

[ ] [ ] ⎡<br />

⎦ x 2 −1 4<br />

=<br />

⎣<br />

y 1 3 5<br />

2<br />

1<br />

1<br />

⎤<br />

⎦<br />

andsoweneedtosolvethesystem<br />

[ 21 19<br />

19 35<br />

][ x<br />

y<br />

]<br />

=<br />

[ 7<br />

10<br />

]<br />

This is a familiar exercise and the solution is<br />

[ x<br />

y<br />

]<br />

=<br />

[ 534<br />

7<br />

34<br />

]<br />

♠<br />

Consider another example.<br />

Example 4.154: Least Squares Solution to a System<br />

F<strong>in</strong>d a least squares solution to the system<br />

⎡ ⎤ ⎡<br />

2 1 [ ]<br />

⎣ −1 3 ⎦ x<br />

= ⎣<br />

y<br />

4 5<br />

3<br />

2<br />

9<br />

⎤<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!