SlideShare une entreprise Scribd logo
1  sur  60
Télécharger pour lire hors ligne
Announcements



     Exam 2 on Thurs, Feb 25 in class.
     Practice Exam will be uploaded by 2 pm today.
     I will do some misc. topics (sec 5.5 and some
     applications)tomorrow. These WILL NOT be covered on the
     exam but are useful for MA 3521.
     Review on Wednesday in class. I will have oce hours on Wed
     from 1-4 pm.
     Reminder that MA 3521 Di. Eq starts next Monday same
     time and place (Prof Todd King)
     Please collect your graded exams on
     Friday between 7 am and 6 pm in Fisher 214. I would like to
     settle any grading issues and submit the grades ocially on
     Saturday.
Last Week: Orthogonal Projection




   The orthogonal projection of y onto any line L through u and 0 is
   given by
                                         y u
                           y = projL y =
                           ˆ                 u
                                         u u
    The orthogonal projection is a vector (not a number).


   The quantity y − y gives the distance between y and the line L.
                    ˆ
Section 6.3 Orthogonal Projections




    1. The above formula for orthogonal projection is for R2
    2. We can extend this formula to any vector in Rn
Section 6.3 Orthogonal Projections




    1. The above formula for orthogonal projection is for R2
    2. We can extend this formula to any vector in Rn
   Consider a vector y and a subspace W in Rn . We can nd the
   following
Section 6.3 Orthogonal Projections




    1. The above formula for orthogonal projection is for R2
    2. We can extend this formula to any vector in Rn
   Consider a vector y and a subspace W in Rn . We can nd the
   following
     1. A unique vector y which is a linear combination of vectors in
                        ˆ
        W.
Section 6.3 Orthogonal Projections




    1. The above formula for orthogonal projection is for R2
    2. We can extend this formula to any vector in Rn
   Consider a vector y and a subspace W in Rn . We can nd the
   following
     1. A unique vector y which is a linear combination of vectors in
                         ˆ
        W.
     2. The vector y − y which is orthogonal to W (orthogonal to each
                       ˆ
        vector in W ). We can also say that y − y is in W ⊥
                                                ˆ
Section 6.3 Orthogonal Projections




    1. The above formula for orthogonal projection is for R2
    2. We can extend this formula to any vector in Rn
   Consider a vector y and a subspace W in Rn . We can nd the
   following
     1. A unique vector y which is a linear combination of vectors in
                          ˆ
        W.
     2. The vector y − y which is orthogonal to W (orthogonal to each
                        ˆ
        vector in W ). We can also say that y − y is in W ⊥
                                                ˆ
     3. This vector y is the unique vector in W closest to y
                     ˆ
Decomposition of a vector


   Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y
   in Rn can be written as a sum of 2 vectors
                                   y = z1 + z2 ,

   where z1 is formed by a linear combination of few of these n
   vectors and z2 contains the rest of the vectors not contained in z1 .
Decomposition of a vector


   Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y
   in Rn can be written as a sum of 2 vectors
                                   y = z1 + z2 ,

   where z1 is formed by a linear combination of few of these n
   vectors and z2 contains the rest of the vectors not contained in z1 .
   Example
   Let {u1 , u2 , u3 , u4 , u5 , u6 } be an orthogonal basis in R6 . Then any
   vector y in R6 can be written as
Decomposition of a vector


   Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y
   in Rn can be written as a sum of 2 vectors
                                    y = z1 + z2 ,

   where z1 is formed by a linear combination of few of these n
   vectors and z2 contains the rest of the vectors not contained in z1 .
   Example
   Let {u1 , u2 , u3 , u4 , u5 , u6 } be an orthogonal basis in R6 . Then any
   vector y in R6 can be written as
                  y = c1 u1 + c2 u2 + c3 u3 + c4 u4 + c5 u5 + c6 u6
                                   z1                      z2
Decomposition of a vector


   Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y
   in Rn can be written as a sum of 2 vectors
                                    y = z1 + z2 ,

   where z1 is formed by a linear combination of few of these n
   vectors and z2 contains the rest of the vectors not contained in z1 .
   Example
   Let {u1 , u2 , u3 , u4 , u5 , u6 } be an orthogonal basis in R6 . Then any
   vector y in R6 can be written as
                  y = c1 u1 + c2 u2 + c3 u3 + c4 u4 + c5 u5 + c6 u6
                                   z1                      z2

   Here the subspace W =Span{u1 , u2 , u3 , u4 }, z1 is in W and z2 is in
   W ⊥ (since the dot product of any vector in W with u5 or u6 is zero)
Example 2, section 6.3

   Let {u1 , u2 , u3 , u4 } be an orthogonal basis for R4 .
                                                                              
              1                −2                 1                −1              4
             2               1               1              1             5   
    u1 =          , u2 = 
                          
                                     , u3 = 
                                            
                                                       , u4 = 
                                                              
                                                                        ,v = 
                                                                                     
              1                −1                −2                1              −3
                                                                                      
                                                                              
              1                 1                −1                −2              3

   Write v as the sum of 2 vectors, one in the Span{u1 } and the other
   in Span{u2 , u3 , u4 }
Example 2, section 6.3

   Let {u1 , u2 , u3 , u4 } be an orthogonal basis for R4 .
                                                                              
              1                −2                 1                −1              4
             2               1               1              1             5   
    u1 =          , u2 = 
                          
                                     , u3 = 
                                            
                                                       , u4 = 
                                                              
                                                                        ,v = 
                                                                                     
              1                −1                −2                1              −3
                                                                                      
                                                                              
              1                 1                −1                −2              3

   Write v as the sum of 2 vectors, one in the Span{u1 } and the other
   in Span{u2 , u3 , u4 }


   Solution: The vector in the Span{u1 } will be
                                           v u1
                            z1 = c 1 u 1 =      u
                                           u1 u1 1
             v u1 = 4 + 10 − 3 + 3 = 14, u1 u1 = 1 + 4 + 1 + 1 = 7
                                            14
                                     z1 =      u1 = 2u1
                                             7
Example 2, section 6.3

   The vector in the Span{u2 , u3 , u4 } will be
                                        v u2       v u3       v u4
         z2 = c2 u2 + c3 u3 + c4 u4 =         u2 +       u3 +      u
                                        u2 u2      u3 u3      u4 u4 4
Example 2, section 6.3

   The vector in the Span{u2 , u3 , u4 } will be
                                        v u2       v u3       v u4
         z2 = c2 u2 + c3 u3 + c4 u4 =         u2 +       u3 +      u
                                        u2 u2      u3 u3      u4 u4 4

             v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7
Example 2, section 6.3

   The vector in the Span{u2 , u3 , u4 } will be
                                        v u2       v u3       v u4
         z2 = c2 u2 + c3 u3 + c4 u4 =         u2 +       u3 +      u
                                        u2 u2      u3 u3      u4 u4 4

             v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7

             v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7
Example 2, section 6.3

   The vector in the Span{u2 , u3 , u4 } will be
                                        v u2       v u3       v u4
         z2 = c2 u2 + c3 u3 + c4 u4 =         u2 +       u3 +      u
                                        u2 u2      u3 u3      u4 u4 4

             v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7

             v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7

            v u4 = −4 + 5 − 3 − 6 = −8, u4 u4 = 4 + 1 + 1 + 1 = 7
Example 2, section 6.3

   The vector in the Span{u2 , u3 , u4 } will be
                                        v u2       v u3       v u4
         z2 = c2 u2 + c3 u3 + c4 u4 =         u2 +       u3 +      u
                                        u2 u2      u3 u3      u4 u4 4

             v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7

             v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7

            v u4 = −4 + 5 − 3 − 6 = −8, u4 u4 = 4 + 1 + 1 + 1 = 7

                                 3        12     8
                            z2 = u 2 +       u3 − u4
                                 7         7     7
