La PDF
La PDF
La PDF
DR
AF
T
Contents
1 Introduction to Matrices 5
1.1 Definition of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.1 Special Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Operations on Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2.1 Multiplication of Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2.2 Inverse of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.3 Some More Special Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.3.1 Submatrix of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.1.1 Elementary Row Operations . . . . . . . . . . . . . . . . . . . . . . . . . . 30
DR
3 Vector Spaces 63
3.1 Vector Spaces: Definition and Examples . . . . . . . . . . . . . . . . . . . . . . . 63
3.1.1 Subspaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.1.2 Linear Span . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
3.2 Linear Independence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
3.2.1 Basic Results on Linear Independence . . . . . . . . . . . . . . . . . . . . 77
3.2.2 Application to Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
3.2.3 Linear Independence and Uniqueness of Linear Combination . . . . . . . 80
3.3 Basis of a Vector Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
3.3.1 Main Results associated with Bases . . . . . . . . . . . . . . . . . . . . . 84
3
4 CONTENTS
QR Decomposition∗ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
AF
5.2.1
5.3 Orthogonal Projections and Applications . . . . . . . . . . . . . . . . . . . . . . . 142
DR
7 Appendix 189
7.1 Uniqueness of RREF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
7.2 Permutation/Symmetric Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
7.3 Properties of Determinant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
7.4 Dimension of W1 + W2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
CONTENTS 5
T
AF
DR
6 CONTENTS
T
AF
DR
Chapter 1
Introduction to Matrices
The horizontal arrays of a matrix are called its rows and the vertical arrays are called its
columns. Let A be a matrix having m rows and n columns. Then, A is said to have order
m × n or is called a matrix of size m × n and can be represented in either of the following forms:
a11 a12 · · · a1n a11 a12 ··· a1n
T
a21 a22 · · · a2n a21 a22 · · · a2n
AF
A= . or A = . ,
.. .. . . .. . .. .. ..
. . . . . . .
DR
am1 am2 · · · amn am1 am2 · · · amn
where aij is the entry at the intersection of the ith row and j th column. One writes A ∈ Mm,n (F)
to mean that A is an m × n matrix with entries from the set F, or in short A = [aij ]. We write
A[i, :] to denote the i-th row of A, A[:, j] to denote the j-th column of A and aij or (A)ij , for
the (i, j)-th entry of A. " # " #
1 3+i 7 7
For example, if A = then A[1, :] = [1 3 + i 7], A[:, 3] = and
4 5 6 − 5i 6 − 5i
a22 = 5. Sometimes commas are inserted to differentiate between entries of a row vector. Thus,
A[1, :] may also be written as [1, 3 + i, 7]. A matrix having only one column is called a column
vector and a matrix with only one row is called a row vector. All our vectors will be column
vectors and will be represented by bold letters.
Definition 1.1.3. Two matrices A = [aij ], B = [bij ] ∈ Mm,n (C) are said to be equal if aij = bij ,
for each i = 1, 2, . . . , m and j = 1, 2, . . . , n.
In other words, two matrices are said to be equal if they have the same order and their
corresponding entries are equal.
7
8 CHAPTER 1. INTRODUCTION TO MATRICES
3. Let A ∈ Mn (F).
(a) Then, the entries a11 , a22 , . . . , ann are called the diagonal entries of A. They consti-
tute the principal diagonal of A.
5. For 1 ≤ i ≤ n, define ei = In [:, i], a matrix of order n × 1. Then the column matrices
e1 , . . . , en are called the standard unit vectors or the standard basis of Mn,1 (C) or
Cn . The dependence of n is omitted as it is understood
from the context. For example,
" # 1
1
if e1 ∈ C then, e1 = and if e1 ∈ C then e1 =
2 3
0.
0
0
1.2. OPERATIONS ON MATRICES 9
2. the conjugate transpose of A, denoted A∗ , is an n × m matrix with (A∗ )ij = aji (the
complex-conjugate of aji ), for all i, j.
" # " # " #
1 4+i 1 0 1 0
If A = then AT = and A∗ = . Note that A∗ 6= AT .
0 1−i 4+i 1−i 4−i 1+i
Note that if x is a column vector then xT and x∗ are row vectors.
Proof. Let A = [aij ], A∗ = [bij ] and (A∗ )∗ = [cij ]. Clearly, the order of A and (A∗ )∗ is the
same. Also, by definition cij = bji = aij = aij for all i, j.
2. Then, the product of k ∈ C with A, denoted kA, equals kA = [kaij ] = [aij k] = Ak.
T
AF
0 1 2 1 1 7 1 2 9 0 5 10
1. A + B = B + A (commutativity).
2. (A + B) + C = A + (B + C) (associativity).
3. k(`A) = (k`)A.
4. (k + `)A = kA + `A.
as complex numbers commute. The other parts are left for the reader.
(a) AT = A.
1 −1 2
T
−1
Ans: A = 3 5 =A
2 5 −1
(b) AT = −A.
0 −1 2
T
Ans: A =
1 0 = −A .
5
−2 −5 0
2. Find a few non zero, non-identity matrices A with complex entries satisfying
(a) A∗ = A.
(b) A∗ = −A.
−1 + i 2 − i
1 0 −1 + i 2 − i
= A∗ , A = 1 + i = −A∗ .
Ans: A =
−1 − i 3 i 0 −i
2+i −i −1 −2 − i −i 0
1 + i −1 " #
2 3 −1 ∗ ∗
4. Let A =
2 3 and B = 1 1 − i 2 . Compute A + B and B + A .
i 1
Definition 1.2.7. Let A = [aij ] ∈ Mm,n (C) and B = [bij ] ∈ Mn,r (C). Then, the product of A
and B, denoted AB, is a matrix C = [cij ] ∈ Mm,r (C) with
n
X
cij = aik bkj = ai1 b1j + ai2 b2j + · · · + ain bnj , 1 ≤ i ≤ m, 1 ≤ j ≤ r.
k=1
1.2. OPERATIONS ON MATRICES 11
3
P
(AB)[:, k] = A[:, j] bjk for k = 2, 3, 4.
DR
j=1
1. In the above example, while AB is defined, the product BA is not defined. However, for
square matrices A and B of the same order, both the product AB and BA are defined.
4. Let A ∈ Mm,n (C) and B ∈ Mn,p (C). Then (AB)[i, :] = A[i, :]B = ai1 B[1, :]+· · ·+ain B[n, :]
and (AB)[:, j] = AB[:, j] = A[:, 1]b1j + · · · + A[:, n]bnj .
1 2 0 1 0 −1
Example 1.2.9. Let A = 1 0 1 and B = 0 0
. Use the row/column method
1
0 −1 1 0 −1 1
.. . . .
AF
xn y1 xn y2 · · · xn yn
xn x1 xn x2 · · · |xn | 2
DR
|a1n |2 = |a11 |2 . Hence, a12 = 0, . . . , a1n = 0. Now, use (A∗ A)22 = (AA∗ )22 to conclude
a23 = 0, . . . , a2n = 0 and so on.
Definition 1.2.11. Two square matrices A and B are said to commute if AB = BA.
Remark 1.2.12. Note that if A is a square matrix of order n and if B is a scalar matrix of
order n then "AB =# BA. In general,
" # the matrix product is not
" commutative.
# " # For example,
1 1 1 0 2 0 1 1
consider A = and B = . Then, verify that AB = 6= = BA.
0 0 1 0 0 0 1 1
Theorem 1.2.13. Let A ∈ Mm,n (C), B ∈ Mn,p (C) and C ∈ Mp,q (C).
n
X n
X p
X p
n X
X
A(BC) ij = aik BC kj
= aik bk` c`j = aik bk` c`j
k=1 k=1 `=1 k=1 `=1
Xn Xp p
X Xn X T
= aik bk` c`j = aik bk` c`j = AB c = (AB)C
i` `j ij
.
k=1 `=1 `=1 k=1 `=1
Using a similar argument, the next part follows. The other parts are left for the reader.
2. Let A ∈ Mm,n (C). If Ax = 0 for all x ∈ Mn,1 (C) then A = 0, the zero matrix.
Ans: Take x = ei . Then 0 = Ax = Aei = A[:, i]. Hence the i-th column of A is the zero
vector. Thus, as we vary i in {1, 2, . . . , n}, we see that all the columns of A are zero.
3. Let A, B ∈ Mm,n (C). If Ax = Bx, for all x ∈ Mn,1 (C) then prove that A = B.
Ans: Take C = A − B. Now use (2) above to show that C = 0 and conclude that A = B.
Lemma 1.2.16. Let A ∈ Mn (C). If there exist B, C ∈ Mn (C) such that AB = In and CA = In
DR
then B = C, i.e., If A has a left inverse and a right inverse then they are equal.
Remark 1.2.17. Lemma 1.2.16 implies that whenever A is invertible, the inverse is unique.
Thus, we denote the inverse of A by A−1 . That is, AA−1 = A−1 A = I.
" #
a b
Example 1.2.18. 1. Let A = .
c d
" #
d −b
(a) If ad − bc 6= 0. Then, verify that A−1 = 1
ad−bc .
a −c
" # " #
2 3 7 −3
(b) In particular, the inverse of equals 12 .
4 7 −4 2
(c) If ad − bc = 0 then prove that either A[1, :] = 0∗ or A[:, 1] = 0 or A[2, :] = αA[1, :] or
A[:, 2] = αA[:, 1] for some α ∈ C. Hence, prove that A is not invertible.
" # " # " #
1 2 1 0 4 2
(d) Matrices , and do not have inverses. Justify your answer.
0 0 4 0 6 3
1 2 3 −2 0 1
. Then A−1 = 0 (verify AA−1 = A−1 A = I3 ).
2. Let A = 2 3 4 3 −2
3 4 6 1 −2 1
16 CHAPTER 1. INTRODUCTION TO MATRICES
1 1 1 1 1 2
3. Prove that the matrices A =
1 1 1 and B = 1 0 1 are not invertible.
1 1 1 0 1 1
Solution: Suppose there exists C such that CA = AC = I. Then, using matrix product
A[1, :]C = (AC)[1, :] = I[1, :] = [1, 0, 0] and A[2, :]C = (AC)[2, :] = I[2, :] = [0, 1, 0].
DB[:, 1] = (DB)[:, 1] = I[:, 1], DB[:, 2] = (DB)[:, 2] = I[:, 2] and DB[:, 3] = I[:, 3].
But B[:, 3] = B[:, 1] + B[:, 2] and hence I[:, 3] = I[:, 1] + I[:, 2], a contradiction.
1. (A−1 )−1 = A.
2. (AB)−1 = B −1 A−1 .
" #
1 2
5. Determine A that satisfies (I + 3A)−1 = .
2 1
" # " #!−1 " #
−1 4 −2 −1 1 2 −1 1 −2
as (I +3A) = (I + 3A)−1
Ans: A = = = .
9 −2 4 2 1 3 −2 1
−2 0 1
6. Determine A that satisfies (I − A)−1 =
0 3 −2 . [See Example 1.2.18.2].
1 −2 1
1 2 3 1 2 3 0 −2 −3
Ans: Example 1.2.18.2 gives I −A = 2 3 4 ⇒ A = I − 2 3 4 = −2 −2 −4.
3 4 6 3 4 6 −3 −4 −5
1 2
7. Let A be an invertible matrix satisfying A3 + A − 2I = 0. Then A−1 =
A +I .
2
Ans: As A is invertible, multiplying by A−1 gives A2 + I − 2A−1 = 0. Hence, the result.
8. Let A = [aij ] be an invertible matrix and B = [pi−j aij ], for some p ∈ C, p 6= 0. Then
B −1 = [pi−j (A−1 )ij ].
Ans: Note that B = DAD−1 , where D = diag(p, p2 , . . . , pn ) is a diagonal matrix. As
p 6= 0, D is invertible. Hence B −1 is invertible and B −1 = (DAD−1 )−1 = DA−1 D−1 .
18 CHAPTER 1. INTRODUCTION TO MATRICES
Then, the matrices ek` for 1 ≤ k ≤ m and 1 ≤ ` ≤ n are called the standard basis
elements for Mm,n (C).
" " # # " # " #
1 0 0
1 h i 0 1 0 1 h i
So, if ek` ∈ M2,3 (C) then e11 = = 1 0 0 , e12 = = 0 1 0
0 0 0 0 0 0 0 0
" # " #
0 0 0 0 h i
and e22 = = 0 1 0 .
0 1 0 1
In particular, if eij ∈ Mn (C) then eij = ei eTj = ei e∗j , for 1 ≤ i, j ≤ n.
" #
1 1 1
AF
(d) A is said to be a permutation matrix if A has exactly one non-zero entry, "namely
#
0 1
1, in each row and column. For example, In for each positive integer n, ,
1 0
0 1 0 0 0 1 0 1 0
0 0 1, 0 1 0 and 1 0 0 are permutation matrices. Verify that per-
1 0 0 1 0 0 0 0 1
mutation matrices are Orthogonal matrices.
6. An idempotent matrix which is also Hermitian is called a projection matrix. For example,
if u ∈ Mn,1 (C) is a unit vector then A = uu∗ is a Hermitian, idempotent matrix. Thus A
is a projection matrix.
x1 + 2x2 − x3 x1 + 2x2 − x3
Ax = (uuT )x = u(uT x) = √ u= [1, 2, −1]T .
6 6
7. Fix a unit vector a ∈ Mn,1 (R) and let A = 2aaT − In . Then, verify that A ∈ Mn (R) and
Ay = 2(aT y)a − y, for all y ∈ Rn . This matrix is called the reflection matrix about the
line containing the points 0 and a.
Exercise 1.3.2. 1. Consider the matrices eij ∈ Mn (C) for 1 ≤ i, j, ≤ n. Is e12 e11 = e11 e12 ?
What about e12 e22 and e22 e12 ?
Ans: Note e11 = e1 eT1 and e12 = e1 eT2 . Thus e12 e11 = (e1 eT2 )(e1 eT1 ) = e1 (eT2 e1 )eT1 = 0
as eT2 e1 = 0. Where as e11 e12 = (e1 eT1 )(e1 eT2 ) = e1 (eT1 e1 )eT2 = e1 eT2 = e12 .
2. Let {u1 , u2 , u3 } be three vectors in R3 such that u∗i ui = 1, for 1 ≤ i ≤ 3, and u∗i uj = 0
whenever i 6= j. Prove the following.
3. Let A, B ∈ Mn (C) be two unitary matrices. Then both AB and BA are unitary matrices.
5. Let A ∈ Mn (C). If x∗ Ax ∈ R for every x ∈ Mn,1 (C) then A is a Hermitian matrix. [Hint:
Use ej , ej + ek and ej + iek of Mn,1 (C) for x.]
Ans: Taking x = ei gives aii = e∗i Aei = x∗ Ax ∈ R. So, aii ∈ R.
Taking x = ei + iej , gives x∗ Ax = aii − iaji + iaij + ajj , a real number. As aii , ajj ∈ R,
aij − aji is a purely imaginary number, i.e., they have the same real part. Similarly, taking
x = ei + ej gives aij + aji ∈ R, i.e., they have opposite imaginary parts. So aij = aji .
T
6. Let A and B be Hermitian matrices. Then, prove that AB is Hermitian if and only if
AF
AB = BA.
DR
10. Let A be a nilpotent matrix. Prove that there exists a matrix B such that B(I + A) = I =
(I + A)B. [If Ak = 0 then look at I − A + A2 − · · · + (−1)k−1 Ak−1 ].
Ans: Verify (I + A)(I − A + · · · + (−1)k−1 Ak−1 ) = (I − A + · · · + (−1)k−1 Ak−1 )(I + A) = I.
1 0 0 1 0 0
0 cos θ − sin θ and B = 0 cos θ
11. Let A = sin θ, for θ ∈ [−π, π). Are they
0 sin θ cos θ 0 sin θ − cos θ
orthogonal?
1.3. SOME MORE SPECIAL MATRICES 21
Definition 1.3.3. For k ∈ N, let [k] = {1, . . . , k}. Also, let A ∈ Mm×n (C).
1. Then, a matrix obtained by deleting some of the rows and/or columns of A is said to be
a submatrix of A.
2. If S ⊆ [m] and T ⊆ [n] then by A(S|T) , we denote the submatrix obtained from A by
deleting the rows with indices in S and columns with indices in T . By A[S, T ], we mean
A(S c |T c ), where S c = [m] \ S and T c = [n] \ T . Whenever, S or T consist of a single
element, then we just write the element. If S = [m], then A[S, T ] = A[:, T ] and if T = [n]
then A[S, T ] = A[S, :] which matches with our notation in Definition 1.1.1.
3. If m = n, the submatrix A[S, S] is called a principal submatrix of A.
" # " #
1 4 5 1 5
Example 1.3.4. 1. Let A = . Then, A[{1, 2}, {1, 3}] = A[:, {1, 3}] = ,
0 1 2 0 2
" #
1
A[1, 1] = [1], A[2, 3] = [2], A[{1, 2}, 1] = A[:, 1] = , A[1, {1, 3}] = [1 5] and A are a few
0
" # " #
1 4 1 4
submatrices of A. But the matrices and are not submatrices of A.
1 0 0 2
T
1 2 3
AF
" #
1 3
2. Take A = 5 6 7, S = {1, 3} and T = {2, 3}. Then, A[S, S] = 9 7 , A[T, T ] =
DR
9 8 7
" #
6 7 h i h i
, A(S | S) = 6 and A(T | T ) = 1 are principal submatrices of A.
8 7
Let A ∈ Mn,m (C) and B ∈ Mm,p (C). Then the product AB" is
# defined. Suppose r < m.
H
Then A and B can be decomposed as A = [P Q] and B = , where P ∈ Mn,r (C) and
K
H ∈ Mr,p (C) so that AB = P H + QK. This is proved next.
AB = P H + QK.
Proof. Verify that the matrix products P H and QK are valid. Further, their sum is defined
as P H, QK ∈ Mn,p (C). Now, let P = [Pij ], Q = [Qij ], H = [Hij ], and K = [Kij ]. Then, for
1 ≤ i ≤ n and 1 ≤ j ≤ p, we have
m
X r
X m
X r
X m
X
(AB)ij = aik bkj = aik bkj + aik bkj = Pik Hkj + Qik Kkj
k=1 k=1 k=r+1 k=1 k=r+1
= (P H)ij + (QK)ij = (P H + QK)ij .
Remark 1.3.6. Theorem 1.3.5 is very useful due to the following reasons:
2. The matrices P, Q, H and K can be further partitioned so as to form blocks that are either
identity or zero or matrices that have certain nice properties. So, such a partition may
be quite useful during different matrix operations. Examples of such partitions appear
throughout the notes.
3. Suppose one wants to prove a result for a square matrix A. If we want to prove it using
induction then we can prove it for the 1 × 1 matrix (the initial step of induction). Then
assume the result to hold for all k × k submatrices
" # A or just the first k × k principal
of
B x
submatrix of A. At the next step write A = , where B is a k × k matrix. Then
xT a
the result holds for B and then one can proceed to prove it for A.
(c) Let α = θ and compute y = (AB)x and y = (BA)x. Do they correspond to reflec-
tion? If yes, then about which line(s)?
" # " #
cos(3θ) sin(3θ) cos(θ) sin(θ)
Ans: Note AB = and BA = . So, the lines
sin(3θ) − cos(3θ) sin(θ) − cos(θ)
3θ θ
are y = tan x and y = tan x.
2 2
(d) Further, if y = Cx gives the counter-clockwise rotation through β and y = Dx gives
the reflections about the line y = tan(δ) x. Then prove that
i. AC = CA and y = (AC)x gives " the counter-clockwise rotation
# through α + β.
cos(α + β) − sin(α + β)
Ans: Verify that AC = CA =
sin(α + β) cos(α + β)
ii. y = (BD)x and
" y = (DB)x give rotations. # Which"angles do they represent? #
cos 2(θ − δ) − sin 2(θ − δ) cos 2(δ − θ) − sin 2(δ − θ)
Ans: BD = , DB = .
sin 2(θ − δ) cos 2(θ − δ) sin 2(δ − θ) cos 2(δ − θ)
.
.
AF
j-th .
↓ 0
DR
A[:, i]eTj = [0, · · · , 0, A[:, i], 0, · · · , 0] and ei A[j, :] = A[j, :] ←i-th .
0
.
.
.
0
Hence aij = 0, if i 6= j and ajj = aii .
5. For An×n = [aij ], the trace of A, denoted tr(A), is defined by tr(A) = a11 + a22 + · · · + ann .
24 CHAPTER 1. INTRODUCTION TO MATRICES
" # " #
3 2 4 −3
(a) Compute tr(A) for A = and A = .
2 2 −5 1
Ans: 3 + 2 = 5 and 4 + 1 = 5.
" # " # " # " # " #
1 1 1 1 1 1
(b) Let A be a matrix with A =2 and A =3 . If B = then
2 2 −2 −2 2 −2
compute tr(AB). What about tr(A)?
" # " #
2 3 a b
Ans: Verify AB = . So tr(AB) = −4. Let A = . Then, the
4 −6 c d
given conditions imply a + 2b = 2, c + 2d = 4, a − 2b = 3 and c − 2d = −6. Thus
5 5
tr(A) = a + d = + = 5.
2 2
(c) Let A and B be two square matrices of the same order. Then
(d) Does there exist matrices A, B ∈ Mn (C) such that AB − BA = cI, for some c 6= 0?
Ans: No. Note that tr(AB − BA) = 0, where as, for c 6= 0, tr(c I) = nc 6= 0.
T
AF
(a) Verify that J = 11T , where 1 is a column vector having all entries 1.
(c) Also, for any α1 , α2 , β1 , β2 ∈ R, verify that there exist α3 , β3 ∈ R such that
(α1 In + β1 J) · (α2 In + β2 J) = α3 In + β3 J.
(d) Let α, β ∈ R such that α 6= 0 and α + nβ 6= 0. Now, define A = αIn + βJ. Then,
use the above to prove that A is invertible.
Ans: J 2 = (11T )(11T ) = 1(1T 1)1T = n11T = nJ.
Note that in part (6c), α3 = α1 α2 and β3 = α1 β2 + α2 β1 + nβ1 β2 . So, using the third
1 β
part B = I − J is the inverse of A.
α α(α + nβ)
" #
1 2 3
7. Let A = .
2 1 1
(b) What can you say about the number of such matrices? Give reasons for your answer.
(c) Does there exist a matrix C such that CA = I3 ? Give reasons for your answer.
1.3. SOME MORE SPECIAL MATRICES 25
−1 + k 2+z
1
Ans: Take G = 2 − 5k −1 − 5z , for k, z arbitrary. Then AG = I2 . Does there
3
3k 3z
−8/35 3/5
exists a value of z for which G =
1/7 0 ? Note that for this choice of G, one has
11/35 −1/5
AGA = A, GAG = G, (AG)T = AG and (GA)T = GA. The matrices G which satisfy the
above are called pseudo inverse of A.
" #
P Q
8. Let A = . If P, Q and R are Hermitian, is the matrix A Hermitian?
Q R
" # " #
∗ P ∗ Q∗ n P Q
Ans: Yes, as A = = .
Q∗ R∗ Q R
" #
A11 x
9. Let A = , where A11 ∈ Mn (C) is invertible and c ∈ C.
y∗ c
(a) If p = c − y∗ A−1
11 x is non zero, then verify that
" # " #
A−1
11 0 1 A−111 x
h i
B= + y∗ A−1
11 −1
0 0 p −1
T
is the inverse of A.
AF
0 −1 2 0 −1 2
(b) Use the above to find the inverse of
1 4
1 and 3
1 .
4
−2 1 1 −2 5 −3
" # " #" #
1 1 h i 1 1 2
Ans: A−1
11 = , p = 1 − −2 1 = 15. So, the inverse equals
−1 0 −1 0 4
1 1 0 6 h 1 1 0 −18 −12 −6
−1 0 0 + 1 −2 −3 −2 −1 = −1 0 0 + 1
i
15 15 6 2 2
0 0 0 −1 0 0 0 3 2 1
−1/5 1/5 −2/5 −23/33 7/33 −2/11
=−3/5 4/15 2/15 . For the second matrix the inverse is 1/33 4/33 2/11
1/5 2/15 1/15 17/33 2/33 1/11
11. Let A ∈ Mn (R) be an invertible matrix and let x, y ∈ Mn,1 (R). Also, let β ∈ R such that
α = 1 + βyT A−1 x 6= 0. Then, verify the famous Shermon-Morrison formula
β −1 T −1
(A + βxyT )−1 = A−1 − A xy A .
α
This formula gives the information about the inverse when an invertible matrix is modified
by a rank (see Definition 2.3.1) one matrix.
Ans: Just multiply and verify.
12. Suppose the matrices B and C are invertible and the involved partitioned products are
defined, then verify that that
" #−1 " #
A B 0 C −1
= .
C 0 B −1 −B −1 AC −1
13. Let A ∈ Mm,n (C). Then, a matrix G ∈ Mn,m (C) is called a generalized inverse (for
short, g-inverse) of A if AGA
" = A. # For example, a generalized inverse of the matrix
1 − 2α
A = [1, 2] is a matrix G = , for all α ∈ R. A generalized inverse G is called a
α
pseudo inverse or a Moore-Penrose inverse if GAG = G and the matrices AG and
T
2
GA are symmetric. Check that for α = the matrix G is a pseudo inverse of A. Further,
AF
5
2
DR
among all the g-inverses, the inverse with the least euclidean norm also has α = .
5
1.4 Summary
In this chapter, we started with the definition of a matrix and came across lots of examples.
We recall these examples as they will be used in later chapters to relate different ideas:
3. Triangular matrices.
4. Hermitian/Symmetric matrices.
5. Skew-Hermitian/skew-symmetric matrices.
6. Unitary/Orthogonal matrices.
7. Idempotent matrices.
8. Nilpotent matrices.
We also learnt product of two matrices. Even though it seemed complicated, it basically
tells that multiplying by a matrix on the
1.4. SUMMARY 27
The matrix multiplication is not commutative. We also defined the inverse of a matrix. Further,
there were exercises that informs us that the rows and columns of invertible matrices cannot
have certain properties.
T
AF
DR
28 CHAPTER 1. INTRODUCTION TO MATRICES
T
AF
DR
Chapter 2
This chapter starts with understanding the effect of elementary row operations on the solution
set of a system of linear equations. This helps us to conclusively give necessary and sufficient
conditions for a system of linear equations to have either a unique solution, no solution or an
infinite number of solutions.
2.1 Introduction
We start this section with our understanding of the system of linear equations in at most 2
T
variables/unknowns.
AF
DR
2. Recall that the linear system ax + by = c for (a, b) 6= (0, 0), in the variables x and y,
represents a line in R2 . So, let us consider the points of intersection of the two lines
a1 x + b1 y = c1 , a2 x + b2 y = c2 , (2.1.1)
where a1 , a2 , b1 , b2 , c1 , c2 ∈ R with (a1 , b1 ), (a2 , b2 ) 6= (0, 0) (see Figure 2.1 for illustration
of different cases).
(a) Unique
" # Solution
" # (a1 b2 − a2 b1 6= 0): The linear system x − y = 3 and 2x + 3y = 11
x 4
has = as the unique solution.
y 1
(b) No Solution (a1 b2 − a2 b1 = 0 but a1 c2 − a2 c1 6= 0): The linear system x + 2y = 1
and 2x + 4y = 3 represent a pair of parallel lines which have no point of intersection.
29
30 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
❵✶
❵✶
❵✷ ❵✶ ✄☎❞ ❵✷
✝ ❵✷
◆♦ ❙♦❧ t✐♦♥ ■♥☞♥✐t✂ ◆ ♠❜✂✁ ♦❢ ❙♦❧ t✐♦♥s ❯♥✐✞ ✂ ❙♦❧ t✐♦♥✿ ■♥t✂✁s✂❝t✐♥❣ ▲✐♥✂s
P❛✐✁ ♦❢ P❛✁❛❧❧✂❧ ❧✐♥✂s ❈♦✐♥❝✐✆✂♥t ▲✐♥✂s ✟ ✿ P♦✐♥t ♦❢ ■♥t✂✁s✂❝t✐♦♥
ii. (a, b, c) = (0, 0, 0) then ax+by = c has infinite number of solutions, namely
whole of R2 .
DR
Example 2.1.2. Observe the following of the linear system in Example 2.1.1.2a.
" #
4
1. corresponds to the point of intersection of the corresponding two lines.
1
" #
1 −1
2. Using matrix multiplication, the given system equals Ax = b, where A = ,
2 3
" # " # " #" # " #
x 3 3 1 3 4
x= and b = . So, the solution is x = A−1 b = 15 = .
y 11 −2 1 11 1
" # " # " #
1 −1 3
3. Re-writing Ax = b as x+ y= gives us 4 · (1, 2)T + 1 · (−1, 3)T = (3, 11)T .
2 3 11
This corresponds to addition of vectors in the Euclidean plane.
Thus, there are three ways of looking at the linear system Ax = b, where, as the name suggests,
one of the ways is looking at the point of intersection of planes, the other is the vector sum
approach and the third is the matrix multiplication approach. We will see that all the three
approaches are fundamental to the understanding of linear algebra.
Remark 2.1.5. Consider the linear system Ax = b, where A ∈ Mm,n (C), b ∈ Mm,1 (C) and
x ∈ Mn,1 (C). If [A b] is the augmented matrix and xT = [x1 , . . . , xn ] then,
3. for i = 1, 2, . . . , m, the ith equation corresponds to the row ([A b])[i, :].
Definition 2.1.7. Consider a linear system Ax = b. Then, this linear system is called consis-
tent if it admits a solution and is called inconsistent if it admits no solution. For example,
the homogeneous system Ax = 0 is always consistent as 0 is a solution whereas, verify that the
system x + y = 2, 2x + 2y = 3 is inconsistent.
Definition 2.1.8. Consider a linear system Ax = b. Then, the corresponding linear system
Ax = 0 is called the associated homogeneous system. 0 is always a solution of the associated
homogeneous system.
The readers are advised to supply the proof of the next theorem that gives information
about the solution set of a homogeneous system.
1. Then, x = 0, the zero vector, is always a solution, called the trivial solution.
32 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
Ans: Since there are two intersecting (system is consistent) planes in R3 they will intersect
in a line. So, infinite number of solutions.
T
AF
2. Give a linear system of 3 equations in 2 variables such that the system is inconsistent
whereas it has 2 equations which form a consistent system.
DR
Ans: x + y = 2, x + 2y = 3, 2x + 3y = 4.
3. Give a linear system of 4 equations in 3 variables such that the system is inconsistent
whereas it has three equations which form a consistent system.
Ans: x + y + z = 3, x + 2y + 3z = 6, 2x + 3y + 4z = 4, 2x + 2y + z = 5.
A system of linear equations can be solved by people differently. But, the final solution remains
the same. In this section, we use a systematic way to solve any linear system which is popularly
known as the Guass Elimination method.
1. Interchange 1-st and 2-nd equations (interchange B0 [1, :] and B0 [2, :] to get B1 ).
2x + 3z = 5 2 0 3 5
y+z =2 B1 = 0 1 1 2 .
x+y+z =3 1 1 1 3
1 1
2. In the new system, multiply 1-st equation by 2 (multiply B1 [1, :] by to get B2 ).
2
x + 32 z = 5
2 1 0 32 5
2
y+z =2 B2 =
0 1 1 .
2
x+y+z =3 1 1 1 3
3. In the new system, replace 3-rd equation by 3-rd equation minus 1-st equation (replace
B2 [3, :] by B2 [3, :] − B2 [1, :] to get B3 ).
x + 23 z = 5
2 1 0 23 5
2
T
y+z =2 B3 =
0 1 1 .
2
AF
y − 12 z = 1
2 0 1 − 21 1
2
DR
4. In the new system, replace 3-rd equation by 3-rd equation minus 2-nd equation (replace
B3 [3, :] by B3 [3, :] − B3 [2, :] to get B4 ).
x + 23 z = 5
2 1 0 23 5
2
y+z =2 B4 =
0 1 1 2 .
− 32 z = − 32 0 0 − 32 3
−2
−2 −2
5. In the new system, multiply 3-rd equation by (multiply B4 [3, :] by to get B5 ).
3 3
x + 32 z = 5
2 1 0 23 52
y+z =2 B5 =
0 1 1 2 .
z =1 0 0 1 1
The last equation gives z = 1. Using this, the second equation gives y = 1. Finally, the
first equation gives x = 1. Hence, the solution set is {[x, y, z]T | [x, y, z] = [1, 1, 1]}, a unique
solution.
In Example 2.1.12, observe how each operation on the linear system corresponds to a similar
operation on the rows of the augmented matrix. We use this idea to define elementary row
operations and the equivalence of two linear systems.
Definition 2.1.13. Let A ∈ Mm,n (C). Then, the elementary row operations are
34 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
1. Eij : Interchange the i-th and j-th rows, namely, interchange A[i, :] and A[j, :].
3. Eij (c) for c 6= 0: Replace the i-th row by i-th row plus c-times the j-th row, namely,
replace A[i, :] by A[i, :] + cA[j, :].
Definition 2.1.14. Two matrices are said to be row equivalent if one can be obtained from
the other by a finite number of elementary row operations.
Definition 2.1.15. The linear systems Ax = b and Cx = d are said to be row equivalent if
their respective augmented matrices, [A b] and [C d], are row equivalent.
Thus, note that the linear systems at each step in Example 2.1.12 are row equivalent to each
other. We now prove that the solution set of two row equivalent linear systems are same.
Proof. We prove the result for the elementary row operation Ejk (c) with c 6= 0. The reader is
advised to prove the result for the other two elementary operations.
In this case, the systems Ax = b and Cx = d vary only in the j th equation. So, we
need to show that y satisfies the j th equation of Ax = b if and only if y satisfies the j th
T
1 n
aj1 α1 + · · · + ajn αn = bj and ak1 α1 + · · · + akn αn = bk . Therefore, we see that αi ’s satisfy
DR
Therefore, using Equation (2.1.3), we see that yT = [α1 , . . . , αn ] is also a solution for Equation
(2.1.4). Now, use a similar argument to show that if zT = [β1 , . . . , βn ] is a solution of Cx = d
then it is also a solution of Ax = b. Hence, the required result follows.
The readers are advised to use Lemma 2.1.16 as an induction step to prove the next result.
Theorem 2.1.17. Let Ax = b and Cx = d be two row equivalent linear systems. Then, they
have the same solution set.
The exercise below shows that every square matrix is row equivalent to an upper triangular
matrix.
Exercise 2.1.18. Let A = [aij ] ∈ Mn (R). Then there exists an orthogonal matrix U such that
U A is upper triangular. The proof uses the following ideas.
1. If A[1, :] = 0 then proceed to the next column. So, let A[:, 1] 6= 0. If a11 = 0 then apply a
permutation matrix P (an orthogonal matrix, see Definition 1.3.1.2d) to get B = P A such
that the (1, 1)-th entry of B is non zero. Hence, without loss of generality, let a11 6= 0.
2.2. ROW-REDUCED ECHELON FORM (RREF) 35
2. Let [w1 , . . . , wn ]T = w ∈ Rn with w1 6= 0. Then use the Householder matrix (see 1.3.7.10a)
H such that Hw = αe1 for some α ∈ R, i.e., find x ∈ Rn such that (In − 2xxT )w = αe1 .
w − αe1 1
Ans: Given condition implies w − αe1 = 2(xT w)x. So x = T
. As is scalar,
2x w 2xT w
1 − 2wT w
use x = w + αe1 to find a choice of α. Show that for α = , Hw = −αe1 .
2w1
" #
α ∗
3. So, Part 2 gives an orthogonal matrix H1 with H1 A = .
0 A1
4. Now, use induction to get H2 ∈ Mn−1 (R) to get H2 A1 = T1 , an upper triangular matrix.
" # " #
1 0T α ∗
5. Define H = H1 . Then H is an orthogonal matrix and HA = , an upper
0 H2 0 T1
triangular matrix.
standing will be used to define the row-rank of a matrix in the next section and in subsequent
AF
Remark 2.2.2. The elementary matrices are of three types and they correspond to elementary
row operations.
1. Eij = In −ei eTi −ej eTj +ei eTj +ej eTi : Matrix obtained by applying elementary row operation
Eij to In .
2. Ek (c) = In + (c − 1)ek eTk for c 6= 0: Matrix obtained by applying elementary row operation
Ek (c) to In .
3. Eij (c) = In + c ei eTj for c 6= 0: Matrix obtained by applying elementary row operation
Eij (c) to In .
Thus, when an elementary matrix is multiplied on the left of a matrix A, it gives the same result
as that of applying the corresponding elementary row operation on A.
Example 2.2.3.
1. for n= 3 and c ∈C, c 6= 0, one has
In particular,
1 0 0 c 0 0 1 0 0 1 0 0
E23 =
0 0 1 , E1 (c) = 0 1 0, E31 (c) = 0 1 0 and E23 (c) = 0 1 c .
0 1 0 0 0 1 c 0 1 0 0 1
36 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
2. Verify that the transpose of an elementary matrix is again an elementary matrix of similar
type (see the above examples).
1 2 3
3. Let A = 2 0 3.
3 4 5
(a) If B1 is obtained
from A by applying the elementary row operation E23 then B1 =
1 2 3
E23 A = 3 4 5.
2 0 3
(b) If B is obtained from
A by applying
the elementary row operation E31 (−3) then
1 2 3
B = E31 (−3)A = 2 0
3.
0 −2 −4
(c) If C is obtained from
B by applying
the elementary row operation E21 (−2) then
1 2 3
C = E21 (−2)A = 0 −4 −3
.
0 −2 −4
1 3 2 −8 2 3
2 3 0, AE31 (−3) = −7 0 3.
(d) Where as AE23 =
T
3 5 4 −12 4 5
AF
1
2 0 1 0 0 1 −1 0 1 0 0 0 0 1 0 0 1
2
0 1 0 , 0 1 0 , 0 1 0 , 5 1 0 , 0 1 0 , 1 0 0 .
0 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 1 0
" #
2 1
2. Find some elementary matrices E1 , . . . , Ek such that Ek · · · E1 = I2 .
1 2
1 1 1
3. Find some elementary matrices F1 , . . . , F` such that F` · · · F1
0 1 1 = I3 .
0 0 3
Exercise 2.2.5. Show that each elementary matrix is invertible. Further, the inverse is an
elementary matrix of the same type.
Ans: Verify that (Eij )−1 = Eij as Eij Eij = I = Eij Eij . If c 6= 0 then (Ek (c))−1 =
Ek (1/c) as Ek (c)Ek (1/c) = I = Ek (1/c)Ek (c) and (Eij (c))−1 = Eij (−c) as Eij (c)Eij (−c) = I =
Eij (−c)Eij (c).
Proposition 2.2.6. Let A and B be two row equivalent matrices. Then, there exists elementary
matrices E1 , . . . , Ek such that B = E1 · · · Ek A.
Proof. By the definition of row equivalence, B can be obtained from A by a finite number of
elementary row operations. But by Remark 2.2.2, each elementary row operation corresponds
to left multiplication by an elementary matrix. Thus, the required result follows.
2.2. ROW-REDUCED ECHELON FORM (RREF) 37
Theorem 2.2.7. Let Ax = b and Cx = d be two row equivalent linear systems. Then they
have the same solution set.
EA = C, Eb = d, A = E −1 C and b = E −1 d. (2.2.1)
Cy = EAy = Eb = d. (2.2.2)
Az = E −1 Cz = E −1 d = b. (2.2.3)
Therefore, using Equations (2.2.2) and (2.2.3) the required result follows.
The following result is a particular case of Theorem 2.2.7.
Corollary 2.2.8. Let A and B be two row equivalent matrices. Then, the systems Ax = 0 and
T
AF
1 0 0 1 0 a
Example 2.2.9. Are the matrices A = 0 1 0 and B = 0 1 b row equivalent?
0 0 1 0 0 0
a
Solution: No, as b
is a solution of Bx = 0 but it isn’t a solution of Ax = 0.
−1
Definition 2.2.10. Let A be a nonzero matrix. Then, in each nonzero row of A, the left most
nonzero entry is called a pivot/leading entry. The column containing the pivot is called a
pivotal column. If aij is a pivot then we denote it by aij . For example, the entries a12 and
0 3 4 2
a23 are pivots in A =
0 0 0 0. Thus, columns 2 and 3 are pivotal columns.
0 0 2 1
2. if the pivot of the (i + 1)-th row, if it exists, comes to the right of the pivot of the i-th
row.
, 0 0 0 1 , 0
and
.
0 0 1 1 0 0 0 1 0
0 1 2
AF
0 0 0 0 0 0 0 0 0 0 0 0 1
0 0 0 0
DR
2. The
following matrices
are not inRREF
(determinethe rule(s) that fail).
0 3 3 0 0 1 3 0 0 1 3 1
, 0 , 0 .
0 0 0 1 0 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 0
Let A ∈ Mm,n (C). We now present an algorithm, commonly known as the Gauss-Jordan
Elimination (GJE), to compute the RREF of A.
1. Input: A.
2. Output: a matrix B in RREF such that A is row equivalent to B.
3. Step 1: Put ‘Region’ = A.
4. Step 2: If all entries in the Region are 0, STOP. Else, in the Region, find the leftmost
nonzero column and find its topmost nonzero entry. Suppose this nonzero entry is aij = c
(say). Box it. This is a pivot.
5. Step 3: Interchange the row containing the pivot with the top row of the region. Also,
make the pivot entry 1 by dividing this top row by c. Use this pivot to make other entries
in the pivotal column as 0.
6. Step 4: Put Region = the submatrix below and to the right of the current pivot. Now,
go to step 2.
Important: The process will stop, as we can get at most min{m, n} pivots.
2.2. ROW-REDUCED ECHELON FORM (RREF) 39
0 2 3 7
1 1 1 1
Example 2.2.15. Apply GJE to
1
3 4 8
0 0 0 1
1. Region = A as A 6= 0.
1 1 1 1 1 1 1 1
0 2 3 7. Also, E31 (−1)E12 A = 0 2 3 7
2. Then, E12 A =
1 3
= B (say).
4 8 0 2
3 7
0 0 0 1 0 0 0 1
1 1 1 1
2 3 7 3 7
1
0 1 2
2
3. Now, Region = 2 3 7 6= 0. Then, E2 ( 2 )B = 0 = C(say). Then,
2 3 7
0 0 1
0 0 0 1
1 0 −1 2
−5
2
0 3 7
1 2
2
E12 (−1)E32 (−2)C = 0 = D(say).
0 0 0
0 0 0 1
1 0 −1 2
−5
2
T
" # 3 7
0 0 0 1
AF
2
2
4. Now, Region = . Then, E34 D = . Now, multiply on the left
0 1 0
0 0 1
DR
0 0 0 0
1 0 − 12 0
0 3
5 −7 1 2 0
by E13 ( 2 ) and E23 ( 2 ) to get
, a matrix in RREF. Thus, A is row
0 0 0 1
0 0 0 0
1 0 − 12 0
0 3
1 2 0
equivalent to F , where F = RREF(A) = 0
.
0 0 1
0 0 0 0
3. Let A ∈ Mn (C). If A is not a scalar matrix, i.e., A 6= αI, for any α ∈ C then prove that
there exists a non-singular matrix S such that SAS −1 = B with B = [bij ] and b11 = 0.
40 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
Ans: If A has a non-zero entry in the first row, say a1i 6= 0, (the first column, say aj1 6= 0)
a11 a11
then take S = In + ei eT1 (S = In − e1 eTj ).
a1i aj1
The proof of the next result is beyond the scope of this book and hence is omitted.
Theorem 2.2.17. Let A and B be two row equivalent matrices in RREF. Then A = B.
Proof. Suppose there exists a matrix A with two different RREFs, say B and C. As the RREFs
are obtained by left multiplication of elementary matrices, there exist elementary matrices
E1 , . . . , Ek and F1 , . . . , F` such that B = E1 · · · Ek A and C = F1 · · · F` A. Let E = E1 · · · Ek
and F = F1 · · · F` . Thus, B = EA = EF −1 C.
T
matrices and hence B and C are row equivalent. As B and C are in RREF, using Theorem 2.2.17,
DR
B = C.
2. Let A ∈ Mm,n (C). Then, the uniqueness of RREF implies that RREF(A) is independent
of the choice of the row operations used to get the final matrix which is in RREF.
Thus, the matrices RREF(A) and RREF(B) are row equivalent. Since they are also in
RREF by Theorem 2.2.17, RREF(A) = RREF(B).
4. Then, there exists an invertible matrix P , a product of elementary matrices, such that
P A = RREF(A).
5. Let F = RREF(A) and B = [A[:, 1], . . . , A[:, s]], for some s ≤ n. Then,
Thus, P B = [P A[:, 1], . . . , P A[:, s]] = [F [:, 1], . . . , F [:, s]]. As F is in RREF, it’s first s
columns are also in RREF. Hence, by Corollary 2.2.18, RREF(P B) = [F [:, 1], . . . , F [:, s]].
Now, a repeated use of Remark 2.2.19.3 gives RREF(B) = [F [:, 1], . . . , F [:, s]]. Thus, the
required result follows.
Example 2.2.20. Consider a linear system Ax = b, where A ∈ M3 (C) and A[:, 1] 6= 0.Then,
verify that the 7 different choices for [C d] = RREF([A b]) are
1 0 0 d1 x d
1
1. 0 1 0 d2 . Here, Ax = b is consistent. The unique solution equals y = d2
.
0 0 1 d3 z d3
1 0 α 0 1 α 0 0 1 α β 0
T
2. 0 1
β 0 , 0 0 1 0 or 0
. Here, Ax = b is inconsistent for any
0 0 1
AF
0 0 0 1 0 0 0 1 0 0 0 0
choice of α, β as RREF([A b]) has a row of [0 0 0 1]. This corresponds to solving
DR
Proposition 2.2.21. Let A ∈ Mn (C). Then, A is invertible if and only if RREF(A) = In , i.e.,
every invertible matrix is a product of elementary matrices.
Theorem 2.2.22. Let A ∈ Mm,n (C). Then, for any invertible matrix S, RREF(SA) =
RREF(A).
0 0 1
DR
Example 2.2.24. Use GJE to find the inverse of A = 0 1 1.
1 1 1
0 0 1 1 0 0
Solution: Applying GJE to [A | I3 ] = 0 1 1 0 1 0 gives
1 1 1 0 0 1
1 1 1 0 0 1 1 1 0 −1 0 1
E13 E13 (−1),E23 (−2)
[A | I3 ] → 0 1 1 0 1
0
→ 0 1 0 −1 1 0
0 0 1 1 0 0 0 0 1 1 0 0
1 0 0 0 −1 1
E12 (−1)
→ 0 1 0 −1 1
.
0
0 0 1 1 0 0
0 −1 1
Thus, A−1 =
−1 1 .
0
1 0 0
Exercise
2.2.25.
Find
the inverse
of the following
matrices
using
GJE.
1 2 3 1 3 3 2 1 1 0 0 2
(i)
1 3 2 (ii) 2 3 2 (iii) 1
2 1 (iv) 0 2 1.
2 4 7 2 4 7 1 1 2 2 1 1
2.3. RANK OF A MATRIX 43
Remark 2.3.2. Before proceeding further, for A ∈ Mm,n (C), we observe the following.
1. The number of pivots in the RREF(A) is same as the number of pivots in REF of A.
Hence, we need not compute the RREF(A) to determine the rank of A.
2. Since, the number of pivots cannot be more than the number of rows or the number of
columns, one has Rank(A) ≤ min{m, n}.
" # " #
A 0 RREF(A) 0
3. If B = then Rank(B) = Rank(A) as RREF(B) = .
0 0 0 0
" #
A11 A12
4. If A = then, by definition
A21 A22
h i h i
Rank(A) ≤ Rank A11 A12 + Rank A21 A22 .
h i
(b) Rank(A) ≥ Rank A21 A22 .
AF
" #!
A11
DR
We now show that the rank doesn’t change if a matrix is multiplied on the left by an
invertible matrix.
Lemma 2.3.4. Let A ∈ Mm,n (C). If S is an invertible matrix then Rank(SA) = Rank(A).
Corollary 2.3.5. Let A ∈ Mm,n (C) and B ∈ Mn,q (C). Then, Rank(AB) ≤ Rank(A).
In particular, if B ∈ Mn (C) is invertible then Rank(AB) = Rank(A).
Theorem 2.3.6. Let A ∈ Mm,n (C). If Rank(A) = r then, there exist invertible matrices P and
Q such that " #
Ir 0
P AQ= .
0 0
Proof. Let C = RREF(A). Then, by Remark 2.2.19.4 there exists as invertible matrix P such
T
that C = P A. Note that C has r pivots and they appear in columns, say i1 < i2 < · · · < ir .
AF
Now, let D = CE1i1 E2i2 · · · Erir . As Ejij ’s are elementary matrices that interchange the
DR
" #
Ir B
columns of C, one has D = , where B ∈ Mr,n−r (C).
0 0
" #
Ir −B
Put Q1 = E1i1 E2i2 · · · Erir . Then, Q1 is invertible. Let Q2 = . Then, verify that
0 In−r
Q2 is invertible and
" #" # " #
Ir B Ir −B Ir 0
CQ1 Q2 = DQ2 = = .
0 0 0 In−r 0 0
" #
Ir 0
Thus, if we put Q = Q1 Q2 then Q is invertible and P AQ = CQ = CQ1 Q2 = and
0 0
hence, the required result follows.
We now prove the following result.
Proposition 2.3.7. Let A ∈ Mn (C) be an invertible matrix and let S be any subset of {1, 2, . . . , n}.
Then Rank(A[S, :]) = |S| and Rank(A[:, S]) = |S|.
" #
Ir 0
Proof. By Theorem 2.3.6, there exist invertible matrices P and Q such that P AQ = .
0 0
h i
If P −1 = B C , where B ∈ Mm,r (C) and C ∈ Mm,m−r (C) then,
" # " #
Ir 0 h i I 0
r
h i
AQ = P −1 = B C = B 0 .
0 0 0 0
h i
Now, by Proposition 2.3.7, Rank(B) = r = Rank(A) as the matrix P −1 = B C is an invertible
matrix. Thus, the required result follows.
As an application of Corollary 2.3.8, we have the following result.
Corollary 2.3.9. Let A ∈ Mm,n (C) and B ∈ Mn,p (C). Then, Rank(AB) ≤ Rank(B).
We end this section by relating the rank of the sum of two matrices with sum of their ranks.
46 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
Proposition 2.3.10. Let A, B ∈ Mm,n (C). Then, prove that Rank(A + B) ≤ Rank(A) +
k
xi yi∗ , for some xi , yi ∈ C, for 1 ≤ i ≤ k, then Rank(A) ≤ k.
P
Rank(B). In particular, if A =
i=1
Proof. Let Rank(A) = r. Then, # exists an invertible matrix P and a matrix A1 ∈ Mr,n (C)
" there
A1
such that P A = RREF(A) = . Then,
0
" # " # " #
A1 B1 A1 + B 1
P (A + B) = P A + P B = + = .
0 B2 B2
Now using Corollary 2.3.5, Remark 2.3.2.4 and the condition Rank(A) = Rank(A1 ) = r, the
number of rows of A1 , we have
Thus, the required result follows. The other part follows, as Rank(xi yi∗ ) = 1, for 1 ≤ i ≤ k.
" # " #
2 4 8 1 0 0
Exercise 2.3.11. 1. Let A = and B = . Find P and Q such that
1 3 2 0 1 0
B = P AQ.
2. Let A ∈ Mm,n (C). If Rank(A) = r then, prove that A = BC, where B ∈ Mm,r (C) and
C ∈ Mr,n (C) and Rank(B) = Rank(C) = r. Now, use matrix product to give the existence
T
r
AF
3. If Rank(A)
" = r# then prove" that #there exist invertible
" matrices
# Bi , Ci such that
R1 R2 S1 0 A1 0
B1 A = , AC1 = and B2 AC2 = , where the (1, 1) block
0 0 S3 0 0 0
of each matrix has size r × r. Also, prove that A1 is an invertible matrix.
4. Prove that if Rank(A) = Rank(AB) then A = ABX, for some matrix X. Similarly, if
Rank(A) = Rank(BA) then A =" Y BA,# for some matrix Y . [Hint: Choose " invertible
#
A1 0 −1 A 2 A 3
matrices P, Q satisfying P AQ = , P (AB) = (P AQ)(Q B) = . Now,
0 0 0 0
" #
C 0
find an invertible matrix R such that P (AB)R = . Use the above result to show
0 0
" #
C −1 A1 0
that C is invertible. Then X = R Q−1 gives the required result.]
0 0
" # " # " #
A1 0 A11 0 B11 A11 + B12 A21 0
Ans: P AQ = ⇒ AQ = ⇒ BAQ = . Thus,
0 0 A21 0 B21 A11 + B22 A21 0
" #
C 0
there exists an invertible matrix P1 such that P1 BAQ = for some invertible matrix
0 0
" #
A C −1 0
1
C. Define Y = P −1 P1 and compute Y BA.
0 0
[x, y, z]T | [x, y, z] = [1, 2 − z, z] = [1, 2, 0] + z[0, −1, 1], with z arbitrary.
T
AF
1 0 0 0
DR
3. Let RREF([A b]) = 0 1 1 0. Then, the system Ax = b has no solution as
0 0 0 1
(RREF([A b]))[3, :] = [0 0 0 1].
We now prove the main result in the theory of linear systems. Before doing so, we look at
the following example.
Example 2.4.3. Consider a linear system Ax = b. Suppose RREF([A b]) = [C d], where
1 0 2 −1 0 0 2 8
0 1 1 3 0 0 5 1
0 0 0 0 1 0 −1 2
[C d] = .
0 0 0 0 0 1 1 4
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
1. C has 4 pivotal columns, namely, the columns 1, 2, 5 and 6. Thus, x1 , x2 , x5 and x6 are
basic variables.
Proof. Part 1: As r < ra , by Remark 2.2.19.5 ([C d])[r + 1, :] = [0T 1]. Note that this row
corresponds to the linear equation
0 · x1 + 0 · x2 + · · · + 0 · xn = 1
which clearly has no solution. Thus, by definition and Theorem 2.1.17, Ax = b is inconsistent.
Part 2: As r = ra , by Remark 2.2.19.5, [C d] doesn’t have a row of the form [0T 1].
Further, the number of pivots in [C d] and that in C is same, namely, r pivots. Suppose the
pivots appear in columns i1 , . . . , ir with 1 ≤ i1 < · · · < ir ≤ n. Thus, the variables xij , for
1 ≤ j ≤ r, are basic variables and the remaining n − r variables, say xt1 , . . . , xtn−r , are free
2.4. SOLUTION SET OF A LINEAR SYSTEM 49
variables with t1 < · · · < tn−r . Since C is in RREF, in terms of the free variables and basic
variables, the `-th row of [C d], for 1 ≤ ` ≤ r, corresponds to the equation
n−r
X n−r
X
x i` + c`tk xtk = d` ⇔ xi` = d` − c`tk xtk .
k=1 k=1
. . .
. . .
AF
. . .
dr crt crt
DR
1 n−r
Part 2b: Define x0 = 0 and u1 = 1 , . . . , un−r = 0 . Then, it can be easily
0 0 0
. . .
. . .
. . .
0 0 1
verified that Ax0 = b and, for 1 ≤ i ≤ n−r, Aui = 0. Also, by Equation (2.4.7) the solution set
has indeed the required form, where ki corresponds to the free variable xti . As there is at least
one free variable the system has infinite number of solutions. Thus, the proof of the theorem is
complete.
Exercise 2.4.5. Consider the linear system given below. Use GJE to find the RREF of it’s
augmented matrix. Now, use the technique used in the previous theorem to find the solution of
the linear system
x +y −2u +v = 2
z +u +2v = 3
v +w = 3
v +2w = 5
Let A ∈ Mm,n (C). Then, Rank(A) ≤ m. Thus, using Theorem 2.4.4 the next result follows.
Corollary 2.4.6. Let A ∈ Mm,n (C). If Rank(A) = r < min{m, n} then Ax = 0 has infinitely
many solutions. In particular, if m < n, then Ax = 0 has infinitely many solutions. Hence, in
either case, the homogeneous system Ax = 0 has at least one non-trivial solution.
50 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
Remark 2.4.7. Let A ∈ Mm,n (C). Then, Theorem 2.4.4 implies that Ax = b is consistent
if and only if Rank(A) = Rank([A b]). Further, the vectors associated to the free variables in
Equation (2.4.7) are solutions to the associated homogeneous system Ax = 0.
Example 2.4.8. 1. Determine the equation of the line/circle that passes through the points
(−1, 4), (0, 1) and (1, 4).
Solution: The general equation of a line/circle in Euclidean plane is given by a(x2 +
y 2 ) + bx + cy + d = 0, where a, b, c and d are variables. Since this curve passes through
the given points,we get a homogeneous
system in 3 equations and 4 variables, namely
a
(−1)2 + 42 −1 4 1
b 3 16
(0)2 + 12 0 1 1 c = 0. Solving this system, we get [a, b, c, d] = [ 13 d, 0, − 13 d, d].
2
1 +4 2 1 4 1
d
Hence, choosing d = 13, the required circle is given by 3(x2 + y 2 ) − 16y + 13 = 0.
2. Determine the equation of the plane that contains the points (1, 1, 1), (1, 3, 2) and (2, −1, 2).
Solution: The general equation of a plane in space is given by ax + by + cz + d = 0,
where a, b, c and d are variables. Since this plane passes through the 3 given points, we
get a homogeneous system in 3 equations and 4 variables. So, it has a non-trivial solution,
T
by −4x − y + 2z + 3 = 0.
DR
2 3 4
3. Let A =
0 −1 0 . Then, find a non-trivial solution of Ax = 2x. Does there exist a
0 −3 4
nonzero vector y ∈ R3 such that Ay = 4y?
Solution: Solving for Ax = 2x is equivalentto solving (A − 2I)x = 0. The augmented
0 3 4 0
T
matrix of this system equals 0 −3 0 0
. Verify that x = [1, 0, 0] is a nonzero
0 4 2 0
solution.
other part, the augmented matrix for solving (A − 4I)y = 0 equals
For the
−2 3 4 0
0 −5 0 0. Thus, verify that yT = [2, 0, 1] is a nonzero solution.
0 −3 0 0
Exercise 2.4.9. 1. Let A ∈ Mn (C). If A2 x = 0 has a non trivial solution then show that
Ax = 0 also has a non trivial solution.
2. Prove that 5 distinct points are needed to specify a general conic, namely, ax2 + by 2 +
cxy + dx + ey + f = 0, in the Euclidean plane.
3. Let u = (1, 1, −2)T and v = (−1, 2, 3)T . Find condition on x, y and z such that the system
cu + dv = (x, y, z)T in the variables c and d is consistent.
2.5. SQUARE MATRICES AND LINEAR SYSTEMS 51
4. For what values of c and k, the following systems have i) no solution, ii) a unique
solution and iii) infinite number of solutions.
(a) x + y + z = 3, x + 2y + cz = 4, 2x + 3y + 2cz = k.
(b) x + y + z = 3, x + y + 2cz = 7, x + 2y + 3cz = k.
(c) x + y + 2z = 3, x + 2y + cz = 5, x + 2y + 4z = k.
5. Find the condition(s) on x, y, z so that the systems given below (in the variables a, b and
c) is consistent?
(a) a + 2b − 3c = x, 2a + 6b − 11c = y, a − 2b + 7c = z.
(b) a + b + 5c = x, a + 3c = y, 2a − b + 4c = z.
6. Determine the equation of the curve y = ax2 + bx + c that passes through the points
(−1, 4), (0, 1) and (1, 4).
8. For what values of a, does the following systems have i) no solution, ii) a unique solution
T
9. Consider the linear system Ax = b in m equations and 3 variables. Then, for each of the
given solution set, determine the possible choices of m? Further, for each choice of m,
determine a choice of A and b.
(a) (1, 1, 1)T is the only solution.
(b) {(1, 1, 1)T + c(1, 2, 1)T |c ∈ R} as the solution set.
(c) {c(1, 2, 1)T |c ∈ R} as the solution set.
(d) {(1, 1, 1)T + c(1, 2, 1)T + d(2, 2, −1)T |c, d ∈ R} as the solution set.
(e) {c(1, 2, 1)T + d(2, 2, −1)T |c, d ∈ R} as the solution set.
Theorem 2.5.1. Let A ∈ Mn (C). Then, the following statements are equivalent.
1. A is invertible.
2. RREF(A) = In .
52 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
5. Rank(A) = n.
1. A is invertible.
DR
Theorem 2.5.3. The following two statements cannot hold together for A ∈ Mn (C).
As an immediate consequence of Theorem 2.5.1, the readers should prove that one needs to
compute either the left or the right inverse to prove invertibility of A ∈ Mn (C).
2.5. SQUARE MATRICES AND LINEAR SYSTEMS 53
2. [Theorem of the Alternative] The following two statements cannot hold together for
A ∈ Mn (C) and b ∈ Rn .
3. Let A and B be two matrices having positive entries and of orders 1 × n and n × 1,
respectively. Which of BA or AB is invertible? Give reasons.
(a) Then, prove that I − BA is invertible if and only if I − AB is invertible [use Theo-
rem 2.5.1.4].
(b) If I − AB is invertible then, prove that (I − BA)−1 = I + B(I − AB)−1 A.
T
AF
5. Let bT = [1, 2, −1, −2]. Suppose A is a 4 × 4 matrix such that the linear system Ax = b
has no solution. Mark each of the statements given below as true or false?
2.5.1 Determinant
1 2 3 " #
1 2
1 3 2 then A(1 | 2) = 2 7
Recall the notations used in Section 1.3.1 on Page 19 . If A =
2 4 7
and A({1, 2} | {1, 3}) = [4]. We are ready to give an inductive definition of the determinant of
54 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
a square matrix. The advanced students can find an alternate definition of the determinant in
Appendix 7.2.22, where it is proved that the definition given below corresponds to the expansion
of determinant along the first row.
Definition 2.5.6. Let A be a square matrix of order n. Then, the determinant of A, denoted
det(A) (or | A | ) is defined by
a,
if A = [a] (corresponds to n = 1),
det(A) = n
(−1)1+j a1j det A(1 | j) ,
P
otherwise.
j=1
det(A) = | A | = a11 det(A(1 | 1)) − a12 det(A(1 | 2)) + a13 det(A(1 | 3))
a
22 a23
a
21 a23
a
21 a22
= a11 − a12 + a 13
T
= a11 (a22 a33 − a23 a32 ) − a12 (a21 a33 − a31 a23 ) + a13 (a21 a32 − a31 a22 ).
DR
1 2 3
3 1
2 1
2 3
2 3 1, | A | = 1 · 2 2 − 2 · 1 2 + 3 · 1 2 = 4 − 2(3) + 3(1) = 1.
For A =
1 2 2
Exercise
2.5.8.
Find the determinant
of the following matrices.
1 2 7 8 3 0 0 1
1 a a2
0 4 3 2 0 2 0 5
i)
ii) 6 −7 1 0 iii) 1
b b2
.
0 0 2 3
1 c c2
0 0 0 5 3 2 0 6
The next result relates the determinant with row operations. For proof, see Appendix 7.3.
T
2. Let A = e f g , B = e
f g and C = b f αb + βf + j for some
AF
h j ` αh αj α` c g αc + βg + `
DR
By Theorem 2.5.10.6 det(In ) = 1. The next result about the determinant of elementary
matrices is an immediate consequence of Theorem 2.5.10 and hence the proof is omitted.
Remark 2.5.14. Theorem 2.5.10.1 implies that the determinant can be calculated by expanding
along any row. Hence, the readers are advised to verify that
n
X
det(A) = (−1)k+j akj det(A(k | j)), for 1 ≤ k ≤ n.
j=1
Example
2.5.15.
Using Remark 2.5.14, one has
2 2 6 1
2 2 1 2 2 6
0 0 2 1 2+3
0 1 2 0 = (−1)
· 2 · 0 1 0 + (−1)2+4 · 0 1 2 = −2 · 1 + (−8) = −10.
1 2 1 1 2 1
1 2 1 1
Definition 2.5.16. Let A ∈ Mn (C). Then, the cofactor matrix, denoted Cof(A), is an Mn (C)
matrix with Cof(A) = [Cij ], where
And, the Adjugate (classical Adjoint) of A, denoted Adj(A), equals CofT (A).
56 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
1 2 3
Example 2.5.17. Let A =
2 3 1 .
1 2 4
1. Then,
C C21 C31
T
11
Adj(A) = Cof (A) = C12 C22
C32
C13 C23 C33
(−1)1+1 det(A(1|1)) (−1)2+1 det(A(2|1)) (−1)3+1 det(A(3|1))
= 1+2 det(A(1|2)) (−1)2+2 det(A(2|2)) (−1)3+2 det(A(3|2))
(−1)
(−1)1+3 det(A(1|3)) (−1)2+3 det(A(2|3)) (−1)3+3 det(A(3|3))
10 −2 −7
−7 1
= 5 .
1 0 −1
−1 0 0 det(A) 0 0
0 −1 0 = 0
Now, verify that AAdj(A) = det(A) 0 = Adj(A)A.
0 0 −1 0 0 det(A)
x − 1 −2 −3
T
2. Consider xI3 − A = −2 x − 3 −1 . Then,
AF
−1 −2 x − 4
DR
C C21 C31 x2 − 7x + 10 2x − 2 3x − 7
11
Adj(xI − A) = C12 C22
C32 = 2x − 7 x 2 − 5x + 1 x + 5
C13 C23 C33 x+1 2x x2 − 4x − 1
−7 2 3
2 2
= x I + x 2
−5 1 + Adj(A) = x I + Bx + C(say).
1 2 −4
That is, we have obtained a matrix equality and hence, replacing x by A makes sense. But,
then the LHS is 0. So, for the RHS to be zero, we must have A3 −8A2 +10A−det(A)I = 0
(this equality is famously known as the Cayley-Hamilton Theorem).
The next result relates adjugate matrix with the inverse, in case det(A) 6= 0.
n n
aij (−1)i+j det(A(`|j)) = 0, for i 6= `.
P P
2. Then, aij C`j =
j=1 j=1
1 −1 0 −1 1 −1
DR
Example 2.5.19. For A = 0 1 1 , Adj(A) = 1 1 −1 and det(A) = −2. Thus,
1 2 1 −1 −3 1
1/2 −1/2 1/2
by Theorem 2.5.18.3, A−1 =
−1/2 −1/2 1/2 .
1/2 3/2 −1/2
Let A be a non-singular matrix. Then, by Theorem 2.5.18.3, A−1 = det(A)
1
Adj(A). Thus
A Adj(A) = Adj(A) A = det(A) In and this completes the proof of the next result
Corollary 2.5.20. Let A be a non-singular matrix. Then,
n
(
X det(A), if j = k,
Cik aij =
i=1 0, if j 6= k.
The next result gives another equivalent condition for a square matrix to be invertible.
Theorem 2.5.21. A square matrix A is non-singular if and only if A is invertible.
Proof. Let A be non-singular. Then, det(A) 6= 0 and hence A−1 = 1
det(A) Adj(A).
Now, let us assume that A is invertible. Then, using Theorem 2.5.1, A = E1 · · · Ek , a
product of elementary matrices. Also, by Corollary 2.5.11, det(Ei ) 6= 0, for 1 ≤ i ≤ k. Thus, a
repeated application of Parts 1, 2 and 3 of Theorem 2.5.10 gives det(A) 6= 0.
The next result relates the determinant of a matrix with the determinant of its transpose.
Thus, the determinant can be computed by expanding along any column as well.
58 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
0 0
AF
1 0 α ∗
(e) Define L = L1 . Then LA = , is an upper triangular matrix with L
AF
0 L2 0 T1
as an invertible lower triangular matrix.
DR
" #
α ∗
(f ) Since L−1 is also a lower triangular matrix, A = L−1 . Thus, A is a product
0 T1
of a "lower triangular
# invertible matrix and an upper triangular invertible matrix
α ∗
U= .
0 T1
3. Let A ∈ Mn (C). Then, det(A) = 0 if
(a) either A[i, :]T = 0T or A[:, i] = 0, for some i, 1 ≤ i ≤ n,
(b) or A[i, :] = cA[j, :], for some c ∈ C and for some i 6= j,
(c) or A[:, i] = cA[:, j], for some c ∈ C and for some i 6= j,
(d) or A[i, :] = c1 A[j1 , :] + c2 A[j2 , :] + · · · + ck A[jk , :], for some rows i, j1 , . . . , jk of A and
some ci ’s in C,
(e) or A[:, i] = c1 A[:, j1 ] + c2 A[:, j2 ] + · · · + ck A[:, jk ], for some columns i, j1 , . . . , jk of A
and some ci ’s in C.
a b c a e 102 a + 10e + h
C. Without
2
4. Let A = e f g and B = b f 10 b + 10f + j , where a, b . . . , ` ∈
h j ` c g 102 c + 10g + `
3 1 1
computing deduce that det(A) = det(B). Hence, conclude that 17 divides 4 8 1.
0 7 9
60 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
We start with a corollary which is a direct application of Theorems 2.5.2 and 2.5.21.
Corollary 2.5.26. Let A be a square matrix. Then, the following statements are equivalent:
1. A is invertible.
3. det(A) 6= 0.
Thus, Ax = b has a unique solution for every b if and only if det(A) 6= 0. The next theorem
gives a direct method of finding the solution of the linear system Ax = b when det(A) 6= 0.
Theorem 2.5.27 (Cramer’s Rule). Let A be an n × n non-singular matrix. Then, the unique
solution of the linear system Ax = b with xT = [x1 , . . . , xn ] is given by
det(Aj )
xj = , for j = 1, 2, . . . , n,
det(A)
Proof. Since det(A) 6= 0, A is invertible. Thus, there exists an invertible matrix P such that
P A = In and P [A | b] = [I | P b]. Then A−1 = P . Let d = P b = A−1 b. Then, Ax = b has the
T
AF
" # " #
−1 A11 A12 B11 B12
9. Suppose A = B with A = and B = . Also, assume that A11 is
A21 A22 B21 B22
invertible and define P = A22 − A21 A−1
11 A12 . Then, prove that
" #" # " #
I 0 A11 A12 A11 A12
(a) = ,
−A21 A−1
11 I A21 A22 0 A22 − A21 A−1 11 A12
" #
A−1
11 + (A −1
11 A 12 )P −1 (A A−1 )
21 11 −(A −1
11 A 12 )P −1
(b) P is invertible and B = .
−P −1 (A21 A−1 11 ) P −1
10. Let A and B be two non-singular matrices. Are the matrices A + B and A − B non-
singular? Justify your answer.
11. For what value(s) of λ does the following systems have non-trivial solutions? Also, for
each value of λ, determine a non-trivial solution.
13. Let A = [aij ] ∈ Mn (C) with aij = max{i, j}. Prove that det A = (−1)n−1 n.
62 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
15. Let p ∈ C, p 6= 0. Let A = [aij ], B = [bij ] ∈ Mn (C) with bij = pi−j aij , for 1 ≤ i, j ≤ n.
Then, compute det(B) in terms of det(A).
16. The position of an element aij of a determinant is called even or odd according as i + j is
even or odd. Prove that if all the entries in
(a) odd positions are multiplied with −1 then the value of determinant doesn’t change.
(b) even positions are multiplied with −1 then the value of determinant
i. does not change if the matrix is of even order.
ii. is multiplied by −1 if the matrix is of odd order.
2.7 Summary
In this chapter, we started with a system of m linear equations in n variables and formally
wrote it as Ax = b and in turn to the augmented matrix [A | b]. Then, the basic operations on
equations led to multiplication by elementary matrices on the right of [A | b]. These elementary
T
matrices are invertible and applying the GJE on a matrix A, resulted in getting the RREF of
AF
A. We used the pivots in RREF matrix to define the rank of a matrix. So, if Rank(A) = r and
DR
Rank([A | b]) = ra
We have also seen that the following conditions are equivalent for A ∈ Mn (C).
1. A is invertible.
7. Rank(A) = n.
8. det(A) 6= 0.
2.7. SUMMARY 63
1. Solving the linear system Ax = b. This idea will lead to the question “is the vector b a
linear combination of the columns of A”?
2. Solving the linear system Ax = 0. This will lead to the question “are the columns of A
linearly independent/dependent”? In particular, we will see that
(a) if Ax = 0 has a unique solution then the columns of A are linear independent.
(b) if Ax = 0 has a non-trivial solution then the columns of A are linearly dependent.
T
AF
DR
64 CHAPTER 2. SYSTEM OF LINEAR EQUATIONS
T
AF
DR
Chapter 3
Vector Spaces
In this chapter, we will mainly be concerned with finite dimensional vector spaces over R or C.
Please note that the real and complex numbers have the property that any pair of elements can
be added, subtracted or multiplied. Also, division is allowed by a nonzero element. Such sets in
mathematics are called field. So, Q, R and C are examples of field and they have infinite number
of elements. But, in mathematics, we do have fields that have only finitely many elements. For
example, consider the set Z5 = {0, 1, 2, 3, 4}. In Z5 , we define addition and multiplication,
respectively, as
·
T
+ 0 1 2 3 4 0 1 2 3 4
AF
0 0 1 2 3 4 0 0 0 0 0 0
DR
1 1 2 3 4 0 1 0 1 2 3 4
and .
2 2 3 4 0 1 2 0 2 4 1 3
3 3 4 0 1 2 3 0 3 1 4 2
4 4 0 1 2 3 4 0 4 3 2 1
Then, we see that the elements of Z5 can be added, subtracted and multiplied. Note that 4
behaves as −1 and 3 behaves as −2. Thus, 1 behaves as −4 and 2 behaves as −3. Also, we see
that in this multiplication 2 · 3 = 1 and 4 · 4 = 1. Hence,
1. the division by 2 is similar to multiplying by 3,
2. the division by 3 is similar to multiplying by 2, and
3. the division by 4 is similar to multiplying by 4.
Thus, Z5 indeed behaves like a field. So, in this chapter, F will represent a field.
1. 0 ∈ V as A0 = 0.
65
66 CHAPTER 3. VECTOR SPACES
We see that the solution set of a homogeneous linear system satisfies certain properties which
are also satisfied by the Euclidean plane, R2 , or the Euclidean space, R3 . In this chapter, our
aim is to understand sets that satisfy such properties. We start with the formal definition.
Definition 3.1.1. A vector space V over F, denoted V(F) or in short V (if the field F is clear
from the context), is a non-empty set, satisfying the following conditions:
(a) α (u ⊕ v) = (α u) ⊕ (α v).
(b) (α + β) u = (α u) ⊕ (β u) (+ is addition in F).
w1 = w1 ⊕ 0 = w1 + (u ⊕ w2 ) = (w1 ⊕ u) ⊕ w2 = 0 ⊕ w2 = w2 .
Hence, we represent this unique vector by −u and call it the additive inverse.
5. If V is a vector space over R then V is called a real vector space.
6. If V is a vector space over C then V is called a complex vector space.
7. In general, a vector space over R or C is called a linear space.
3.1. VECTOR SPACES: DEFINITION AND EXAMPLES 67
Some interesting consequences of Definition 3.1.1 is stated next. Intuitively, they seem
obvious but for better understanding of the given conditions, it is desirable to go through the
proof.
1. u ⊕ v = u implies v = 0.
Proof. Part 1: By Condition 3.1.1.1d, for each u ∈ V there exists −u ∈ V such that −u⊕u = 0.
Hence, u ⊕ v = u is equivalent to
−u ⊕ (u ⊕ v) = −u ⊕ u ⇐⇒ (−u ⊕ u) ⊕ v = 0 ⇐⇒ 0 ⊕ v = 0 ⇐⇒ v = 0.
α 0 = α (0 ⊕ 0) = (α 0) ⊕ (α 0).
Thus, using Part 1, α 0 = 0 for any α ∈ F. In the same way, using Condition 3.1.1.3b,
0 u = (0 + 0) u = (0 u) ⊕ (0 u).
T
AF
Example 3.1.4. The readers are advised to justify the statements given below.
2. Let A ∈ Mm,n (F) with Rank(A) = r ≤ n. Then, using Theorem 2.4.4, the solution set of
the homogeneous system Ax = 0 is a vector space over F.
3. Consider R with the usual addition and multiplication. That is, a ⊕ b = a + b and
a b = a · b. Then, R forms a real vector space.
(called component wise operations). Then, V is a real vector space. The vector
space Rn is called the real vector space of n-tuples.
√
Recall that the symbol i represents the complex number −1.
(a) let α ∈ R and define, α z1 = (αx1 ) + i(αy1 ). Then, C is a vector space over R
(called the real vector space).
(b) let α + iβ ∈ C and define, (α + iβ) (x1 + iy1 ) = (αx1 − βy1 ) + i(αy1 + βx1 ). Then,
C forms a vector space over C (called the complex vector space).
Then, verify that Cn forms a vector space over C (called the complex vector space)
DR
as well as over R (called the real vector space). Unless specified otherwise, Cn will be
considered a complex vector space.
8. Fix m, n ∈ N and let Mm,n (C) = {Am×n = [aij ] | aij ∈ C}. For A, B ∈ Mm,n (C) and
α ∈ C, define (A + αB)ij = aij + αbij . Then, Mm,n (C) is a complex vector space. If
m = n, the vector space Mm,n (C) is denoted by Mn (C).
10. Fix a, b ∈ R with a < b and let C([a, b], R) = {f : [a, b] → R | f is continuous}. Then,
C([a, b], R) with (f + αg)(x) = f (x) + αg(x), for all x ∈ [a, b], is a real vector space.
11. Let C(R, R) = {f : R → R | f is continuous}. Then, C(R, R) is a real vector space, where
(f + αg)(x) = f (x) + αg(x), for all x ∈ R.
12. Fix a < b ∈ R and let C 2 ((a, b), R) = {f : (a, b) → R | f 00 is continuous}. Then,
C 2 ((a, b), R) with (f + αg)(x) = f (x) + αg(x), for all x ∈ (a, b), is a real vector space.
3.1. VECTOR SPACES: DEFINITION AND EXAMPLES 69
13. Fix a < b ∈ R and let C ∞ ((a, b), R) = {f : (a, b) → R | f is infinitely differentiable}.
Then, C ∞ ((a, b), R) with (f + αg)(x) = f (x) + αg(x), for all x ∈ (a, b) is a real vector
space.
15. Let R[x] = {a0 + a1 x + · · · + an xn | ai ∈ R, for 0 ≤ i ≤ n}. Now, let p(x), q(x) ∈ R[x].
Then, we can choose m such that p(x) = a0 + a1 x + · · · + am xm and q(x) = b0 + b1 x +
· · · + bm xm , where some of the ai ’s or bj ’s may be zero. Then, we define
and αp(x) = (αa0 ) + (αa1 )x + · · · + (αam )xm , for α ∈ R. With these operations “com-
ponentwise addition and multiplication”, it can be easily verified that R[x] forms a real
vector space.
16. Fix n ∈ N and let R[x; n] = {p(x) ∈ R[x] | p(x) has degree ≤ n}. Then, with componen-
twise addition and multiplication, the set R[x; n] forms a real vector space.
18. Let V = {A = [aij ] ∈ Mn (C) | a11 = 0}. Then, V is a complex vector space.
DR
19. Let V = {A = [aij ] ∈ Mn (C) | A = A∗ }. Then, verify that V is a real vector space but
not a complex vector space.
20. Let V and W be vector spaces over F, with operations (+, •) and (⊕, ), respectively. Let
V × W = {(v, w) | v ∈ V, w ∈ W}. Then, V × W forms a vector space over F, if for every
(v1 , w1 ), (v2 , w2 ) ∈ V × W and α ∈ R, we define
v1 +v2 and w1 ⊕w2 on the right hand side mean vector addition in V and W, respectively.
Similarly, α • v1 and α w1 correspond to scalar multiplication in V and W, respectively.
(a) R+ is not a vector space under usual operations of addition and scalar multiplication.
(b) R+ is a real vector space with 1 as the additive identity if we define
Then, R2 is a real vector space with (−1, 3)T as the additive identity.
24. Recall the field Z5 = {0, 1, 2, 3, 4} given on the first page of this chapter. Then, V =
{(a, b) | a, b ∈ Z5 } is a vector space over Z5 having 25 elements/vectors.
Note that all our vector spaces, except the last two , are linear spaces.
From now on, we will use ‘u + v’ for ‘u ⊕ v’ and ‘αu or α · u’ for ‘α u’.
Exercise 3.1.6. 1. Verify that the vectors spaces mentioned in Example 3.1.4 do satisfy all
the conditions for vector spaces.
Then, does V form a vector space under any of the two operations?
4. Does the set V given below form a real/complex or both real and complex vector space?
Give reasons for your answer.
(" # )
a b
(a) Let V = | a, b, c, d ∈ C, a + c = 0 .
c d
(" # )
a b
(b) Let V = | a = b, a, b, c, d ∈ C .
c d
(c) Let V = {(x, y, z)T | x + y + z = 1}.
(d) Let V = {(x, y)T ∈ R2 | x · y = 0}.
(e) Let V = {(x, y)T ∈ R2 | x = y 2 }.
(f ) Let V = {α(1, 1, 1)T + β(1, 1, −1)T | α, β ∈ R}.
3.1.1 Subspaces
Definition 3.1.7. Let V be a vector space over F. Then, a non-empty subset S of V is called a
subspace of V if S is also a vector space with vector addition and scalar multiplication inherited
from V.
3. Let V be a vector space. Then V and {0} are subspaces, called trivial subspaces.
4. The real vector space R has no non-trivial subspace. To check this, let V 6= {0} be a
vector subspace of R. Then, there exists x ∈ R, x 6= 0 such that x ∈ V. Now, using scalar
multiplication, we see that {αx | α ∈ R} ⊆ V. As, x 6= 0, the set {αx | α ∈ R} = R. This
in turn implies that V = R.
9. Is the set of sequences converging to 0 a subspace of the set of all bounded sequences?
Let V(F) be a vector space and W ⊆ V, W 6= ∅. We now prove a result which implies that
to check W to be a subspace, we need to verify only one condition.
Proof. Let W be a subspace of V and let u, v ∈ W. Then, for every α, β ∈ F, αu, βv ∈ W and
hence αu + βv ∈ W.
Now, we assume that αu + βv ∈ W, whenever α, β ∈ F and u, v ∈ W. To show, W is a
subspace of V:
4. The commutative and associative laws of vector addition hold as they hold in V.
5. The conditions related with scalar multiplication and the distributive laws also hold as
they hold in V.
72 CHAPTER 3. VECTOR SPACES
2. Prove that a line in R2 is a subspace if and only if it passes through (0, 0)T ∈ R2 .
6. Are all the sets given below subspaces of R[x]? Recall that the degree of the zero polynomial
DR
is assumed to be −∞.
8. Among the following, determine the subspaces of the complex vector space Cn ?
Definition 3.1.11. Let V be a vector space over F. Then, for any u1 , . . . , un ∈ V and
n
α1 , . . . , αn ∈ F, the vector α1 u1 + · · · + αn un =
P
αi ui is said to be a linear combina-
i=1
tion of the vectors u1 , . . . , un .
2. (3, 4, 5) is not a linear combination of (1, 1, 1) and (1, 2, 1) as the linear system (3, 4, 5) =
a(1, 1, 1) + b(1, 2, 1), in the variables a and b has no solution.
3. Is (4, 5, 5) a linear combination of eT1 = (1, 0, 0), eT2 = (0, 1, 0) and eT3 = (3, 3, 1)?
Solution: (4, 5, 5) is a linear combination as (4, 5, 5) = 4eT1 + 5eT2 + 5eT3 .
and p3 (x) = 3 + 3x + x2 + x3 ?
DR
in the variables a, b, c ∈ R has a solution. Verify that the system has no solution. Thus,
4 + 5x + 5x2 + x3 is not a linear combination of the given set of polynomials.
1 3 4 0 1 1 0 1 2
3 3 6 a linear combination of the vectors I3 , 1 1 2 and 1 0 2?
6. Is
4 6 5 1 2 0 2 2 4
1 3 4 0 1 1 0 1 2
Solution: Verify that 3 3 6 = I3 + 21 1 2 + 1
0 2. Hence, it is indeed a
4 6 5 1 2 0 2 2 4
linear combination of given vectors of M3 (R).
Exercise 3.1.13. 1. Let x ∈ R3 . Prove that xT is a linear combination of (1, 0, 0), (2, 1, 0)
and (3, 3, 1). Is this linear combination unique? That is, does there exist (a, b, c) 6= (e, f, g)
with xT = a(1, 0, 0) + b(2, 1, 0) + c(3, 3, 1) = e(1, 0, 0) + f (2, 1, 0) + g(3, 3, 1)?
(c) (x, y, z) is a linear combination of (1, 1, 1), (1, 1, 0) and (1, −1, 0).
Definition 3.1.14. Let V be a vector space over F and S ⊆ V. Then, the linear span of S,
denoted LS(S), is defined as
That is, LS(S) is the set of all possible linear combinations of finitely many vectors of S. If S
is an empty set, we define LS(S) = {0}.
0 0 z + y − 2x
the required condition on x, y and z is given by z + y − 2x = 0. Hence,
DR
3. S = {1 + 2x + 3x2 , 1 + x + 2x2 , 1 + 2x + x3 }.
Solution: To understand LS(S), we need to find condition(s) on α, β, γ, δ such that the
linear system
in the unknowns α, β, γ is always consistent. Now, verify that the required condition
equals
a22 + a33 − a13
LS(S) = {A = [aij ] ∈ M3 (R) | A = AT , a11 = ,
2
a22 − a33 + 3a13 a22 − a33 + 3a13
a12 = , a23 = .
4 2
Exercise 3.1.16. Determine the equation of the geometrical object represented by LS(S).
1. S = {π} ⊆ R.
4. S = {(1, 0, 1)T , (0, 1, 0)T , (2, 0, 2)T } ⊆ R3 . Give two examples of vectors u, v different
from the given set such that LS(S) = LS(u, v).
Definition 3.1.17. Let V be a vector space over F. Then, V is called finite dimensional if
there exists S ⊆ V, such that S has finite number of elements and V = LS(S). If such an S
does not exist then V is called infinite dimensional.
Example 3.1.18. 1. {(1, 2)T , (2, 1)T } spans R2 . Thus, R2 is finite dimensional.
4. C[x] is not finite dimensional as the degree of a polynomial can be any large positive
integer. Indeed, verify that C[x] = LS({1, x, x2 , . . . , xn , . . .}).
Lemma 3.1.19 (Linear Span is a Subspace). Let V be a vector space over F and S ⊆ V. Then,
LS(S) is a subspace of V.
Theorem 3.1.21. Let V be a vector space over F and S ⊆ V. Then, LS(S) is the smallest
subspace of V containing S.
Proof. For every u ∈ S, u = 1 · u ∈ LS(S). Thus, S ⊆ LS(S). Need to show that LS(S) is the
smallest subspace of V containing S. So, let W be any subspace of V containing S. Then, by
Exercise 3.1.20, LS(S) ⊆ W and hence the result follows.
T
1. Let S and T be two subsets of V. Then, the sum of S and T , denoted S + T equals
DR
Lemma 3.1.23. Let P and Q be two subspaces of a vector space V over F. Then, P + Q is a
subspace of V. Furthermore, P + Q is the smallest subspace of V containing both P and Q.
7. Let S = {x1 , x2 , x3 , x4 }, where x1 = (1, 0, 0)T , x2 = (1, 1, 0)T , x3 = (1, 2, 0)T and x4 =
(1, 1, 1)T . Then, determine all xi such that LS(S) = LS(S \ {xi }).
8. Let W = LS((1, 0, 0)T , (1, 1, 0)T ) and U = LS((1, 1, 1)T ). Prove that W + U = R3 and
W ∩ U = {0}. If v ∈ R3 , determine w ∈ W and u ∈ U such that v = w + u. Is it
T
AF
9. Let W = LS((1, −1, 0), (1, 1, 0)) and U = LS((1, 1, 1), (1, 2, 1)). Prove that W + U = R3
and W ∩ U 6= {0}. Find v ∈ R3 such that v = w + u, for 2 different choices of w ∈ W
and u ∈ U. That is, the choice of vectors w and u is not unique.
Let V be a vector space over either R or C. Then, we have learnt the following:
1. for any S ⊆ V, LS(S) is again a vector space. Moreover, LS(S) is the smallest subspace
containing S.
3. if S has at least one non zero vector then LS(S) contains infinite number of vectors.
3. Suppose we have found S ⊆ V such that LS(S) = V. Can we find S such that no proper
subset of S spans V?
α1 u1 + α2 u2 + · · · + αm um = 0, (3.2.1)
in the variables αi ’s, 1 ≤ i ≤ m, has only the trivial solution. If Equation (3.2.1) has a
non-trivial solution then S is said to be linearly dependent.
If S has infinitely many vectors then S is said to be linearly independent if for every
finite subset T of S, T is linearly independent.
Observe that we are solving a linear system over F. Hence, linear independence and depen-
dence depend on F, the set of scalars.
Example 3.2.2. 1. Is the set S a linear independent set? Give reasons.
(a) Let S = {1 + 2x + x2 , 2 + x + 4x2 , 3 + 3x + 5x2 } ⊆ R[x; 2].
h ia
2 2
Solution: Consider the system 1 + 2x + x 2 + x + 4x 3 + 3x + 5x 2
b = 0,
c
2 2 2
or equivalently a(1 + 2x + x ) + b(2 + x + 4x ) + c(3 + 3x + 5x ) = 0, in the variables
a, b and c. As two polynomials are equal if and only if their coefficients are equal,
T
in the variables a, b and c has only the trivial solution. To verify this, evaluate
π π
Equation (3.2.2) at − , 0 and to get the homogeneous system a − b = 0, a + c =
2 2
0, a + b = 0. Clearly, this system has only the trivial solution.
(c) Let S = {(0, 1, 1)T , (1, 1, 0)T , (1, 0, 1)T }.
h ia
Solution: Consider the system (0, 1, 1) (1, 1, 0) (1, 0, 1) b = (0, 0, 0) in the
c
variables a, b and c. As rank of coefficient matrix is 3 = the number of variables, the
system has only the trivial solution. Hence, S is a linearly independent subset of R3 .
(d) Consider C as a complex vector space and let S = {1, i}.
Solution: Since C is a complex vector space, i · 1 + (−1)i = i − i = 0. So, S is a
linear dependent subset of the complex vector space C.
3.2. LINEAR INDEPENDENCE 79
2. Let A ∈ Mm,n (C). If Rank(A) < m then, the rows of A are linearly dependent. " #
C
Solution: As Rank(A) < m, there exists an invertible matrix P such that P A = .
0
m
Thus, 0T = (P A)[m, :] =
P
pmi A[i, :]. As P is invertible, at least one pmi 6= 0. Thus, the
i=1
required result follows.
3. Let A ∈ Mm,n (C). If Rank(A) < n then, the columns of A are linearly dependent.
Solution: As Rank(A) < n, by Corollary 2.3.8, there exists an invertible matrix Q such
h i n
P
that AQ = B 0 . Thus, 0 = (AQ)[:, n] = qin A[:, i]. As Q is invertible, at least one
i=1
qin 6= 0. Thus, the required result follows.
The reader is expected to supply the proof of parts that are not given.
Proof. Let 0 ∈ S. Then, 1 · 0 = 0. That is, a non-trivial linear combination of some vectors in
S is 0. Thus, the set S is linearly dependent.
We now prove a couple of results which will be very useful in the next section.
So,
w1 a11 u1 + · · · + a1k uk a11 · · · a1k u1
. . . . . .
. = .. = . .. .. .. .
. .
wm am1 u1 + · · · + amk uk am1 · · · amk uk
As m > k, using Corollary 2.4.6, the linear system xT A = 0T has a non-trivial solution, say
y 6= 0, i.e., yT A = 0T . Thus,
w1 u1 u1 u1
. . . .
yT .
. =y
T A . = (y A) . = 0 . = 0T .
.
T
.
T
.
wm uk uk uk
Proof. Observe that Rn = LS({e1 , . . . , en }), where ei = In [:, i], is the i-th column of In . Hence,
using Theorem 3.2.5, the required result follows.
T
Theorem 3.2.7. Let S be a linearly independent subset of a vector space V over F. Then, for
AF
Proof. Let us assume that S ∪ {v} is linearly dependent. Then, there exist vi ’s in S such that
the linear system
α1 v1 + · · · + αp vp + αp+1 v = 0 (3.2.3)
Corollary 3.2.8. Let V be a vector space over F and let S be a subset of V containing a
non-zero vector u1 .
3.2. LINEAR INDEPENDENCE 81
1. If S is linearly dependent then, there exists k such that LS(u1 , . . . , uk ) = LS(u1 , . . . , uk−1 ).
Or equivalently, if S is a linearly dependent set then there exists a vector uk , for k ≥ 2,
which is a linear combination of the previous vectors.
Theorem 3.2.9. Let A ∈ Mm,n (C). Then, the rows of A corresponding to the pivotal rows of
RREF(A) are linearly independent. Also, the columns of A corresponding to the pivotal columns
of RREF(A) are linearly independent.
Proof. Let RREF(A) = B. Then, the pivotal rows of B are linearly independent due to the
pivotal 1’s. Now, let B1 be the submatrix of B consisting of the pivotal rows of B. Also, let
A1 be the submatrix of A whose rows corresponds to the rows of B1 . As the RREF of a matrix
is unique (see Corollary 2.2.18) there exists an invertible matrix Q such that QA1 = B1 . So, if
T
with dT = cT Q−1 6= 0T as Q is an invertible matrix (see Theorem 2.5.1). This contradicts the
linear independence of the rows of B1 .
Let B[:, i1 ], . . . , B[:, ir ] be the pivotal columns of B. Then, they are linearly independent
due to pivotal 1’s. As B = RREF(A), there exists an invertible matrix P such that B = P A.
Then, the corresponding columns of A satisfy
We end this section with a result that states that linear combination with respect to linearly
independent set is unique.
Lemma 3.2.12. Let S be a linearly independent subset of a vector space V over F. Then, each
v ∈ LS(S) is a unique linear combination of vectors from S.
T
AF
Proof. Suppose there exists v ∈ LS(S) with v ∈ LS(T1 ), LS(T2 ) with T1 , T2 ⊆ S. Let T1 =
{v1 , . . . , vk } and T2 = {w1 , . . . , w` }, for some vi ’s and wj ’s in S. Define T = T1 ∪ T2 . Then,
DR
T is a subset of S. Hence, using Proposition 3.2.3, the set T is linearly independent. Let T =
{u1 , . . . , up }. Then, there exist αi ’s and βj ’s in F, not all zero, such that v = α1 u1 + · · · + αp up
as well as v = β1 u1 + · · · + βp up . Equating the two expressions for v gives
Exercise 3.2.13. 1. Suppose V is a vector space over R as well as over C. Then, prove that
{u1 , . . . , uk } is a linearly independent subset of V over C if and only if {u1 , . . . , uk , iu1 , . . . , iuk }
is a linearly independent subset of V over R.
2. Is the set {1, x, x2 , . . .} a linearly independent subset of the vector space C[x] over C?
5. Prove that
3.2. LINEAR INDEPENDENCE 83
(a) the rows/columns of A ∈ Mn (C) are linearly independent if and only if det(A) 6= 0.
(b) the rows/columns of A ∈ Mn (C) span Cn if and only if A is an invertible matrix.
(c) the rows/columns of a skew-symmetric matrix A of odd order are linearly dependent.
Hint: Suppose A is not invertible. Then there exists x0 = x01 · · · x0n 6= 0 such that
AF
x01 x01
..
= u1 · · · un A .. = u1 · · · un 0 = 0,
h i h i h i
w1 · · · wn . .
x0n x0n
9. Let S = {(1, 1, 1, 1)T , (1, −1, 1, 2)T , (1, 1, −1, 1)T } ⊆ R4 . Does (1, 1, 2, 1)T ∈ LS(S)? Fur-
thermore, determine conditions on x, y, z and u such that (x, y, z, u)T ∈ LS(S).
10. Show that S = {(1, 2, 3)T , (−2, 1, 1)T , (8, 6, 10)T } ⊆ R3 is linearly dependent.
11. Find u, v, w ∈ R4 such that {u, v, w} is linearly dependent whereas {u, v}, {u, w} and
{v, w} are linearly independent.
12. Let A ∈ Mn (R). Suppose x, y ∈ Rn \ {0} such that Ax = 3x and Ay = 2y. Then, prove
that x and y are linearly independent.
84 CHAPTER 3. VECTOR SPACES
2 1 3
. Determine x, y, z ∈ R3 \ {0} such that Ax = 6x, Ay = 2y and
13. Let A =
4 −1 3
3 −2 5
Az = −2z. Use the vectors x, y and z obtained above to prove the following.
Example 3.3.2. Let T = {2, 3, 4, 7, 8, 10, 12, 13, 14, 15}. Then, a maximal subset of T of
T
AF
consecutive integers is S = {2, 3, 4}. Other maximal subsets are {7, 8}, {10} and {12, 13, 14, 15}.
Note that {12, 13} is not maximal. Why?
DR
Definition 3.3.3. Let V be a vector space over F. Then, S is called a maximal linearly
independent subset of V if
1. S is linearly independent and
2. no proper superset of S in V is linearly independent.
Example 3.3.4. 1. In R3 , the set S = {e1 , e2 } is linearly independent but not maximal as
S ∪ {(1, 1, 1)T } is a linearly independent set containing S.
2. In R3 , S = {(1, 0, 0)T , (1, 1, 0)T , (1, 1, −1)T } is a maximal linearly independent set as S is
linearly independent and any collection of 4 or more vectors from R3 is linearly dependent
(see Corollary 3.2.6).
3. Let S = {v1 , . . . , vk } ⊆ Rn . Now, form the matrix A = [v1 , . . . , vk ] and let B =
RREF(A). Then, using Theorem 3.2.9, we see that if B[:, i1 ], . . . , B[:, ir ] are the pivotal
columns of B then {vi1 , . . . , vir } is a maximal linearly independent subset of S.
4. Is the set {1, x, x2 , . . .} a maximal linearly independent subset of C[x] over C?
5. Is the set {eij | 1 ≤ i ≤ m, 1 ≤ j ≤ n} a maximal linearly independent subset of Mm,n (C)
over C?
Theorem 3.3.5. Let V be a vector space over F and S a linearly independent set in V. Then,
S is maximal linearly independent if and only if LS(S) = V.
3.3. BASIS OF A VECTOR SPACE 85
Proof. Let v ∈ V. As S is linearly independent, using Corollary 3.2.8.2, the set S ∪ {v} is
linearly independent if and only if v ∈ V \ LS(S). Thus, the required result follows.
Let V = LS(S) for some set S with | S | = k. Then, using Theorem 3.2.5, we see that if
T ⊆ V is linearly independent then | T | ≤ k. Hence, a maximal linearly independent subset
of V can have at most k vectors. Thus, we arrive at the following important result.
Theorem 3.3.6. Let V be a vector space over F and let S and T be two finite maximal linearly
independent subsets of V. Then, | S | = | T | .
Proof. By Theorem 3.3.5, S and T are maximal linearly independent if and only if LS(S) =
V = LS(T ). Now, use the previous paragraph to get the required result.
Let V be a finite dimensional vector space. Then, by Theorem 3.3.6, the number of vectors
in any two maximal linearly independent set is the same. We use this number to define the
dimension of a vector space. We do so now.
Definition 3.3.7. Let V be a finite dimensional vector space over F. Then, the number of
vectors in any maximal linearly independent set is called the dimension of V, denoted dim(V).
By convention, dim({0}) = 0.
Example 3.3.8. 1. As {1} is a maximal linearly independent subset of R, dim(R) = 1.
5. Using Exercise 3.2.13.1, {e1 , . . . , en , ie1 , . . . , ien } is a maximal linearly independent subset
in Cn over R. Thus, as a real vector space, dim(Cn ) = 2n.
Definition 3.3.9. Let V be a vector space over F. Then, a maximal linearly independent subset
of V is called a basis/Hamel basis of V. The vectors in a basis are called basis vectors. By
convention, a basis of {0} is the empty set.
Remark 3.3.11 (Standard Basis). The readers should verify the statements given below.
1. All the maximal linearly independent set given in Example 3.3.8 form the standard basis
of the respective vector space.
3. Fix a positive integer n. Then, {1, x, x2 , . . . , xn } is the standard basis of R[x; n] over R.
86 CHAPTER 3. VECTOR SPACES
5. Let V = {A ∈ Mn (R) | AT = −A}. Then, V is a vector space over R with standard basis
{eij − eji | 1 ≤ i < j ≤ n}.
Example 3.3.12. 1. Note that {−2} is a basis and a minimal spanning subset in R.
3. {(1, 1, −1)T , (1, −1, 1)T , (−1, 1, 1)T } is a basis and a minimal spanning subset of R3 .
6. Let S = {a1 , . . . , an }. Then, RS is a real vector space (see Example 3.1.4.9). For 1 ≤ i ≤ n,
define the functions (
1 if j = i
ei (aj ) = .
T
0 otherwise
AF
7. Let S = Rn and consider the vector space RS (see Example 3.1.4.9). For 1 ≤ i ≤ n, define
the functions ei (x) = ei (x1 , . . . , xn ) = xi . Then, verify that {e1 , . . . , en } is a linearly
independent subset of RS over R. Is it a basis of RS over R?
9. Recall the vector space C[a, b], where a < b ∈ R. For each α ∈ [a, b], define
Suppose α, β and γ are three distinct real numbers in [a, b]. Then prove that {fα , fβ , f )γ }
is linearly dependent subset of C[a, b].
Theorem 3.3.13. Let V be a non-zero vector space over F. Then, the following statements are
equivalent.
3.3. BASIS OF A VECTOR SPACE 87
Remark 3.3.14. Let B be a basis of a vector space V over F. Then, for each v ∈ V, there exist
n
unique ui ∈ B and unique αi ∈ F, for 1 ≤ i ≤ n, such that v =
P
αi ui .
i=1
The next result is generally known as “every linearly independent set can be extended to
form a basis of a finite dimensional vector space”.
T
AF
Theorem 3.3.15. Let V be a vector space over F with dim(V) = n. If S is a linearly independent
DR
Proof. If LS(S) = V, done. Else, choose u1 ∈ V \ LS(S). Thus, by Corollary 3.2.8.2, the set
S ∪{u1 } is linearly independent. We repeat this process till we get n vectors in T as dim(V) = n.
By Theorem 3.3.13, this T is indeed a required basis.
We end this section with an algorithm which is based on the proof of the previous theorem.
(a) prove that any set consisting of n linearly independent vectors forms a basis of V.
(b) prove that if S is a subset of V having n vectors with LS(S) = V then, S forms a
basis of V.
4. Let {v1 , . . . , vn } be a basis of Cn . Then, prove that the two matrices B = [v1 , . . . , vn ] and
v1T
.
C= .
. are invertible.
vnT
5. Let A ∈ Mn (C) be an invertible matrix. Then, prove that the rows/columns of A form a
basis of Cn over C.
6. Let W1 and W2 be two subspaces of a finite dimensional vector space V such that W1 ⊆ W2 .
Then, prove that W1 = W2 if and only if dim(W1 ) = dim(W2 ).
T
Also, prove that for each v ∈ V there exist unique vectors w1 ∈ W1 and w2 ∈ W2 with
v = w1 + w2 . The subspace W2 is called the complementary subspace of W1 in V.
8. Let V be a finite dimensional vector space over F. If W1 and W2 are two subspaces of V
such that W1 ∩W2 = {0} and dim(W1 )+dim(W2 ) = dim(V) then prove that W1 +W2 = V.
9. Consider the vector space C([−π, π]) over R. For each n ∈ N, define en (x) = sin(nx).
Then, prove that S = {en | n ∈ N} is linearly independent. [Hint: Need to show that every
finite subset of S is linearly independent. So, on the contrary assume that there exists ` ∈ N and
functions ek1 , . . . , ek` such that α1 ek1 + · · · + α` ek` = 0, for some αt 6= 0 with 1 ≤ t ≤ `. But,
the above system is equivalent to looking at α1 sin(k1 x) + · · · + α` sin(k` x) = 0 for all x ∈ [−π, π].
Now in the integral
Z π Z π
sin(mx) (α1 sin(k1 x) + · · · + α` sin(k` x)) dx = sin(mx)0 dx = 0
−π −π
replace m with ki ’s to show that αi = 0, for all i, 1 ≤ i ≤ `. This gives the required contradiction.]
10. Is the set {1, sin(x), cos(x), sin(2x), cos(2x), sin(3x), cos(3x), . . .} a linearly subset of the
vector space C([−π, π], R) over R?
12. Find a basis of R3 containing the vector (1, 1, −2)T and (1, 2, −1)T .
13. Is it possible to find a basis of R4 containing the vectors (1, 1, 1, −2)T , (1, 2, −1, 1)T and
(1, −2, 7, −11)T ?
14. Show that B = {(1, 0, 1)T , (1, i, 0)T , (1, 1, 1 − i)T } is a basis of C3 over C.
15. Find a basis of C3 over R containing the basis B given in Example 3.3.16.14.
19. Let uT = (1, 1, −2), vT = (−1, 2, 3) and wT = (1, 10, 1). Find a basis of LS(u, v, w).
Determine a geometrical representation of LS(u, v, w).
20. Is the set W = {p(x) ∈ R[x; 4] | p(−1) = p(1) = 0} a subspace of R[x; 4]? If yes, find its
dimension.
In this section, we will study results that are intrinsic to the understanding of linear algebra
DR
from the point of view of matrices. So, we start with defining the four fundamental subspaces
associated with a matrix.
Definition 3.4.1. Let A ∈ Mm,n (C). Then, we define the four fundamental subspaces associ-
ated with A as
1. Col(A) = {Ax | x ∈ Cn } is a subspace of Cm , called the Column space, and is the
linear span of the columns of A.
2. Row(A) = Col(AT ) = {AT x | x ∈ Cm } is a subspace of Cn , called the row space of A
and is the linear span of the rows of A.
3. Col(A∗ ) = {A∗ x | x ∈ Cm }.
4. Null(A) = {x ∈ Cn | Ax = 0}, called the Null space of A.
5. Null(A∗ ) = {x ∈ Cm | A∗ x = 0}.
x1 x7 − x2 − x4 − x5 −1 −1 −1 1
DR
x2 x2 1 0 0 0
x3 2x7 − 2x4 − 3x5 0 −2 −3 2
x4 = x4
= x 2
0 + x 4
1 + x 5
0 + x 7
0 . (3.4.1)
x5 x5 0 0 1 0
x
6 −x7
0
0
0
−1
x7 x7 0 0 0 1
h i h i h i
Now, let uT1 T T
= −1, 1, 0, 0, 0, 0, 0 , u2 = −1, 0, −2, 1, 0, 0, 0 , u3 = −1, 0, −3, 0, 1, 0, 0
h i
and uT4 = 1, 0, 2, 0, 0, −1, 1 . Then, S = {u1 , u2 , u3 , u4 } is a basis of Null(A). The
reasons for S to be a basis are as follows:
Remark 3.4.4. Let A ∈ Mm,n (R). Then, in Example ??, observe that the direction ratios of
normal vectors of Col(A) matches with vector in Null(AT ). Similarly, the direction ratios
of normal vectors of Row(A) matches with vectors in Null(A). Are these true in the general
setting? Do similar relations hold if A ∈ Mm,n (C)? We will come back to these spaces again
and again.
Exercise 3.4.5. 1. For the matrices given below, determine Col(A), Row(A), Null(A),
Null(AT ).
Further, find
the dimensions
of all the vector subspaces so obtained.
1 2 1 3 2 2 4 0 6
1 i 2i
−1 0 −2
0 2 2 2 4 5
A= and C = i −2 −3 .
2 −2 4 0 8 , B = −3 −5 1
−4
1 1 1+i
4 2 5 6 10 −1 −1 1 2
Ans: Verify that Col(C) = {(x1 , x2 , x3 ) ∈ C3 | (2 + i)x1 − (1 − i)x2 − x3 = 0}.
Col(C ∗ ) = {(x1 , x2 , x3 ) ∈ C3 | ix1 − x2 + x3 = 0}. Null(C) = LS((i, 1, −1)T ).
Null(C ∗ ) = LS((−2 + i, 1 + i, 1)T ).
The next result is a re-writing of the results on system of linear equations. We give the
proof for the sake of completeness.
T
1. B = EA then
DR
(a) Null(A) = Null(B), Row(A) = Row(B). Thus, the dimensions of the corre-
sponding spaces are equal.
(b) Null(A) = Null(B), Row(A) = Row(B). Thus, the dimensions of the corre-
sponding spaces are equal.
2. B = AE then
(a) Null(A∗ ) = Null(B ∗ ), Col(A) = Col(B). Thus, the dimensions of the corre-
sponding spaces are equal.
(b) Null(AT ) = Null(B T ), Col(A) = Col(B). Thus, the dimensions of the corre-
sponding spaces are equal.
Proof. Part 1a: Let x ∈ Null(A). Then, Bx = EAx = E0 = 0. So, Null(A) ⊆ Null(B).
Further, if x ∈ Null(B), then Ax = (E −1 E)Ax = E −1 (EA)x = E −1 Bx = E −1 0 = 0. Hence,
Null(B) ⊆ Null(A). Thus, Null(A) = Null(B).
Let us now prove Row(A) = Row(B). So, let xT ∈ Row(A). Then, there exists y ∈ Cm
such that xT = yT A. Thus, xT = yT E −1 EA = yT E −1 B and hence xG ∈ Row(B). That
is, Row(A) ⊆ Row(B). A similar argument gives Row(B) ⊆ Row(A) and hence the required
result follows.
Part 1b: E is invertible implies E is invertible and B = EA. Thus, an argument similar to
the previous part gives us the required result.
92 CHAPTER 3. VECTOR SPACES
For Part 2, note that B ∗ = E ∗ A∗ and E ∗ is invertible. Hence, an argument similar to the
first part gives the required result.
Let W1 and W1 be two subspaces of a vector space V over F. Then, recall that (see
Exercise 3.1.24.4d) W1 + W2 = {u + v | u ∈ W1 , v ∈ W2 } = LS(W1 ∪ W2 ) is the smallest
subspace of V containing both W1 and W2 . We now state a result similar to a result in Venn
diagram that states | A | + | B | = | A ∪ B | + | A ∩ B |, whenever the sets A and B are
finite (for a proof, see Appendix 7.4.1).
Theorem 3.4.7. Let V be a finite dimensional vector space over F. If W1 and W2 are two
subspaces of V then
For better understanding, we give an example for finite subsets of Rn . The example uses
Theorem 3.2.9 to obtain bases of LS(S), for different choices S. The readers are advised to see
Example 3.2.9 before proceeding further.
Alternatively, First find bases of V, W and V∩W, say BV , BW and B. Now, consider
AF
Thus, B = {(1, 2, 0, 1, 2)T , (0, 0, 1, 0, −1)T } is a basis of V∩W. Similarly, a basis of V is given
by C = {(−1, 0, 1, 0, 0)T , (0, 1, 0, 0, 0)T , (3, 0, 0, 1, 0)T , (−1, 0, 0, 0, 1)T } and that of W is given by
D = {(1, 0, 0, 1, 0)T , (0, 1, 1, 0, 0)T , (0, 1, 0, 0, 1)T }. To find the required basis form a matrix
whose rows are the vectors in B, C and D (see Equation(3.4.3)) and apply row operations other
than Eij . Then, after a few row operations, we get
1 2 0 1 2 1 2 0 1 2
−1 0 1 0 −1
0 0 1 0 0
−1 0 1 0 0 0 1 0 0 0
0 1 0 0 0 0 0 0 1 3
3 0 0 1 0 → 0 0 0 0 0 . (3.4.3)
−1 0 0 0 1 0 0 0 0 0
1 0 0 1 0 0 1 0 0 1
0 1 1 0 0 0 0 0 0 0
0 1 0 0 1 0 0 0 0 0
3.4. FUNDAMENTAL SUBSPACES ASSOCIATED WITH A MATRIX 93
Thus, a required basis of V is {(1, 2, 0, 1, 2)T , (0, 0, 1, 0, −1)T , (0, 1, 0, 0, 0)T , (0, 0, 0, 1, 3)T }. Sim-
ilarly, a required basis of W is {(1, 2, 0, 1, 2)T , (0, 0, 1, 0, −1)T , (0, 1, 0, 0, 1)T }.
Exercise 3.4.9. 1. Give an example to show that if A and B are equivalent then Col(A)
need not equal Col(B).
3. Let W1 and W2 be two subspaces of a vector space V. If dim(W1 ) + dim(W2 ) > dim(V),
then prove that dim(W1 ∩ W2 ) ≥ 1.
4. Let A ∈ Mm×n (C) with m < n. Prove that the columns of A are linearly dependent.
We now prove the rank-nullity theorem and give some of it’s consequences.
So, D = {Aur+1 , . . . , Aun } spans Col(A). We further need to show that D is linearly indepen-
dent. So, consider the linear system
In other words, we have shown that the only solution of Equation (3.4.5) is the trivial solution.
Hence, {Aur+1 , . . . , Aun } is a basis of Col(A). Thus, the required result follows.
Theorem 3.4.10 is part of what is known as the fundamental theorem of linear algebra (see
Theorem 3.4.13). The following are some of the consequences of the rank-nullity theorem. The
proofs are left as an exercise for the reader.
94 CHAPTER 3. VECTOR SPACES
We end this section by proving the fundamental theorem of linear algebra. We start with
AF
2. S ⊥ = (LS(S))⊥
1. dim(Null(A)) + dim(Col(A)) = n.
⊥ ⊥
2. Null(A) = Col(A∗ ) and Null(A∗ ) = Col(A) .
Corollary 3.4.15. Let A ∈ Mn (C). Then, the function T : Col(A∗ ) → Col(A) defined by
T (x) = Ax is invertible.
Proof. In view of Theorem 3.4.13.3 and the rank-nullity theorem, we just need to show that
the map is one-one. So, suppose that there exist x, y ∈ Col(A∗ ) such that T (x) = T (y).
Or equivalently, Ax = Ay. Thus, x − y ∈ Null(A) = (Col(A∗ ))⊥ (by Theorem 3.4.13.2).
Therefore, x − y ∈ (Col(A∗ ))⊥ ∩ Col(A∗ ) = {0}. Thus, x = y and hence the map is one-one.
Thus, the required result follows.
The readers should look at Example 3.4.3 and Remark 3.4.4. We give one more example.
1 1 0
Example 3.4.16. Let A = 2 1 1 . Then, verify that
3 2 1
1. {(0, 1, 1)T , (1, 1, 2)T } is a basis of Col(A).
2. {(1, 1, −1)T } is a basis of Null(AT ).
3. Null(AT ) = (Col(A))⊥ .
Exercise 3.4.17. 1. Find distinct subspaces W1 and W2
(a) in R2 such that W1 and W2 are orthogonal but not orthogonal complement.
(b) in R3 such that W1 6= {0} and W2 6= {0} are orthogonal, but not orthogonal comple-
ment.
96 CHAPTER 3. VECTOR SPACES
For more information related with the fundamental theorem of linear algebra the interested
readers are advised to see the article “The Fundamental Theorem of Linear Algebra, Gilbert
Strang, The American Mathematical Monthly, Vol. 100, No. 9, Nov., 1993, pp. 848 - 855.”
the above cases, it is helpful to fix the vectors in a particular order and then concentrate only
AF
on the coefficients of the vectors as was done for the system of linear equations where we didn’t
DR
worry about the unknowns. We start with the following example. Note that we will be using
‘small brackets’ in place of ‘braces’ to represent a basis.
R1 2
(d) (Pi (x))2 dx = , for i ≥ 0.
−1 2i + 1
3.5. ORDERED BASES 97
P0 (x) a0 + a32
Here, a0 + a1 x + a2 x2 = a0 + a32 P0 (x) + a1 P1 (x) + 2a32 P2 (x) =
P 1 (x) a1 .
2a2
P2 (x) 3
Definition 3.5.2. Let W be a vector space over F with a basis B = {u1 , . . . , um }. Then, an
AF
ordered basis for W is a basis B together with a one-to-one correspondence between B and
DR
{1, 2, . . . , m}. Since there is an order among the elements of B, we write B = (u1 , . . . , um ). The
matrix B = [u1 , . . . , um ] is an element of Wm and is generally called the basis matrix.
Example 3.5.3. Note that in Example 3.5.5 the matrices [1, x, x2 ], [P0 (x), P1 (x), P2 (x)] and
[u1 , u2 ] were basis matrices corresponding to different vector spaces.
Definition 3.5.4. Let B = [v1 , . . . , vm ] be the basis matrix corresponding to an ordered basis
B of W. Since B is a basis of W, for each v ∈ W, there exist βi , 1 ≤ i ≤ m, such that
β1 β1
m . .
. .
P
v= βi vi = B
. . The vector . , denoted [v]B , is called the coordinate vector of
i=1
βm βm
v with respect to B. Thus,
v1
..
v = B[v]B = [v1 , . . . , vm ][v]B , or equivalently, v = [v]TB
. . (3.5.1)
vm
The last expression is generally viewed as a symbolic expression.
Exercise 3.5.8. Recall that any real square matrix can be written as a sum of Hermitian and
skew-Hermitian matrices. Thus M3 (R) =
U+ W, where U = {A ∈ M3 (R)|A = A} and
T
1 2 3
T
3 1 4
Y ∈ W.
DR
2. hIf C = (e11 , e12 + ei21 , e13 + e31 , e22 , e23 + e32 , e33 ) is an ordered basis of U then [X]TC =
1 2 3 1 2 4 .
h i
3. If D = (e12 − e21 , e13 − e31 , e23 − e32 ) is an ordered basis of W then [Y ]TD = 0 0 −1 .
Definition 3.5.9. Let V be a vector space over F with dim(V) = n. Let A = [v1 , . . . , vn ] and
B = [u1 , . . . , un ] be basis matrices corresponding to the ordered bases A and B, respectively, of
V. Thus, using Equation (3.5.1), we have
where [A]B = [[v1 ]B , . . . , [vn ]B ]. The matrix [A]B is called the matrix of A with respect to
the ordered basis B or the change of basis matrix from A to B.
We now summarize the above discussion which helps us to understand the name ‘change of
basis matrix’ for the matrix [A]B .
Theorem 3.5.10. Let V be a vector space over F with dim(V) = n. Further, let A =
(v1 , . . . , vn ) and B = (u1 , . . . , un ) be two ordered bases of V
3.6. SUMMARY 99
Proof. Part 1: Note that using Equation (3.5.3), we have [v1 , . . . , vn ] = [u1 , . . . , un ][A]B . Hence,
by Exercise 3.2.13.7, the matrix [A]B is invertible, which proves Part 1. A similar argument
gives Part 2.
Part 3: Note that using Equation (3.5.1), B[x]B = x = A[x]A for all x ∈ V. Therefore,
using Equation (3.5.3), we get B[x]B = (B[A]B ) [x]A . As B is invertible, [x]B = [A]B [x]A . This
completes the proof of Part 3. We leave the proof of other parts to the reader.
Example 3.5.11. 1. Let V = Cn , A = [v1 , . . . , vn ] and B = (e1 , . . . , en ) be the standard
ordered basis. Then A = [v1 , . . . , vn ] = [[v1 ]B , . . . , [vn ]B ] = [A]B .
2. Suppose A = (1, 0, 0)T , (1, 1, 0)T , (1, 1, 1)T and B = (1, 1, 1)T , (1, −1, 1)T , (1, 1, 0)T are
two ordered bases of R3 . Then, we verify the statements in the previous result.
−1
x 1 1 1 x x−y
T
(a) Using Equation (3.5.2), y = 0 1 1 y = y − z .
AF
z 0 0 1 z z
A
DR
−1
x 1 1 1 x −1 1 2 x −x + y + 2z
1 1
y = 1 −1 1 y = 2 1 −1 0 y = 2
(b) Similarly, x−y
.
z 1 1 0 z 2 0 −2 z 2x − 2z
B
−1/2 0 1 0 2 0
(c) [A]B = 1/2 0 0, [B]A = 0 −2 1
and [A]B [B]A = I3 .
1 1 0 1 1 0
Remark 3.5.12. Let V be a vector space over F with A = (v1 , . . . , vn ) as an ordered basis.
Then, by Theorem 3.5.10, [v]A is an element of Fn , for each v ∈ V. Therefore,
1. if F = R then, the elements of V correspond to vectors in Rn .
2. if F = C then, the elements of V correspond to vectors in Cn .
Exercise 3.5.13. Let A = (1, 2, 0)T , (1, 3, 2)T , (0, 1, 3)T and B = (1, 2, 1)T , (0, 1, 2)T , (1, 4, 6)T
be two ordered bases of R3 . Then, determine [A]B , [B]A and verify that [A]B [B]A = I3 .
3.6 Summary
In this chapter, we defined vector spaces over F. The set F was either R or C. To define a vector
space, we start with a non-empty set V of vectors and F the set of scalars. We also needed to
do the following:
100 CHAPTER 3. VECTOR SPACES
If all conditions in Definition 3.1.1 are satisfied then V is a vector space over F. If W was a
non-empty subset of a vector space V over F then for W to be a space, we only need to check
whether the vector addition and scalar multiplication inherited from that in V hold in W.
We then learnt linear combination of vectors and the linear span of vectors. It was also shown
that the linear span of a subset S of a vector space V is the smallest subspace of V containing
S. Also, to check whether a given vector v is a linear combination of u1 , . . . , un , we needed to
solve the linear system c1 u1 + · · · + cn un = v in the variables c1 , . . . , cn . Or equivalently, the
system Ax = b, where in some sense A[:, i] = ui , 1 ≤ i ≤ n, xT = [c1 , . . . , cn ] and b = v. It
was also shown that the geometrical representation of the linear span of S = {u1 , . . . , un } is
equivalent to finding conditions in the entries of b such that Ax = b was always consistent.
Then, we learnt linear independence and dependence. A set S = {u1 , . . . , un } is linearly
independent set in the vector space V over F if the homogeneous system Ax = 0 has only the
trivial solution in F. Else S is linearly dependent, whereas before the columns of A correspond
to the vectors ui ’s.
We then talked about the maximal linearly independent set (coming from the homogeneous
system) and the minimal spanning set (coming from the non-homogeneous system) and culmi-
nating in the notion of the basis of a finite dimensional vector space V over F. The following
T
AF
1. A is invertible.
3. RREF(A) = In .
7. Rank(A) = n.
8. det(A) 6= 0.
9. Col(AT ) = Row(A) = Rn .
3.6. SUMMARY 101
11. Col(A) = Rn .
T
AF
DR
102 CHAPTER 3. VECTOR SPACES
T
AF
DR
Chapter 4
Linear Transformations
Definition 4.1.1. Let V and W be vector spaces over F. A function (map) f : V → W is called
DR
where +, · are binary operations in V and ⊕, are the binary operations in W. By L(V, W), we
denote the set of all linear transformations from V to W. In particular, if W = V then the linear
transformation f is called a linear operator and the corresponding set of linear operators is
denoted by L(V).
Definition 4.1.2. Let g, h ∈ L(V, W). Then g and h are said to be equal if g(x) = h(x), for
all x ∈ V.
Example 4.1.3. 1. Let V be a vector space. Then, the maps Id, 0 ∈ L(V), where
(a) Id(v) = v, for all v ∈ V, is commonly called the identity operator.
(b) 0(v) = 0, for all v ∈ V, is commonly called the zero operator.
2. Let V and W be vector spaces over F. Then, 0 ∈ L(V, W), where 0(v) = 0, for all v ∈ V,
is commonly called the zero transformation.
3. The map f (x) = x, for all x ∈ R, is an element of L(R) as f (ax) = ax = af (x) and
f (x + y) = x + y = f (x) + f (y).
103
104 CHAPTER 4. LINEAR TRANSFORMATIONS
4. The map f (x) = (x, 3x)T , for all x ∈ R, is an element of L(R, R2 ) as f (λx) = (λx, 3λx)T =
λ(x, 3x)T = λf (x) and f (x + y) = (x + y, 3(x + y))T = (x, 3x)T + (y, 3y)T = f (x) + f (y).
5. Let V, W and Z be vector spaces over F. Then, for any T ∈ L(V, W) and S ∈ L(W, Z),
the map S ◦ T ∈ L(V, Z), defined by (S ◦ T )(v) = S T (v) for all v ∈ V, is called the
6. Fix a ∈ Rn and define f (x) = aT x, for all x ∈ Rn . Then f ∈ L(Rn , R). In particular, if
x = [x1 , . . . , xn ]T then, for all x ∈ Rn ,
n
xi = 1T x is a linear transformation.
P
(a) f (x) =
i=1
8. Let A ∈ Mm×n (C). Define fA (x) = Ax, for every x ∈ Cn . Then, fA ∈ L(Cn , Cm ). Thus,
DR
10. Fix A ∈ Mn (C). Now, define fA : Mn (C) → Mn (C) and gA : Mn (C) → C by fA (B) =
AB and gA (B) = Tr(AB), for every B ∈ Mn (C). Then, fA and gA are both linear
transformations.
Are the maps f (B) = A∗ B, g(B) = BA, h(B) = tr(A∗ B) and t(B) = tr(BA), for every
B ∈ Mn (C) linear?
11. Is the map T : R[x; n] → R[x; n + 1] defined by T (f (x)) = xf (x), for all f (x) ∈ R[x; n] a
linear transformation?
d
Rx
12. The maps T, S : R[x] → R[x] defined by T (f (x)) = dx f (x) and S(f (x)) = f (t)dt, for all
0
f (x) ∈ R[x] are linear transformations. Is it true that T S = Id? What about ST ?
13. Recall the vector space RN in Example 3.1.4.9. Now, define maps T, S : RN → RN
by T ({a1 , a2 , . . .}) = {0, a1 , a2 , . . .} and S({a1 , a2 , . . .}) = {a2 , a3 , . . .}. Then, T and S,
commonly called the shift operators, are linear operators with exactly one of ST or T S
as the Id map.
4.1. DEFINITIONS AND BASIC PROPERTIES 105
14. Recall the vector space C(R, R) (see Example 3.1.4.11). Define T : C(R, R) → C(R, R)
Rx Rx
by T (f (x)) = f (t)dt. For example, T (sin(x)) = sin(t)dt = 1 − cos(x), for all x ∈ R.
0 0
Then, verify that T is a linear transformation.
Remark 4.1.4. Let A ∈ Mn (C) and define TA : Cn → Cn by TA (x) = Ax, for every x ∈ Cn .
Then, verify that TAk (x) = (TA ◦ TA ◦ · · · ◦ TA )(x) = Ak x, for any positive integer k.
| {z }
k times
We now prove that any linear transformation sends the zero vector to a zero vector.
Proposition 4.1.5. Let T ∈ L(V, W). Suppose that 0V is the zero vector in V and 0W is the
zero vector of W. Then T (0V ) = 0W .
Hence, T (0V ) = 0W .
From now on 0 will be used as the zero vector of the domain and codomain. We now consider
a few more examples.
Example 4.1.6. 1. Does there exist a linear transformation T : V → W such that T (v) 6= 0,
for all v ∈ V?
T
2. Does there exist a linear transformation T : R → R such that T (x) = x2 , for all x ∈ R?
DR
The next result states that a linear transformation is known if we know its image on a basis
of the domain space.
106 CHAPTER 4. LINEAR TRANSFORMATIONS
Lemma 4.1.7. Let V and W be vector spaces over F and let T ∈ L(V, W). Then T is determined
if the image of T on basis vectors of V are known.
h if V is finite dimensional
In particular, i and B = (v1 , . . . , vn ) is an ordered basis of V over
F then T (v) = T (v1 ) · · · T (vn ) [v]B .
Proof. Let B be a basis of V over F. Then, for each v ∈ V, there exist vectors u1 , . . . , uk in B
k
and scalars c1 , . . . , ck ∈ F such that v =
P
ci ui . Thus
i=1
k k k
!
X X X
T (v) = T ci ui = T (ci ui ) = ci T (ui ).
i=1 i=1 i=1
Or equivalently, whenever
c1 c
. i 1
..
h
.
. then T (v) = T (u1 ) · · · T (uk ) . .
v = [u1 , . . . , uk ] (4.1.1)
ck ck
Thus, the image of T on v just depends on where the basis vectors are mapped. This completes
the first part.
c1
n .
.
P
For the second part, let v = . . Hence, using Equation (4.1.1), we
ci vi . Then [v]B =
T
i=1
AF
cn
h i
have T (v) = T (v1 ) · · · T (vn ) [v]B . Thus, the required result follows.
DR
Corollary 4.1.8. Let V and W be vector spaces over F and let T : V → W be a linear
transformation. If B is a basis of V then, Rng(T ) = LS(T (x)|x ∈ B).
Recall that by Example 4.1.3.6, for each a ∈ Rn , the map T (x) = aT x, for each x ∈ Rn , is
a linear transformation from Rn to R. We now show that these are the only ones.
Corollary 4.1.9. [Reisz Representation Theorem] Let T ∈ L(Rn , R). Then, there exists
a ∈ Rn such that T (x) = aT x.
Proof. By Lemma 4.1.7, T is known if we know the image of T on {e1 , . . . , en }, the standard
basis of Rn . So, for 1 ≤ i ≤ n, let T (ei ) = ai , for some ai ∈ R. Now define a = [a1 , . . . , an ]T
and x = [x1 , . . . , xn ]T ∈ Rn . Then
n n n
!
X X X
T (x) = T xi ei = xi T (ei ) = xi ai = aT x for all x ∈ Rn .
i=1 i=1 i=1
Example 4.1.10. In each of the examples given below, state whether a linear transformation
exists or not. If yes, give at least one linear transformation. If not, then give the condition due
to which a linear transformation doesn’t exist.
4.1. DEFINITIONS AND BASIC PROPERTIES 107
1. T : R2 → R2 such that T ((1, 1)T ) = (1, 2)T and T ((1, −1)T ) = (5, 10)""
T?
# " ##
1 1
Solution: Yes, as the set {(1, 1), (1, −1)} is a basis of R2 . Write B = , . Then,
1 −1
using Equation (4.1.1) and [v]B = B −1 v, we get
" #! " " #! " #!# "" ##
x 1 1 x
T = T , T
y 1 −1 y
B
" # " #−1 " # " #" # " #
x+y
1 5 1 1 x 1 5 2 3x − 2y
= = = .
2 10 1 −1 y 2 10 x−y 2 6x − 4y
2. T : R2 → R2 such that T ((1, 1)T ) = (1, 2)T and T ((5, 5)T ) = (5, 10)T ?
Solution: Yes, as (5, 10)T = T ((5, 5)T ) = 5T ((1, 1)T ) = 5(1, 2)T = (5, 10)T .
To construct one such linear transformation, note that B = ((1, 1)T , (1, 0)T ) is a basis of
R2 . Pick v ∈ R2 and define T ((1, 0)T ) = v = (v1 , v2 )T . Then, as above, we get
" #! " " #! " #!# "" ## " #" # " #
x 1 1 x 1 v1 y 1
T = T ,T = =y + (x − y)v.
y 1 0 y 2 v2 x − y 2
B
3. T : R2 → R2 such that T ((1, 1)T ) = (1, 2)T and T ((5, 5)T ) = (5, 11)T ?
Solution: No, as (5, 11)T = T ((5, 5)T ) = 5T ((1, 1)T )5(1, 2)T = (5, 10)T , a contradiction.
T
AF
(a) T 6= 0, T ◦ T = T 2 6= 0, T ◦ T ◦ T = T 3 = 0.
(b) T 6= 0, S 6= 0, S ◦ T = ST 6= 0, T ◦ S = T S = 0.
(c) S ◦ S = S 2 = T 2 = T ◦ T, S 6= T .
(d) T ◦ T = T 2 = Id, T 6= Id.
6. Prove that there exists infinitely many linear transformations T : R3 → R2 such that
T ((1, −1, 1)T ) = (1, 2)T and T ((−1, 1, 2)T ) = (1, 0)T ?
7. Let V be a vector space and let a ∈ V. Then the map Ta : V → V defined by Ta (x) = x+a,
for all x ∈ V is called the translation map. Prove that Ta ∈ L(V) if and only if a = 0.
(a) T ((1, 0, 1)T ) = (1, 2)T , T ((0, 1, 1)T ) = (1, 0)T and T ((1, 1, 1)T ) = (2, 3)T ?
(b) T ((1, 0, 1)T ) = (1, 2)T , T ((0, 1, 1)T ) = (1, 0)T and T ((1, 1, 2)T ) = (2, 3)T ?
10. Let T : R3 → R3 be defined by T ((x, y, z)T ) = (2x − 2y + 2z, −2x + 5y + 2z, 8x + y + 4z)T .
Find x ∈ R3 such that T (x) = (1, 1, −1)T .
T
AF
Determine x, y, z ∈ R3 \ {0} such that T (x) = 6x, T (y) = 2y and T (z) = −2z. Is the set
{x, y, z} linearly independent?
12. Let T : R3 → R3 be defined by T ((x, y, z)T ) = (2x + 3y + 4z, −y, −3y + 4z)T . Determine
x, y, z ∈ R3 \ {0} such that T (x) = 2x, T (y) = 4y and T (z) = −z. Is the set {x, y, z}
linearly independent?
13. Let n ∈ N. Does there exist a linear transformation T : R3 → Rn such that T ((1, 1, −2)T ) =
x, T ((−1, 2, 3)T ) = y and T ((1, 10, 1)T ) = z
(a) with z = x + y?
(b) with z = cx + dy, for some c, d ∈ R?
14. For each matrix A given below, define T ∈ L(R2 ) by T (x) = Ax. What do these linear
operators signify geometrically?
( "√ # " # " √ # " # " #)
cos 2π 2π
1 3 −1 1 1 −1 1 1 − 3 0 −1 3 − sin 3
(a) A ∈ √ ,√ , √ , , 2π
2π
.
2 1 3 2 1 1 2 3 1 1 0 sin 3 cos 3
(" # " # " # " # " # " #)
−1 0 1 0 1 1 1 1 1 2 0 0 1 0
(b) A ∈ , , , , , .
0 1 0 −1 2 1 −1 5 2 4 0 1 0 0
( "√ # " # " √ # " #)
cos 2π 2π
1 3 1 1 1 1 1 1 3 3 sin 3
(c) A ∈ √ ,√ , √ , .
sin 2π 2π
2 1 − 3 2 1 −1 2 3 −1 3 − cos 3
4.2. RANK-NULLITY THEOREM 109
15. Find all functions f : R2 → R2 that fixes the line y = x and sends (x1 , y1 ) for x1 6= y1 to
its mirror image along the line y = x. Or equivalently, f satisfies
16. Consider the space C3 over C. If f ∈ L(C3 ) with f (x) = x, f (y) = (1 + i)y and f (z) =
(2 + 3i)z, for x, y, z ∈ C3 \ {0} then prove that {x, y, z} forms a basis of C3 .
Definition 4.2.1. Let V and W be vector spaces over F and let T : V → W be a linear
transformation. Then the set
1. {T (v)|v ∈ V} is called the range space of T , denoted Rng(T ).
2. {v ∈ V|T (v) = 0} is called the kernel of T , denoted Ker(T ). In certain books, it is also
called the null space of T .
T
AF
Example 4.2.2. Determine Rng(T ) and Ker(T ) of the following linear transformations.
DR
Rng(f ) = LS(f (e1 ), T (e2 ), T (e3 )) = LS (1, 0, 1, 2)T , (−1, 1, 0, −5)T , (1, −1, 0, 5)T
= LS (1, 0, 1, 2)T , (1, −1, 0, 5)T = {λ(1, 0, 1, 2)T + β(1, −1, 0, 5)T | λ, β ∈ R}
2. Let B ∈ M2 (R). Now, define a map T : M2 (R) → M2 (R) by T (A) = BA − AB, for all
A ∈ M2 (R). Determine Rng(T ) and Ker(T ).
Solution: Note that A ∈ Ker(T ) if and only if A commutes with B. In particular,
{I, B, B 2 , . . .} ⊆ Ker(T ). For example, if B is a scalar matrix then, Ker(T ) = M2 (R).
For computing, Rng(T ), recall that {eij |1 ≤ i, j ≤ 2} is a basis of M2 (R). So,
110 CHAPTER 4. LINEAR TRANSFORMATIONS
Exercise 4.2.3. 1. Let V and W be vector spaces over F and let T ∈ L(V, W). Then
(a) Rng(T ) is a subspace of W.
(b) Ker(T ) is a subspace of V.
2. Which of the following maps are linear transformations? In case, the map is a linear
transformation, determine its range space and the null space.
3. Which of the following maps T : M2 (R) → M2 (R) are linear operators? In case, T is a
linear operator, determine Rng(T ) and Ker(T ).
(a) T (A) = AT .
(b) T (A) = I + A.
(c) T (A) = A2 .
(d) T (A) = BAB −1 , for some fixed B ∈ M2 (R).
4. Describe Ker(D) and Rng(D), where D ∈ L(R[x; n]) and is defined by D(f (x)) = f 0 (x),
the differentiation with respect to x. Note that Rng(D) ⊆ R[x; n − 1].
5. Define T ∈ L(R[x]) by T (f (x)) = xf (x), for all f (x) ∈ L(R[x]). What can you say about
Ker(T ) and Rng(T )?
8. Find T ∈ L(R3 ) for which Rng(T ) = LS (1, 2, 0)T , (0, 1, 1)T , (1, 3, 1)T .
Theorem 4.2.4. Let V and W be vector spaces over F and let T ∈ L(V, W).
1. If S ⊆ V is linearly dependent then T (S) = {T (v) | v ∈ V} is linearly dependent.
2. Suppose S ⊆ V such that T (S) is linearly independent then S is linearly independent.
Proof. As S is linearly dependent, there exist k ∈ N and vi ∈ S, for 1 ≤ i ≤ k, such that the
k
xi vi = 0, in the unknowns xi ’s, has a non-trivial solution, say xi = ai ∈ F, 1 ≤ i ≤ k.
P
system
i=1
k
P Pk
Thus ai vi = 0. Then ai ’s also give a non-trivial solution to the system yi T (vi ) = 0,
i=1 i=1
k k
k
P P P
where yi ’s are unknown, as ai T (vi ) = T (ai vi ) = T ai vi = T (0) = 0. Hence the
i=1 i=1 i=1
required result follows.
The second part is left as an exercise for the reader.
Definition 4.2.5. Let V and W be vector spaces over F and let T ∈ L(V, W) and dim(V) is
finite then we define Rank(T ) = dim(Rng(T )) and Nullity(T ) = dim(Ker(T )).
We now prove the rank-nullity Theorem. The proof of this result is similar to the proof of
Theorem 3.4.10. We give it again for the sake of completeness.
T
AF
Theorem 4.2.6 (Rank-Nullity Theorem). Let V and W be vector spaces over F. If dim(V) is
finite and T ∈ L(V, W) then
DR
Corollary 4.2.7. Let V and W be finite dimensional vector spaces over F and let T ∈ L(V, W).
If dim(V) = dim(W) then the following statements are equivalent.
1. T is one-one.
2. Ker(T ) = {0}.
3. T is onto.
4. dim(Rng(T )) = dim(V).
Corollary 4.2.8. Let V be a vector space over F with dim(V) = n. If S, T ∈ L(V) then
1. Nullity(T ) + Nullity(S) ≥ Nullity(ST ) ≥ max{Nullity(T ), Nullity(S)}.
2. min{Rank(S), Rank(T )} ≥ Rank(ST ) ≥ n − Rank(S) − Rank(T ).
Proof. The prove of Part 2 is omitted as it directly follows from Part 1 and Theorem 4.2.6.
Part 1: We first prove the second inequality. Suppose v ∈ Ker(T ). Then
To prove the first inequality, let {v1 , . . . , vk } be a basis of Ker(T ). Then {v1 , . . . , vk } ⊆
AF
Now, proceeding as in the proof of the rank-nullity theorem, implies that {T (u1 ), . . . , T (u` )}
is a linearly independent subset of Ker(S). Hence, Nullity(S) ≥ ` and therefore, we get
Nullity(ST ) = k + ` ≤ Nullity(T ) + Nullity(S).
Exercise 4.2.9. 1. Let A ∈ Mn (R) with A2 = A. Define T ∈ L(Rn ) by T (v) = Av for all
v ∈ Rn . Then prove that
Definition 4.2.10. Let V, W be vector spaces over F and let S, T ∈ L(V, W). Then, we define
the point-wise
1. sum of S and T , denoted S + T , by (S + T )(v) = S(v) + T (v), for all v ∈ V.
2. scalar multiplication, denoted cT for c ∈ F, by (cT )(v) = c (T (v)), for all v ∈ V.
4.2. RANK-NULLITY THEOREM 113
Theorem 4.2.11. Let V and W be vector spaces over F. Then L(V, W) is a vector space over
F. Furthermore, if dim V = n and dim W = m, then dim L(V, W) = mn.
Proof. It can be easily verified that under point-wise addition and scalar multiplication, defined
above, L(V, W) is indeed a vector space over F. We now prove the other part. So, let us
assume that B = {v1 , . . . , vn } and C = {w1 , . . . , wm } are bases of V and W, respectively. For
1 ≤ i ≤ n, 1 ≤ j ≤ m, we define the functions fij on the basis vectors of V by
(
wj , if k = i
fij (vk ) =
0, if k 6= i.
n
For other vectors of V, we extend the definition by linearity, i.e., if v =
P
αs vs then
s=1
n n
!
X X
fij (v) = fij αs vs = αs fij (vs ) = αi fij (vi ) = αi wj . (4.2.1)
s=1 s=1
Thus fij ∈ L(V, W). We now show that {fij |1 ≤ i ≤ n, 1 ≤ j ≤ m} is a basis of L(V, W).
As a first step, we show that fij ’s are linearly independent. So, consider the linear system
n P
P m
cij fij = 0, in the unknowns cij ’s, for 1 ≤ i ≤ n, 1 ≤ j ≤ m. Using the point-wise addition
i=1 j=1
and scalar multiplication, we get
T
n Xm n X
m m
AF
X X X
0 = 0(vk ) = cij fij (vk ) =
cij fij (vk ) = ckj wj .
DR
But, the set {w1 , . . . , wm } is linearly independent and hence the only solution equals ckj = 0,
for 1 ≤ j ≤ m. Now, as we vary vk from v1 to vn , we see that cij = 0, for 1 ≤ j ≤ m and
1 ≤ i ≤ n. Thus, we have proved the linear independence.
Now, let us prove that LS ({fij |1 ≤ i ≤ n, 1 ≤ j ≤ m}) = L(V, W). So, let f ∈ L(V, W).
m
Then, for 1 ≤ s ≤ n, f (vs ) ∈ W and hence there exists βst ’s such that f (vs ) =
P
βst wt . So, if
t=1
n
αs vs ∈ V then, using Equation (4.2.1), we get
P
v=
s=1
n n n m n X
m
! !
X X X X X
f (v) = f α s vs = αs f (vs ) = αs βst wt = βst (αs wt )
s=1 s=1 s=1 t=1 s=1 t=1
n Xm n X
m
!
X X
= βst fst (v) = βst fst (v).
s=1 t=1 s=1 t=1
Since the above is true for every v ∈ V, LS ({fij |1 ≤ i ≤ n, 1 ≤ j ≤ m}) = L(V, W) and thus
the required result follows.
Before proceeding further, recall the following definition about a function.
Remark 4.2.13. Let f : S → T be invertible. Then, it can be easily shown that any right
inverse and any left inverse are the same. Thus, the inverse function is unique and is denoted
by f −1 . It is well known that f is invertible if and only if f is both one-one and onto.
Lemma 4.2.14. Let V and W be vector spaces over F and let T ∈ L(V, W). If T is one-one
and onto then, the map T −1 : W → V is also a linear transformation. The map T −1 is called
the inverse linear transform of T and is defined by T −1 (w) = v, whenever T (v) = w.
Proof. Part 1: As T is one-one and onto, by Theorem 4.2.6, dim(V) = dim(W). So, by
Corollary 4.2.7, for each w ∈ W there exists a unique v ∈ V such that T (v) = w. Thus, one
defines T −1 (w) = v.
We need to show that T −1 (α1 w1 + α2 w2 ) = α1 T −1 (w1 ) + α2 T −1 (w2 ), for all α1 , α2 ∈ F
and w1 , w2 ∈ W. Note that by previous paragraph, there exist unique vectors v1 , v2 ∈ V such
that T −1 (w1 ) = v1 and T −1 (w2 ) = v2 . Or equivalently, T (v1 ) = w1 and T (v2 ) = w2 . So,
T (α1 v1 + α2 v2 ) = α1 w1 + α2 w2 , for all α1 , α2 ∈ F. Hence, for all α1 , α2 ∈ F, we get
Definition 4.2.16. Let V and W be vector spaces over F and let T ∈ L(V, W). Then, T is said
to be singular if {0} $ Ker(T ), i.e., Ker(T ) contains a non-zero vector. If Ker(T ) = {0}
then, T is called non-singular.
" #! x
x
Example 4.2.17. Let T ∈ L(R2 , R3 ) be defined by T
=
y . Then, verify that T is
y
0
non-singular. Is T invertible?
Theorem 4.2.18. Let V and W be vector spaces over F and let T ∈ L(V, W). Then the
following statements are equivalent.
1. T is one-one.
4.2. RANK-NULLITY THEOREM 115
2. T is non-singular.
Proof. 1⇒2 Let T be singular. Then, there exists v 6= 0 such that T (v) = 0 = T (0). This
implies that T is not one-one, a contradiction.
2⇒3 Let S ⊆ V be linearly independent. Let if possible T (S) be linearly dependent.
k
Then, there exists v1 , . . . , vk ∈ S and α = (α1 , . . . , αk )T 6= 0 such that
P
αi T (vi ) = 0.
k i=1
k
P P
Thus, T αi vi = 0. But T is nonsingular and hence we get αi vi = 0 with α 6= 0, a
i=1 i=1
contradiction to S being a linearly independent set.
3⇒1 Suppose that T is not one-one. Then, there exists x, y ∈ V such that x 6= y but
T (x) = T (y). Thus, we have obtained S = {x − y}, a linearly independent subset of V with
T (S) = {0}, a linearly dependent set. A contradiction to our assumption. Thus, the required
result follows.
Definition 4.2.19. Let V and W be vector spaces over F and let T ∈ L(V, W). Then, T is
said to be an isomorphism if T is one-one and onto. The vector spaces V and W are said to
be isomorphic, denoted V ∼
= W, if there is an isomorphism from V to W.
Proof. Let {v1 , . . . , vn } be a basis of V and {e1 ,n. . . , en }, the standard basis of F . Now define
n
n
αi ei , for α1 , . . . , αn ∈ F. Then, it is easy to
P P
T (vi ) = ei , for 1 ≤ i ≤ n and T α i vi =
i=1 i=1
observe that T ∈ L(V, Fn ), T is one-one and onto. Hence, T is an isomorphism.
As a direct application using the countability argument, one obtains the following result
Corollary 4.2.21. The vector space R over Q is not finite dimensional. Similarly, the vector
space C over Q is not finite dimensional.
We now summarize the different definitions related with a linear operator on a finite dimen-
sional vector space. The proof basically uses the rank-nullity theorem and they appear in some
form in previous results. Hence, we leave the proof for the reader.
Theorem 4.2.22. Let V be a finite dimensional vector space over F with dim V = n. Then the
following statements are equivalent for T ∈ L(V).
1. T is one-one.
2. Ker(T ) = {0}.
3. Rank(T ) = n.
4. T is onto.
5. T is an isomorphism.
6. If {v1 , . . . , vn } is a basis for V then so is {T (v1 ), . . . , T (vn )}.
116 CHAPTER 4. LINEAR TRANSFORMATIONS
7. T is non-singular.
8. T is invertible.
Exercise 4.2.23. 1. Let V and W be vector spaces over F and let T ∈ L(V, W). If dim(V)
is finite then prove that
and W are vector spaces over F with dimensions n and m, respectively, then any T ∈ L(V, W)
AF
corresponds to a set of m × n matrices. Before proceeding further, the readers should recall the
DR
When there is no mention of bases, we take it to be the standard ordered bases and denote
the corresponding matrix by [T ]. Also, note that for each x ∈ V, the matrix T [A, B][x]A is
the coordinate vector of T (x). Thus, the matrix T [A, B] takes coordinate vector of the domain
points to the coordinate vector of its images. The above discussion is stated as the next result.
4.3. MATRIX OF A LINEAR TRANSFORMATION 117
Remark 4.3.3. Let V and W be vector spaces over F with ordered bases A1 = (v1 , . . . , vn )
and B1 = (w1 , . . . , wm ), respectively. Also, for α ∈ F with α 6= 0, let A2 = (αv1 , . . . , αvn ) and
B1 = (αw1 , . . . , αwm ) be another set of ordered bases of V and W, respectively. Then, for any
T ∈ L(V, W)
h i h i
T [A2 , B2 ] = [T (αv1 )]B2 · · · [T (αv1 )]B2 = [T (vn )]B1 · · · [T (v1 )]B1 = T [A1 , B1 ].
Thus, we see that the same matrix can be the matrix representation of T for two different pairs
of bases.
We now give a few examples to understand the above discussion and Theorem 4.3.2.
Q = (0, 1)
Q′ = (− sin θ, cos θ)
P ′ = (x′ , y ′ )
′
θ P = (cos θ, sin θ)
T
AF
θ P = (x, y)
P = (1, 0)
θ α
DR
O O
1 0 1 1 0 1
AF
5. Define T ∈ L(C3 ) by T (x) = x, for all x ∈ C3 . Determine the coordinate matrix with
DR
respect to the ordered basis A = e1 , e2 , e3 and B = (1, 0, 0), (1, 1, 0), (1, 1, 1) .
By definition, verify that
1 0 0 1 −1 0
T [A, B] = [[T (e1 )]B , [T (e2 )]B , [T (e3 )]B ] = 0 , 1 , 0
= 0 1 −1
0 0 1 0 0 1
B B B
and
1 1 1 1 1 1
T [B, A] =
0 , 1 , 1
= 0 1 1 .
0 0 1 0 0 1
A A A
Thus, verify that T [B, A]−1 = T [A, B] and T [A, A] = T [B, B] = I3 as the given map is
indeed the identity map.
6. Fix S ∈ Mn (C) and define T ∈ L(Cn ) by T (x) = Sx, for all x ∈ Cn . If A is the standard
basis of Cn then [T ] = S as
[T ][:, i] = [T (ei )]A = [S(ei )]A = [S[:, i]]A = S[:, i], for 1 ≤ i ≤ n.
7. Fix S ∈ Mm,n (C) and define T ∈ L(Cn , Cm ) by T (x) = Sx, for all x ∈ Cn . Let A and B
be the standard ordered bases of Cn and Cm , respectively. Then T [A, B] = S as
(T [A, B])[:, i] = [T (ei )]B = [S(ei )]B = [S[:, i]]B = S[:, i], for 1 ≤ i ≤ n.
4.4. SIMILARITY OF MATRICES 119
8. Fix S ∈ Mn (C) and define T ∈ L(Cn ) by T (x) = Sx, for all x ∈ Cn . Let A = (v1 , . . . , vn )
and B = (u1 , . . . , un ) be two ordered basses of Cn with respective basis matrices A and
B. Then
h i h i
T [A, B] = [T (v1 )]B · · · [T (v1 )]B = −1 −1
B T (v1 ) · · · B T (v1 )
h i h i
= B −1 Sv1 · · · B −1 Sv1 = B −1 S v1 · · · vn = B −1 SA.
In particular, if
9. Let T (x, y)T = (x + y, x − y)T and A = (e1 , e1 + e2 ) be the ordered basis of R2 . Then,
1. Let V and W be vector spaces over F with ordered bases A and B, respectively. Suppose
AF
we are given the matrix S = T [A, B]. Then determine the corresponding T ∈ L(V, W).
DR
Solution: Let B be the basis matrix corresponding to the ordered basis B. Then, using
Equation (3.5.1) and Theorem 4.3.2, we see that
Exercise 4.3.6. 1. Let T ∈ L(R2 ) represent the reflection about the line y = mx. Find [T ].
3. Let T ∈ L(R3 ) represent the counterclockwise rotation around the positive Z-axis by an
angle θ, 0 ≤ θ < 2π. Findits matrix with respect to the standard ordered basis of R3 .
cos θ − sin θ 0
[Hint: Is sin θ cos θ 0 the required matrix?]
0 0 1
4. Define a function D ∈ L(R[x; n]) by D(f (x)) = f 0 (x). Find the matrix of D with respect
to the standard ordered basis of R[x; n]. Observe that Rng(D) ⊆ R[x; n − 1].
120 CHAPTER 4. LINEAR TRANSFORMATIONS
(ST )[B, D] = [[ST (u1 )]D , . . . , [ST (un )]D ] = [[S(T (u1 ))]D , . . . , [S(T (un ))]D ]
AF
Theorem 4.4.2 (Inverse of a Linear Transformation). Let V is a vector space with dim(V) = n.
If T ∈ L(V) is invertible then for any ordered basis B and C of the domain and co-domain,
respectively, one has (T [C, B])−1 = T −1 [B, C]. That is, the inverse of the coordinate matrix of
T is the coordinate matrix of the inverse linear transform.
Proof. As T is invertible, T T −1 = Id. Thus, Example 4.3.4.8a and Theorem 4.4.1 imply
Hence, by definition of inverse, T −1 [B, C] = (T [C, B])−1 and the required result follows.
Exercise 4.4.3. Find the matrix of the linear transformations given below.
T (x) = 1 + x, T (x2 ) = (1 + x)2 and T (x3 ) = (1 + x)3 . Prove that T is invertible. Also,
find T [B, B] and T −1 [B, B].
4.4. SIMILARITY OF MATRICES 121
T [B, B]
(V, B) (V, B)
[C, B] [B, C]
(V, C) (V, C)
T [C, C]
Let V be a finite dimensional vector space. Then, the next result answers the question “what
happens to the matrix T [B, B] if the ordered basis B changes to C?”
Theorem 4.4.4. Let B = (u1 , . . . , un ) and C = (v1 , . . . , vn ) be two ordered bases of V and Id
the identity operator. Then, for any linear operator T ∈ L(V)
T [C, C] = Id[B, C] · T [B, B] · Id[C, B] = (Id[C, B])−1 · T [B, B] · Id[C, B]. (4.4.1)
Proof. As Id is an identity operator, T [B, C] as (Id ◦ T ◦ Id)[B, C] (see Figure 4.3 for clarity).
Thus, using Theorem 4.4.1, we get
Let V be a vector space and let T ∈ L(V). If dim(V) = n then every ordered basis B of V
gives an n × n matrix T [B, B]. So, as we change the ordered basis, the coordinate matrix of
T changes. Theorem 4.4.4 tells us that all these matrices are related by an invertible matrix.
Thus, we are led to the following definitions.
Definition 4.4.5. Let V be a vector space with ordered bases B and C. If T ∈ L(V) then,
T [C, C] = Id[B, C] · T [B, B] · Id[C, B]. The matrix Id[B, C] is called the change of basis matrix
(also, see Theorem 3.5.10) from B to C.
Definition 4.4.6. Let X, Y ∈ Mn (C). Then, X and Y are said to be similar if there exists a
non-singular matrix P such that P −1 XP = Y ⇔ XP = P Y .
bases of R[x; 2]. Then, verify that Id[B, C]−1 = Id[C, B], as
−1 1 −2
Id[C, B] = [[1]B , [1 + x]B , [1 + x + x2 ]B ] =
0 0 1 and
1 0 1
0 −1 1
Id[B, C] = [[1 + x]C , [1 + 2x + x2 ]C , [2 + x]C ] =
1 1 1 .
0 1 0
122 CHAPTER 4. LINEAR TRANSFORMATIONS
Exercise 4.4.8. 1. Let V be a vector space with dim(V) = n. Let T ∈ L(V) satisfy
T n−1 6= 0 but Tn = 0. Then, use Exercise 4.1.11.3 to get an ordered basis B =
u, T (u), . . . , T n−1 (u) of V.
0 0 0 ··· 0
1 0 0 · · · 0
(a) Now, prove that T [B, B] = 0
1 0 · · · 0 .
. . . . . ..
. . . .
.
0 0 ··· 1 0
(b) Let A ∈ Mn (C) satisfy An−1 6= 0 but An = 0. Then, prove that A is similar to the
matrix given in Part 1a.
2. Let A be an ordered basis of a vector space V over F with dim(V) = n. Then prove that
the set of all possible matrix representations of T is given by (also see Definition 4.4.5)
3. Let B1 (α, β) = {(x, y)T ∈ R2 : (x − α)2 + (y − β)2 ≤ 1}. Then, can we get a linear
transformation T ∈ L(R2 ) such that T (S) = W , where S and W are given below?
(a) S = B1 (0, 0) and W = B1 (1, 1).
T
(c) S = B1 (0, 0) and W = hull(±e1 , ±e2 ), where hull means the convex hull.
DR
4. Let V, W be vector spaces over F with dim(V) = n and dim(W) = m and ordered bases
B and C, respectively. Define IB,C : L(V, W) → Mm,n (F) by IB,C (T ) = T [B, C]. Show
that IB,C is an isomorphism. Thus, when bases are fixed, the number of m × n matrices
is same as the number of linear transformations.
5. Define T ∈ L(R3 ) by T ((x, y, z)T ) = (x + y + 2z, x − y − 3z, 2x + 3y + z)T . Let B be the
standard ordered basis and C = (1, 1, 1), (1, −1, 1), (1, 1, 2) be another ordered basis of
R3 . Then find
2. Define T (A) = tr(A), for all A ∈ Mn (R). Then, T is a linear functional from Mn (R) to R.
Rb
3. Define T (f ) = f (t)dt, for all f ∈ C([a, b], R). Then, T is a linear functional from
a
L(C([a, b], R) to R.
Rb
4. Define T (f ) = t2 f (t)dt, , for all f ∈ C([a, b], R). Then, T is a linear functional from
a
L(C([a, b], R) to R.
5. Define T : C3 → C by T ((x, y, z)T ) = x. Is it a linear functional?
6. Let B be a basis of a vector space V over F. For a fixed element u ∈ B, define
(
1 if x = u
T (x) =
0 if x ∈ B \ u.
Definition 4.5.3. Let V be a vector space over F. Then L(V, F) is called the dual space of
V and is denoted by V∗ . The double dual space of V, denoted V∗∗ , is the dual space of V∗ .
Corollary 4.5.4. Let V and W be vector spaces over F with dim V = n and dim W = m.
1. Then L(V, W) ∼
= Fmn . Moreover, {fij |1 ≤ i ≤ n, 1 ≤ j ≤ m} is a basis of L(V, W).
T
AF
Exercise 4.5.5. Let V be a vector space. Suppose there exists v ∈ V such that f (v) = 0, for
all f ∈ V∗ . Then prove that v = 0.
So, we see that V∗ can be understood through a basis of V. Thus, one can understand V∗∗
again via a basis of V∗ . But, the question arises “can we understand it directly via the vector
space V itself?” We answer this in affirmative by giving a canonical isomorphism from V to V∗∗ .
To do so, for each v ∈ V, we define a map Lv : V∗ → F by Lv (f ) = f (v), for each f ∈ V∗ . Then
Lv is a linear functional as
So, for each v ∈ V, we have obtained a linear functional Lv ∈ V∗∗ . Note that, if v 6= w then,
Lv 6= Lw . Indeed, if Lv = Lw then, Lv (f ) = Lw (f ), for all f ∈ V∗ . Thus, f (v) = f (w), for all
f ∈ V∗ . That is, f (v − w) = 0, for each f ∈ V∗ . Hence, using Exercise 4.5.5, we get v − w = 0,
or equivalently, v = w.
We use the above argument to give the required canonical isomorphism.
Theorem 4.5.6. Let V be a vector space over F. If dim(V) = n then the canonical map
T : V → V∗∗ defined by T (v) = Lv is an isomorphism.
124 CHAPTER 4. LINEAR TRANSFORMATIONS
Thus, Lαv+u = αLv +Lu . Hence, T (αv+u) = αT (v)+T (u). Thus, T is a linear transformation.
For verifying T is one-one, assume that T (v) = T (u), for some u, v ∈ V. Then, Lv = Lu . Now,
use the argument just before this theorem to get v = u. Therefore, T is one-one.
Thus, T gives an inclusion (one-one) map from V to V∗∗ . Further, applying Corollary 4.5.4.2
to V∗ , gives dim(V∗∗ ) = dim(V∗ ) = n. Hence, the required result follows.
We now give a few immediate consequences of Theorem 4.5.6.
2. If C = {f1 , . . . , fn } is the dual basis of V∗ defined using the basis B (see Corollary 4.5.4.2)
then D is indeed the dual basis of V∗∗ obtained using the basis C of V∗ . Thus, each basis
of V∗ is the dual basis of some basis of V.
Proof. Part 1 is direct as T : V → V∗∗ was a canonical inclusion map. For Part 2, we need to
T
show that
AF
( (
1, if j = i 1, if j = i
DR
Theorem 4.5.8. Let V and W be vector spaces over F with ordered bases A = (v1 , . . . , vn )
and B = (w1 , . . . , wm ), respectively. Also, let A∗ = (f1 , . . . , fn ) and B ∗ = (g1 , . . . , gm ) be the
corresponding ordered bases of the dual spaces V∗ and W∗ , respectively. Then,
n n
P P
Now, recall that the functionals fi ’s and gj ’s satisfy αk fk (vt ) = αk (fk (vt )) = αt ,
k=1 k=1
for 1 ≤ t ≤ n and [gj (w1 ), . . . , gj (wm )] = eTj , a row vector with 1 at the j-th place and 0,
elsewhere. So, let B = [w1 , . . . , wm ] and evaluate Tb(gj ) at vt ’s, the elements of A.
Tb(gj ) (vt ) = gj (T (vt )) = gj (B [T (vt )]B ) = [gj (w1 ), . . . , gj (wm )] [T (vt )]B
T
a1t
AF
n
!
a2t X
= eTj . = ajt =
DR
ajk fk (vt ).
..
k=1
amt
n
P
Thus, the linear functional Tb(gj ) and ajk fk are equal at vt , for 1 ≤ t ≤ n, the basis vectors
k=1
n
of V. Hence Tb(gj ) =
P
ajk fk which gives Equation (4.5.1).
k=1
Remark 4.5.9. The proof of Theorem 4.5.8 also shows the following.
1. For each T ∈ L(V, W) there exists a unique map Tb ∈ L(W∗ , V∗ ) such that
Tb(g) (v) = g (T (v)) , for each g ∈ W∗ .
2. The coordinate matrices T [A, B] and Tb[B ∗ , A∗ ] are transpose of each other, where the
ordered bases A∗ of V∗ and B ∗ of W∗ correspond, respectively, to the ordered bases A of
V and B of W.
3. Thus, the results on matrices and its transpose can be re-written in the language a vector
space and its dual space.
4.6 Summary
126 CHAPTER 4. LINEAR TRANSFORMATIONS
T
AF
DR
Chapter 5
Definition 5.1.1. Let V be a vector space over F. An inner product over V, denoted by
h , i, is a map from V × V to F satisfying
T
AF
2. hu, vi = hv, ui, the complex conjugate of hu, vi, for all u, v ∈ V and
Remark 5.1.2. Using the definition of inner product, we immediately observe that
1. hv, αwi = hαw, vi = αhw, vi = αhv, wi, for all α ∈ F and v, w ∈ V.
2. If hu, vi = 0 for all v ∈ V then in particular hu, ui = 0. Hence, u = 0.
Definition 5.1.3. Let V be a vector space with an inner product h , i. Then, (V, h , i) is called
an inner product space (in short, ips).
Example 5.1.4. Examples 1 and 2 that appear below are called the standard inner product
or the dot product on Rn and Cn , respectively. Whenever an inner product is not clearly
mentioned, it will be assumed to be the standard inner product.
" #
4 −1
3. For x = (x1 , x2 )T , y = (y1 , y2 )T ∈ R2 and A = , define hx, yi = yT Ax. Then,
−1 2
h , i is an inner product as hx, xi = (x1 − x2 )2 + 3x21 + x22 .
127
128 CHAPTER 5. INNER PRODUCT SPACES
" #
a b
4. Fix A = with a, c > 0 and ac > b2 . Then, hx, yi = yT Ax is an inner product on
b c
h i2
bx2
R2 as hx, xi = ax21 + 2bx1 x2 + cx22 = a x1 + 1
ac − b2 x22 .
a + a
6. For x = (x1 , x2 )T , y = (y1 , y2 )T ∈ R2 , we define three maps that satisfy at least one
condition out of the three conditions for an inner product. Determine the condition which
is not satisfied. Give reasons for your answer.
(a) hx, yi = x1 y1 .
(b) hx, yi = x21 + y12 + x22 + y22 .
(c) hx, yi = x1 y13 + x2 y23 .
7. Let A ∈ Mn (C) be a Hermitian matrix. Then, for x, y ∈ Cn , define hx, yi = y∗ Ax. Then,
h , i satisfies hx, yi = hy, xi and hx + αz, yi = hx, yi + αhz, yi, for all x, y, z ∈ Cn and
α ∈ C. Does there exist conditions on A such that hx, xi ≥ 0 for all x ∈ C? This will be
answered in affirmative in the chapter on eigenvalues and eigenvectors.
n n n
If A = [aij ] then hA, Ai = tr(AT A) = (AT A)ii = a2ij and therefore,
P P P
aij aij =
i=1 i,j=1 i,j=1
hA, Ai > 0 for all nonzero matrix A.
R1
9. Consider the complex vector space C[−1, 1] and define hf, gi = f (x)g(x)dx. Then,
−1
R1
(a) hf , f i = | f (x) |2 dx ≥ 0 as | f (x) |2 ≥ 0 and this integral is 0 if and only if f ≡ 0
−1
as f is continuous.
R1 R1 R1
(b) hg, f i = g(x)f (x)dx = g(x)f (x)dx = f (x)g(x)dx = hf , gi.
−1 −1 −1
R1 R1
(c) hf + g, hi = (f + g)(x)h(x)dx = [f (x)h(x) + g(x)h(x)]dx = hf , hi + hg, hi.
−1 −1
R1 R1
(d) hαf , gi = (αf (x))g(x)dx = α f (x)g(x)dx = αhf , gi.
−1 −1
(e) Fix an ordered basis B = [u1 , . . . , un ] of a complex vector space V. Then, for any
a1 b1
. . n
u, v ∈ V, with [u]B = . .
P
. and [v]B = . , define hu, vi = ai bi . Then, h , i is
i=1
an bn
indeed an inner product in V. So, any finite dimensional vector space can be endowed
with an inner product.
5.1. DEFINITION AND BASIC PROPERTIES 129
As hu, ui > 0, for all u 6= 0, we use inner product to define length of a vector.
Definition 5.1.5. Let V be a vector space over F. Then, for any vector u ∈ V, we define the
p
length (norm) of u, denoted kuk = hu, ui, the positive square root. A vector of norm 1 is
u
called a unit vector. Thus, is called the unit vector in the direction of u.
kuk
1. Let V be an ips and u ∈ V. Then, for any scalar α, kαuk = α · kuk.
Example 5.1.6.
√ √
2. Let u = (1, −1, 2, −3)T ∈ R4 . Then, kuk = 1 + 1 + 4 + 9 = 15. Thus, √1 u
15
and
− √115 u are vectors of norm 1. Moreover √1 u
15
is a unit vector in the direction of u.
Exercise 5.1.7. 1. Let u = (−1, 1, 2, 3, 7)T ∈ R5 . Find all α ∈ R such that kαuk = 1.
3. Prove that kx + yk2 + kx − yk2 = 2 kxk2 + kyk2 , for all xT , yT ∈ Rn . This equality is
called the Parallelogram Law as in a parallelogram the sum of square of the lengths
of the diagonals is equal to twice the sum of squares of the lengths of the sides.
4. Apollonius’ Identity: Let the length of the sides of a triangle be a, b, c ∈ R and that of
the median be d ∈ R. If the median is drawn on the side with length a then prove that
a 2
T
2 2
b +c =2 d + 2 .
AF
2
DR
a b
that kuk = 1, kvk = 1 and hu, vi = 0? [Hint: Let A = and define hx, yi = yT Ax.
b c
Use given conditions to get a linear system of 3 equations in the variables a, b, c.]
7. Under the standard inner product in Mm,n (R), Rm and Rn , prove that
m n
(a) for A ∈ Mm,n (R), kAk2 = tr(AT A) = kA[k, :]k2 = kA[:, `]k2 .
P P
k=1 `=1
(b) for A ∈ Mm,n (R) and x ∈ Rn , kAxk ≤ kAk · kxk.
m m n
Ans: kAxk2 = | (Ax)k |2 = | A[k, :]T x |2 = |hx, A[k, :]i|2
P P P
k=1 k=1 k=1
m m
kxk2 · kA[k, :]k2 = kxk2 kA[k, :]k2 = kxk2 kAk2 .
P P
≤
k=1 k=1
A very useful and a fundamental inequality, commonly called the Cauchy-Schwartz inequal-
ity, concerning the inner product is proved next.
130 CHAPTER 5. INNER PRODUCT SPACES
Or, in other words | hv, ui |2 ≤ kuk2 kvk2 and the proof of the inequality is over.
Now, note that equality holds in Inequality (5.1.1) if and only if hλu + v, λu + vi = 0, or
equivalently, λu + v = 0. Hence, u and v are linearly dependent. Moreover,
hv, ui
u u
implies that v = −λu = − 2
u = v, .
kuk kuk kuk
T
n 2 n n
AF
Corollary 5.1.9. Let x, y ∈ R . Then
n
P P 2 P 2
xi y i ≤ xi yi .
i=1 i=1 i=1
DR
Let V be a real vector space. Then, for u, v ∈ V, the Cauchy-Schwartz inequality implies that
hu,vi
−1 ≤ kuk kvk ≤ 1. We use this together with the properties of the cosine function to define the
angle between two vectors in an inner product space.
Definition 5.1.10. Let V be a real vector space. If θ ∈ [0, π] is the angle between u, v ∈ V\{0}
then we define
hu, vi
cos θ = .
kuk kvk
Example 5.1.11. 1. Take (1, 0)T , (1, 1)T ∈ R2 . Then, cos θ = √1 .
2
So θ = π/4.
2. Take (1, 1, 0)T , (1, 1, 1)T ∈ R3 . Then, angle between them, say β = cos−1 √2 .
6
4. As hx, yi = hy, xi for any real vector space, the angle between x and y is same as the
angle between y and x.
1 1
5. Let a, b ∈ R with a, b > 0. Then, prove that (a + b) + ≥ 4.
a b
6. For
n1 ≤ i ≤ n, let ai ∈ R with ai > 0. Then, use Corollary 5.1.9 to show that
n 1
≥ n2 .
P P
ai
i=1 i=1 ai
5.1. DEFINITION AND BASIC PROPERTIES 131
a
b
A B
c
We will now prove that if A, B and C are the vertices of a triangle (see Figure 5.1) and a, b
b2 +c2 −a2
and c, respectively, are the lengths of the corresponding sides then cos(A) = 2bc . This in
turn implies that the angle between vectors has been rightly defined.
Lemma 5.1.12. Let A, B and C be the vertices of a triangle (see Figure 5.1) with corresponding
side lengths a, b and c, respectively, in a real inner product space V then
b2 + c2 − a2
cos(A) = .
T
2bc
AF
Proof. Let 0, u and v be the coordinates of the vertices A, B and C, respectively, of the triangle
DR
ABC. Then, AB ~ = u, AC
~ = v and BC ~ = v − u. Thus, we need to prove that
Now, by definition kv−uk2 = kvk2 +kuk2 −2hv, ui and hence kvk2 +kuk2 −kv−uk2 = 2 hu, vi.
As hv, ui = kvk kuk cos(A), the required result follows.
2. If V is a vector space over R or C then 0 is the only vector that is orthogonal to itself.
3. Let V = R.
2x1 − x2
u u x1 + 2x2
x = hx, ui 2
+ x − hx, ui 2
= (1, 2)T + (2, −1)T
kuk kuk 5 5
is a decomposition of x into two vectors, one parallel to u and the other parallel to u⊥ .
Solution: Use kx − yk2 = kxk2 + kyk2 − 2hx, yi to get the required result follows.
AF
7. Let P = (1, 1, 1)T , Q = (2, 1, 3)T and R = (−1, 1, 2)T be three vertices of a triangle in R3 .
Compute the angle between the sides P Q and P R.
Solution: Method 1: Note that P~Q = (2, 1, 3)T − (1, 1, 1)T = (1, 0, 2)T , P~R =
~ = (−3, 0, −1)T . As hP~Q, P~Ri = 0, the angle between the sides
(−2, 0, 1)T and RQ
π
P Q and P R is .
2
√ √ √
Method 2: kP Qk = 5, kP Rk = 5 and kQRk = 10. As kQRk2 = kP Qk2 + kP Rk2 ,
π
by Pythagoras theorem, the angle between the sides P Q and P R is .
2
Exercise 5.1.15. 1. Let V be an ips.
(a) If S ⊆ V then S ⊥ is a subspace of V and S ⊥ = (LS(S))⊥ .
(b) Furthermore, if V is finite dimensional then S ⊥ and LS(S) are complementary. That
is, V = LS(S) + S ⊥ . Equivalently, hu, wi = 0, for all u ∈ LS(S) and w ∈ S ⊥ .
5.1. DEFINITION AND BASIC PROPERTIES 133
3. Let P = (3, 0, 2)T , Q = (1, 2, −1)T and R = (2, −1, 1)T be three points in R3 . Then,
(a) find the area of the triangle with vertices P, Q and R.
T
(b) find the area of the parallelogram built on vectors P~Q and QR.
~
AF
(c) find a nonzero vector orthogonal to the plane of the above triangle.
DR
√
(d) find all vectors x orthogonal to P~Q and QR
~ with kxk = 2.
4. Let p1 be a plane containing A = (1, 2, 3)T and (2, −1, 1)T as its normal vector. Then,
(a) find the equation of the plane p2 that is parallel to p1 and contains (−1, 2, −3)T .
(b) calculate the distance between the planes p1 and p2 .
5. In the parallelogram ABCD, ABkDC and ADkBC and A = (−2, 1, 3)T , B = (−1, 2, 2)T
and C = (−3, 1, 5)T . Find the
To proceed further, recall that a vector space over R or C was a linear space.
Theorem 5.1.17. Let V be a normed linear space and x, y ∈ V. Then, kxk − kyk ≤ kx − yk.
Proof. As kxk = kx − y + yk ≤ kx − yk + kyk one has kxk − kyk ≤ kx − yk. Similarly, one
obtains kyk − kxk ≤ ky − xk = kx − yk. Combining the two, the required result follows.
1. On R3 , kxk = x21 + x22 + x23 is a norm. Also, observe that this norm
p
Example 5.1.18.
p
corresponds to hx, xi, where h, i is the standard inner product.
2. Let V be an ips. Is it true that f (x) = hx, xi is a norm?
p
Solution: Yes. The readers should verify the first two conditions. For the third condition,
recalling the Cauchy-Schwartz inequality, we get
T
p
Thus, kxk = hx, xi is a norm, called the norm induced by the inner product h·, ·i.
Exercise 5.1.19. 1. Let V be an ips. Then,
3. Let A ∈ Mn (C) satisfy kAxk ≤ kxk for all x ∈ Cn . Then, prove that if α ∈ C with
| α | > 1 then A − αI is invertible.
The next result is stated without proof as the proof is beyond the scope of this book.
Theorem 5.1.20. Let k · k be a norm on a nls V. Then, k · k is induced by some inner product
if and only if k · k satisfies the parallelogram law: kx + yk2 + kx − yk2 = 2kxk2 + 2kyk2 .
Example 5.1.21. 1. For x = (x1 , x2 )T ∈ R2 , we define kxk1 = |x1 | + |x2 |. Verify that
kxk1 is indeed a norm. But, for x = e1 and y = e2 , 2(kxk2 + kyk2 ) = 4 whereas
kx + yk2 + kx − yk2 = k(1, 1)k2 + k(1, −1)k2 = (|1| + |1|)2 + (|1| + | − 1|)2 = 8.
So, the parallelogram law fails. Thus, kxk1 is not induced by any inner product in R2 .
5.2. GRAM-SCHMIDT ORTHONORMALIZATION PROCESS 135
2. Does there exist an inner product in R2 such that kxk = max{|x1 |, |x2 |}?
3. If k · k is a norm in V then d(x, y) = kx − yk, for x, y ∈ V, defines a distance function as
(a) d(x, x) = 0, for each x ∈ V.
(b) using the triangle inequality, for any z ∈ V, we have
Rπ
4. Recall that hf (x), g(x)i = f (x)g(x)dx defines the standard inner product in C[−π, π].
−π
Consider S = {1} ∪ {em | m ≥ 1} ∪ {fn | n ≥ 1}, where 1(x) = 1, em (x) = cos(mx) and
fn (x) = sin(nx), for all m, n ≥ 1 and for all x ∈ [−π, π]. Then,
(a) S is a linearly independent set.
(b) k1k2 = 2π, kem k2 = π and kfn k2 = π.
(c) the functions in S are orthogonal.
1 1 1
Hence, √ ∪ √ em | m ≥ 1 ∪ √ fn | n ≥ 1 is an orthonormal set in C[−π, π].
2π π π
To proceed further, we consider a few examples for better understanding.
Example 5.2.3. Which point on the plane P is closest to the point, say Q?
Solution: Let y be the foot of the perpendicular from Q on P . Thus, by Pythagoras
Theorem, this point is unique. So, the question arises: how do we find y?
−→ →
− −→
Note that yQ gives a normal vector of the plane P . Hence, Q = y + yQ. So, need to
→
−
decompose Q into two vectors such that one of them lies on the plane P and the other is
orthogonal to the plane.
136 CHAPTER 5. INNER PRODUCT SPACES
P lane − P
0 y
Thus, we see that given u, v ∈ V \ {0}, we need to find two vectors, say y and z, such that
y is parallel to u and z is perpendicular to u. Thus, y = u cos(θ) and z = u sin(θ), where θ is
the angle between u and v.
R v P
⃗ =v− ⟨v,u⟩ ⃗ =
OQ ⟨v,u⟩
u
OR ∥u∥2
u ∥u∥2
u
Q
O θ
~ = kOQk
~ û = u u
OQ v, .
kuk kuk
DR
~ u u u u ~
Hence, y = OQ = v, kuk and z = v − v, . In literature, the vector y = OQ
kuk kuk kuk
is called the orthogonal projection of v on u, denoted Proju (v). Thus,
hv, ui
u u ~
Proju (v) = v, and kProju (v)k = kOQk = . (5.2.1)
kuk kuk kuk
~ = kP~Qk =
Moreover, the distance of u from the point P equals kORk v − hv, u
i u
kuk kuk
.
Example 5.2.4. 1. Determine the foot of the perpendicular from the point (1, 2, 3) on the
XY -plane.
Solution: Verify that the required point is (1, 2, 0)?
2. Determine the foot of the perpendicular from the point Q = (1, 2, 3, 4) on the plane
generated by (1, 1, 0, 0), (1, 0, 1, 0) and (0, 1, 1, 1).
Answer: (x, y, z, w) lies on the plane x−y −z +2w = 0 ⇔ h(1, −1, −1, 2), (x, y, z, w)i = 0.
So, the required point equals
1 1
(1, 2, 3, 4) − h(1, 2, 3, 4), √ (1, −1, −1, 2)i √ (1, −1, −1, 2)
7 7
4 1
= (1, 2, 3, 4) − (1, −1, −1, 2) = (3, 18, 25, 20).
7 7
5.2. GRAM-SCHMIDT ORTHONORMALIZATION PROCESS 137
Note that Proju (w) is parallel to u and Projv2 (w) is parallel to v2 . Hence, we have
u 1 1 T is parallel to u,
(a) w1 = Proju (w) = hw, ui kuk2 = 4 u = 4 (1, 1, 1, 1)
n
αi ui , for some αi ’s in F. Then,
P
2. Suppose v ∈ LS(S) with v =
AF
i=1
(a) αi = hv, ui i.
DR
n n
(b) kvk2 = k αi ui k2 = | αi |2 .
P P
i=1 i=1
n
3. Let z ∈ V and w =
P
hz, ui iui . Then, z = w + (z − w) with hz − w, wi = 0, i.e.,
i=1
z − w ∈ LS(S)⊥ . Further, kzk2 = kwk2 + kz − wk2 ≥ kwk2 .
Hence, ci = 0, for 1 ≤ i ≤ n. Thus, the above linear system has only the trivial solution. So,
the set S is linearly independent.
n
P Pn
Part 2: Note that hv, ui i = h αj uj , ui i = j=1 αj huj , ui i = αi hui , ui i = αi . This
j=1
completes the first sub-part. For the second sub-part, we have
n
* n n
+ n
* n
+
X X X X X
k αi ui k2 = α i ui , α i ui = αi ui , αj uj
i=1 i=1 i=1 i=1 j=1
n
X n
X n
X n
X
= αi αj hui , uj i = αi αi hui , ui i = | αi |2 .
i=1 j=1 i=1 i=1
138 CHAPTER 5. INNER PRODUCT SPACES
Theorem 5.2.6. Let V be a finite dimensional ips with an orthonormal basis {v1 , · · · , vn }.
Then, for each x, y ∈ V,
n
X
hx, yi = hx, vi ihy, vi i.
i=1
n
Furthermore, if x = y then kxk2 = | hx, vi i |2 (generalizing the Pythagoras Theorem).
P
T
i=1
AF
Theorem 5.2.7 (Bessel’s Inequality). Let V be an ips with {v1 , · · · , vn } as an orthogonal set.
n n
X | hz, vk i |2 2
X hz, vk i
Then, 2
≤ kzk , for each z ∈ V. Equality holds if and only if z = vk .
kvk k kvk k2
k=1 k=1
vk
Proof. For 1 ≤ k ≤ n, define uk = and use Theorem 5.2.5.4 to get the required result.
kvk k
Remark 5.2.8. Using Theorem 5.2.5, we see that if B = v1 , . . . , vn is an ordered orthonormal
hu, v1 i
.
basis of an ips V then for each u ∈ V, [u]B = .
. . Thus, in place of solving a linear
hu, vn i
system to get the coordinates of a vector, we just need to compute the inner product with basis
vectors.
Exercise 5.2.9. 1. Find v, w ∈ R3 such that v, w, (1, −1, −2)T are mutually orthogonal.
" " # " ## "" ## " x+y #
1 1 x √
2. Let B = √1
2
, √1
2
be an ordered basis of R2 . Then, = 2
x−y
.
1 −1 y √
B 2
√
1 1 1 2 3
−1
3 1, 2 −1, 6 1 of R , [(2, 3, 1) ]B = 2 .
T
1 1 1 3
3. For the ordered basis B = √ √ √ √
1 0 −2 √3
6
5.2. GRAM-SCHMIDT ORTHONORMALIZATION PROCESS 139
In view of the importance of Theorem 5.2.5, we inquire into the question of extracting an
orthonormal basis from a given basis. The process of extracting an orthonormal basis from a
finite linearly independent set is called the Gram-Schmidt Orthonormalization process.
We first consider a few examples. Note that Theorem 5.2.5 also gives us an algorithm for doing
so, i.e., from the given vector subtract all the orthogonal projections/components. If the new
vector is nonzero then this vector is orthogonal to the previous ones. The proof follows directly
from Theorem 5.2.5 but we give it again for the sake of completeness.
Proof. Note that for orthonormality, we need kwi k = 1, for 1 ≤ i ≤ n and hwi , wj i = 0, for
1 ≤ i 6= j ≤ n. Also, by Corollary 3.2.8.2, vi ∈
/ LS(v1 , . . . , vi−1 ), for 2 ≤ i ≤ n, as {v1 , . . . , vn }
is a linearly independent set. We are now ready to prove the result by induction.
v1
Step 1: Define w1 = then LS(v1 ) = LS(w1 ).
kv1 k
u2
Step 2: Define u2 = v2 − hv2 , w1 iw1 . Then, u2 6= 0 as v2 6∈ LS(v1 ). So, let w2 = .
ku2 k
Note that {w1 , w2 } is orthonormal and LS(w1 , w2 ) = LS(v1 , v2 ).
Step 3: For induction, assume that we have obtained an orthonormal set {w1 , . . . , wk−1 } such
that LS(v1 , . . . , vk−1 ) = LS(w1 , . . . , wk−1 ). Now, note that
T
k−1 k−1
AF
P P
uk = v k − hvk , wi iwi = vk − Projwi (vk ) 6= 0 as vk ∈
/ LS(v1 , . . . , vk−1 ). So, let us put
i=1 i=1
uk
DR
Example 5.2.11. 1. Let S = {(1, −1, 1, 1), (1, 0, 1, 0), (0, 1, 0, 1)} ⊆ R4 . Find an orthonor-
mal set T such that LS(S) = LS(T ).
Solution: Let v1 = (1, 0, 1, 0)T , v2 = (0, 1, 0, 1)T and v3 = (1, −1, 1, 1)T . Then,
w1 = √1 (1, 0, 1, 0)T . As hv2 , w1 i = 0, we get w2 = √12 (0, 1, 0, 1)T . For the third vec-
2
tor, let u3 = v3 − hv3 , w1 iw1 − hv3 , w2 iw2 = (0, −1, 0, 1)T . Thus, w3 = √1 (0, −1, 0, 1)T .
2
h iT h iT h iT h iT
2. Let S = {v1 = 2 0 0 , v2 = 32 2 0 , v3 = 12 3
2 0 , v4 = 1 1 1 }. Find
an orthonormal set T such that LS(S) = LS(T ).
140 CHAPTER 5. INNER PRODUCT SPACES
h iT
Solution: Take w1 = kvv11 k = 1 0 0 = e1 . For the second vector, consider u2 =
h iT h iT
v2 − 32 w1 = 0 2 0 . So, put w2 = kuu22 k = 0 1 0 = e2 .
2
hv3 , wi iwi = (0, 0, 0)T . So, v3 ∈ LS((w1 , w2 )). Or
P
For the third vector, let u3 = v3 −
i=1
equivalently, the set {v1 , v2 , v3 } is linearly dependent.
2
P
So, for again computing the third vector, define u4 = v4 − hv4 , wi iwi . Then, u4 =
i=1
v4 − w1 − w2 = e3 . So w4 = e3 . Hence, T = {w1 , w2 , w4 } = {e1 , e2 , e3 }.
Observe that (−2, 1, 0) and (−1, 0, 1) are orthogonal to (1, 2, 1) but are themselves not
orthogonal.
Method 1: Apply Gram-Schmidt process to { √16 (1, 2, 1)T , (−2, 1, 0)T , (−1, 0, 1)T } ⊆ R3 .
Method 2: Valid only in R3 using the cross product of two vectors.
−1
In either case, verify that { √16 (1, 2, 1), √ 5
(2, −1, 0), √−1
30
(1, 2, −5)} is the required set.
T
(a) Then, prove that {x} can be extended to form an orthonormal basis of Rn .
(b) Let the extended basis be {x,x2 , . . . , xn } and B = [e 1 , . . . , en ] the standard ordered
basis of Rn . Prove that A = [x]B , [x2 ]B , . . . , [xn ]B is an orthogonal matrix.
6. Let v, w ∈ Rn , n ≥ 1 with kuk = kwk = 1. Prove that there exists an orthogonal matrix
A such that Av = w. Prove also that A can be chosen such that det(A) = 1.
7. Let (V, h , i) be an n-dimensional ips. If u ∈ V with kuk = 1 then give reasons for the
following statements.
5.2.1 QR Decomposition∗
The next result gives the proof of the QR decomposition for real matrices. The readers are
advised to prove similar results for matrices with complex entries. This decomposition and its
generalizations are helpful in the numerical calculations related with eigenvalue problems (see
T
Chapter 6).
AF
Theorem 5.2.1 (QR Decomposition). Let A ∈ Mn (R) be invertible. Then, there exist matrices
DR
Q and R such that Q is orthogonal and R is upper triangular with A = QR. Furthermore, if
det(A) 6= 0 then the diagonal entries of R can be chosen to be positive. Also, in this case, the
decomposition is unique.
Proof. As A is invertible, it’s columns form a basis of Rn . So, an application of the Gram-
Schmidt orthonormalization process to {A[:, 1], . . . , A[:, n]} gives an orthonormal basis {v1 , . . . , vn }
of Rn satisfying
Thus, this completes the proof of the first part. Note that
1. αii 6= 0, for 1 ≤ i ≤ n, as A[:, 1] 6= 0 and A[:, i] ∈
/ LS(v1 , . . . , vi−1 ).
142 CHAPTER 5. INNER PRODUCT SPACES
2. if αii < 0, for some i, 1 ≤ i ≤ n then we can replace vi in Q by −vi to get a new Q ad R
in which the diagonal entries of R are positive.
So, the matrix R2 R1−1 is an orthogonal upper triangular matrix and hence, by Exercise 1.2.10.3,
R2 R1−1 = In . So, R2 = R1 and therefore Q2 = Q1 .
Let A be an n × k matrix with Rank(A) = r. Then, by Remark 5.2.13, an application
of the Gram-Schmidt orthonormalization process to columns of A yields an orthonormal set
{v1 , . . . , vr } ⊆ Rn such that
Hence, proceeding on the lines of the above theorem, we have the following result.
A = QR, where
AF
DR
1
u4 = v4 − hv4 , w1 iw1 − hv4 , w2 iw2 − hv4 , w3 iw3 = (1, 0, −1, 0)T .
2
1 0 2 1
triangular matrix R such that A = QR.
Solution: Let us apply the Gram-Schmidt orthonormalization process to the columns of
A. As v1 = (1, −1, 1, 1)T , we get w1 = 21 v1 . Let v2 = (1, 0, 1, 0)T . Then,
1
u2 = v2 − hv2 , w1 iw1 = (1, 0, 1, 0)T − w1 = (1, 1, 1, −1)T .
2
Hence, w2 = 12 (1, 1, 1, −1)T . Let v3 = (1, −2, 1, 2)T . Then,
1 1
2 2 0
−1 1 2 1 3 0
√1
2 2
T
2 and R =
Q = [v1 , v2 , v3 ] =
1 1
0 1 −1 0 .
0 √
AF
2 2
1 −1 1
0 0 0 2
√
2 2
DR
(a) Rank(A) = 3,
(b) A = QR with QT Q = I3 , and
(c) R is a 3 × 4 upper triangular matrix with Rank(R) = 3.
3. Further, let Rank(A) = r < n. If j1 , . . . , jr are the pivot columns of A then Col(A) =
Col(B), where B = [A[:, j1 ], . . . , A[:, jr ]] is an m × r matrix with Rank(B) = r. So, using
Part 2e we see that B(B T B)−1 B T is the orthogonal projection matrix on Col(A). So,
compute RREF of A and choose columns of A corresponding to the pivot columns.
Definition 5.3.2. Let W be a finite dimensional subspace of an ips V. Then, by Theorem 5.3.1,
for each v ∈ V there exist unique vectors w ∈ W and u ∈ W⊥ with v = w + u. We thus define
the orthogonal projection of V onto W, denoted PW , by
PW : V → W by PW (v) = w.
Remark 5.3.3. Let A ∈ Mm,n (R) and W = Col(A). Then, to find the orthogonal projection
PW (b), we can use either of the following ideas:
k
P
1. Determine an orthonormal basis {f1 , . . . , fk } of Col(A) and get PW (b) = hb, fi ifi .
i=1
5.3. ORTHOGONAL PROJECTIONS AND APPLICATIONS 145
Corollary 5.3.4. Let A ∈ Mm,n (R) and b ∈ Rm . Then, every least square solution of Ax = b
is a solution of the system AT Ax = AT b. Conversely, every solution of AT Ax = AT b is a least
square solution of Ax = b.
Proof. As b ∈ Rm , by Remark 5.3.3, there exists y ∈ Col(A) and v ∈ Null(AT ) such that
b = y + v and min{kb − wk | w ∈ Col(A)} = kb − yk. As y ∈ Col(A), there exists x0 ∈ Rn
such that Ax0 = y, i.e., x0 is the least square solution of Ax = b. Hence,
Thus, the vectors b − Ax1 and Ax1 − Ax are orthogonal and hence
DR
Proof. Part 1 directly follows from Corollary 5.3.5. For Part 2, let b = y + v, for y ∈ Col(A)
and v ∈ Null(AT ). As y ∈ Col(A), there exists x0 ∈ Rn such that Ax0 = y. Thus, by
Remark 5.3.3, AT b = AT (y + v) = AT y = AT Ax0 . Now, using the definition of pseudo-inverse
(see Exercise 1.3.7.13), we see that
(AA A) (AT A)− AT b = (AT A)(AT A)− (AT A)x0 = (AT A)x0 = AT b.
Thus, we see that (AT A)− AT b is a solution of the system AT Ax = AT b. Hence, by Corol-
lary 5.3.4, the required result follows.
We now give a few examples to understand projections.
Example 5.3.6. Use the fundamental theorem of linear algebra to compute the vector of the
orthogonal projection.
146 CHAPTER 5. INNER PRODUCT SPACES
1. Determine the projection of (1, 1, 1, 1, 1)T on Null ([1, −1, 1, −1, 1]).
Solution: Here A = [1, −1, 1, −1, 1]. So, a basis of Col(AT ) equals {(1, −1, 1, −1, 1)T }
and that of Null(A) equals {(1, 1, 0, 0, 0)T , (1, 0, −1, 0, 0)T , (1, 0, 0, 1, 0)T , (1, 0, 0, 0, −1)T }.
Note that Null(A) and Col(AT ) are orthogonal and hence (1, 1, 1, 1, 1)T = y + z, where
y ∈ Null(A) and z ∈ Col(AT ) = LS([1, −1, 1, −1, 1]T ).
1 1 1 1 1 1 6
1 0 0 0 −1 1 −4
1
So, taking B = 0 −1 0 0 1 and solving Bx = 1 gives x = 6 .
5
0 0 1 0 −1 1 −4
0 0 0 −1 1 1 1
1
Thus, z = x5 (1, −1, 1, −1, 1)T = (1, −1, 1, −1, 1)T and the projection vector y equals
5
1 1 1 1
6/5
1 0 0 0
1 −4/5
T T
(1, 1, 1, 1, 1) − z = (4, 6, 4, 6, 4) , which is also equal to 0 −1 0 0 .
5 6/5
0 0 1 0
−4/5
0 0 0 −1
2. Determine the projection of (1, 1, 1)T on Null ([1, 1, −1]).
Solution: Here A = [1, 1, −1]. So, a basis of Null(A) equals {(1, −1, 0)T , (1, 0, 1)T } and
T
that of
Col(A T ) equals {(1, 1, −1)T }. Then, the solution of the linear system
AF
1 1 1 1 −2
1
DR
Solution: Here, AT = [1, 2, 1], a basis of Col(A) equals {(1, 2, 1)T } and that of Null(AT )
equals {(1, T T
0, −1) , (2, −1,
0) }. Then,
using the solution of the linear system
1 1 2 1
2 T
Bx = 1, where B = 0 −1 2
gives 3 (1, 2, 1) as the required vector.
1 −1 0 1
To use the first idea in Remark 5.3.3, we prove the following result which helps us to get
the matrix of the orthogonal projection from an orthonormal basis.
As PW v is the only closet point (see Theorem 5.3.1), the required result follows.
5.3. ORTHOGONAL PROJECTIONS AND APPLICATIONS 147
Example 5.3.8. In each of the following, determine the matrix of the orthogonal projection.
Also, verify that PW + PW⊥ = I. What can you say about Rank(PW⊥ ) and Rank(PW )? Also,
verify the orthogonal projection vectors obtained in Example 5.3.6.
1. W = {(x1 , . . . , x5 )T ∈ R5 | x1 − x2 + x3 −x4 +x5= 0}=Null ([1,−1, 1, −1,
1]).
1 0 1 −2
1 0 −1 2
1
Solution: An orthonormal basis of W is √12 0, √12 1, √16 0 , √ 3 . Thus,
30
0 1 0 −3
−2 −2
0 0
4 1 −1 1 −1 1 −1 1 −1 1
1 4 1 −1 1 −1 1 −1 1 −1
4 1 1
fi fiT = −1
P
PW = 1 4 1 −1 and P = 1 −1 1 −1 1.
W⊥
i=1 5 5
1 −1 1 4 1 −1 1 −1 1 −1
−1 1 −1 1 4 1 −1 1 −1 1
2. W = {(x, y, z)T ∈ R3 | x + y − z = 0} = Null ([1, 1, −1]).
⊥ 1 1
Solution: Note {(1, 1, −1)} is a basis of W and √ (1, −1, 0), √ (1, 1, 2) an or-
2 6
thonormal basis of W. So,
1 1 −1 2 −1 1
1 1
T
PW⊥ = 1 1 −1 and PW = −1 2 1 .
3 3
AF
−1 −1 1 1 1 2
DR
2. Let PW1 and PW2 be the orthogonal projections of R2 onto W1 = {(x, 0) : x ∈ R} and
W2 = {(x, x) : x ∈ R}, respectively. Note that PW1 ◦ PW2 is a projection onto W1 . But,
it is not an orthogonal projection. Hence or otherwise, conclude that the composition of
two orthogonal projections need not be an orthogonal projection?
" #
1 1
3. Let A = . Then, A is idempotent but not symmetric. Now, define P : R2 → R2 by
0 0
P (v) = Av, for all v ∈ R2 . Then,
(a) P is idempotent.
(b) Null(P ) ∩ Rng(P ) = Null(A) ∩ Col(A) = {0}.
(c) R2 = Null(P ) + Rng(P ). But, (Rng(P ))⊥ = (Col(A))⊥ 6= Null(A).
(d) Since (Col(A))⊥ 6= Null(A), the map P is not an orthogonal projector. In this
case, P is called a projection of R2 onto Rng(P ) along Null(P ).
4. Find all 2 × 2 real matrices A such that A2 = A. Hence, or otherwise, determine all
projection operators of R2 .
5. Let W be an (n − 1)-dimensional subspace of Rn with ordered basis BW = [f1 , . . . , fn−1 ].
Suppose B = [f1 , . . . , fn−1 , fn ] is an orthogonal ordered basis of Rn obtained by extending
n−1
BW . Now, define a function Q : Rn → Rn by Q(v) = hv, fn ifn −
P
hv, fi ifi . Then,
i=1
T
AF
(c) Q ◦ Q = In .
Theorem 5.3.9 implies that the matrix of the projection operator is symmetric. We use this
idea to proceed further.
A careful understanding of the examples given below shows that self-adjoint operators and
Hermitian matrices are related. It also shows that the vector spaces Cn and Rn can be decom-
posed in terms of the null space and column space of Hermitian matrices. They also follow
directly from the fundamental theorem of linear algebra.
hP (x), yi = (yT )Ax = (yT )AT x = (Ay)T x = hx, Ayi = hx, P (y)i.
5.3. ORTHOGONAL PROJECTIONS AND APPLICATIONS 149
We now state and prove the main result related with orthogonal projection operators.
Proof. Part 1: As V = W⊕W⊥ , for each u ∈ W⊥ , one uniquely writes u = 0+u, where 0 ∈ W
and u ∈ W⊥ . Hence, by definition, PW (u) = 0 and PW⊥ (u) = u. Thus, W⊥ ⊆ Null(PW ) and
DR
W⊥ ⊆ Rng(PW⊥ ).
Now suppose that v ∈ Null(PW ). So, PW (v) = 0. As V = W ⊕ W⊥ , v = w + u, for unique
w ∈ W and unique u ∈ W⊥ . So, by definition, PW (v) = w. Thus, w = PW (v) = 0. That is,
v = 0 + u = u ∈ W⊥ . Thus, Null(PW ) ⊆ W⊥ .
A similar argument implies Rng(PW⊥ ) ⊆ W ⊥ and thus completing the proof of the first
part.
Part 2: Use an argument similar to the proof of Part 1.
Part 3, Part 4 and Part 5: Let v ∈ V. Then, v = w + u, for unique w ∈ W and unique
u ∈ W⊥ . Thus, by definition,
(PW ◦ PW )(v) = PW PW (v) = PW (w) = w and PW (v) = w
(PW⊥ ◦ PW )(v) = PW⊥ PW (v) = PW⊥ (w) = 0 and
(PW ⊕ PW⊥ )(v) = PW (v) + PW⊥ (v) = w + u = v = IV (v).
2. Let v ∈ V. Then, v −PW (v) = (IV −PW )(v) = PW⊥ (v) ∈ W⊥ . Thus, hv −PW (v), wi = 0,
for every v ∈ V and w ∈ W.
That is, PW (v) is the vector nearest to v ∈ W. This can also be stated as: the vector
PW (v) solves the following minimization problem:
inf kv − wk = kv − PW (v)k.
w∈W
T
AF
The next theorem is a generalization of Theorem 5.3.13. We omit the proof as the arguments
DR
1. vi ∈ Wi , for 1 ≤ i ≤ k,
3. v = v1 + · · · + vk .
Theorem 5.3.15. Let V be a finite dimensional ips with subspaces W1 , . . . , Wk of V such that
V = W1 ⊕ · · · ⊕ Wk . Then, for each i, j, 1 ≤ i 6= j ≤ k, there exist orthogonal projectors
PWi : V → V of V onto Wi satisfying the following:
2. Rng(PWi ) = Wi .
4. PWi ◦ PWj = 0V .
kT (x)k2 = k(hx, aia) + (hx, aia − x)k2 = khx, aiak2 + kx − hx, aiak2 = kxk2 .
" #" #
cos θ − sin θ x
2. Let n = 2, V = R2 and 0 ≤ θ < 2π. Now define T (x) = .
sin θ cos θ y
We now show that an operator is orthogonal if and only if it preserves the angle.
Theorem 5.4.3. Let T ∈ L(V). Then, the following statements are equivalent.
1. T is an orthogonal operator.
2. hT (x), T (y)i = hx, yi, for all x, y ∈ V. That is, T preserves inner product.
T
AF
kT (x)k2 + kT (y)k2 + 2hT (x), T (y)i = kT (x) + T (y)k2 = kT (x + y)k2 = kxk2 + kyk2 + 2hx, yi.
Thus, using definition again hT (x), T (y)i = hx, yi.
2 ⇒ 1 If hT (x), T (y)i = hx, yi, for all x, y ∈ V then T is an orthogonal operator as
kT (x)k2 = hT (x), T (x)i = hx, xi = kxk2 .
As an immediate corollary, we obtain the following result.
Corollary 5.4.4. Let T ∈ L(V). Then, T is an orthogonal operator if and only if “for every
orthonormal basis {u1 , . . . , un } of V, {T (u1 ), . . . , T (un )} is an orthonormal basis of V”. Thus,
if B is an orthonormal ordered basis of V then T [B, B] is an orthogonal matrix.
Observe that if T and S are two rigid motions then ST is also a rigid motion. Furthermore,
it is clear from the definition that every rigid motion is invertible.
2. Let V be an ips. Then, using Theorem 5.4.3, we see that every orthogonal operator is an
isometry.
We now prove that every rigid motion that fixes origin is an orthogonal operator.
Theorem 5.4.7. Let V be a real ips. Then, the following statements are equivalent for any
map T : V → V.
1. T is a rigid motion that fixes origin.
2. T is linear and hT (x), T (y)i = hx, yi, for all x, y ∈ V (preserves inner product).
3. T is an orthogonal operator.
Proof. We have already seen the equivalence of Part 2 and Part 3 in Theorem 5.4.3. Let us now
prove the equivalence of Part 1 and Part 2/Part 3.
If T is an orthogonal operator then T (0) = 0 and kT (x) − T (y)k = kT (x − y)k = kx − yk.
This proves Part 3 implies Part 1.
We now prove Part 1 implies Part 2. So, let T be a rigid motion that fixes 0. Thus,
T (0) = 0 and kT (x) − T (y)k = kx − yk, for all x, y ∈ V. Hence, in particular for y = 0, we
have kT (x)k = kxk, for all x ∈ V. So,
T
kT (x)k2 + kT (y)k2 − 2hT (x), T (y)i = hT (x) − T (y), T (x) − T (y)i = kT (x) − T (y)k2
AF
= kx − yk2 = hx − y, x − yi
DR
Thus, using kT (x)k = kxk, for all x ∈ V, we get hT (x), T (y)i = hx, yi, for all x, y ∈ V. Now,
to prove T is linear, we use hT (x), T (y)i = hx, yi in 3-rd and 4-th line to get
Thus, T (x+y)−(T (x) + T (y)) = 0 and hence T (x+y) = T (x)+T (y). A similar calculation
gives T (αx) = αT (x) and hence T is linear.
Exercise 5.4.8. 1. Let A, B ∈ Mn (C). Then, A and B are said to be
(a) Orthogonally Congruent if B = S T AS, for some invertible matrix S.
(b) Unitarily Congruent if B = S ∗ AS, for some invertible matrix S.
Prove that Orthogonal and Unitary congruences are equivalence relations on Mn (R) and
Mn (C), respectively.
5.4. ORTHOGONAL OPERATOR AND RIGID MOTION∗ 153
xeiθ = (x1 + ix2 ) (cos θ + i sin θ) = x1 cos θ − x2 sin θ + i[x1 sin θ + x2 cos θ].
1 0
" #
cos θ ± sin θ
DR
5. Let U be an n × n matrix. Then, prove that the following statements are equivalent.
(e) the rows of U form an orthonormal basis of the complex vector space Cn .
(f ) for any two vectors x, y ∈ Cn , hU x, U yi = hx, yi Unitary matrices preserve
angle.
(g) for any vector x ∈ Cn , kU xk = kxk Unitary matrices preserve length.
Ans: Part 5a⇔ Part 5g. If U is unitary, then kxk2 = x∗ x = x∗ U ∗ U x = kU xk2 . Conversely,
we have
hU ∗ U x, xi = hU x, U xi = kU xk2 = kxk2 = hx, xi, for all x.
That is h(U ∗ U − I)x, xi = 0, for all x. Put B = U ∗ U − I. Now, taking x = ei , we see that
B(i, i) = 0. For i 6= j, taking x = ei + ej , we get
8. Prove that in M5 (R), there are infinitely many orthogonal matrices of which only finitely
many are diagonal (in fact, there number is just 32).
DR
5.5 Summary
In the previous chapter, we learnt that if V is vector space over F with dim(V) = n then V
basically looks like Fn . Also, any subspace of Fn is either Col(A) or Null(A) or both, for some
matrix A with entries from F.
So, we started this chapter with inner product, a generalization of the dot product in R3
or Rn . We used the inner product to define the length/norm of a vector. The norm has the
property that “the norm of a vector is zero if and only if the vector itself is the zero vector”.
We then proved the Cauchy-Bunyakovskii-Schwartz Inequality which helped us in defining the
angle between two vector. Thus, one can talk of geometrical problems in Rn and proved some
geometrical results.
We then independently defined the notion of a norm in Rn and showed that a norm is
induced by an inner product if and only if the norm satisfies the parallelogram law (sum of
squares of the diagonal equals twice the sum of square of the two non-parallel sides).
The next subsection dealt with the fundamental theorem of linear algebra where we showed
that if A ∈ Mm,n (C) then
1. dim(Null(A)) + dim(Col(A)) = n.
⊥ ⊥
2. Null(A) = Col(A∗ ) and Null(A∗ ) = Col(A) .
3. dim(Col(A)) = dim(Col(A∗ )).
T
AF
So, the question arises, how do we compute an orthonormal basis? This is where we came
across the Gram-Schmidt Orthonormalization process. This algorithm helps us to determine
an orthonormal basis of LS(S) for any finite subset S of a vector space. This also lead to the
QR-decomposition of a matrix.
Thus, we observe the following about the linear system Ax = b. If
1. b ∈ Col(A) then we can use the Gauss-Jordan method to get a solution.
2. b ∈
/ Col(A) then in most cases we need a vector x such that the least square error between
b and Ax is minimum. We saw that this minimum is attained by the projection of b on
Col(A). Also, this vector can be obtained either using the fundamental theorem of linear
algebra or by computing the matrix B(B T B)−1 B T , where the columns of B are either
the pivot columns of A or a basis of Col(A).
156 CHAPTER 5. INNER PRODUCT SPACES
T
AF
DR
Chapter 6
In this chapter, every matrix is an element of Mn (C) and x = (x1 , . . . , xn )T ∈ Cn , for some
n ∈ N. We start with a few examples to motivate this chapter.
" # " # " #
1 2 9 −2 x
Example 6.1.1. 1. Let A = ,B= and x = .
T
2 1 −2 6 y
AF
(a) Then A magnifies the nonzero vector three times as A =3 and behaves
1 1 1
" # " # " # " #
1 1 1 1
by changing the direction of as A = −1 . Further, the vectors
−1 −1 −1 1
" #
1
and are orthogonal.
−1
" # " # " # " # " # " #
1 −2 1 1 2 2
(b) B magnifies both the vectors and as B =5 and B = 10 .
2 1 2 2 −1 −1
" # " #
1 2
Here again, the vectors and are orthogonal.
2 −1
(x + y)2 (x − y)2
(c) xT Ax = 3 − . Here, the displacements occur along perpendicular
2 2 " # " #
1 1
lines x + y = 0 and x − y = 0, where x + y = (x, y) and x − y = (x, y) .
1 −1
(x + 2y)2 (2x − y)2
Whereas xT Bx = 5 + 10 . Here also the maximum/minimum
5 5
displacements occur
" # along the orthogonal
" # lines x + 2y = 0 and 2x − y = 0, where
1 2
x + 2y = (x, y) and 2x − y = (x, y) .
2 −1
(d) the curve xT Ax = 10 represents a hyperbola, where as the curve xT Bx = 10 repre-
sents an ellipse (see Figure 6.1 drawn using the package “Sagemath”).
157
158 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
Figure 6.1: A Hyperbola and two Ellipses (first one has orthogonal axes)
.
" #
1 2
2. Let C = , a non-symmetric matrix. Then, does there exist a nonzero x ∈ C2 which
1 3
gets magnified by C?
So, we need x 6= 0 and α ∈ C such that Cx = αx ⇔ [αI2 − C]x = 0. As x 6= 0,
[αI2 − C]x = 0 has a solution if and only if det[αI − A] = 0. But,
" #!
α−1 −2
det[αI − A] = det = α2 − 4α + 1.
−1 α − 3
T
AF
" √ #
√ √ 1+ 3 −2
So, α = 2± 3. For α = 2+ 3, verify that the x 6= 0 that satisfies √ x=
DR
−1 3−1
"√ # "√ #
3−1 √ 3+1
0 equals x = . Similarly, for α = 2 − 3, the vector x = satisfies
1 −1
" √ #
1− 3 −2
√ x = 0. In this example,
−1 − 3 − 1
"√ # "√ #
3−1 3+1
(a) we still have magnifications in the directions and
.
1 −1
√
(b) the maximum/minimum displacements do not occur along the lines ( 3−1)x+y = 0
√
and ( 3 + 1)x − y = 0 (see the third curve in Figure 6.1).
√ √
(c) the lines ( 3 − 1)x + y = 0 and ( 3 + 1)x − y = 0 are not orthogonal.
n X
n n
!
X X
T T
L(x, λ) = x Ax − λ(x x − 1) = aij xi xj − λ x2i −1 .
i=1 j=1 i=1
6.1. INTRODUCTION AND DEFINITIONS 159
∂L T
T ∂L ∂L ∂L
0 = , ,..., = = 2(Ax − λx).
∂x1 ∂x2 ∂xn ∂x
Thus, to solve the extremal problem, we need λ ∈ R, x ∈ Rn such that x 6= 0 and
Ax = λx.
We observe the following about the matrices A, B and C that appear in Example 6.1.1.
√ √
1. det(A) = −3 = 3 × −1, det(B) = 50 = 5 × 10 and det(C) = 1 = (2 + 3) × (2 − 3).
√ √
2. tr(A) = 2 = 3 − 1, tr(B) = 15 = 5 + 10 and det(C) = 4 = (2 + 3) + (2 − 3).
(" # " #) (" # " #) ("√ # "√ #)
1 1 1 2 3−1 3+1
3. The sets , , , and , are linearly indepen-
1 −1 2 −1 1 −1
dent.
" # " #
1 1
4. If v1 = and v2 = and S = [v1 , v2 ] then
T
1 −1
AF
" # " #
3 0 3 0
(a) AS = [Av1 , Av2 ] = [3v1 , −v2 ] = S ⇔ S −1 AS = = diag(3, −1).
DR
0 −1 0 −1
1 1
(b) Let u1 = √ v1 and u2 = √ v2 . Then, u1 and u2 are orthonormal unit vectors,
2 2
i.e., if U = [u1 , u2 ] then I = U U ∗ = u1 u∗1 + u2 u∗2 and A = 3u1 u∗1 − u2 u∗2 .
" # " #
1 2
5. If v1 = and v2 = and S = [v1 , v2 ] then
2 −1
" # " #
5 0 5 0
(a) AS = [Av1 , Av2 ] = [5v1 , 10v2 ] = S ⇔ S −1 AS = = diag(3, −1).
0 10 0 10
1 1
(b) Let u1 = √ v1 and u2 = √ v2 . Then, u1 and u2 are orthonormal unit vectors,
5 5
i.e., if U = [u1 , u2 ] then I = U U ∗ = u1 u∗1 + u2 u∗2 and A = 5u1 u∗1 + 10u2 u∗2 .
"√ # "√ #
3−1 3+1
6. If v1 = and v2 = and S = [v1 , v2 ] then
1 −1
" √ #
−1 2+ 3 0 √ √
S CS = √ = diag(2 + 3, 2 − 3).
0 2− 3
Theorem 6.1.3. Let A ∈ Mn (C) and α ∈ C. Then, the following statements are equivalent.
1. α is an eigenvalue of A.
2. det(A − αIn ) = 0.
Proof. We know that α is an eigenvalue of A if any only if the system (A − αIn )x = 0 has a
non-trivial solution. By Theorem 2.4.4 this holds if and only if det(A − αI) = 0.
T
AF
3. Since the eigenvalues of A are roots of the characteristic equation, A has exactly n eigen-
values, including multiplicities.
4. If the entries of A are real and α ∈ σ(A) is also real then the corresponding eigenvector
has real entries.
Almost all books in mathematics differentiate between characteristic value and eigenvalue
as the ideas change when one moves from complex numbers to any other scalar field. We give
the following example for clarity.
Remark 6.1.6. Let A ∈ M2 (F). Then, A induces a map T ∈ L(F2 ) defined by T (x) = Ax, for
all x ∈ F2 . We use this idea to understand the difference.
" #
0 1
1. Let A = . Then, pA (λ) = λ2 + 1. So, ±i are the roots of P (λ) = 0 in C. Hence,
−1 0
(a) A has (i, (1, i)T ) and (−i, (i, 1)T ) as eigen-pairs or characteristic-pairs.
T
" #
1 2 √
DR
gives (1, x) and (1, y) as the two eigen-pairs for A. In general, if S = {x1 , . . . , xn } is a
basis of Cn then (1, x1 ), . . . , (1, xn ) are eigen-pairs of In , the identity matrix.
" # " #! " #!
1 −1 i 1
5. Let A = . Then, 1 + i, and 1 − i, are the eigen-pairs of A.
1 1 1 i
0 1 0
6. Let A = 0 0 1. Then, σ(A) = {0, 0, 0} with e1 as the only eigenvector.
0 0 0
0 1 0 0 0 x1
0 0 1 0 0 x2
7. Let A = 0 0 0 0 0. Then, σ(A) = {0, 0, 0, 0, 0}. Note that Ax3 = 0 implies
0 0 0 0 1 x
4
0 0 0 0 0 x5
x2 = 0 = x3 = x5 . Thus, e1 and e4 are the only eigenvectors. Note that the diagonal
blocks of A are nilpotent matrices.
2. "
Find eigen-pairs
# over C, for each
# of"the following matrices:
DR
" # " #
1 1+i i 1+i cos θ − sin θ cos θ sin θ
, , and .
1−i 1 −1 + i i sin θ cos θ sin θ − cos θ
n
3. Let A = [aij ] ∈ Mn (C) with
P
aij = a, for all 1 ≤ i ≤ n. Then, prove that a is an
j=1
eigenvalue of A with corresponding eigenvector 1 = [1, 1, . . . , 1]T .
4. Prove that the matrices A and AT have the same set of eigenvalues. Construct a 2 × 2
matrix A such that the eigenvectors of A and AT are different.
" # " # " #
1 1 T T 1 1
Ans: A = . Then 0 ∈ σ(A). Verify that 1 A = 01 and A =0 .
−1 −1 −1 −1
6. Let A be an idempotent matrix. Then, prove that its eigenvalues are either 0 or 1 or both.
7. Let A be a nilpotent matrix. Then, prove that its eigenvalues are all 0.
8. Let J = 11T ∈ Mn (C). Then, J is a matrix with each entry 1. Show that
(a) (n, 1) is an eigenpair for J.
(b) 0 ∈ σ(J) with multiplicity n − 1. Find a set of n − 1 linearly independent eigenvectors
for 0 ∈ σ(J).
6.1. INTRODUCTION AND DEFINITIONS 163
" #
B 0
9. Let B ∈ Mn (C) and C ∈ Mm (C). Now, define the Direct Sum B ⊕ C = . Then,
0 C
prove that
" #!
x
(a) if (α, x) is an eigen-pair for B then α, is an eigen-pair for B ⊕ C.
0
" #!
0
(b) if (β, y) is an eigen-pair for C then β, is an eigen-pair for B ⊕ C.
y
Definition 6.1.9. Let A ∈ L(Cn ). Then, a vector y ∈ Cn \ {0} satisfying y∗ A = λy∗ is called
a left eigenvector of A for λ.
" # " #
1 1 1
Example 6.1.10. 1. Let A = . Then, x = is a left eigenvector of A corre-
−1 −1 1
" #!
1
sponding to the eigenvalue 0 and 0, y = is a (right) eigenpair of A.
−1
" # " #! " #!
1 1 1 1
2. Let A = . Then, 0, x = and 3, y = are (right) eigen-pairs of
2 2 −1 2
" #! " #!
1 2
A. Also, 3, u = and 0, v = are left eigen-pairs of A. Note that x is
1 −1
orthogonal to u and y is orthogonal to v. This is true in general and is proved next.
T
3. Let S be a nonsingular matrix such that its columns are left eigenvectors of A. Then,
AF
Theorem 6.1.11. [Principle of bi-orthogonality] Let (λ, x) be a (right) eigenpair and (µ, y)
be a left eigenpair of A, where λ 6= µ. Then, y is orthogonal to x.
Ans: Note λ(x∗ x) = x∗ (λx) = x∗ (Ax) = (x∗ A)x = (µx∗ )x = µ(x∗ x).
Proposition 6.1.14. Let T ∈ L(Cn ) and let B be an ordered basis in Cn . Then, (α, v) is an
eigenpair for T if and only if (α, [v]B ) is an eigenpair of A = T [B, B].
Proof. Note that, by definition, T (v) = αv if and only if [T v]B = [αv]B . Or equivalently,
α ∈ σ(T ) if and only if A[v]B = α[v]B . Thus, the required result follows.
Remark 6.1.15. [A linear operator on an infinite dimensional space may not have any
eigenvalue] Let V be the space of all real sequences (see Example 3.1.4.9). Now, define a linear
operator T ∈ L(V) by
T (a0 , a1 , . . .) = (0, a1 , a2 , . . .).
164 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
Theorem 6.1.16. Let λ1 , . . . , λn , not necessarily distinct, be the A = [aij ] ∈ Mn (C). Then,
n
Q Pn n
P
det(A) = λi and tr(A) = aii = λi .
i=1 i=1 i=1
Proof. Since λ1 , . . . , λn are the eigenvalues of A, by definition,
n
Y
det(A − xIn ) = (−1)n (x − λi ) (6.1.2)
i=1
AF
(6.1.4)
for some a0 , a1 , . . . , an−1 ∈ C. Then, an−1 , the coefficient of (−1)n−1 xn−1 , comes from the term
4. Let A ∈ Mn (C) satisfy kAxk ≤ kxk for all x ∈ Cn . Then, prove that if α ∈ C with
| α | > 1 then A − αI is invertible.
6.1. INTRODUCTION AND DEFINITIONS 165
Proof. Since A and B are similar, there exists an invertible matrix S such that A = SBS −1 .
So, α ∈ σ(A) if and only if α ∈ σ(B) as
T
Note that Equation (6.1.5) also implies that Alg.Mulα (A) = Alg.Mulα (B). We will now
show that Geo.Mulα (A) = Geo.Mulα (B).
So, let Q1 = {v1 , . . . , vk } be a basis of Null(A − αI). Then, B = SAS −1 implies that
Q2 = {Sv1 , . . . , Svk } ⊆ Null(B − αI). Since Q1 is linearly independent and S is invertible,
we get Q2 is linearly independent. So, Geo.Mulα (A) ≤ Geo.Mulα (B). Now, we can start
with eigenvectors of B and use similar arguments to get Geo.Mulα (B) ≤ Geo.Mulα (A) and
hence the required result follows.
Remark 6.1.21. 1. Let A = S −1 BS. Then, from the proof of Theorem 6.1.20, we see that
x is an eigenvector of A for λ if and only if Sx is an eigenvector of B for λ.
2. Let A and B be two similar
" matrices then
# " σ(A)
# = σ(B). But, the converse is not true.
0 0 0 1
For example, take A = and B = .
0 0 0 0
3. Let A ∈ Mn (C). Then, for any invertible matrix B, the matrices AB and BA =
B(AB)B −1 are similar. Hence, in this case the matrices AB and BA have
(a) the same set of eigenvalues.
(b) Alg.Mulα (AB) = Alg.Mulα (BA), for each α ∈ σ(A).
(c) Geo.Mulα (AB) = Geo.Mulα (BA), for each α ∈ σ(A).
We will now give a relation between the geometric multiplicity and the algebraic multiplicity.
166 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
Theorem 6.1.22. Let A ∈ Mn (C). Then, for α ∈ σ(A), Geo.Mulα (A) ≤ Alg.Mulα (A).
Remark 6.1.23. Note that in the proof of Theorem 6.1.22, the remaining eigenvalues of A are
the eigenvalues of D (see Equation (6.1.6)). This technique is called deflation.
T
AF
1 2 3
DR
√1
Exercise 6.1.24. 1. Let A = 3 2 1. Notice that x1 = 3 1 is an eigenvector for A.
2 3 1
h i
Find an ordered basis {x1 , x2 , x3 } of C3 . Put X = x1 x2 x3 . Compute X −1 AX to
get a block-triangular matrix. Can you now find the remaining eigenvalues of A?
6 − √12 − √36
√
Ans: X −1 AX =
0 −1 − . The other eigenvalues are −1 ± i.
3
1
0 √3 −1
(c) Give an example to show that Geo.Mul0 (AB) need not equal Geo.Mul0 (BA) even
when n = m.
(e) det(A + αxyT ) equals (1 + αλ0 ) det(A), for any α ∈ R. This result is known as the
Shermon-Morrison formula for determinant.
(b) Give examples to show that the matrices A and B need not be similar.
5. Let A, B ∈ Mn (R). Also, let (λ1 , u) and (λ2 , v) are eigen-pairs of A and B, respectively.
T
(b) Give an example to show that if u and v are linearly independent then λ1 + λ2 need
DR
not be an eigenvalue of A + B.
6. Let A ∈ Mn (R) be an invertible matrix with eigen-pairs (λ1 , u1 ), . . . , (λn , un ). Then, prove
that B = [u1 , . . . , un ] forms a basis of Rn . If [b]B = (c1 , . . . , cn )T then the system Ax = b
has the unique solution
c1 c2 cn
x= u1 + u2 + · · · + un .
λ1 λ2 λn
6.2 Diagonalization
Let A ∈ Mn (C) and let T ∈ L(Cn ) be defined by T (x) = Ax, for all x ∈ Cn . In this section,
we first find conditions under which one can obtain a basis B of Cn such that T [B, B] (see
Theorem 4.4.4) is a diagonal matrix. And, then it is shown that normal matrices satisfy the
above conditions. To start with, we have the following definition.
Proof. Suppose {v1 , . . . , vk } is linearly dependent. Then, there exists a smallest ` ∈ {1, . . . , k −
1} and β 6= 0 such that v`+1 = β1 v1 + · · · + β` v` . So,
and
0 = (α`+1 − α1 ) β1 v1 + · · · + (α`+1 − α` ) β` v` .
So, v` ∈ LS(v1 , . . . , v`−1 ), a contradiction to the choice of `. Thus, the required result follows.
An immediate corollary of Theorem 6.2.3 and Theorem 6.2.6 is stated next without proof.
The converse of Theorem 6.2.6 is not true as In has n linearly independent eigenvectors
corresponding to the eigenvalue 1, repeated n times.
DR
k
S
So, to prove that Si is linearly independent, consider the linear system
i=1
in the variables cij ’s. Now, applying the matrix pj (A) and using Equation (6.2.3), we get
Y
(αj − αi ) cj1 uj1 + · · · + cjnj ujnj = 0.
i6=j
Q
But (αj − αi ) 6= 0 as αi ’s are distinct. Hence, cj1 uj1 + · · · + cjnj ujnj = 0. As Sj is a basis
i6=j
of Null(A − αj In ), we get cjt = 0, for 1 ≤ t ≤ nj . Thus, the required result follows.
170 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
2. Let A be an strictly upper triangular matrix. Then, prove that A is not diagonalizable.
DR
3. Let A be an n×n matrix with λ ∈ σ(A) with alg.mulλ (A) = m. If Rank[A−λI] 6= n−m
then prove that A is not diagonalizable.
4. If σ(A) = σ(B) and both A and B are diagonalizable then prove that A is similar to B.
That is, they are two basis representation of the same linear transformation.
5. Let A and B be two similar matrices such that A is diagonalizable. Prove that B is
diagonalizable.
" #
A 0
6. Let A ∈ Mn (R) and B ∈ Mm (R). Suppose C = . Then, prove that C is diagonal-
0 B
izable if and only if both A and B are diagonalizable.
2 1 1
7. Is the matrix A = 1 2 1 diagonalizable?
1 1 2
8. Let Jn be an n × n matrix with all entries 1. Then, Geo.Mul1 (Jn ) = Alg.Mul1 (Jn ) = 1
and Geo.Mul0 (Jn ) = Alg.Mul0 (Jn ) = n − 1.
9. Let A = [aij ] ∈ Mn (R), where aij = a, if i = j and b, otherwise. Then, verify that
A = (a − b)In + bJn . Hence, or otherwise determine the eigenvalues and eigenvectors of
Jn . Is A diagonalizable?
6.2. DIAGONALIZATION 171
Ans: (a) A has a nonzero row, call it y ∗ . Other rows are scalar multiples of this row. So
A = xy∗ .
(b.i) Note that Ax = (xy∗ )x = (y∗ x)x. Thus, α = y∗ x ∈ σ(A).
(b.ii) Since y 6= 0, let {z1 , . . . , zn−1 } be an orthonormal basis of y⊥ . Then, Azi = xy∗ zi = 0,
hence the geometric multiplicity of 0 is at least n − 1. So, if y∗ x 6= 0, then the geometric
multiplicity of y∗ x is 1. If y∗ x = 0, then the geometric multiplicity of 0 could be n − 1 or n.
(b.iii) A is not diagonalizable if and only if y∗ x = 0 and the geometric multiplicity of the
eigenvalue 0 is n − 1. Or equivalently, A is diagonalizable if and only if tr(A) 6= 0.
14. Let u, v ∈ Cn such that {u, v} is a linearly independent set. Define A = uvT + vuT .
(a) Then prove that A is a symmetric matrix.
(b) Then prove that dim(Ker(A)) = n − 2.
(c) Then 0 ∈ σ(A) and has multiplicity n − 2.
(d) Determine the other eigenvalues of A.
" #
vT
Ans: (a) AT = (uvT + vuT )T = vuT + uvT
= A. Also, A = [u, v] T .
u
⊥ ⊥
(b) Let w ∈ {u, v} . Then Aw = 0 and dim {u, v} = n − 2.
(c) Hence, 0 is an eigenvalue with multiplicity n − 2.
(d) As the eigenvalues of AB and BA are same (except for the multiplicity of the
172 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
" #
vT u vT v
eigenvalue 0), consider the 2 × 2 matrix . The eigenvalue of this 2 × 2
uT u u T v
matrix gives the other eigenvalues.
k
15. Let A ∈ Mn (C). If Rank(A) = k then there exists xi , yi ∈ Cn such that A = xi yi∗ . Is
P
i=1
the converse true?
We now prove one of the most important results in diagonalization, called the Schur’s Lemma
or the Schur’s unitary triangularization.
Lemma 6.2.12 (Schur’s unitary triangularization (SUT)). Let A ∈ Mn (C). Then, there exists
a unitary matrix U such that A is similar to an upper triangular matrix. Further, if A ∈ Mn (R)
and σ(A) have real entries then U is a real orthogonal matrix.
Proof. We prove the result by induction on n. The result is clearly true for n = 1. So, let n > 1
and assume the result to be true for k < n and prove it for n.
Let (λ1 , x1 ) be an eigen-pair of A with kx1 k = 1. Now, extend it to form an orthonormal
basis {x1 , x2 , . . . , un } of Cn and define X = [x1 , x2 , . . . , un ]. Then, X is a unitary matrix and
x∗
1∗
T
" #
x2 λ ∗
AF
1
X ∗ AX = X ∗ [Ax1 , Ax2 , . . . , Axn ] = . [λ1 x1 , Ax2 , . . . , Axn ] = , (6.2.4)
.. 0 B
DR
x∗n
where B ∈ Mn−1 (C). Now, by induction hypothesis there exists a unitary" matrix # U ∈ Mn−1 (C)
such that U ∗ BU = T is an upper triangular matrix. Define U b = X 1 0 . Then, using
0 U
Exercise 5.4.8.10, the matrix U is unitary and
b
" # " # " #" #" #
∗ 1 0 1 0 1 0 λ 1 ∗ 1 0
Ub AU b = X ∗ AX =
0 U∗ 0 U 0 U∗ 0 B 0 U
" #" # " # " #
λ1 ∗ 1 0 λ1 ∗ λ1 ∗
= = = .
0 U ∗B 0 U 0 U ∗ BU 0 T
" #
λ1 ∗
Since T is upper triangular, is upper triangular.
0 T
Further, if A ∈ Mn (R) and σ(A) has real entries then x1 ∈ Rn with Ax1 = λ1 x1 . Now, one
uses induction once again to get the required result.
Remark 6.2.13. Let A ∈ Mn (C). Then, by Schur’s Lemma there exists a unitary matrix U
such that U ∗ AU = T = [tij ], a triangular matrix. Thus,
Definition 6.2.14. [Unitary Equivalence] Let A, B ∈ Mn (C). Then, A and B are said to be
unitarily equivalent/similar if there exists a unitary matrix U such that A = U ∗ BU .
Remark 6.2.15. We know that if two matrices are unitarily equivalent then they are necessarily
similar as U ∗ = U −1 , for every unitary matrix U . But, similarity doesn’t imply unitary equiva-
lence (see Exercise 6.2.17.6). In numerical calculations, unitary transformations are preferred
as compared to similarity transformations due to the following main reasons:
1. Exercise 5.4.8.5g implies that kAxk = kxk, whenever A is a normal matrix. This need
not be true under a similarity change of basis.
P P
That is, A and B are similar. But,
AF
4. Let A be a normal matrix. If all the eigenvalues of A are 0 then prove that A = 0. What
happens if all the eigenvalues of A are 1?
5. Let A ∈ Mn (C). Then, Prove that if x∗ Ax = 0, for all x ∈ Cn , then A = 0. Do these
results hold for arbitrary matrices?
" # " #
4 4 10 9
6. Show that the matrices A = and B = are similar. Is it possible to find
0 4 −4 −2
a unitary matrix U such that A = U ∗ BU ?
" #
3 2
Ans: Take S = . Then S −1 BS = A. There doesn’t exist an unitary matrix as the
−2 0
sum of the squares of the matrix entries are NOT equal.
Proof. By Schur’s Lemma there exists a unitary matrix U such that U ∗ AU = T = [tij ], a
n
Q n
Q
triangular matrix. By Remark 6.2.13, σ(A) = σ(T ). Hence, det(A) = det(T ) = tii = αi
i=1 i=1
n n
and tr(A) = tr(A(UU∗ )) = tr(U∗ (AU)) = tr(T) =
P P
tii = αi .
T
i=1 i=1
AF
We now use Schur’s unitary triangularization Lemma to state the main theorem of this subsec-
tion. Also, recall that A is said to be a normal matrix if AA∗ = A∗ A.
Theorem 6.2.19 (Spectral Theorem for Normal Matrices). Let A ∈ Mn (C). If A is a normal
matrix then there exists a unitary matrix U such that U ∗ AU = diag(α1 , . . . , αn ).
Proof. By Schur’s Lemma there exists a unitary matrix U such that U ∗ AU = T = [tij ], a
triangular matrix. Since A is a normal
T ∗ T = (U ∗ AU )∗ (U ∗ AU ) = U ∗ A∗ AU = U ∗ AA∗ U = (U ∗ AU )(U ∗ AU )∗ = T T ∗ .
Thus, we see that T is an upper triangular matrix with T ∗ T = T T ∗ . Thus, by Exercise 1.2.10.3,
T is a diagonal matrix and this completes the proof.
We re-write Theorem 6.2.19 in another form to indicate that A can be decomposed into
linear combination of orthogonal projectors onto eigen-spaces. Thus, it is independent of the
choice of eigenvectors.
(a) Then, we can group the ui ’s such that they form an orthonormal basis of Wi , for
1 ≤ i ≤ k. Hence, Cn = W1 ⊕ · · · ⊕ Wk .
(b) If Pαi is the orthogonal projector onto Wi , for 1 ≤ i ≤ k then A = α1 P1 + · · · + αk Pk .
Thus, A depends only on eigen-spaces and not on the computed eigenvectors.
Theorem 6.2.22. [Spectral Theorem for Hermitian Matrices] Let A ∈ Mn (C) be a Hermitian
matrix. Then,
Proof. The second part is immediate from Theorem 6.2.19 as Hermitian matrices are also normal
matrices. For Part 1, let (α, x) be an eigen-pair. Then, Ax = αx. As A is Hermitian A∗ = A.
Thus, x∗ A = x∗ A∗ = (Ax)∗ = (αx)∗ = αx∗ . Hence, using x∗ A = αx∗ , we get
4. Let σ(A) = {λ1 , . . . , λn }. Then, prove that the following statements are equivalent.
(a) A is normal.
(b) A is unitarily diagonalizable.
|aij |2 = |λi |2 .
P P
(c)
i,j i
(d) A has n orthonormal eigenvectors.
Ans: In view of earlier results, we only prove c) ⇒ b). By Schur’ theorem, there exists
a unitary matrix U such that U ∗ AU = T is upper triangular. As U ∗ AU = T , we have
|aij |2 = |tij |2 = |tii |2 . So tij = 0, for all i < j.
P P P
i,j i,j i
(b) (λ, x) is an eigen-pair for A∗ . [Hint: Verify kA∗ x − λxk2 = kAx − λxk2 .]
AF
(a) if det(A) = 1 then A is a rotation about a fixed axis, in the sense that A has an
eigen-pair (1, x) such that the restriction of A to the plane x⊥ is a two dimensional
rotation in x⊥ .
(b) if det A = −1 then A corresponds to a reflection through a plane P , followed by a
rotation about the line through origin that is orthogonal to P .
6.2. DIAGONALIZATION 177
9. Let A be a normal matrix. Then, prove that Rank(A) equals the number of nonzero
eigenvalues of A.
10. [Equivalent characterizations of Hermitian matrices] Let A ∈ Mn (C). Then, the fol-
lowing statements are equivalent.
ii)⇒i). Taking x = ei + ıej , we have x∗ Ax = aii − ıaji + ıaij + ajj ∈ R. As aii , ajj ∈ R, we
see that aij − aji is a purely imaginary number, i.e., they have the same real part. Similarly,
taking x = ei + ej , we see that aij + aji ∈ R, that is, they have opposite imaginary parts. So
aij = aji .
iii)⇒i). Suppose that A∗ A = AA∗ and λ(A) ∈ R. By Spectral theorem A = U ∗ ΛU , for some
unitary matrix, where Λ is a real matrix. Taking conjugate transpose, we see that A∗ = A.
PA (x) = det(A − xI) = (−1)n xn − an−1 xn−1 + an−2 xn−2 + · · · + (−1)n−1 a1 x + (−1)n a0
(6.2.6)
for certain ai ∈ C, 0 ≤ i ≤ n − 1. Also, if α is an eigenvalue of A then PA (α) = 0. So,
xn − an−1 xn−1 + an−2 xn−2 + · · · + (−1)n−1 a1 x + (−1)n a0 = 0 is satisfied by n complex numbers.
It turns out that the expression
holds true as a matrix identity. This is a celebrated theorem called the Cayley Hamilton
Theorem. We give a proof using Schur’s unitary triangularization. To do so, we look at
multiplication of certain upper triangular matrices.
Lemma 6.2.25. Let A1 , . . . , An ∈ Mn (C) be upper triangular matrices such that the (i, i)-th
entry of Ai equals 0, for 1 ≤ i ≤ n. Then, A1 A2 · · · An = 0.
B[:, i] = A1 [:, 1](A2 )1i + A1 [:, 2](A2 )2i + · · · + A1 [:, n](A2 )ni = 0 + · · · + 0 = 0
178 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
as A1 [:, 1] = 0 and (A2 )ji = 0, for i = 1, 2 and j ≥ 2. So, assume that the first n − 1 columns
of C = A1 · · · An−1 is 0 and let B = CAn . Then, for 1 ≤ i ≤ n, we see that
B[:, i] = C[:, 1](An )1i + C[:, 2](An )2i + · · · + C[:, n](An )ni = 0 + · · · + 0 = 0
Exercise 6.2.26. Let A, B ∈ Mn (C) be upper triangular matrices with the top leading principal
submatrix of A of size k being 0. If B[k + 1, k + 1] = 0 then prove that the leading principal
submatrix of size k + 1 of AB is 0.
We now prove the Cayley Hamilton Theorem using Schur’s unitary triangularization.
Theorem 6.2.27 (Cayley Hamilton Theorem). Let A ∈ Mn (C). Then, A satisfies its charac-
teristic equation. That is, if PA (x) = det(A−xIn ) = a0 −xa1 +· · ·+(−1)n−1 an−1 xn−1 +(−1)n xn
then
An − an−1 An−1 + an−2 An−2 + · · · + (−1)n−1 a1 A + (−1)n a0 I = 0
tii = αi , for 1 ≤ i ≤ n. Now, observe that if Ai = T − αi I then the Ai ’s satisfy the conditions
of Lemma 6.2.25. Hence,
DR
(T − α1 I) · · · (T − αn I) = 0.
Therefore,
n
Y n
Y h i
PA (A) = (A − αi I) = (U T U ∗ − αi U IU ∗ ) = U (T − α1 I) · · · (T − αn I) U ∗ = U 0U ∗ = 0.
i=1 i=1
We can keep using the above technique to get Am as a linear combination of A and I, for
all m ≥ 1.
6.2. DIAGONALIZATION 179
" #
3 1
2. Let A = . Then, PA (t) = t(t − 3) − 2 = t2 − 3t − 2. So, using PA (A) = 0, we have
2 0
A−3I
A−1 = 2 .Further, A2 = 3A + 2I implies that A3 = 3A2 + 2A = 3(3A + 2I) + 2A =
11A + 6I. So, as above, Am is a combination of A and I, for all m ≥ 1.
" #
0 1
3. Let A = . Then, PA (x) = x2 . So, even though A 6= 0, A2 = 0.
0 0
0 0 1
3 3
4. For A =
0 0 0, PA (x) = x . Thus, by the Cayley Hamilton Theorem A = 0. But,
0 0 0
it turns out that A2 = 0.
1 0 0
3
5. For A = 0 1 1, note that PA (t) = (t − 1) . So PA (A) = 0. But, observe that if
0 0 1
q(t) = (t − 1)2 then q(A) is also 0.
(a) Then, for any ` ∈ N, the division algorithm gives α0 , α1 , . . . , αn−1 ∈ C and a poly-
nomial f (x) with coefficients from C such that
T
i. Thus, to compute any power of A, one needs to apply the division algorithm to
get αi ’s and know Ai , for 1 ≤ i ≤ n − 1. This is quite helpful in numerical
computation as computing powers takes much more time than division.
ii. Note that LS I, A, A2 , . . . is a subspace of Mn (C). Also, dim (Mn (C)) = n2 .
iii. In the language of graph theory, it says the following: “Let G be a graph on n
vertices and A its adjacency matrix. Suppose there is no path of length n − 1 or
less from a vertex v to a vertex u in G. Then, G doesn’t have a path from v to u
of any length. That is, the graph G is disconnected and v and u are in different
components of G.”
(b) Suppose A is non-singular. Then, by definition a0 = det(A) 6= 0. Hence,
1
A−1 = a1 I − a2 A + · · · + (−1)n−2 an−1 An−2 + (−1)n−1 An−1 .
a0
This matrix identity can be used to calculate the inverse.
(c) The above also implies that if A is invertible then A−1 ∈ LS I, A, A2 , . . . . That is,
x + iy
(d) s + it, is an eigen-pair of A if and only if (s + it, x + iy) is an eigen-
AF
−y + ix
pair of B + iC.
DR
The next section deals with quadratic forms which helps us in better understanding of conic
sections in analytic geometry.
Lemma 6.3.2. Let A ∈ Mn (C). Then A is Hermitian if and only if at least one of the following
statements hold:
1. S ∗ AS is Hermitian for all S ∈ Mn .
2. A is normal and has real eigenvalues.
6.3. QUADRATIC FORMS 181
3. x∗ Ax ∈ R for all x ∈ Cn .
Remark 6.3.3. Let A ∈ Mn (R). Then the condition x∗ Ax ∈ R in Definition 6.3.9 is always
true and hence doesn’t put any restriction on the matrix A. So, in Definition 6.3.9, we assume
that AT = A, i.e., A is a symmetric
" matrix.
# " #
2 1 3 1+i
Example 6.3.4. 1. Let A = or A = . Then, A is positive definite.
1 2 1−i 4
" # "√ #
T
1 1 2 1+i
2. Let A = or A = √ . Then, A is positive semi-definite but not positive
AF
1 1 1−i 2
definite.
DR
" # " #
−2 1 −2 1 − i
3. Let A = or A = . Then, A is negative definite.
1 −2 1 + i −2
" # " #
−1 1 −2 1 − i
4. Let A = or A = . Then, A is negative semi-definite.
1 −1 1 + i −1
" # " #
0 1 1 1+i
5. Let A = or A = . Then, A is indefinite.
1 −1 1−i 1
Theorem 6.3.5. Let A ∈ Mn (C). Then, the following statements are equivalent.
1. A is positive semi-definite.
2. A∗ = A and each eigenvalue of A is non-negative.
3. A = B ∗ B for some B ∈ Mn (C).
Theorem 6.3.6. Let A ∈ Mn (C). Then, the following statements are equivalent.
1. A is positive definite.
2. A∗ = A and each eigenvalue of A is positive.
3. A = B ∗ B for a non-singular matrix B ∈ Mn (C).
Definition 6.3.9. [Sesquilinear, Hermitian and Quadratic Forms] Let A = [aij ] ∈ Mn (C)
be a Hermitian matrix and let x, y ∈ Cn . Then, a sesquilinear form in x, y ∈ Cn is defined
as H(x, y) = y∗ Ax. In particular, H(x, x), denoted H(x), is called a Hermitian form. In
case A ∈ Mn (R), H(x) is called a quadratic form.
where ‘Re’ denotes the real part of a complex number, is a sesquilinear form.
6.3. QUADRATIC FORMS 183
The main idea of this section is to express H(x) as sum or difference of squares. Since H(x) is
a quadratic in x, replacing x by cx, for c ∈ C, just gives a multiplication factor by |c|2 . Hence,
one needs to study only the normalized vectors. Let us consider Example 6.1.1 again. There
we see that
(x + y)2 (x − y)2
xT Ax = 3 − = (x + 2y)2 − 3y 2 , and (6.3.1)
2 2
(x + 2y)2 (2x − y)2 2y 50y 2
xT Bx = 5 + 10 = (3x − )2 + . (6.3.2)
5 5 3 9
Note that both the expressions in Equation (6.3.1) is the difference of two non-negative terms.
Whereas, both the expressions in Equation (6.3.2) consists of sum of two non-negative terms.
Is this just a coincidence?
In general, let A ∈ Mn (C) be a Hermitian matrix. Then, by Theorem 6.2.22, σ(A) =
{α1 , . . . , αn } ⊆ R and there exists a unitary matrix U such that U ∗ AU = D = diag(α1 , . . . , αn ).
Let x = U z. Then, kxk = 1 and U is unitary implies that kzk = 1. If z = (z1 , . . . , zn )∗ then
n p r
∗ ∗ ∗
X
2
X √ 2
X p 2
H(x) = z U AU z = z Dz = αi |zi | = | αi zi | − |αi | zi , (6.3.3)
i=1 i=1 i=p+1
where α1 , . . . , αp > 0, αp+1 , . . . , αr < 0 and αr+1 , . . . , αn = 0. Thus, we see that the possible
values of H(x) seem to depend only on the eigenvalues of A. Since U is an invertible matrix,
T
AF
that in Equation (6.3.3), p corresponds to the number of positive eigenvalues and r − p to the
number of negative eigenvalues. For a better understanding, we define the following numbers.
Exercise 6.3.13. Let A ∈ Mn (C) be a Hermitian matrix. If the signature and the rank of A
is known then prove that one can find out the inertia of A.
As a next result, we show that in any expression of H(x) as a sum or difference of n absolute
squares of linearly independent linear forms, the number p (respectively, r − p) gives the number
of positive (respectively, negative) eigenvalues of A. This is popularly known as the ‘Sylvester’s
law of inertia’.
Lemma 6.3.14. [Sylvester’s Law of Inertia] Let A ∈ Mn (C) be a Hermitian matrix and let
x ∈ Cn . Then, every Hermitian form H(x) = x∗ Ax, in n variables can be written as
where y1 , . . . , yr are linearly independent linear forms in the components of x and the integers
p and r satisfying 0 ≤ p ≤ r ≤ n, depend only on A.
184 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
Proof. Equation (6.3.3) implies that H(x) has the required form. We only need to show that
p and r are uniquely determined by A. Hence, let us assume on the contrary that there exist
p, q, r, s ∈ N with p > q such that
Remark 6.3.15. Since A is Hermitian, Rank(A) equals the number of nonzero eigenvalues.
Hence, Rank(A) = r. The number r is called the rank and the number r − 2p is called the
inertial degree of the Hermitian form H(x).
We now look at another form of the Sylvester’s law of inertia. We start with the following
definition.
1. As rank and nullity do not change under similarity transformation, i0 (A) = i0 (DB ) = m
as i(B) = (k, l, m).
2. Using i(B) = (k, l, m), we also have
Similarly, X[:, k + 2]∗ AX[:, k + 2] = · · · = X[:, k + l]∗ AX[:, k + l] = −1. As the vectors
X[:, k + 1], . . . , X[:, k + l] are linearly independent, using 7.7.10, we see that A has at least
l negative eigenvalues.
3. Similarly, X[:, 1]∗ AX[:, 1] = · · · = X[:, k]∗ AX[:, k] = 1. As X[:, 1], . . . , X[:, k] are linearly
independent, using 7.7.10 again, we see that A has at least k positive eigenvalues.
Definition 6.3.18. [Associated Quadratic Form] Let f (x, y) = ax2 +2hxy+by 2 +2f x+2gy+c
be a general quadratic in x and y, with coefficients from R. Then,
" #" #
h i a h x
H(x) = xT Ax = x, y = ax2 + 2hxy + by 2
T
h b y
AF
Proposition 6.3.19. Consider the quadratic f (x, y) = ax2 + 2hxy + by 2 + 2gx + 2f y + c, for
a, b, c, g, f, h ∈ R. If (a, b, h) 6= (0, 0, 0) then f (x, y) = 0 represents
d2 2
f (u, v) = 0 ⇔ α2 v + = c1 − d1 u,
2α2
for some c1 ∈ R.
d2
(a) If d1 = 0, the quadratic corresponds to either the same line v + = 0, two parallel
2α2
lines or two imaginary lines, depending on whether c1 = 0, c1 α2 > 0 and c1 α2 < 0,
respectively.
(b) If d1 6= 0, the quadratic corresponds to a parabola of the form V 2 = 4aU , for some
translate U = u + α and V = v + β.
α1 (u + d1 )2 α2 (v + d2 )2
− = 1.
T
d3 d3
AF
α1 (u + d1 )2 α2 (v + d2 )2
+ = 1.
d3 d3
Thus, we have considered all the possible cases and the required result follows.
" # " #
u T x
Remark 6.3.20. Observe that the linearly independent forms =U are functions of
v y
the eigenvectors u1 and u2 . Further, the linearly independent forms together with the shifting
of the origin give us the principal axes of the corresponding conic.
T
AF
2 2
2. Let H(x)
" # − 5y + 20xy be the associated
= 10x " quadratic
√ #!
form for "
a class of#!
√
curves. Then
10 10 2/ 5 1/ 5
A= and the eigen-pairs are 15, √ and −10, √ . So, for
10 −5 1/ 5 −2/ 5
(a) f (x, y) = 10x2 − 5y 2 + 20xy + 16x − 2y + 1, we have f (x, y) = 0 ⇔ 3(2x + y + 1)2 −
2(x − 2y − 1)2 = 0, a pair of perpendicular lines.
(b) f (x, y) = 10x2 − 5y 2 + 20xy + 16x − 2y + 19, we have
2 2
x − 2y − 1
2x + y + 1
f (x, y) = 0 ⇔ − √ = 1,
3 6
a hyperbola.
(c) f (x, y) = 10x2 − 5y 2 + 20xy + 16x − 2y − 17, we have
2 2
x − 2y − 1
2x + y + 1
f (x, y) = 0 ⇔ √ − = 1,
6 3
a hyperbola.
3. Let H(x) = 2 2
" # 6x + 9y + 4xy be the associated
" √quadratic
#! form"for a class
√ #!
of curves. Then,
6 2 1/ 5 2/ 5
A= , and the eigen-pairs are 10, √ and 5, √ . So, for
2 9 2/ 5 −1/ 5
188 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
x + 2y + 1 2 2x − y − 1 2
f (x, y) = 0 ⇔ + √ = 1,
5 5 2
an ellipse.
T
AF
DR
1. x2 + 2xy + y 2 + 6x + 10y = 3.
Ans: a parabola.
As a last application,
we consider
a quadratic
in 3 variables,
namely x1 , x2 and x3 . To do
a h g x l y
1 1
so, let A =
h b f , x = x2 , b = m and y = y2 with
g f c x3 n y3
f (x1 , x2 , x3 ) = xT Ax + 2bT x + q
= ax21 + bx22 + cx23 + 2hx1 x2 + 2gx1 x3 + 2f x2 x3
+2lx1 + 2mx2 + 2nx3 + q (6.3.6)
3. Depending on the values of αi ’s, rewrite g(y1 , y2 , y3 ) to determine the center and the
planes of symmetry of f (x1 , x2 , x3 ) = 0.
x+y+z 2 x−y 2 x + y − 2z 2
4 √ + √ + √ = −(4x + 2y + 4z + 2).
3 2 6
4(x + y + z) + 5 2 x−y+1 2 x + y − 2z − 1 2
√ √ √ 9
Or equivalently to 4 + + = 12 . So, the
4 3 2 6
principal axes of the quadric (an ellipsoid) are 4(x + y + z) = −5, x − y = 1 and x + y − 2z = 1.
y2 3x2 z2
Part 2 Here f (x, y, z) = 0 reduces to 10 − 10 − 10 = 1 which is the equation of a
hyperboloid consisting of two sheets with center 0 and the axes x, y and z as the principal axes.
3x2 y2 z2
Part 3 Here f (x, y, z) = 0 reduces to 10 − 10 + 10 = 1 which is the equation of a
hyperboloid consisting of one sheet with center 0 and the axes x, y and z as the principal axes.
Part 4 Here f (x, y, z) = 0 reduces to z = y 2 −3x2 +10 which is the equation of a hyperbolic
paraboloid.
190 CHAPTER 6. EIGENVALUES, EIGENVECTORS AND DIAGONALIZABILITY
T
AF
DR
Figure 6.5: Ellipsoid, hyperboloid of two sheets and one sheet, hyperbolic paraboloid
.
Chapter 7
Appendix
Remark 7.1.2. Recall that in Remark 7.2.16.1, it was observed that each permutation is a
AF
1. Verify that the elementary matrix Eij is the permutation matrix corresponding to the
transposition (i, j) .
2. Thus, every permutation matrix is a product of elementary matrices E1j , 1 ≤ j ≤ n.
1 0 0 0 1 0
3. For n = 3, the permutation matrices are I3 , 0 0 1 = E23 = E12 E13 E12 , 1
0 0=
0 1 0 0 0 1
0 1 0 0 0 1 0 0 1
E12 ,
0 0 1 = E12 E13 , 1 0 0 = E13 E12 and 0 1 0 = E13 .
1 0 0 0 1 0 1 0 0
4. Let f ∈ Sn and P f = [pij ] be the corresponding permutation matrix. Since pij = δi,j and
{f (1), . . . , f (n)} = [n], each entry of P f is either 0 or 1. Furthermore, every row and
column of P f has exactly one nonzero entry. This nonzero entry is a 1 and appears at
the position pi,f (i) .
5. By the previous paragraph, we see that when a permutation matrix is multiplied to A
(a) from left then it permutes the rows of A.
(b) from right then it permutes the columns of A.
6. P is a permutation matrix if and only if P has exactly one 1 in each row and column.
Solution: If P has exactly one 1 in each row and column, then P is a square matrix, say
191
192 CHAPTER 7. APPENDIX
n × n. Now, apply GJE to P . The occurrence of exactly one 1 in each row and column
implies that these 1’s are the pivots in each column. We just need to interchange rows to
get it in RREF. So, we need to multiply by Eij . Thus, GJE of P is In and P is indeed a
product of Eij ’s. The other part has already been explained earlier.
Theorem 7.1.3. Let A and B be two matrices in RREF. If they are row equivalent then A = B.
Proof. Note that the matrix A = 0 if and only if B = 0. So, let us assume that the matrices
A, B 6= 0. Also, the row-equivalence of A and B implies that there exists an invertible matrix
C such that A = CB, where C is product of elementary matrices.
Since B is in RREF, either B[:, 1] = 0T or B[:, 1] = (1, 0, . . . , 0)T . If B[:, 1] = 0T then
A[:, 1] = CB[:, 1] = C0 = 0. If B[:, 1] = (1, 0, . . . , 0)T then A[:, 1] = CB[:, 1] = C[:, 1]. As C is
invertible, the first column of C cannot be the zero vector. So, A[:, 1] cannot be the zero vector.
Further, A is in RREF implies that A[:, 1] = (1, 0, . . . , 0)T . So, we have shown that if A and B
are row-equivalent then their first columns must be the same.
Now, let us assume that the first k − 1 columns of A and B are equal and it contains r
pivotal columns. We will now show that the k-th column is also the same.
Define Ak = [A[:, 1], . . . , A[:, k]] and Bk = [B[:, 1], . . . , B[:, k]]. Then, our assumption implies
that A[:, i] = B[:, i], for 1 ≤ i ≤ k − 1. Since, the first k − 1 columns contain r pivotal columns,
there exists a permutation matrix P such that
T
AF
" # " #
Ir W A[:, k] Ir W B[:, k]
Ak P = and Bk P = .
DR
0 0 0 0
" # If the k-th columns of A and B are pivotal columns then by definition of RREF, A[:, k] =
0
= B[:, k], where 0 is a vector of size r and e1 = (1, 0, . . . , 0)T . So, we need to consider two
e1
cases depending on whether both are non-pivotal or one is pivotal and the other is not.
As A = CB, we get Ak = CBk and
" # " #" # " #
Ir W A[:, k] C1 C2 Ir W B[:, k] C1 C1 W CB[:, k]
= Ak P = CBk P = = .
0 0 C3 C4 0 0 C3 C3 W
" #
I r C2
So, we see that C1 = Ir , C3 = 0 and A[:, k] = B[:, k].
0 C4
Case 1: Neither A[:, k] nor B[:, k] are pivotal. Then
" # " # " #" # " #
X I r C2 I r C2 Y Y
= A[:, k] = B[:, k] = = .
0 0 C4 0 C4 0 0
Thus, X = Y and in this case the k-th columns are equal.
Case 2: A[:, k] is pivotal but B[:, k] in non-pivotal. Then
" # " # " #" # " #
0 I r C2 Ir C2 Y Y
= A[:, k] = B[:, k] = = ,
e1 0 C4 0 C4 0 0
a contradiction as e1 6= 0. Thus, this case cannot arise.
Therefore, combining both the cases, we get the required result.
7.2. PERMUTATION/SYMMETRIC GROUPS 193
Example 7.2.2. Let A = {1, 2, 3}, B = {a, b, c, d} and C = {α, β, γ}. Then, the function
1. j : A → B defined by j(1) = a, j(2) = c and j(3) = c is neither one-one nor onto.
2. f : A → B defined by f (1) = a, f (2) = c and f (3) = d is one-one but not onto.
3. g : B → C defined by g(a) = α, g(b) = β, g(c) = α and g(d) = γ is onto but not one-one.
4. h : B → A defined by h(a) = 2, h(b) = 2, h(c) = 3 and h(d) = 1 is onto.
5. h ◦ f : A → A is a bijection.
6. g ◦ f : A → C is neither one-one not onto.
Exercise 7.2.5. Let S3 be the set consisting of all permutation on 3 elements. Then, prove
that S3 has 6 elements. Moreover, they are one of the 6 functions given below.
1. f1 (1) = 1, f1 (2) = 2 and f1 (3) = 3.
2. f2 (1) = 1, f2 (2) = 3 and f2 (3) = 2.
3. f3 (1) = 2, f3 (2) = 1 and f3 (3) = 3.
4. f4 (1) = 2, f4 (2) = 3 and f4 (3) = 1.
5. f5 (1) = 3, f5 (2) = 1 and f5 (3) = 2.
6. f6 (1) = 3, f6 (2) = 2 and f6 (3) = 1.
Remark 7.2.6. Let f : [n] → [n] be a bijection. Then, the inverse of f , denote f −1 , is defined
by f −1 (m) = ` whenever f (`) = m for m ∈ [n] is well defined and f −1 is a bijection. For
example, in Exercise 7.2.5, note that fi−1 = fi , for i = 1, 2, 3, 6 and f4−1 = f5 .
Remark 7.2.7. Let Sn = {f : [n] → [n] : σ is a permutation}. Then, Sn has n! elements and
forms a group with respect to composition of functions, called product, due to the following.
194 CHAPTER 7. APPENDIX
1. Let f ∈ Sn . Then,
!
1 2 ··· n
(a) f can be written as f = , called a two row notation.
f (1) f (2) · · · f (n)
(b) f is one-one. Hence, {f (1), f (2), . . . , f (n)} = [n] and thus, f (1) ∈ [n], f (2) ∈ [n] \
{f (1)}, . . . and finally f (n) = [n]\{f (1), . . . , f (n−1)}. Therefore, there are n choices
for f (1), n − 1 choices for f (2) and so on. Hence, the number of elements in Sn
equals n(n − 1) · · · 2 · 1 = n!.
4. Sn has a special permutation called the identity permutation, denoted Idn , such that
Idn (i) = i, for 1 ≤ i ≤ n.
Lemma 7.2.8. Fix a positive integer n. Then, the group Sn satisfies the following:
2. Sn = {g −1 : g ∈ Sn }.
Proof. Part 1: Note that for each α ∈ Sn the functions f −1 ◦α, α◦f −1 ∈ Sn and α = f ◦(f −1 ◦α)
T
AF
as well as α = (α ◦ f −1 ) ◦ f .
Part 2: Note that for each f ∈ Sn , by definition, (f −1 )−1 = f . Hence the result holds.
DR
Definition 7.2.9. Let f ∈ Sn . Then, the number of inversions of f , denoted n(f ), equals
3. Let f = (1, 3, 5, 4) and g = (2, 4, 1) be two cycles. Then, their product, denoted f ◦ g or
(1, 3, 5, 4)(2, 4, 1) equals (1, 2)(3, 5, 4). The calculation proceeds as (the arrows indicate the
images):
1 → 2. Note (f ◦ g)(1) = f (g(1)) = f (2) = 2.
2 → 4 → 1 as (f ◦ g)(2) = f (g(2)) = f (4) = 1. So, (1, 2) forms a cycle.
3 → 5 as (f ◦ g)(3) = f (g(3)) = f (3) = 5.
5 → 4 as (f ◦ g)(5) = f (g(5)) = f (5) = 4.
4 → 1 → 3 as (f ◦ g)(4) = f (g(4)) = f (1) = 3. So, the other cycle is (3, 5, 4).
4. Let f = (1, 4, 5) and g = (2, 4, 1) be two permutations. Then, (1, 4, 5)(2, 4, 1) = (1, 2, 5)(4) =
(1, 2, 5) as 1 → 2, 2 → 4 → 5, 5 → 1, 4 → 1 → 4 and
(2, 4, 1)(1, 4, 5) = (1)(2, 4, 5) = (2, 4, 5) as 1 → 4 → 1, 2 → 4, 4 → 5, 5 → 1 → 2.
!
1 2 3 4 5
5. Even though is not a cycle, verify that it is a product of the cycles
4 3 2 5 1
(1, 4, 5) and (2, 3).
2. in general, the r-cycle (i1 , . . . , ir ) = (1, i1 )(1, ir )(1, ir−1 ) · · · (1, i2 )(1, i1 ).
AF
3. So, every r-cycle can be written as product of transpositions. Furthermore, they can be
DR
written using the n transpositions (1, 2), (1, 3), . . . , (1, n).
With the above definitions, we state and prove two important results.
Proof. Note that using use Remark 7.2.14, we just need to show that f can be written as
product of disjoint cycles.
Consider the set S = {1, f (1), f (2) (1) = (f ◦ f )(1), f (3) (1) = (f ◦ (f ◦ f ))(1), . . .}. As S is an
infinite set and each f (i) (1) ∈ [n], there exist i, j with 0 ≤ i < j ≤ n such that f (i) (1) = f (j) (1).
Now, let j1 be the least positive integer such that f (i) (1) = f (j1 ) (1), for some i, 0 ≤ i < j1 .
Then, we claim that i = 0.
For if, i − 1 ≥ 0 then j1 − 1 ≥ 1 and the condition that f is one-one gives
f (i−1) (1) = (f −1 ◦ f (i) )(1) = f −1 f (i) (1) = f −1 f (j1 ) (1) = (f −1 ◦ f (j1 ) )(1) = f (j1 −1) (1).
Thus, we see that the repetition has occurred at the (j1 − 1)-th instant, contradicting the
assumption that j1 was the least such positive integer. Hence, we conclude that i = 0. Thus,
(1, f (1), f (2) (1), . . . , f (j1 −1) (1)) is one of the cycles in f .
Now, choose i1 ∈ [n] \ {1, f (1), f (2) (1), . . . , f (j1 −1) (1)} and proceed as above to get another
cycle. Let the new cycle by (i1 , f (i1 ), . . . , f (j2 −1) (i1 )). Then, using f is one-one follows that
1, f (1), f (2) (1), . . . , f (j1 −1) (1) ∩ i1 , f (i1 ), . . . , f (j2 −1) (i1 ) = ∅.
196 CHAPTER 7. APPENDIX
So, the above process needs to be repeated at most n times to get all the disjoint cycles. Thus,
the required result follows.
Remark 7.2.16. Note that when one writes a permutation as product of disjoint cycles, cycles
of length 1 are suppressed so as to match Definition 7.2.11. For example, the algorithm in the
proof of Theorem 7.2.15 implies
1. Using Remark 7.2.14.3, we see that every permutation can be written as product of the n
transpositions (1, 2), (1, 3), . . . , (1, n).
!
1 2 3 4 5
2. = (1)(2, 4, 5)(3) = (2, 4, 5).
1 4 3 5 2
!
1 2 3 4 5 6 7 8 9
3. = (1, 4, 5)(2)(3)(6, 9)(7, 8) = (1, 4, 5)(6, 9)(7, 8).
4 2 3 5 1 9 8 7 6
Note that Id3 = (1, 2)(1, 2) = (1, 2)(2, 3)(1, 2)(1, 3), as well. The question arises, is it
possible to write Idn as a product of odd number of transpositions? The next lemma answers
this question in negative.
Idn = f1 ◦ f2 ◦ · · · ◦ ft ,
then t is even.
T
Proof. We will prove the result by mathematical induction. Observe that t 6= 1 as Idn is not a
AF
transposition. Hence, t ≥ 2. If t = 2, we are done. So, let us assume that the result holds for
DR
f = g1 ◦ g2 ◦ · · · ◦ gk = h1 ◦ h2 ◦ · · · ◦ h`
Idn = g1 ◦ g2 ◦ · · · ◦ gk ◦ h` ◦ h`−1 ◦ · · · ◦ h1 .
Hence by Lemma 7.2.17, k + ` is even. Thus, either k and ` are both even or both odd.
Definition 7.2.20. Observe that if f and g are both even or both odd permutations, then f ◦ g
and g ◦ f are both even. Whereas, if one of them is odd and the other even then f ◦ g and g ◦ f
are both odd. We use this to define a function sgn : Sn → {1, −1}, called the signature of a
permutation, by (
1 if f is an even permutation
sgn(f ) = .
−1 if f is an odd permutation
Example 7.2.21. Consider the set Sn . Then,
3. using Remark 7.2.20, sgn(f ◦ g) = sgn(f ) · sgn(g) for any two permutations f, g ∈ Sn .
T
Definition 7.2.22. Let A = [aij ] be an n × n matrix with complex entries. Then, the deter-
DR
Observe that det(A) is a scalar quantity. Even though the expression for det(A) seems
complicated at first glance, it is very helpful in proving the results related with “properties of
determinant”. We will do so in the next section. As another examples, we verify that this
definition also matches for 3 × 3 matrices. So, let A = [aij ] be a 3 × 3 matrix. Then, using
Equation (7.2.2),
X 3
Y
det(A) = sgn(σ) aiσ(i)
σ∈Sn i=1
3
Y 3
Y 3
Y
= sgn(f1 ) aif1 (i) + sgn(f2 ) aif2 (i) + sgn(f3 ) aif3 (i) +
i=1 i=1 i=1
3
Y 3
Y 3
Y
sgn(f4 ) aif4 (i) + sgn(f5 ) aif5 (i) + sgn(f6 ) aif6 (i)
i=1 i=1 i=1
= a11 a22 a33 − a11 a23 a32 − a12 a21 a33 + a12 a23 a31 + a13 a21 a32 − a13 a22 a31 .
198 CHAPTER 7. APPENDIX
5. Let B and C be two n×n matrices. If there exists m ∈ [n] such that B[i, :] = C[i, :] = A[i, :]
for all i 6= m and C[m, :] = A[m, :] + B[m, :] then det(C) = det(A) + det(B).
7. If A is a triangular matrix then det(A) = a11 · · · ann , the product of the diagonal entries.
Proof. Part 1: Note that each sum in det(A) contains one entry from each row. So, each sum
has an entry from A[i, :] = 0T . Hence, each sum in itself is zero. Thus, det(A) = 0.
Part 2: By assumption, B[k, :] = A[k, :] for k 6= i and B[i, :] = cA[i, :]. So,
X Y X Y
det(B) = sgn(σ) bkσ(k) biσ(i) = sgn(σ) akσ(k) caiσ(i)
σ∈Sn k6=i σ∈Sn k6=i
X n
Y
= c sgn(σ) akσ(k) = c det(A).
σ∈Sn k=1
Part 3: Let τ = (i, j). Then, sgn(τ ) = −1, by Lemma 7.2.8, Sn = {σ ◦ τ : σ ∈ Sn } and
X n
Y X n
Y
det(B) = sgn(σ) biσ(i) = sgn(σ ◦ τ ) bi,(σ◦τ )(i)
σ∈Sn i=1 σ◦τ ∈Sn i=1
X Y
= sgn(τ ) · sgn(σ) bkσ(k) bi(σ◦τ )(i) bj(σ◦τ )(j)
σ◦τ ∈Sn k6=i,j
X Y X n
Y
= sgn(τ ) sgn(σ) bkσ(k) biσ(j) bjσ(i) = − sgn(σ) akσ(k)
σ∈Sn k6=i,j σ∈Sn k=1
= − det(A).
Part 4: As A[i, :] = A[j, :], A = Eij A. Hence, by Part 3, det(A) = − det(A). Thus, det(A) = 0.
7.3. PROPERTIES OF DETERMINANT 199
Part 5: By assumption, C[i, :] = B[i, :] = A[i, :] for i 6= m and C[m, :] = B[m, :] + A[m, :]. So,
X Yn X Y
det(C) = sgn(σ) ciσ(i) = sgn(σ) ciσ(i) cmσ(m)
σ∈Sn i=1 σ∈Sn i6=m
X Y
= sgn(σ) ciσ(i) (amσ(m) + bmσ(m) )
σ∈Sn i6=m
X n
Y X n
Y
= sgn(σ) aiσ(i) + sgn(σ) biσ(i) = det(A) + det(B).
σ∈Sn i=1 σ∈Sn i=1
Part 6: By assumption, B[k, :] = A[k, :] for k 6= i and B[i, :] = A[i, :] + cA[j, :]. So,
X Yn X Y
det(B) = sgn(σ) bkσ(k) = sgn(σ) bkσ(k) biσ(i)
σ∈Sn k=1 σ∈Sn k6=i
X Y
= sgn(σ) akσ(k) (aiσ(i) + cajσ(j) )
σ∈Sn k6=i
X Y X Y
= sgn(σ) akσ(k) aiσ(i) + c sgn(σ) akσ(k) ajσ(j) )
σ∈Sn k6=i σ∈Sn k6=i
X n
Y
= sgn(σ) akσ(k) + c · 0 = det(A). U seP art 4
T
σ∈Sn k=1
AF
Part 7: Observe that if σ ∈ Sn and σ 6= Idn then n(σ) ≥ 1. Thus, for every σ 6= Idn , there
DR
exists m ∈ [n] (depending on σ) such that m > σ(m) or m < σ(m). So, if A is triangular,
amσ(m) = 0. So, for each σ 6= Idn , ni=1 aiσ(i) = 0. Hence, det(A) = ni=1 aii . the result follows.
Q Q
Part 8: Using Part 7, det(In ) = 1. By definition Eij = Eij In and Ei (c) = Ei (c)In and
Eij (c) = Eij (c)In , for c 6= 0. Thus, using Parts 2, 3 and 6, we get det(Ei (c)) = c, det(Eij ) = −1
and det(Eij (k)) = 1. Also, again using Parts 2, 3 and 6, we get det(EA) = det(E) det(A).
Part 9: Suppose A is invertible. Then, by Theorem 2.5.1, A = E1 · · · Ek , for some elementary
matrices E1 , . . . , Ek . So, a repeated application of Part 8 implies det(A) = det(E1 ) · · · det(Ek ) 6=
0 as det(Ei ) 6= 0 for 1 ≤ i ≤ k.
Now, suppose that det(A) 6= 0. We need to show that A is invertible. On the contrary, as-
sume that A is not invertible. Then, by Theorem 2.5.1, Rank(A) < " n. So,# by Proposition 2.2.21,
B
there exist elementary matrices E1 , . . . , Ek such that E1 · · · Ek A = . Therefore, by Part 1
0
and a repeated application of Part 8 gives
" #!
B
det(E1 ) · · · det(Ek ) det(A) = det(E1 · · · Ek A) = det = 0.
0
In case A is not invertible, by Part 9, det(A) = 0. Also, AB is not invertible (AB is invertible
will imply A is invertible using the rank argument). So, again by Part 9, det(AB) = 0. Thus,
det(AB) = det(A) det(B).
Part 11: Let B = [bij ] = AT . Then, bij = aji , for 1 ≤ i, j ≤ n. By Lemma 7.2.8, we know that
Sn = {σ −1 : σ ∈ Sn }. As σ ◦ σ −1 = Idn , sgn(σ) = sgn(σ −1 ). Hence,
X n
Y X n
Y X n
Y
det(B) = sgn(σ) biσ(i) = sgn(σ) aσ(i),i = sgn(σ −1 ) aiσ−1 (i)
σ∈Sn i=1 σ∈Sn i=1 σ −1 ∈S n i=1
= det(A).
Remark 7.3.2. 1. As det(A) = det(AT ), we observe that in Theorem 7.3.1, the condition
on “row” can be replaced by the condition on “column”.
2. Let A = [aij ] be a matrix satisfying a1j = 0, for 2 ≤ j ≤ n. Let B = A(1 | 1), the submatrix
of A obtained by removing the first row and the first column. Then det(A) = a11 det(B).
Proof: Let σ ∈ Sn with σ(1) = 1. Then, σ has a cycle (1). So, a disjoint cycle represen-
tation of σ only has numbers {2, 3, . . . , n}. That is, we can think of σ as an element of
Sn−1 . Hence,
X n
Y X n
Y
T
X Y X Y
= a11 sgn(σ) aiσ(i) = a11 sgn(σ) biσ(i) = a11 det(B).
σ∈Sn ,σ(1)=1 i=2 σ∈Sn−1 i=1
We now relate this definition of determinant with the one given in Definition 2.5.6.
n
(−1)1+j a1j det A(1 | j) , where
P
Theorem 7.3.3. Let A be an n × n matrix. Then, det(A) =
j=1
recall that A(1 | j) is the submatrix of A obtained by removing the 1st row and the j th column.
0 0 · · · a1j · · · 0
a21 a22 · · · a2j · · · a2n
Proof. For 1 ≤ j ≤ n, define an n × n matrix Bj = . . Also, for
.. .. .. .. ..
. . . .
an1 an2 · · · anj · · · ann
each matrix Bj , we define the n × n matrix Cj by
1. Cj [:, 1] = Bj [:, j],
2. Cj [:, i] = Bj [:, i − 1], for 2 ≤ i ≤ j and
3. Cj [:, k] = Bj [:, k] for k ≥ j + 1.
Also, observe that Bj ’s have been defined to satisfy B1 [1, :] + · · · + Bn [1, :] = A[1, :] and
Bj [i, :] = A[i, :] for all i ≥ 2 and 1 ≤ j ≤ n. Thus, by Theorem 7.3.1.5,
n
X
det(A) = det(Bj ). (7.3.1)
j=1
7.4. DIMENSION OF W1 + W2 201
Let us now compute det(Bj ), for 1 ≤ j ≤ n. Note that Cj = E12 E23 · · · Ej−1,j Bj , for 1 ≤ j ≤ n.
Then, by Theorem 7.3.1.3, we get det(Bj ) = (−1)j−1 det(Cj ). So, using Remark 7.3.2.2 and
Theorem 7.3.1.2 and Equation (7.3.1), we have
n
X n
X
(−1)j−1 det(Cj ) = (−1)j+1 a1j det A(1 | j) .
det(A) =
j=1 j=1
Thus, we have shown that the determinant defined in Definition 2.5.6 is valid.
7.4 Dimension of W1 + W2
Theorem 7.4.1. Let V be a finite dimensional vector space over F and let W1 and W2 be two
subspaces of V. Then,
2. LS(D) = W1 + W2 .
DR
The second part can be easily verified. For the first part, consider the linear system
α1 u1 + · · · + αr ur + β1 w1 + · · · + βs ws + γ1 v1 + · · · + γt vt = 0 (7.4.2)
α1 u1 + · · · + αr ur + β1 w1 + · · · + βs ws = −(γ1 v1 + · · · + γt vt ).
s r T
γi vi ∈ LS(B1 ) = W1 . Also, v = βk wk . So, v ∈ LS(B2 ) = W2 .
P P P
Then, v = − αr ur +
i=1 j=1 k=1
r
Hence, v ∈ W1 ∩ W2 and therefore, there exists scalars δ1 , . . . , δk such that v =
P
δ j uj .
j=1
Substituting this representation of v in Equation (7.4.2), we get
α1 u1 + · · · + αk uk + γ1 v1 + · · · + γr vr = 0
which has αi = 0 for 1 ≤ i ≤ r and γj = 0 for 1 ≤ j ≤ s as the only solution. Hence, we see that
the linear system of Equations (7.4.2) has no nonzero solution. Therefore, the set D is linearly
independent and the set D is indeed a basis of W1 + W2 . We now count the vectors in the sets
B, B1 , B2 and D to get the required result.
202 CHAPTER 7. APPENDIX
Theorem 7.5.1. Let V be a real vector space. A norm k · k is induced by an inner product if
and only if, for all x, y ∈ V, the norm satisfies
Proof. Suppose that k · k is indeed induced by an inner product. Then, by Exercise 5.1.7.3 the
result follows.
So, let us assume that k · k satisfies the parallelogram law. So, we need to define an inner
product. We claim that the function f : V × V → R defined by
1
kx + yk2 − kx − yk2 , for all x, y ∈ V
f (x, y) =
4
satisfies the required conditions for an inner product. So, let us proceed to do so.
1
Step 1: Clearly, for each x ∈ V, f (x, 0) = 0 and f (x, x) = kx + xk2 = kxk2 . Thus,
4
f (x, x) ≥ 0. Further, f (x, x) = 0 if and only if x = 0.
Step 3: Now note that kx + yk2 − kx − yk2 = 2 kx + yk2 − kxk2 − kyk2 . Or equivalently,
AF
(7.5.2)
Now, substituting z = 0 in Equation (7.5.3) and using Equation (7.5.2), we get 2f (x, y) =
f (x, 2y) and hence 4f (x + z, y) = 2f (x + z, 2y) = 4 (f (x, y) + f (z, y)). Thus,
Step 4: Using Equation (7.5.4), f (x, y) = f (y, x) and the principle of mathematical induction,
it follows that nf (x, y) = f (nx, y), for all x, y ∈ V and n ∈ N. Another application of
Equation (7.5.4) with f (0, y) = 0 implies that nf (x, y) = f (nx, y), for all x, y ∈ V and
n ∈ Z. Also, for m 6= 0,
n n
mf x, y = f (m x, y) = f (nx, y) = nf (x, y).
m m
Hence, we see that for all x, y ∈ V and a ∈ Q, f (ax, y) = af (x, y).
7.6. ROOTS OF A POLYNOMIALS 203
where [a, b] ⊆ R.
DR
1. If the function f is one-one on [a, b) and also on (a, b], then it is called a simple curve.
2. If f (b) = f (a), then it is called a closed curve.
3. A closed simple curve is called a Jordan curve.
4. The derivative (integral) of a curve f = u+iv is defined component wise. If f 0 is continuous
on [a, b], we say f is a C 1 -curve (at end points we consider one sided derivatives and
continuity).
5. A C 1 -curve on [a, b] is called a smooth curve, if f 0 is never zero on (a, b).
6. A piecewise smooth curve is called a contour.
7. A positively oriented simple closed curve is called a simple closed curve such that
while traveling on it the interior of the curve always stays to the left. (Camille Jordan
has proved that such a curve always divides the plane into two connected regions, one of
which is called the bounded region and the other is called the unbounded region. The
one which is bounded is considered as the interior of the curve.)
Theorem 7.6.2. [Rouche’s Theorem] Let C be a positively oriented simple closed contour.
Also, let f and g be two analytic functions on RC , the union of the interior of C and the curve
C itself. Assume also that |f (x)| > |g(x)|, for all x ∈ C. Then, f and f + g have the same
number of zeros in the interior of C.
204 CHAPTER 7. APPENDIX
Corollary 7.6.3. [Alen Alexanderian, The University of Texas at Austin, USA.] Let P (t) =
tn +an−1 tn−1 +· · ·+a0 have distinct roots λ1 , . . . , λm with multiplicities α1 , . . . , αm , respectively.
Take any > 0 for which the balls B (λi ) are disjoint. Then, there exists a δ > 0 such that the
polynomial q(t) = tn + a0n−1 tn−1 + · · · + a00 has exactly αi roots (counting with multiplicities) in
B (λi ), whenever |aj − a0j | < δ.
Hence, by Rouche’s theorem, p(z) and q(z) have the same number of zeros inside Cj , for each
j = 1, . . . , m. That is, the zeros of q(t) are within the -neighborhood of the zeros of P (t).
As a direct application, we obtain the following corollary.
opposite to a0 ; am2 is the first after am1 with sign opposite to am1 ; and so on.
AF
maximum number of positive roots of P (x) = 0 is the number of changes in sign of the
coefficients and that the maximum number of negative roots is the number of sign changes
in P (−x) = 0.
Proof. Assume that a0 , a1 , · · · , an has k > 0 sign changes. Let b > 0. Then, the coeffi-
cients of (x − b)P (x) are
This list has at least k + 1 changes of signs. To see this, assume that a0 > 0 and an 6= 0.
Let the sign changes of ai occur at m1 < m2 < · · · < mk . Then, setting
we see that ci > 0 when i is even and ci < 0, when i is odd. That proves the claim.
Now, assume that P (x) = 0 has k positive roots b1 , b2 , · · · , bk . Then,
Proof. Proof of Part 1: By spectral theorem (see Theorem 6.2.22, there exists a unitary matrix
U such that A = U DU ∗ , where D = diag(λ1 (A), . . . , λn (A)) is a real diagonal matrix. Thus,
the set {U [:, 1], . . . , U [:, n]} is a basis of Cn . Hence, for each x ∈ Cn , there exists Ans :i ’s
(scalar) such that x = αi U [:, i]. So, note that x∗ x = |αi |2 and
P
X X X
λ1 (A)x∗ x = λ1 (A) |αi |2 ≤ |αi |2 λi (A) = x∗ Ax ≤ λn |αi |2 = λn x∗ x.
For Part 2 and Part 3, take x = U [:, 1] and x = U (:, n), respectively.
As an immediate corollary, we state the following result.
T
x∗ Ax
AF
eigenvalue in the interval (−∞, α] and has an eigenvalue in the interval [α, ∞).
Proof. Let x ∈ Cn such that x is orthogonal to U [, 1], . . . , U [:, k − 1]. Then, we can write
Pn
x= αi U [:, i], for some scalars αi ’s. In that case,
i=k
n
X n
X
λk x∗ x = λk |αi |2 ≤ |αi |2 λi = x∗ Ax
i=k i=k
and the equality occurs for x = U [:, k]. Thus, the required result follows.
Hence, λk ≥ max min x∗ Ax, for each choice of k − 1 linearly independent vectors.
w1 ,...,wk−1 kxk=1
x⊥w1 ,...,wk−1
But, by Proposition 7.7.3, the equality holds for the linearly independent set {U [:, 1], . . . , U [:
, k − 1]} which proves the first equality. A similar argument gives the second equality and hence
the proof is omitted.
Proof. As A and B are Hermitian matrices, the matrix A + B is also Hermitian. Hence, by
Courant-Fischer theorem and Lemma 7.7.1.1,
w1 ,...,wk−1 kxk=1
x⊥w1 ,...,wk−1
DR
and
= max min x∗ Ax
w1 ,...,wk−1 kxk=1
x⊥w1 ,...,wk−1 ,z
Theorem 7.7.6.
" [Cauchy
# Interlacing Theorem] Let A ∈ Mn (C) be a Hermitian matrix.
A y
Define  = ∗ , for some a ∈ R and y ∈ Cn . Then,
y a
and
λk+n−r (A).
DR
Theorem 7.7.8. [Poincare Separation Theorem] Let A ∈ Mn (C) be a Hermitian matrix and
{u1 , . . . , ur } ⊆ Cn be an orthonormal set for some positive integer r, 1 ≤ r ≤ n. If further
B = [bij ] is an r × r matrix with bij = u∗i Auj , 1 ≤ i, j ≤ r then, λk (A) ≤ λk (B) ≤ λk+n−r (A).
Proof. Let us extend the i set {u1 , . . . , ur } to an orthonormal basis, say {u1 , . . . , un }
h orthonormal
of Cn and write U = u1 · · · un . Then, B is a r × r principal submatrix of U ∗ AU . Thus, by
inclusion principle, λk (U ∗ AU ) ≤ λk (B) ≤ λk+n−r (U ∗ AU ). But, we know that σ(U ∗ AU ) = σ(A)
and hence the required result follows.
The proof of the next result is left for the reader.
Corollary 7.7.9. Let A ∈ Mn (C) be a Hermitian matrix and r be a positive integer with
1 ≤ r ≤ n. Then,
Now assume that x∗ Ax > 0 holds for each nonzero x ∈ W and that λn−k+1 = 0. Then, it
follows that min x∗ Ax = 0. Now, define f : Cn → C by f (x) = x∗ Ax.
kxk=1
x⊥x1 ,...,xn−k
Then, f is a continuous function and min f (x) = 0. Thus, f must attain its bound on the
kxk=1
x∈W
unit sphere. That is, there exists y ∈ W with kyk = 1 such that y∗ Ay = 0, a contradiction.
Thus, the required result follows.
T
AF
DR