SlideShare a Scribd company logo
1 of 81
Download to read offline
Announcements




     Quiz 4 (last quiz of the term) tomorrow on sec 3.3, 5.1 and
     5.2.

     Three problems on tomorrow's quiz(Cramer's rule/adjugate,
     nding eigenvector(s) given one or more eigenvalue(s), nding
     char polynomial/eigenvalues of a 2 × 2 or a nice 3 × 3 matrix.)

     You must show all relevant work on the quiz. Calculator
     answers are not acceptable.
Chapter 6 Orthogonality




   Objectives

    1. Extend the idea of simple geometric ideas namely length,
       distance and perpendicularity from   R2   and   R3   into   Rn
Chapter 6 Orthogonality




   Objectives

    1. Extend the idea of simple geometric ideas namely length,
       distance and perpendicularity from   R2   and   R3   into   Rn
    2. Useful in tting experimental data of a system Ax = b. If           x1
       is an acceptable solution, we want the distance between          b   and
       Ax1 to be minimum (or minimize the error)
Chapter 6 Orthogonality




   Objectives

    1. Extend the idea of simple geometric ideas namely length,
       distance and perpendicularity from   R2   and   R3   into   Rn
    2. Useful in tting experimental data of a system Ax = b. If           x1
       is an acceptable solution, we want the distance between          b   and
       Ax1 to be minimum (or minimize the error)
    3. The solution above is called the least-squares solution and is
       widely used where experimental data is scattered over a wide
       range and you want to t a straight line.
Inner product

   Let   u   and   v   be two vectors in    Rn .
                                                         
                                      u1             v1
                                     u2           v2 
                                                     
                                u=     .
                                             ,v =    .
                                                            
                                        .              .
                                        .              .
                                                         
                                                         
                                        un             vn
Inner product

   Let   u   and   v   be two vectors in       Rn .
                                                             
                                         u1              v1
                                        u2            v2 
                                                         
                                   u=     .
                                                ,v =     .
                                                                
                                           .               .
                                           .               .
                                                             
                                                             
                                           un              vn

   Both      u   and   v   are n × 1 matrices.


                                  uT =     u1     u2   . . . un
Inner product

   Let   u   and   v   be two vectors in       Rn .
                                                                  
                                         u1                 v1
                                        u2               v2 
                                                            
                                   u=     .
                                                ,v =           .
                                                                     
                                           .                     .
                                           .                     .
                                                                  
                                                                  
                                           un                 vn

   Both      u   and   v   are n × 1 matrices.


                                  uT =     u1     u2     . . . un

   This is an 1 × n matrix. Thus we can dene the product                         uT v   as

                                                                             
                                                                       v1
                                                                      v2 
                             uT v =
                                                                         
                                      u1    u2        . . . un          .
                                                                              
                                                                         .
                                                                         .
                                                                             
                                                                             
                                                                         vn
1×n   n×1
1×n           n×1

      Match
1×n                     n×1

                             Match


                           Size of   uT v


The product will be a 1 × 1 matrix or it is just a number (not a
vector) and is given by


                          u1 v1 + u2 v2 + . . . + un vn

Nothing but sum of the respective components multiplied.
Inner Product




    1. The number   uT v   is called the inner product of   u   and   v.
    2. Inner product of 2 vectors is a number.

    3. Inner product is also called dot product (in Calculus II)

    4. Often written as   u v
Example


  Let
                                                   
                                   4             5
                          w=      1   ,x =    0    
                                   2             −3
                          wx
  Find   w x, w w   and
                          ww
Example


  Let
                                                      
                                    4               5
                            w=     1   ,x =      0    
                                    2               −3
                          wx
  Find   w x, w w   and
                          ww
                                           
                                        5
   w x = wT x =     4   1   2          0    = (4)(5) + (1)(0) + (2)(−3) = 14
                                    −3
Example


  Let
                                                                      
                                                4                   5
                                w=             1   ,x =          0    
                                                2                   −3
                            wx
  Find   w x, w w   and
                            ww
                                                           
                                                    5
   w x = wT x =     4       1       2              0        = (4)(5) + (1)(0) + (2)(−3) = 14
                                                −3
                                                           
                                                        4
    w w = wT w =        4       1       2              1    = (4)(4) + (1)(1) + (2)(2) = 21
                                                        2
Example


  Let
                                                                          
                                                4                        5
                                w=             1   ,x =               0   
                                                2                    −3
                            wx
  Find   w x, w w   and
                            ww
                                                           
                                                    5
   w x = wT x =     4       1       2              0        = (4)(5) + (1)(0) + (2)(−3) = 14
                                                −3
                                                           
                                                        4
    w w = wT w =        4       1       2              1    = (4)(4) + (1)(1) + (2)(2) = 21
                                                        2

                                        w x                 14       2
                                                        =        = .
                                        w w                 21       3
Properties of Inner Product




    1.   u v=v u
    2.   (u+v) w = u w + v w
    3.   (c u) v = u (c v)
    4.   u u ≥ 0,   and   u u=0   if and only if   u=0
Length of a Vector
                                      a
   Consider any point in   R2 , v =       . What is the length of the line
                                      b
   segment from (0,0) to   v?
                               y




                                                                x
                           0
Length of a Vector
                                      a
   Consider any point in   R2 , v =       . What is the length of the line
                                      b
   segment from (0,0) to   v?
                               y




                                                                x
                           0              |a |
Length of a Vector
                                      a
   Consider any point in   R2 , v =       . What is the length of the line
                                      b
   segment from (0,0) to   v?
                               y




                                                         |b |




                                                                x
                           0              |a |
Length of a Vector
                                      a
   Consider any point in   R2 , v =       . What is the length of the line
                                      b
   segment from (0,0) to   v?
                               y




                                                        (a, b)



                                                         |b |




                                                                 x
                           0              |a |
Length of a Vector
                                      a
   Consider any point in   R2 , v =       . What is the length of the line
                                      b
   segment from (0,0) to   v?
                               y




                                                        (a, b)


                                          a2 + b 2

                                                         |b |




                                                                 x
                           0               |a |
Length of a Vector



                                                           
                                                     v1
                                                    v2 
                                                       
   We can extend this idea to   Rn ,   where   v=     .
                                                            .
                                                       .
                                                       .
                                                           
                                                           
                                                       vn

   Denition
   The length (or the norm) of   v     is the nonnegative scalar   v   dened
   by

                     v =   v v=           2    2            2
                                         v1 + v2 + . . . + vn


   Since we have sum of squares of the components, the square root is
   always dened.
Length of a Vector




   If c is a scalar, the length of c v is c times the length of   v.   If c    1,
   the vector is stretched by c units and if c    1, c   shrinks by c units.
Length of a Vector




   If c is a scalar, the length of c v is c times the length of   v.   If c    1,
   the vector is stretched by c units and if c    1, c   shrinks by c units.

   Denition
   A vector of length 1 is called a unit vector.
Length of a Vector




   If c is a scalar, the length of c v is c times the length of        v.   If c    1,
   the vector is stretched by c units and if c         1, c   shrinks by c units.

   Denition
   A vector of length 1 is called a unit vector.




                                                                       1
   If we divide a vector    v   by its length   v    (or multiply by
                                                                       v ), we get
   the unit vector   u   in the direction of    v.