Example 2, section 6.3

   The vector in the Span{u2 , u3 , u4 } will be
                                          v u2       v u3       v u4
           z2 = c2 u2 + c3 u3 + c4 u4 =         u2 +       u3 +      u
                                          u2 u2      u3 u3      u4 u4 4

               v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7

               v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7

              v u4 = −4 + 5 − 3 − 6 = −8, u4 u4 = 4 + 1 + 1 + 1 = 7

                                   3        12     8
                              z2 = u 2 +       u3 − u4
                                   7         7     7
   Thus,
                                             3     12     8
                      y = z1 + z2 = 2u1 + u2 +        u3 − u4
                                             7      7     7
Orthogonal Decomposition Theorem




   Theorem
   Let   W   be a subspace of      Rn .   Then each       y in Rn      can be uniquely

   written as

                                          y = y + z,
                                              ˆ

   where     y is in W
             ˆ           and   z is in W ⊥ .   If   u1 , u2 , . . . , up   is an orthogonal

   basis for   W,

                          y u1       y u2                y up
                    y=
                    ˆ           u1 +       u2 + . . . +       u
                          u1 u1      u2 u2              up up p
Orthogonal Decomposition Theorem




   Theorem
   Let   W   be a subspace of      Rn .   Then each       y in Rn      can be uniquely

   written as

                                          y = y + z,
                                              ˆ

   where     y is in W
             ˆ           and   z is in W ⊥ .   If   u1 , u2 , . . . , up   is an orthogonal

   basis for   W,

                          y u1       y u2                y up
                    y=
                    ˆ           u1 +       u2 + . . . +       u
                          u1 u1      u2 u2              up up p
   and

                                          z = y − y.
                                                  ˆ
Orthogonal Decomposition Theorem




    1. As in the case of R2 , the new vector y is the orthogonal
                                             ˆ
       projection of y onto W . (In section 6.2, the orthogonal
       projection was onto a line through u and the origin)
Orthogonal Decomposition Theorem




    1. As in the case of R2 , the new vector y is the orthogonal
                                             ˆ
       projection of y onto W . (In section 6.2, the orthogonal
       projection was onto a line through u and the origin)
    2. This is nothing but an extension of the orthogonal projection
       formula we had for R2 in section 6.2 to accomodate the
       remaining vectors.
Orthogonal Decomposition Theorem




    1. As in the case of R2 , the new vector y is the orthogonal
                                             ˆ
       projection of y onto W . (In section 6.2, the orthogonal
       projection was onto a line through u and the origin)
    2. This is nothing but an extension of the orthogonal projection
       formula we had for R2 in section 6.2 to accomodate the
       remaining vectors.
    3. If W is one dimensional, we get the formula for y from sec 6.2
                                                         ˆ
Example 4, section 6.3

   Let {u1 , u2 } be an orthogonal set.
                          6           3
                                                 
                                                   −4
                   y =  3  , u1 =  4  , u2 =  3 
                         −2           0            0

   Find the orthogonal projection of y onto Span{u1 , u2 }
Example 4, section 6.3

   Let {u1 , u2 } be an orthogonal set.
                          6           3
                                                 
                                                   −4
                   y =  3  , u1 =  4  , u2 =  3 
                         −2           0            0

   Find the orthogonal projection of y onto Span{u1 , u2 }


   Solution: The desired orthogonal projection is
                                         y u1       y u2
                   y = c1 u1 + c2 u2 =
                   ˆ                           u1 +      u
                                         u1 u1      u2 u2 2
Example 4, section 6.3

   Let {u1 , u2 } be an orthogonal set.
                          6           3
                                                 
                                                   −4
                   y =  3  , u1 =  4  , u2 =  3 
                         −2           0            0

   Find the orthogonal projection of y onto Span{u1 , u2 }


   Solution: The desired orthogonal projection is
                                         y u1       y u2
                   y = c1 u1 + c2 u2 =
                   ˆ                           u1 +      u
                                         u1 u1      u2 u2 2

                  y u1 = 18 + 12 = 30, u1 u1 = 9 + 16 = 25
Example 4, section 6.3

   Let {u1 , u2 } be an orthogonal set.
                          6           3
                                                 
                                                   −4
                   y =  3  , u1 =  4  , u2 =  3 
                         −2           0            0

   Find the orthogonal projection of y onto Span{u1 , u2 }


   Solution: The desired orthogonal projection is
                                         y u1       y u2
                   y = c1 u1 + c2 u2 =
                   ˆ                           u1 +      u
                                         u1 u1      u2 u2 2

                  y u1 = 18 + 12 = 30, u1 u1 = 9 + 16 = 25

                 y u2 = −24 + 9 = −15, u2 u2 = 16 + 9 = 25
Example 4, section 6.3




                              30     15
                         y=
                         ˆ       u1 − u2 .
                              25     25
Example 4, section 6.3




                              30     15
                         y=
                         ˆ       u1 − u2 .
                              25     25

                           3
                                     
                                     −4
                        6        3
                    =  4 −  3 
                        5        5
                           0          0
                    18   12   30 
                      5       −5         5
                 =  24  −  9  =  15 
                      5        5         5
                     0         0         0

                               6
                                 

                           = 3 
                               0
Example 8, section 6.3


   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                    1
                                               
                       −1                        −1
                 y =  4  , u1 =  1  , u2 =  3 
                        3           1            −2
Example 8, section 6.3


   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                    1
                                               
                       −1                        −1
                 y =  4  , u1 =  1  , u2 =  3 
                        3           1            −2

   Solution: A vector in W is the orthogonal projection of y onto W
   which is                           y u1     y u2
                  y = c1 u1 + c2 u2 =
                  ˆ                        u +       u
                                      u1 u1 1 u2 u2 2
Example 8, section 6.3


   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                    1
                                               
                       −1                        −1
                 y =  4  , u1 =  1  , u2 =  3 
                        3           1            −2

   Solution: A vector in W is the orthogonal projection of y onto W
   which is                           y u1     y u2
                  y = c1 u1 + c2 u2 =
                  ˆ                        u +       u
                                      u1 u1 1 u2 u2 2

               y u1 = −1 + 4 + 3 = 6, u1 u1 = 1 + 1 + 1 = 3
Example 8, section 6.3


   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                    1
                                               
                       −1                        −1
                 y =  4  , u1 =  1  , u2 =  3 
                        3           1            −2

   Solution: A vector in W is the orthogonal projection of y onto W
   which is                           y u1     y u2
                  y = c1 u1 + c2 u2 =
                  ˆ                        u +       u
                                      u1 u1 1 u2 u2 2

               y u1 = −1 + 4 + 3 = 6, u1 u1 = 1 + 1 + 1 = 3

               y u2 = 1 + 12 − 6 = 7, u2 u2 = 1 + 9 + 4 = 14
Example 4, section 6.3



                            6        7
                         y = u1 +
                         ˆ             u2 .
                            3       14
Example 4, section 6.3



                             6       7
                         y = u1 +
                         ˆ             u2 .
                             3      14

                          1
                                     
                                     −1
                                 1
                     = 2 1 +        3 
                                 2
                          1          −2
                          1   3 
                      2
                    
                              −2        2
                  =  2 + 3  =  7 
                               2        2
                      2       −1        1
