Linalg
Linalg
Linalg
I subspaces, halfspaces
I invertible matrices
1
(Euclidean) norm
important properties:
I k xk = j jkxk (homogeneity)
I kx + yk kxk + kyk (triangle inequality)
I kxk 0 (nonnegativity)
I kxk = 0 () x = 0 (definiteness)
2
RMS value and (Euclidean) distance
3
Inner product
hx; yi := x1 y1 + x2 y2 + + xn yn = xT y
important properties:
I h x; yi = hx; yi
I hx + y; zi = hx; z i + hy; zi
I hx; yi = hy; xi
I hx; xi 0
I hx; xi = 0 () x = 0
f (y) = hx; yi is linear function : Rn ! R, with linear map defined by row vector xT
4
Cauchy-Schwarz inequality and angle between vectors
θ
xT y
kyk2
y
special cases:
6
Cauchy-Schwarz inequality and angle between vectors
y y
xT y > 0 xT y < 0
7
Linear functionals
8
Halfspaces
I define a halfspace with outward normal vector y , and boundary passing through 0 by
H = fx j xT y 0g
I H is all vectors x that make an obtuse or right angle with y
{x | xT y ≤ 0}
0
y
9
Subspaces
10
Examples of subspaces
S+T = fx + y j x 2 S; y 2 T g
11
Orthogonal subspaces
xT y = 0 for all x 2 S; y 2 T
S ? = fx j xT y = 0 for all y 2 S g
12
Independent set of vectors
1 v1 + 2 v2 + + k vk = 0 = ) 1 = 2 = = 0
1 v1 + 2 v2 + + k vk = 1 v1 + 2 v2 + + k vk
implies 1 = 1; 2 = 2; : : : ; k = k
I no vector vi can be expressed as a linear combination of the other vectors v1 ; : : : ; vi 1 ; vi+1 ; : : : ; vk
I no one vector vi is in the span of the others
13
Basis and dimension
S = span(v1 ; v2 ; : : : ; vk )
and
fv1 ; v2 ; : : : ; vk g is independent
I for a given subspace S, the number of vectors in any basis is the same, called the dimension of S,
denoted d = dim S
A square matrix A 2 Rnn is called invertible if there is a matrix B 2 Rnn such that
BA = I
15
Interpretations of inverse
I mapping associated with B undoes mapping associated with A (applied either before or after!)
I x = By is a perfect (pre- or post-) equalizer for the channel y = Ax
I x = By is unique solution of Ax = y
16
Change of coordinates
203
6 .7
..
6
I standard basis vectors in Rn are e1 ; e2 ; : : : ; en , where ei = 6 1. 7
4 .. 75 has a 1 in ith component
0
y~ = (T 1 AT )~x
18