Length of a Vector




   If c is a scalar, the length of c v is c times the length of             v.   If c    1,
   the vector is stretched by c units and if c           1, c   shrinks by c units.

   Denition
   A vector of length 1 is called a unit vector.




                                                                            1
   If we divide a vector    v   by its length     v    (or multiply by
                                                                            v ), we get
   the unit vector   u   in the direction of      v.



   The process of getting       u   from   v   is called normalizing   v.
Example 10, sec 6.1
                                                      
                                                  −6
   Find a unit vector in the direction of   v=   4    .
                                                  −3



   To compute the length of   v,   rst nd


                v v = (−6)2 + 42 + (−3)2 = 36 + 16 + 9 = 61
Example 10, sec 6.1
                                                      
                                                  −6
   Find a unit vector in the direction of   v=   4    .
                                                  −3



   To compute the length of   v,   rst nd


                v v = (−6)2 + 42 + (−3)2 = 36 + 16 + 9 = 61

   Then,
                                   v =   61
Example 10, sec 6.1
                                                              
                                                         −6
   Find a unit vector in the direction of       v=      4     .
                                                         −3



   To compute the length of    v,   rst nd


                v v = (−6)2 + 42 + (−3)2 = 36 + 16 + 9 = 61

   Then,
                                    v =         61

   The unit vector in the direction of      v   is
                                                                    
                                                         −6/
                                               
                                        −6                      61
                      1        1
                 u=       v=            4       =      4/    61
                                                                    
                      v
                                                                    
                               61
                                        −3               −3/    61
Distance in      Rn



   In   R   (the set of real numbers), the distance between 2 numbers is
   easy.




   The distance between 4 and 15 is |4 − 14| = | − 10| = 10 or
   |14 − 4| = |10| = 10.
Distance in      Rn



   In   R   (the set of real numbers), the distance between 2 numbers is
   easy.




   The distance between 4 and 15 is |4 − 14| = | − 10| = 10 or
   |14 − 4| = |10| = 10.
   Similarly the distance between -5 and 5 is   | − 5 − 5| = | − 10| = 10   or
   |5 − (−5)| = |10| = 10



   Distance has a direct analogue in    Rn .
Distance in    Rn




   Denition
   For any two vectors   u   and   v   in   Rn ,   the distance between   u   and   v
   written as dist(u,v) is the length of the vector          u-v.

                               dist(u, v) = u-v
Example 14, sec 6.1



                                                             
                                        0                    −4
   Find the distance between   u =  −5        and    v =  −1 .
                                        2                     8




   To compute the distance between      u   and   v,   rst nd

                                                
                               0         −4       4
                  u − v =  −5      −  −1  =  −4 
                               2          8       −6

   Then,
                      u-v =        16 + 16 + 36 =       68
Orthogonal Vectors




   v




           0




                     -v
Orthogonal Vectors



                                       u


   v




               0




                                  -v

   If the 2 green lines are perpendicular,   u   must have the same
   distance from   v   and   -v
Orthogonal Vectors



                                       u
                       u-v

   v



                                       u-(-v)


               0




                                  -v

   If the 2 green lines are perpendicular,   u   must have the same
   distance from   v   and   -v
Orthogonal Vectors


                             u-(-v) = u-v

   To avoid square roots, let us work with the squares


                   u-(-v) 2 = u+v 2 = (u+v) (u+v)
Orthogonal Vectors


                             u-(-v) = u-v

   To avoid square roots, let us work with the squares


                   u-(-v) 2 = u+v 2 = (u+v) (u+v)



                         = u (u+v) + v (u+v)
Orthogonal Vectors


                             u-(-v) = u-v

   To avoid square roots, let us work with the squares


                   u-(-v) 2 = u+v 2 = (u+v) (u+v)



                         = u (u+v) + v (u+v)


                        = u u+u v+v u+v v
Orthogonal Vectors


                             u-(-v) = u-v

   To avoid square roots, let us work with the squares


                   u-(-v) 2 = u+v 2 = (u+v) (u+v)



                         = u (u+v) + v (u+v)


                        = u u+u v+v u+v v


                          = u 2 + v 2 + 2u v
Orthogonal Vectors


                                u-(-v) = u-v

   To avoid square roots, let us work with the squares


                   u-(-v) 2 = u+v 2 = (u+v) (u+v)



                             = u (u+v) + v (u+v)


                            = u u+u v+v u+v v


                              = u 2 + v 2 + 2u v
   Interchange -v and   v   and we get


                            u-v 2 = u 2 + v 2 − 2u v
Orthogonal Vectors




   Equate the 2 expressions,


                  u 2 + v 2 + 2u v = u 2 + v 2 − 2u v

                           =⇒ 2u v = −2u v
                               =⇒ u v = 0
Orthogonal Vectors




   Equate the 2 expressions,


                          u 2 + v 2 + 2u v = u 2 + v 2 − 2u v

                                       =⇒ 2u v = −2u v
                                             =⇒ u v = 0
   If   u   and   v   are points in   R2 ,   the lines through these points and (0,0)
   are perpendicular if and only if


                                               u v=0
Orthogonal Vectors




   Equate the 2 expressions,


                          u 2 + v 2 + 2u v = u 2 + v 2 − 2u v

                                       =⇒ 2u v = −2u v
                                             =⇒ u v = 0
   If   u   and   v   are points in   R2 ,   the lines through these points and (0,0)
   are perpendicular if and only if


                                               u v=0

   Generalize this idea of perpendicularity to             Rn .   We use the word
   orthogonality in linear algebra for perpendicularity.
Orthogonal Vectors




   Denition
   Two vectors   u   and   v   in   Rn   are orthogonal (to each other) if


                                           u v=0



   The zero vector    0    is orthogonal to every vector in     Rn .
Orthogonal Vectors




   Denition
   Two vectors   u   and   v   in   Rn   are orthogonal (to each other) if


                                           u v=0



   The zero vector    0    is orthogonal to every vector in     Rn .
   Theorem
   Two vectors   u and v are orthogonal if and only if
                            u+v 2 = u 2 + v 2
   This is called the Pythagorean theorem.
Example 16, 18 section 6.1



   Decide which pair(s) of vectors are orthogonal
                                  
               12                2
   16)u =      3    , v =  −3 
               −5                3


              u v = (12)(2) + (3)(−3) + (−5)(3) = 24 − 9 − 15 = 0.

   Thus   u   and   v   are orthogonal.
Example 16, 18 section 6.1



   Decide which pair(s) of vectors are orthogonal
                                      
                   12                2
   16)u =         3        , v =  −3 
                   −5                3


                  u v = (12)(2) + (3)(−3) + (−5)(3) = 24 − 9 − 15 = 0.

   Thus   uand vare          orthogonal.
                                     
                  −3                 1
                  7
                                 −8    
   18)y =                 ,z = 
                                      
                   4              15
                                         
                                       
                   0               −7

   y z = (−3)(1) + (7)(−8) + (4)(15) + (0)(−7) = −3 − 56 + 60 − 0 = 1 = 0.

   Thus   y   and      z   are not orthogonal.