Example 4, section 6.3



                                 6       7
                             y = u1 +
                             ˆ             u2 .
                                 3      14

                               1
                                          
                                          −1
                                      1
                          = 2 1 +        3 
                                      2
                               1          −2
                               1   3 
                           2
                         
                                   −2        2
                       =  2 + 3  =  7 
                                    2        2
                           2       −1        1
   A vector orthogonal to W will be z = y − y which is
                                            ˆ
                             3   5 
                         −1     2      −2
                        4 − 7  =  1 
                                2       2
                          3     1      2
Example 10, section 6.3

   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                                                     
                   3                 1                1                 0
                  4               1              0              −1   
           y=          , u1 = 
                               
                                          , u2 = 
                                                 
                                                           , u3 = 
                                                                          
                   5                 0                1                 1
                                                                           
                                                                     
                   6                −1                1                −1
Example 10, section 6.3

   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                                                     
                   3                 1                1                 0
                  4               1              0              −1   
           y=          , u1 = 
                               
                                          , u2 = 
                                                 
                                                           , u3 = 
                                                                          
                   5                 0                1                 1
                                                                           
                                                                     
                   6                −1                1                −1
   Solution: A vector in W is the orthogonal projection of y onto W
   which is
                                      y u1       y u2       y u3
          y = c1 u1 + c2 u2 + c3 u3 =
          ˆ                                 u1 +       u2 +      u
                                      u1 u1      u2 u2      u3 u3 3
Example 10, section 6.3

   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                                                     
                   3                 1                1                 0
                  4               1              0              −1   
           y=          , u1 = 
                               
                                          , u2 = 
                                                 
                                                           , u3 = 
                                                                          
                   5                 0                1                 1
                                                                           
                                                                     
                   6                −1                1                −1
   Solution: A vector in W is the orthogonal projection of y onto W
   which is
                                      y u1       y u2       y u3
          y = c1 u1 + c2 u2 + c3 u3 =
          ˆ                                 u1 +       u2 +      u
                                      u1 u1      u2 u2      u3 u3 3

                y u1 = 3 + 4 − 6 = 1, u1 u1 = 1 + 1 + 1 = 3
Example 10, section 6.3

   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                                                     
                   3                 1                1                 0
                  4               1              0              −1   
           y=          , u1 = 
                               
                                          , u2 = 
                                                 
                                                           , u3 = 
                                                                          
                   5                 0                1                 1
                                                                           
                                                                     
                   6                −1                1                −1
   Solution: A vector in W is the orthogonal projection of y onto W
   which is
                                      y u1       y u2       y u3
          y = c1 u1 + c2 u2 + c3 u3 =
          ˆ                                 u1 +       u2 +      u
                                      u1 u1      u2 u2      u3 u3 3

                y u1 = 3 + 4 − 6 = 1, u1 u1 = 1 + 1 + 1 = 3

                y u2 = 3 + 5 + 6 = 14, u2 u2 = 1 + 1 + 1 = 3
Example 10, section 6.3

   Let W be the subspace spanned by the u's, then write y as the sum
   of a vector in W and a vector orthogonal to W .
                                                                     
                   3                 1                1                 0
                  4               1              0              −1   
           y=          , u1 = 
                               
                                          , u2 = 
                                                 
                                                           , u3 = 
                                                                          
                   5                 0                1                 1
                                                                           
                                                                     
                   6                −1                1                −1
   Solution: A vector in W is the orthogonal projection of y onto W
   which is
                                      y u1       y u2       y u3
          y = c1 u1 + c2 u2 + c3 u3 =
          ˆ                                 u1 +       u2 +      u
                                      u1 u1      u2 u2      u3 u3 3

                y u1 = 3 + 4 − 6 = 1, u1 u1 = 1 + 1 + 1 = 3

                y u2 = 3 + 5 + 6 = 14, u2 u2 = 1 + 1 + 1 = 3

               y u3 = −4 + 5 − 6 = −5, u3 u3 = 1 + 1 + 1 = 3
Example 10, section 6.3


                          1     14     5
                     y = u1 +
                     ˆ             u2 − u3
                          3      3     3
Example 10, section 6.3


                             1    14      5
                        y = u1 +
                        ˆ            u2 − u3
                             3     3      3
                                                
                        1            1          0
                   1   1     14  0  5      −1   
               =             +         − 
                                                
                        0     3  1  3        1
                                                   
                   3                                
                        −1           1          −1
                                     
                                   5
                                 2 
                               =
                                     
                                 3 
                                      
                                   6
Example 10, section 6.3


                                 1    14      5
                            y = u1 +
                            ˆ            u2 − u3
                                 3     3      3
                                                        
                            1            1              0
                       1   1     14  0  5          −1   
                   =             +         − 
                                                        
                            0     3  1  3            1
                                                           
                       3                                    
                            −1           1              −1
                                         
                                       5
                                     2 
                                   =
                                         
                                     3 
                                          
                                       6
   A vector orthogonal to W will be z = y − y which is
                                            ˆ
                                                   
                            3          5           −2
                           4        2          2   
                                 −       =
                                                   
                            5          3            2
                                                       
                                                   
                            6          6            0
Applications




    1. Let W = Span u1 , u2 , . . . , up (an orthogonal basis). Let y be
       any vector in Rn . Then the orthogonal projection y gives the
                                                             ˆ
       closest point in W to y.
Applications




    1. Let W = Span u1 , u2 , . . . , up (an orthogonal basis). Let y be
       any vector in Rn . Then the orthogonal projection y gives the
                                                             ˆ
       closest point in W to y.
    2. The orthogonal projection y is also the best approximation to
                                       ˆ
       y by the elements of W (this means we can replace y by a
       vector in some xed subspace W and this replacement comes
       with the least error if we choose y).ˆ
Example 12, section 6.3

   Find the closest point to y in the subspace spanned by v1 and v2 .
                                                             
                          3                1                 −4
                        −1              −2               1   
                 y=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          1                −1                 0
                                                                 
                                                             
                         13                 2                 3
Example 12, section 6.3

   Find the closest point to y in the subspace spanned by v1 and v2 .
                                                             
                          3                1                 −4
                        −1              −2               1   
                 y=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          1                −1                 0
                                                                 
                                                             
                         13                 2                 3

   Solution: The closest point to y is the orthogonal projection of y
   onto the span of v1 and v2 which is
Example 12, section 6.3

   Find the closest point to y in the subspace spanned by v1 and v2 .
                                                             
                          3                1                 −4
                        −1              −2               1   
                 y=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          1                −1                 0
                                                                 
                                                             
                         13                 2                 3

   Solution: The closest point to y is the orthogonal projection of y
   onto the span of v1 and v2 which is
                                       y v1     y v2
                   y = c1 v1 + c2 v2 =
                   ˆ                        v +      v
                                       v1 v1 1 v2 v2 2
Example 12, section 6.3

   Find the closest point to y in the subspace spanned by v1 and v2 .
                                                             
                          3                1                 −4
                        −1              −2               1   
                 y=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          1                −1                 0
                                                                 
                                                             
                         13                 2                 3

   Solution: The closest point to y is the orthogonal projection of y
   onto the span of v1 and v2 which is
                                        y v1       y v2
                    y = c1 v1 + c2 v2 =
                    ˆ                        v +         v
                                        v1 v1 1 v2 v2 2
   y v1 = 3 + 2 − 1 + 26 = 30, v1 v1 = 1 + 4 + 1 + 4 = 10
Example 12, section 6.3

   Find the closest point to y in the subspace spanned by v1 and v2 .
                                                             
                          3                1                 −4
                        −1              −2               1   
                 y=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          1                −1                 0
                                                                 
                                                             
                         13                 2                 3

   Solution: The closest point to y is the orthogonal projection of y
   onto the span of v1 and v2 which is
                                        y v1       y v2
                    y = c1 v1 + c2 v2 =
                    ˆ                        v +         v
                                        v1 v1 1 v2 v2 2
   y v1 = 3 + 2 − 1 + 26 = 30, v1 v1 = 1 + 4 + 1 + 4 = 10
   y v2 = −12 − 1 + 39 = 26, v2 v2 = 16 + 1 + 9 = 26
