Professional Documents
Culture Documents
Linear Transformations
1
6 Hopfield Network Questions
Initial
Condition Recurrent Layer
p
Sx1 W n(t + 1) a(t + 1) a(t)
SxS
Sx1 Sx1 D Sx1
1 b
Sx1
S S
3
6 Example - Rotation
Is rotation linear?
A(ax )
A(x ) x = aA(x ) ax
1.
A(x ) x
x 1 +x 2 A(x 1 + x 2)
A(x 1)
x2
2. x1 A(x 2)
4
6 Matrix Representation - (1)
Any linear transformation between two finite-dimensional
vector spaces can be represented by matrix multiplication.
Let {v1, v2, ..., vn} be a basis for X, and let {u1, u2, ..., um} be
a basis for Y.
n m
x = xiv i y = yiu i
i=1 i=1
Let A:XY
A(x ) = y
n m
A x jv j = yiu i
j = 1 i=1
5
6 Matrix Representation - (2)
Since A is a linear operator,
n m
xjA(vj) = yiu i
j=1 i=1
n m m
x j aij u i = yiu i
j=1 i=1 i=1
6
6 Matrix Representation - (3)
m n m
u i aij x j = yiu i
i=1 j=1 i=1
m n
ui aij x j yi = 0
i=1 j=1
a 11 a 12 a 1n x 1 y1
n
a 21 a 22 a 2n x 2
aij x j = yi =
y2
j=1
This is equivalent to a m1 a m2 a mn x n ym
matrix multiplication.
7
6 Summary
m
A(vj) = aij u i
i=1
s2
x y = A(x)
x y = A(x)
s1
9
6 Example - (2)
To find the matrix we need to transform each of the basis vectors.
m
A(vj) = aij u i
i=1
10
6 Example - (3)
We begin with s1:
If we draw a line on the bottom card and then skew the
deck, the line will not change.
A(s1)
s1
2
A (s 1) = 1s 1 + 0s 2 = a i1 s i = a 11 s 1 + a 21 s 2
i=1
tan()
A(s2)
s2
2
A (s 2) = tan ( ) s 1 + 1 s 2 = ai2 s i = a 12 s 1 + a 22 s 2
i=1
A = 1 tan( )
0 1
13
6 Change of Basis
Consider the linear transformation A:XY. Let {v1, v2, ..., vn} be
a basis for X, and let {u1, u2, ..., um} be a basis for Y.
n m
x = xiv i y = yiu i
i=1 i=1
A(x ) = y
a m1 a m2 a mn x n ym
Ax = y
14
6 New Basis Sets
Now lets consider different basis sets. Let {t1, t2, ..., tn} be a
basis for X, and let {w1, w2, ..., wm} be a basis for Y.
n m
x = x'i t i y = y'iw i
i=1 i=1
a' m1 a' m2 a' mn x' n y' m
A'x' = y'
15
6 How are A and A' related?
Expand ti in terms of the original basis vectors for X.
t 1i
n
t 2i
ti = t ji v j ti =
j=1
t ni
w1i
m
w2i
wi = w ji u j wi =
j=1
w mi
16
6 How are A and A' related?
Bw = w 1 w 2 wm y = B w y'
1
[ B w AB t ] x' = y'
1
A' = [ B w AB t ]
A'x' = y'
Similarity
Transform
17
6 Example - (1)
Take the skewing problem described previously, and find the
new matrix representation using the basis set {s1, s2}.
t2 t1
s2 t1 = 0.5 s 1 + s 2
t2 = -s1 + s2
s1
0.5
t1 =
1
B t = t 1 t 2 = 0.5 1 B w = B t = 0.5 1
1 1 1 1 1
t2 =
1 (Same basis for
domain and range.)
18
6 Example - (2)
1
A' = [ B w ABt ] = 2 3 2 3 1 tan 0.5 1
2 3 1 3 0 1 1 1
For = 45:
A' = 53 23 A = 11
2 3 1 3 0 1
19
6 Example - (3)
Try a test vector: x = 0.5 x' = 1
1 0
t2 t1 = x y = A( x )
s2
s1
A(z) = z
s2
x y = A(x) Can you find an eigenvector
for this transformation?
s1
21
6 Computing the Eigenvalues
Az = z
[A I ]z = 0 [A I] = 0
1 1 1 = 1
A = 11 = 0 2
(1 ) = 0
0 1 0 1 2 = 1
1 1 z = 0 0 1 z = 0 1 z 11 = 0 z 21 = 0 z1 = 1
1
0 1 0 00 0 0 z 21 0 0
{z 1, z 2, , z n} Eigenvectors
B = z 1 z2 z n
{ 1, 2, , n} Eigenvalues
1 0 0
1 0 2 0
[ B AB ] =
0 0 n
23
6 Example
A = 11
1 1
1 1 1 = 0
= 0 2
2 = ( ) ( 2 ) = 0 1 1 z = 0
1 1 2 = 2 1 1 0
1 = 0 1 1 z = 1 1 z1 1 = 0 z21 = z 11 z1 = 1
1
1 1 1 1 z2 1 0 1
2 = 2 1 1 z = 1 1 z 12 = 0 z 22 = z 12 z2 = 1
1
1 1 1 1 z 22 0 1
A' = [ B AB ] = 1 2 1 2 1 1 1 1 = 0 0
1
Diagonal Form:
12 12 1 1 1 1 0 2
24