Orthogonal Complement




  Let W be a subspace of   Rn .    If any vector   z   is orthogonal to every
  vector in W , we say that   z   is orthogonal to W .




  There could be more than one such vector         z   which is orthogonal to
  W.
Orthogonal Complement




  Let W be a subspace of   Rn .    If any vector   z   is orthogonal to every
  vector in W , we say that   z   is orthogonal to W .




  There could be more than one such vector         z   which is orthogonal to
  W.

  Denition
  A collection of all vectors that are orthogonal to W is called the
  orthogonal complement of W .
Orthogonal Complement




  Let W be a subspace of   Rn .    If any vector   z   is orthogonal to every
  vector in W , we say that   z   is orthogonal to W .




  There could be more than one such vector         z   which is orthogonal to
  W.

  Denition
  A collection of all vectors that are orthogonal to W is called the
  orthogonal complement of W .
                                                              ⊥
  The orthogonal complement of W is denoted by W                  and is read as
  W perpendicular or W perp.
Orthogonal Complement




                                ⊥
    1. A vector   x   is in W       if and only if   x   is orthogonal to every
      vector that spans (generates) W .
Orthogonal Complement




                                 ⊥
    1. A vector    x   is in W       if and only if   x   is orthogonal to every
      vector that spans (generates) W .

    2. W
           ⊥
               is a subspace of      Rn .
Orthogonal Complement




                                   ⊥
    1. A vector      x   is in W       if and only if   x   is orthogonal to every
       vector that spans (generates) W .

    2. W
           ⊥
               is a subspace of        Rn .
    3. If A is an m × n matrix, the orthogonal complement of Col A is
       Nul A
                T.   (Useful in part (d) of T/F questions, prob 19)
Orthogonal Complement




                                   ⊥
    1. A vector      x   is in W       if and only if   x   is orthogonal to every
       vector that spans (generates) W .

    2. W
           ⊥
               is a subspace of        Rn .
    3. If A is an m × n matrix, the orthogonal complement of Col A is
       Nul A
                T.   (Useful in part (d) of T/F questions, prob 19)
                                                  ⊥
    4. If a vector is in both W and W                 , then that vector must be
       the zero vector. (The only vector perpendicular to itself is the
       zero vector)
Section 6.2 Orthogonal Sets




   Consider a set of vectors   u1 , u2 , . . . , up   in   Rn .   If each pair of
   distinct vectors from the set is orthogonal (that is              u1 u2 = 0,
   u1 u3 = 0, u2 u3 = 0   etc etc) then the set is called an orthogonal
   set.
Example 2 section 6.2
                                                  
                                1         0         −5
   Decide whether the set    −2  ,     1    ,  −2    is orthogonal.
                                1         2         1
Example 2 section 6.2
                                                     
                                   1         0         −5
   Decide whether the set       −2  ,     1    ,  −2    is orthogonal.
                                   1         2         1

                        
             1         0
          −2        1    = (1)(0) + (−2)(1) + (1)(2) = −2 + 2 = 0
             1         2
Example 2 section 6.2
                                                         
                                       1         0         −5
   Decide whether the set           −2  ,     1    ,  −2    is orthogonal.
                                       1         2         1

                            
                 1         0
          −2            1    = (1)(0) + (−2)(1) + (1)(2) = −2 + 2 = 0
                 1         2

                     
             0       −5
            1     −2  = (0)(−5) + (1)(−2) + (2)(1) = −2 + 2 = 0
             2         1
Example 2 section 6.2
                                                             
                                           1         0         −5
   Decide whether the set               −2  ,     1    ,  −2    is orthogonal.
                                           1         2         1

                                
                 1             0
          −2                1    = (1)(0) + (−2)(1) + (1)(2) = −2 + 2 = 0
                 1             2

                     
             0       −5
            1     −2  = (0)(−5) + (1)(−2) + (2)(1) = −2 + 2 = 0
             2             1

                 
         1       −5
      −2      −2  = (1)(−5) + (−2)(−2) + (1)(1) = −5 + 4 + 1 = 0
         1             1

   Since all pairs are orthogonal, we have an orthogonal set. (If one
   pair fails, and all other pairs are orthogonal, it FAILS to be an
   orthogonal set)
Orthogonal set and Linear Independence




   Theorem
   Let S =   u u      u
               1 , 2 , . . . , p be an orthogonal set of NONZERO vectors
   in Rn . S is linearly independent and is a basis for the subspace
   spanned (generated) by S .
Orthogonal set and Linear Independence




   Theorem
   Let S =   u u      u
               1 , 2 , . . . , p be an orthogonal set of NONZERO vectors
   in Rn . S is linearly independent and is a basis for the subspace
   spanned (generated) by S .
   Make sure that the zero vector is NOT in the set. Otherwise the
   set is linearly dependent.
Orthogonal set and Linear Independence




   Theorem
   Let S =   u u      u
               1 , 2 , . . . , p be an orthogonal set of NONZERO vectors
   in Rn . S is linearly independent and is a basis for the subspace
   spanned (generated) by S .
   Make sure that the zero vector is NOT in the set. Otherwise the
   set is linearly dependent.




   Remember the denition of basis? For any subspace W of       Rn ,   a set
   of vectors that

    1. spans W and

    2. is linearly independent
Orthogonal Basis


   An orthogonal basis for a subspace W of   Rn   is a set

    1. spans W and

    2. is linearly independent and

    3. is orthogonal
Orthogonal Basis


   An orthogonal basis for a subspace W of      Rn   is a set

    1. spans W and

    2. is linearly independent and

    3. is orthogonal


   Theorem
   Let  u1, u2, . . . , up be an orthogonal basis for a subspace W of Rn .
   For each y in W , the weights in the linear combination

                            y = c1u1 + c2u2 + . . . + cp up
   are given by

                          y u1 , c2 = y u2 , c3 = y u3 . . .
                   c1 =
                          u1 u1 u2 u2 u3 u3
Orthogonal Basis




   If we have an orthogonal basis

    1. Computing the weights in the linear combination becomes
       much easier.

    2. No need for augmented matrix/ row reductions.
Example 8, section 6.2

   Show that   { u1 , u2 }   is an orthogonal basis and express     x   as a linear
                                                  3            −2            −6
   combination of the        u's   where   u1 =       , u2 =        ,x =
                                                  1            6              3




   Solution: You must verify whether the set is orthogonal.


                         3          −2
                                           = (3)(−2) + (1)(6) = 0
                         1          6

   . So we have an orthogonal set. By the theorem, we also have an
   orthogonal basis.
Example 8, section 6.2

   Show that    { u1 , u2 }   is an orthogonal basis and express            x   as a linear
                                                         3             −2            −6
   combination of the         u's   where     u1 =            , u2 =        ,x =
                                                         1              6             3




   Solution: You must verify whether the set is orthogonal.


                          3          −2
                                              = (3)(−2) + (1)(6) = 0
                          1          6

   . So we have an orthogonal set. By the theorem, we also have an
   orthogonal basis. To nd the weights so that we can express
   x = c1 u1 + c2 u2 ,   we need

                                    −6          3
                     x u1 =                              = −18 + 3 = −15
                                     3          1


                                          3          3
                         u1 u1 =                             = 9 + 1 = 10
                                          1          1