Example 12, section 6.3

   Find the closest point to y in the subspace spanned by v1 and v2 .
                                                             
                          3                1                 −4
                        −1              −2               1   
                 y=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          1                −1                 0
                                                                 
                                                             
                         13                 2                 3

   Solution: The closest point to y is the orthogonal projection of y
   onto the span of v1 and v2 which is
                                        y v1       y v2
                    y = c1 v1 + c2 v2 =
                    ˆ                        v +         v
                                        v1 v1 1 v2 v2 2
   y v1 = 3 + 2 − 1 + 26 = 30, v1 v1 = 1 + 4 + 1 + 4 = 10
   y v2 = −12 − 1 + 39 = 26, v2 v2 = 16 + 1 + 9 = 26
                                                                  
                                        1           −4            −1
                 30     26            −2         1           −5   
            y=
            ˆ       v1 + v2 = 3            +
                                             
                                                         =
                                                                     
                                       −1           0             −3
                                                                      
                 10     26                                        
                                        2           3              9
Example 14, section 6.3

   Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .
                                                             
                          2                2                  5
                         4              0               −2   
                 z=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          0                −1                 4
                                                                 
                                                             
                         −1                −3                 2
Example 14, section 6.3

   Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .
                                                             
                          2                2                  5
                         4              0               −2   
                 z=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          0                −1                 4
                                                                 
                                                             
                         −1                −3                 2

   Solution: The best approximation to z is the orthogonal projection
   of z onto the span of v1 and v2 which is
Example 14, section 6.3

   Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .
                                                             
                          2                2                  5
                         4              0               −2   
                 z=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          0                −1                 4
                                                                 
                                                             
                         −1                −3                 2

   Solution: The best approximation to z is the orthogonal projection
   of z onto the span of v1 and v2 which is
                                       z v1     z v2
                   z = c1 v1 + c2 v2 =
                   ˆ                        v +      v
                                       v1 v1 1 v2 v2 2
Example 14, section 6.3

   Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .
                                                             
                          2                2                  5
                         4              0               −2   
                 z=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          0                −1                 4
                                                                 
                                                             
                         −1                −3                 2

   Solution: The best approximation to z is the orthogonal projection
   of z onto the span of v1 and v2 which is
                                        z v1     z v2
                    z = c1 v1 + c2 v2 =
                    ˆ                        v +      v
                                        v1 v1 1 v2 v2 2
   z v1 = 4 + 3 = 7, v1 v1 = 4 + 1 + 9 = 14
Example 14, section 6.3

   Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .
                                                             
                          2                2                  5
                         4              0               −2   
                 z=           , v1 = 
                                      
                                                 , v2 = 
                                                                
                          0                −1                 4
                                                                 
                                                             
                         −1                −3                 2

   Solution: The best approximation to z is the orthogonal projection
   of z onto the span of v1 and v2 which is
                                        z v1       z v2
                    z = c1 v1 + c2 v2 =
                    ˆ                        v +        v
                                        v1 v1 1 v2 v2 2
   z v1 = 4 + 3 = 7, v1 v1 = 4 + 1 + 9 = 14
   z v2 = 10 − 8 − 2 = 0, v2 v2 = 25 + 4 + 16 + 4 = 49
Example 14, section 6.3

   Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .
                                                              
                           2                2                  5
                          4              0               −2   
                 z=            , v1 = 
                                       
                                                  , v2 = 
                                                                 
                           0                −1                 4
                                                                  
                                                              
                          −1                −3                 2

   Solution: The best approximation to z is the orthogonal projection
   of z onto the span of v1 and v2 which is
                                        z v1       z v2
                    z = c1 v1 + c2 v2 =
                    ˆ                        v +        v
                                        v1 v1 1 v2 v2 2
   z v1 = 4 + 3 = 7, v1 v1 = 4 + 1 + 9 = 14
   z v2 = 10 − 8 − 2 = 0, v2 v2 = 25 + 4 + 16 + 4 = 49
                                                                  
                                                 2             1
                      7      0                  0           0     
                z=
                ˆ       v1 + v2 = 0.5                =
                                                                   
                                                 −1           −0.5
                                                                    
                     14     49                                    
                                =0               −3           −1.5
Topics to learn for Test 2


    1. Evaluation of determinants, use of determinants in Cramer's
       rule, nding adjugate of a matrix and nding areas of
       parallelograms.
    2. Finding char. equation, eigenvalues, eigenvectors of a square
       matrix (including triangular matrix) and use these in
       diagonalizing a matrix and computing higher exponents of the
       matrix. (you should know the condition under which
       diagonalization may fail).
    3. Finding length of a vector, unit vector, orthogonal vectors and
       orthogonal basis, orthogonal projection onto a subspace
       spanned by any number of vectors, closest point/best
       approximation of a vector
   Good luck. Feel free to email me if you have any questions. Please
   come prepared for Wednesday's review. Bring any problems you
   want me to go over.

Contenu connexe

Tendances

Null space, Rank and nullity theorem
Null space, Rank and nullity theoremNull space, Rank and nullity theorem
Null space, Rank and nullity theorem
Ronak Machhi
 
Particle in a box- Application of Schrodinger wave equation
Particle in a box- Application of Schrodinger wave equationParticle in a box- Application of Schrodinger wave equation
Particle in a box- Application of Schrodinger wave equation
Rawat DA Greatt
 

Tendances (20)

Study on Transmission Probabilities for Some Rectangular Potential Barriers
Study on Transmission Probabilities for Some Rectangular Potential BarriersStudy on Transmission Probabilities for Some Rectangular Potential Barriers
Study on Transmission Probabilities for Some Rectangular Potential Barriers
 
Operation on Matrices.pptx
Operation on Matrices.pptxOperation on Matrices.pptx
Operation on Matrices.pptx
 
Null space, Rank and nullity theorem
Null space, Rank and nullity theoremNull space, Rank and nullity theorem
Null space, Rank and nullity theorem
 
Linear transformation.ppt
Linear transformation.pptLinear transformation.ppt
Linear transformation.ppt
 
34 polar coordinate and equations
34 polar coordinate and equations34 polar coordinate and equations
34 polar coordinate and equations
 
Analytic Geometry
Analytic GeometryAnalytic Geometry
Analytic Geometry
 
Engineering Mathematics & Probability Distributions
Engineering Mathematics & Probability DistributionsEngineering Mathematics & Probability Distributions
Engineering Mathematics & Probability Distributions
 
Contour integration and Mittag Leffler theorem
Contour integration and Mittag Leffler theoremContour integration and Mittag Leffler theorem
Contour integration and Mittag Leffler theorem
 
Vectors and 3 d
Vectors and 3 dVectors and 3 d
Vectors and 3 d
 
Matrices and determinants assignment
Matrices and determinants assignmentMatrices and determinants assignment
Matrices and determinants assignment
 
Maxima & Minima of Calculus
Maxima & Minima of CalculusMaxima & Minima of Calculus
Maxima & Minima of Calculus
 
Linear Combination, Span And Linearly Independent, Dependent Set
Linear Combination, Span And Linearly Independent, Dependent SetLinear Combination, Span And Linearly Independent, Dependent Set
Linear Combination, Span And Linearly Independent, Dependent Set
 
