Professional Documents
Culture Documents
Orthogonality and The Gram Schmidt Procedure, Linear Algebra, Alexandria University
Orthogonality and The Gram Schmidt Procedure, Linear Algebra, Alexandria University
Schmidt Procedure
Dr. Sara Hassan Kamel
Orthogonality
What are orthogonal vectors?
The angle between two orthogonal
vectors = 90◦
Also Dot product = 0
v1 v2 v v2 0
T
1
v1 v 2 v1 . v 2 cos
v1 . v 2 cos90 0 0
Norm of a vector:
v1
v
v 2 v v12 v22 ... vn2
2
orthogonal
Unit
Orthonormal vectors Orthogonal
Basis Basis
9 Dr. Sara Hassan Kamel
Orthogonality
Orthogonal & Orthonormal Basis
If the vectors in a basis form an orthogonal
set, we say that it’s an “orthogonal basis”
If they are ALSO unit vectors, then it’s an
“orthonormal basis”
independent
Spanning Set Basis
orthogonal
Unit ?
Orthonormal vectors Orthogonal
Basis Basis
10 Dr. Sara Hassan Kamel
Gram-Schmidt Procedure
Gram-Schmidt Procedure
projy x x cos
y
y
Length
(magnitude) Direction
(unit vector)
projy x x cos
y
y
x y y
x
y
x.y
xy
y
y2
13 Dr. Sara Hassan Kamel
Gram-Schmidt Procedure
Orthogonal Projection
We want to project the vector x in the direction
orthogonal to y
projy x x projy x
xy
x 2 y
y
w1 v1 v1 w1
v w
w 2 projw1 v 2 v 2 2 2 1 w1
w
1
16 Dr. Sara Hassan Kamel
Gram-Schmidt Procedure
Gram-Schmidt Procedure
Applied to a set of independent vectors to get a set of
orthogonal vectors that span the same space.
Independent Orthogonal
vectors vectors
STEPS:
w1 v1
v w
w 2 projw1 v 2 v 2 2 2 1 w1
w
1
v w v w
w 3 projspan{w1 ,w 2 } v 3 v 3 3 1 w 3 2
w2
w 2
1
w 2
1 2
18 Dr. Sara Hassan Kamel
Gram-Schmidt Procedure
Gram-Schmidt Procedure
Applied to a set of independent vectors to get a set of
orthogonal vectors that span the same space.
STEPS:
w1 v1
w 2 projw1 v 2 v 2 projw1 v 2
w 3 projspan{w1 ,w 2 } v 3 v 3 projw1 v 3 projw 2 v 3
w1 v1
n 1
w n v n projw k v n for n 2,3,...N
k 1
v1 = v2 = v3 =
v1 = v2 = v3 =
1 v w
1 w 2 projw1 v 2 v 2 2 2 1 w1
w1 v1 w
1 1
1
v1 = v2 = v3 =
1 v w
1 w 2 projw1 v 2 v 2 2 2 1 w1
w1 v1 w
1 1
1
v1 = v2 = v3 =
1 3
1 1
w1 w2
1 1
1 1 v w v w
w3 projspan{w1 ,w2 } v3 v3 3 1 w 3 2
w2
w 2
1
w 2
1 2
24 Dr. Sara Hassan Kamel
Gram-Schmidt Procedure
Example: If V = span{v1, v2, v3}, construct an
orthonormal basis for V
v1 = v2 = v3 =
1 3 v w v w
1 1 w3 v3 3 2 1 w1 3 2 2 w 2
w1 w w
1 w2 1 2
1
1 1
v1 = v2 = v3 =
1 3 0
1 1 2
w1 Orthogonal
1 w2 w3
1 1 Basis for V
1 1 1
v1 = v2 = v3 =
v1 = v2 = v3 =
3 3 3 3 / 12
1 1 1
w2 u2
w2
1 1 1/ 12
1 w2 (3) 2 12 12 12 1 12 1 1 / 12
1 1 1 / 12
1
v1 = v2 = v3 =
v1 = v2 = v3 =
1 / 4 3 / 12 0
2 / 6
u1
1/ 4
u2 1/ 12
u3
1 / 4 1/ 12 1/ 6
1 / 4 1 / 12 1 / 6
Orthonormal
Basis for V
30 Dr. Sara Hassan Kamel
Review Questions
Which of the following statements are true?
Any orthogonal set is an independent set
A vector space has only one orthonormal basis
Any set of orthogonal vectors in ℝ3 is a basis for
ℝ3
If {v1, v2, v3} is a basis for V, and x is orthogonal to
each of v1, v2 and v3, then x is orthogonal to all
vectors in V
Any vector in V w = c1v1 + c2v2 +c3 v3
x ● w = x ● (c1v1 + c2v2 +c3 v3)
= c1(x ● v1) + c2(x ● v2) + c3(x ● v3) = 0
31 Dr. Sara Hassan Kamel