Example 8, section 6.2




                          x u1        −15
                   c1 =           =         = −1.5
                          u1 u1       10
Example 8, section 6.2




                              x u1       −15
                   c1 =              =          = −1.5
                          u1 u1           10


                         −6          −2
              x u2 =                           = 12 + 18 = 30
                          3          6

                          −2             −2
              u2 u2 =                           = 4 + 36 = 40
                              6          6

                              x u2        30
                       c2 =         =          = 0.75
                              u2 u2       40
Example 8, section 6.2




                              x u1       −15
                   c1 =              =          = −1.5
                          u1 u1           10


                         −6          −2
              x u2 =                           = 12 + 18 = 30
                          3          6

                          −2             −2
              u2 u2 =                           = 4 + 36 = 40
                              6          6

                              x u2        30
                       c2 =         =          = 0.75
                              u2 u2       40

   Thus
                        x = −1.5u1 + 0.75u2 .
Example 10, section 6.2

   Show that     { u1 , u2 , u3 }   is an orthogonal basis for     R3   and express   x   as
   a linear combination of the
                                        u's where 
                                                                     
            3            2                           1             5
   u1 =  −3  , u2 =              2    , u3 =    1    , x =  −3 
             0                  −1                   4             1




   Solution: You must verify whether the set is orthogonal (check all
   pairs).

                                     
                     3              1
                  −3             1    = (3)(1) + (−3)(1) + (0)(4) = 0
                     0              4

   .
                                     
                     1              2
                    1            2    = (1)(2) + (1)(2) + (4)(−1) = 0
                     4          −1
Example 10, section 6.2

                                  
                   3             2
                −3            2    = (3)(2) + (−3)(2) + (0)(4) = 0
                   0         −1
   . So we have an orthogonal set. By the theorem, we also have an
   orthogonal basis. To nd the weights so that we can express
   x = c1 u1 + c2 u2 + c3 u3 ,   we need
Example 10, section 6.2

                                  
                   3             2
                −3            2    = (3)(2) + (−3)(2) + (0)(4) = 0
                   0          −1
   . So we have an orthogonal set. By the theorem, we also have an
   orthogonal basis. To nd the weights so that we can express
   x = c1 u1 + c2 u2 + c3 u3 ,   we need

                                                   
                                     5            3
                       x u1 =  −3   −3  = 15 + 9 = 24
                                     1            0

                                                    
                                      3           3
                       u1 u1 =  −3   −3  = 9 + 9 = 18
                                      0           0

                                          x u1        24       4
                                 c1 =             =        =
                                          u1 u1       18       3
Example 10, section 6.2




                                          
                          5            2
              x u2 =  −3            2      = 10 − 6 − 1 = 3
                          1         −1
                                            
                           2             2
              u2 u2 =     2           2      = 4+4+1 = 9
                          −1            −1
                                 x u2          3       1
                          c2 =             =       =
                                 u2 u2         9       3
                        
                   5              1
       x u3 =  −3              1       = 5−3+4 = 6
                   1              4
                                  
                   1          1
       u3 u3 =    1        1       = 1 + 1 + 16 = 18
                   4          4

                           x u3          6        1
               c3 =                  =        =
                       u3 u3             18       3

Thus
                       4         1            1
               x=          u1 + u2 + u3 .
                       3         3            3
Section 6.2 Orthonormal Sets




   Consider a set of vectors   u1 , u2 , . . . , up   . If this is an orthogonal
   set (pairwise dot product =0) AND if each vector is a unit vector
   (length 1), the set is called an orthonormal set. A basis formed by
   orthonormal vectors is called an orthonormal basis (linearly
   independent by the same theorem we saw earlier).
Example 20 section 6.2
                                  −2/3             1/3
                                                      

   Decide whether the set   u=   1/3    ,v =    2/3      is an
                                  2/3               0
   orthonormal set. If only orthogonal, normalize the vectors to
   produce an orthonormal set.
Example 20 section 6.2
                                   −2/3                  1/3
                                                            

   Decide whether the set    u=    1/3      ,v =      2/3      is an
                                    2/3                   0
   orthonormal set. If only orthogonal, normalize the vectors to
   produce an orthonormal set.

                      −2/3         1/3
                                      
                     1/3        2/3    = −2 + 2 +0 = 0
                                                 3   3
                      2/3           0
Example 20 section 6.2
                                        −2/3                            1/3
                                                                           

   Decide whether the set        u=    1/3         ,v =              2/3        is an
                                        2/3                              0
   orthonormal set. If only orthogonal, normalize the vectors to
   produce an orthonormal set.

                         −2/3          1/3
                                             
                        1/3         2/3       = −2 + 2 +0 = 0
                                                            3       3
                         2/3            0

   The set is orthogonal. Find the length of each vector to check
   whether it is orthonormal.


                                                        4       1       4
                            u =        u u=                 +       +
                                                        9       9       9


                                            4       1       4            9
                      u =       u u=            +       +       =            = 1.
                                            9       9       9            9

   Thus   u   has unit length.
Example 20 section 6.2




                                   1       4          5        5
                   v =    v v=         +       +0 =       =        .
                                   9       9          9        3

   Since this is not of unit length we have to divide each component
                                                                        1 
                                                 1             5
                                                                  
                                                   /                      5
                                5               3            3  
                                                               5 =     2 
   of v by its length which is
                               3  . This gives  2 /
                                                 3            3           5
                                                                            
                                                          0              0

More Related Content

What's hot

14.6 triple integrals in cylindrical and spherical coordinates
14.6 triple integrals in cylindrical and spherical coordinates14.6 triple integrals in cylindrical and spherical coordinates
14.6 triple integrals in cylindrical and spherical coordinatesEmiey Shaari
 
Liner algebra-vector space-1 introduction to vector space and subspace
Liner algebra-vector space-1   introduction to vector space and subspace Liner algebra-vector space-1   introduction to vector space and subspace
Liner algebra-vector space-1 introduction to vector space and subspace Manikanta satyala
 
Power series convergence ,taylor & laurent's theorem
Power series  convergence ,taylor & laurent's theoremPower series  convergence ,taylor & laurent's theorem
Power series convergence ,taylor & laurent's theoremPARIKH HARSHIL
 
Lesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationLesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationMatthew Leingang
 
Fixed Point Theorems
Fixed Point TheoremsFixed Point Theorems
Fixed Point TheoremsNikhil Simha
 
Vector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,BasisVector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,BasisRavi Gelani
 
Solving Systems of Linear Inequalities
Solving Systems of Linear InequalitiesSolving Systems of Linear Inequalities
Solving Systems of Linear Inequalitiesswartzje
 
2.1 Union, intersection and complement
2.1 Union, intersection and complement2.1 Union, intersection and complement
2.1 Union, intersection and complementJan Plaza
 
6.4 inverse matrices
6.4 inverse matrices6.4 inverse matrices
6.4 inverse matricesmath260
 