Particle in a box- Application of Schrodinger wave equation
Particle in a box- Application of Schrodinger wave equationParticle in a box- Application of Schrodinger wave equation
Particle in a box- Application of Schrodinger wave equation
 
Probability
ProbabilityProbability
Probability
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 
GREEN THEOREM Mohini yaduwanshi BSC I SEM 2018
GREEN THEOREM  Mohini yaduwanshi BSC I SEM 2018GREEN THEOREM  Mohini yaduwanshi BSC I SEM 2018
GREEN THEOREM Mohini yaduwanshi BSC I SEM 2018
 
1.0 factoring trinomials the ac method and making lists-t
1.0 factoring trinomials  the ac method and making lists-t1.0 factoring trinomials  the ac method and making lists-t
1.0 factoring trinomials the ac method and making lists-t
 
Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
bayesNaive.ppt
bayesNaive.pptbayesNaive.ppt
bayesNaive.ppt
 

En vedette (13)

Systems of Linear Equations
Systems of Linear EquationsSystems of Linear Equations
Systems of Linear Equations
 
Determinants, Properties and IMT
Determinants, Properties and IMTDeterminants, Properties and IMT
Determinants, Properties and IMT
 
Complex Eigenvalues
Complex EigenvaluesComplex Eigenvalues
Complex Eigenvalues
 
Systems of Linear Equations, RREF
Systems of Linear Equations, RREFSystems of Linear Equations, RREF
Systems of Linear Equations, RREF
 
Orthogonal Projection
Orthogonal ProjectionOrthogonal Projection
Orthogonal Projection
 
Linear (in)dependence
Linear (in)dependenceLinear (in)dependence
Linear (in)dependence
 
Diagonalization
DiagonalizationDiagonalization
Diagonalization
 
Linear Transformations, Matrix Algebra
Linear Transformations, Matrix AlgebraLinear Transformations, Matrix Algebra
Linear Transformations, Matrix Algebra
 
Linear Combination, Matrix Equations
Linear Combination, Matrix EquationsLinear Combination, Matrix Equations
Linear Combination, Matrix Equations
 
Vector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,BasisVector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,Basis
 
Lesson 12: Linear Independence
Lesson 12: Linear IndependenceLesson 12: Linear Independence
Lesson 12: Linear Independence
 
Linear Transformations
Linear TransformationsLinear Transformations
Linear Transformations
 
Vector Spaces
Vector SpacesVector Spaces
Vector Spaces
 

Similaire à Orthogonal Decomp. Thm

Mean variance
Mean varianceMean variance
Mean variance
odkoo
 
dot product of vectors
dot product of vectorsdot product of vectors
dot product of vectors
Elias Dinsa
 
Lines, planes, and hyperplanes
Lines, planes, and hyperplanesLines, planes, and hyperplanes
Lines, planes, and hyperplanes
Tarun Gehlot
 
Lines, planes, and hyperplanes
Lines, planes, and hyperplanesLines, planes, and hyperplanes
Lines, planes, and hyperplanes
Tarun Gehlot
 
Finite Element Formulation for Dynamics of a Moving Plate
Finite Element Formulation for Dynamics of a Moving PlateFinite Element Formulation for Dynamics of a Moving Plate
Finite Element Formulation for Dynamics of a Moving Plate
KrishnanChathadi
 
Fluid motion in the posterior chamber of the eye
Fluid motion in the posterior chamber of the eyeFluid motion in the posterior chamber of the eye
Fluid motion in the posterior chamber of the eye
Dr. Bhuiyan S. M. Ebna Hai
 
Stress deflections shafts in torsion
Stress   deflections shafts in torsionStress   deflections shafts in torsion
Stress deflections shafts in torsion
aero103
 
Tutorial 6 mth 3201
Tutorial 6 mth 3201Tutorial 6 mth 3201
Tutorial 6 mth 3201
Drradz Maths
 
X2 t01 06 geometrical representation (2013)
X2 t01 06 geometrical representation (2013)X2 t01 06 geometrical representation (2013)
X2 t01 06 geometrical representation (2013)
Nigel Simmons
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
Tarun Gehlot
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
Tarun Gehlot
 

Similaire à Orthogonal Decomp. Thm (20)

Mean variance
Mean varianceMean variance
Mean variance
 
Eigenstuff
EigenstuffEigenstuff
Eigenstuff
 
Eigenstuff
EigenstuffEigenstuff
Eigenstuff
 
dot product of vectors
dot product of vectorsdot product of vectors
dot product of vectors
 
Lines, planes, and hyperplanes
Lines, planes, and hyperplanesLines, planes, and hyperplanes
Lines, planes, and hyperplanes
 
Lines, planes, and hyperplanes
Lines, planes, and hyperplanesLines, planes, and hyperplanes
Lines, planes, and hyperplanes
 
Legendre
LegendreLegendre
Legendre
 
Session 20
Session 20Session 20
Session 20
 
Finite Element Formulation for Dynamics of a Moving Plate
Finite Element Formulation for Dynamics of a Moving PlateFinite Element Formulation for Dynamics of a Moving Plate
Finite Element Formulation for Dynamics of a Moving Plate
 
Fluid motion in the posterior chamber of the eye
Fluid motion in the posterior chamber of the eyeFluid motion in the posterior chamber of the eye
Fluid motion in the posterior chamber of the eye
 
Stress deflections shafts in torsion
Stress   deflections shafts in torsionStress   deflections shafts in torsion
Stress deflections shafts in torsion
 
Tutorial 6 mth 3201
Tutorial 6 mth 3201Tutorial 6 mth 3201
Tutorial 6 mth 3201
 
X2 t01 06 geometrical representation (2013)
X2 t01 06 geometrical representation (2013)X2 t01 06 geometrical representation (2013)
X2 t01 06 geometrical representation (2013)
 
Hypothesis of Riemann's (Comprehensive Analysis)
 Hypothesis of Riemann's (Comprehensive Analysis) Hypothesis of Riemann's (Comprehensive Analysis)
Hypothesis of Riemann's (Comprehensive Analysis)
 
Algebraic techniques in combinatorics
Algebraic techniques in combinatoricsAlgebraic techniques in combinatorics
Algebraic techniques in combinatorics
 
Em10 fl
Em10 flEm10 fl
Em10 fl
 
Mth3101 Advanced Calculus Chapter 2
Mth3101 Advanced Calculus Chapter 2Mth3101 Advanced Calculus Chapter 2
Mth3101 Advanced Calculus Chapter 2
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
 
Change of variables in double integrals
Change of variables in double integralsChange of variables in double integrals
Change of variables in double integrals
 
Linear Algebra
Linear AlgebraLinear Algebra
Linear Algebra
 

Plus de Prasanth George

Finding eigenvalues, char poly
Finding eigenvalues, char polyFinding eigenvalues, char poly
Finding eigenvalues, char poly
Prasanth George
 
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
Prasanth George
 
Subspace, Col Space, basis
Subspace, Col Space, basisSubspace, Col Space, basis
Subspace, Col Space, basis
Prasanth George
 
Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inverse
Prasanth George
 

Plus de Prasanth George (9)

Finding eigenvalues, char poly
Finding eigenvalues, char polyFinding eigenvalues, char poly
Finding eigenvalues, char poly
 
Eigenvalues - Contd
Eigenvalues - ContdEigenvalues - Contd
Eigenvalues - Contd
 
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
Eigenvalues and Eigenvectors (Tacoma Narrows Bridge video included)
 
Cofactors, Applications
Cofactors, ApplicationsCofactors, Applications
Cofactors, Applications
 
Determinants
DeterminantsDeterminants
Determinants
 
IMT, col space again
IMT, col space againIMT, col space again
IMT, col space again
 
