Module 2 Merged
Module 2 Merged
Gaurav Dwivedi
Department of Mathematics
BITS Pilani, Pilani Campus.
Module 2
Real Vector Spaces and Subspaces
Module 2
1 Vector Spaces
2 Subspaces
3 Linear Span
4 Linear Independence
A set of functions?
Theorem
For every u 2 V and k 2 R,
1 k 0V = 0V
2 0 u = 0V
3 ( 1) u = u
4 If k u = 0V , then k = 0 or u = 0V .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 6, 2024 12 / 80
Example
The set R+ of a positive real numbers form a vector
space with respect to the following operations:
u v = u · v (vector addition)
a u = ua (scalar multiplication)
for all a 2 R and u, v 2 R+ .
Rn = {(x1 , x2 , . . . , xn ) : xi 2 R}.
u v = (x1 , x2 , . . . , xn ) (y1 , y2 , . . . , yn )
= (x1 + y1 , x2 + y2 , . . . , xn + yn )
a u = (ax1 , ax2 , . . . , axn ).
The set
Mmn = {[aij ]m⇥n | aij 2 R}
of all m ⇥ n matrices with real entries is a vector space
with respect to the following operations:
[aij ]m⇥n [bij ]m⇥n = [aij + bij ]m⇥n (vector addition)
f g = f + g (vector addition),
1. Is
W = (x, y) 2 R2 | y = 0
a subspace of R2 ?
2. Is
W = (x, y) 2 R2 | x 6= y
a subspace of R2 ?
W1 + W2 = {w1 + w2 | w1 2 W1 , w2 2 W2 },
is a subspace of V .
Pn = {p 2 F ( 1, 1) : p(x) = a0 + a1 x + · · · + an xn }
1 W = {(x, y, z) 2 R3 : z = 0}
3 W = {p(x) = a0 + a1 x + a2 x2 + a3 x3 2 P3 :
a0 + a1 + a2 + a3 = 0}
w = k1 v1 + k2 v2 + · · · + kr vr ; ki 2 R, 1 6 i 6 r.
span(S) = {a1 v1 + · · · + ak vk | ai 2 R, 1 6 i 6 k}
k1 v1 + k2 v2 + · · · + kr vr = 0
k1 = 0, k2 = 0, . . . , kr = 0.
Show that
3a 5b + 2c = 0
a 2b + 2c = 0
a + 2b c = 0
(x, y) (w, z) = (x + w, y + z 1)
and
a (x, y) = (ax, ay a + 1).
Let
(x, y) (w, z) = (x + w + 1, y + z 2)
and
a (x, y) = (ax + a 1, ay 2a + 2).
Let
S = {(1, 1), (2, 2)}.
Is S a linearly independent subset of R2 .
1 Basis
2 Dimension,
3 Row Space, Column Space, and Null Space of a
matrix
4 Rank, Nullity of a matrix
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 3 / 29
Basis of a Vector Space
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 4 / 29
Basis of a Vector Space
Definition: A finite subset S = {v1 , v2 , . . . , vn } of a
vector space V is said to be a basis of V if
1 S is LI, and
2 span(S) = V .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 5 / 29
Example
The subset S = {(1, 0), (0, 1)} = {e1 , e2 } is a basis of
R2 as S is LI and span(S) = R2 . The subset S is called
the standard basis of R2 .
Analogously, S = {e1 , e2 , . . . , en } is called the standard
basis of Rn , where ei is a vector of Rn such that its ith
component is 1 and remaining components are 0.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 6 / 29
1 A set containing a single vector is linearly
independent. (F)
2 No linearly independent set contains the zero vector.
(T)
3 Every linearly dependent set contains the zero
vector. (F)
4 The span of a single vector in R2 is a line. (F)
5 The span of a nonempty set S of vectors in V is the
smallest subspace of V that contains S. (T)
6 The span of any finite set of vectors in a vector
space is closed under addition and scalar
multiplication. (T)
7 Two subsets of a vector space V that span the
same subspace of V must be equal. (F)
8 Every linearly independent subset of a vector space
V is a basis for V . (F)
Standard bases
1 S = {1, x, x2 , . . . , xn } is a basis of Pn as S is LI
and span(S) = Pn . The set S is called the
standard basis of Pn .
2 The set
1 0 0 1 0 0 0 0
S= , , ,
0 0 0 0 1 0 0 1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 8 / 29
Questions
1 Find a basis for
W = {(a, b, c, d) ∈ R4 | d = a + 2b, c = 3a − b}.
2 Consider the subspace
W1 = {(a, b, c, d) | b − 2c + d = 0} and
W2 = {(a, b, c, d) | a = d, b = 2c} of R4 . Find a
basis for W1 ∩ W2 .
3 Find a basis for W = {A ∈ M33 | A = AT }.
4 Find a basis for W = {p(x) ∈ P4 |p(2) = p(3) = 0}.
5 Find a basis for
W = {p(x) ∈ P4 | p(3) = p(5) = p(8)}.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 9 / 29
Dimension of a Vector Space
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 10 / 29
Definition. A vector space that can be spanned by
finitely many vectors is said be finite dimensional.
Otherwise, it is called infinite dimensional.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 11 / 29
Theorem. Let V be a finite dimensional vector space,
and let S = {v1 , v2 , . . . , vn } be any basis
If a subset of V has more than n vectors, then it is
linearly dependent
If a subset of V has fewer than n vectors, then it
does not span V
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 12 / 29
Definition. The dimension of a finite dimensional vector
space V is the number of elements in a basis of V and it
is denoted by dim(V ).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 13 / 29
Examples
dim(R2 ) = 2.
dim(R3 ) = 3.
dim(Rn ) = n.
dim(Pn ) = n + 1.
dim(Mmn ) = mn.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 14 / 29
Questions
1 Find a basis and the dimension of a subspace W of
R3 , where
W = {(x, y, z) ∈ R3 | x + 2z = 0}.
2 Find a basis and the dimension of a subspace W of
M33 , where
W = {A ∈ M33 | A = −AT }.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 15 / 29
Questions
1 Find a basis and dimension for the solution space of
the following homogeneous linear system
x + 2y − z = 0
2x − y + 2z = 0
3x + y + z = 0
4x + 3y = 0
1 0 1
2 Let A = 0 12 − 21 . Find values of x such that
n −2 0 x o
N = X ∈ R3 : AX = 0 is one dimensional
subspace of R3 .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 16 / 29
Exercise
Let
1 1 1
A = 2 2 3 .
x y z
Find the dimension of the subspace
W = {(x, y, z) ∈ R3 | A is singular}.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 17 / 29
Theorem. If S = {v1 , v2 , . . . , vn } is a basis for a vector
space V , then every vector v in V can be expressed in
the form v = c1 v1 + c2 v2 + · · · + cn vn in exactly one way.
v = c1 v1 + c2 v2 + · · · + cn vn
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 18 / 29
The vector (c1 , c2 , . . . , cn ) ∈ Rn constructed from these
coordinates is called the coordinate vector of v
relative to S; it is denoted by
(v)S = (c1 , c2 , . . . , cn )
Remark: Sometime we shall write a coordinate vector as
column matrix and denoted by [v]S , i.e.,
c1
c2
[v]S =
...
cn
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 19 / 29
Example. Find the coordinate vector of the polynomial
p = 3 − x − 2x2 relative to the basis
S = {1 + x, 1 + x2 , x + x2 }.
Sol.
3 − x − 2x2 = c1 (1 + x) + c2 (1 + x2 ) + c3 (x + x2 )
= (c1 + c2 ) + (c1 + c3 )x + (c2 + c3 )x2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 20 / 29
c1 + c2 = 3
c1 + c3 = −1
c2 + c3 = −2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 21 / 29
Exercise
Find the coordinate vector of A relative to the basis
S = {A
1 , A2, A3 , A4 }, where
3 −2 1 −1 0 1
A= , A1 = , A2 = ,
0 1 0 0 1 0
1 0 0 1
A3 = , A4 =
0 0 0 1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 22 / 29
Theorem. Let S = {v1 , v2 , . . . , vn } be a basis for a
vector space V . Let u, v ∈ V and let c be a scalar. Then
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 23 / 29
Exercise
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 24 / 29
Results Related to Basis and
Dimension
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 25 / 29
Theorem. Let S = {v1 , v2 , . . . , vn } be a nonempty set
of vectors in a vector space V .
If S is a linearly independent and v ∈ V such that
v ̸∈ span(S), then S1 = {v, v1 , v2 , . . . , vn } is a
linearly independent set.
If v ∈ S such that it can be expressed as a linear
combination of other vectors in S, then
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 26 / 29
Theorem. Let V be an n-dimensional vector space, and
let S be a set in V with exactly n vectors.
S is a basis of V if and only if S spans V .
S is a basis of V if and only if S is linearly
independent.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 27 / 29
Examples. For a given vector space V and a given
subset S of V , determine which of following S form a
basis of the respective vector space V :
1 V = R3 , S = {(3, 1, −1), (−5, −2, 2), (2, 2, −1)}.
2 V = R4 , S = {(7, 1, 2, 0), (8, 0, 1, −1)}.
3 V = P2 , S = {1 + x, x + x2 , 1 + x2 }.
4 V = P2 , S = {1 − x, x − x2 , 1 − x2 }.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 28 / 29
Theorem
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 29 / 29
Exercises
1 Extend the set
to form a basis of R4 .
2 Extend the set S = {(1, 1, 0)} to form two different
bases of R3 .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 30 / 29
Exercises
1 Let S = {(4, 2, 1), (2, 6, −5), (1, −2, 3)} be a subset
of vector space R3 . Find dim(span(S)).
2 Find a basis for the subspace of P2 spanned by
v1 = −1 + x − 2x2 , v2 = 3 + 3x + 6x2 and v3 = 9.
3 Let U = {(a, b, c, d, e) ∈ R5 |a + c − 3d + e = 0}
and W = {(a, b, c, d, e) ∈ R5 |b − c − e = 0, a = d}
be the subspaces of R5 under usual operations. Find
a basis for U and for W and for U ∩ W .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 31 / 29
Theorem. Let W be a subspace of a finite dimensional
vector space V . Then
1 W is also finite dimensional and dimW ⩽ dimV .
2 dimW = dimV if and only if W = V .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 32 / 29
Subspaces associated with
Matrices
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 33 / 29
Definitions
Let A be an m × n matrix.
The column space of A denoted by col(A), is the
subspace of Rm spanned by the column vectors of
A.
The row space of A, denoted by row(A), is the
subspace of Rn spanned by the row vectors of A.
row(A) = col(AT ).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 35 / 29
Every matrix is row equivalent to its row echelon
form.
If a matrix A is row equivalent to a matrix B, then
B is row equivalent to A.
Result. Let B be any matrix that is row equivalent to a
matrix A. Then row(B) = row(A). Is col(B) = col(A)?
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 36 / 29
Example. Find a basis for the row space, column space
and null space of
1 −3 2 4
0 1 −1 0
A=
0 0
1 3
0 0 0 1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 37 / 29
The vectors
1 −3 2 4
0 1 −1 0
c1 =
0 , c2 = 0 , c3 = 1 , c4 = 3
0 0 0 1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 38 / 29
Theorem. If a matrix R is in row echelon form, then
the row vector with the leading 1’s (the nonzero row
vectors) form a basis for the row space of R, and the
column vectors with the leading 1’s of the row vector
form a basis for the column space of R.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 39 / 29
Finding Row(A) and Col(A)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 40 / 29
Exercise
Find a basis for the row space, column space and null
space of
1 4 5 6 9
3 −2 1 4 −1
A= −1
0 −1 −2 −1
2 3 5 7 8
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 41 / 29
Example
Find a basis for the row space, column space and null
space of
1 4 5 6 9
3 −2 1 4 −1
A= −1
0 −1 −2 −1
2 3 5 7 8
Solution: Let B be the RREF of matrix A. Then
1 0 1 2 1
0 1 1 1 2
B= 0 0 0 0 0
0 0 0 0 0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 42 / 29
Example
Let S = {v1 , v2 , v3 , v4 }, where
−2 −3 −5 1 1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 43 / 29
Step 2:
1 0 0 2 −2
0 1 0 0 1
RREF(A) =
0 0 1 −1 0
0 0 0 0 0
Step 3:
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 44 / 29
Example
Let S = {v1 , v2 , v3 , v4 , v5 }, where
v1 = (1, 2, −2, 1), v2 = (−3, 0, −4, 3)
v3 = (2, 1, 1, −1), v4 = (−3, 3, −9, 6)
and v5 = (9, 3, 7, −6)
be a subset of R4 . Find a basis for span(S) comprising
of the elements of S.
Solution.
1 −3 2 −3 9
2 0 1 3 3
A= −2 −4 1 −9 7
1 3 −1 6 −6
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 45 / 29
1 0 1/2 3/2 3/2
0 1 −1/2 3/2 −5/2
RREF(A) =
0
0 0 0 0
0 0 0 0 0
The set of vectors corresponding to pivot columns is
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 46 / 29
Basis for the Space Spanned by
{v1, . . . , vk }
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 47 / 29
Example
We know that
null(A) = {x : Ax = 0}
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 48 / 29
1 0 1 2 1
0 1 1 1 2
RREF(A) =
0
0 0 0 0
0 0 0 0 0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 49 / 29
null(A) = {(−r − 2s − t, −r − s − 2t, r, s, t) : r, s, t ∈ R}
= span(S), where
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 50 / 29
Rank and Nullity of a Matrix
Theorem. The row space and column space of a matrix
have the same dimension.
Definition: The common dimension of row(A) and
col(A) of a matrix A is called the rank of A and is
denoted by rank(A);
dim(null(A)) is called the nullity of A and it is denoted
by nullity(A).
Result. For any matrix A, rank(A) = rank(AT ).
Dimension Theorem. If A is a matrix with n columns,
then
rank(A) + nullity(A) = n
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 51 / 29
Dimension Theorem for Matrices
rank(A) + nullity(A) = n
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 52 / 29
1 3 1 4
REF(A) = 0 1 0 4
0 0 1 9
rank(A) = 3 =⇒ nullity(A) = 4 − 3 = 1.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 53 / 29
Theorem
Let A be an n × n matrix. The following statements are
equivalent:
A is invertible.
Ax = b has a unique solution for every b ∈ Rn .
The homogenous system Ax = 0 has only the trivial
solution.
The reduced row echelon form of A is In .
det(A) ̸= 0.
The column vectors of A are linearly independent.
The column vectors of A span Rn .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 54 / 29
Theorem (contd.)
The column vectors of A form a basis of Rn .
The row vectors of A are linearly independent.
The row vectors of A span Rn .
The row vectors of A form a basis of Rn .
A has rank n.
A has nullity 0.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 55 / 29
Conclusion
1 Vector Spaces
2 Subspaces
3 Span
4 Linear Independence
5 Basis and Dimension
6 Row space, Column Space, and Null Space
7 Rank and Nullity of a Matrix
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 15, 2024 56 / 29
MATH F112 (MATHEMATICS-II)
Gaurav Dwivedi
Department of Mathematics
BITS Pilani, Pilani Campus.
Module 4
Linear Transformation
Recall
The row space and column space of a matrix have
the same dimension.
The common dimension of row(A) and col(A) of a
matrix A is called the rank of A and is denoted by
rank(A);
For any matrix A, rank(A) = rank(AT ).
dim(null(A)) is called the nullity of A and it is
denoted by nullity(A).
If A is a matrix with n columns, then
rank(A) + nullity(A) = n
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 3 / 59
True/False
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 4 / 59
True/False
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 5 / 59
True/False
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 6 / 59
Module 4
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 7 / 59
Introduction to Linear
Transformation
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 8 / 59
Linear Transformation
Let V and W be real vector spaces. A map T : V → W
is called a Linear map or Linear transformation (LT)
from V to W if the following two properties hold for all
vectors u and v in V and for every k ∈ R:
1 T (u + v) = T (u) + T (v) (Additivity property)
2 T (ku) = kT (u). (Homogeneity property)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 10 / 59
Example
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 11 / 59
Theorem. If T : V → W is a linear transformation,
then
1 T (0) = 0W .
2 T (u − v) = T (u) − T (v).
3 T (−v) = −T (v).
is a linear transformation.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 12 / 59
Exercises
Check which of the following maps are LT.
1 T : P2 → R3 given by T (a + bx + cx2 ) = (a, b, c).
2 T : Pn → Pn+1 given by T (p(x)) = xp(x).
3 T : R → R given by T (x) = sin x.
4 T : R → R given by T (x) = x2 .
5 T : Mnn → R given by T (A) = a11 a22 · · · ann .
6 T : Mnn → R given by T (A) = rank(A).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 13 / 59
Exercise
(x, y) ⊕ (w, z) = (x + w + 1, y + z − 2)
a (x, y) = (ax + a − 1, ay − 2a + 2).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 14 / 59
Some Examples of LT
1 T : V → W such that T (v) = 0 for every v ∈ V.
2 T : V → V such that T (v) = v for every v ∈ V.
3 T : V → V such that T (v) = cv for any scaler c.
4 T : C 1 (−∞, ∞) → F (−∞, ∞) such that
T (f )(x) = f 0 (x).
5 T : C(−∞, ∞) → C 1 (−∞, ∞) such that
Z x
T (f )(x) = f (t) dt.
0
6 For a matrix A of order m × n, T : Rn → Rm given
by
T (x) = Ax.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 15 / 59
Example
Let T : R3 → R3 be a linear operator such that
T (1, 0, 0) = (−2, 1, 0), T (0, 1, 0) = (3, −2, 1), and
T (0, 0, 1) = (0, −1, 3).
1 Find T (−3, 2, 4).
2 Find T (x, y, z) for all (x, y, z) in R3 .
Solution.
(−3, 2, 4) = −3(1, 0, 0) + 2(0, 1, 0) + 4(0, 0, 1)
T (−3, 2, 4) = T (−3(1, 0, 0) + 2(0, 1, 0) + 4(0, 0, 1))
= −3T (1, 0, 0) + 2T (0, 1, 0) + 4T (0, 0, 1)
= −3(−2, 1, 0) + 2(3, −2, 1) + 4(0, −1, 3)
= (12, 11, 14)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 16 / 59
Similarly,
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 17 / 59
Theorem. Let T : V → W be a linear transformation,
where V is finite dimensional. If S = {v1 , v2 , . . . , vn } is
a basis for V , then the image of any vector v in V can
be expressed as
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 18 / 59
Exercise
Consider the basis S = {v1 , v2 , v3 } for R3 , where
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 19 / 59
Hint: For (x1 , x2 , x3 ) ∈ R3 , note that if
(x1 , x2 , x3 ) = c1 v1 + c2 v2 + c3 v3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 20 / 59
Then, using property of linear transformation and
substitute T (v1 ), T (v2 ), T (v3 ), we get
T (x1 , x2 , x3 ) = (x1 −x2 −x3 , 5x1 −2x2 −x3 , −x1 +3x2 +2x3 ).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 21 / 59
Kernel and Range of a
Linear Transformation
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 22 / 59
Kernel and Range of a LT
Let T : V → W be a LT. The kernel of T , denoted by
ker(T ) is the subset of all vectors in V that map to 0W ,
i.e.,
ker(T ) = {v ∈ V | T (v) = 0W }.
Range: Let T : V → W be a LT. The range of T ,
denoted by R(T ), is the subset of all vectors in W that
are image of some vector in V , i.e.
R(T ) = {T (v) | v ∈ V }
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 25 / 59
Exercises
Determine ker(T ) and R(T ) of the following linear
transformations:
1 T : P2 → R3 given by T (a + bx + cx2 ) = (a, b, c).
2 T : P3 → P2 given by T (p(x)) = p0 (x).
3 L : M22 → M22 given by L(A) = AT .
R1
4 T : P1 → R given by T (a + bx) = 0 (a + bx)dx.
5 T : R3 → R2 given by T (x, y, z) = (0, y).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 26 / 59
Example
Let T : R3 → R2 be a LT given by
Find ker(T ) and R(T ). Also, find a basis for ker(T ) and
R(T ). Hence, find rank(T ) and nullity(T ).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 27 / 59
Sol.
ker(T ) = (x, y, z) ∈ R3 | T (x, y, z) = 0R2
= (x, y, z) ∈ R3 | x = 2y, z = −y
= {(2y, y, −y) | y ∈ R}
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 28 / 59
R(T ) = T (x, y, z) | (x, y, z) ∈ R3
= {(x − 2y, y + z) | x, y, z ∈ R}
= {x(1, 0) + y(−2, 1) + z(0, 1) | x, y, z ∈ R}
= span{(1, 0), (−2, 1), (0, 1)}
= span{(1, 0), (0, 1)}(Why?)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 29 / 59
Example
(x, y) ⊕ (w, z) = (x + w + 1, y + z − 2)
a (x, y) = (ax + a − 1, ay − 2a + 2).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 30 / 59
Dimension Theorem for LT
If T : V → W is linear transformation from an
n-dimensional vector space V to a vector space W , then
rank(T ) + nullity(T ) = n.
Example: Let {e1 , e2 , e3 , e4 } be a standard basis of R4
and let T : R4 → R3 be a linear transformation such that
T (e1 ) = (1, 1, 1), T (e2 ) = (1, −1, 1),
T (e3 ) = (1, 0, 0) and T (e4 ) = (1, 0, 1). Find nullity and
rank of T .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 31 / 59
Exercise
Let A be the matrix
1 4 5 0 9
3 −2 1 0 −1
A=
−1 0 −1 0 −1
2 3 5 1 8
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 33 / 59
Questions
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 34 / 59
One-to-one and Onto Linear
Transformation
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 35 / 59
One-to-One and Onto LT
Let T : V → W be a linear transformation. Then T is
said to be
one-to-one if T maps distinct vectors in V into
distinct vectors in W, i.e., T (u) = T (v) implies that
u = v.
onto if every vector in W is the image of at least
one vector in V, i.e., for each vector w in W , there
exists v ∈ V such that T (v) = w.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 36 / 59
Questions
1 Consider a T : M22 → M22 given by T (A) = AT .
Check if T is one-to-one and onto.
2 T : R2 → R 3 given by T (x, y) = (2x, x − y, 0).
Check if T is one-to-one and onto.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 37 / 59
Example: Consider a LT
T : P3 → P2 given by
T (p) = p0 .
Check if T is one-to-one and onto.
Solution: Consider p1 = x + 2 and p2 = x + 4. Since,
T (p1 ) = T (p2 ) = 1 implies T is not one-to-one.
Let q be an arbitrary element in P2 i.e.
q = a + bx + cx2 . Note that a + bx + cx2 = p0 , where
p = ax + 2b x2 + 3c x3 so that T (p) = q. Hence, T is
onto.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 38 / 59
Theorem. Let T : V → W be linear transformation.
Then T is one-to-one if and only if ker(T ) = {0V }.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 39 / 59
Example
Consider a LT T : M22 → M23 given by
a b a−b 0 c−d
T =
c d c+d a+b 0
Is T one-to-oneand onto?
a b
Solution: Let ∈ ker(L). Then
c d
a b a−b 0 c−d 0 0 0
T = = .
c d c+d a+b 0 0 0 0
We have a − b = c − d = c + d = a + b = 0 implies
a = b = c = d = 0.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 40 / 59
Hence, ker(L) contains only the zero matrix (the zero
vector of M22 ). Thus, T is one-to-one.
Note that
dim(R(T )) = dim(M22 ) − dim(ker(T ))
=4
6= dim(M23 ).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 41 / 59
Example
Let A be a fixed n × n matrix, and consider a LT
T : Mnn → Mnn given by T (B) = AB − BA.
Is T one-to-one and onto?
Solution: T (In ) = AIn − In A = 0n×n . Hence,
In ∈ ker(T ) and so, T is not one-to-one. Hence, T is
not onto.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 42 / 59
Exercise
Which of the following transformations are one-to-one?
onto?
1 T : R3 → R4 given by T (x, y, z) = (y, z, −y, 0).
2 T : Pn → Pn+1 given by T (p(x)) = xp(x).
3 T : P3 → R4 given by
T (u1 , u2 , . . . , un , . . .) = (0, u1 , u2 , . . . , un , . . .)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 43 / 59
Definition: If a linear transformation T : V → W is
both one-to-one and onto, then T is said to be an
isomorphism, and the vector spaces V and W are said
to be isomorphic.
Theorem. Every n-dimensional vector space is
isomorphic to Rn .
Example: Vector spaces Pn−1 and Rn are isomorphic.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 44 / 59
Theorem: Let V and W be two finite dimensional real
vector spaces. Then V is isomorphic to W if and only if
dimV = dimW .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 45 / 59
Exercise: Let V = {A ∈ M22 : Trace(A) = 0},
W = R2 . Determine whether V and W are isomorphic.
If they are, give an explicit isomorphism T : V → W .
Exercise: Determine whether V and W are isomorphic.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 46 / 59
Recall that if T : V → W is a linear transformation, then
R(T ), the range of T consisting all images under T of
vectors in V . If T is one-to-one, then each vector
w ∈ R(T ) is the image of a unique vector v in V . This
uniqueness allow us to define a function, called the
inverse of T and denoted by T −1 that maps w back
into v, i.e.,
T −1 : R(T ) → V given by
T −1 (w) = v, where T (v) = w
Note that
T −1 (T (v)) = v, T (T −1 (w)) = w
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 47 / 59
Example: Let T : R3 → P2 be a LT given by
Find T −1 , if exists.
One How do we know if T −1 exists.
Solution: First show that T is one-to-one. Thus, we can
define T −1 : R(T ) → R3 . Note that R(T ) = P2 (verify!)
Let T −1 : P2 → R3 be defined by
T −1 (a + bt + ct2 ) = (x, y, z)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 48 / 59
⇒ T (x, y, z) = a + bt + ct2
⇒ x + (x + y − z)t + (x + y + z)t2 = a + bt + ct2
⇒ x = a, x + y − z = b, x + y + z = c
b + c − 2a c−b
⇒ x = a, y = ,z = .
2 2
Hence,
b + c − 2a c − b
T −1 (a + bx + cx2 ) = a, , .
2 2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 49 / 59
Exercise
Let T : P2 → R3 be the function defined by
p(−1)
T (p(x)) = p(0)
p(1)
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 50 / 59
Definition: If T1 : U → V and T2 : V → W are linear
transformations, then the composition of T2 with T1 ,
denoted by T2 ◦ T1 , is defined by
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 51 / 59
Exercise
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 52 / 59
Exercise
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 53 / 59
Theorem
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 54 / 59
Reflection
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 55 / 59
Projection
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 56 / 59
Rotation
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 57 / 59
Compression/Expansion
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 58 / 59
Shear
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 59 / 59
MATH F112 (MATHEMATICS-II)
Gaurav Dwivedi
Department of Mathematics
BITS Pilani, Pilani Campus.
Module 5
Change of Basis and Matrix of a Linear
Transformation
Module 5
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 3 / 30
Change of Basis
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 4 / 30
Coordinate Vector
cn
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 6 / 30
Change of Basis Problem
Q: Let V be a vector of a finite dimensional vector
space and v ∈ V . If we change the basis for V from a
basis B to a basis B ′ , how are the coordinate vectors
[v]B and [v]B ′ are related?
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 7 / 30
We discuss a solution to the change of basis problem for
a two dimensional vector space V. Let B = {u1 , u2 } and
B ′ = {u′1 , u′2 } be the old and new bases, respectively.
Now let v ∈ V such that
k
[v]B ′ = 1
k2
i.e. v = k1 u′1 + k2 u′2 . In order to find [v]B , we must
express v as a linear combinations of vectors in B. This,
yields
v = k1 (au1 + bu2 ) + k2 (cu1 + du2 )
k1 a + k2 c
Thus, [v]B =
k1 b + k2 d
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 8 / 30
a c k1
[v]B =
b d k2
a c
[v]B = [v]B ′
b d
Thus, the old coordinate vector [v]B results when we
multiply the new coordinate vector [v]B ′ to the right of
the matrix
a c
P = = [ [u′1 ]B | [u′2 ]B ]
b d
The matrix P is called the transition matrix from B ′ to
B.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 9 / 30
In general, if we change the basis for a vector space V
from an old basis B = {u1 , u2 , . . . , un } to new basis
B ′ = {u′1 , u′2 , . . . , u′n }, then for each vector v ∈ V , the
old coordinate vector [v]B is related to the new
coordinate vector [v]B ′ by the equation
[v]B = P [v]B ′
where
P = [ [u′1 ]B | [u′2 ]B | · · · | [u′n ]B ]
P is called the transition matrix from B ′ to B. Also,
we shall denote it by PB ′ →B .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 10 / 30
Similarly, the transition matrix from B to B ′ is
Thus, we have
[v]B = PB ′ →B [v]B ′
and
[v]B ′ = PB→B ′ [v]B
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 11 / 30
Example
Consider the bases B = {u1 , u2 } and B ′ = {u′1 , u′2 },
where
1 0 3 2
u1 = , u2 = , u′1 = , u′2 =
0 1 4 3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 12 / 30
Solution:
1 To find the transition matrix PB→B ′ form B to B ′ ,
we have
PB→B ′ = [ [u1 ]B ′ | [u2 ]B ′ ]
To obtain [u1 ]B ′ and [u2 ]B ′ , we must solve
u1 = au′1 + bu′2
u2 = cu′1 + du′2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 13 / 30
Therefore
3 −2
[u1 ]B ′ = and [u2 ]B ′ =
−4 3
Thus,
3 −2
PB→B ′ =
−4 3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 14 / 30
To obtain [u′1 ]B and [u′2 ]B , we must solve
u′1 = au1 + bu2
u′2 = cu1 + du2
Since u1 and u2 are standard basis vector, it is easy to
note a = 3, b = 4, c = 2 and d = 3.
Therefore
3 2
[u1 ]B ′ = and [u2 ]B ′ =
4 3
Thus,
3 2
PB→B ′ =
4 3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 15 / 30
1 Since B is a standard basis, we have
w = 3u1 − 5u2
implies
3
[w]B =
−5
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 16 / 30
1 Since
[w]B ′ = PB→B ′ [w]B ,
we get
3 −2 3 19
[w]B ′ = =
−4 3 −5 −27
2 To obtain [w]B ′ directly, we have to solve
w = au′1 + bu′2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 17 / 30
3a + 2b = 3
4a + 3b = −5
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 18 / 30
Theorem. If P is the transition matrix from a basis B ′
to basis B for a finite dimensional vector space V , then
P is invertible and P −1 is the transition matrix from B
to B ′ .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 19 / 30
A Procedure for Computing PB→B ′ between bases of
Rn
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 20 / 30
Exercise
Consider the bases B = {u1 , u2 , u3 } and
B ′ = {u′1 , u′2 , u′3 } for R3 , where
−3 −3 1
u1 = 0 , u2 = 2 , u3 = 6
−3 −1 −1
−6 −2 −2
′ ′ ′
u1 = −6 , u2 = −6 , u3 = −3
0 4 7
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 21 / 30
1 Compute [w]B , where
−5
w = 8 .
−5
2 Compute [w]B ′ , using PB→B ′ .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 22 / 30
1 Step 1: Construct
−6 −2 −2 −3 −3 1
−6 −6 −3 0 2 6
0 4 7 −3 −1 −1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 23 / 30
Step 3: Thus,
3 3 1
4 4 12
PB→B ′ = − 43 17
− 12 17
− 12
2 2
0 3 3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 24 / 30
−3a − 3b + c = −5
2b + 6c = 8
−3a − b − c = −5
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 25 / 30
Thus, a = b = c = 1. Therefore, the coordinate vector
1
[w]B = 1 .
1
1 Since
[w]B ′ = PB→B ′ [w]B
3 3 1 19
4 4 12 1 12
[w]B ′ = − 43 − 17 17 43
− 12 1 = − 12
12
0 2 2 1 4
3 3 3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 26 / 30
Exercise
Consider the bases B = {p1 , p2 } and B ′ = {q1 , q2 },
where
p1 = 1 + 2x, p2 = 3 − x, q1 = 2 − 2x, q2 = 4 + 3x
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 27 / 30
Sol. Since P1 is isomorphic to R2 , any arbitrary element
a + bx of P1 can be written as (a, b) an element of R2 so
that
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 28 / 30
To find PB ′ →B , find RREF of
1 3 2 4
2 −1 −2 3
(Show that) RREF of the above matrix is
" #
1 0 − 47 137
.
0 1 7 75
6
Therefore, " #
− 47 13
7
PB ′ →B = 6 5
.
7 7
Similarly, workout for PB→B ′ .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 29 / 30
Exercise
Let
1 0 0
P =0 2 4
0 1 3
be the transition matrix from basis B to the basis
B ′ = {v1 = (1, 1, 1), v2 = (1, 1, 0), v3 = (0, 1, 0), } for
R3 . Then find B?
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 30 / 30
Matrices for General Linear
Transformations
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 31 / 30
Result: Let V and W be non-trivial vector spaces, with
dim(V ) = n and dim(W ) = m. B = {v1 , . . . , vn } and
B ′ = {w1 , . . . , wm } are ordered bases for V and W ,
respectively and T : V → W be a LT. Then there is a
unique m × n matrix A defined by
A = [ [T (v1 )]B ′ | [T (v2 )]B ′ | · · · |[T (vn )]B ′ ]
satisfies A[v]B = [T (v)]B ′ , for all v ∈ V .
We call A as the matrix for T relative to the bases
B and B ′ and it will be denoted by [T ]B ′ ,B .
Thus,
[T ]B ′ ,B = [ [T (v1 )]B ′ | [T (v2 )]B ′ | · · · | [T (vn )]B ′ ]
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 32 / 30
We call A as the matrix for T relative to the bases
B and B ′ and it will be denoted by [T ]B ′ ,B .
Thus,
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 33 / 30
In the case of linear operator, i.e. V = W , it is usual to
take B = B ′ when we construct matrix of T . In this case
the resulting matrix is called the matrix for T relative
to the basis B, i.e.,
satisfies
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 34 / 30
Example
Consider the LT T : P1 → P2 , given by
T (p(x)) = xp(x)
Sol.
1 0
[T ]B ′ ,B = 0 1/2 .
0 1/2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 35 / 30
We know that [T ]B ′ ,B = [ [T (v1 )]B ′ | [T (v2 )]B ′ ]
T (x) = x2 = 1(x2 ) + 0(x − 1) + 0(x + 1) so that
1
[T (v1 )]B ′ = 0 .
0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 36 / 30
Similarly, T (1) = x = 0(x2 ) + 12 (x − 1) + 12 (x + 1) implies
0
[T (v2 )]B ′ = 1/2 .
1/2
Hence,
1 0
[T ]B ′ ,B = 0 1/2 .
0 1/2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 37 / 30
Exercise: Let T : P2 → P2 be the linear transformation
defined by T (p(x)) = p(2x − 1). For B = {1, x, x2 },
compute [T ]B (matrix of T with respect to basis B).
Hence, compute T (3 + 2x − x2 ), using part 1.
1 −1 1
Sol. [T ]B = 0 2 −4 and
0 0 4
T (3 + 2x − x ) = 8x − 4x2 .
2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 38 / 30
Method for computing [T ]B ′ ,B : Let B = {v1 , . . . , vn }
and B ′ = {w1 , . . . , wm } be ordered bases for Rn and
Rm , respectively. Also, let T : Rn → Rm be a LT.
Compute T (vi ) for all i = 1, 2, . . . , n.
Form the augmented matrix
Find RREF of
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 39 / 30
It will be of the form
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 40 / 30
Exercise. Consider a LT
T : R2 → R2 given by
x1 x1 − x2
T =
x2 x1 + x2
and let B = {u1 , u2 } be the basis for which
1 0
u1 = , u2 =
−1 1
Compute [T ]B .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 41 / 30
Solution: Note that
2 −1
T (u1 ) = , T (u2 ) =
0 1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 43 / 30
Solution: Since T (5, 3) = 10x2 + 12x + 6 and
T (3, 2) = 7x2 + 7x + 4. Consider
3 −2 1 10 7
−2 2 −1 12 7
0 −1 1 6 4
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 44 / 30
RREF of the above matrix is
1 0 0 22 14
0 1 0 62 39
0 0 1 68 43
so that
22 14
[T ]B ′ ,B = 62 39
68 43
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 45 / 30
Exercise: Consider the LT T : R3 → R2 , given by
T (x, y, z) = (x + y, y − z). Compute [T ]B ′ ,B with
respect to bases B = ((1, 0, 1), (0, 1, 1), (1, 1, 1)) and
B ′ = ((1, 2), (−1, 1)).
0 1/3 2/3
Answer: [T ]B ′ ,B =
−1 −2/3 −4/3
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 46 / 30
Exercise: Consider the LT T : P3 → M22 , given by
3 2 −3a − 2c −b + 4d
T (ax + bx + cx + d) = .
4b − c + 3d −6a − b + 2d
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 47 / 30
Example: Let the matrix of LT T : P1 → P1 with
2 3
respect to basis B = (x + 1, x − 1) be . Find
−1 −2
the matrix of T with respect
to basis C = (x, 1).
2 3
Solution: Since [T ]B = , we have
−1 −2
T (x + 1) = 2(x + 1) − 1(x − 1) = x + 3
T (x − 1) = 3(x + 1) − 2(x − 1) = x + 5
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 48 / 30
a+b a−b
T (ax + b) = T (x + 1) + (x − 1)
2 2
a+b a−b
T (ax + b) = (x + 3) + (x + 5)
2 2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 49 / 30
Exercise: Let B = ((1, 2), (2, −1)) and
B ′ = ((1, 0), (0, 1)) be ordered bases for R2 . If
4 3
T : R2 → R2 be a LT such that [T ]B ′ ,B = . Find
2 −4
T (5, 5). Also, find T (x, y) for all (x, y) ∈ R2 .
Answer: T (5, 5) = (15, 2).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 50 / 30
Exercise: Let
B = ((1, 1, 0, 0), (0, 1, 1, 0), (0, 0, 1, 1), (0, 0, 0, 1)) and
B ′ = ((1, 1, 1), (1, 2, 3), (1, 0, 0))
be ordered bases for R4 and R3 , respectively.
If
1 1 0 0
T : R4 → R3 be a LT such that [T ]B ′ ,B = 0 1 1 0.
0 1 0 1
Find T ?
Answer:
T (x1 , x2 , x3 , x4 ) = (−2x1 + 3x2 + x4 , x2 + 2x3 , x2 + 3x3 ).
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 51 / 30
Theorem. Let U, V and W be finite dimensional vector
spaces with bases B, B ′′ and B ′ , respectively. Let
T1 : U → V and T2 : V → W are linear transformations.
Then
[T2 ◦ T1 ]B ′ ,B = [T2 ]B ′ ,B ′′ [T1 ]B ′′ ,B
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 52 / 30
Exercise
Let T1 : P1 → P2 be the linear transformation defined by
T1 (c0 + c1 x) = 2c0 − 3c1 x
and let T2 : P2 → P3 be the linear transformation defined
by
T2 (c0 + c1 x + c2 x2 ) = 3c0 x + 3c1 x2 + 3c2 x3 .
Let B = {1, x}, B ′′ = {1, x, x2 } and B ′ = {1, x, x2 , x3 }.
Then
Compute [T2 ]B ′ ,B ′′ and [T1 ]B ′′ ,B , and hence
Compute [T2 ◦ T1 ]B ′ ,B .
Compute T2 ◦ T1 .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 53 / 30
Answer:
0 0 0
2 0 3 0 0
[T1 ]B ′′ ,B = 0 −3 and [T2 ]B ′ ,B ′′ =
0
3 0
0 0
0 0 3
0 0
6 0
[T2 ◦ T1 ]B ′ ,B = [T2 ]B ′ ,B ′′ [T1 ]B ′′ ,B =
0 −9
0 0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 54 / 30
Since T2 ◦ T1 : P1 → P2 and let v = a + bx ∈ P1 . We
know that for any v ∈ P1 , we have
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 29, 2024 56 / 30
Exercise
Let the matrix of a linear transformation T : R3 → R3
relative to the ordered basis
0 1 1
B = {(1, 0, 0), (0, 1, 0), (0, 0, 1)} be 1 0 −1 .
−1 −1 0
Ax = λx
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 3/1
Example
For the matrix
−4 8 −12
A = 6 −6 12 .
6 −8 14
4 4
Note that A 3 = 2 3 implies λ = 2 is an
0 0
4
eigenvalue of A and x = 3 is an eigenvector
0
corresponding to 2.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 4/1
Q: Is the eigenvector corresponding to an eigenvalue
unique?
If x is an eigenvector of A corresponding to an
eigenvalue λ i.e. Ax = λx. Then for c ∈ R, we have
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 5/1
Question: How to find eigenvalues and eigenvector of a
given matrix?
Since Ax = λx = λIn x implies (λIn − A)x = 0. Thus,
eigenvector x corresponding to λ is a nontrivial solution
of the homogeneous system whose coefficient matrix is
λIn − A. Therefore, |λIn − A| = 0.
Theorem: Let A be n × n matrix. Then λ is an
eigenvalue of A if and only if
(λIn − A)x = 0.
p(λ) = |λIn − A|
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 7/1
Example
Find the characteristic polynomial and eigenvalues of
1 0 1
A = 0 2 −3
0 0 −5
λ−1 0 −1
p(λ) = |λI3 − A| = 0 λ−2 3
0 0 λ+5
Answer: λ1 = 0 and λ2 = 2
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 9/1
Theorem
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 10 / 1
Note that the eigenvectors of a matrix A corresponding
to an eigenvalue λ are the nonzero vectors in the null
space of the matrix λI − A.
Eλ = {x ∈ Rn : (λI − A)x = 0}
Verify that Eλ is a subspace of Rn .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 11 / 1
Example
Find all the eigenvalues and corresponding eigenspaces of
the matrices
4 0 −2
1 3
A= and B = 6 2 −6
0 1
4 0 −2
λ − 1 −3
p(λ) = |λI − A| = = (λ − 1)2 .
0 λ−1
which reduces to
0 1 0
.
0 0 0
So the associated system is x2 = 0. Since column 1 is
not a pivot column, x1 is an independent variable. Let
x1 = a ∈ R.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 13 / 1
Then
E1 = {(a, 0) | a ∈ R} = {a(1, 0) | a ∈ R}.
For the matrix B, the characteristic polynomial
λ−4 0 2
p(λ) = |λI − B| = −6 λ − 2 6 = λ(λ − 2)2 .
−4 0 λ+2
Hence, eigenvalues are λ1 = 0 and λ2 = 2.
To compute eigenspace E0 for λ = 0, we need to solve
the homogeneous system
(λI − B)x = 0 implies − Bx = 0.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 14 / 1
The augmented matrix is
−4 0 2 0
[−B|0] = −6 −2 6 0
−4 0 2 0
which reduces to
1 0 −1/2 0
0 1 −3/2 0 .
0 0 0 0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 15 / 1
The associated system is
1 3
x1 − x3 = 0 and x2 − x3 = 0
2 2
Since column 3 is not a pivot column, x3 is an
independent variable. Let x3 = 2c so that
x1 = c, x2 = 3c. Then
E0 = {(c, 3c, 2c) | c ∈ R} = {c(1, 3, 2) | c ∈ R}.
Note that
E0 = span{(1, 3, 2)} = span(B),
where B = {(1, 3, 2)}. Since, B is LI, it is a basis for E0 .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 16 / 1
To compute eigenspace E2 for λ = 2, we need to solve
the homogeneous system (λI − B)x = 0, i.e.,
(2I − B)x = 0. The augmented matrix is
−2 0 2 0
[2I − B|0] = −6 0 6 0
−4 0 4 0
which reduces to
1 0 −1 0
0 0 0 0 .
0 0 0 0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 17 / 1
The associated system is x1 − x3 = 0
Since columns 2 and 3 are not pivot columns, x2 and x3
are independent variables. Let x2 = b and x3 = c so that
x1 = c. Then
E2 = {(c, b, c) | b, c ∈ R}
= {b(0, 1, 0) + c(1, 0, 1) | b, c ∈ R}
= span(B), where B = {(0, 1, 0), (1, 0, 1)}.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 18 / 1
Theorem: Let A be a square matrix with eigenvalue λ
and corresponding eigenvector x.
If λ is an eigenvalue of a matrix A, then for any
positive integer n, λn is an eigenvalue of An with
corresponding eigenvector x.
If A is nonsingular, then 1/λ is an eigenvalue of
A−1 with corresponding eigenvector x.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 19 / 1
Example
1
Let A be a 2 × 2 matrix with eigenvectors v1 =
−1
1
and v2 = corresponding to eigenvalues
2
5
λ1 = −1, λ2 = 2. Let x = . Find A10 x without
1
computing the matrix A.
Solution:
2051
A10 x =
4093 2×1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 20 / 1
Exercise
Find all the eigenvalues and an associated eigenvector of
the A25 , where
−1 −2 −2
A= 1 2 1
−1 −1 0
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 21 / 1
For the eigenvalue −1, the basis for E−1 is:
2
−1
1
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 22 / 1
Exercise
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 23 / 1
Theorem 1 A square matrix A is invertible if and only if
λ = 0 is not an eigenvalue of A.
det(A) = λ1 λ2 · · · λn
and
Trace(A) = λ1 + λ2 + . . . + λn .
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 24 / 1
Proof of Theorem 2
a11 · · · a1n
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 27 / 1
Exercises
3 2
Find the eigenvalue and eigenspaces of
5 0
Hence, find the eigenvalues and eigenspaces of A−1 ,
A − 2I, and A + 2I.
A and AT have the same characteristic polynomial.
Do A and AT have the same eigenvectors in
general?
If x is an eigenvector of A corresponding to an
eigenvalue λ, then for a scalar c, show that x is an
eigenvector of A − cI with corresponding eigenvalue
λ − c.
Gaurav Dwivedi (BITS Pilani) MATH F112 (MATHEMATICS-II) February 24, 2024 28 / 1