Complex analysis book by iit
Complex analysis book by iitComplex analysis book by iit
Complex analysis book by iitJITENDRA SUWASIYA
 
34 polar coordinate and equations
34 polar coordinate and equations34 polar coordinate and equations
34 polar coordinate and equationsmath266
 
Continuity and differentiability
Continuity and differentiability Continuity and differentiability
Continuity and differentiability Seyid Kadher
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - NotesDr. Nirav Vyas
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equationsmuhammadabullah
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its applicationKrishna Peshivadiya
 

What's hot (20)

14.6 triple integrals in cylindrical and spherical coordinates
14.6 triple integrals in cylindrical and spherical coordinates14.6 triple integrals in cylindrical and spherical coordinates
14.6 triple integrals in cylindrical and spherical coordinates
 
Analytic geometry basic concepts
Analytic geometry basic conceptsAnalytic geometry basic concepts
Analytic geometry basic concepts
 
Liner algebra-vector space-1 introduction to vector space and subspace
Liner algebra-vector space-1   introduction to vector space and subspace Liner algebra-vector space-1   introduction to vector space and subspace
Liner algebra-vector space-1 introduction to vector space and subspace
 
Power series convergence ,taylor & laurent's theorem
Power series  convergence ,taylor & laurent's theoremPower series  convergence ,taylor & laurent's theorem
Power series convergence ,taylor & laurent's theorem
 
Lesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationLesson 9: Gaussian Elimination
Lesson 9: Gaussian Elimination
 
Fixed Point Theorems
Fixed Point TheoremsFixed Point Theorems
Fixed Point Theorems
 
Vector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,BasisVector Spaces,subspaces,Span,Basis
Vector Spaces,subspaces,Span,Basis
 
Solving Systems of Linear Inequalities
Solving Systems of Linear InequalitiesSolving Systems of Linear Inequalities
Solving Systems of Linear Inequalities
 
2.1 Union, intersection and complement
2.1 Union, intersection and complement2.1 Union, intersection and complement
2.1 Union, intersection and complement
 
Separation of variables
Separation of variablesSeparation of variables
Separation of variables
 
6.4 inverse matrices
6.4 inverse matrices6.4 inverse matrices
6.4 inverse matrices
 
Dot Product.pptx
Dot Product.pptxDot Product.pptx
Dot Product.pptx
 
Complex analysis book by iit
Complex analysis book by iitComplex analysis book by iit
Complex analysis book by iit
 
34 polar coordinate and equations
34 polar coordinate and equations34 polar coordinate and equations
34 polar coordinate and equations
 
Linear and non linear equation
Linear and non linear equationLinear and non linear equation
Linear and non linear equation
 
Continuity and differentiability
Continuity and differentiability Continuity and differentiability
Continuity and differentiability
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - Notes
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its application
 

Viewers also liked (13)

Systems of Linear Equations
Systems of Linear EquationsSystems of Linear Equations
Systems of Linear Equations
 
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
 
Determinants, Properties and IMT
Determinants, Properties and IMTDeterminants, Properties and IMT
Determinants, Properties and IMT
 
Orthogonal Decomp. Thm
Orthogonal Decomp. ThmOrthogonal Decomp. Thm
Orthogonal Decomp. Thm
 
Complex Eigenvalues
Complex EigenvaluesComplex Eigenvalues
Complex Eigenvalues
 
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
 
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
 

Similar to Orthogonal sets and basis

multiple linear reggression model
multiple linear reggression modelmultiple linear reggression model
multiple linear reggression modelOmarSalih
 
Chapter 4: Vector Spaces - Part 5/Slides By Pearson
Chapter 4: Vector Spaces - Part 5/Slides By PearsonChapter 4: Vector Spaces - Part 5/Slides By Pearson
Chapter 4: Vector Spaces - Part 5/Slides By PearsonChaimae Baroudi
 
Ch_12 Review of Matrices and Vectors (PPT).pdf
Ch_12 Review of Matrices and Vectors (PPT).pdfCh_12 Review of Matrices and Vectors (PPT).pdf
Ch_12 Review of Matrices and Vectors (PPT).pdfMohammed Faizan
 
Unit iii
Unit iiiUnit iii
Unit iiimrecedu
 
Cl dys of p and s 5 ed
Cl dys of p and s 5 edCl dys of p and s 5 ed
Cl dys of p and s 5 edroctaiwan101
 
Vector space interpretation_of_random_variables
Vector space interpretation_of_random_variablesVector space interpretation_of_random_variables
Vector space interpretation_of_random_variablesGopi Saiteja
 
G224549
G224549G224549
G224549irjes
 

Similar to Orthogonal sets and basis (10)

multiple linear reggression model
multiple linear reggression modelmultiple linear reggression model
multiple linear reggression model
 
Chapter 4: Vector Spaces - Part 5/Slides By Pearson
Chapter 4: Vector Spaces - Part 5/Slides By PearsonChapter 4: Vector Spaces - Part 5/Slides By Pearson
Chapter 4: Vector Spaces - Part 5/Slides By Pearson
 
Ch_12 Review of Matrices and Vectors (PPT).pdf
Ch_12 Review of Matrices and Vectors (PPT).pdfCh_12 Review of Matrices and Vectors (PPT).pdf
Ch_12 Review of Matrices and Vectors (PPT).pdf
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Cl dys of p and s 5 ed
Cl dys of p and s 5 edCl dys of p and s 5 ed
Cl dys of p and s 5 ed
 
Models
ModelsModels
Models
 
Toeplitz (2)
Toeplitz (2)Toeplitz (2)
Toeplitz (2)
 
01 plain
01 plain01 plain
01 plain
 
Vector space interpretation_of_random_variables
Vector space interpretation_of_random_variablesVector space interpretation_of_random_variables
Vector space interpretation_of_random_variables
 
G224549
G224549G224549
G224549
 

More from Prasanth George

Finding eigenvalues, char poly
Finding eigenvalues, char polyFinding eigenvalues, char poly
Finding eigenvalues, char polyPrasanth 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, basisPrasanth George
 
Matrix multiplication, inverse
Matrix multiplication, inverseMatrix multiplication, inverse
Matrix multiplication, inversePrasanth George
 

More from 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
 

Recently uploaded

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 

Recently uploaded (20)

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 