Subspace, Col Space, basis
Subspace, Col Space, basisSubspace, Col Space, basis
Subspace, Col Space, basis
 
Matrix Inverse, IMT
Matrix Inverse, IMTMatrix Inverse, IMT
Matrix Inverse, IMT
 
Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inverse
 

Dernier

The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 

Dernier (20)

How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 

Orthogonal Decomp. Thm

  • 1. Announcements Exam 2 on Thurs, Feb 25 in class. Practice Exam will be uploaded by 2 pm today. I will do some misc. topics (sec 5.5 and some applications)tomorrow. These WILL NOT be covered on the exam but are useful for MA 3521. Review on Wednesday in class. I will have oce hours on Wed from 1-4 pm. Reminder that MA 3521 Di. Eq starts next Monday same time and place (Prof Todd King) Please collect your graded exams on Friday between 7 am and 6 pm in Fisher 214. I would like to settle any grading issues and submit the grades ocially on Saturday.
  • 2. Last Week: Orthogonal Projection The orthogonal projection of y onto any line L through u and 0 is given by y u y = projL y = ˆ u u u The orthogonal projection is a vector (not a number). The quantity y − y gives the distance between y and the line L. ˆ
  • 3. Section 6.3 Orthogonal Projections 1. The above formula for orthogonal projection is for R2 2. We can extend this formula to any vector in Rn
  • 4. Section 6.3 Orthogonal Projections 1. The above formula for orthogonal projection is for R2 2. We can extend this formula to any vector in Rn Consider a vector y and a subspace W in Rn . We can nd the following
  • 5. Section 6.3 Orthogonal Projections 1. The above formula for orthogonal projection is for R2 2. We can extend this formula to any vector in Rn Consider a vector y and a subspace W in Rn . We can nd the following 1. A unique vector y which is a linear combination of vectors in ˆ W.
  • 6. Section 6.3 Orthogonal Projections 1. The above formula for orthogonal projection is for R2 2. We can extend this formula to any vector in Rn Consider a vector y and a subspace W in Rn . We can nd the following 1. A unique vector y which is a linear combination of vectors in ˆ W. 2. The vector y − y which is orthogonal to W (orthogonal to each ˆ vector in W ). We can also say that y − y is in W ⊥ ˆ
  • 7. Section 6.3 Orthogonal Projections 1. The above formula for orthogonal projection is for R2 2. We can extend this formula to any vector in Rn Consider a vector y and a subspace W in Rn . We can nd the following 1. A unique vector y which is a linear combination of vectors in ˆ W. 2. The vector y − y which is orthogonal to W (orthogonal to each ˆ vector in W ). We can also say that y − y is in W ⊥ ˆ 3. This vector y is the unique vector in W closest to y ˆ
  • 8. Decomposition of a vector Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y in Rn can be written as a sum of 2 vectors y = z1 + z2 , where z1 is formed by a linear combination of few of these n vectors and z2 contains the rest of the vectors not contained in z1 .
  • 9. Decomposition of a vector Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y in Rn can be written as a sum of 2 vectors y = z1 + z2 , where z1 is formed by a linear combination of few of these n vectors and z2 contains the rest of the vectors not contained in z1 . Example Let {u1 , u2 , u3 , u4 , u5 , u6 } be an orthogonal basis in R6 . Then any vector y in R6 can be written as
  • 10. Decomposition of a vector Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y in Rn can be written as a sum of 2 vectors y = z1 + z2 , where z1 is formed by a linear combination of few of these n vectors and z2 contains the rest of the vectors not contained in z1 . Example Let {u1 , u2 , u3 , u4 , u5 , u6 } be an orthogonal basis in R6 . Then any vector y in R6 can be written as y = c1 u1 + c2 u2 + c3 u3 + c4 u4 + c5 u5 + c6 u6 z1 z2
  • 11. Decomposition of a vector Let {u1 , u2 , . . . , un } be an orthogonal basis in Rn . Then any vector y in Rn can be written as a sum of 2 vectors y = z1 + z2 , where z1 is formed by a linear combination of few of these n vectors and z2 contains the rest of the vectors not contained in z1 . Example Let {u1 , u2 , u3 , u4 , u5 , u6 } be an orthogonal basis in R6 . Then any vector y in R6 can be written as y = c1 u1 + c2 u2 + c3 u3 + c4 u4 + c5 u5 + c6 u6 z1 z2 Here the subspace W =Span{u1 , u2 , u3 , u4 }, z1 is in W and z2 is in W ⊥ (since the dot product of any vector in W with u5 or u6 is zero)
  • 12. Example 2, section 6.3 Let {u1 , u2 , u3 , u4 } be an orthogonal basis for R4 .           1 −2 1 −1 4  2   1   1   1   5  u1 =   , u2 =     , u3 =     , u4 =    ,v =     1 −1 −2 1 −3             1 1 −1 −2 3 Write v as the sum of 2 vectors, one in the Span{u1 } and the other in Span{u2 , u3 , u4 }
  • 13. Example 2, section 6.3 Let {u1 , u2 , u3 , u4 } be an orthogonal basis for R4 .           1 −2 1 −1 4  2   1   1   1   5  u1 =   , u2 =     , u3 =     , u4 =    ,v =     1 −1 −2 1 −3             1 1 −1 −2 3 Write v as the sum of 2 vectors, one in the Span{u1 } and the other in Span{u2 , u3 , u4 } Solution: The vector in the Span{u1 } will be v u1 z1 = c 1 u 1 = u u1 u1 1 v u1 = 4 + 10 − 3 + 3 = 14, u1 u1 = 1 + 4 + 1 + 1 = 7 14 z1 = u1 = 2u1 7
  • 14. Example 2, section 6.3 The vector in the Span{u2 , u3 , u4 } will be v u2 v u3 v u4 z2 = c2 u2 + c3 u3 + c4 u4 = u2 + u3 + u u2 u2 u3 u3 u4 u4 4
  • 15. Example 2, section 6.3 The vector in the Span{u2 , u3 , u4 } will be v u2 v u3 v u4 z2 = c2 u2 + c3 u3 + c4 u4 = u2 + u3 + u u2 u2 u3 u3 u4 u4 4 v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7
  • 16. Example 2, section 6.3 The vector in the Span{u2 , u3 , u4 } will be v u2 v u3 v u4 z2 = c2 u2 + c3 u3 + c4 u4 = u2 + u3 + u u2 u2 u3 u3 u4 u4 4 v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7 v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7
  • 17. Example 2, section 6.3 The vector in the Span{u2 , u3 , u4 } will be v u2 v u3 v u4 z2 = c2 u2 + c3 u3 + c4 u4 = u2 + u3 + u u2 u2 u3 u3 u4 u4 4 v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7 v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7 v u4 = −4 + 5 − 3 − 6 = −8, u4 u4 = 4 + 1 + 1 + 1 = 7
  • 18. Example 2, section 6.3 The vector in the Span{u2 , u3 , u4 } will be v u2 v u3 v u4 z2 = c2 u2 + c3 u3 + c4 u4 = u2 + u3 + u u2 u2 u3 u3 u4 u4 4 v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7 v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7 v u4 = −4 + 5 − 3 − 6 = −8, u4 u4 = 4 + 1 + 1 + 1 = 7 3 12 8 z2 = u 2 + u3 − u4 7 7 7
  • 19. Example 2, section 6.3 The vector in the Span{u2 , u3 , u4 } will be v u2 v u3 v u4 z2 = c2 u2 + c3 u3 + c4 u4 = u2 + u3 + u u2 u2 u3 u3 u4 u4 4 v u2 = −8 + 5 + 3 + 3 = 3, u2 u2 = 4 + 1 + 1 + 1 = 7 v u3 = 4 + 5 + 6 − 3 = 12, u3 u3 = 1 + 1 + 4 + 1 = 7 v u4 = −4 + 5 − 3 − 6 = −8, u4 u4 = 4 + 1 + 1 + 1 = 7 3 12 8 z2 = u 2 + u3 − u4 7 7 7 Thus, 3 12 8 y = z1 + z2 = 2u1 + u2 + u3 − u4 7 7 7
  • 20. Orthogonal Decomposition Theorem Theorem Let W be a subspace of Rn . Then each y in Rn can be uniquely written as y = y + z, ˆ where y is in W ˆ and z is in W ⊥ . If u1 , u2 , . . . , up is an orthogonal basis for W, y u1 y u2 y up y= ˆ u1 + u2 + . . . + u u1 u1 u2 u2 up up p
  • 21. Orthogonal Decomposition Theorem Theorem Let W be a subspace of Rn . Then each y in Rn can be uniquely written as y = y + z, ˆ where y is in W ˆ and z is in W ⊥ . If u1 , u2 , . . . , up is an orthogonal basis for W, y u1 y u2 y up y= ˆ u1 + u2 + . . . + u u1 u1 u2 u2 up up p and z = y − y. ˆ
  • 22. Orthogonal Decomposition Theorem 1. As in the case of R2 , the new vector y is the orthogonal ˆ projection of y onto W . (In section 6.2, the orthogonal projection was onto a line through u and the origin)
  • 23. Orthogonal Decomposition Theorem 1. As in the case of R2 , the new vector y is the orthogonal ˆ projection of y onto W . (In section 6.2, the orthogonal projection was onto a line through u and the origin) 2. This is nothing but an extension of the orthogonal projection formula we had for R2 in section 6.2 to accomodate the remaining vectors.
  • 24. Orthogonal Decomposition Theorem 1. As in the case of R2 , the new vector y is the orthogonal ˆ projection of y onto W . (In section 6.2, the orthogonal projection was onto a line through u and the origin) 2. This is nothing but an extension of the orthogonal projection formula we had for R2 in section 6.2 to accomodate the remaining vectors. 3. If W is one dimensional, we get the formula for y from sec 6.2 ˆ
  • 25. Example 4, section 6.3 Let {u1 , u2 } be an orthogonal set. 6 3       −4 y =  3  , u1 =  4  , u2 =  3  −2 0 0 Find the orthogonal projection of y onto Span{u1 , u2 }
  • 26. Example 4, section 6.3 Let {u1 , u2 } be an orthogonal set. 6 3       −4 y =  3  , u1 =  4  , u2 =  3  −2 0 0 Find the orthogonal projection of y onto Span{u1 , u2 } Solution: The desired orthogonal projection is y u1 y u2 y = c1 u1 + c2 u2 = ˆ u1 + u u1 u1 u2 u2 2
  • 27. Example 4, section 6.3 Let {u1 , u2 } be an orthogonal set. 6 3       −4 y =  3  , u1 =  4  , u2 =  3  −2 0 0 Find the orthogonal projection of y onto Span{u1 , u2 } Solution: The desired orthogonal projection is y u1 y u2 y = c1 u1 + c2 u2 = ˆ u1 + u u1 u1 u2 u2 2 y u1 = 18 + 12 = 30, u1 u1 = 9 + 16 = 25
  • 28. Example 4, section 6.3 Let {u1 , u2 } be an orthogonal set. 6 3       −4 y =  3  , u1 =  4  , u2 =  3  −2 0 0 Find the orthogonal projection of y onto Span{u1 , u2 } Solution: The desired orthogonal projection is y u1 y u2 y = c1 u1 + c2 u2 = ˆ u1 + u u1 u1 u2 u2 2 y u1 = 18 + 12 = 30, u1 u1 = 9 + 16 = 25 y u2 = −24 + 9 = −15, u2 u2 = 16 + 9 = 25
  • 29. Example 4, section 6.3 30 15 y= ˆ u1 − u2 . 25 25
  • 30. Example 4, section 6.3 30 15 y= ˆ u1 − u2 . 25 25 3     −4 6 3 =  4 −  3  5 5 0 0  18   12   30  5 −5 5 =  24  −  9  =  15  5 5 5 0 0 0 6   = 3  0
  • 31. Example 8, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W . 1       −1 −1 y =  4  , u1 =  1  , u2 =  3  3 1 −2
  • 32. Example 8, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W . 1       −1 −1 y =  4  , u1 =  1  , u2 =  3  3 1 −2 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y = c1 u1 + c2 u2 = ˆ u + u u1 u1 1 u2 u2 2
  • 33. Example 8, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W . 1       −1 −1 y =  4  , u1 =  1  , u2 =  3  3 1 −2 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y = c1 u1 + c2 u2 = ˆ u + u u1 u1 1 u2 u2 2 y u1 = −1 + 4 + 3 = 6, u1 u1 = 1 + 1 + 1 = 3
  • 34. Example 8, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W . 1       −1 −1 y =  4  , u1 =  1  , u2 =  3  3 1 −2 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y = c1 u1 + c2 u2 = ˆ u + u u1 u1 1 u2 u2 2 y u1 = −1 + 4 + 3 = 6, u1 u1 = 1 + 1 + 1 = 3 y u2 = 1 + 12 − 6 = 7, u2 u2 = 1 + 9 + 4 = 14
  • 35. Example 4, section 6.3 6 7 y = u1 + ˆ u2 . 3 14
  • 36. Example 4, section 6.3 6 7 y = u1 + ˆ u2 . 3 14 1     −1 1 = 2 1 + 3  2 1 −2   1   3  2  −2 2 =  2 + 3  =  7  2 2 2 −1 1
  • 37. Example 4, section 6.3 6 7 y = u1 + ˆ u2 . 3 14 1     −1 1 = 2 1 + 3  2 1 −2   1   3  2  −2 2 =  2 + 3  =  7  2 2 2 −1 1 A vector orthogonal to W will be z = y − y which is ˆ    3   5  −1 2 −2  4 − 7  =  1  2 2 3 1 2
  • 38. Example 10, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W .         3 1 1 0  4   1   0   −1  y=  , u1 =     , u2 =     , u3 =     5 0 1 1           6 −1 1 −1
  • 39. Example 10, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W .         3 1 1 0  4   1   0   −1  y=  , u1 =     , u2 =     , u3 =     5 0 1 1           6 −1 1 −1 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y u3 y = c1 u1 + c2 u2 + c3 u3 = ˆ u1 + u2 + u u1 u1 u2 u2 u3 u3 3
  • 40. Example 10, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W .         3 1 1 0  4   1   0   −1  y=  , u1 =     , u2 =     , u3 =     5 0 1 1           6 −1 1 −1 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y u3 y = c1 u1 + c2 u2 + c3 u3 = ˆ u1 + u2 + u u1 u1 u2 u2 u3 u3 3 y u1 = 3 + 4 − 6 = 1, u1 u1 = 1 + 1 + 1 = 3
  • 41. Example 10, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W .         3 1 1 0  4   1   0   −1  y=  , u1 =     , u2 =     , u3 =     5 0 1 1           6 −1 1 −1 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y u3 y = c1 u1 + c2 u2 + c3 u3 = ˆ u1 + u2 + u u1 u1 u2 u2 u3 u3 3 y u1 = 3 + 4 − 6 = 1, u1 u1 = 1 + 1 + 1 = 3 y u2 = 3 + 5 + 6 = 14, u2 u2 = 1 + 1 + 1 = 3
  • 42. Example 10, section 6.3 Let W be the subspace spanned by the u's, then write y as the sum of a vector in W and a vector orthogonal to W .         3 1 1 0  4   1   0   −1  y=  , u1 =     , u2 =     , u3 =     5 0 1 1           6 −1 1 −1 Solution: A vector in W is the orthogonal projection of y onto W which is y u1 y u2 y u3 y = c1 u1 + c2 u2 + c3 u3 = ˆ u1 + u2 + u u1 u1 u2 u2 u3 u3 3 y u1 = 3 + 4 − 6 = 1, u1 u1 = 1 + 1 + 1 = 3 y u2 = 3 + 5 + 6 = 14, u2 u2 = 1 + 1 + 1 = 3 y u3 = −4 + 5 − 6 = −5, u3 u3 = 1 + 1 + 1 = 3
  • 43. Example 10, section 6.3 1 14 5 y = u1 + ˆ u2 − u3 3 3 3
  • 44. Example 10, section 6.3 1 14 5 y = u1 + ˆ u2 − u3 3 3 3       1 1 0 1 1  14  0  5  −1  = + −        0  3  1  3 1    3  −1 1 −1   5  2  =    3   6
  • 45. Example 10, section 6.3 1 14 5 y = u1 + ˆ u2 − u3 3 3 3       1 1 0 1 1  14  0  5  −1  = + −        0  3  1  3 1    3  −1 1 −1   5  2  =    3   6 A vector orthogonal to W will be z = y − y which is ˆ       3 5 −2  4   2   2  − =       5 3 2         6 6 0
  • 46. Applications 1. Let W = Span u1 , u2 , . . . , up (an orthogonal basis). Let y be any vector in Rn . Then the orthogonal projection y gives the ˆ closest point in W to y.
  • 47. Applications 1. Let W = Span u1 , u2 , . . . , up (an orthogonal basis). Let y be any vector in Rn . Then the orthogonal projection y gives the ˆ closest point in W to y. 2. The orthogonal projection y is also the best approximation to ˆ y by the elements of W (this means we can replace y by a vector in some xed subspace W and this replacement comes with the least error if we choose y).ˆ
  • 48. Example 12, section 6.3 Find the closest point to y in the subspace spanned by v1 and v2 .       3 1 −4  −1   −2   1  y=  , v1 =     , v2 =     1 −1 0         13 2 3
  • 49. Example 12, section 6.3 Find the closest point to y in the subspace spanned by v1 and v2 .       3 1 −4  −1   −2   1  y=  , v1 =     , v2 =     1 −1 0         13 2 3 Solution: The closest point to y is the orthogonal projection of y onto the span of v1 and v2 which is
  • 50. Example 12, section 6.3 Find the closest point to y in the subspace spanned by v1 and v2 .       3 1 −4  −1   −2   1  y=  , v1 =     , v2 =     1 −1 0         13 2 3 Solution: The closest point to y is the orthogonal projection of y onto the span of v1 and v2 which is y v1 y v2 y = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2
  • 51. Example 12, section 6.3 Find the closest point to y in the subspace spanned by v1 and v2 .       3 1 −4  −1   −2   1  y=  , v1 =     , v2 =     1 −1 0         13 2 3 Solution: The closest point to y is the orthogonal projection of y onto the span of v1 and v2 which is y v1 y v2 y = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2 y v1 = 3 + 2 − 1 + 26 = 30, v1 v1 = 1 + 4 + 1 + 4 = 10
  • 52. Example 12, section 6.3 Find the closest point to y in the subspace spanned by v1 and v2 .       3 1 −4  −1   −2   1  y=  , v1 =     , v2 =     1 −1 0         13 2 3 Solution: The closest point to y is the orthogonal projection of y onto the span of v1 and v2 which is y v1 y v2 y = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2 y v1 = 3 + 2 − 1 + 26 = 30, v1 v1 = 1 + 4 + 1 + 4 = 10 y v2 = −12 − 1 + 39 = 26, v2 v2 = 16 + 1 + 9 = 26
  • 53. Example 12, section 6.3 Find the closest point to y in the subspace spanned by v1 and v2 .       3 1 −4  −1   −2   1  y=  , v1 =     , v2 =     1 −1 0         13 2 3 Solution: The closest point to y is the orthogonal projection of y onto the span of v1 and v2 which is y v1 y v2 y = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2 y v1 = 3 + 2 − 1 + 26 = 30, v1 v1 = 1 + 4 + 1 + 4 = 10 y v2 = −12 − 1 + 39 = 26, v2 v2 = 16 + 1 + 9 = 26       1 −4 −1 30 26  −2   1   −5  y= ˆ v1 + v2 = 3  +   =    −1 0 −3   10 26       2 3 9
  • 54. Example 14, section 6.3 Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .       2 2 5  4   0   −2  z=  , v1 =     , v2 =     0 −1 4         −1 −3 2
  • 55. Example 14, section 6.3 Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .       2 2 5  4   0   −2  z=  , v1 =     , v2 =     0 −1 4         −1 −3 2 Solution: The best approximation to z is the orthogonal projection of z onto the span of v1 and v2 which is
  • 56. Example 14, section 6.3 Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .       2 2 5  4   0   −2  z=  , v1 =     , v2 =     0 −1 4         −1 −3 2 Solution: The best approximation to z is the orthogonal projection of z onto the span of v1 and v2 which is z v1 z v2 z = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2
  • 57. Example 14, section 6.3 Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .       2 2 5  4   0   −2  z=  , v1 =     , v2 =     0 −1 4         −1 −3 2 Solution: The best approximation to z is the orthogonal projection of z onto the span of v1 and v2 which is z v1 z v2 z = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2 z v1 = 4 + 3 = 7, v1 v1 = 4 + 1 + 9 = 14
  • 58. Example 14, section 6.3 Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .       2 2 5  4   0   −2  z=  , v1 =     , v2 =     0 −1 4         −1 −3 2 Solution: The best approximation to z is the orthogonal projection of z onto the span of v1 and v2 which is z v1 z v2 z = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2 z v1 = 4 + 3 = 7, v1 v1 = 4 + 1 + 9 = 14 z v2 = 10 − 8 − 2 = 0, v2 v2 = 25 + 4 + 16 + 4 = 49
  • 59. Example 14, section 6.3 Find the best approximation z by v1 and v2 of the form c1 v1 + c2 v2 .       2 2 5  4   0   −2  z=  , v1 =     , v2 =     0 −1 4         −1 −3 2 Solution: The best approximation to z is the orthogonal projection of z onto the span of v1 and v2 which is z v1 z v2 z = c1 v1 + c2 v2 = ˆ v + v v1 v1 1 v2 v2 2 z v1 = 4 + 3 = 7, v1 v1 = 4 + 1 + 9 = 14 z v2 = 10 − 8 − 2 = 0, v2 v2 = 25 + 4 + 16 + 4 = 49     2 1 7 0  0   0  z= ˆ v1 + v2 = 0.5  =    −1 −0.5   14 49     =0 −3 −1.5
  • 60. Topics to learn for Test 2 1. Evaluation of determinants, use of determinants in Cramer's rule, nding adjugate of a matrix and nding areas of parallelograms. 2. Finding char. equation, eigenvalues, eigenvectors of a square matrix (including triangular matrix) and use these in diagonalizing a matrix and computing higher exponents of the matrix. (you should know the condition under which diagonalization may fail). 3. Finding length of a vector, unit vector, orthogonal vectors and orthogonal basis, orthogonal projection onto a subspace spanned by any number of vectors, closest point/best approximation of a vector Good luck. Feel free to email me if you have any questions. Please come prepared for Wednesday's review. Bring any problems you want me to go over.