Professional Documents
Culture Documents
Email: nzabaras@gmail.com
URL: https://www.zabaras.com/
October 8, 2019
Course Web Site: https://www.zabaras.com/engineering-mathematics
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 1
Contents
The idea of a linear transformation,
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Linear Transformations
1 A linear transformation T takes vectors 𝒗 to vectors 𝑇(𝒗).
Linearity requires 𝑇(𝑐 𝒗 + 𝑑𝒘) = 𝑐 𝑇(𝒗) + 𝑑𝑇(𝒘). Note
𝑇(𝟎) = 𝟎 so 𝑇(𝒗) = 𝒗 + 𝒖0 is not linear.
2 The input vectors 𝒗 and outputs 𝑇(𝒗) can be in ℝ𝑛 or
matrix space or function space.
3 If 𝑨 is 𝑚 by 𝑛, 𝑇(𝒙) = 𝑨𝒙 is linear from the input space ℝ𝑛
to the output space ℝ𝑚 .
𝑑𝑓
4 The derivative 𝑇(𝑓) = is linear. The integral 𝑇 + 𝑓 =
𝑑𝑥
𝑥
0 𝑓 𝑡 𝑑𝑡 is its pseudoinverse.
5 The product ST of two linear transformations is still linear
: (𝑆𝑇)(𝒗) = 𝑆 (𝑇(𝒗))
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 4
Introduction to Linear Transformations
A linear transformation is a function T that maps a vector
space V into another vector space W:
T : V
mapping
W, V ,W : vector space
V: the domain of T
W: the co-domain of T
Two axioms of linear
Transformations
(1) T (u v) T (u) T (v), u, v V
(2) T (cu) cT (u), c R
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 5
Introduction to Linear Transformations
Image of 𝒗 under T:
T ( v) w
Then 𝒘 is called the image of
𝒗 under T .
The range of T:
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 7
Introduction to Linear Transformations
A linear transformation from a vector space into itself is
called a linear operator.
T (v1 , v 2 ) (v1 v 2 , v1 2v 2 )
Proof:
u (u1 , u2 ), v (v1 , v2 ) : vector in R 2 , c : any real number
(1) Vector addition :
u v ( u1 , u2 ) (v1 , v2 ) ( u1 v1 , u2 v2 )
T (u v) T (u1 v1 , u2 v2 )
((u1 v1 ) (u2 v2 ), (u1 v1 ) 2(u2 v2 ))
((u1 u2 ) (v1 v2 ), (u1 2u2 ) (v1 2v2 ))
(u1 u2 , u1 2u2 ) (v1 v2 , v1 2v2 )
T (u) T ( v)
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 8
Introduction to Linear Transformations
(2) Scalar multiplication
cu c(u1 , u2 ) (cu1 , cu2 )
T (cu) T (cu1 , cu 2 ) (cu1 cu 2 , cu1 2cu 2 )
c(u1 u 2 , u1 2u 2 )
cT (u)
Therefore, T is a linear transformation.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 9
Introduction to Linear Transformations
Functions that are not linear transformations
(a) f ( x) sin x
sin( x1 x2 ) sin( x1 ) sin( x2 ) f ( x ) sin x is not a
sin( 2 3 ) sin( 2 ) sin( 3 ) linear transformation
(c ) f ( x ) x 1
f ( x1 x2 ) x1 x2 1
f ( x1 ) f ( x2 ) ( x1 1) ( x2 1) x1 x2 2
f ( x1 x2 ) f ( x1 ) f ( x2 ) f ( x ) x 1 is not a
linear transformation
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 10
Introduction to Linear Transformations
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 11
Introduction to Linear Transformations
Zero transformation:
T :V W T ( v) 0, v V
Identity transformation:
T :V V T ( v) v, v V
Theorem: (Properties of linear transformations)
T : V W , u, v V
(1) T (0) 0
(2) T ( v) T ( v)
(3) T (u v) T (u) T ( v)
(4) If v c1v1 c2 v2 cn v n
Then T (v) T (c1v1 c2 v 2 cn v n )
c1T (v1 ) c2T (v 2 ) cnT (v n )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 12
Introduction to Linear Transformations
Theorem: (The linear transformation given by a matrix)
Let A be an mn matrix. The function T defined by
T ( v) Av
is a linear transformation from Rn into Rm.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 14
Introduction to Linear Transformations
A linear transformation from Mmn into Mn m
T ( A) AT (T : M mn M nm )
Show that T is a linear transformation.
Solution:
A, B M mn
T ( A B ) ( A B )T AT B T T ( A) T ( B )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 15
Linear Transformations
When a matrix 𝑨 multiplies a vector 𝒗, it "transforms" 𝒗 into
another vector 𝑨𝒗. In goes 𝒗, out comes 𝑇(𝒗) = 𝑨𝒗.
A transformation T follows the same idea as a function.
In goes a number 𝑥, out comes 𝑓(𝑥).
The deeper goal is to see all vectors 𝒗 at once. We are
transforming the whole space V when we multiply every 𝒗
by 𝑨.
Start again with a matrix 𝑨. It transforms 𝒗 to 𝑨𝒗. It
transforms 𝒘 to 𝑨𝒘. Then we know what happens to 𝒖 =
𝒗 + 𝒘. There is no doubt about Au, it has to equal 𝑨𝒗 +
𝑨𝒘.
Matrix multiplication 𝑇(𝒗) = 𝑨𝒗 gives a linear
transformation.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 16
Linear Transformations
A transformation T assigns an output 𝑇(𝒗) to each input
vector 𝒗 in V.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 17
Linear Transformations
If the input is 𝒗 = 𝟎, the output must be 𝑇(𝒗) = 𝟎. We
combine rules (a) and (b) into one:
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 18
Linear Transformations
Shift is not linear 𝒗 + 𝒘 + 𝒖0 is not 𝑇 𝒗 + 𝑇 𝒘 =
𝒗 + 𝒖0 + 𝒘 + 𝒖0 . The exception is when 𝒖0 = 0.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 20
Linear Transformations
Example The length 𝑇(𝒗) = 𝒗 is not linear.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 21
Linear Transformations
Example (Rotation) T is the transformation that rotates every
vector by 30° .
The "domain" of T is the xy plane (all input vectors 𝒗).
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 22
Introduction to Linear Transformations
Show that the L.T. T : R 2 R 2 given by the matrix
cos sin
A
sin cos
has the property that it rotates every vector in R2
counterclockwise about the origin through the angle .
Solution:
v ( x , y ) ( r cos , r sin ) (polar coordinates)
r: the length of v
:the angle from the
positive x-axis
counterclockwise to the
vector 𝒗
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 23
Introduction to Linear Transformations
cos sin x cos sin r cos
T ( v) Av
sin cos y sin cos r sin
r cos cos r sin sin
r sin cos r cos sin
r cos( )
r sin( )
r:the length of T(v)
+:the angle from the positive x-axis counterclockwise
to the vector T(v)
Thus, T(v) is the vector that results from rotating the
vector v counterclockwise through the angle .
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 24
Linear Transformations
The Figure shows the line from 𝒗 to 𝒘 in the input space. It
also shows the line from 𝑇(𝒗) to 𝑇( 𝒘) in the output space.
Linearity tells us: Every point on the input line goes onto
the output line. And more than that: Equally spaced points
go to equally spaced points.
The middle point 𝒖 = ½𝒗 + ½𝒘 goes to the middle point
𝑇(𝒖) = ½𝑇(𝒗) + ½𝑇(𝒘).
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 25
Linear Transformations
The second figure moves up a dimension. Now we have
three corners 𝒗1 , 𝒗2 , 𝒗3 .
Those inputs have three outputs 𝑇(𝒗1 ), 𝑇(𝒗2 ), 𝑇(𝒗3 ). The
input triangle goes onto the output triangle. Equally spaced
points stay equally spaced (along the edges, and then
between the edges). The middle point 𝒖 = ½ ( 𝒗1 + 𝒗2 +
𝒗3) goes to the middle point T(u) = ½(T(𝒗1 ) + T(𝒗2 ) + T(𝒗3 )).
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 26
Linear Transformations
The rule of linearity extends to combinations of n vectors:
Linearity 𝒖 = 𝑐1 𝒗𝟏 + ⋯ + 𝑐𝑛 𝒗𝒏 must transform to
𝑇 𝒖 = 𝑐1 𝑇 𝒗𝟏 + ⋯ + 𝑐𝑛 𝑇(𝒗𝒏 )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 27
Introduction to Linear Transformations
Ex: (Linear transformations and bases)
Let T : R 3 R 3 be a linear transformation such that
T (1,0,0) (2,1,4)
T (0,1,0) (1,5,2)
T (0,0,1) (0,3,1)
Find T(2, 3, -2).
Solution:
(2,3,2) 2(1,0,0) 3(0,1,0) 2(0,0,1)
T (2, 3, 2) 2T (1, 0, 0) 3T (0,1, 0) 2T (0, 0,1) (T is a L.T.)
2(2, 1, 4) 3(1, 5, 2) 2(0, 3,1)
(7, 7, 0)
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 28
Basis
Then-vector rule 𝑇 𝒖 = 𝑐1 𝑇 𝒗𝟏 + ⋯ + 𝑐𝑛 𝑇(𝒗𝒏 ) leads to
the most important fact about linear transformations:
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 29
Basis
Example The transformation T takes the derivative of the
input: 𝑇(𝑢) = 𝑑𝑢/ 𝑑𝑥.
How do you find the derivative of 𝑢 = 6 − 4𝑥 + 3𝑥2 ?
You start with the derivatives of 1, 𝑥, and 𝑥2. Those are the
basis vectors. Their derivatives are 0, 1, and 2𝑥. Then you
use linearity for the derivative of any combination:
𝑑𝑢
= 6 ( derivative of 1) - 4 ( derivative of x) + 3 ( derivative
𝑑𝑥
of 𝑥2 ) = −4 + 6𝑥.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 31
The Kernel and Range of a Linear Transformation
Kernel of a linear transformation T:
Let T : V W be a linear transformation
Then the set of all vectors v in V that satisfy T ( v) 0
is called the kernel of T and is denoted by ker(T).
ker(T ) {v | T (v) 0, v V }
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 32
The Kernel and Range of a Linear Transformation
Theorem: The kernel is a subspace of V.
The kernel of a linear transformation T : V W is a
subspace of V.
Proof: T (0) 0 (from our 1st Theorem)
ker(T ) is a nonempty subset of V
Let u and v be vectors in the kernel of T . Then
T (u v) T (u) T ( v) 0 0 0 u v ker(T )
T (cu) cT (u) c0 0 cu ker(T )
Thus, ker(T ) is a subspace of V .
Corollary:
Let T : R n R m be the L.T given by T (x) Ax
Then the kernel of T is equal to the solution space of Ax 0
T (x) Ax (a linear transformation T : R n R m )
ker ( T ) N ( A ) x | A x 0, x R n
( a subspace of R
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
n
)
33
The Kernel and Range of a Linear Transformation
x1
1 1 2
T (x) Ax x2 (T : R 3 R 2 ) ker(T ) ?
1 2 3
Solution: x3
ker(T ) {( x1 , x2 , x3 ) | T ( x1 , x2 , x3 ) (0,0), x ( x1 , x2 , x3 ) R3}
x1
T ( x1 , x2 , x3 ) (0, 0) 1 1 2 0
1 2 x2
3 0
x3
1 1 2 0 G . E 1 0 1 0
1 2
3 0 0 1 1 0
x1 t 1
x2 t t 1
ker(T ) { t (1, 1,1) | t real number }
x3 t 1 span{(1, 1,1)} = N(A)
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 34
Finding a Basis for a Kernel
Let T : R 5 R 4 be defined by T (x) Ax, where x is in R 5 and
1 2 1 1
0
2 1 3 1 0 Find a basis for ker(T) as a
A subspace of R5.
1 0 2 0 1
0 0 0 2 8
1 2 1 1 0
0 1 0 0 1 0
2
2 1 3 1 0 0 G . E 0 1 1 0 2 0
Sol:
A 0 1 0 2 0 1 0
0 0 0 1 4 0
0 0 0 2 8 0 0 0 0 0 0 0
s t
x1 2 s t 2 1
x 1 2
2 s 2 t B {( 2, 1, 1, 0, 0) and
x x3 s s 1 t 0 (1, 2, 0, 4, 1)} is a basis
x
4 4 t 0 4 of the kernel of T
x5 t 0 1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 35
Finding a Basis for a Kernel
The range of a linear transf. T : V W is a subspace of W .
Proof: T (0) 0 (Thm) range(T ) is a nonempty subset of W
Let T (u) and T ( v ) be vector in the range of T
T (u v) T (u) T ( v) range(T ) (u V , v V u v V )
T (cu) cT (u) range(T ) (u V cu V )
Therefore, range(T ) is a subspace of W
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 36
Finding a Basis for a Kernel
Let T : R n R m be the L.T. represented by T (x) Ax,
then the range of T is equal to the column space of A
range(T ) C ( A) { Ax x R n }
1 2 4
c , c , c is a basis for C ( A)
1 2 4
(1, 2, 1, 0), (2, 1, 0, 0), (1, 1, 0, 2)is a basis for the range of T
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 38
Sum of Rank and Nullity
Thm: Sum of rank and nullity
Let T : V W be a L.T. from an n - dimensional
vector space V into a vector space W ,
then rank (T ) nullity (T ) n,
i .e ., dim(range of T ) dim(kernel of T ) dim(domain of T )
𝑎
0 1 0 𝑏 𝑏
𝑨𝒖 = =
0 0 2 𝑐 2𝑐
𝑑𝑢
Output = 𝑏 + 2𝑐𝑥.
𝑑𝑥
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 41
Basis
Next we look at integrals. They give the pseudoinverse 𝑻+
of the derivative!
I can't write 𝑇 −1 and I can't say "inverse of T" when the
derivative of 1 is 0.
Example Integration T+ is also linear:
𝑥 1
0 𝐷 + 𝐸𝑥 𝑑𝑥 = 𝐷𝑥 + 𝐸𝑥 2
2
The input basis is now 1, x. The output basis is 1, x, x2 . The
matrix A+ for 𝑇 + is 3 by 2:
Input: 𝒗 = 𝑫 + 𝑬𝒙,
𝟏 𝟏
Output: 𝑻+ 𝒗 = 𝑫 𝟎+ 𝑬𝒙 𝒅𝒙 = 𝑫𝒙 + 𝑬𝒙𝟐 or
𝟐
𝟎
𝟎 𝟎
+ 𝑫 𝑫
𝑨 𝒗= 𝟏 𝟎 = 𝟏
𝟎 𝟏/𝟐 𝑬 𝑬
𝟐
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 42
Basis
The Fundamental Theorem of Calculus says that integration is the
(pseudo )inverse of differentiation. For linear algebra, the
+
matrix 𝑨 is the (pseudo ) inverse of the matrix 𝑨:
𝟎 𝟎 𝟎 0 0
𝟎 𝟏 𝟎
𝑨+ 𝑨 = 𝟏 𝟎 = 0 1 0
𝟎 𝟏/𝟐 𝟎 𝟎 𝟐 0 0 1
𝟏 0
or 𝑨𝑨+ =
0 𝟏
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 43
Finding the Rank and Nullity
Finding the rank and nullity of a linear transformation
Find the rank and nullity of the L.T. T : R 3 R 3 defined by
1 0 2
A 0 1 1
0 0 0
Sol:
rank (T ) rank ( A) 2
nullity(T ) dim(domain of T ) rank (T ) 3 2 1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 44
One-to-One Transformation
One-to-one:
A function T : V W is called one - to - one if the preimage
of every w in the range of T consists of a single vector.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 45
Onto Linear Tranformation
A function T : V W is said to be onto if every element
in W has a preimage in V
i.e., T is onto W when range(T)=W.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 46
One-to-One Linear Transformations
Thm: (One-to-one linear transformation)
Let T : V W be a L.T.,
T is one - to - one if and only if ker (T ) {0}
i.e., The addtive unit element in V is mapped onto
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 47
One-to-One Linear Transformations
Ex: One-to-one and not one-to-one linear transformation
(a) The L.T. T : M mn M nm given by T ( A) AT
is one - to - one.
Because its kernel consists of only the m n zero matrix
i.e., ker(T) = {0mn }.
(b) The zero transformation T : R 3 R 3 is not one - to - one.
Because its kernel is all of R3.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 48
Onto Linear Transformations
Onto linear transformation
Let T : V W be a L.T., where W is finite dimensional,
then T is onto iff the rank of T is equal to the dimension of W .
Thm: (One-to-one and onto linear transformation)
Let T : V W be a L.T. with vector space V and W both of
dimension n, then T is one - to - one iff it is onto.
1 2 0 1 2
( a ) A 0 1 1 (b) A 0 1
0 0 1 0 0
1 2 0
1 2 0 ( d ) A 0 1 1
(c ) A
0 1 1
Sol: 0 0 0
dim(domain
T:Rn→Rm rank(T) nullity(T) 1-1 onto
of T)
(a)T:R3→R3 3 3 0 Yes Yes
(b)T:R2→R3 2 2 0 Yes No
(c)T:R3→R2 3 2 1 No Yes
(d)T:R3→R3 3 2 1 No No
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 50
Isomorphism
A linear transformation T : V W that is one to one and onto is called
an isomorphism. Moreover, if V and W are vector spaces such that
there exists an isomorphism from V to W , then V and W are said to
be isomorphic to each other.
Thm: (Isomorphic spaces and dimension)
Two finite-dimensional vector space V and W are
isomorphic if and only if they are of the same dimension.
Pf: Assume that V is isomorphic to W , where V has dimension n.
There exists a L.T. T :V W that is one to one and onto.
T is one - to - one dim( Ker (T )) 0
dim(range of T ) dim(domain of T ) dim( Ker (T ))
n0 n
T is onto.
dim( range of T ) dim(W ) n Thus dim(V ) dim(W ) n
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 51
Isomorphism
Ex: (Isomorphic vector spaces)
The following vector spaces are isomorphic to each other.
(a ) R 4 4 - space
(b) M 41 space of all 4 1 matrices
(c) M 22 space of all 2 2 matrices
(d ) P3 ( x) space of all polynomial s of degree 3 or less
(e) V {( x1 , x2 , x3 , x4 , 0), xi is a real number}
(subspace of R 5 )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 52
Examples of Transformations
Example Project every 3-dimensional vector onto the
horizontal plane 𝑧 = 1.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 53
Examples of Transformations
Example Suppose A is an invertible matrix.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 54
Examples of Transformations
Are all linear transformations from V = ℝ𝑛 to W = ℝ𝑚
produced by matrices?
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 55
Examples of Transformations
Note Transformations have a language of their own. For a
matrix, the column space contains all outputs 𝑨𝒗. The
nullspace contains all inputs for which 𝑨𝒗 = 𝟎. Translate
those words into "range" and "kernel":
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 56
Linear Transformations of the Plane
It is more interesting to see a transformation than to define
it. When a 2 by 2 matrix 𝑨 multiplies all vectors in ℝ2 , we
can watch how it acts.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
The Matrix of a Linear Transformation
1. We know all 𝑇(𝒗) if we know 𝑇(𝒗1), … , 𝑇(𝒗𝑛 ) for an
input basis 𝒗1, … , 𝒗𝑛 : use linearity.
2. Column j in the "matrix for T" comes from applying T to
the input basis vector 𝒗𝑗 .
3. Write 𝑇 𝒗𝑗 = 𝑎1𝑗 𝒘1 … + 𝑎𝑚𝑗 𝒘𝑚 in the output basis of
𝒘's. Those 𝑎𝑖𝑗 into column j.
4. The matrix for 𝑇(𝒙) = 𝑨𝒙 is 𝑨 , if the input and output
bases = columns of 𝐼𝑛×𝑛 and 𝐼𝑚×𝑚 ·
5. When the bases change to 𝒗's and 𝒘's, the matrix for the
same T changes from 𝑨 to 𝑾−1 𝑨𝑽.
6. Best bases: 𝑽 = 𝑾 = eigenvectors and 𝑽, 𝑾 = singular
vectors give diagonal 𝜦 and 𝜮.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 60
Matrices for Linear Transformations
Two representations of the linear transformation T:R3→R3 :
(1)T ( x1 , x2 , x3 ) (2 x1 x2 x3 , x1 3 x2 2 x3 ,3 x2 4 x3 )
2 1 1 x1
(2)T (x) Ax 1 3 2 x2
0 3 4 x3
Reasons for matrix representation of a linear
transformation:
It is simpler to write.
It is simpler to read.
It is more easily adapted for computer use.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 61
Matrices for Linear Transformations
Thm: (Standard matrix for a linear transformation)
Let T : R n R m be a linear transformation and {e1 , e2 ,..., en }
are the basis of R n such that
a11 a12 a1n
a a a
T (e1 ) , T ( e2 ) 22 ,
2 1
, T ( en ) 2 n ,
m1
a m2
a mn
a
Then the m n matrix whose i columns correspond to T (ei )
a11 a12 a1n
a a a
A T (e1 ) T (e2 ) T (en ) 21 22 2n
m1
a a m2 a mn
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 63
Matrices for Linear Transformations
a11 a12 a1n
a a a
v1 21 v2 22 v n 2 n
m1
a m2
a mn
a
v1T (e1 ) v2T (e2 ) v nT (en )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 64
Matrices for Linear Transformations
Ex : (Finding the standard matrix of a linear transformation)
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 66
The Matrix of a Linear Transformation
We will assign a matrix 𝑨 to every linear transformation T. For
ordinary column vectors, the input 𝒗 is in V = ℝ𝑛 and the
output 𝑇 (𝒗) is in W =ℝ𝑚 .
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 67
The Matrix of a Linear Transformation
Choose the bases that give the best matrix (a diagonal
matrix) for 𝑇.
When the input basis is different from the output basis, the
matrix for 𝑇(𝒗) = 𝒗 will not be the identity 𝑰. It will be the
"change of basis matrix".
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 68
The Matrix of a Linear Transformation
Suppose we know 𝑻(𝒗 ) for the input basis vectors 𝒗𝟏 to
𝒗𝒏 . Columns 1 to n of the matrix will contain those
outputs 𝑻(𝒗𝟏 ) to 𝑻 𝒗𝒏
𝑨 times 𝒄 = matrix times vector = combination of those n
columns.
𝑨𝒄 is the correct combination 𝑐1 𝑻 𝒗𝟏 + ⋯ + 𝑐𝑛 𝑻 𝒗𝒏 =
𝑻(𝒗).
2 5
𝑨 = 3 5 , 𝑐1 = 1 and 𝑐2 = 1 gives:
4 5
2 5 7
1
𝑇 𝒗1 + 𝒗2 = 3 5 = 8
1
4 5 9
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 70
Change of Basis
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Change of Basis
Example Suppose the input space V = ℝ2 is also the output
space W = ℝ2 . Suppose that 𝑇(𝒗) = 𝒗 is the identity
transformation. You might expect its matrix to be 𝑰, but that
only happens when the input basis is the same as the
output basis. We will choose different bases to see how the
matrix is constructed.
Output Basis: 𝒘1 𝒘2 = 3 0
1 2
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 72
Change of Basis
We wrote the input basis 𝒗1, 𝒗2 in terms of the output
basi𝑠 𝒘1, 𝒘2.
We apply the identity transformation T to each input basis
vector: 𝑇(𝒗1) = 𝒗1 and 𝑇(𝒗2) = 𝒗2. Then we write those
outputs 𝒗1 and 𝒗2 in the output basis 𝒘1 and 𝒘2. Those
bold numbers 1, 1 and 2, 3 tell us column 1 and
column 2 of the matrix 𝑩 (the change of basis matrix):
𝑾 𝑩 = 𝑽 so 𝑩 = 𝑾−1 𝑽.
Matrix B for 𝒘𝟏 𝒘𝟐 𝑩 = 𝒗𝟏 𝒗𝟐 𝒊𝒔
𝟑 𝟎 𝟏 𝟐 𝟑 𝟔
change of basis =
𝟏 𝟐 𝟏 𝟑 𝟑 𝟖
When the input basis is in the columns of a matrix V, and
the output basis is in the columns of W, the change of basis
matrix for 𝑻 = 𝑰 is 𝑩 = 𝑾−1 𝑽.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 73
Change of Basis
A clear way to understand 𝑩 = 𝑊 −1 𝑽. Suppose the same
vector u is written in the input basis of 𝒗’s and the output
basis of w’s.
𝒖 = 𝑐1 𝒗1 + ⋯ . +𝑐𝑛 𝒗𝑛
𝒖 = 𝑑1 𝒘1 + ⋯ . +𝑑𝑛 𝒘𝑛
𝑐1 𝑑1
𝒗1 … 𝒗𝑛 … = 𝒘1 … 𝒘𝑛 …
𝑐𝑛 𝑑𝑛
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 74
Change of Basis
The formula 𝑩 = 𝑾−1 𝑽 produces one of the world 's
greatest mysteries:
𝑥 −1
𝑥
𝒘 𝒘2
𝑦 in the standard basis has coefficients 1 𝑦 in
the 𝒘1 , 𝒘2 basis.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 75
Construction of the Matrix
Now we construct a matrix for any linear transformation.
Suppose T transforms the space V ( n-dimensional) to the
space W ( m-dimensional).
We choose a basis 𝒗1 , … , 𝒗𝑛 for V and we choose a basis
𝒘1 , … , 𝒘𝑚 for W. The matrix A will be m by n.
To find the first column of A, apply T to the first basis
vector 𝒗1 . The output 𝑇 𝒗1 is in W.
𝑇(𝒗1 ) is a combination 𝑎11 𝒘𝟏 + ⋯ + 𝑎𝑚1 𝒘𝒎 of the output
basis for W.
𝑎11 , … , 𝑎𝑚1 go into the first column of 𝑨. Transforming 𝒗1 to
𝑇(𝒗1 ) matches multiplying (1, 0, … , 0) by 𝑨. It yields that 1st
column of the matrix.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 76
Construction of the Matrix
When T is the derivative and the first basis vector is 1, its
derivative is 𝑇(𝒗1 ) = 0. So for the derivative matrix below,
the first column of A is all zero.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 77
Construction of the Matrix
Key rule: The jth column of A is found by applying T to the
jth basis vector 𝑣𝑗
𝑇(𝑣𝑗 ) = combination of output basis vectors= 𝒂𝟏𝒋 𝒘𝟏 + ⋯ +
𝒂𝒎𝒋 𝒘𝒎 .
These numbers 𝑎𝑖𝑗 go into A. The matrix is constructed to get
the basis vectors right. Then linearity gets all other vectors
right. Every v is a combination 𝑐1 𝑣1 + ⋯ + 𝑐𝑛 𝑣𝑛 , and T (v) is
a combination of the w 's. When A multiplies the vector c =
(𝑐1 , . . ., 𝑐𝑛 ) in the v combination, Ac produces the
coefficients in the T( v) combination. This is because matrix
multiplication (combining columns) is linear like T.
1 1
The integral of 𝑑1 + 𝑑2 𝑥 + 𝑑3 𝑥 2 is 𝑑1 𝑥 + 𝑑2 𝑥 2 + 𝑑3 𝑥 3
2 3
0
0 0 0 𝑑2
𝑑1
1 0 0 1
𝐴+ 𝑑 = 𝑑2 = 𝑑2
0 1Τ2 0 2
𝑑3
0 0 1Τ3 1
𝑑
3 3
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 79
Construction of the Matrix
If you integrate a function and then differentiate, you get
back to the start. So AA+ = I.
But if you differentiate before integrating, the constant term
is lost. So 𝑨+ 𝑨 is not 𝑰.
The integral of the derivative of l is zero:
𝑇 + 𝑇 1 =integral of zero function = 0.
This matches A+ A, whose first column is all zero. The
derivative T has a kernel ( constant functions). Its matrix A
has a nullspace. Main idea again: Av copies T( v ).
T :V W (a L.T.)
B {v1 , v2 , , vn } (a basis for V )
B ' { w1 , w2 , , wm } (a basis for W )
A T (v1 )B ' , T (v 2 )B ' , , T ( v n )B ' M mn
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 81
Change of Bases
Transformation matrix for nonstandard bases
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 82
Change of Bases
The m n matrix whose i columns correspond to T (vi )B ' is
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 83
Change of Bases
Ex : (Finding a transformation matrix relative to nonstandard
bases)
Let T:R 2 R 2 be a L.T. defined by
T ( x1 , x2 ) ( x1 x2 , 2 x1 x2 )
Find the matrix of T relative to the basis
B {(1, 2), (1, 1)} and B' {(1, 0), (0, 1)}
Sol:
T (1, 2) (3, 0) 3(1, 0) 0(0, 1)
T (1, 1) (0, 3) 0(1, 0) 3(0, 1)
3 0
T (1, 2)B ' 0 , T ( 1, 1)B ' 3
the transformation matrix T relative to B and B '
3 0
A T (1, 2)B ' T ( 1, 1)B '
0 3
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 84
Change of Bases
Now use the matrix A to find T (v), where v (2, 1)
1
v B
1
3 0 1 3
T ( v )B ' Av B
0 3
3
1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 85
Change of Bases
Notes:
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 86
Matrix Products AB match
transformations TS
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Matrix Products AB Match Transformations TS
Two linear transformations T and S are represented by two
matrices A and B. Now compare 𝑇𝑆 with the multiplication
𝑨𝑩:
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 88
Matrix Products AB Match Transformations TS
The transformation 𝑆 is from a space U to V.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 89
Matrix Products AB Match Transformations TS
Multiplication The linear transformation 𝑇𝑆 starts with any
vector 𝒖 in U, goes 𝑆(𝒖) in V and then to 𝑇(𝑆(𝒖)) in W.
The most important cases are when U,V,W are the same and their
bases are the same. With m=n=p, we have square matrices that we
can multiply.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 90
Matrix Products AB Match Transformations TS
Example 𝑆 rotates by the angle 𝜃 and 𝑇 rotates by −𝜃.
𝑐𝑜𝑠 2 𝜃 + 𝑠𝑖𝑛2 𝜃 0 =𝑰
2 2
0 𝑐𝑜𝑠 𝜃 + 𝑠𝑖𝑛 𝜃
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 91
Composition of Linear Transformations
Composition of T1: Rn→Rm with T2: Rm→Rp :
T ( v ) T2 (T1 ( v )), v R n
T T2 T1 , domain of T domain of T1
(1) ( T is a L.T.)
Let u and v be vectors in R n and let c be any scalar then
T (u v) T2 (T1 (u v)) T2 (T1 (u) T1 ( v))
T2 (T1 (u)) T2 (T1 ( v)) T (u) T ( v)
T (cv) T2 (T1 (cv)) T2 (cT1 ( v)) cT2 (T1 ( v)) cT ( v)
T ( v) T2 (T1 ( v)) T2 ( A1 v) A2 A1 v ( A2 A1 ) v
But note:
T1 T2 T2 T1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 93
Composition of Linear Transformations
Ex : (The standard matrix of a composition)
Let T1 and T2 be L.T. from R 3 into R 3 such that
T1 ( x, y, z ) (2 x y, 0, x z )
T2 ( x, y, z ) ( x y, z, y )
Find the standard matrices for the compositions
T T2 T1 and T ' T1 T2 ,
Sol:
2 1 0
A1 0 0 0 (standard matrix for T1 )
1 0 1
1 1 0
A2 0 0 1 (standard matrix for T2 )
0 1 0
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 94
Composition of Linear Transformations
The standard matrix for T T2 T1
1 1 0 2 1 0 2 1 0
A A2 A1 0 0 1 0 0 0 1 0 1
0 1 0 1 0 1 0 0 0
The standard matrix for T ' T1 T2
2 1 0 1 1 0 2 2 1
A' A1 A2 0 0 0 0 0 1 0 0 0
1 0 1 0 1 0 1 0 0
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 95
Inverse Linear Transformation
Inverse linear transformation
Note:
If the transformation T is invertible, then the inverse
is unique and denoted by T–1 .
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 96
Inverse Linear Transformation
Existence of an inverse transformation
Let T : R n R n be a L.T. with standard matrix A,
Then the following condition are equivalent.
(1) T is invertible.
(2) T is an isomorphism.
(3) A is invertible.
Note:
If T is invertible with standard matrix A, then the
standard matrix for T–1 is A–1 .
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 97
Inverse Linear Transformations
Ex : (Finding the inverse of a linear transformation)
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 98
Inverse Linear Transformations
Therefore T is invertible and the standard matrix for T 1 is A1
1 1 0
A1 1 0 1
6 2 3
1 1 0 x1 x1 x2
T 1 (v) A1 v 1 0 1 x2 x1 x3
6 2 3 x3 6 x1 2 x2 3 x3
In other words,
T 1 ( x1 , x2 , x3 ) ( x1 x2 , x1 x3 , 6 x1 2 x2 3 x3 )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 99
Choosing the best bases
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Choosing the Best Bases
Choose bases that diagonalize the matrix 𝑨.
has 𝑨𝑇 = 𝑨 and 𝑨2 = 𝑨.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 103
Choosing the Best Bases
What about other choices of input basis = output basis? Put
those basis vectors into the columns of 𝑩. We saw above
that the change of basis matrices (between standard basis
and new basis) are 𝑩𝑖𝑛 = 𝑩 and 𝑩𝑜𝑢𝑡 = 𝑩−1 . The new
matrix for 𝑇 is similar to 𝑨:
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 104
Choosing the Best Bases
Finally we allow different spaces V and W, and different bases
𝒗's and 𝒘's. When we know 𝑇 and we choose bases, we get
a matrix 𝑨. Probably 𝑨 is not symmetric or even square. But
we can always choose 𝒗's and 𝒘's that produce a diagonal
matrix. This will be the singular value matrix Σ =
𝑑𝑖𝑎𝑔 𝜎1 , … , 𝜎𝑛 in the decomposition 𝑨 = 𝑼𝜮𝑽𝑇 .
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 105
Choosing the Best Bases
−1
𝑩𝑜𝑢𝑡 𝑨𝑩𝑖𝑛 = 𝑼−1 𝑨𝑽 = 𝜮
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 106
Choosing the Best Bases
Example To construct the matrix 𝑨 for the transformation
𝑇 = 𝑑/𝑑𝑥, we chose the input basis 1, 𝑥, 𝑥 2 , 𝑥 3 and the
output basis 1, 𝑥, 𝑥 2 .
The matrix 𝑨 was simple but wasn't diagonal. But we can
take each basis in the opposite order. Now the input basis is
𝑥 3 , 𝑥 2 , 𝑥, 1 and the output basis is 𝑥 2 , 𝑥, 1. The change of
basis matrices 𝑩𝑖𝑛 and 𝑩𝑜𝑢𝑡 are permutations. The matrix
for 𝑇(𝒖) = du/dx with the new bases is the diagonal singular
−𝟏
value matrix 𝑩𝒐𝒖𝒕 𝑨𝑩𝒊𝒏 = 𝚺 with 𝜎’s=3,2,1:
1
1 0 1 0 0 3 0 0 0
𝑩−1 1
𝑜𝑢𝑡 𝑨𝑩𝑖𝑛 = 1 0 0 2 0 = 0 2 0 0
1
1 0 0 0 3 0 0 1 0
1
We found that 𝑥 3 , 𝑥 2 , 𝑥, 1 have derivatives 𝟑𝒙𝟐 , 𝟐𝒙, 𝟏, 𝟎
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 107
Summary
1. If we know 𝑇 𝒗1 , … , 𝑇(𝒗𝑛 ) for a basis, linearity will
determine all other 𝑇(𝒗).
𝐿𝑖𝑛𝑒𝑎𝑟 𝑡𝑟𝑎𝑛𝑠𝑓𝑜𝑟𝑚𝑎𝑡𝑖𝑜𝑛 𝑇 𝑀𝑎𝑡𝑟𝑖𝑥 𝑨 𝑚 × 𝑛
2. 𝐼𝑛𝑝𝑢𝑡 𝐵𝑎𝑠𝑖𝑠 𝒗1 , . . . , 𝒗𝑛 ⇒ Re𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑠 𝑇
𝑂𝑢𝑡𝑝𝑢𝑡 𝐵𝑎𝑠𝑖𝑠 𝒘1 , . . . , 𝒘𝑚 𝑖𝑛 𝑡ℎ𝑒𝑠𝑒 𝑏𝑎𝑠𝑒𝑠
3. The change of basis matrix 𝑩 = 𝑾−1 𝑽 =
−1
𝑩𝑜𝑢𝑡 𝑩𝑖𝑛 represents the identity 𝑇(𝒗) = 𝒗.
4. If 𝑨 and 𝑩 represent 𝑇 and 𝑆, and the output basis for 𝑆 is
the input basis for 𝑇, then the matrix 𝑨𝑩 represents the
transformation 𝑇 ( 𝑆 ( 𝒖)).
5. The best input-output bases are eigenvectors and/or
singular vectors of A. Then
𝑩−1 𝑨𝑩 = 𝜦= eigenvalues 𝑩−1
𝑜𝑢𝑡 𝑨𝑩𝑖𝑛 =𝚺=singular values
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 108
Transition Matrices and Similarity
T :V V ( a L.T.)
B {v1 , v 2 , , vn } (a basis of V )
B ' { w1 , w2 , , wn } (a basis of V )
A T (v1 )B , T (v 2 )B , , T (v n )B (matrix of T relative to B )
A ' T ( w1 )B ' , T ( w2 )B ' , , T ( wn )B ' (matrix of T rel. to B ' )
P w1 B , w2 B , , wn B (transition matrix from B ' to B )
P 1 v1 B ' , v 2 B ' , , v n B ' (transition matrix from B to B ' )
v B P v B ' , v B ' P 1 v B
T (v)B A v B
T (v)B ' A ' v B '
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 109
Transition Matrices and Similarity
Two ways to get from vB ' to T ( v)B: '
(1) direct indirect
A '[v]B ' [T (v)]B '
(2) indirect
P 1 AP[v]B ' [T (v)]B '
direct
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 110
Transition Matrices and Similarity
Ex Find the transformation matrix A' for T : R 2 R 2
with T ( x1 , x2 ) (2 x1 2 x2 , x1 3 x2 )
Sol:
(I) A ' T (1, 0) B ' T (1, 1)B '
3
T (1, 0) (2, 1) 3(1, 0) 1(1, 1) T (1, 0)B '
1
2
T (1, 1) (0, 2) 2(1, 0) 2(1, 1) T (1, 1)B '
2
3 2
A ' T (1, 0)B ' T (1, 1)B '
1 2
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 111
Transition Matrices and Similarity
(II) Standard matrix for T (i.e., the transformation
matrix of T relative to B {(1, 0), (0, 1)})
2 2 with T ( x , x ) (2 x 2 x , x 3x )
A T (1, 0) T (0, 1)
1 2 1 2 1 2
1 3
The transition matrix from B ' to B :
1 1
P (1, 0) B (1, 1)B 0 1
1 1 1
The transition matrix from B to B ' : P
0 1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 112
Transition Matrices and Similarity
(2) standard matrix for T (matrix of T relative to
B {(1, 0), (0, 1)})
2 2
A T (1, 0) T (0, 1)
1 3
transition matrix from B ' to B
※ Solve a(1, 0) + b(0, 1) = (1, 0)
1 1
P (1, 0) B (1, 1) B
(a, b) = (1, 0)
※ Solve c(1, 0) + d(0, 1) = (1, 1)
0 1 (c, d) = (1, 1)
transition matrix from B to B '
1 1 ※ Solve a(1, 0) + b(1, 1) = (1, 0)
P (1, 0) B ' (0, 1) B '
1
(a, b) = (1, 0)
※ Solve c(1, 0) + d(1, 1) = (0, 1)
0 1 (c, d) = (-1, 1)
matrix of T relative B '
11 1 2 2 1 1 3 2
A' P AP
0 1 1 3 0 1 1 2
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 113
Transition Matrices and Similarity
Ex: (Finding a matrix for a linear transformation)
Let B {(3, 2), (4, 2)} and B ' {( 1, 2), (2, 2)} be basis for
2 7
R , and let A
2
be the matrix for T : R 2
R 2
relative to B.
3 7
Find the matrix of T relative to B '
Sol: Because the specific function is unknown, it is difficult to
apply the direct method to derive A’, so we resort to the
indirect method where A’ = P-1AP
3 2
transition matrix from B' to B : P (1, 2)B (2, 2)B
2 1
1 2
transition matrix from B to B' : P (3, 2)B ' (4, 2)B '
1
2 3
matrix of T relative to B':
1 2 2 7 3 2 2 1
A' P AP
1
2 3 3 7 2 1 1 3
6.11
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 114
4
Transition Matrices and Similarity
Ex: (Finding a matrix for a linear transformation)
2 7
For the linear transformation below T : R R , A 2
, 2
3 7
find v B , T ( v ) B , and T ( v) B ' , for the vector v whose
3
coordinate matrix is v B '
Sol: v B Pv B '
3 2 3 7 1
2 1 1 5
2 7 7 21
T ( v)B Av B
3 7
5 14
T ( v)B ' P 1 T ( v)B 12 23 14
21 7
0
2 1 3 7
or T ( v)B ' A' v B '
1 3 1 0
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 115 6.11
5
Transition Matrices and Similarity
Similar matrix:
For square A and A‘ of order n, A‘ is said to be similar to A
if there exist an invertible matrix P such that A ' P 1 AP
Thm: (Properties of similar matrices)
Let A, B, and C be square matrices of order n.
Then the following properties are true.
(1) A is similar to A.
(2) If A is similar to B, then B is similar to A.
(3) If A is similar to B and B is similar to C, then A
is similar to C.
Pf:
(1) A I n AI n
(2) A P 1 BP PAP 1 P( P 1 BP) P 1
PAP 1 B Q 1 AQ B (Q P 1 )
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 116
Similar Matrices
Ex : (Similar matrices)
2 2 3 2
(a) A and A ' are similar
1 3 1 2
1 1 1
because A' P AP, where P
0 1
2 7 2 1
(b) A and A ' are similar
3 7 1 3
1 3 2
because A' P AP, where P
2 1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 117
Transition Matrices and Similarity
Ex : (A comparison of two matrices for a linear transformation)
1 3 0
Suppose A 3 1 0 is the matrix for T : R 3 R 3
0 0 2
relative to the standard basis B.
Find the matrix for T relative to the basis
Sol:
B' {(1, 1, 0), (1, 1, 0), (0, 0, 1)}
The transition matrix P from B' to the standard basis B is
1 1 0
P (1, 1, 0) B (1, 1, 0) B (0, 0, 1)B 1 1 0
12 12 0 0 0 1
P 1 12 12 0
0 0 1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 118
Transition Matrices and Similarity
The matrix of T relative to B ' :
12 12 0 1 3 0 1 1 0
3 1 0 1 1 0
A ' P 1 AP 12 12 0
0 0 1 0 0 2 B 0 0 1 B ' B
B B '
4 0 0
0 2 0 diagonal matrix
0 0 2
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 119
Transition Matrices and Similarity
Notes: Diagonal matrices have many computational
advantages over nondiagonal ones
d1 0 0
0 d2 0
for D
0 0 dn
d1k 0 0
0 d 2k 0 (2) DT D
(1) D k
k
0 0 d n d11 0 0
0 0
1
1
(3) D , di 0
d2
0 0 1
dn
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 120
The search for a good basis
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
The Search for a Good Basis
1. With a new input basis 𝑩𝑖𝑛 and output basis 𝑩𝑜𝑢𝑡 , every
−1
matrix A becomes 𝑩𝑜𝑢𝑡 𝑨𝑩𝑖𝑛 .
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 122
The Search for a Good Basis
The input basis vectors will be the columns of 𝑩𝑖𝑛 The
output basis vectors will be the columns of 𝑩𝑜𝑢𝑡 . Always
𝑩𝑖𝑛 and 𝑩𝑜𝑢𝑡 are invertible-basis vectors are independent!
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 124
The Search for a Good Basis
3 𝑩𝑖𝑛 = 𝑩𝑜𝑢𝑡 = generalized eigenvectors of 𝑨. Then 𝑩−1 𝑨𝑩=
Jordan form J.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 125
The Search for a Good Basis
Example This Jordan matrix 𝑱 has eigenvalues 𝜆 = 2, 2, 3, 3
(two double eigenvalues).
Those eigenvalues lie along the diagonal because 𝑱 is
triangular. There are two independent eigenvectors for 𝜆 =
2, but there is only one line of eigenvectors for 𝜆 = 3. This will
be true for every matrix 𝑪 = 𝑩𝑱𝑩−1 that is similar to 𝑱.
2
Jordan matrix: 𝑱 = 2
3 1
0 3
Two eigenvectors for 𝜆 = 2 are 𝒙1 = 1,0,0,0 , 𝒙2 = 0,1,0,0 .
One eigenvector for 𝜆 = 3 is 𝒙3 = 0,0,1,0 . The generalized
eigenvector for this Jordan matrix is the 4th standard basis
vector 𝒙4 = 0,0,0,1 . The eigenvectors for 𝑱 (normal & gene-
ralized) are the columns 𝒙1 , 𝒙2 , 𝒙3 , 𝒙4 of the identity 𝑰.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 126
The Search for a Good Basis
Notice 𝑱 − 3𝑰 𝒙4 = 𝒙3 . The generalized eigenvector 𝒙4
connects to the true eigenvector 𝒙3 . A true 𝒙4 would have
𝑱 − 3𝑰 𝒙4 = 𝟎, but that doesn't happen here.
Every matrix 𝑪 = 𝑩𝑱𝑩−1 that is similar to this J will have
true eigenvectors 𝒃1 , 𝒃2 , 𝒃3 in the first three columns of 𝑩.
The fourth column of 𝑩 will be a generalized eigenvector 𝒃4
of 𝑪, tied to the true 𝒃3 . Here is a quick proof that uses
𝑩𝒙3 = 𝒃3 and 𝑩𝒙4 = 𝒃4 to show: The fourth column 𝒃4 is
tied to 𝒃3 by 𝑪 − 3𝑰 𝒃4 = 𝒃3 .
𝑩𝑱𝑩−𝟏 − 3𝑰 𝒃𝟒 = 𝑩𝑱𝒙𝟒 − 3𝑩𝒙𝟒 = 𝑩 𝑱 − 3𝑰 𝒙𝟒 = 𝑩𝒙𝟑 = 𝒃𝟑
The point of Jordan's theorem is that every square matrix 𝑨
has a complete set of eigenvectors and generalized
eigenvectors. When those go into the columns of 𝑩, the
matrix 𝑩−1 𝑨𝑩 = 𝑱 is in Jordan form.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 127
The Jordan Form
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Jordan Form
For every 𝑨, we want to choose 𝑩 so that 𝑩−1 𝑨𝑩 is as nearly
diagonal as possible. When 𝑨 has a full set of n
eigenvectors, they go into the columns of 𝑩. Then 𝑩 = 𝑿.
The matrix 𝑿−1 𝑨𝑿 is diagonal, period. This is the Jordan
form of 𝑨-when 𝑨 can be diagonalized.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 130
Jordan Form
(Jordan form) If 𝑨 has s independent eigenvectors, it is
similar to a matrix 𝑱 that has s Jordan blocks 𝑱1 , … , 𝑱𝑠 on its
diagonal. Some matrix B puts 𝑨 into Jordan form :
𝑱𝟏
Jordan form 𝑩−𝟏 𝑨𝑩 = ⋱ =𝑱
𝑱𝒔
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Discrete Fourier Transform
4 𝑩𝑖𝑛 = 𝑩𝑜𝑢𝑡 = Fourier matrix F. Then 𝑭𝒙 is a Discrete
Fourier Transform of 𝒙. The Fourier matrix with columns
(1, 𝜆, 𝜆2 , 𝜆3 ) is important. Those are good basis vectors to
work with.
We ask: Which matrices are diagonalized by 𝑭? This time
we are starting with the eigenvectors (1, 𝜆, 𝜆2 , 𝜆3 ) and
finding the matrices that have those eigenvectors :
0 1 0 0 1 1
𝜆 𝜆
If 𝜆4 = 1 then: 𝑷𝒙 = 0 0 1 0 = λ =𝜆x
0 0 0 1 𝜆2 𝜆 2
1 0 0 0 𝜆3 𝜆3
P is a permutation matrix. The equation 𝑷𝒙 = 𝜆𝒙 says that
𝒙 is an eigenvector and 𝜆 is an eigenvalue of 𝑷. Notice how
the fourth row of this vector equation is 1 = 𝜆4 . That rule
for 𝜆 makes everything work.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 135
Discrete Fourier Transform
The four numbers 𝜆 = 1, 𝑖, −1, −𝑖 all satisfy 𝜆4 = 1. So those
four numbers are the eigenvalues of 𝑷, each with its
eigenvector 𝒙 = (1, 𝜆, 𝜆2 , 𝜆3 ). The eigenvector matrix 𝑭
diagonalizes the permutation matrix 𝑷
1 0 0 0
Eigenvalue matrix 𝜦 = 0 𝑖 0 0
0 0 −1 0
1 0 0 −𝑖
1 1 1 1
Eigenvector matrix is Fourier matrix 𝑭: 1 𝑖 −1 −𝑖
1 𝑖2 1 −𝑖 2
1 𝑖3 −1 −𝑖 3
Those columns of 𝑭 are orthogonal because they are
eigenvectors of 𝑷 (an orthogonal matrix). Unfortunately 𝑭 is
complex. Multiplications 𝑭𝒙 are done by the FFT.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 136
Discrete Fourier Transform
What other matrices beyond 𝑷 have this same eigenvector
matrix 𝑭 ?
We know that 𝑷2 and 𝑷3 and 𝑷4 have the same eigenvectors
as 𝑷. The same matrix 𝑭 diagonalizes all powers of 𝑷. And
the eigenvalues of 𝑷2 and 𝑷3 and 𝑷4 are the numbers 𝜆2 and
𝜆3 and 𝜆4 . For example 𝑷2 𝒙 = 𝜆2 𝒙
0 0 1 0 1 1
0 0 0 1 𝜆 𝜆
𝑷2 𝒙 = =𝜆 2 4
2 = 𝜆 𝒙 𝑤ℎ𝑒𝑛 𝜆 = 1
1 0 0 0 𝜆2 𝜆
0 1 0 0 𝜆3 𝜆3
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 138
Discrete Fourier Transform
The four eigenvalues of 𝑪 are given by the Fourier
transform 𝑭𝒄:
1 1 1 1 𝑐0 𝑐0 + 𝑐1 + 𝑐2 + 𝑐3
1 𝑖 −1 −𝑖 𝑐1 𝑐0 + 𝑖𝑐1 − 𝑐2 − 𝑖𝑐3
𝑭𝒄 = 1 𝑖2 1 −𝑖 2 𝑐2 = 𝑐0 − 𝑐1 + 𝑐2 − 𝑐3
1 𝑖3 −1 −𝑖 3 𝑐3 𝑐0 − 𝑖𝑐1 − 𝑐2 + 𝑖𝑐3
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 139
Discrete Fourier Transform
Example The same ideas work for a Fourier matrix 𝑭 and a
circulant matrix 𝑪 of any size. Two by two matrices look
trivial but they are very useful. Now eigenvalues of 𝑷 have
𝜆2 = 1 instead of 𝜆4 = 1 and the complex number 𝑖 is not
needed: 𝜆 = ±1.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 142
Discrete Fourier Transform
𝑑2 𝑢
The equation = 𝑡𝑢 has a variable coefficient t. This is
𝑑𝑡 2
Airy’s equation in physics and optics.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 143
Basis for function space
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Basis for Function Spaces
For functions of x, the first basis contains the powers
1, 𝑥, 𝑥2, 𝑥3, … Unfortunately this is a terrible basis.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 146
Basis for Function Spaces
The dot product of vectors is 𝒙𝑇 𝒚 = 𝑥1 𝑦1 + ⋯ + 𝑥𝑛 𝑦𝑛 . The
inner product of functions will integrate instead of adding.
When the integrals are from x=0 to x=1, the inner product of
𝑥 𝑖 and 𝑥 𝑗 is:
1 𝑖 𝑗 1
0 𝑥 𝑥 𝑑𝑥 = (entries of Hilbert space 𝑩𝑇 𝑩)
𝑖+𝑗+1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 147
Basis for Function Spaces
By changing to the interval 𝑥 = −1 to 𝑥 = 1, we
immediately have orthogonality between all even functions
and all odd functions:
1 1
න 𝑥 2 𝑥 5 𝑑𝑥 = 0, න 𝑒𝑣𝑒𝑛 𝑥 𝑜𝑑𝑑 𝑥 𝑑𝑥 = 0
−1 −1
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 148
Legendre polynomials and
Chebyshev polynomials
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
Orthogonal Basis for Function Space
5. The Fourier basis 1, sin 𝑥, cos 𝑥, sin 2𝑥, cos 2𝑥, …
1 3
6. The Legendre basis 1, 𝑥, 𝑥 2 − , 𝑥3 − 𝑥, …
3 5
Fourier series
𝑓 (𝑥)
= 𝑎𝑜 + 𝑏1 𝑠𝑖𝑛𝑥 + 𝑎1 cos 𝑥 + 𝑏2 sin 2𝑥 + 𝑎2 cos 2𝑥 + · · ·
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 152
Orthogonal Basis for Function Space
Legendre polynomials are the result of applying Gram-
Schmidt. Orthogonalize 1, 𝑥, 𝑥2, . . . To start, the odd function
𝑥 is already orthogonal to the even function 1 over the
interval from −1 to 1. Their product ( 𝑥) ( 1) = 𝑥 integrates
2 2
to 0. But the inner product between 𝑥2 and 1 is −1 𝑥 2 𝑑𝑥 =
3
1 2
< 𝑥 2, 1
> −1 𝑥 𝑑𝑥 2/3 1
= 1 = =
< 1,1 > −1 1𝑑𝑥 2 3
2 1
So Gram-Schmidt gives: 𝑥 − =Legendre. Similarly x3 has
3
a component 3𝑥 / 5 in the direction of the odd function 𝑥 :
3 1 4
< 𝑥 , 𝑥 > −1 𝑥 𝑑𝑥 2/5 3
= 1 = =
< 𝑥, 𝑥 > −1 𝑥 𝑑𝑥 2/3 5
2
3
So Gram-Schmidt gives: 𝑥3 − 𝑥 =Legendre. Continuing
5
Gram-Schmidt for 𝑥 4 , 𝑥 5 , … gives every Legendre function.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras)
153
Orthogonal Basis for Function Space
Finally we turn to the Chebyshev polynomials 1, 𝑥, 2𝑥 2 −
1,4𝑥 3 − 3𝑥, …. They don't come from Gram-Schmidt.
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 155
Orthogonal Basis for Function Space
REVIEW OF THE KEY IDEAS
Advanced Engineering Mathematics, Univ. of Notre Dame, Notre Dame, IN, USA (Fall 2019, N. Zabaras) 156