Vector Space Note Set 4
Vector Space Note Set 4
4. < 𝐮, 𝐮 > ≥ 0 ,
2. When V is a real vector space axiom 3 becomes < 𝐮, 𝐯 > =< 𝐯, 𝐮 >
Example 1.
Consider 𝑉 = ℝ2 . For any two vectors 𝐮 = (𝑥1 , 𝑥2 ) and 𝐯 = (𝑦1 , 𝑦2 ) inℝ2 , define
< 𝐮, 𝐯 > = 𝑥1 𝑦1 + 𝑥2 𝑦2 .
With this definition, ℝ2 becomes an inner product space.(A vector space equipped with an inner
product is called an inner product space). For 𝒖 = (𝑥1 , 𝑥2 ), 𝒗 = (𝑦1 , 𝑦2 ) and 𝒘 = (𝑧1 , 𝑧2 ) in ℝ2
and real numbers (scalars) α and 𝛽 from the underlying field R, we have
< 𝛼𝐮, 𝐰 > =< (α𝑥1 , 𝛼𝑥2 ), (𝑧1 , 𝑧2 ) >= 𝛼𝑥1 𝑧1 + 𝛼𝑥2 𝑧2 …………………………… (2)
< β𝐯, 𝐰 > =< (β𝑦1 , 𝛽𝑦2 ), (𝑧1 , 𝑧2 ) >= 𝛽𝑦1 𝑧1 + 𝛽𝑦2 𝑧2 ………………………………. (3)
< 𝛼𝐮, 𝐰 > + < β𝐯, 𝐰 >= 𝛼𝑥1 𝑧1 + 𝛼𝑥2 𝑧2 + 𝛽𝑦1 𝑧1 + 𝛽𝑦2 𝑧2 ……………………………… (4)
From eq. (2) and eq.(4)
< 𝐮, 𝐮 > = 0 if and only if 𝑥12 + 𝑥22 = 0 . This implies that 𝑥1 = 0 and 𝑥2 = 0 so that
𝒖 = (𝑥1 , 𝑥2 ) = 0.Thus all the axioms for an inner products are satisfied by the above definition
of inner product in ℝ2 . Hence ℝ2 is an inner product space. (i. p. s)
Note: The same vector space can be equipped with a different inner product. Consider the
following example in which we equip ℝ2 with an additional inner product other than standard
inner product
𝑥1 𝑦1
Example: For 𝒖 = [𝑥 ] , and 𝒗 = [𝑦 ] in ℝ2 , define < 𝐮, 𝐯 > = 2𝑥1 𝑦1 − 𝑥1 𝑦2 − 𝑥2 𝑦1 + 5𝑥2 𝑦2 .
2 2
Example: Let 𝑉 = 𝑀𝑚,𝑛 (𝑅) be the space of all 𝑚 × 𝑛 matrices over R. For A, B 𝐴, 𝐵 ∈ 𝑀𝑚,𝑛 (𝑅),
define
Hint
𝑏11 𝑏21
𝑎11 𝑎12 𝑎13 𝑏11 𝑏12 𝑏13
Take any 𝐴 = [𝑎 𝑎22 𝑎23 ] and 𝐵 = [𝑏21 ], 𝐵𝑇 = [𝑏12 𝑏22 ]
21 𝑏22 𝑏23
𝑏13 𝑏23
𝑏11 𝑏21
𝑎 𝑎12 𝑎13
𝑇
𝐵 𝐴 = [𝑏12 𝑏22 ] [𝑎11 𝑎22 𝑎23 ]
21
𝑏13 𝑏23
𝑏11 𝑎11 + 𝑏21 𝑎21 𝑏11 𝑎12 + 𝑏21 𝑎22 𝑏11 𝑎13 + 𝑏21 𝑎23
= [𝑏12 𝑎11 + 𝑏22 𝑎21 𝑏12 𝑎12 + 𝑏22 𝑎22 𝑏12 𝑎13 + 𝑏22 𝑎23 ]
𝑏13 𝑎11 + 𝑏23 𝑎21 𝑏13 𝑎12 + 𝑏23 𝑎22 𝑏13 𝑎13 + 𝑏23 𝑎23
< A, B >= 𝑇𝑟(𝐵𝑇 𝐴) = 𝑏11 𝑎11 + 𝑏21 𝑎21 + 𝑏12 𝑎12 + 𝑏22 𝑎22 + 𝑏13 𝑎13 + 𝑏23 𝑎23
𝑎11 + 𝑏11 𝑎12 + 𝑏12 𝑎13 + 𝑏13
𝐴+𝐵 =[ ]
𝑎21+ 𝑏21 𝑎22 + 𝑏22 𝑎23 + 𝑏23
𝑇𝑟(𝐶 𝑇 𝐴) = 𝑐11 𝑎11 + 𝑐21 𝑎21 + 𝑐12 𝑎12 + 𝑐22 𝑎22 + 𝑐13 𝑎13 + 𝑐23 𝑎23
𝑇𝑟(𝐶 𝑇 𝐵) = 𝑐11 𝑏11 + 𝑐21 𝑏21 + 𝑐12 𝑏12 + 𝑐22 𝑏22 + 𝑐13 𝑏13 + 𝑐23 𝑏23
𝑇𝑟(𝐶 𝑇 𝐴) + 𝑇𝑟(𝐶 𝑇 𝐵)
= 𝑐11 𝑎11 + 𝑐21 𝑎21 + 𝑐12 𝑎12 + 𝑐22 𝑎22 + 𝑐13 𝑎13 + 𝑐23 𝑎23 + 𝑐11 𝑏11 + 𝑐21 𝑏21
+ 𝑐12 𝑏12 + 𝑐22 𝑏22 + 𝑐13 𝑏13 + 𝑐23 𝑏23
𝑐11 𝑐21
𝑎 + 𝑏11 𝑎12 + 𝑏12 𝑎13 + 𝑏13
𝑇𝑟𝐶 𝑇 (𝐴 + 𝐵) = [𝑐12 𝑐22 ] [ 11 ]
𝑐13 𝑐23 𝑎21 + 𝑏21 𝑎22 + 𝑏22 𝑎23 + 𝑏23
= 𝑐11 𝑎11 + 𝑐11 𝑏11 + 𝑐21 𝑎21 + 𝑐21 𝑏21 + 𝑐12 𝑎12 + 𝑐12 𝑏12 + 𝑐22 𝑎22 + 𝑐22 𝑏22 + 𝑐13 𝑎13 + 𝑐13 𝑏13
+ 𝑐23 𝑎23 + 𝑐23 𝑏23 = 𝑇𝑟(𝐶 𝑇 𝐴) + 𝑇𝑟(𝐶 𝑇 𝐵)
< 𝛼A, B >= 𝑇𝑟(𝐵𝑇 𝛼𝐴) = 𝑏11 𝛼𝑎11 + 𝑏21 𝛼𝑎21 + 𝑏12 𝛼𝑎12 + 𝑏22 𝛼𝑎22 + 𝑏13 𝛼𝑎13 + 𝑏23 𝛼𝑎23
= 𝛼(𝑏11 𝑎11 + 𝑏21 𝑎21 + 𝑏12 𝑎12 + 𝑏22 𝑎22 + 𝑏13 𝑎13 + 𝑏23 𝑎23 ) = 𝛼 < A, B >
= 𝑎11 𝑏11 + 𝑎21 𝑏21 + 𝑎12 𝑏12 + 𝑎22 𝑏22 + 𝑎13 𝑏13 + 𝑎23 𝑏23
= 𝑏11 𝑎11 + 𝑏21 𝑎21 + 𝑏12 𝑎12 + 𝑏22 𝑎22 + 𝑏13 𝑎13 + 𝑏23 𝑎23 =< A, B >
< A, A >= 𝑇𝑟(𝐴𝑇 𝐴) = 𝑎11 𝑎11 + 𝑎21 𝑎21 + 𝑎12 𝑎12 + 𝑎22 𝑎22 + 𝑎13 𝑎13 + 𝑎23 𝑎23 ≥ 0
Example: = 𝐶[𝑎, 𝑏] , the space of all continuous real valued functions on[𝑎, 𝑏] is an inner product
space with
𝑏
< 𝐟, 𝐠 > = ∫𝑐 𝑓(𝑡)𝑔(𝑡) 𝑑𝑡.
𝑏
= ∫ (𝑓(𝑡)ℎ(𝑡) + 𝑔(𝑡)ℎ(𝑡))𝑑𝑡
𝑐
𝑏 𝑏
= ∫ 𝑓(𝑡)ℎ(𝑡)𝑑𝑡 + ∫ 𝑔(𝑡)ℎ(𝑡)𝑑𝑡 =< 𝐟, 𝐡 > +< 𝐠, 𝐡 >
𝑐 𝑐
𝑏 𝑏
< 𝛼𝐟, 𝐠 >= ∫ 𝛼𝑓(𝑡)𝑔(𝑡) 𝑑𝑡 = 𝛼 ∫ 𝑓(𝑡)𝑔(𝑡) 𝑑𝑡 = 𝛼 < 𝐟, 𝐠 >
𝑐 𝑐
𝑏
< 𝐟, 𝐠 > = ∫ 𝑓(𝑡)𝑔(𝑡) 𝑑𝑡
𝑐
𝑏 𝑏
< 𝐠, 𝐟 > = ∫ 𝑔(𝑡)𝑓(𝑡) 𝑑𝑡 = ∫ 𝑓(𝑡)𝑔(𝑡) 𝑑𝑡 =< 𝐟, 𝐠 >
𝑐 𝑐
𝑏
< 𝐟, 𝐟 > = ∫ [𝑓(𝑡)]2 𝑑𝑡 ≥ 0
𝑐
𝑏
< 𝐟, 𝐟 > = 0 implies ∫𝑐 [𝑓(𝑡)]2 𝑑𝑡 = 0 . This implies 𝑓(𝑡) = 0
Compulsory exercise
1) In each of the following cases, determine whether the given formula provides an inner
product for the following vector spaces
iii) In 𝑉 = 𝑀2 (𝑅), the space of all second order matrices with real entries , for 𝐴, 𝐵 ∈ 𝑀2 (𝑅)
define < 𝐀, 𝐁 > = 𝑇𝑟(𝑨𝑩).
𝒖 + 𝐯 = (𝑥1 + 𝑦1 , 𝑥2 + 𝑦2 )
< α𝐮, 𝐯 > =< (α𝑥1 , 𝛼𝑥2 ), (𝑦1 , 𝑦2 ) > 𝛼𝑥1 𝑦̅1 + 𝛼𝑥2 𝑦̅2 = 𝛼(𝑥1 𝑦̅1 + 𝑥2 𝑦̅2 ) = 𝛼 < 𝐮, 𝐯 >
̅̅̅̅̅̅
=𝑦 ̅̅̅̅̅̅
1 𝑥̅1 + 𝑦2 𝑥̅2
= 𝑦̅1 𝑥1 + 𝑦̅2 𝑥2
=< 𝐮, 𝐯 >
Thus ̅̅̅̅̅̅̅̅̅̅̅
< 𝐮, 𝐯 > =< 𝒗, 𝒖 >
< 𝐮, 𝐮 > = 0 if and only if |𝑥1 |2 + |𝑥2 |2 = 0 ,This implies |𝑥1 |2 = 0 and |𝑥2 |2 = 0
Note : 1.The inner product defined as above in ℝn or ℂn is called the standard inner product.
2. The standard inner product in ℝn is also referred to as the dot product. It is denoted by
𝐮. 𝐯
Length of a vector: The length of a vector u denoted by ‖𝐮‖ is defined by the positive square root
√< 𝒖, 𝒖 > . If ‖𝐮‖ = 1, the vector is called a unit vector.
Orthogonal vectors: Two vectors u and v are orthogonal (perpendicular) if < 𝐮, 𝐯 > = 0
Example: In ℝ2 , the vectors 𝐞1 = (1,0), e𝟐 = (0,1) are orthogonal. In fact ‖‖𝐞1 ‖ = 1, ‖𝐞2 ‖ = 1.
Since they are orthogonal unit vectors, they are called orthonormal vectors. Thus {𝐞1 , 𝐞2 } form an
orthonormal basis for ℝ2.
Theorem. Let V be an inner product space over R or C. Then the following are satisfied for any
vectors u and v and for any scalar α.
(c) For any nonzero vector u , the scalar multiple u/‖𝒖‖ is a unit vector .
‖𝐮 + 𝐯‖2 = < 𝐮 + 𝐯, 𝐮 + 𝐯 > = < 𝐮, 𝐮 > +< 𝐮, 𝐯 > +< 𝐯, 𝐮 > +< 𝐯, 𝐯 >
= ‖𝐮‖2 + ‖𝐯‖2 where < 𝐮, 𝐯 > = 0, < 𝐯, 𝐮 > = 0 as u and v are orthogonal
<𝐯,𝐮> <𝐯,𝐮>
Then 0 ≤ ‖𝛄‖2 =< 𝒗 − ‖𝐮‖2
𝐮, 𝒗 − ‖𝐮‖2
𝐮 >
<𝐯,𝐮> <𝐯,𝐮> <𝐯,𝐮>
=< 𝒗, 𝒗 − ‖𝐮‖2
𝐮 > +< − ‖𝐮‖2
𝐮, 𝒗 − ‖𝐮‖2 𝐮 >
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
<𝐯,𝐮> <𝐯,𝐮> ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
<𝐯,𝐮>
= =< 𝒗 − ‖𝐮‖2 𝐮, 𝐯 >− ‖𝐮‖2 < 𝒗 − ‖𝐮‖2 𝐮, 𝐮 >
̅̅̅̅̅̅̅̅̅̅̅
< 𝐯, 𝐮 > < 𝐯, 𝐮 > ̅̅̅̅̅̅̅̅̅̅̅
< 𝐯, 𝐮 >< 𝐯, 𝐮 >
̅̅̅̅̅̅̅̅̅̅̅
=< 𝒗, 𝒗 >− 2
̅̅̅̅̅̅̅̅̅̅̅
< 𝐮, 𝐯 >− 2
̅̅̅̅̅̅̅̅̅̅̅
< 𝐯, 𝐮 >+ 4
‖𝐮‖2
‖𝐮‖ ‖𝐮‖ ‖𝐮‖
<𝐮,𝐯>
=< 𝒗, 𝒗 > − ̅̅̅̅̅̅̅̅̅̅̅
< 𝐮, 𝐯 >
‖𝐮‖2
|<𝐮,𝐯>|2
=< 𝒗, 𝒗 > − ‖𝐮‖2
|<𝐮,𝐯>|2
< 𝒗, 𝒗 > − ‖𝐮‖2
≥0
|<𝐮,𝐯>|2
< 𝒗, 𝒗 > ≥ ‖𝐮‖2
|<𝐮,𝐯>|2
‖𝐮‖2
≤ ‖𝐯‖2
‖𝐮 + 𝐯‖ ≤ ‖𝐮‖ + ‖𝐯‖
Proof :
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
=< 𝐮, 𝐮 > +< 𝐯, 𝐮 >+< ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝐮, 𝐯 > +< 𝐯, 𝐯 >
̅̅̅̅̅̅̅̅̅̅̅
=< 𝐮, 𝐮 >+< ̅̅̅̅̅̅̅̅̅̅̅
𝐯, 𝐮 >+< ̅̅̅̅̅̅̅̅̅̅̅
𝐮, 𝐯 >+< ̅̅̅̅̅̅̅̅̅̅̅
𝐯, 𝐯 >
≤ ‖𝐮‖2 + 2|< 𝐮, 𝐯 >| + ‖𝐯‖2 Since Re (z) ≤ |𝑧| for any znumber z
‖𝐮 + 𝐯‖ ≤ ‖𝐮‖ + ‖𝐯‖
<𝐮,𝐯>
Definition : The angle between two vectors u and v in is defined by 𝒄𝒐𝒔 𝜽 = ‖𝐮‖‖𝐯‖
When two vectors u an v are perpendicular, cos 90 =0. This implies that < 𝐮, 𝐯 >= 𝟎
Note: The process of finding a unit vector in the direction of a given vector is called normalization.
Example: Find the distance between the vectors 1, 2,1, 0 and 2,1, 3, 1
T T
u-v= 1, 3, 4, 1
T
Orthogonal complement
Let W be subspace of a vector space V. The set of all vectors in V that are orthogonal to each vector
in W is called the orthogonal complement of W. It is denoted by W ⟘
ii, Let u ,v ∈ W ⟘ . Then for any 𝐰 ∈ W, < 𝐮, 𝐰 > = 0 and < 𝐯, 𝐰 > = 0
Iii, For any u ∈ W ⟘ and v ∈ W , < 𝑐𝐮, 𝐯 > = 𝑐 < 𝐮, 𝐯 > = 0 .therefor c𝐮 ∈ W
Hence elements in W ⟘ satisfies all the three conditions for a subset to be a vector space. Hence
W ⟘ is a subspace of W.
1 1
Problem : Find the orthogonal complement of the plane spanned by the vectors [1] and [2].
2 3
1 1 1 1
Solution: W=Span {[1] , [2] } consists of the linear combinations of [1] and [2].
2 3 2 3
Hence any vector orthogonal to the given two vectors will be orthogonal to each vector in W.
𝑥 𝑥 1
Thus if [𝑦] ∈ W ⊥ , then 𝑥 + 𝑦 + 2𝑧 = 0 (follows from the orthogonally of [𝑦] and [1] )
𝑧 𝑧 2
𝑥 1
and 𝑥 + 2𝑦 + 3𝑧 = 0,( follows from the orthogonally of [𝑦] and [2] )
𝑧 3
𝑥
1 1 2 𝑦 0
In matrix form [ ][ ] = [ ]
1 2 3 𝑧 0
𝑥
1 1 2
i.e 𝐴𝑿 = 0 where 𝐴 = [ ] and 𝑿 = [𝑦] ,
1 2 3 𝑧
Hence orthogonal complement of W is the null space of A where the rows of A are the given
𝑎 1
𝑎
vectors. Solving the above equations, a solution is given by [ ] = 𝑎 [ 1 ]
−𝑎 −1
1
where a is any real number. Thus W ⟘ = span {[ 1 ]} .
−1
1 2
Problem: Find a basis for the orthogonal complement of 𝑊 = 𝑠𝑝𝑎𝑛 {[ 2 ] , [4]}
−1 3
4 5
Theorem: Let A be an 𝑚 × 𝑛 matrix. The orthogonal complement of the row space of A is the
null space of A and the orthogonal complement of the column space of A is the null space of 𝐴𝑇 .
1 1 2
Example: Orthogonal complement for the row and column spaces of A where 𝐴 = [ ]
1 2 3
1 𝑎
span {[ 1 ]} is the orthogonal complement of the row space of A . If [ ] is an element of the
𝑏
−1
orthogonal complement of the column space of A, then 𝑎 + 𝑏 = 0. 𝑎 + 2𝑏 = 0, 2𝑎 + 3𝑏 = 0
1 1 𝑎 0
In matrix form [1 2] [ 𝑏 ] = [ 0]
2 3 0
𝑎
i. e 𝐴𝑇 𝒀 = 𝑶. This shows that [ ] is in the orthogonal complement of AT
𝑏
0
Here 𝑊 = 𝑐𝑜𝑙(𝐴) = ℝ2 . Hence W ⟘ = {[ ]}
0
1 1
Problem: Find a unit vector orthogonal to 𝒖 = [1] and 𝒗 = [ 2 ]
1 −3
𝑥
Answer: Let 𝒘 = [𝑦] be orthogonal to both u and v, then
𝑧
𝑥 + 𝑦 + 𝑧 = 0 , 𝑥 + 2𝑦 − 3𝑧 = 0
𝑥 −5𝑎 −5
Solving 𝒘 = [𝑦] = [ 4𝑎 ] = 𝑎 [ 4 ]
𝑧 𝑎 1
𝑥 −5 𝑥 −5
Any vector spanned by 𝒘 = [𝑦] = 𝑎 [ 4 ]. In particular when a=1, 𝒘 = [𝑦] = [ 4 ]
𝑧 1 𝑧 1
𝒘
A unit vector orthonormal to both u and v is given by ‖𝒘‖
−5
𝒘 1
A unit vector orthonormal to both u and v is ‖𝒘‖ = [4]
√42
1