Orthogonal sets and basis

  • 1. Announcements Quiz 4 (last quiz of the term) tomorrow on sec 3.3, 5.1 and 5.2. Three problems on tomorrow's quiz(Cramer's rule/adjugate, nding eigenvector(s) given one or more eigenvalue(s), nding char polynomial/eigenvalues of a 2 × 2 or a nice 3 × 3 matrix.) You must show all relevant work on the quiz. Calculator answers are not acceptable.
  • 2. Chapter 6 Orthogonality Objectives 1. Extend the idea of simple geometric ideas namely length, distance and perpendicularity from R2 and R3 into Rn
  • 3. Chapter 6 Orthogonality Objectives 1. Extend the idea of simple geometric ideas namely length, distance and perpendicularity from R2 and R3 into Rn 2. Useful in tting experimental data of a system Ax = b. If x1 is an acceptable solution, we want the distance between b and Ax1 to be minimum (or minimize the error)
  • 4. Chapter 6 Orthogonality Objectives 1. Extend the idea of simple geometric ideas namely length, distance and perpendicularity from R2 and R3 into Rn 2. Useful in tting experimental data of a system Ax = b. If x1 is an acceptable solution, we want the distance between b and Ax1 to be minimum (or minimize the error) 3. The solution above is called the least-squares solution and is widely used where experimental data is scattered over a wide range and you want to t a straight line.
  • 5. Inner product Let u and v be two vectors in Rn .     u1 v1  u2   v2      u= . ,v =  .  . . . .         un vn
  • 6. Inner product Let u and v be two vectors in Rn .     u1 v1  u2   v2      u= . ,v =  .  . . . .         un vn Both u and v are n × 1 matrices. uT = u1 u2 . . . un
  • 7. Inner product Let u and v be two vectors in Rn .     u1 v1  u2   v2      u= . ,v =  .  . . . .         un vn Both u and v are n × 1 matrices. uT = u1 u2 . . . un This is an 1 × n matrix. Thus we can dene the product uT v as   v1  v2  uT v =   u1 u2 . . . un  .  . .     vn
  • 8. 1×n n×1
  • 9. 1×n n×1 Match
  • 10. 1×n n×1 Match Size of uT v The product will be a 1 × 1 matrix or it is just a number (not a vector) and is given by u1 v1 + u2 v2 + . . . + un vn Nothing but sum of the respective components multiplied.
  • 11. Inner Product 1. The number uT v is called the inner product of u and v. 2. Inner product of 2 vectors is a number. 3. Inner product is also called dot product (in Calculus II) 4. Often written as u v
  • 12. Example Let     4 5 w= 1 ,x =  0  2 −3 wx Find w x, w w and ww
  • 13. Example Let     4 5 w= 1 ,x =  0  2 −3 wx Find w x, w w and ww   5 w x = wT x = 4 1 2  0  = (4)(5) + (1)(0) + (2)(−3) = 14 −3
  • 14. Example Let     4 5 w= 1 ,x =  0  2 −3 wx Find w x, w w and ww   5 w x = wT x = 4 1 2  0  = (4)(5) + (1)(0) + (2)(−3) = 14 −3   4 w w = wT w = 4 1 2  1  = (4)(4) + (1)(1) + (2)(2) = 21 2
  • 15. Example Let     4 5 w= 1 ,x =  0  2 −3 wx Find w x, w w and ww   5 w x = wT x = 4 1 2  0  = (4)(5) + (1)(0) + (2)(−3) = 14 −3   4 w w = wT w = 4 1 2  1  = (4)(4) + (1)(1) + (2)(2) = 21 2 w x 14 2 = = . w w 21 3
  • 16. Properties of Inner Product 1. u v=v u 2. (u+v) w = u w + v w 3. (c u) v = u (c v) 4. u u ≥ 0, and u u=0 if and only if u=0
  • 17. Length of a Vector a Consider any point in R2 , v = . What is the length of the line b segment from (0,0) to v? y x 0
  • 18. Length of a Vector a Consider any point in R2 , v = . What is the length of the line b segment from (0,0) to v? y x 0 |a |
  • 19. Length of a Vector a Consider any point in R2 , v = . What is the length of the line b segment from (0,0) to v? y |b | x 0 |a |
  • 20. Length of a Vector a Consider any point in R2 , v = . What is the length of the line b segment from (0,0) to v? y (a, b) |b | x 0 |a |
  • 21. Length of a Vector a Consider any point in R2 , v = . What is the length of the line b segment from (0,0) to v? y (a, b) a2 + b 2 |b | x 0 |a |
  • 22. Length of a Vector   v1  v2    We can extend this idea to Rn , where v= . . . .     vn Denition The length (or the norm) of v is the nonnegative scalar v dened by v = v v= 2 2 2 v1 + v2 + . . . + vn Since we have sum of squares of the components, the square root is always dened.
  • 23. Length of a Vector If c is a scalar, the length of c v is c times the length of v. If c 1, the vector is stretched by c units and if c 1, c shrinks by c units.
  • 24. Length of a Vector If c is a scalar, the length of c v is c times the length of v. If c 1, the vector is stretched by c units and if c 1, c shrinks by c units. Denition A vector of length 1 is called a unit vector.
  • 25. Length of a Vector If c is a scalar, the length of c v is c times the length of v. If c 1, the vector is stretched by c units and if c 1, c shrinks by c units. Denition A vector of length 1 is called a unit vector. 1 If we divide a vector v by its length v (or multiply by v ), we get the unit vector u in the direction of v.
  • 26. Length of a Vector If c is a scalar, the length of c v is c times the length of v. If c 1, the vector is stretched by c units and if c 1, c shrinks by c units. Denition A vector of length 1 is called a unit vector. 1 If we divide a vector v by its length v (or multiply by v ), we get the unit vector u in the direction of v. The process of getting u from v is called normalizing v.
  • 27. Example 10, sec 6.1   −6 Find a unit vector in the direction of v= 4 . −3 To compute the length of v, rst nd v v = (−6)2 + 42 + (−3)2 = 36 + 16 + 9 = 61
  • 28. Example 10, sec 6.1   −6 Find a unit vector in the direction of v= 4 . −3 To compute the length of v, rst nd v v = (−6)2 + 42 + (−3)2 = 36 + 16 + 9 = 61 Then, v = 61
  • 29. Example 10, sec 6.1   −6 Find a unit vector in the direction of v= 4 . −3 To compute the length of v, rst nd v v = (−6)2 + 42 + (−3)2 = 36 + 16 + 9 = 61 Then, v = 61 The unit vector in the direction of v is   −6/   −6 61 1 1 u= v= 4 = 4/ 61   v   61 −3 −3/ 61
  • 30. Distance in Rn In R (the set of real numbers), the distance between 2 numbers is easy. The distance between 4 and 15 is |4 − 14| = | − 10| = 10 or |14 − 4| = |10| = 10.
  • 31. Distance in Rn In R (the set of real numbers), the distance between 2 numbers is easy. The distance between 4 and 15 is |4 − 14| = | − 10| = 10 or |14 − 4| = |10| = 10. Similarly the distance between -5 and 5 is | − 5 − 5| = | − 10| = 10 or |5 − (−5)| = |10| = 10 Distance has a direct analogue in Rn .
  • 32. Distance in Rn Denition For any two vectors u and v in Rn , the distance between u and v written as dist(u,v) is the length of the vector u-v. dist(u, v) = u-v
  • 33. Example 14, sec 6.1     0 −4 Find the distance between u =  −5  and v =  −1 . 2 8 To compute the distance between u and v, rst nd       0 −4 4 u − v =  −5  −  −1  =  −4  2 8 −6 Then, u-v = 16 + 16 + 36 = 68
  • 35. Orthogonal Vectors u v 0 -v If the 2 green lines are perpendicular, u must have the same distance from v and -v
  • 36. Orthogonal Vectors u u-v v u-(-v) 0 -v If the 2 green lines are perpendicular, u must have the same distance from v and -v
  • 37. Orthogonal Vectors u-(-v) = u-v To avoid square roots, let us work with the squares u-(-v) 2 = u+v 2 = (u+v) (u+v)
  • 38. Orthogonal Vectors u-(-v) = u-v To avoid square roots, let us work with the squares u-(-v) 2 = u+v 2 = (u+v) (u+v) = u (u+v) + v (u+v)
  • 39. Orthogonal Vectors u-(-v) = u-v To avoid square roots, let us work with the squares u-(-v) 2 = u+v 2 = (u+v) (u+v) = u (u+v) + v (u+v) = u u+u v+v u+v v
  • 40. Orthogonal Vectors u-(-v) = u-v To avoid square roots, let us work with the squares u-(-v) 2 = u+v 2 = (u+v) (u+v) = u (u+v) + v (u+v) = u u+u v+v u+v v = u 2 + v 2 + 2u v
  • 41. Orthogonal Vectors u-(-v) = u-v To avoid square roots, let us work with the squares u-(-v) 2 = u+v 2 = (u+v) (u+v) = u (u+v) + v (u+v) = u u+u v+v u+v v = u 2 + v 2 + 2u v Interchange -v and v and we get u-v 2 = u 2 + v 2 − 2u v
  • 42. Orthogonal Vectors Equate the 2 expressions, u 2 + v 2 + 2u v = u 2 + v 2 − 2u v =⇒ 2u v = −2u v =⇒ u v = 0
  • 43. Orthogonal Vectors Equate the 2 expressions, u 2 + v 2 + 2u v = u 2 + v 2 − 2u v =⇒ 2u v = −2u v =⇒ u v = 0 If u and v are points in R2 , the lines through these points and (0,0) are perpendicular if and only if u v=0
  • 44. Orthogonal Vectors Equate the 2 expressions, u 2 + v 2 + 2u v = u 2 + v 2 − 2u v =⇒ 2u v = −2u v =⇒ u v = 0 If u and v are points in R2 , the lines through these points and (0,0) are perpendicular if and only if u v=0 Generalize this idea of perpendicularity to Rn . We use the word orthogonality in linear algebra for perpendicularity.
  • 45. Orthogonal Vectors Denition Two vectors u and v in Rn are orthogonal (to each other) if u v=0 The zero vector 0 is orthogonal to every vector in Rn .
  • 46. Orthogonal Vectors Denition Two vectors u and v in Rn are orthogonal (to each other) if u v=0 The zero vector 0 is orthogonal to every vector in Rn . Theorem Two vectors u and v are orthogonal if and only if u+v 2 = u 2 + v 2 This is called the Pythagorean theorem.
  • 47. Example 16, 18 section 6.1 Decide which pair(s) of vectors are orthogonal     12 2 16)u =  3  , v =  −3  −5 3 u v = (12)(2) + (3)(−3) + (−5)(3) = 24 − 9 − 15 = 0. Thus u and v are orthogonal.
  • 48. Example 16, 18 section 6.1 Decide which pair(s) of vectors are orthogonal     12 2 16)u =  3  , v =  −3  −5 3 u v = (12)(2) + (3)(−3) + (−5)(3) = 24 − 9 − 15 = 0. Thus uand vare orthogonal.   −3 1  7   −8  18)y =  ,z =      4  15     0 −7 y z = (−3)(1) + (7)(−8) + (4)(15) + (0)(−7) = −3 − 56 + 60 − 0 = 1 = 0. Thus y and z are not orthogonal.
  • 49. Orthogonal Complement Let W be a subspace of Rn . If any vector z is orthogonal to every vector in W , we say that z is orthogonal to W . There could be more than one such vector z which is orthogonal to W.
  • 50. Orthogonal Complement Let W be a subspace of Rn . If any vector z is orthogonal to every vector in W , we say that z is orthogonal to W . There could be more than one such vector z which is orthogonal to W. Denition A collection of all vectors that are orthogonal to W is called the orthogonal complement of W .
  • 51. Orthogonal Complement Let W be a subspace of Rn . If any vector z is orthogonal to every vector in W , we say that z is orthogonal to W . There could be more than one such vector z which is orthogonal to W. Denition A collection of all vectors that are orthogonal to W is called the orthogonal complement of W . ⊥ The orthogonal complement of W is denoted by W and is read as W perpendicular or W perp.
  • 52. Orthogonal Complement ⊥ 1. A vector x is in W if and only if x is orthogonal to every vector that spans (generates) W .
  • 53. Orthogonal Complement ⊥ 1. A vector x is in W if and only if x is orthogonal to every vector that spans (generates) W . 2. W ⊥ is a subspace of Rn .
  • 54. Orthogonal Complement ⊥ 1. A vector x is in W if and only if x is orthogonal to every vector that spans (generates) W . 2. W ⊥ is a subspace of Rn . 3. If A is an m × n matrix, the orthogonal complement of Col A is Nul A T. (Useful in part (d) of T/F questions, prob 19)
  • 55. Orthogonal Complement ⊥ 1. A vector x is in W if and only if x is orthogonal to every vector that spans (generates) W . 2. W ⊥ is a subspace of Rn . 3. If A is an m × n matrix, the orthogonal complement of Col A is Nul A T. (Useful in part (d) of T/F questions, prob 19) ⊥ 4. If a vector is in both W and W , then that vector must be the zero vector. (The only vector perpendicular to itself is the zero vector)
  • 56. Section 6.2 Orthogonal Sets Consider a set of vectors u1 , u2 , . . . , up in Rn . If each pair of distinct vectors from the set is orthogonal (that is u1 u2 = 0, u1 u3 = 0, u2 u3 = 0 etc etc) then the set is called an orthogonal set.
  • 57. Example 2 section 6.2       1 0 −5 Decide whether the set  −2  ,  1  ,  −2  is orthogonal. 1 2 1
  • 58. Example 2 section 6.2       1 0 −5 Decide whether the set  −2  ,  1  ,  −2  is orthogonal. 1 2 1     1 0  −2   1  = (1)(0) + (−2)(1) + (1)(2) = −2 + 2 = 0 1 2
  • 59. Example 2 section 6.2       1 0 −5 Decide whether the set  −2  ,  1  ,  −2  is orthogonal. 1 2 1     1 0  −2   1  = (1)(0) + (−2)(1) + (1)(2) = −2 + 2 = 0 1 2     0 −5  1   −2  = (0)(−5) + (1)(−2) + (2)(1) = −2 + 2 = 0 2 1
  • 60. Example 2 section 6.2       1 0 −5 Decide whether the set  −2  ,  1  ,  −2  is orthogonal. 1 2 1     1 0  −2   1  = (1)(0) + (−2)(1) + (1)(2) = −2 + 2 = 0 1 2     0 −5  1   −2  = (0)(−5) + (1)(−2) + (2)(1) = −2 + 2 = 0 2 1     1 −5  −2   −2  = (1)(−5) + (−2)(−2) + (1)(1) = −5 + 4 + 1 = 0 1 1 Since all pairs are orthogonal, we have an orthogonal set. (If one pair fails, and all other pairs are orthogonal, it FAILS to be an orthogonal set)
  • 61. Orthogonal set and Linear Independence Theorem Let S = u u u 1 , 2 , . . . , p be an orthogonal set of NONZERO vectors in Rn . S is linearly independent and is a basis for the subspace spanned (generated) by S .
  • 62. Orthogonal set and Linear Independence Theorem Let S = u u u 1 , 2 , . . . , p be an orthogonal set of NONZERO vectors in Rn . S is linearly independent and is a basis for the subspace spanned (generated) by S . Make sure that the zero vector is NOT in the set. Otherwise the set is linearly dependent.
  • 63. Orthogonal set and Linear Independence Theorem Let S = u u u 1 , 2 , . . . , p be an orthogonal set of NONZERO vectors in Rn . S is linearly independent and is a basis for the subspace spanned (generated) by S . Make sure that the zero vector is NOT in the set. Otherwise the set is linearly dependent. Remember the denition of basis? For any subspace W of Rn , a set of vectors that 1. spans W and 2. is linearly independent
  • 64. Orthogonal Basis An orthogonal basis for a subspace W of Rn is a set 1. spans W and 2. is linearly independent and 3. is orthogonal
  • 65. Orthogonal Basis An orthogonal basis for a subspace W of Rn is a set 1. spans W and 2. is linearly independent and 3. is orthogonal Theorem Let u1, u2, . . . , up be an orthogonal basis for a subspace W of Rn . For each y in W , the weights in the linear combination y = c1u1 + c2u2 + . . . + cp up are given by y u1 , c2 = y u2 , c3 = y u3 . . . c1 = u1 u1 u2 u2 u3 u3
  • 66. Orthogonal Basis If we have an orthogonal basis 1. Computing the weights in the linear combination becomes much easier. 2. No need for augmented matrix/ row reductions.
  • 67. Example 8, section 6.2 Show that { u1 , u2 } is an orthogonal basis and express x as a linear 3 −2 −6 combination of the u's where u1 = , u2 = ,x = 1 6 3 Solution: You must verify whether the set is orthogonal. 3 −2 = (3)(−2) + (1)(6) = 0 1 6 . So we have an orthogonal set. By the theorem, we also have an orthogonal basis.
  • 68. Example 8, section 6.2 Show that { u1 , u2 } is an orthogonal basis and express x as a linear 3 −2 −6 combination of the u's where u1 = , u2 = ,x = 1 6 3 Solution: You must verify whether the set is orthogonal. 3 −2 = (3)(−2) + (1)(6) = 0 1 6 . So we have an orthogonal set. By the theorem, we also have an orthogonal basis. To nd the weights so that we can express x = c1 u1 + c2 u2 , we need −6 3 x u1 = = −18 + 3 = −15 3 1 3 3 u1 u1 = = 9 + 1 = 10 1 1
  • 69. Example 8, section 6.2 x u1 −15 c1 = = = −1.5 u1 u1 10
  • 70. Example 8, section 6.2 x u1 −15 c1 = = = −1.5 u1 u1 10 −6 −2 x u2 = = 12 + 18 = 30 3 6 −2 −2 u2 u2 = = 4 + 36 = 40 6 6 x u2 30 c2 = = = 0.75 u2 u2 40
  • 71. Example 8, section 6.2 x u1 −15 c1 = = = −1.5 u1 u1 10 −6 −2 x u2 = = 12 + 18 = 30 3 6 −2 −2 u2 u2 = = 4 + 36 = 40 6 6 x u2 30 c2 = = = 0.75 u2 u2 40 Thus x = −1.5u1 + 0.75u2 .
  • 72. Example 10, section 6.2 Show that { u1 , u2 , u3 } is an orthogonal basis for R3 and express x as a linear combination of the     u's where     3 2 1 5 u1 =  −3  , u2 =  2  , u3 =  1  , x =  −3  0 −1 4 1 Solution: You must verify whether the set is orthogonal (check all pairs).     3 1  −3   1  = (3)(1) + (−3)(1) + (0)(4) = 0 0 4 .     1 2  1   2  = (1)(2) + (1)(2) + (4)(−1) = 0 4 −1
  • 73. Example 10, section 6.2     3 2  −3   2  = (3)(2) + (−3)(2) + (0)(4) = 0 0 −1 . So we have an orthogonal set. By the theorem, we also have an orthogonal basis. To nd the weights so that we can express x = c1 u1 + c2 u2 + c3 u3 , we need
  • 74. Example 10, section 6.2     3 2  −3   2  = (3)(2) + (−3)(2) + (0)(4) = 0 0 −1 . So we have an orthogonal set. By the theorem, we also have an orthogonal basis. To nd the weights so that we can express x = c1 u1 + c2 u2 + c3 u3 , we need     5 3 x u1 =  −3   −3  = 15 + 9 = 24 1 0     3 3 u1 u1 =  −3   −3  = 9 + 9 = 18 0 0 x u1 24 4 c1 = = = u1 u1 18 3
  • 75. Example 10, section 6.2     5 2 x u2 =  −3   2  = 10 − 6 − 1 = 3 1 −1     2 2 u2 u2 =  2   2  = 4+4+1 = 9 −1 −1 x u2 3 1 c2 = = = u2 u2 9 3
  • 76.    5 1 x u3 =  −3   1  = 5−3+4 = 6 1 4     1 1 u3 u3 =  1   1  = 1 + 1 + 16 = 18 4 4 x u3 6 1 c3 = = = u3 u3 18 3 Thus 4 1 1 x= u1 + u2 + u3 . 3 3 3
  • 77. Section 6.2 Orthonormal Sets Consider a set of vectors u1 , u2 , . . . , up . If this is an orthogonal set (pairwise dot product =0) AND if each vector is a unit vector (length 1), the set is called an orthonormal set. A basis formed by orthonormal vectors is called an orthonormal basis (linearly independent by the same theorem we saw earlier).
  • 78. Example 20 section 6.2 −2/3 1/3     Decide whether the set u= 1/3 ,v =  2/3  is an 2/3 0 orthonormal set. If only orthogonal, normalize the vectors to produce an orthonormal set.
  • 79. Example 20 section 6.2 −2/3 1/3     Decide whether the set u= 1/3 ,v =  2/3  is an 2/3 0 orthonormal set. If only orthogonal, normalize the vectors to produce an orthonormal set. −2/3 1/3      1/3   2/3  = −2 + 2 +0 = 0 3 3 2/3 0
  • 80. Example 20 section 6.2 −2/3 1/3     Decide whether the set u= 1/3 ,v =  2/3  is an 2/3 0 orthonormal set. If only orthogonal, normalize the vectors to produce an orthonormal set. −2/3 1/3      1/3   2/3  = −2 + 2 +0 = 0 3 3 2/3 0 The set is orthogonal. Find the length of each vector to check whether it is orthonormal. 4 1 4 u = u u= + + 9 9 9 4 1 4 9 u = u u= + + = = 1. 9 9 9 9 Thus u has unit length.
  • 81. Example 20 section 6.2 1 4 5 5 v = v v= + +0 = = . 9 9 9 3 Since this is not of unit length we have to divide each component  1  1 5   / 5 5  3 3   5 = 2  of v by its length which is 3 . This gives  2 / 3 3 5  0 0