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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Solution. We will first use the Gram-Schmidt Process to construct the orthogonal basis, B,ofW :<br />

⎧⎡<br />

⎤ ⎡ ⎤ ⎡ ⎤⎫<br />

1 0 1<br />

⎪⎨<br />

B = ⎢ 0<br />

⎥<br />

⎣ 1 ⎦<br />

⎪⎩<br />

, ⎢ 0<br />

⎥<br />

⎣ 0 ⎦ , ⎢ 2<br />

⎪⎬<br />

⎥<br />

⎣ −1 ⎦ .<br />

⎪⎭<br />

0 1 0<br />

By Theorem 4.146,<br />

proj W (⃗y)= 2 2<br />

⎡<br />

⎢<br />

⎣<br />

1<br />

0<br />

1<br />

0<br />

⎤<br />

⎥<br />

⎦ + 5 1<br />

⎡<br />

⎢<br />

⎣<br />

0<br />

0<br />

0<br />

1<br />

⎤<br />

⎥<br />

⎦ + 12<br />

6<br />

⎡<br />

⎢<br />

⎣<br />

1<br />

2<br />

−1<br />

0<br />

⎤<br />

⎡<br />

⎥<br />

⎦ = ⎢<br />

⎣<br />

3<br />

4<br />

−1<br />

5<br />

⎤<br />

⎥<br />

⎦<br />

is the vector <strong>in</strong> W closest to⃗y.<br />

♠<br />

Consider the next example.<br />

Example 4.148: Vector Written as a Sum of Two Vectors<br />

⎧⎡<br />

⎤ ⎡ ⎤⎫<br />

1 0<br />

⎪⎨<br />

Let W be a subspace given by W = span ⎢ 0<br />

⎥<br />

⎣ 1 ⎦<br />

⎪⎩<br />

, ⎢ 1<br />

⎪⎬<br />

⎥<br />

⎣ 0 ⎦ ,andY =(1,2,3,4).<br />

⎪⎭<br />

0 2<br />

F<strong>in</strong>d the po<strong>in</strong>t Z <strong>in</strong> W closest to Y , and moreover write⃗y as the sum of a vector <strong>in</strong> W and a vector <strong>in</strong><br />

W ⊥ .<br />

Solution. From Theorem 4.139, the po<strong>in</strong>t Z <strong>in</strong> W closest to Y is given by⃗z = proj W (⃗y).<br />

Notice that s<strong>in</strong>ce the above vectors already give an orthogonal basis for W, wehave:<br />

⃗z = proj W (⃗y)<br />

( ) ( )<br />

⃗y •⃗w1 ⃗y •⃗w2<br />

=<br />

‖⃗w 1 ‖ 2 ⃗w 1 +<br />

‖⃗w 2 ‖ 2 ⃗w 2<br />

⎡ ⎤ ⎡ ⎤<br />

(<br />

1<br />

( )<br />

0<br />

4 = ⎢ 0<br />

⎥ 10<br />

2)<br />

⎣ 1 ⎦ + ⎢ 1<br />

⎥<br />

5 ⎣ 0 ⎦<br />

0<br />

2<br />

Therefore the po<strong>in</strong>t <strong>in</strong> W closest to Y is Z =(2,2,2,4).<br />

=<br />

⎡<br />

⎢<br />

⎣<br />

2<br />

2<br />

2<br />

4<br />

⎤<br />

⎥<br />

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

Saved successfully!

Ooh no, something went wrong!