Lect3 02web
Lect3 02web
Linear Algebra
Lecture 17:
Euclidean structure in Rn (continued).
Orthogonal complement.
Orthogonal projection.
Vectors: geometric approach
A B′
A′
• A vector is represented by a directed segment.
• Directed segment is drawn as an arrow.
• Different arrows represent the same vector if
they are of the same length and direction.
−→ −−→
Notation: AB (= A′ B ′ ).
Linear structure: vector addition
Given vectors a and b, their sum a + b is defined
−→ −→ −→
by the rule AB + BC = AC .
−→
That is, choose points A, B, C so that AB = a and
−→ −→
BC = b. Then a + b = AC .
B b
a C
a+b B′ b
A a C′
a+b
A′
Linear structure: scalar multiplication
3v
−2v
Beyond linearity: Euclidean structure
C
y
θ x
A B
Vectors: algebraic approach
An n-dimensional coordinate vector is an element of
Rn , i.e., an ordered n-tuple (x1 , x2 , . . . , xn ) of real
numbers.
Let a = (a1 , a2 , . . . , an ) and b = (b1 , b2 , . . . , bn ) be
vectors, and r ∈ R be a scalar. Then, by definition,
a + b = (a1 + b1 , a2 + b2 , . . . , an + bn ),
r a = (ra1 , ra2 , . . . , ran ),
0 = (0, 0, . . . , 0),
−b = (−b1 , −b2 , . . . , −bn ),
a − b = a + (−b) = (a1 − b1 , a2 − b2 , . . . , an − bn ).
Cartesian coordinates: geometric meets algebraic
(−3, 2) (−3, 2)
(2, 1) (2, 1)
Properties of length:
kxk ≥ 0, kxk = 0 only if x = 0 (positivity)
kr xk = |r | kxk (homogeneity)
kx + yk ≤ kxk + kyk (triangle inequality)
Scalar product
Definition. The scalar product of vectors
x = (x1 , x2 , . . . , xn ) and y = (y1 , y2 , . . . , yn ) is
x · y = x1 y1 + x2 y2 + · · · + xn yn .
o x
p
y
x·y x·y
=⇒ α = =⇒ p= y
y·y y·y
Problem. Find the distance from the point
x = (3, 1) to the line spanned by y = (2, −1).
Consider the decomposition x = p + o, where p is parallel to
y while o ⊥ y. The required distance is the length of the
orthogonal component o.
x·y 5
p= y = (2, −1) = (2, −1),
y·y 5
√
o = x − p = (3, 1) − (2, −1) = (1, 2), kok = 5.