Week 9 Lec 1
Week 9 Lec 1
Week 9 Lec 1
References:
Introduction to Linear Algebra, 5th Ed. Gilbert Strang
https://www.youtube.com/watch?v=0MtwqhIwdrI&t=2411s
https://bux.bracu.ac.bd/courses/course-v1:buX+2020_SummerMAT216+/course/
Usually, we have to check both properties. When the count is right, one property implies the
other.
i. Any n independent vectors in R n must span R n . So, they are a basis.
ii. Any n vectors that span R n must be independent. So, they are a basis.
Therefore, a set of linearly independent vectors that can span the entire space is a basis of a
space.
Definition: A set of linearly independent vectors that can span the entire space, and each of the
vector is perpendicular to all other vectors is an orthogonal basis of the space.
Definition: An orthogonal basis for a subspace 𝑉 of 𝑅 𝑛 is a basis for 𝑉 that is also an orthogonal
set.
i.e. 𝑉 = {𝑣1 , 𝑣2 } is an orthogonal basis if the vectors that form it are perpendicular. In other
words, 𝑣1 and 𝑣2 form an angle of 90° [or, 〈𝑣1 , 𝑣2 〉 = 0].
𝑒𝑖 . 𝑒𝑗 = 𝑒𝑖𝑇 𝑒𝑗 = 0 when 𝑖 ≠ 𝑗.
Solution:
Here, we have 𝑣1 . 𝑣2 = 𝑣2 . 𝑣3 = 𝑣3 . 𝑣1 = 0.
Thus, each pair of distinct vectors is orthogonal, and so {𝑣1 , 𝑣2 , 𝑣3 } is an
orthogonal set.
Two subspaces V and W of a vector space are orthogonal if every vector v in V is
perpendicular to every vector w in W. i.e. v T w = 0 for all v in V and all w in 𝑊. [For
example, please find Introduction to Linear Algebra, 5th Edition by Gilbert Strang,
page 195]
Definition: When the basis is orthogonal and also the length of the vectors of the basis is 1, then
the basis is called orthonormal.
Example: The standard basis vectors are orthogonal and each of them has unit length, therefore
they form an orthonormal basis.
Example: Determine which of the following sets of vector form orthonormal basis:
3 0
a. 𝑢 = [ ] , 𝑣 = [ ] ;
0 −2
1 1 1
b. 𝑢 = [ 0 ] , 𝑣 = [√2] , 𝑤 = [−√2];
−1 1 1
1 0
c. 𝑢 = [ ] , 𝑣 = [ ] ;
0 −1
1 0
d. 𝑢 = [2] , 𝑣 = [0];
0 3
When we need a basis to do calculation, it is convenient to use and orthonormal basis. For
instance, the formula for a vector space projection is much simpler with an orthonormal
basis.
They use for making good coordinate system or good coordinate bases.
⃗⃗⃗⃗
𝑣
Step 1: 𝑢1 = ‖𝑣⃗⃗⃗1‖
⃗⃗⃗⃗
𝑖
Remember that dividing a vector by its length always produced a unit vector, so ⃗⃗⃗⃗
𝑢1 has length 1
and points in the same direction as ⃗⃗⃗⃗
𝑣1 [Find video lecture 15, part 2].
2 ⃗⃗⃗⃗⃗
𝑤
Step 2: Compute ⃗⃗⃗⃗⃗
𝑤2 = ⃗⃗⃗⃗
𝑣2 − (𝑣
⃗⃗⃗⃗2 . ⃗⃗⃗⃗
𝑢1 )𝑢⃗⃗⃗⃗1 and find ⃗⃗⃗⃗
𝑢2 = ‖𝑤
⃗⃗⃗⃗⃗ ‖ 2
3 ⃗⃗⃗⃗⃗
𝑤
Step 3: Let us first find 𝑤3 = ⃗⃗⃗⃗
⃗⃗⃗⃗⃗ 𝑣3 − (𝑣
⃗⃗⃗⃗3 . ⃗⃗⃗⃗
𝑢2 )𝑢⃗⃗⃗⃗2 − (𝑣
⃗⃗⃗⃗3 . ⃗⃗⃗⃗
𝑢1 )𝑢⃗⃗⃗⃗1 and then set ⃗⃗⃗⃗
𝑢3 = ‖𝑤
⃗⃗⃗⃗⃗ ‖ 3
Thus ⃗⃗⃗⃗⃗
𝑤3 is orthogonal to ⃗⃗⃗⃗
𝑢1 and ⃗⃗⃗⃗
𝑢2 and by dividing by its length, we get something of length one.
. . . . . . . . . . . . . . . . . . . .. . . . . . .. . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . .
. . . . . . .. . .. . . . .. . . . . . .. . . . . . . . . . . . . . . . . . . . .. . . . . .. . . . .. .. . .. . .
𝑛 ⃗⃗⃗⃗⃗⃗
𝑤
𝑤
⃗⃗ 𝑛 = 𝑣𝑛 − (𝑣𝑛 . 𝑢 ⃗ 𝑛−1 - …………… - (𝑣𝑛 . 𝑢
⃗ 𝑛−1 )𝑢 ⃗ 1 )𝑢
⃗ 1 and set ⃗⃗⃗⃗
𝑢𝑛 = ‖𝑤
⃗⃗ ‖ 𝑛
𝑢𝑗 ’s constructed
At the final step we take ⃗⃗⃗𝑣𝑖 and subtract off its projections onto all the previous ⃗⃗⃗
thus far, and divide the result by its length.
Span {𝑢
⃗⃗⃗⃗1 , ⃗⃗⃗⃗⃗
𝑢2 , . . . . . . . ⃗⃗⃗⃗⃗⃗
, 𝑢𝑛 } = span {𝑣
⃗⃗⃗⃗1 , ⃗⃗⃗⃗⃗
𝑣2 , . . . . . . . ⃗⃗⃗⃗⃗⃗
, 𝑣𝑛 } and {𝑢
⃗⃗⃗⃗1 , ⃗⃗⃗⃗⃗
𝑢2 , . . . . . . . ⃗⃗⃗⃗⃗⃗
, 𝑢𝑛 } is an
orthonormal set, thus {𝑢
⃗⃗⃗⃗1 , ⃗⃗⃗⃗⃗
𝑢2 , . . . . . . . ⃗⃗⃗⃗⃗⃗
, 𝑢𝑛 } is an orthonormal basis V.
2 4
𝑣1 = [−5] and 𝑣2 = [−1].
1 2
Solution:
2
√30
⃗⃗⃗⃗1
𝑣 −5
Step 1: ⃗⃗⃗⃗
𝑢1 = ‖𝑣⃗⃗⃗𝑖 ‖
= √30
1
[√30]
⃗⃗⃗⃗⃗
𝑤2
Step 2: Compute ⃗⃗⃗⃗⃗
𝑤2 = ⃗⃗⃗⃗
𝑣2 − (𝑣
⃗⃗⃗⃗2 . ⃗⃗⃗⃗
𝑢1 )𝑢⃗⃗⃗⃗1 and find ⃗⃗⃗⃗
𝑢2 = ‖𝑤
⃗⃗⃗⃗⃗ ‖
2
1 3
4 4 −5 3
15
⃗⃗⃗⃗⃗2 = [−1] −
𝑤 𝑢1 = [−1] − [ 2 ] = [ 2 ]
⃗⃗⃗⃗
√30 1 3
2 2
2 2
√2
√3
1
𝑢2 =
⃗⃗⃗⃗
√6
1
[√6]
Exercise: