Linear Algebra Notes for CS Students
Linear Algebra Notes for CS Students
Irena Penev
Computer Science Institute
of Charles University (IÚUK)
To my students
Irena Penev i
Linear Algebra 1 & 2
Preface
These lecture notes are intended to accompany the two-semester linear algebra
sequence (Linear Algebra 1 & 2) for computer science students at the Faculty of
Mathematics and Physics, Charles University. While the Czech version of the course
has a set textbook (namely, Milan Hladı́k’s excellent Lineárnı́ algebra (nejen) pro
informatiky), no such textbook exists for the English version of the course. To be
sure, a great many linear algebra textbooks have been published in English, and
some of them have quite a lot to recommend them. Unfortunately, none of the
textbooks (in English) that I am familiar with are quite suitable for this course, and
this is essentially because they are either too advanced or not advanced enough. The
former generally assume a level of mathematical maturity that cannot reasonably
be expected of a first-year university student (even one with a solid high school
mathematics background), and they also tend to have few numerical examples. The
latter do not cover the material in sufficient generality for the purposes of this course
(for example, they do not introduce groups and fields, and in particular, they only
cover real or perhaps complex vector spaces, rather than vector spaces over arbitrary
fields). These lecture notes are intended to bridge the gap by being just “advanced
enough,” with a relatively large number of numerical examples throughout. It is
my hope that these notes will be of use to the students taking this linear algebra
sequence in the future, as well as to the instructors teaching it.
Finally, a small note on technology: some of the routine computations in these
lecture notes were done entirely by hand, but others (especially those involving row
reduction of large matrices) were done with the help of online calculators. I have
primarily used [Link] (which, among other
things, enables row reduction of matrices with entries in Zp , for a prime number p),
and occasionally also [Link]
Irena Penev ii
Linear Algebra 1 & 2
A note on revisions
These lecture notes may occasionally be modified and updated. I fix typos and other
errors as I discover them. More substantial modifications may be made between two
academic years when I am teaching this course, or during academic years when I
am not teaching this course. The last substantial revision (not counting minor error
correction) was made on September 29, 2025.
Irena Penev
0 Preliminaries 1
0.1 Mathematical induction . . . . . . . . . . . . . . . . . . . . . . . . . 1
0.1.1 Induction with more than one base case . . . . . . . . . . . . 4
0.1.2 Strong induction . . . . . . . . . . . . . . . . . . . . . . . . . 7
0.2 Modular arithmetic. Arithmetic in Zn . . . . . . . . . . . . . . . . . 9
0.2.1 Modular arithmetic . . . . . . . . . . . . . . . . . . . . . . . 9
0.2.2 Arithmetic in Zn . Fermat’s Little Theorem . . . . . . . . . . 15
0.3 Complex numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
0.3.1 Complex numbers: definition, basic properties, and examples 22
0.3.2 The Fundamental Theorem of Algebra . . . . . . . . . . . . . 27
Irena Penev iv
Linear Algebra 1 & 2
1.4.4 Matrix-vector multiplication . . . . . . . . . . . . . . . . . . . 86
1.5 Matrix-vector equations . . . . . . . . . . . . . . . . . . . . . . . . . 90
1.5.1 Matrix-vector equations and linear span . . . . . . . . . . . . 99
1.6 The rank of a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
1.6.1 Rank and the number of solutions of a matrix-vector equation 107
1.6.2 Matrices of full rank . . . . . . . . . . . . . . . . . . . . . . . 109
1.7 Matrix operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
1.7.1 Matrix addition, matrix subtraction, and scalar-matrix multi-
plication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
1.7.2 Matrix multiplication . . . . . . . . . . . . . . . . . . . . . . 113
1.7.3 Properties of matrix addition and multiplication . . . . . . . 118
1.7.4 Matrix powers . . . . . . . . . . . . . . . . . . . . . . . . . . 122
1.8 The transpose of a matrix . . . . . . . . . . . . . . . . . . . . . . . . 122
1.9 Solving matrix equations of the form AX = B and XA = B . . . . . 124
1.9.1 Solving matrix equations of the form AX = B . . . . . . . . 124
1.9.2 Solving matrix equations of the form XA = B . . . . . . . . 130
1.10 A first look at linear functions and their matrices . . . . . . . . . . . 133
1.10.1 Linear functions: definition and examples . . . . . . . . . . . 133
1.10.2 The images of lines under linear functions f : Rm → Rn . . . 137
1.10.3 Matrix transformations. The standard matrix of a linear function138
1.10.4 Checking the existence and uniqueness of linear functions with
certain specifications . . . . . . . . . . . . . . . . . . . . . . . 142
1.10.5 Some geometric examples . . . . . . . . . . . . . . . . . . . . 149
1.10.6 Making new linear functions out of old ones . . . . . . . . . . 153
1.10.7 One-to-one and onto functions. Bijections and their inverses . 155
1.10.8 A first look at isomorphisms . . . . . . . . . . . . . . . . . . 158
1.11 Invertible matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
1.11.1 Invertible matrices: definition and uniqueness of inverses . . . 161
1.11.2 Computing the inverse of an invertible matrix . . . . . . . . . 162
1.11.3 Basic properties of invertible matrices . . . . . . . . . . . . . 164
1.11.4 Invertible matrices, isomorphisms, and rank . . . . . . . . . . 167
1.11.5 Elementary matrices and row reduction . . . . . . . . . . . . 169
1.11.6 Proof of Theorem 1.11.4 . . . . . . . . . . . . . . . . . . . . . 171
1.11.7 The Invertible matrix theorem (version 1) . . . . . . . . . . . 172
Irena Penev v
Linear Algebra 1 & 2
2.3.1 Cycle notation . . . . . . . . . . . . . . . . . . . . . . . . . . 184
2.3.2 The sign of a permutation. Even and odd permutations . . . 188
2.3.3 Transpositions . . . . . . . . . . . . . . . . . . . . . . . . . . 189
2.3.4 The alternating group An . . . . . . . . . . . . . . . . . . . . 194
2.3.5 Symmetries of polygons . . . . . . . . . . . . . . . . . . . . . 194
2.3.6 Inversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
2.3.7 Permutation matrices . . . . . . . . . . . . . . . . . . . . . . 199
2.4 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
2.4.1 Fields: definition, examples, and basic properties . . . . . . . 205
2.4.2 Finite fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
2.4.3 The fraction notation in fields . . . . . . . . . . . . . . . . . . 209
2.4.4 The characteristic of a field . . . . . . . . . . . . . . . . . . . 209
2.4.5 Algebraically closed fields . . . . . . . . . . . . . . . . . . . . 210
Irena Penev vi
Linear Algebra 1 & 2
4.1.3 A remark on infinity . . . . . . . . . . . . . . . . . . . . . . . 276
4.2 The image and kernel of a linear function. The rank-nullity theorem 277
4.2.1 One-to-one linear functions and kernel . . . . . . . . . . . . . 280
4.2.2 The rank of a linear function. The rank-nullity theorem . . . 280
4.2.3 The effect of a linear function on linearly independent and
spanning sets . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
4.2.4 Computing bases of the images and preimages of subspaces
under linear functions . . . . . . . . . . . . . . . . . . . . . . 291
4.3 Linear functions and bases . . . . . . . . . . . . . . . . . . . . . . . . 302
4.4 Isomorphisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
4.4.1 Basic properties of isomorphisms . . . . . . . . . . . . . . . . 306
4.4.2 Isomorphism and dimension . . . . . . . . . . . . . . . . . . . 309
4.4.3 An application of isomorphisms: transforming polynomials
and matrices into vectors . . . . . . . . . . . . . . . . . . . . 310
4.5 Matrices of linear functions between non-trivial, finite-dimensional
vector spaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
4.5.1 Change of basis (transition) matrices . . . . . . . . . . . . . . 339
4.5.2 Similar matrices . . . . . . . . . . . . . . . . . . . . . . . . . 343
4.5.3 Checking the existence and uniqueness of linear functions with
certain specifications: examples with polynomials and matrices 347
7 Determinants 452
7.1 Determinants: definition, examples, and basic properties . . . . . . . 452
7.1.1 Some matrices whose determinants are zero . . . . . . . . . . 457
7.2 The linearity of determinants in one row or one column . . . . . . . 459
7.3 Computing determinants via elementary row and column operations 462
7.3.1 Computing the determinant of a triangular matrix . . . . . . 462
7.3.2 Determinants and elementary row and column operations . . 464
7.4 Determinants and matrix invertibility . . . . . . . . . . . . . . . . . 468
7.4.1 The Invertible Matrix Theorem (version 3) . . . . . . . . . . 469
7.5 The multiplicative property of determinants . . . . . . . . . . . . . . 470
7.6 Laplace expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
7.7 Cramer’s rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480
7.8 The adjugate matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
7.9 The Vandermonde matrix . . . . . . . . . . . . . . . . . . . . . . . . 486
7.10 Determinants and volume . . . . . . . . . . . . . . . . . . . . . . . . 488
7.11 Common roots of polynomials via determinants . . . . . . . . . . . . 498
Irena Penev ix
Linear Algebra 1 & 2
9.3.2 Matrix congruence and quadratic forms . . . . . . . . . . . . 672
9.4 Quadratic forms on Rn . . . . . . . . . . . . . . . . . . . . . . . . . . 673
9.4.1 Matrix congruence and the signature of a symmetric matrix
with real entries . . . . . . . . . . . . . . . . . . . . . . . . . 673
9.4.2 Sylvester’s law of inertia . . . . . . . . . . . . . . . . . . . . . 679
9.4.3 Quadratic forms on R2 . . . . . . . . . . . . . . . . . . . . . . 681
Bibliography 708
Irena Penev x
Linear Algebra 1 & 2
This page is intentionally left blank.
Chapter 0. Preliminaries 1
Chapter 0
Preliminaries
Why does this work? Here is the intuition: We are trying to prove an infinite
sequence of statements, namely,
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 2
By the base case, P (1) is true. By the induction step, since P (1) is true, P (2) is
also true. Again by the induction step, since P (2) is true, so is P (3). Once again by
the induction step, since P (3) is true, so is P (4). And so on! Thus, P (n) is true for
all positive integers n. Schematically, this is shown in the diagram below.
base
case
n(n+1)
Example 0.1.1. Prove that 1 + 2 + · · · + n = 2 for all positive integers n.
n(n+1)
Solution. Let P (n) be the statement that 1 + 2 + · · · + n = 2 . Thus:
1·(1+1)
P (1) is the statement that 1 = 2 ;
2·(2+1)
P (2) is the statement that 1 + 2 = 2 ;
3·(3+1)
P (3) is the statement that 1 + 2 + 3 = 2 ;
etc.
We need to prove that the statement P (n) is true for all positive integers n.
1·(1+1)
Base case: n = 1. Obviously, 1 = 2 . Thus, P (1) is true.
Induction step: Fix a positive integer n, and assume inductively that P (n) is true.
We must show that P (n + 1) is true.
The induction hypothesis states that 1 + 2 + · · · + n = n(n+1)
2 . Using this, we
(n+1) (n+1)+1
must prove that 1 + 2 + · · · + n + (n + 1) = 2 . We compute:
1 + 2 + · · · + n + (n + 1) = (1 + 2 + · · · + n) + (n + 1)
by the
n(n+1)
= 2 + (n + 1) induction
hypothesis
= (n + 1)( n2 + 1)
(n+1) (n+1)+1
= 2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 3
Sometimes, the base case may be different from n = 1. This may happen if we
need to prove that a statement P (n) is true for all n ≥ k, where k is an integer other
than 1. (Typically, we will have k = 0 or k > 1. However, in principle, k may even
be a negative integer.) In this case, the base case will be n = k, i.e. we will need to
prove the following two statements:
Base case: P (k) is true;
Induction step: for every integer n ≥ k,
if P (n) is true , then P (n + 1) is true.
| {z }
“induction hypothesis”
Here, the intuition is similar to what we saw above. We are trying to prove an
infinite sequence of statements, namely
P (k), P (k + 1), P (k + 2), P (k + 3), . . .
By the base case, P (k) is true. By the induction step, since P (k) is true, P (k + 1) is
also true. Again by the induction step, since P (k + 1) is true, so is P (k + 2). Once
again by the induction step, since P (k + 2) is true, so is P (k + 3). And so on! Thus,
P (n) is true for all integers n ≥ k. Schematically, this is shown in the diagram below.
base
case
Example 0.1.2. Prove that 3n < 2n for all integers n ≥ 4.
Proof. Since we are proving the statement for integers n ≥ 4, our base case is n = 4.
Base case: n = 4. Clearly, 3 · 4 = 12 < 16 = 24 .
Induction step: Fix an integer n ≥ 4, and assume inductively that 3n < 2n . We
must show that 3(n + 1) < 2n+1 . We observe the following:
3(n + 1) = 3n + 3
< 2n + 22
= 2n+1
Thus, the statement is true for n + 1. This completes the induction.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 4
Indeed, this is enough to show that P (n) holds for all integers n ≥ k. The intuition
behind this is given in the diagram below.
.. .. ..
. . .
base
case
Example 0.1.3. Suppose you have an unlimited number of 3 Kč stamps and 5 Kč
stamps (and no other stamps). Show that you can pay any amount of postage greater
or equal to 8 Kč (as long as it is in whole Kč).
Solution. We need to show that any integer n ≥ 8 (our postage in Kč) can be
expressed in the form
n = 3a + 5b,
where a and b are non-negative integers (the number of 3 Kč and 5 Kč stamps,
respectively, that we can use to pay our n Kč postage). We will prove this by
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 5
induction on n. Obviously, if we can pay n Kč using our stamps, then we can also
pay (n + 3) Kč: we simply use one 3 Kč stamp more. In other words, if the statement
is true for n, then it is also true for n + 3. This means that we will need three base
cases: n = 8, n = 9, and n = 10. Let us give the details.
Base case: We must show that for each n ∈ {8, 9, 10}, there exist non-negative
integers a and b such that n = 3a + 5b. But this is clearly true:
8 = 3 · 1 + 5 · 1;
9 = 3 · 3 + 5 · 0;
10 = 3 · 0 + 5 · 2.
Induction step: Fix an integer n ≥ 8, and assume inductively that the statement is
true for n. We must show that it is true for n + 3. By the induction hypothesis, there
exist non-negative integers a and b such that n = 3a+5b. But then n+3 = 3(a+1)+5b,
and so the statement holds for n + 3. This completes the induction.
Once again, this is enough to show that P (n) holds for all integers n ≥ k. The
intuition behind this is as follows:
and so on!
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 6
For the case when ℓ = 2, the idea behind this is illustrated in the diagram below.
P (k)
base
case
Solution. The general term is defined in terms of the previous two terms. Thus,
instead of one base case, we have two: n = 1 and n = 2.
Remark: If the general term were defined in terms of, say, the previous fifteen
terms, then we would have fifteen base cases!
Base case: For n = 1, we have:
√ √ √
(1+ 5)1 −(1− 5)1 2√5
1
2 5
√ = 2 5
= 1 = F (1).
For n = 2, we have:
√ √ √ √ √
(1+ 5)2 −(1− 5)2 (1+2 5+5)−(1−2 5+5) 4√5
√
22 5
= √
4 5
= 4 5
= 1 = F (2).
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 7
(∗)
F (n + 2) = F (n) + F (n + 1)
√ √ √ √
(∗∗) (1+ 5)n −(1− 5)n (1+ 5)n+1 −(1− 5)n+1
= 2 n
√
5
+ 2 n+1
√
5
√ √ √ √ √ √
4(1+ 5)n −4(1− 5)n 2(1+ 5)(1+ 5)n −2(1− 5)(1− 5)n
= 2n+2
√
5
+ 2 n+2
√
5
√ √ √ √
(6+2 5)(1+ 5)n −(6−2 5)(1− 5)n
= √
2n+2 5
√ √ √ √
(1+ 5)2 (1+ 5)n −(1− 5)2 (1− 5)n
= √
2n+2 5
√ √
(1+ 5)n+2 −(1− 5)n+2
= √
2n+2 5
,
where (*) follows from the definition of Fibonacci numbers, and (**) follows from
the induction hypothesis. This completes the induction.
Why does this make sense? Here is the intuition. Suppose that we have proven
the induction step above. For n = 1, the induction hypothesis is vacuously true,1
and so it follows that P (1) is true. Put in another way, for n = 1, the induction
step essentially says “if ‘nothing,’ then P (1) is true,” which is the same as “P (1) is
true.” What about P (2), P (3), P (4), etc.? Since P (1) is true, the induction step
guarantees that P (2) is true. Now P (1), P (2) are true; so, by the induction step,
P (3) is true. Now P (1), P (2), P (3) are true; so, by the induction step, P (4) is true.
And so on! The intuition behind this is summarized in the diagram below.
1
This is because there are no positive integers i < 1.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 8
As before, slight variations on the theme are possible. In particular, for a fixed
integer k, we may wish to prove by strong induction that P (n) holds for all integers
n ≥ k. In this case, it is enough to prove the following:
Induction step: for every integer n ≥ k,
if P (k), . . . , P (n − 1) are all true, then P (n) is true.
| {z }
“induction hypothesis”
Example 0.1.5. Prove that every integer n ≥ 2 can be written as a product of one
or more prime numbers.
Proof. Fix an integer n ≥ 2, and assume inductively that each of 2, . . . , n − 1 can be
written as a product of primes.2 We must show that n can be written as a product
of primes.
Clearly, n is either prime or composite.
Suppose first that n is prime. Then, obviously, n can be written as a product of
primes, namely
n = |{z} n .
prime
Suppose now that n is composite. Then there exist integers n1 , n2 such that
2 ≤ n1 , n2 < n and n = n1 n2 . By the induction hypothesis, n1 and n2 can be
written as products of primes. Set n1 = p1 · · · · · pk and n2 = q1 · · · · · qℓ , where
p1 , . . . , pk , q1 , . . . , qℓ are prime numbers. Then n = n1 n2 = p1 · · · · · pk · q1 · · · · · qℓ .
Thus, n is a product of primes. This completes the induction.
2
In other words, we are assuming that for all integers m such that 2 ≤ m < n, m can be written
as a product of primes. Note that if n = 2, then we are in fact not assuming anything because there
are no integers m satisfying 2 ≤ m < 2.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 9
Remarks:
For fixed n ∈ N, every integer is congruent modulo n to exactly one of
the following n integers: 0, . . . , n − 1. As we shall see, doing arithmetic
modulo n essentially boils down to doing arithmetic with only n values (namely
0, . . . , n − 1), as opposed to infinitely many. This is quite useful for certain
applications.
Congruence modulo n can be visualized in terms of an “n-hour clock” (see
the picture below for the case n = 5). Suppose we are given an integer a,
and we wish to determine which of 0, 1, . . . , n − 1 it is congruent to modulo n.
Obviously, if a = 0, then a ≡ 0 (mod n). If a is positive, then we start at 0 and
make a clockwise steps; the number we finish at is the number we need. For
example, we have that 14 ≡ 4 (mod 5) because if we start at 0 and then make
14 steps clockwise on the 5-hour clock, we finish at 4. On the other hand, if a
is negative, then we make |a| = −a many counterclockwise steps. For example,
we have that −7 ≡ 3 (mod 5) because if we start at 0 and then make 7 steps
counterclockwise on the 5-hour clock, then we finish at 3.
0
4
1
3 2
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 10
Proof. (a) and (b) are obvious. For (c), assume that a ≡ b (mod n) and b ≡ c
(mod n). Then n | (a − b) and n | (b − c), i.e. there exist k, ℓ ∈ Z such that a − b = kn
and b − c = ℓn. But then
a − c = (a − b) + (b − c) = kn + ℓn = (k + ℓ)n,
Proof. Since a ≡ b (mod n), we have that n|(a − b), and so there exists some k ∈ Z
such that a − b = kn. Similarly, since c ≡ d (mod n), there exists some ℓ ∈ Z such
that c − d = ℓn.
To prove (a), we observe that
(a + c) − (b + d) = (a − b) + (c − d) = kn + ℓn = (k + ℓ)n,
and so n | (a + c) − (b + d) . Thus, a + c ≡ b + d (mod n). This proves (a).
For (b), we observe that
(a − c) − (b − d) = (a − b) − (c − d) = kn − ℓn = (k − ℓ)n,
and so n | (a − c) − (b − d) . Thus, a − c ≡ b − d (mod n). This proves (b).
Finally, for (c), we have that
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 11
ac − bd = ac − ad + ad − bd
= a(c − d) + (a − b)d
= aℓn + knd
= (aℓ + dk)n,
Warning: Do not divide!!! For example, we have that 4 ≡ 8 (mod 4), but if we
divide both sides by 2, we get 2 ̸≡ 4 (mod 4).
Remark: In what follows, we will repeatedly use Propositions 0.2.2, 0.2.3, and 0.2.4
without explicitly stating this.
Solution. In principle, we could compute the value of 20182019 , and then simply
check what its last digit is. However, 20182019 is an enormous number, and so this is
impractical (even with the help of a computer). However, note that the last digit of
a non-negative integer is simply its remainder when divided by 10. So, we need only
figure out which of 0, 1, . . . , 9 the number 20182019 is congruent to modulo 10.4
Clearly, 2018 ≡ 8 (mod 10), and so 20182019 ≡ 82019 (mod 10). Now, note the
following:
81 ≡ 8 (mod 10);
82 ≡ 4 (mod 10);
3
In fact, r0 = 1 for all real numbers r.
4
If we were looking for the last two digits, then we would be considering congruence modulo 100;
for the last three digits, we would need congruence modulo 1000, etc.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 12
83 ≡ 2 (mod 10);
84 ≡ 6 (mod 10);
85 ≡ 8 (mod 10).
This looks like a periodic pattern! The general formula will be as in the Claim below
(and we prove the Claim by mathematical induction).
84·0+2 = 82 = 64 ≡10 4;
(∗)
84·0+3 = 83 = 8 · 82 ≡ 10 8 · 4 = 32 ≡10 2, where for (*), we used the fact that
82 ≡10 4 (proven above);
(∗)
84·0+4 = 84 = 8 · 83 ≡ 10 8 · 2 = 16 ≡10 6, where for (*) we used the fact that
83 ≡10 2 (proven above).
Thus, the claim is true for k = 0.
Induction step: Fix a non-negative integer k, and assume inductively that the
statement is true for k.5 We must show that it is true for k + 1.6 We saw in the
5
So, we are assuming that all the following hold:
84k+1 ≡ 8 (mod 10);
84k+2 ≡ 4 (mod 10);
84k+3 ≡ 2 (mod 10);
84k+4 ≡ 6 (mod 10).
6
So, we must prove all the following:
84(k+1)+1 ≡ 8 (mod 10);
84(k+1)+2 ≡ 4 (mod 10);
84(k+1)+3 ≡ 2 (mod 10);
84(k+1)+4 ≡ 6 (mod 10).
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 13
base case that 84 ≡ 6 (mod 10), and consequently, for all non-negative integers ℓ, we
have that
84(k+1)+ℓ = 84 · 84k+ℓ ≡10 6 · 84k+ℓ .
In the following calculations, (*) follows from what we just showed,7 and (**) follows
from the induction hypothesis. We compute:
(∗) (∗∗)
84(k+1)+1 ≡ 10 6 · 84k+1 ≡ 10 6 · 8 = 48 ≡10 8;
(∗) (∗∗)
84(k+1)+2 ≡ 10 6 · 84k+2 ≡ 10 6 · 4 = 24 ≡10 4;
(∗) (∗∗)
84(k+1)+3 ≡ 10 6 · 84k+3 ≡ 10 6 · 2 = 12 ≡10 2;
(∗) (∗∗)
84(k+1)+4 ≡ 10 6 · 84k+4 ≡ 10 6 · 6 = 36 ≡10 6.
This completes the induction. ♦
Since 2019 = 4 · 504 + 3, the Claim guarantees that 82019 ≡ 2 (mod 10). Conse-
quently,
20182019 ≡ 82019 ≡ 2 (mod 10),
and it follows that the last digit of 20182019 is 2.
Thus, an an−1 . . . a0 is the number whose first digit is an ,8 whose second digit is an−1 ,
and so on.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 14
Proof. The proof is completely analogous to that of Proposition 0.2.6: just replace 9
with 3 throughout.
x2 + y 2 = 10z+2 − 1
Solution. We will show that for all non-negative integers x, y, z, we have that
This will immediately imply that the equation x2 +y 2 = 10z+2 −1 has no non-negative
integer solutions.
First, note that 100 ≡ 0 (mod 4). So, for a non-negative integer z, we have that
02 ≡ 0 (mod 4);
14 ≡ 1 (mod 4);
22 ≡ 0 (mod 4);
32 ≡ 1 (mod 4).
Since every integer is congruent to one of 0, 1, 2, 3 modulo 4, it follows that the square
of any integer is congruent to either 0 or 1 modulo 4. It follows that the sum of two
squares is congruent to 0, 1, or 2 modulo 4, and none of these three numbers (0 , 1,
or 2) is congruent to −1 modulo 4. Consequently, for integers x and y, we have that
x2 + y 2 ̸≡ −1 (mod 4).
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 15
note that [a]n = a + kn | k ∈ Z .9 Note also that a ∈ [a]n , since a ≡ a (mod n).
We define
Zn := [a]n | a ∈ Z .
Proof. This follows from the fact that, by Proposition 0.2.2, congruence modulo n is
an equivalence relation on Z. If you are not familiar with the theory of equivalence
relations, here is a detailed proof.
We first prove (a). Suppose that a ≡ b (mod n). It suffices to show that [a]n ⊆ [b]n
(the proof of the reverse inclusion is analogous). Fix x ∈ [a]n . Then x ≡ a (mod n).
Since a ≡ b (mod n), Proposition 0.2.2 guarantees that x ≡ b (mod n). Consequently,
x ∈ [b]n , and we deduce that [a]n ⊆ [b]n . This proves (a).
It remains to prove (b). We prove the contrapositive: if [a]n ∩ [b]n ̸= ∅, then a ≡ b
(mod n). So, assume that [a]n ∩ [b]n ̸= ∅, and fix some x ∈ [a]n ∩ [b]n . Since x ∈ [a]n ,
we have that x ≡ a (mod n), and since x ∈ [b]n , we have that x ≡ b (mod n). But
now by Proposition 0.2.2, we have that a ≡ b (mod n). This proves (b).
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 16
If you are familiar with “equivalence relations,” then note that congruence modulo n
is an equivalence relation on Z (by Proposition 0.2.2), and the sets [0]n , . . . , [n − 1]n
are the associated equivalence classes.
As we would expect (and as our next proposition summarizes), addition and mul-
tiplication in Zn are commutative and associative, and multiplication is distributive
over addition in Zn .
(a) addition and multiplication are commutative in Zn , that is, for all a, b ∈ Zn , we
have that a + b = b + a and ab = ba;
(b) addition and multiplication are associative in Zn , that is, for all a, b, c ∈ Zn , we
have that (a + b) + c = a + (b + c) and (ab)c = a(bc);
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 17
Proof. This essentially follows from the definition of Zn , from the fact that addi-
tion and multiplication are commutative and associative in Z, and from the fact
that multiplication is distributive over addition in Z. We give the details for the
commutativity of addition in Zn ; the rest is left as an easy exercise.
Fix a, b ∈ Zn . Then there exist a′ , b′ ∈ Z such that a = [a′ ]n and b = [b′ ]n . We
now have that
a + b = [a′ ]n + [b′ ]n
= b + a.
Let us now take a look at the addition and multiplication tables for Zn , for a few
small values of n.
Example 0.2.12. Below are the addition and multiplication tables for Z2 .
If we omit square brackets and subscripts (as we usually do), we obtain the addition
and multiplication tables for Z2 shown below.
+ 0 1 · 0 1
0 0 1 0 0 0
1 1 0 1 0 1
Example 0.2.13. Below are the addition and multiplication tables for Z3 .12
+ 0 1 2 · 0 1 2
0 0 1 2 0 0 0 0
1 1 2 0 1 0 1 2
2 2 0 1 2 0 2 1
12
Remember, in this context, 0 stands for [0]3 , 1 stands for [1]3 , and 2 stands for [2]3 .
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 18
Example 0.2.14. Below are the addition and multiplication tables for Z4 .13
+ 0 1 2 3 · 0 1 2 3
0 0 1 2 3 0 0 0 0 0
1 1 2 3 0 1 0 1 2 3
2 2 3 0 1 2 0 2 0 2
3 3 0 1 2 3 0 3 2 1
Example 0.2.15. Below are the addition and multiplication tables for Z5 .14
+ 0 1 2 3 4 · 0 1 2 3 4
0 0 1 2 3 4 0 0 0 0 0 0
1 1 2 3 4 0 1 0 1 2 3 4
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
Remark/Notation: Note that for all positive integers n, each number a in Zn has
a unique “additive inverse,” denoted by −a, i.e. the number (element of Zn ) that we
need to add to a in order to obtain 0 (here, 0 = [0]n ). When using square brackets
and subscripts, we do, of course, get −[a]n = [−a]n = [n − a]n for all positive integers
n and all integers a. However, we will usually work in Zn without such brackets.
For small values of n, we get the following:
in Z2 : −0 = 0, −1 = 1;
in Z3 : −0 = 0, −1 = 2, −2 = 1;
in Z4 : −0 = 0, −1 = 3, −2 = 2, −3 = 1;
in Z5 : −0 = 0, −1 = 4, −2 = 3, −3 = 2, −4 = 1.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 19
Proof. Let us show that no two of 0, a, 2a, . . . , (n − 1)a are congruent modulo n.16
Suppose otherwise, and fix distinct i, j ∈ {0, . . . , n − 1} such that ia ≡ ja (mod n).
Then (i − j)a ≡ 0 (mod n), that is, n|(i − j)a. Since n and a are relatively prime, it
follows that n|(i − j). But this is impossible because i, j ∈ {0, . . . , n − 1} and i ̸= j,
and so 0 < |i − j| < n. Thus, no two of 0, a, 2a, . . . , (n − 1)a are congruent modulo n.
We know that every integer is congruent modulo n to one of the following n
integers: 0, 1, 2, . . . , n − 1. We showed above that no two of the following n integers
are congruent to each other modulo n: 0, a, 2a, . . . , (n − 1)a. It follows that (exactly)
one of 0, a, 2a, . . . , (n − 1)a is congruent to 1 modulo n. In other words, for exactly
one value of b ∈ {0, 1, 2, . . . , n − 1}, we have that ba ≡ 1 (mod n). For this b,
we have that ab ≡ 1 (mod n), and therefore, [a]n [b]n = [1]n . This completes the
argument.
(a) for all a ∈ Z such that a is not a multiple of p, there exists some b ∈ Z such that
ab ≡ 1 (mod p), and consequently, [a]p [b]p = [1]p ;
(b) for all a ∈ Zp \ {0}, there exists some b ∈ Zp \ {0} such that ab = 1.17
Proof. We first prove (a). Since p is a prime number, every integer that is not a
multiple of p is relatively prime to p; (a) now follows from Theorem 0.2.16.
Statement (b) immediately follows from (a). Indeed, fix a ∈ Zp \ {0}. Then
there exists an integer a′ ∈ {1, . . . , p − 1} such that a = [a′ ]p . By (a), there exists
an integer b′ such that a′ b′ ≡ 1 (mod p). We now set b := [b′ ]p , and we see
that ab = [a′ ]p [b′ ]p = [a′ b′ ]p = [1]p . Moreover, b ̸= 0, since (in Zp ) we have that
a · 0 = 0 ̸= 1 = ab. This proves (b).
Corollary 0.2.17(b) states that, for a prime number p, every number in Zp \ {0}
has a multiplicative inverse. Fermat’s Little Theorem (below) is a strengthening
of Corollary 0.2.17 in that it gives an actual formula for this multiplicative inverse.
However, before stating and proving Fermat’s Little Theorem, we need some notation
(which will be used in the proof). For non-negative integers n, we define n! (read “n
factorial”) recursively, as follows:
0! := 1;
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 20
Proof. Fix a prime number p ∈ N. Let a ∈ Z, and assume that a is not a multiple of
p. As in the proof of Theorem 0.2.16, no two of 0, a, 2a, . . . , (p − 1)a are congruent
modulo p.18 Since every integer is congruent to exactly one of 0, 1, . . . , p−1 modulo p,
it follows that there exists some rearrangement (i.e. permutation) r1 , . . . , rp−1 of the
sequence 1, . . . , p − 1 such that
a ≡ r1 (mod p);
2a ≡ r2 (mod p);
..
.
am = a
| · ·{z
· · · a},
m
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 21
and consequently, b = ap−2 . So, we can say that ap−2 is the multiplicative inverse of
a (denoted by a−1 ), and we write
a−1
|{z} = ap−2
multiplicative
inverse of a
Note, however, that for small values of the prime number p, it is easier to read off
the multiplicative inverses of non-zero numbers in Zp from the multiplication table
for Zp than it is to compute the (p − 2)-th powers of those numbers. Thus, by taking
a quick look at the multiplication tables for Z2 , Z3 , and Z5 , we get the following:
in Z2 : 1−1 = 1;
in Z3 : 1−1 = 1, 2−1 = 2;
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 22
z = a + ib
b
a Re
Note that real numbers are precisely those complex numbers that lie on the real axis.
We define addition and multiplication of complex numbers as follows. Given
complex numbers z1 = a1 + b1 i and z2 = a2 + b2 i (where a1 , b1 , a2 , b2 ∈ R), we define
z1 + z2 = (a1 + b1 i) + (a2 + b2 i) := (a1 + a2 ) + (b1 + b2 )i;
z1 z2 = (a1 + b1 i)(a2 + b2 i) = (a1 a2 − b1 b2 ) + (a1 b2 + b1 a2 )i.
The definition of addition is natural. The idea behind the definition of multiplication
is that we are supposed to get something like this:
(∗)
(a1 + b1 i)(a2 + b2 i) = i2
a1 a2 + a1 b2 i + b1 a2 i + b1 b2 |{z}
=−1
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 23
where in (*), we assumed that the addition and multiplication of complex numbers
are commutative and associative, and that multiplication is distributive over addition
for complex numbers. However, this is not something that we can assume; it is
something we would need to prove, using the appropriate definitions.
(a) addition and multiplication in C are commutative, that is, for all z1 , z2 ∈ C, we
have that z1 + z2 = z2 + z1 and z1 z2 = z2 z1 ;
(b) addition and multiplication in C are associative, that is, for all z1 , z2 , z3 ∈ C, we
have that (z1 + z2 ) + z3 = z1 + (z2 + z3 ) and (z1 z2 )z3 = z1 (z2 z3 );
Proof. This essentially follows from the definition of addition and multiplication in C,
and from the fact that addition and multiplication are commutative and associative
in R, and multiplication is distributive over addition in R. Let us prove in detail
that addition in C is associative; the rest is left as a straightforward exercise.
Fix z1 , z2 , z3 ∈ C; we must show that (z1 + z2 ) + z3 = z1 + (z2 + z3 ). Set
z1 = a1 + b1 i, z2 = a2 + b2 i, and z3 = a3 + b3 i, where a1 , b1 , a2 , b2 , a3 , b3 ∈ R. We
now compute:
(z1 + z2 ) + z3 = (a1 + b1 i) + (a2 + b2 i) + (a3 + b3 i)
(∗)
= (a1 + a2 ) + (b1 + b2 )i + (a3 + b3 i)
(∗)
= (a1 + a2 ) + a3 + (b1 + b2 ) + b3 i
(∗∗)
= a1 + (a2 + a3 ) + b1 + (b2 + b3 ) i
(∗)
= (a1 + b1 i) + (a2 + a3 ) + (b2 + b3 )i
(∗)
= (a1 + b1 i) + (a2 + b2 i) + (a3 + b3 i)
= z1 + (z2 + z3 ),
where each instance of (*) follows from the definition of addition in C, and (**)
follows from the fact that addition in R is associative. This proves that addition in
C is associative.
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 24
Powers of complex numbers are defined in the usual way. For a complex number
z, we define
z 0 := 1;
z m+1 := z m z for all non-negative integers m.
So, for all positive integers m, we have the familiar expression
z m = z| .{z
. . z} .
m
z = a + ib
b
a Re
−b
z = a − ib
= a2 + b2
= |z|2 ,
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 25
Now suppose that z1 and z2 = ̸ 0 are complex numbers. To compute zz12 , we need to
transform the denominator into a non-zero real number. We do this by multiplying
both the numerator and the denominator by z2 , at which point (by Proposition 0.3.2)
the denominator becomes |z2 |2 , which is a non-zero real number, and we can divide
as above. Let us take a look at an example.
Solution. (a) We multiply both the numerator and the denominator by 3 + 2i = 3−2i,
and we obtain
7−6i (7−6i)(3−2i) 9−32i 9 32
3+2i = (3+2i)(3−2i) = 9+4 = 13 − 13 i.
where (*) was obtained by canceling out the common factor 2 − i in the numerator
and the denominator.
Finally, we give some properties of the complex conjugate and the modulus of a
complex number (see Propositions 0.3.4 and 0.3.5 below).
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 26
(a) z1 + z2 = z1 + z2 ;
(b) z1 − z2 = z1 − z2 ;
(c) z1 z2 = z1 z2 ;
(e) z m = (z)m .
Proof. We prove (c). The rest is left as an exercise. Fix a complex numbers
z1 = a1 + b1 i and z2 = a2 + b2 i (with a1 , b1 , a2 , b2 ∈ R). We then have that
z1 z2 = (a1 + b1 i)(a2 + b2 i)
= (a1 a2 − b1 b2 ) + (a1 b2 + b1 a2 )i
= (a1 − b1 i)(a2 − b2 i)
= (a1 a2 − b1 b2 ) + (−a1 b2 − b1 a2 )i
(c) | − z| = |z|;
Proof. We prove (a); the rest is left as an exercise. Fix complex numbers z1 = a1 +b1 i
and z2 = a2 + b2 i (where a1 , b1 , a2 , b2 ∈ R). We then have that
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 27
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 28
Irena Penev
Linear Algebra 1 & 2
Chapter 0. Preliminaries 29
Theorem 0.3.6. Let p(x) be any polynomial with real coefficients, and let z ∈ C.
Then z is a root of p(x) if and only if its complex conjugate z is a root of p(x).
p(z) = 0 ⇐⇒ p(z) = 0
⇐⇒ an z n + · · · + a1 z + a0 = 0
(∗)
⇐⇒ an (z)n + · · · + a1 (z) + a0 = 0
(∗∗)
⇐⇒ an (z)n + · · · + a1 z + a0 = 0
⇐⇒ p(z) = 0,
where (*) follows from Proposition 0.3.4, and (**) follows from the fact that
a0 , a1 , . . . , an and 0 are real numbers.
Remark: Note that Theorem 0.3.6 implies that the complex roots of a non-constant
polynomial are symmetric about the Re axis in the complex plane. Some (or perhaps
all) of those roots may lie on the Re axis, i.e. they may be real numbers. So, if we
plot the roots of a non-constant polynomial with real coefficients as points in the
complex plane, we may obtain a picture that looks something like this (see below;
complex conjugate pairs are colored with the same color).
Im
Re
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 30
Chapter 1
Each field is equipped with two operations: addition and multiplication. These two
operations are commutative and associative, and multiplication is distributive over
addition.2 It is also relevant that every field has an “additive identity” 0 and a
“multiplicative identity” 1, which satisfy a + 0 = 0 + a = a and a · 1 = 1 · a = a for
all elements a of the field. Every element a of a field has a corresponding “additive
inverse,” denoted by −a, which is a number that we can add to a in order to obtain
0. For example:
√ √ √ √
the additive inverse of 17 in R is − 17, since 17 + (− 17) = 0 in R.
1
If n ∈ N is not prime, then Zn is not a field.
2
This means that for all elements a, b, c of the field, the following are satisfied:
a + b = b + a and ab = ba (commutativity of addition and multiplication);
(a + b) + c = a + (b + c) and (ab)c = a(bc) (associativity of addition and multiplication);
a(b + c) = ab + ac (distributive property of multiplicaiton over addition).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 31
Remark: When working over Zp (for a prime number p), it is a good idea to first
write out the addition and multiplication tables for Zp , because this allows us to
easily identify additive and multiplicative inverses: for a given a ∈ Zp , we simply
read off from the tables what number we need to add to a to get zero, and (assuming
a ̸= 0) what number we need to multiply it by to get 1.
Warning: The following are not fields: N, Z, Zn (where n is a positive integer that
is not prime).
For the remainder of this chapter, you may assume that the field F in
question is one of the following: Q, R, C, or Zp (where p is a prime
number). However, everything that we prove in this chapter does in
fact hold for general fields F, not just the ones listed above.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 32
The rows of a matrix are enumerated from top to bottom, whereas the columns
are enumerated from left to right. The i, j-th entry of a matrix is the entry that
appears in the i-th row (from the top) and j-th column (from the left) in the matrix.
A matrix A can be specified as follows:
A = ai,j n×m .
This notation indicates that the matrix A is of size n × m (i.e. has n rows and m
columns), and the i, j-th
entry (i.e. the entry in the i-th row and j-th column) is
ai,j . So, if A = ai,j n×m , then we have that
a1,1 a1,2 . . . a1,m
a2,1 a2,2 . . . a2,m
A = .
.. .. .. ..
. . . .
an,1 an,2 . . . an,m
A zero matrix is a matrix all of whose entries are 0 (where the 0 comes from the field
that we are working with). The zero matrix of size n × m is denoted by On×m . For
example,
0 0 0 0
O2×4 = .
0 0 0 0
A non-zero matrix is a matrix that has at least one non-zero entry.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 33
Notation: If F is a field, then the set of all (column) vectors with n entries, all of
them in F, is denoted by Fn . (Thus, Fn = Fn×1 .)
2 3 a1
Geometric interpretation of vectors in R and R . A vector a = in R2
a2
can be represented in the two-dimensional Euclidean space either as a point (see the
picture below, on the left) or as a line segment with an arrow starting at the origin
(see the picture below, on the right).
x2 x2
a a
a2 a2
a1 x1 a1 x1
0
The zero vector 0 = is simply the origin.
0
a1
A vector a = a2 in R3 has a similar geometric interpretation in the three-
a3
dimensional Euclidean space (see the picture below).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 34
x3 x3
a3 a3
a
a
a2 x2 a2 x2
a1 a1
x1 x1
0
Once again, the zero vector 0 = 0 is simply the origin.
0
Vectors in Rn for n ≥ 4 are higher-dimensional analogs of vectors in R2 and R3 .
a = 1 −3 ;
b = −13 0 0 π ;
c = 1 2 0 −1 1 .
In these lecture notes, row vectors will appear less commonly than column vectors.
The set of all row vectors with n entries, all of them in some field F, is denoted by
F1×n (i.e. exactly the same way as the set of all 1 × n matrices with entries in F).
we mean that a1 , . . . , am are the columns of A (appearing in that order from left to
right in the matrix A), and moreover, a n
1 , . . ., am arevectors
in F . For example,
1 1 3
if A = a1 a2 a3 , where a1 = , a2 = , and a3 = , then
2 0 4
1 1 3
A= .
2 0 4
Similarly, the rows of a matrix can be seen as row vectors, and matrices can be
specified in terms of their rows. When we specify a matrix A ∈ Fn×m (where F is
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 35
rn
we mean that r1 , . . . , rn are the rows of A (appearing in that order from top to
bottom in the matrix A), 1×m .
and moreover, r1 , . . . , rn are row vectors in F
r1
For example, if A = , where r1 = 1 2 1 3 and r2 = 3 4 4 3 ,
r
2
1 2 1 3
then A = .
3 4 4 3
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 36
x1 + 2x2 − x3 = 9
2x2 + 3x3 = 16
x1 + x2 − x3 = 4
x1 + x2 = 0
2x1 + x2 = 1
The set of solutions or solution set of a linear system is the set of all solutions of
that system. Our main goal in this section is to describe a procedure for finding the
solution set of any linear system.
A linear system may have no solutions, may have a unique solution (i.e. exactly
one solution), or may have more than one solution. A system that has at least one
solution is called consistent; a system that has no solutions is said to be inconsistent.
Linear systems with real coefficients. Consider the following system of two
linear equations in two variables, with coefficients in R.
a1,1 x1 + a1,2 x2 = b1
a2,1 x1 + a2,2 x2 = b2
Let us assume that at least one of the coefficients a1,1 , a1,2 is non-zero, and similarly,
that at least one of the coefficients a2,1 , a2,2 is non-zero. Then each of the two
equations above defines a line in the plane. There are three possibilities for these
two lines:
1. the two lines may intersect in one point (in this case, the system has a unique
solution, and in particular, it is consistent);
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 37
x2 a1,1x1 + a1,2x2 = b1
x1
a2,1x1 + a2,2x2 = b2
2. the two lines may be distinct, parallel lines (in this case, the system has no
solutions, i.e. it is inconsistent);
x2 a1,1x1 + a1,2x2 = b1
a2,1x1 + a2,2x2 = b2
x1
3. the two lines may be identical (in this case, the system has infinitely many
solutions, and in particular, the system is consistent).3
x2
a1,1x1 + a1,2x2 = b1
a2,1x1 + a2,2x2 = b2
x1
On the other hand, suppose that we have a system of two linear equations in
three variables (with coefficients in R).
a1,1 x1 + a1,2 x2 + a1,3 x3 = b1
a2,1 x1 + a2,2 x2 + a2,3 x3 = b2
3
Note that the two lines may be identical even if the two equations are different. For instance,
x1 + x2 = 1 and 2x1 + 2x2 = 2 define the same line.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 38
Similarly to the above, let us assume that at least one of the coefficients a1,1 , a1,2 , a1,3
is non-zero, and that at least one of the coefficients a2,1 , a2,2 , a2,3 is non-zero. Then
each of the two equations above defines a plane in the three-dimensional Euclidean
space. Those two planes may intersect in a line (in which case the system has
infinitely many solutions, and in particular, the system is consistent); or the two
planes may be distinct and parallel (in which case, the system has no solutions, i.e.
it is inconsistent); or the two planes may be identical (in which case the system has
infinitely many solutions, and in particular, the system is consistent).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 39
Example 1.3.3. Find the coefficient matrix and the augmented matrix of the linear
system below (with coefficients understood to be in R).
2x1 + x3 + 2 = x2
x2 + x3 = 2x1
Solution. We first algebraically rearrange the system above to get it into standard
form (below).4
2x1 + 2x2 + x3 = 1
x1 + x2 + x3 = 0
We can now easily read off the
two matrices that we need. The coefficient
matrix of the
2 2 1 2 2 1 1
linear system is , whereas the augmented matrix is .
1 1 1 1 1 1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 40
system in a way that does not change the solution set (i.e. in a way that produces
an equivalent linear system). We list these three operations/manipulations below
(the scalars that we mention always belong to the same field as the coefficients of
the linear system in question), and we illustrate each operation with an example (in
each example, the coefficients are understood to be in R.)
It is obvious that this operation does not alter the solution set.
Let us explain why this does not alter the solution set. Suppose we have multi-
plied the i-th equation of our linear system by some scalar α ̸= 0. Obviously,
all solutions of the old system are still solutions of the new system. On the
other hand, by multiplying the i-th equation of the new system by α−1 (the
multiplicative inverse of α), we get the old system back.5 So, any solution of
the new system is a solution of the old system as well.
Warning: Do not multiply an equation by 0, since that “kills” the equation!
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 41
Let us explain why this does not alter the solution set. Suppose we have added
α times the i-th equation to the j-th equation (where i ̸= j). Obviously, any
solution of the old system is also a solution of the new system. On the other
hand, if we start with the new system, then add −α times the i-th equation to
the j-th equation, we get the old system back.6 So, any solution of the new
system is a solution of the old system as well.
Instead of manipulating systems linear systems in this way, we can manipulate
their augmented matrices. There are three types of “elementary row operations” on
matrices (with entries understood to be in some field F), which we list below. (The
scalars that we mention always belong to the same field as the entries of the matrix
in question.) We illustrate each type of elementary row operation with an example
(in our examples, the matrix entries are assumed to be in R).
1. Swap (interchange) two rows.
We denote the operation of swapping rows i and j (i ̸= j) by “Ri ↔ Rj .”
For example, we can swap the first and third row of the matrix on the
left to obtain the matrix on the right.
1 3 −2 −1 1 1 2 2
R ↔R
1 0 2 0 1
∼ 3 1 0 2 0
2 2
1 1 2 2 1 3 −2 −1
2. Multiply one row by a non-zero scalar.
We denote the operation of multiplying row i by a scalar α = ̸ 0 by
“Ri → αRi .”
For instance, we can multiply the second row of the matrix on the left by
2 to obtain the matrix on the right.
1 1 2 2 1 1 2 2
R2 →2R2
1 0 2 0 ∼ 1 0 4 0
2
1 3 −2 −1 1 3 −2 −1
3. Add a scalar multiple of one row to another row.
We denote the operation of adding scalar α times row i to row j (i ̸= j)
by “Rj → Rj + αRi .”
For example, we can add (−1) times the second row to the third row of
the matrix on the left to obtain the matrix on the right.
1 1 2 2 1 1 2 2
R3 →R3 +(−1)R2
1 0 4 0 ∼ 1 0 4 0
1 3 −2 −1 0 3 −6 −1
6
In the example above, we would add 1 times the second equation to the third equation of the
system on the right to obtain the system on the left.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 42
3. we can undo (reverse) the operation of adding scalar α times row i to another
row j (“Rj → Rj +αRi ”) by adding −α times row i to row j (“Rj → Rj −αRi ”).
Remark: Solving systems of linear equations is our primary motivation for introduc-
ing elementary row operations. However, we can, in principle, perform elementary
row operations on any matrix (with entries in some field), even one that was not
obtained as an augmented matrix of a linear system. We will, indeed, do this at
various points in these lecture notes. However, for now, it is useful to think of
elementary row operations on matrices as a more compact way of performing the
corresponding operations on linear systems.
Remark: Clearly, if two matrices with at least two columns (and with entries in
some field F) are row equivalent, then they encode equivalent linear systems (as
augmented matrices).7
The following proposition states that, for a field F, row equivalence is an equiva-
lence relation on the set Fn×m .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 43
Proof. (a) Fix A ∈ Fn×m . By, for example, multiplying the first row of A by 1 (i.e.
by applying the elementary row operation “R1 → 1R1 ”), we obtain the original
matrix A; so, A ∼ A.
(b) Fix A, B ∈ Fn×m , and assume that A ∼ B. Then by applying some sequence
R1 , . . . , Rk of elementary row operations to A, we obtain the matrix B. But we know
that elementary row operations are reversible! For each i ∈ {1, . . . , k}, let Ri′ be the
elementary row operation that reverses (undoes) the elementary row operation Ri .
If we apply the sequence Rk′ , . . . , R1′ of elementary row operations to B, we obtain
the matrix A. So, B ∼ A.
(c) Fix A, B, C ∈ Fn×m , and assume that A ∼ B and B ∼ C. Since A ∼ B, we
know that B can be obtained by applying some sequence R1 , . . . , Rk of elementary
row operations to A. Similarly, since B ∼ C, we know that C can be obtained by
applying some sequence Rk+1 , . . . , Rk+ℓ of elementary row operations to B. But now
if we apply the sequence R1 , . . . , Rk , Rk+1 , . . . , Rk+ℓ to A, we get C.
2. each leading entry of a non-zero row (other than the top row) is in a column
strictly to the right of the column containing the leading entry of the row right
above.8
If, in addition, the matrix satisfies the following two conditions, then it is in reduced
row echelon form (or simply reduced echelon form), abbreviated RREF:
If a matrix is in row echelon form (resp. reduced row echelon form), then we also say
that the matrix is a row echelon matrix (resp. reduced row echelon matrix).
8
So, all entries in a column below a leading entry of a row are zeros.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 44
Schematically, a matrix in row echelon form looks like this (here, ■’s represent
non-zero numbers, and ∗’s represent arbitrary numbers):
0 ■ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗
0 0 0 ■ ∗ ∗ ∗ ∗ ∗ ∗
0 0 0 0 ■ ∗ ∗ ∗ ∗ ∗
0 0 0 0 0 0 0 ■ ∗ ∗ .
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
On the other hand, a matrix in reduced row echelon form schematically looks like
this (∗’s represent arbitrary numbers):
0 1 ∗ 0 0 ∗ ∗ ∗ ∗
0
0 0 0 1 0
∗ ∗ 0 ∗ ∗
0 0 0 0 1
∗ ∗ 0 ∗ ∗
.
0 0 0 0 0
0 0 1 ∗ ∗
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
Theorem 1.3.6. Every matrix (with entries in some field) is row equivalent to a
unique matrix in reduced row echelon form.
Corollary 1.3.7. If two row equivalent matrices (with entries in some field) are
both in row echelon form, then they have exactly the same pivot positions and the
indices of their pivot columns are exactly the same.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 45
Remark: Suppose that A, B ∈ R4×5 , and that the pivot positions of A are positions
(1, 1) and (2, 3), so that the pivot columns of A are the first and third column of A.
Then by Corollary 1.3.7, the pivot positions of B are also (1, 1) and (2, 3), and the
pivot columns of B are the first and third column of B. The “shape” of both A and
B will be as in the diagram below.
■ ∗ ∗ ∗ ∗
0 0 ■ ∗ ∗
0 0 0 0 0
0 0 0 0 0
We postpone the proof of Theorem 1.3.6 and Corollary 1.3.7 to subsection 1.3.7.
For now, we introduce some terminology and notation. By Theorem 1.3.6, every
matrix A (with entries in some field) is row equivalent to a unique matrix in reduced
row echelon form, which we call the reduced row echelon form of A, denoted by
RREF(A). A row echelon form of a matrix A is any matrix that is in row echelon
form and is row equivalent to A. A matrix may have more than one row echelon
form (i.e. it may be row equivalent to more than one matrix in row echelon form),
but by Corollary 1.3.7, all row echelon matrices of a given matrix have the same
“shape,” i.e. their “black squares” are in the same place. The pivot positions of an
arbitrary matrix A are the pivot positions of any matrix in row echelon form that
is row equivalent to A; by Corollary 1.3.7, this is well defined. A pivot column of
an arbitrary matrix A is any column of A that contains a pivot position of A. Note
that if we have computed the reduced row echelon form of a matrix A, then we can
immediately identify the pivot positions and the pivot columns of A.
Remark/Terminology: The number of pivot columns of a matrix A (equivalently:
the number of pivot positions of A, or the number of non-zero rows in a row echelon
form of A) has a special name: it is called the rank of A and is denoted by rank(A).
We will study rank in more detail in section 1.6, and it will subsequently reappear in
various contexts throughout these lecture notes.
The following corollary of Theorem 1.3.6 is also postponed to subsection 1.3.7.
Corollary 1.3.8. Two matrices (with entries in some field) are row equivalent if
and only if they have the same reduced row echelon form.
The row reduction algorithm. We now describe an algorithm, called the row
reduction algorithm, that transforms any matrix (with entries in some field) into
a row equivalent matrix that is in reduced row echelon form.9 The algorithm has
two parts: the “forward phase” and the “backward phase.” The forward phase
transforms the matrix into one in row echelon form. The backward phase transforms
9
We note this algorithm proves the existence part of Theorem 1.3.6, but not the uniqueness part.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 46
a matrix in row echelon form into one in reduced row echelon form. The forward
phase of the row reduction algorithm is also called “Gaussian elimination.” The
entire row reduction algorithm (with both the forward and the backward phase) is
also called the “Gauss-Jordan elimination.” In the description of the algorithm, we
will use the word “pivot” to mean the actual number that is in the pivot position in
question (or that we intend to move into the pivot position).10 We now describe the
row reduction algorithm.
Forward phase:
1. Begin with the leftmost non-zero column. This is a pivot column. The pivot
position is at the top of the column.11
2. Select a non-zero entry in the pivot column as a pivot. If necessary, interchange
rows to move this entry into the pivot position.
3. Use elementary row operations of the form “Rj → Rj + αRi ” (where row i
contains the pivot position in question, row j is below row i,12 and α is a
suitable scalar) to create zeros in all positions below the pivot position.
4. Cover (or ignore) the row containing the pivot position, as well as all the rows
(if any) above it. Apply steps 1-4 to the submatrix that remains. Repeat the
process until there are no more non-zero rows to modify.
Backward phase:
5. Beginning with the rightmost pivot column and working upward and to the
left, create zeros above each pivot position. If a pivot is not 1, make it 1 by a
scaling operation (“Ri → αRi ,” for a suitable scalar α ̸= 0).
A couple of implementations of the row reduction algorithm are given below (see
Examples 1.3.9 and 1.3.10). In each case, we first implement the forward phase, and
then we implement the backward phase. In the forward phase, we use a horizontal
dotted line as a visual aid: it separates the rows that have already been processed
(those are the ones above the horizontal dotted line) from the ones that have not yet
been processed (those are the ones below the horizontal dotted line). Moreover, the
pivot column that we have identified and are currently processing (as per step 1 or
step 5) is colored red.
10
Most texts never actually define the word (noun) “pivot.” Instead, they only define “pivot
positions” and “pivot columns,” as we did above. If they use the word “pivot” (as a noun), they
do so informally. We also use it slightly informally, but the advantage is that we get a simpler
description of the row reduction algorithm.
11
In the initial iteration, this means that the pivot position is in the top row. However, in
subsequent iterations, it will mean that the pivot position is “in the top row if we ignore the rows
that we have already processed and are done with.”
12
So, j > i.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 47
Example 1.3.9. Apply the row reduction algorithm to the matrix A below (with
entries understood to be in R) in order to compute its reduced row echelon form.
0 −3 −6 3 4 −1
A := 2 1 −4 13 −4 3
2 3 0 11 −6 5
Solution. We first implement the forward phase of the algorithm in order to transform
the matrix into one in row echelon form, as follows.
0 −3 −6 3 4 −1
A = 2 1 −4 13 −4 3
2 3 0 11 −6 5
2 3 0 11 −6 5
R1 ↔R3
∼ 2 1 −4 13 −4 3
0 −3 −6 3 4 −1
2 3 0 11 −6 5
R2 →R2 −R1
∼ 0 −2 −4 2 2 −2
0 −3 −6 3 4 −1
R3 →R3 − 32 R2
2 3 0 11 −6 5
∼ 0 −2 −4 2 2 −2 .
0 0 0 0 1 2
The forward phase of the row reduction algorithm is now complete: our matrix
is in row echelon form. It remains to implement the backward phase in order to
transform the matrix into one in reduced row echelon form. We compute:
2 3 0 11 −6 5 by the
A ∼ 0 −2 −4 2 2 −2 forward
0 0 0 0 1 2 phase
R1 →R1 +6R3 2 3 0 11 0 17
R2 →R2 −2R3
∼ 0 −2 −4 2 0 −6
0 0 0 0 1 2
R2 →− 12 R2
2 3 0 11 0 17
∼ 0 1 2 −1 0 3
0 0 0 0 1 2
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 48
2 0 −6 14 0 8
R1 →R1 −3R2
∼ 0 1 2 −1 0 3
0 0 0 0 1 2
R1 → 21 R1
1 0 −3 7 0 4
∼ 0 1 2 −1 0 3 .
0 0 0 0 1 2
The backward phase of row reduction is now complete: our matrix is in reduced row
echelon form. Thus,
1 0 −3 7 0 4
RREF(A) = 0 1 2 −1 0 3 .
0 0 0 0 1 2
Example 1.3.10. Apply the row reduction algorithm to the matrix B below (with
entries understood to be in Z3 ) in order to compute its reduced row echelon form.
0 1 1 0 2
2 1 0 1 1
B := 2 1 1 1 1
1 0 2 2 1
Solution. We will compute keeping the addition and multiplication tables for Z3
(below) in mind.
+ 0 1 2 · 0 1 2
0 0 1 2 0 0 0 0
1 1 2 0 1 0 1 2
2 2 0 1 2 0 2 1
We first implement the forward phase of the algorithm in order to transform the
matrix into one in row echelon form, as follows.
0 1 1 0 2
2 1 0 1 1
B =
2 1 1 1 1
1 0 2 2 1
1 0 2 2 1
R1 ↔R4 2 1 0 1 1
∼
2
1 1 1 1
0 1 1 0 2
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 49
1 0 2 2 1
R2 →R2 +R1
R3 →R3 +R1 0 1 2 0 2
∼
0
1 0 0 2
0 1 1 0 2
1 0 2 2 1
R3 →R3 +2R2
R4 →R4 +2R2 0 1 2 0 2
∼
0
0 1 0 0
0 0 2 0 0
1 0 2 2 1
R4 →R4 +R3 0 1 2 0 2
∼
0
0 1 0 0
0 0 0 0 0
The forward phase of our row reduction algorithm is now complete: our matrix
is in row echelon form. It remains to implement the backward phase in order to
transform the matrix into one in reduced row echelon form.
1 0 2 2 1 1 0 0 2 1
R1 →R1 +R3
(∗) 0 1 2 0 2 R2 →R2 +R3 0 1 0 0 2
B ∼ 0 0 1 0 0
∼ 0 0 1 0 0 ,
0 0 0 0 0 0 0 0 0 0
where (*) follows from the forward phase (above). The backward phase of row
reduction is now complete: our matrix is in reduced row echelon form. Thus,
1 0 0 2 1
0 1 0 0 2
RREF(B) = 0 0 1 0 0 .
0 0 0 0 0
When row reducing, we do not normally draw the horizontal dotted line and color
the pivot column that we are processing (as we did in Examples 1.3.9 and 1.3.10). It
is, however, good practice to indicate which elementary row operations are being
performed at each stage. Let us take a look at a couple of additional examples
(Examples 1.3.11 and 1.3.12 below) in which we omit the horizontal dotted line and
pivot column coloring, but carefully indicate which elementary row operation(s) we
are performing. For extra clarity, we also indicate the beginning and end of the
forward and backward phase of the row reduction algorithm (though this is not
strictly necessary).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 50
Example 1.3.11. Apply the row reduction algorithm to the matrices C1 and C2
below (with entries understood to be in Z2 ) in order to compute their reduced row
echelon form.
1 1 1 1
1 1 1 1 1 1 1 0 1 0
C1 := 1 1 1 0 0 1 C2 := 0 1 0 1
1 1 0 0 1 1
1 0 1 1
Solution. We will compute keeping the addition and multiplication tables for Z2
(below) in mind.
+ 0 1 · 0 1
0 0 1 0 0 0
1 1 0 1 0 1
end of the
1 1 1 1 1 1
R2 ↔R3 forward phase
∼ 0 0 1 1 0 0
(the matrix is in
0 0 0 1 1 0
row echelon form)
R1 →R1 +R3 1 1 1 0 0 1
R2 →R2 +R3 start of the
∼ 0 0 1 0 1 0
backward phase
0 0 0 1 1 0
end of the
1 1 0 0 1 1 backward phase
R1 →R1 +R2
∼ 0 0 1 0 1 0 (the matrix is in
0 0 0 1 1 0 reduced row
echelon form).
The last matrix from the calculation above is in reduced row echelon form, and we
conclude that
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 51
1 1 0 0 1 1
RREF(C1 ) = 0 0 1 0 1 0 .
0 0 0 1 1 0
end of the
1 0 1 0
0 backward phase
R1 →R1 +R2 1 0 0
∼
0
(the matrix is in
0 0 1
reduced row
0 0 0 0
echelon form).
The last matrix from the calculation above is in reduced row echelon form, and
we conclude that
1 0 1 0
0 1 0 0
RREF(C2 ) = 0 0
.
0 1
0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 52
Remark: Note that in our solution of Example 1.3.11, we applied elementary row
operations of only two types: “Ri ↔ Rj ” and “Ri → Ri + Rj ” (where i ̸= j in
both cases). This is not an accident! It is because we were working over Z2 , and Z2
contains only one non-zero element (number), namely 1. Of course, elementary row
operations of the type “Ri → 1Ri ” and “Ri → Ri + 0Rj ” (for i = ̸ j) are legal, but
they leave the matrix unchanged.
Example 1.3.12. Apply the row reduction algorithm to the matrices D1 and D2
below (with entries understood to be in Z5 ) in order to compute their reduced row
echelon form.
4 3 2 1
2 1 0 2 3 0 1 2 3
D1 := 4 2 2 1 2 D2 := 1 2 1 3
3 4 1 2 2
2 1 3 3
Solution. We will compute keeping the addition and multiplication tables for Z5
(below) in mind.
+ 0 1 2 3 4 · 0 1 2 3 4
0 0 1 2 3 4 0 0 0 0 0 0
1 1 2 3 4 0 1 0 1 2 3 4
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
R1 →3R1
R2 →3R2 1 3 0 1 4
R3 →2R3 start of the
∼ 0 0 1 1 3
(∗∗) backward phase
0 0 0 1 4
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 53
R1 →R1 +4R3 1 3 0 0 0
R2 →R2 +4R3 end of the
∼ 0 0 1 0 4
(∗∗∗) backward phase.
0 0 0 1 4
The last matrix from the calculation above is in reduced row echelon form, and we
conclude that
1 3 0 0 0
RREF(D1 ) = 0 0 1 0 4 .
0 0 0 1 4
Before moving on to the matrix D2 , let us make some comments on the calculation
above. In (*), we observe that 3 = −2 in Z5 , and so the elementary row operation
“R2 → R2 +3R1 ” is exactly the same as the elementary row operation “R2 → R2 −2R1 ”
(and indeed, we could have written “R2 → R2 − 2R1 ” instead of “R2 → R2 + 3R1 ”).
In any case, the goal was to turn the first entry of the second row into 0. We can
accomplish this using the fact that 4 + 3 · 2 = 0 (in Z5 ), or using the fact that
4−2·2 = 0 (again, in Z5 ). Similar remarks apply to (***): instead of “R1 → R1 +4R3 ”
and “R2 → R2 + 4R3 ,” we could have written “R1 → R1 − R3 ” and “R2 → R2 − R3 ,”
respectively, and we would have obtained the same result. Finally, in (**), we were
turning all pivots into 1’s, using the fact that, in Z5 , we have that 2−1 = 3 and
3−1 = 2.
We now row reduce the matrix D2 , as follows:
4 3 2 1
0 1 2 3 start of the
D2 =
1
2 1 3 forward phase
2 1 3 3
4 3 2 1
R3 →R3 +R1
R4 →R4 +2R1 0 1 2 3
∼
0
0 3 4
0 2 2 0
4 3 2 1
R4 →R4 −2R2 0 1 2 3 this is the same as
∼
0 0 3 4 “R4 → R4 + 3R2 ”
0 0 3 4
4 3 2 1 this is the same as
R4 →R4 −R3 0 1 2 3 “R4 → R4 + 4R3 ”
∼
0
0 3 4 end of the
0 0 0 0 forward phase
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 54
The last matrix from the calculation above is in reduced row echelon form, and we
conclude that
1 0 0 1
0 1 0 2
RREF(D2 ) = 0
.
0 1 3
0 0 0 0
Warning: When working over Zp (where p is a prime number), all the entries
inside of your matrices should only be the numbers 0, 1, . . . , p − 1. As you process
your matrix, you may possibly get negative numbers −1, . . . , −(p − 1) inside of your
matrix, but your final answer should never contain negative numbers. For example,
if you are working over Z3 , you should turn any −1’s into 2’s, and any −2’s into 1’s.
In any case, when row reducing a matrix with entries in Zp (for a prime number p),
you should never (i.e. at no stage of the algorithm) have any numbers greater than
p − 1, and you should never have any fractions inside of your matrix!
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 55
algorithm in order to eliminate fractions (when working over R), or perhaps to turn
the leading entry of one or more rows into 1’s. For instance, in Example 1.3.12, we
could have started our row reduction algorithm for D1 by rescaling the first row so
that the leading entry would become 1 (and then proceeding from there):
2 1 0 2 3 1 3 0 1 4
R →3R
D1 = 4 2 2 1 2 1 ∼ 1 4 2 2 1 2 .
3 4 1 2 2 3 4 1 2 2
We could also have chosen to rescale all three rows so that the leading entries in all
of them become 1:
R1 →3R1
2 1 0 2 3 R2 →4R2 1 3 0 1 4
R3 →2R3
D1 = 4 2 2 1 2 ∼ 1 3 3 4 3 .
3 4 1 2 2 1 3 2 4 4
In any case, the basic idea of the row reduction algorithm is that, in the forward
phase, we identify pivot columns from left to right and we systematically “clean them
up” downward (i.e. all the entries below the pivot position that we are processing get
turned into 0), whereas in the backward phase, we identify pivot columns from right
to left and we “clean them up” upward (i.e. all the entries above the pivot position
that we are processing get turned into 0). This basic procedure should be respected,
since significant deviations from it may lengthen the procedure very considerably.
1. If the rightmost column of the augmented matrix (the one to the right of the
vertical dotted line) is a pivot column, then the system is inconsistent, i.e. it
has no solutions.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 56
x1 − x3 = 0
x2 + 5x3 = 0
0 = 1
0 = 0
2. If the rightmost column of the augmented matrix (the one to the right of the
vertical dotted line) is not a pivot column, but all the other columns are pivot
columns, then the system has a unique solution.
x1 = −5
x2 = 0
x3 = 3
0 = 0
This system is consistent and has a unique solution, which we can imme-
diately read off, as follows.
x1 = −5
x2 = 0
x3 = 3
3. If the rightmost column of the augmented matrix (the one to the right of the
vertical dotted line) is not a pivot column, and at least one of the other columns
is also not a pivot column, then the system has more than one solution, which
we read off as follows. The variables that correspond to the non-pivot columns
(we call these variables free variables) may take any value; these values (called
parameters) are denoted by letters such as r, s, t. The variables that correspond
to the pivot columns are called basic, and we solve for them in terms of our
parameters. This form of solution is called the parametric form of the solution;
we will also refer to it as the general solution.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 57
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 58
Solution. The augmented matrix of this linear system is the matrix A below.
0 −3 −6 3 4 −1
A = 2 1 −4 13 −4 3
2 3 0 11 −6 5
This is precisely the matrix from Example 1.3.9. The reduced row echelon form of
this matrix (computed in Example 1.3.9) is
1 0 −3 7 0 4
RREF(A) = 0 1 2 −1 0 3 .
0 0 0 0 1 2
We see from RREF(A) that the rightmost column (the one to the right of the vertical
dotted line) of the augmented matrix A of our linear system is not a pivot column;
therefore, our linear system is consistent. We further see from RREF(A) that the
pivot columns of A are its first, second and fifth column; so, the basic variables of
our linear system are x1 , x2 , x5 , whereas the remaining variables (namely, x3 , x4 ) are
free. Now, RREF(A) is the augmented matrix of the linear system below, which is
equivalent to our original linear system.
x1 − 3x3 + 7x4 = 4
x2 + 2x3 − x4 = 3
x5 = 2
Our linear system is consistent and has two free variables. Since the field R is infinite,
it follows that the number of solutions is infinite.
Optional: It is is easy to make mistakes when row reducing, and so it is generally a
good idea to check our solutions. We do this by plugging in our general solution into
the original system and checking that we get true statements. In this example, we
get the following.
−3(−2s + t + 3) − 6s + 3t + 4 · 2 = −1
2(3s − 7t + 4) + (−2s + t + 3) − 4s + 13t − 4 · 2 = 3
2(3s − 7t + 4) + 3(−2s + t + 3) + 11t − 6 · 2 = 5
By simplifying the left-hand-side, we see that all the equalities above are correct.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 59
Remark: When checking solutions, all the parameters should cancel out! If, after
simplifying, one of our equations became something like 2s + 7 = −2 or −t = 1, this
would tell us that we miscomputed somewhere. It does not matter that equalities
such as 2s + 7 = −2 or −t = 1 work for some values of s and t. They are supposed
to work for all possible values of the parameters. If they fail to work for some values,
then we know that we made a mistake somewhere and need to compute again.
Example 1.3.14. Solve the linear system below (with coefficients understood to be
in Z3 ), and specify how many solutions it has.
x2 + x3 = 2
2x1 + x2 + x4 = 1
2x1 + x2 + x3 + x4 = 1
x1 + 2x3 + 2x4 = 1
Solution. The augmented matrix of this linear system is the matrix B below.
0 1 1 0 2
2 1 0 1 1
B = 2
1 1 1 1
1 0 2 2 1
This is precisely the matrix from Example 1.3.10. The reduced row echelon form of
this matrix (computed in Example 1.3.10) is
1 0 0 2 1
0 1 0 0 2
RREF(B) = 0 0 1
.
0 0
0 0 0 0 0
We see from RREF(B) that the rightmost column (the one to the right of the vertical
dotted line) of the augmented matrix B of our linear system is not a pivot column;
therefore, our linear system is consistent. We further see from RREF(B) that the
pivot columns of B are its first, second, and third column; so, the basic variables
of our linear system are x1 , x2 , x3 , whereas the remaining variable (namely, x4 ) is
free. Now, RREF(B) is the augmented matrix of the linear system below, which is
equivalent to our original linear system.
x1 + 2x4 = 1
x2 = 2
x3 = 0
0 = 0
We read off the solutions as follows:
x1 = t + 1
x2 = 2
x3 = 0
x4 = t where t ∈ Z3 .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 60
Our linear system is consistent and has one free variable. Since the field Z3 has three
elements, the number of solutions is 31 = 3.
Remark: To get x1 , we computed x1 = −2x4 + 1 = x4 + 1 = t + 1, where we used
the fact that in Z3 , we have that −2 = 1.
Optional: We check our solutions by plugging them into our original system.
2 + 0 = 2
2(t + 1) + 2 + t = 1
2(t + 1) + 2 + 0 + t = 1
(t + 1) + 2 · 0 + 2t = 1
By simplifying the left-hand-side, we see that all the equalities above are correct.
Here, it is important to remember that we are working in Z3 . For example, the
left-hand-side of the second equality simplifies as follows:
2(t + 1) + 2 + t = 2t + 2 + 2 + t = (2 + 1)t + 2 + 2 = 1,
| {z } | {z }
=0 =1
Example 1.3.15. Solve the linear systems (⋆) and (⋆⋆) below (with coefficients
understood to be in Z2 ), and specify how many solutions they have.
x1 + x2 + x3 + x4 + x5 = 1
x1 + x2 + x3 = 1 (⋆)
x1 + x2 + x5 = 1
x1 + x2 + x3 = 1
x1 + x3 = 0
(⋆⋆)
x2 = 1
x1 + x3 = 1
Solution. We begin by solving the linear system (⋆). Its augmented matrix is the
matrix C1 below.
1 1 1 1 1 1
C1 = 1 1 1 0 0 1
1 1 0 0 1 1
This is precisely the matrix C1 from Example 1.3.11. The reduced row echelon form
of this matrix (computed in Example 1.3.11) is
1 1 0 0 1 1
RREF(C1 ) = 0 0 1 0 1 0 .
0 0 0 1 1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 61
We see from RREF(C1 ) that the rightmost column (the one to the right of the
vertical dotted line) of the augmented matrix C1 of the linear system (⋆) is not a
pivot column; therefore, the linear system (⋆) is consistent. We further see from
RREF(C1 ) that the pivot columns of C1 are its first, third, and fourth column; so,
the basic variables of the linear system (⋆) are x1 , x3 , x4 , whereas the remaining
variables (namely, x2 , x5 ) are free. Now, RREF(C1 ) is the augmented matrix of the
linear system below, which is equivalent to our original linear system (⋆).
x1 + x2 + x5 = 1
x3 + x5 = 0
x4 + x5 = 0
The system (⋆) is consistent and has two free variables. Since the field Z2 has two
elements, the number of solutions is 22 = 4.
Remark: Remember, in Z2 , we have that −1 = 1, and consequently, −s = s and
−t = t. We used this to solve for our basic variables (x1 , x3 , x4 ).
Optional: We check our solutions by plugging them into our original system (⋆).
(s + t + 1) + s + t + t + t = 1
(s + t + 1) + s + t = 1
(s + t + 1) + s + t = 1
By simplifying the left-hand-side, we see that all the equalities above are correct.
Here, it is important to keep in mind that we are working in Z2 . For example, the
left-hand-side of the first equality simplifies to
(s + t + 1) + s + t + t + t = (1 + 1)s + (1 + 1 + 1 + 1)t + 1 = 1,
| {z } | {z }
=0 =0
It remains to solve the linear system (⋆⋆). Its augmented matrix is the matrix
C2 below.
1 1 1 1
1 0 1 0
C2 = 0 1 0 1
1 0 1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 62
This is precisely the matrix C2 from Example 1.3.11. The reduced row echelon form
of this matrix (computed in Example 1.3.11) is
1 0 1 0
0 1 0 0
RREF(C2 ) = 0 0 0
.
1
0 0 0 0
We see from RREF(C2 ) that the rightmost column (the one to the right of the
vertical dotted line) of the augmented matrix C2 of the linear system (⋆⋆) is a pivot
column; therefore, the linear system (⋆⋆) is inconsistent. (The number of solutions is
zero.)
Remark: We cannot check this answer (since there are no solutions to plug into the
system). We can only hope that we did not make any mistakes in our calculation!
When in doubt, redo the whole calculation from scratch.
Example 1.3.16. Solve the linear systems (⋆) and (⋆⋆) below (with coefficients
understood to be in Z5 ), and specify how many solutions they have.
2x1 + x2 + 2x4 = 3
4x1 + 2x2 + 2x3 + x4 = 2 (⋆)
3x1 + 4x2 + x3 + 2x4 = 2
4x1 + 3x2 + 2x3 = 1
x2 + 2x3 = 3
(⋆⋆)
x1 + 2x2 + x3 = 3
2x1 + x2 + 3x3 = 3
Solution. We begin by solving the linear system (⋆). Its augmented matrix is the
matrix D1 below.
2 1 0 2 3
D1 := 4 2 2 1 2
3 4 1 2 2
This is precisely the matrix D1 from Example 1.3.12. The reduced row echelon form
of this matrix (computed in Example 1.3.12) is
1 3 0 0 0
RREF(D1 ) = 0 0 1 0 4 .
0 0 0 1 4
We see from RREF(D1 ) that the rightmost column (the one to the right of the
vertical dotted line) of the augmented matrix D1 of the linear system (⋆) is not a
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 63
pivot column; therefore, the linear system (⋆) is consistent. We further see from
RREF(D1 ) that the pivot columns of D1 are its first, third, and fourth column; so,
the basic variables of the linear system (⋆) are x1 , x3 , x4 , whereas the remaining
variable (namely, x2 ) is free. Now, RREF(D1 ) is the augmented matrix of the linear
system below, which is equivalent to our original linear system (⋆).
x1 + 3x2 = 0
x3 = 4
x4 = 4
We read off the solutions as follows:
x1 = 2t
x2 = t
x3 = 4
x4 = 4 where t ∈ Z5 .
The system (⋆) is consistent and has one free variable. Since the field Z5 has five
elements, the number of solutions is 51 = 5.
Optional: We check our solutions by plugging them into our original system (⋆).
2(2t) + t + 2·4 = 3
4(2t) + 2t + 2 · 4 + 4 = 2
3(2t) + 4t + 4 + 2·4 = 2
By simplifying the left-hand-side, we see that all the equalities above are correct. It is
important to keep in mind that we are working in Z5 . For example, the left-hand-side
of the first equality simplifies to
2(2t) + t + 2 · 4 = (2 · 2 + 1)t + (2 · 4 ) = 3,
|{z}
| {z }
=0 =3
It remains to solve the linear system (⋆⋆). Its augmented matrix is the matrix
D2 below.
4 3 2 1
0 1 2 3
D2 := 1 2
1 3
2 1 3 3
This is precisely the matrix D2 from Example 1.3.12. The reduced row echelon form
of this matrix (computed in Example 1.3.12) is
1 0 0 1
0 1 0 2
RREF(D2 ) = 0 0 1
.
3
0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 64
We see from RREF(D2 ) that the rightmost column (the one to the right of the
vertical dotted line) of the augmented matrix D2 of the linear system (⋆⋆) is not a
pivot column; therefore, the linear system (⋆⋆) is consistent. We further see from
RREF(D2 ) that all the columns of D2 other than the rightmost one (i.e. all the
columns to the left of the vertical dotted line) are pivot columns. So, all three
variables of the linear system (⋆⋆) are basic, and consequently, this linear system has
a unique solution. RREF(D2 ) is the augmented matrix of the linear system below.
x1 = 1
x2 = 2
x3 = 3
0 = 0
By simplifying the left-hand-side, we see that all the equalities above are correct.
(Again, we must keep in mind that we are computing in Z5 ).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 65
We note that when working with homogeneous linear systems, we typically row
reduce only the coefficient matrix, and not the augmented matrix (see Example 1.3.17
below).
Example 1.3.17. Solve the homogeneous linear system below, with coefficients
understood to be in R.
2x1 − 4x2 + 6x4 = 0
2x1 − 4x2 + 2x3 − 2x4 = 0
How many solutions does this homogeneous linear system have? Does it have any
non-trivial solutions?
Proof. The coefficient matrix of our homogeneous linear system is
2 −4 0 6
A :=
2 −4 2 −2
We row reduce this matrix as follows:
2 −4 0 6
A =
2 −4 2 −2
R2 →R2 −R1 2 −4 0 6
∼
0 0 2 −8
R1 → 12 R1
R2 → 12 R2 1 −2 0 3
∼ .
0 0 1 −4
The last matrix from the calculation above is in reduced row echelon form, and so
1 −2 0 3
RREF(A) = .
0 0 1 −4
Remark: We must keep in mind that A is the coefficient matrix of our linear
system. The augmented matrix of our linear system would be A 0 . Since zero
columnsremain unchanged
when we perform elementary row operations, the matrix
RREF A 0 is obtained by adding a zero column to the right of RREF(A).
However, we do not normally write all this. We simply keep track of it mentally.
We now continue our computation. We see from the matrix RREF(A) that the
pivot columns of the coefficient matrix A are its first and third column. So, x1 , x3 are
the basic variables, and x2 , x4 are the free variables. Further, we see from RREF(A)
that our original linear system is equivalent to the linear system below.
x1 − 2x2 + 3x4 = 0
x3 − 4x4 = 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 66
Since our system has free variables (in fact, two of them), and since we are working
over the infinite field R, we see that our system has infinitely many solutions. In
particular, our system has a non-trivial solution (in fact, it has infinitely many of
them).
Optional: We can check our solutions by plugging them into the original linear
system, as follows.
2(2s − 3t) − 4s + 6t = 0
2(2s − 3t) − 4s + 2(4t) − 2t = 0
By simplifying the left-hand-side, we see that both equalities above are correct.
x1 + 2x2 + 3x3 = −1
2x1 + 3x2 + 4x3 = 2
2
4x1 + 7x2 + (k + 9)x3 = k − 1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 67
At this point, we would like to divide the bottom row by k 2 − 1, but there is a
potential problem: it is possible that k 2 − 1 = 0. Clearly, k 2 − 1 = 0 if and only if
k = ±1. Thus, we will consider three cases: when k = 1, when k = −1, and when
k ̸= ±1.
Case 1: k = 1.
By plugging in k = 1 into the matrix B, we obtain the following:
1 0 −1 7
A ∼ B = 0 1 2 −4 .
0 0 0 0
Our matrix is in reduced row echelon form, and it is the augmented matrix of the
linear system below.
x1 − x3 = 7
x2 + 2x3 = −4
0 = 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 68
x1 = t + 7
x2 = −2t − 4
x3 = t where t ∈ R.
Since the system has a free variable, and since the field R is infinite, we see that our
system has infinitely many solutions.
Case 2: k = −1.
By plugging in k = −1 into the matrix B, we obtain
1 0 −1 7
A ∼ B = 0 1 2 −4 .
0 0 0 −2
The bottom row corresponds to the equation 0 = −2, and we deduce that our system
is inconsistent. (The number of solutions is zero.)
Case 3: k ̸= ±1.
In this case, we have that k 2 − 1 ̸= 0, which means that we may divide by k 2 − 1.
We now continue row reducing as follows:
1 0 −1 7
A ∼ B = 0 1 2 −4
2
0 0 k −1 k−1
R3 → 1
R3
1 0 −1 7
k2 −1
∼ 0 1 2 −4
k−1
0 0 1 k2 −1
1 0 −1 7
= 0 1 2 −4
1
0 0 1 k+1
1
1 0 0 7+ k+1
R1 →R1 +R3
R2 →R2 −2R3
0 1 0 −4 − 2
∼ k+1
1
0 0 1 k+1
7k+8
1 0 0 k+1
0 1 0 − 4k+6 .
= k+1
1
0 0 1 k+1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 69
Our last matrix is in reduced row echelon form. We now see that
7k+8
x1 = k+1
x2 = − 4k+6
k+1
1
x3 = k+1
is the unique solution of our linear system. In particular, our linear system has
exactly one solution.
(t + 7) + 2(−2t − 4) + 3t = −1
2(t + 7) + 3(−2t − 4) + 4t = 2
2
4(t + 7) + 7(−2t − 4) + (1 + 9)t = 1 − 1
After simplifying, we see that all three equalities above are correct.
Case 3: k ̸= ±1.
We plug in the solutions that we obtained in Case 3 into our original system,
and we obtain the following.
7k+8 4k+6 1
k+1 + 2 − k+1 + 3 k+1 = −1
2 7k+8 4k+6 1
k+1 + 3 − k+1 + 4 k+1 = 2
4 7k+8 4k+6
+ (k 2 + 9) 1
k+1 + 7 − k+1 k+1 = k−1
After simplifying, we see that all three equalities above are correct.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 70
Example 1.3.19. Find the solution set of the following system of linear equations
(with coefficients in R).
Solution. The augmented matrix of this linear system is the matrix A below.
0 −3 −6 3 4 −1
A = 2 1 −4 13 −4 3
2 3 0 11 −6 5
This is precisely the matrix from Example 1.3.9. By performing only the forward phase
of the row reduction algorithm on the matrix A (see the solution of Example 1.3.9
for the details), we see that
2 3 0 11 −6 5
A ∼ 0 −2 −4 2 2 −2 ,
0 0 0 0 1 2
where the pivot columns are in red for emphasis. Since the rightmost column (the
one to the right of the vertical dotted line) is not a pivot column, our system is
consistent. The pivot columns are the first, second, and fifth column. Therefore,
x1 , x2 , x5 are the basic variables, while the remaining variables (namely, x3 , x4 ) are
free. Now, the matrix above is the augmented matrix of the linear system below
(which is equivalent to our original system).
We now solve for the basic variables, working our way from the bottom up. From
the bottom equation, we get x5 = 2. If we plug x5 = 2 into the equation above (the
second-from-bottom one), we get −2x2 − 4s + 2t + 2 · 2 = −2. By solving for x2 , we
get x2 = −2s + t + 3. We now plug in both x2 = −2s + t + 3 and x5 = 2 into the top
equation, which yields 2x1 + 3(−2s + t + 3) + 11t − 6 · 2 = 5. By solving for x1 , we
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 71
x1 = 3s − 7t + 4
x2 = −2s + t + 3
x3 = s
x4 = t
x5 = 2 where s, t ∈ R.
We note that this is exactly the same as the solution that we obtained in Exam-
ple 1.3.13.
Example 1.3.20. Find the solution set of the following system of linear equations
(with coefficients in Z3 ).
x2 + x3 = 2
2x1 + x2 + x4 = 1
2x1 + x2 + x3 + x4 = 1
x1 + 2x3 + 2x4 = 1
Solution. The augmented matrix of this linear system is the matrix B below.
0 1 1 0 2
2 1 0 1 1
B = 2
1 1 1 1
1 0 2 2 1
This is precisely the matrix from Example 1.3.10. By only performing the for-
ward phase of the row reduction algorithm on the matrix B (see the solution of
Example 1.3.10 for the details), we obtain
1 0 2 2 1
0 1 2 0 2
B ∼ 0 0 1 0 0 ,
0 0 0 0 0
where the pivot columns are in red for emphasis. Since the rightmost column (the
one to the right of the vertical dotted line) is not a pivot column, our system is
consistent. The pivot columns are the first, second, and third column. Therefore,
x1 , x2 , x3 are the basic variables, whereas the variable x4 is free. Now, the matrix
above is the augmented matrix of the system below (which is equivalent to our
original system).
x1 + 2x3 + 2x4 = 1
x2 + 2x3 = 2
x3 = 0
0 = 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 72
Remark: Computers typically use back substitution to solve linear systems. However,
when computing by hand (especially when the numbers are reasonably nice), it is
more convenient to find the reduced row echelon form of the augmented matrix
and then read off the solutions, as described in subsection 1.3.4.
1.3.6 A few more remarks about the (reduced) row echelon form
Submatrices. A submatrix of a matrix A is any matrix obtained from A by possibly
deleting some rows and some columns. For example, the matrix
1 1 2 2
B = 0 2 3 5
3 5 5 3
is a submatrix of the matrix
1 2 1 2 1 2
0 1 2 3 4 5
A =
8
4 2 1 2 4
3 4 5 5 4 3
because B can be obtained from A by deleting the third row and the second and
fifth column, as shown below.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 73
1 2 1 2 1 2
0 1 2 3 4 5
8 4 2 1 2 4
3 4 5 5 4 3
Submatrices and row equivalence. Suppose that A and B are row equivalent
matrices. If A′ is a submatrix of A obtained by possibly deleting some columns of A
(and no rows), and B ′ is the submatrix of B obtained by deleting the corresponding
columns of B, then A′ and B ′ are also row equivalent. Indeed, any sequence of
elementary row operations that transforms A into B will transform A′ into B ′ . For
example, we have the following (matrix entries are assumed to be in R):
0 1 2 0 1 2 1 2 1 2 1 1
R1 ↔R2
1 2 1 2 1 1 ∼ 0 1 2 0 1 2
3 8 3 8 5 5 3 8 3 8 5 5
1 2 1 2 1 1
R3 →R3 −3R1
∼ 0 1 2 0 1 2
0 2 0 2 2 2
R3 → 12 R3
1 2 1 2 1 1
∼ 0 1 2 0 1 2 .
0 1 0 1 1 1
If we delete, say, the first, fourth, and fifth column throughout, we get the following:
0 1 2 0 1 2 1 2 1 2 1 1
R1 ↔R2
1 2 1 2 1 1 ∼ 0 1 2 0 1 2
3 8 3 8 5 5 3 8 3 8 5 5
1 2 1 2 1 1
R3 →R3 −3R1
∼ 0 1 2 0 1 2
0 2 0 2 2 2
R3 → 21 R3
1 2 1 2 1 1
∼ 0 1 2 0 1 2 .
0 1 0 1 1 1
Warning: Do not delete rows! Deleting rows may destroy row equivalence.
Submatrices and the row echelon form. If A and B are matrices with the same
number of rows, then we denote by A B the matrix obtained by placing A and
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 74
B next to each other (A is to the left and B is to the right). For example, if
1 2 3 4 0 3
A = 2 3 4 5 and B = 2 0 ,
3 4 5 6 0 1
then
1 2 3 4 0 3
A B = 2 3 4 5 2 0 .
3 4 5 6 0 1
Further,
when
we write A1 B1 ∼ A2 B2 or RREF A1 B1 =
A2 B2 , we implicitly assume that A1 is of the same size as A2 (i.e. A1 and A2
have the same number of rows and the same number of columns), and that B1 and
B2 are of the same size.
It follows immediately from the appropriate definitions that if a matrix A is in
row echelon form, then any submatrix of A that lies in the upper-left corner of A
is also in row echelon form (see the diagram below for illustration; the submatrix
in question is in red). However, other submatrices of a matrix in row echelon form
need not be in row echelon form.
0 ■ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗
0 0 0 ■ ∗ ∗ ∗ ∗ ∗ ∗
0 0 0 0 ■ ∗ ∗ ∗ ∗ ∗
0 0 0 0 0 0 0 ■ ∗ ∗
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
Similarly, if a matrix A is in reduced row echelon form, then any submatrix of A
that lies in the upper-left corner of A is also in reduced row echelon form (see the
diagram below for illustration; the submatrix in question is in red). However, other
submatrices of a matrix in reduced row echelon form need not be in reduced row
echelon form.
0 1 ∗ 0 0 ∗ ∗ 0 ∗ ∗
0 0 0 1 0 ∗ ∗ 0 ∗ ∗
0 0 0 0 1 ∗ ∗ 0 ∗ ∗
0 0 0 0 0 0 0 1 ∗ ∗
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
In particular, this means that if a matrix A B is in row echelon form (resp.
reduced row echelon form), then A is also in row echelon form (resp. reduced row
echelon form).
Further, note that if A is a matrix in row echelon form (resp. reduced row echelon
form), then adding an arbitrary number of zero columns to the right of the matrix
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 75
Recall that the n × m zero matrix in Fn×m (where F is some field) is the n × m
matrix, all of whose entries are 0;15 this matrix is denoted by On×m . As our next
proposition shows, the converse of Proposition 1.3.21 holds in the special case when
B1 = B2 = On×p .
Proposition 1.3.22. Let F be a field, let A1 , A2 ∈ Fn×m , and let On×p be the zero
matrix in Fn×p . Then both the following hold:
(a) A1 ∼ A2 if and only if A1 On×p ∼ A2 On×p ;
(b) RREF(A1 ) = A2 if and only if RREF A1 On×p = A2 On×p .
13
As a matter of fact, we can insert zero columns into a matrix in row echelon form anywhere
(left, right, middle), and we will obtain another matrix in row echelon form; similar remarks apply
to matrices in reduced row echelon form. However, zero rows can only be added to the bottom, or
at least below any non-zero rows (if we insert zero rows elsewhere, a matrix in row echelon form will
no longer be in row echelon form).
14
However, B2 need not be in reduced row echelon form!
15
The 0 is from our field F.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 76
Proof. (a) Note that elementary row operations leave any zero columns unaffected.
Therefore, any sequence
of elementary
row operations
that transforms A1 into A2
also transforms
A 1 O n×p into A 2 n×p , and vice versa. So, A1 ∼ A2 if
O
and only if A1 On×p ∼ A2 On×p .
(b) By (a), we have that A1 ∼ A2 if and only if A1 On×p ∼ A2 On×p .
Moreover, it follows immediately from the definition that A2 is in reduced row
echelon form if and only if the matrix A2 On×p is in reduced row echelon
form.
This proves
that RREF(A1 ) = A2 if and only if RREF A1 On×p =
A2 On×p .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 77
a1,1 . . . a1,m c1 a1,1 . . . a1,m d1
A = ... .. .. .. , B = ... .. .. .. ,
. . . . . .
an,1 . . . an,m cn an,1 . . . an,m dn
where the ai,j ’s, the ci ’s, and the di ’s are some elements of the field F. (Here, the
submatrix
of both A and B to the left of the vertical dotted line is A′ = B ′ =
ai,j n×m .) We must show that c1 = d1 , . . . , cn = dn .
Assume that A′ = B ′ has exactly k pivot columns, and assume that those pivot
columns are columns number j1 , . . . , jk (appearing from left to right in A′ = B ′ ,
so that j1 < . . . jk ≤ m). Thus, the matrix A′ = B ′ has precisely k non-zero rows,
and for each i ∈ {1, . . . , m}, the leading 1 of the i-th row of A′ = B ′ is in the ji -th
column. So, schematically, the matrix A′ = B ′ looks as shown in the diagram below
(the first k rows are non-zero, the pivot columns are in red, indices of the pivot
columns are shown on top, row indices are shown on the left, and the horizontal
dotted line separates the non-zero rows from the zero rows).
j1 j2 jk
∗ ∗ ∗ ∗ ∗
1 0 1 0 0 0
2
0 0 0 1 0 ∗ ∗ 0 ∗ ∗
0 0 0 0 1 ∗ ∗ 0 ∗ ∗
k
0 0 0 0 0 0 0 1 ∗ ∗
0 0 0 0 0 0 0 0 0 0
n 0 0 0 0 0 0 0 0 0 0
Now, consider the linear systems (⋆) and (⋆⋆) below, whose augmented matrices
are A and B, respectively. (Note that this means that they have the same coefficient
matrix, namely A′ = B ′ .)
a1,1 x1 + . . . + a1,m xm = c1
.. (⋆)
.
an,1 x1 + . . . + an,m xm = cn
a1,1 x1 + . . . + a1,m xm = d1
.. (⋆⋆)
.
an,1 x1 + . . . + an,m xm = dn
Since A and B are row equivalent, the linear systems (⋆) and (⋆⋆) are equivalent,
i.e. they have exactly the same solutions. In particular, (⋆) and (⋆⋆) are both either
consistent or both inconsistent.
Suppose first that the linear systems (⋆) and (⋆⋆) are both inconsistent. Since (⋆)
is inconsistent, the rightmost column of A is a pivot column. Since A is in reduced
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 78
row echelon form, and since it has exactly k pivot columns to the left of its rightmost
column (i.e. to the left of the vertical dotted line), we see that the rightmost column
of A has 1 in the (k + 1)-th row and 0’s everywhere else. Schematically, the matrix
A is of the following form (where to the left of the vertical dotted line, we have the
matrix A′ = B ′ , and the horizontal dotted line is inherited from A′ = B ′ ):
∗ ∗ ∗ ∗ ∗
0 1 0 0 0 0
0 0 0 1 0 ∗ ∗ 0 ∗ ∗ 0
0 0 0 0 1 ∗ ∗ 0 ∗ ∗ 0
.
0 0 0 0 0 0 0 1 ∗ ∗ 0
0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0
In other words, we have that ck+1 = 1 and ci = 0 for all i ∈ {1, . . . , n} \ {k}. Since
(⋆⋆) is also inconsistent, a completely analogous argument shows that dk+1 = 1 and
di = 0 for all i ∈ {1, . . . , n} \ {k}. It follows that c1 = d1 , . . . , cn = dn , and we are
done.
Suppose now that the linear systems (⋆) and (⋆⋆) are both consistent. Since
(⋆) is consistent, the rightmost column of its augmented matrix A is not a pivot
column. Since A is in reduced row echelon form, and since it has exactly k pivot
columns to the left of its rightmost column (i.e. to the left of the vertical dotted
line), we see that the bottom n − k many rows of A are all zero, and in particular,
ck+1 = · · · = cn = 0. Schematically, the matrix A is of the following form (where to
the left of the vertical dotted line, we have the matrix A′ = B ′ , and the horizontal
dotted line is inherited from A′ = B ′ ):
0 1 ∗ 0 0 ∗ ∗ 0 ∗ ∗ c1
0 0 0 1 0 ∗ ∗ 0 ∗ ∗ c2
..
0 0 0 0 1 ∗ ∗ 0 ∗ ∗ .
.
0 0 0 0 0 0 0 1 ∗ ∗ ck
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
Since (⋆⋆) is also consistent, a completely analogous argument shows establishes that
dk+1 = · · · = dn = 0. Schematically, the matrix B is of the following form (where to
the left of the vertical dotted line, we have the matrix A′ = B ′ , and the horizontal
dotted line is inherited from A′ = B ′ ):
0 1 ∗ 0 0 ∗ ∗ 0 ∗ ∗ d1
0 0 0 1 0 ∗ ∗ 0 ∗ ∗ d2
..
0 0 0 0 1 ∗ ∗ 0 ∗ ∗ .
.
0 0 0 0 0 0 0 1 ∗ ∗ dk
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 79
We have now shown that ck+1 , . . . , cn , dk+1 , . . . , dn are all zero. It remains to
show that c1 = d1 , . . . , ck = dk .
We consider the systems (⋆) and (⋆⋆). In both of those systems, the basic
variables are the variables xj1 , . . . , xjk , and the remaining variables are free. We first
consider the linear system (⋆). If we set all the free variables to 0 and solve for the
basic variables, we get the following solution of the system (⋆):
Now, since the linear systems (⋆) and (⋆⋆) are equivalent, this solution of (⋆) is also
a solution of (⋆⋆). But if we plug it into (⋆⋆), we obtain the following.
c1 = d1
c2 = d2
..
.
ck = dk
0 = 0
0 = 0
.. n−k
.
0 = 0
Theorem 1.3.6. Every matrix (with entries in some field) is row equivalent to a
unique matrix in reduced row echelon form.
Proof. The row reduction algorithm transforms any matrix into one in reduced
row echelon form; these two matrices are row equivalent because the row reduction
algorithm is simply a particular sequence of elementary row operations. This proves
the existence part of the theorem: every matrix is row equivalent to at least one
matrix in reduced row echelon form.
It remains to prove uniqueness. Fix any matrix A (with entries in some field),
and suppose that it is row equivalent to matrices A1 and A2 , both in reduced row
echelon form. But then A1 ∼ A ∼ A2 ; consequently (by the transitivity of row
equivalence, see Proposition 1.3.5(c)), we have that A1 ∼ A2 . But now Lemma 1.3.23
guarantees that A1 = A2 . This proves uniqueness, and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 80
Corollary 1.3.7. If two row equivalent matrices (with entries in some field) are
both in row echelon form, then they have exactly the same pivot positions and the
indices of their pivot columns are exactly the same.
Proof. Let A and B be row equivalent matrices in row echelon form, both with
entries in some field F. By performing the backward phase of the row reduction
algorithm on the matrix A, we obtain the matrix RREF(A), which is in reduced
row echelon form, is row equivalent to A, and (by the description of the backward
phase of the row reduction algorithm) has exactly the pivot positions as A. Similarly,
RREF(B) is in reduced row echelon form, is row equivalent to B, and has exactly
the same pivot positions as B. Now, we have that
(∗)
RREF(A) ∼ A ∼ B ∼ RREF(B),
where (*) is true by hypothesis. So, by the transitivity of row equivalence, it follows
that RREF(A) ∼ RREF(B). Since both RREF(A) and RREF(B) are in row echelon
form, Theorem 1.3.6 implies that they are in fact equal. But now both A and B
have exactly the same pivot positions as the matrix RREF(A) = RREF(B), and
consequently, the indices of the pivot columns of A and B are also the same.
Corollary 1.3.8. Two matrices (with entries in some field) are row equivalent if
and only if they have the same reduced row echelon form.
Proof. Fix two matrices A and B (with entries in some field). By Theorem 1.3.6,
the matrix A is row equivalent to a unique matrix in reduced row echelon form,
denoted by RREF(A). Similarly, the matrix B is row equivalent to a unique matrix
in reduced row echelon form, denoted by RREF(B).
Suppose first that A ∼ B. Then RREF(A) ∼ A ∼ B ∼ RREF(B), and so by
the transitivity of row equivalence, we have that RREF(A) ∼ RREF(B). But now
Lemma 1.3.23 guarantees that RREF(A) = RREF(B).
Conversely, suppose that RREF(A) = RREF(B). Then A ∼ RREF(A) =
RREF(B) ∼ B. By the transitivity of row equivalence, it follows that A ∼ B, and
we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 81
xn yn
we define the sum of x and y by
x 1 + y1
x + y := ..
,
.
x n + yn
and the difference of x and y by
x 1 − y1
x − y := ..
,
.
x n − yn
xn
in Fn and a scalar α ∈ F, we define the scalar-vector product of α and x by
αx1
αx := ... ,
αxn
where the products αx1 , . . . , αxn are computed in the field F.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 82
in Z43 . Then
0+1 1 2·0 0
1+0 1 2·1 2
2+2 = 1
x+y =
and 2x =
2·2 = 1
.
2+1 0 2·2 1
a+b
a2 + b2 a
a2
b2 b
a1 b1 a2 + b2 x1
Scalar
multiplication can be interpreted as follows. Suppose we are given a vector
a1
a= and a scalar c ∈ R. If c > 0, then ca is the vector that points in the
a2
same direction as a, but whose length is scaled by c.
x2 x2
ca2
c>0
a2 ca
a
a1 x1 ca1 x1
On the other hand, if c < 0, then ca is the vector that points in the opposite direction
to a, but whose length is scaled by |c| = −c.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 83
x2
(c < 0)
a2
a
ca1
a1 x1
ca
ca2
If c = 0, then ca = 0,
which
is simply
the origin.
a1 b1
For vectors a = and b = in R2 , we note that a − b = a + (−1)b,
a2 b2
which yields the geometric interpretation below.
x2
a
a−b
b
x1
−b
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 84
5 1 1
6 = 2 3 + 3 0 ;
5 1 1
0 1 1 1 1
3 = 3 − 0 = 1 3 + (−1) 0 ;
0 1 1 1 1
−3 1 1 1
−9 = −3 3 = (−3) 3 + 0 0 .
−3 1 1 1
2 1
Similarly, is a linear combination of the vector in Z23 because
1 2
2 1
= 2 .
1 2
0 = 0v1 + · · · + 0vk .
Moreover, we define the “empty sum” of vectors in Fn (or the sum of an “empty list”
of vectors in Fn ) to be 0, where 0 is the zero vector in Fn .
Linear span. The linear span (or simply span) of vectors v1 , . . . , vk in Fn (where F
is a field), denoted by Span({v1 , . . . , vk }) or simply Span(v1 , . . . , vk ), is the set of
all linear combinations of vectors v1 , . . . , vk . In other words,
k
nP o
Span(v1 , . . . , vk ) = αi vi | α1 , . . . , αk ∈ F .
i=1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 85
x2
Span(v)
x1
What if we have two vectors v1 and v2 ? If neither of those vectors is a scalar multiple
of the other (and in particular, neither of the two vectors is 0), then Span(v1 , v2 ) is
the plane through0, v1, v2 . The case
that
is particularly easy to visualize is that of
1 0
the vectors e1 := 0 and e2 := 1 in R3 :
0 0
n o n a1 o
Span(e1 , e2 ) = a1 e1 + a2 e2 | a1 , a2 ∈ R = a2 | a1 , a2 ∈ R ,
0
0
e2 = 1
0
1
e1 = 0
x2
0
Span(e1, e2)
x1
But what if we have two vectors, one of which is a scalar multiple of the other? If
v1 , v2 ∈ Rn , with v2 = αv1 for some scalar α ∈ R and v1 ̸= 0, then Span(v1 , v2 ) is
the line through the origin, v1 , and v2 . In the case of R2 , this is illustrated below.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 86
x2
Span(v1, v2)
v2 = αv1
v1
x1
xm
we define the matrix-vector product Ax as follows:
m
P
Ax := xi ai = x1 a1 + · · · + xm am .
i=1
Example 1.4.2. Consider the matrix A ∈ R3×2 and vector x ∈ R2 , given below:
−1 2
2
A = 2 0 and x = .
3
3 −2
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 87
Then
−1 2 −1 2 4
2
Ax = 2 0 = 2 2 + 3 0 = 4 .
3
3 −2 3 −2 0
Then
1
1 1 0 1 = 1 1 +1 1 +0 0 0
Ax = = .
1 0 1 1 0 1 1
0
Proof. We compute:
Span(a1 , . . . , am ) = x1 a1 + · · · + xm am | x1 , . . . , xm ∈ F
x1
n . o
= a1 . . . am .. | x1 , . . . , xm ∈ F
xm
Ax | x ∈ Fm .
=
Remark:
Suppose
that a1 , . . . , am ∈ Fn , where F is some field, and set A :=
a1 . . . am . Proposition 1.4.4 states that Span(a1 , . . . , am ), which we defined
as the set of all linear combinations of the vectors a1 , . . . , am , is in fact the set of
all possible matrix-vector products Ax (where our matrix A = a1 . . . am is
fixed, and the vector x ∈ Fm is allowed to vary). We note that Span(a1 , . . . , am ),
the span of the columns of A, has a special name: it is called the “column space”
of the matrix A, and it is denoted by Col(A). We will study the column space of a
matrix in more detail in chapter 3 (see section 3.3).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 88
The standard basis vectors. Let F be a field. For each positive integer n and
index i ∈ {1, . . . , n}, the vector eni is the vector in Fn whose i-th entry is 1, and all
of whose other entries are 0’s (here, both 0 and 1 are understood to belong to the
field F). Schematically, for each index i ∈ {1, . . . , n}, the vector eni is given by
0
..
.
0
n
ei = 1 ←− i-th entry
0
..
.
0
(here, we have exactly one 1, and we have n − 1 many 0’s). When n is clear from
context, we drop the superscript n, and we write e1 , . . . , en instead of en1 , . . . , enn ,
respectively. Vectors e1 , . . . , en are called the standard basis vectors of Fn , and the
set En := {e1 , . . . , en } is called the standard basis of Fn . We note that any vector
v1
v = ...
vn
v = v1 e1 + · · · + vn en .
As our next proposition shows, multiplying a matrix by the i-th standard basis
vector yields the i-th column of the matrix that we started with.
Proposition 1.4.5. Let F be a field, and let A = a1 . . . am be a matrix in
Fn×m . Then for all indices i ∈ {1, . . . , m}, we have that Aem
i = ai .
The identity matrix. For a field F, the identity matrix in Fn×n is the n × n matrix
n
e1 . . . enn .
In :=
In other words, the identity matrix In is the n×n matrix with 1’s on the main diagonal
and 0’s elsewhere (where the 1’s and the 0’s are from the field F). Schematically, we
have that
1 0 0 ... 0 0
0 1 0 ... 0 0
0 0 1 ... 0 0
In = . . . .
. .
.. .. .. . . .. ..
0 0 0 ... 1 0
0 0 0 . . . 0 1 n×n
for all positive integers n. For small values of n, we have:
1 0 0
1 0
I1 = 1 , I2 = , I3 = 0 1 0 .
0 1
0 0 1
Proposition 1.4.6. Let F be a field. Then for all vectors v ∈ Fn , we have that
In v = v.
v1
Proof. For any vector v = ... in Fn , we have that
vn
v1
v2
en1 en2 enn
In v = ...
..
.
vn
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 90
v1
v2
= = v,
..
.
vn
Multiplying by zero. Recall that, for a field F, the zero matrix in Fn×m , denoted
by On×m , is the n × m matrix, all of whose entries are 0 (where the 0 is from the
field F.
17
Here, the zero vector 0 belongs to Fn .
18
Here, the first 0 belongs to Fm , whereas the second 0 belongs to Fn . Or, if we color code for
convenience, in the expression A0 = 0, we have that 0 ∈ Fm and 0 ∈ Fn .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 91
x1
1 2 3 x2 = 7
Ax = b ⇐⇒ 4 5 6 8
x3
| {z }
=x
1 2 3 7
⇐⇒ x1 + x2 + x3 =
4 5 6 8
x1 + 2x2 + 3x3 7
⇐⇒ =
4x1 + 5x2 + 6x3 8
x1 + 2x2 + 3x3 = 7
⇐⇒
4x1 + 5x2 + 6x3 = 8
Note that the augmented matrix of the linear system that we obtained is
1 2 3 7
A b = .
4 5 6 8
Let us now consider the general case. Suppose that F is afield,A ∈ Fn×m is a
b1
n
..
matrix, and b ∈ F is a vector. Set A = ai,j n×m and b = . . We transform
bn
the matrix-vector equation Ax = b into a system of linear equations, as follows.
a1,1 a1,2 . . . a1,m x1 b1
a2,1 a2,2 . . . a2,m x2 b2
= .
.. .. . . .
. .
. .
Ax = b ⇐⇒
. . . . . .
an,1 an,2 . . . an,m xm bn
| {z }
=x
a1,1 a1,2 a1,m b1
a2,1 a2,2 a2,m b2
⇐⇒ x1 + x2 + · · · + xm =
.. .. .. ..
. . . .
an,1 an,2 an,m bn
a1,1 x1 + a1,2 x2 + · · · + a1,m xm b1
a2,1 x1 + a2,2 x2 + · · · + a2,m xm b2
⇐⇒ =
.. ..
. .
an,1 x1 + an,2 x2 + · · · + an,m xm bn
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 92
a1,1 x1 + a1,2 x2 + · · · + a1,m xm = b1
a2,1 x1 + a2,2 x2 + · · · + a2,m xm = b2
⇐⇒ ..
.
an,1 x1 + an,2 x2 + · · · + an,m xm = bn
The last matrix from the computation above is in reduced row echelon form, and we
deduce that
1 2 2
RREF A b = .
0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 93
The matrix RREF A b is the augmented matrix of the linear system below.
x1 + 2x2 = 2
0 = 0
The system is consistent, with one free variable (namely, x2 ). We read off the
solutions as follows.
x1 = −2s + 2
x2 = s, where s ∈ R.
Here is another way to write the general solution of the matrix-vector equation
Ax = b:
2 −2
x = +s , where s ∈ R.
0 1
Remark: We obtained this second form of the solution by separating the constant
part of x form the part with the parameter, and then factoring out the parameter,
as follows:
−2s + 2
x =
s
2 −2s
= +
0 s
2 −2
= +s , where s ∈ R.
0 1
Since the parameter s can take infinitely many values (because R is infinite), the
matrix-vector equation Ax = b has infinitely many solutions.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 94
n 2
−2
o
2
set +s | s ∈ R is obtained by shifting this line by the vector ,
0 1 0
2
i.e. by adding the vector to each point on the line (this vector is shown in
0
n 2
−2
o
purple in the picture below). The solution set +s | s ∈ R is the
0 1
red line in the picture below.
x2
−2
1
2
0
n 2 x1
−2 o
+s |s∈R
0 1
n −2 o
s |s∈R
1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 95
1 2 0 1 2
R3 →R3 +2R2
∼ 0 1 1 2 0
0 0 0 0 2
1 2 0 1 2
R3 →2R3
∼ 0 1 1 2 0
0 0 0 0 1
1 2 0 1 0
R1 →R1 +R3
∼ 0 1 1 2 0
0 0 0 0 1
1 0 1 0 0
R1 →R1 +R2
∼ 0 1 1 2 0 .
0 0 0 0 1
The last matrix from the computation above is in reduced row echelon form, and we
deduce that
1 0 1 0 0
RREF A b = 0 1 1 2 0 .
0 0 0 0 1
We see from RREF A b that the rightmost column of A b is a pivot
column; consequently, the matrix-vector equation Ax = b is inconsistent, i.e. the
solution set of the equation Ax = b is ∅. (The number of solutions of the matrix-
vector equation Ax = b is zero.)
Remark: In the solution of Example 1.5.2, we could in fact have stopped as soon as
we got the red matrix (despite the fact that this matrix is not in reduced row echelon
form). This is because the bottom row of the red matrix encodes the equation
0
= 2, which is has no solutions. Indeed, as soon as we obtain a row of the form
0 . . . 0 ■ , where ■ is a non-zero number, we can stop row reducing, and we
can deduce that the system has no solutions (because this row encodes the equation
0 = ■, and ■ is non-zero).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 96
The last matrix from the computation above is in reduced row echelon form, and we
deduce that
1 0 1
RREF A b = .
0 1 0
We now see that the matrix-vector equation Ax = b has a unique solution, namely
1
x = .
0
n 1 o
The solution set of the matrix-vector equation Ax = b is . (The number of
0
solutions of the matrix-vector equation Ax = b is one.)
Example 1.5.4. Solve the matrix-vector equation Ax = b, where
1 1 0 1 1
A = 1 0 1 0 and b = 0 ,
0 1 1 1 1
with entries understood to be in Z2 . How many solutions does the matrix-vector
equation Ax = b have?
Solution. The augmented matrix of the the
matrix-vector equation Ax = b is
11 0 1 1
A b = 1 0 1 0 0 .
01 1 1 1
We now row reduce in order to find RREF A b , as follows:
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 97
1 1 0 1 1
A b = 1 0 1 0 0
0 1 1 1 1
1 1 0 1 1
R2 →R2 +R1
∼ 0 1 1 1 1
0 1 1 1 1
1 1 0 1 1
R3 →R3 +R2
∼ 0 1 1 1 1
0 0 0 0 0
1 0 1 0 0
R1 →R1 +R2
∼ 0 1 1 1 1 .
0 0 0 0 0
The last matrix from the computation above is in reduced row echelon form, and we
deduce that
1 0 1 0 0
RREF A b = 0 1 1 1 1 .
0 0 0 0 0
We see from RREF A b that the rightmost column of A b is not a
pivot
column,
and so the matrix-vector equation Ax = b is consistent. The matrix
A b has two non-pivot columns to the left of the vertical dotted line, namely,
the third and fourth column. So, the third and fourth entry of the solution x of
Ax = b become arbitrary parameters. The general solution of the matrix-vector
equation Ax = b is the following:19
19
Normally, we do indeed
read off
the solutions of the matrix-vector equation Ax = b straight
from the matrix RREF A b . However, let us give a slightly
more detailed explanation of
how exactly we got our answer. The matrix RREF A b is the augmented matrix of the
linear system below.
x1 + x3 = 0
x2 + x3 + x4 = 1
0 = 0
The system is consistent, with two free variables (namely, x3 and x4 ). We read off its solution as
follows.
x1 = s
x2 = s + t + 1
x3 = s
x4 = t where s, t ∈ Z2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 98
s
s+t+1
x = , where s, t ∈ Z2 .
s
t
We can also write the general solution of the matrix-vector equation Ax = b as
follows:
0 1 0
1 1 1
x = 0 + s 1 + t 0 ,
where s, t ∈ Z2 .
0 0 1
Remark: We obtained this second form of the general solution by separating the
constant part from the parts associated with each parameter:
s 0 s 0
s+t+1 1 s t
x = = + +
s 0 s 0
t 0 0 t
0 1 0
1 1
+ t 1 ,
=
0 + s 1
0 where s, t ∈ Z2 .
0 0 1
There are two parameters (namely, s and t), and each of them can take two values
(because |Z2 |). So, the matrix-vector equation Ax = b has 22 = 4 solutions.20
So, the general solution of the matrix-vector equation Ax = b is
x1 s
x2 s+t+1
x = x3 =
, where s, t ∈ Z2 .
s
x4 t
20
Since there are only four solutions, we could easily list all of them:
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 99
0
1
for s = 0 and t = 0, we have the solution 0 ;
0
0
0
for s = 0 and t = 1, we have the solution 0 ;
1
1
0
for s = 1 and t = 0, we have the solution 1 ;
0
1
1
for s = 1 and t = 1, we have the solution 1 .
1
0 0 1 1
n 1 0 0 1 o
So, the solution set is
0 , 0 , 1 , 1 . However, we usually leave the final answer
0 1 0 1
in parametric form, rather than listing all possible solutions one by one.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 100
0 0 1 2
2 0 2 0
1 0 0 1
0 ,
b=
1 ,
c=
2 ,
d=
2 ,
e=
1 1 0 1
Solution. Set
2 1 1 1
0 0 1 2
A := a1 a2 a3 a4 =
1
.
2 1 0
0 0 1 2
0 0 1 2 1 1 0 1
A′ b′ c′ d′ e′
=: .
A′ b′ c′ d′ e′ , and consequently,
We now have that A b c d e ∼
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 101
A′ b′ ;
A b ∼
A c ∼ A′ c ′ ;
A d ∼ A′ d′ ;
A e ∼ A′ e′ .
(Indeed, the same sequence of′ elementary row operations that transforms the
matrix
′ c′ d′ e′
A b c d e into A b will transform matrices A b ,
A c , A d , and A e into matrices A b′ , A′ c′ , A′ d′ ,
′
and A′ e′ , respectively.)
From this point on, we deal with the vectors b, c, d, e separately.
b = x1 a1 + x2 a2 + x3 a3 + x4 a4 ,
0 0 0 0 0
We see that our equation Ax = b is consistent, and that the general solution is
x1 s + 2t + 2
x2 s
x = x3 =
, where s, t ∈ Z3 .
t+1
x4 t
However, we were asked to find just one particular solution, and not the general
solution. In principle, we could choose any values from Z3 for the parameters s and
t, but it is easiest to choose s = t = 0, which yields
x1 2
x2 0
x = x3 = 1 .
x4 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 102
(Both b = 2a1 + 0a2 + 1a3 + 0a4 and b = 2a1 + a3 are acceptable as a final answer,
though the second form is more common.) We note that our solution is not unique,
because we had parameters for which we chose particular values.
Remark: Here is a slightly different way to proceed. By looking at the matrix
′
A b , we see that the matrix-vector equation Ax = b is consistent. We do not
need the general solution, but only one possible solution. So, we cross out (or simply
′ ′
ignore) the non-pivot columns of A b to the left of the vertical dotted line,21
and we read off the (unique) solution that remains after we eliminated those columns.
Here, it is important to remember which xi corresponds to which column.
1 2 0 1 2
0 0 1 2 1
A′ b′
=
0
0 0 0 0
0 0 0 0 0
↑ ↑
x1 x3
We now read off x1 = 2 and x3 = 1, and we get b = 2a1 + a3 . Because we crossed out
some non-pivot columns (which correspond to arbitrary parameters), our solution is
not unique.
c = x1 a1 + x2 a2 + x3 a3 + x4 a4 ,
0 0 0 0 0
The rightmost column (the one to the right of the vertical dotted line) is a pivot
column, and it follows that the matrix-vector equation Ax = c is inconsistent.
Consequently, the vector c is not a linear combination of the vectors a1 , a2 , a3 , a4 ,
i.e. c ∈
/ Span(a1 , a2 , a3 , a4 ).
d = x1 a1 + x2 a2 + x3 a3 + x4 a4 ,
21
This has the effect of assigning the value 0 to free variables that correspond to the crossed out
non-pivot columns.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 103
0 0 0 0 1
The rightmost column (the one to the right of the vertical dotted line) is a pivot
column, and it follows that the matrix-vector equation Ax = d is inconsistent.
Consequently, the vector d is not a linear combination of the vectors a1 , a2 , a3 , a4 ,
i.e. d ∈
/ Span(a1 , a2 , a3 , a4 ).
Remark: The matrix A′ d′ is not in reduced row echelon form, but this does
not matter. The important point is that we have a row of the form 0 0 0 0 ■ ,
where ■ is non-zero. Since the equation 0 = ■ is inconsistent (whenever ■ is
non-zero), we see that our matrix-vector equation Ax = d is inconsistent, and
consequently, d ∈/ Span(a1 , a2 , a3 , a4 ).
0 0 0 0 0
We see that our equation Ax = e is consistent, and that the general solution is
x1 s + 2t + 1
x2 s
x = x3 =
, where s, t ∈ Z3 .
t+1
x4 t
We only need one solution, and so we set s = t = 0,22 which yields
x1 1
x2 0
x = x3 = 1 .
x4 0
22
We could choose other values for s and t (for example, s = 2 and t = 1), but it is simplest to
choose s = t = 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 104
1 4 10 2
2 7 3 1
2 12 8 2
3 ,
b=
10 ,
c=
11 ,
d=
4 ,
e=
1 −1 13 6
Solution. Set
1 0 −2 0
2 1 −1 0
A = a1 a2 a3 a4 =
2
.
2 2 1
1 4 10 2
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 105
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 106
The matrix RREF(A) has three pivot columns (equivalently: three pivot positions
or three non-zero rows), and so rank(A) = 3.
(b) In Example 1.3.10, we computed
1 0 0 2 1
0 1 0 0 2
RREF(B) =
0
.
0 1 0 0
0 0 0 0 0
The matrix RREF(B) has three pivot columns (equivalently: three pivot positions
or three non-zero rows), and so rank(B) = 3.
Solution#2. (a) In Example 1.3.9, we saw that the matrix A is row equivalent to
the following matrix in row echelon form:
2 3 0 11 −6 5
0 −2 −4 2 2 −2 .
0 0 0 0 1 2
This row echelon matrix has three pivot columns (equivalently: three pivot positions
or three non-zero rows), and so rank(A) = 3.
(b) In Example 1.3.10, we saw that the matrix B is row equivalent to the following
matrix in row echelon form:
1 0 2 2 1
0 1 2 0 2
0 0 1 0 0 .
0 0 0 0 0
This row echelon matrix has three pivot columns (equivalently: three pivot positions
or three non-zero rows), and so rank(B) = 3.
Proposition 1.6.2. Row equivalent matrices (with entries in some field) have the
same rank.
Proof. Fix row equivalent matrices A and B (with entries in some field). By the
definition of rank, rank(A) is equal to the number of pivot columns of A, which is
precisely the number of pivot columns of RREF(A). Similarly, rank(B) is equal to
the number of pivot columns of RREF(B). But since A and B are row equivalent,
Corollary 1.3.8 guarantees that RREF(A) = RREF(B). So, rank(A) = rank(B).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 107
Proposition 1.6.3. Let A be an n × m matrix (with entries in some field F). Then
rank(A) ≤ min{n, m}.23
Terminology: For a field F and a matrix A ∈ Fn×m (so, A has n rows and m
columns):
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 108
(c) if rank( A b ) = rank(A) < m, then the matrix-vector equation Ax = b has
more than one solution, and more precisely,
(c.1) if the field F is finite, then the matrix-vector equation Ax = b has exactly
|F|m−rank(A) many solutions,27
(c.2) if the field F is infinite, then the matrix-vector equation Ax = b has infinitely
many solutions.
28
Proof. First, set U c = RREF A b , so that RREF(A) = U . Next,
let (⋆) be the linear system whose augmented matrix is A b . Obviously, the
linear system (⋆) and the matrix-vector equation Ax = b have the same number of
solutions, and we can move back and forth between the linear system (⋆) and the
matrix-vector equations Ax = b in a naturalway.
Let us first prove that rank(A) ≤ rank( A b ) ≤ rank(A) + 1. The pivot
columns of U c are precisely the pivot columns of U , plus possibly the rightmost
column (namely,
the column c to the right of the vertical
dotted line). If the rightmost
column of U c is a pivot column, then rank( A b ) = rank(A) + 1, and
otherwise, rank( A b ) = rank(A). This proves that
rank(A) ≤ rank( A b ) ≤ rank(A) + 1.
We now prove (a). Suppose that rank(A) ̸
= rank( A b ). By what we just
showed, this implies that rank( A b ) = rank(A) + 1 and that the rightmost
column of U c = RREF A b is a pivot column. It follows that the
linear system (⋆) is inconsistent, and consequently, that the matrix-vector equation
Ax = b is inconsistent. This proves (a).
It remains
to prove
(b) and (c), which we prove simultaneously. Assume
that rank( A b ) = rank(A). Then the rightmost column of U c =
is not a pivot column,29 and it follows that the system (⋆) is
RREF A b
consistent. Further, exactly rank(A) many columns of U are pivot columns, and
consequently, the system (⋆) has precisely rank(A) many basic variables. The re-
maining m − rank(A) many variables of (⋆) are free variables. If rank(A) = m, it
follows that (⋆) has no free variables, and we deduce that the linear system (⋆) has a
unique solution, and consequently, that the matrix-vector equation Ax = b has a
unique solution. This proves (b). We may now assume that rank(A) < m. So, the
linear system (⋆) has at least one free variable, and therefore, it has more than one
solution. Each free variable can take any value from the field F, and the values of
the basic variables are fully determined by the values of the free variables. So, if F
is infinite, then the number of solutions of (⋆) is infinite,30 and if F is finite, then
27
As usual, |F| is the cardinality of F, i.e. the number of elements of F.
28
This is “obvious,” but it also follows from Proposition 1.3.21(b).
29
This follows from the discussion above (the second paragraph of the proof).
30
This is because each free variable can take infinitely many values, and there is at least one free
variable.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 109
(⋆) has precisely |F|m−rank(A) many solutions.31 Since the number of solutions of
the linear system (⋆) is the same as the number of solutions of the matrix-vector
equation Ax = b, this proves (c).
Matrices of full column rank. In a matrix of full column rank, all columns are
pivot columns. So, the reduced row echelon form of such a matrix is of the form
1 0 0 ... 0 0
0 1 0 ... 0 0
0 0 1 ... 0 0
.. .. .. . . .. ..
. . . . . .
0 0 0 ... 1 0
0 0 0 ... 0 1 ,
0 0 0 ... 0 0
0 0 0 ... 0 0
. . . .
.. .. .. . . ... ...
0 0 0 ... 0 0
where the zero rows on the bottom are optional. More precisely, if we have an n × m
matrix of full column rank,32 then the reduced row echelon form of that matrix
is obtained from the identity matrix Im by adding n − m many zero rows to the
bottom.
A homogeneous matrix-vector equation is a matrix-vector equation of the form
Ax = 0. Note that such an equation is always consistent: indeed, x = 0 is a solution,
called the trivial solution.
Corollary 1.6.5. Let F be a field, and let A ∈ Fn×m . Then the following are
equivalent:
(a) rank(A) = m (i.e. A has full column rank);
31
This is because each free variable can take |F| many different values, and there are precisely
m − rank(A) many free variables.
32
Note that this means that rank(A) = m ≤ n. Indeed, since the n × m matrix A has full
column rank, we have that rank(A) = m. On the other hand, by Proposition 1.6.3, we have that
rank(A) ≤ n. So, rank(A) = m ≤ n.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 110
(b) the homogeneous matrix-vector equation Ax = 0 has only the trivial solution (i.e.
the solution x = 0);
(c) there exists some vector b ∈ Fn such that the matrix-vector equation Ax = b
has a unique solution;
(d) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has at most one
solution.
(a)
~ =⇒ (d)
w
w
(c) ⇐= (b)
In fact, the implications “(d) =⇒ (b)” and “(b) =⇒ (c)” are obvious. It remains to
prove the implications “(c) =⇒ (a)” and “(a) =⇒ (d).”
We first prove the implication “(c) =⇒ (a).” Assume that (c) is true, and fix a
vector b ∈ Fn such that the matrix-vector equation Ax = b has a unique solution. In
particular, the matrix-vector
equation
Ax = b is consistent, and so Theorem 1.6.4(a)
guarantees that rank( A b ) = rank(A). Moreover, by Proposition 1.6.3 and
Theorem 1.6.4(c), we have that rank(A) = m.33 Thus, (a) holds.
It remains to prove the implication “(a) =⇒ (d).” Assume that (a) is true,
i.e. that rank(A) = m, and fix a vector b ∈ Fn . We must show that
the matrix-
vector equation Ax = b has at most one solution. If rank( A b ) ̸= rank(A),
then Theorem 1.6.4(a) guarantees that the matrix-vector
equation Ax = b has no
solutions. On the other hand, if rank( A b ) = rank(A), then since rank(A) = m,
Theorem 1.6.4(b) guarantees that the matrix-vector equation Ax = b has a unique
solution. In either case, the matrix-vector equation Ax = b has at most one solution,
i.e. (d) holds.
Matrices of full row rank. Note that matrices of full row rank are precisely those
matrices whose reduced row echelon form has no zero rows.
Corollary 1.6.6. Let F be a field, and let A ∈ Fn×m . Then the following are
equivalent:
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 111
Proof. Suppose first that (a) holds. We must prove (b). Fix any b ∈ Fn . Then
n = rank(A) by (a)
≤ rank( A b ) by Theorem 1.6.4
by Proposition
1.6.3,
≤ n since A b is an
n × (m + 1) matrix,
and it follows that rank( A b ) = rank(A) = n. But now Theorem 1.6.4 guaran-
tees that the matrix-vector equation Ax = b is consistent. Thus, (b) holds.
Suppose now that (a) is false; we must show that (b) is false, i.e. that there
exists some b ∈ Fn such that the matrix-vector equation Ax = b is inconsistent.
Since A is an n × m matrix and rank(A) ̸= n, Proposition 1.6.3 guarantees that
rank(A) ≤ n − 1. Now, set U := RREF(A), and let R1 , . . . , Rk be some sequence of
elementary row operations that transforms A into U , and for each i ∈ {1, . . . , k},
let Ri′ be the elementary row operation that reverses (undoes) the elementary row
operation Ri .34 Since U has n rows and r := rank(A) ≤ n − 1, we see that the (r + 1)-
th row of U is a zero row. Then the rightmost column of the matrix U er+1
is a pivot column,35 and consequently, the matrix-vector equation U x = er+1 is
inconsistent. Now, we perform the elementary row operations Rk′ , . . . , R1′ on the
A b for some vector b ∈ Fn .
matrix U er+1 , and we obtain the matrix
Since matrices U er+1 and A b are row equivalent, the matrix-vector
equations U x = er+1 and Ax = b are equivalent. Since the matrix-vector equation
U x = er+1 is inconsistent, it follows that the matrix-vector equation Ax = b is also
inconsistent. Thus, (b) is false.
Square matrices of full rank. We now consider the special case of square matrices
of full rank. We begin with a simple proposition.
Proposition 1.6.7. Let F be a field. Then for all square matrices A ∈ Fn×n , we
have that rank(A) = n if and only if RREF(A) = In . In particular, rank(In ) = n.
Proof. In is a matrix in reduced row echelon form, and it has n pivot columns; so,
rank(In ) = n. Moreover, it is clear that In is the only reduced row echelon form
matrix in Fn×n of rank n.
Now, fix any matrix A ∈ Fn×n . By Proposition 1.6.2, we have that rank(A) =
rank RREF(A) . Since In is the only reduced row echelon form matrix in Fn×n of
rank n, it follows that rank(A) = n if and only if RREF(A) = In .
34
See subsection 1.3.2.
35
Here, er+1 is the (r + 1)-th standard basis vector of Fn , i.e. the vector whose (r + 1)-th entry is
1, and all of whose other entries are 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 112
Proposition 1.6.7 and Corollaries 1.6.5 and 1.6.6 readily yield the following
theorem.
Theorem 1.6.8. Let F be a field, and let A ∈ Fn×n be a square matrix. Then the
following are equivalent:
(b) RREF(A) = In ;
(c) the homogeneous matrix-vector equation Ax = 0 has only the trivial solution (i.e.
the solution x = 0);
(d) there exists some vector b ∈ Fn such that the matrix-vector equation Ax = b
has a unique solution;
(e) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has a unique solution;
Proof. By Proposition 1.6.7, (a) and (b) are equivalent, and by Corollary 1.6.6, (a)
and (g) are equivalent. Further, Corollary 1.6.5 guarantees that (a), (c), (d), and (f)
are equivalent. Obviously, (e) implies (f). We complete the proof by showing that (a)
implies (e). Assume that (a) holds, and fix a vector b ∈ Fn . Since A is a square
matrix, (a) guarantees that A has both full column rank and full row rank. Since
A has full column rank, Corollary 1.6.5 guarantees that Ax = b has at most one
solution. On the other hand, since A has full row rank, Corollary 1.6.6 guarantees
that Ax = b is consistent, i.e. has at least one solution. It now follows that the
matrix-vector equation Ax = b has exactly one solution, i.e. (e) holds.
cA := cai,j .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 113
Similarly, we multiply a matrix by a scalar (on the left) by multiplying each entry of
the matrix by that scalar, i.e.
c ai,j n×m = cai,j n×m .
Notation: By convention, for a matrix A and scalar c, we write cA, but we do not
write Ac. In other words, by convention, we have “scalar times matrix,” but not
“matrix times scalar.”
(n × m) · (m × p) = (n × p).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 114
1
1 2 −1 −2 1 2 −1
Ab1 = = 1 + (−2) +0
0 −3 1 0 −3 1
0
1 −4 0 −3
= + + =
0 6 0 6
and
1
1 2 −1 1 1 2 −1
Ab2 = = 1 +1 + (−1)
0 −3 1 0 −3 1
−1
1 2 1 4
= + + = ,
0 −3 −1 −4
which yields
−3 4
AB = Ab1 Ab2 = .
6 −4
Proposition 1.7.2. Let F be a field, let m, n, p be positive integers, and let A ∈ Fn×m
be a matrix. Then all the following hold:
(a) In A = AIm = A;
Proof. Parts (b) and (c) readily follow from the appropriate
definitions (the
details
are left as an easy exercise). Let us prove (a). Set A = a1 . . . am . To show
that In A = A, we compute:
In A = In a1 . . . am
by the definition of
= In a1 . . . In am
matrix multiplication
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 115
= a1 . . . am by Proposition 1.4.6
= A.
AIm = A em . . . em
1 m
by the definition of
Aem . . . Aem
= 1 m
matrix multiplication
= a1 . . . am by Proposition 1.4.5
= A.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 116
a1,1 v1 + · · · + a1,k vk + · · · + a1,m vm
..
.
= ai,1 v1 + · · · + ai,k vk + · · · + ai,m vm
..
.
an,1 v1 + · · · + an,k vk + · · · + an,m vm
m
P
a1,k vk
k=1
..
m .
P
= k=1 ai,k vk
.
..
m .
P
an,k vk
k=1
m
P
So, the i-th entry of the vector Av is ai,k vk .
k=1
Let us now consider the product of two matrices. Suppose we are
given matrices
n×m m×p
A∈F and B ∈ F , and set A = ai,j n×m and B = bi,j m×p . The matrix
AB belongs to F n×p . We would like to compute the i, j-th entry of the matrix AB
in terms of the entries of A and B. The i, j-th entry of AB is precisely the i-th entry
of the j-th column of AB, and by the definition
of matrix product, the j-th column
b1,j
of AB is the vector Abj , where bj = ... is the j-th column of B. Using the
bm,j
formula for the matrix-vector product that we obtained above, we see that the i-th
m
P
entry of the vector Abj is ai,k bk,j . So, the i, j-th entry of the n × p matrix AB is
k=1
m
P
ai,k bk,j .
k=1
Here is a way to visualize the product of two matrices. To obtain the i, j-th entry
of the matrix AB, we focus on the i-th row of A and j-th column of B. We then
take the sum of the products of the corresponding entries of this row and column,
and we obtain the i, j-th entry of AB. Schematically, this is represented below. The
matrix A is on the bottom-left, the matrix B is on the top-right, and the matrix AB
is on the bottom-right (squeezed between A and B). The i-th row of A is in red, the
m
P
j-th column of B is in blue, and the i, j-th entry of AB is ai,k bk,j .
k=1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 117
b1,1 . . . b1,j ... b1,p
.. .. .. .. ..
.
. . . .
bk,1 . . . bk,j ... bk,p
.. .. .. .. ..
. . . . .
b
m,1 . . . bm,j . . . bm,p
a1,1 . . . a1,k . . . a1,m
.. .. .. .. ..
.
. . . .
m
P
ai,1 . . . ai,k . . . ai,m
ai,k bk,j
.. .. .. .. .. k=1
. . . . .
an,1 . . . an,k . . . an,m
where in each of the three matrices, the expression between the square brackets is
the general form of the i, j-th entry (i.e. the entry in the i-th row and j-th column)
of the matrix in question.
Solution. We compute as shown below (the rows of A are color coded, as are the
columns of B).
1 0 1
1 1 0
1 0 1·1+0·1 1·0+0·1 1·1+0·0
1 1 1·1+1·1 1·0+1·1 1·1+1·0
By performing arithmetic (in Z2 ) on the entries of the matrix that we obtained, we
get:
1 0 1
AB = .
0 1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 118
Proof. Parts (a)-(d) readily follow from the definition of the relevant operations and
from the properties of addition and multiplication in the field F (listed in section 1.1).
We prove (a) to illustrate the principle; the proof of (b)-(d) is left as an exercise. Fix
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 119
by the distributive
property of
= αai,j + βai,j n×m multiplication over
addition in F
by the definition of
= αai,j n×m
+ βai,j n×m matrix addition
= αA + βA.
(A + B)C = ai,j n×m
+ bi,j n×m
ci,j m×p
= ai,j + bi,j n×m
ci,j m×p
m
P
= (ai,k + bi,k )ck,j
k=1 n×p
m m
P
(∗) P
= ai,k ck,j + bi,k ck,j
k=1 k=1 n×p
m m
P P
= ai,k ck,j + bi,k ck,j
k=1 n×p k=1 n×p
(∗∗)
= AC + BC,
where (*) follows from the fact that addition distributes over multiplication in the
field F, (**) follows from the formula for matrix multiplication that we obtained in
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 120
subsection 1.7.2, and the rest follows from the appropriate definitions. This proves
(e). The proof of (f) is similar.
We now prove (g). Fix matrices A = ai,j n ×n in Fn1 ×n2 , B = bi,j n ×n
1 2 2 3
in Fn2 ×n3 , and C = ci,j n ×n in Fn3 ×n4 . Clearly, both (AB)C and A(BC)
3 4
are matrices in Fn1 ×n4 . To prove that these two matrices are equal, it suffices to
prove that their corresponding entries are equal. So, fix indices i ∈ {1, . . . , n1 } and
j ∈ {1, . . . , n4 }. We must show that the i, j-th entry of (AB)C is equal to the i, j-th
entry of A(BC).
We first compute n2 the i, j-th n2
entry of (AB)C. The i-th
n2
row of the n1 × n3
P P P
matrix AB is ai,k bk,1 ai,k bk,2 . . . ai,k bk,n3 . The j-th column of
k=1 k=1 k=1
c1,j
c2,j
the n3 × n4 matrix C is . . So, the i, j-th entry of the n1 × n4 matrix (AB)C
. .
cn3 ,j
n3 P
P n2
is ( ai,k bk,ℓ )cℓ,j .
ℓ=1 k=1
We now compute of A(BC). The i-th row of the n1 × n2
the i, j-th entry
matrix A is ai,1 ai,2 . . . ai,n2 . The j-th column of the n2 × n4 matrix
n3
P
b1,k ck,j
k=1n3
P
b2,k ck,j
BC is k=1 . So, the i, j-th entry of the n1 × n4 matrix (AB)C is
..
n3 .
P
bn2 ,k ck,j
k=1
Pn2 n3
P
ai,ℓ ( bℓ,k ck,j ) .
ℓ=1 k=1
n3 P
P n2 Pn2 n3
P
It now remains to show that ( ai,k bk,ℓ )cℓ,j = ai,ℓ ( bℓ,k ck,j ) . For
ℓ=1 k=1 ℓ=1 k=1
this, we compute:
by the distributive
n3 P
P n2 n3 P
P n2 property of
( ai,k bk,ℓ )cℓ,j = ai,k bk,ℓ cℓ,j
ℓ=1 k=1 ℓ=1 k=1 multiplication over
addition in F
n2 P
P n3 by swapping the
= ai,k bk,ℓ cℓ,j P
k=1 ℓ=1 two ’s
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 121
by the distributive
n2
P n3
P property of
= ai,k ( bk,ℓ cℓ,j )
k=1 ℓ=1 multiplication over
addition in F
by swapping the
n2
P n3
P names of the
= ai,ℓ ( bℓ,k ck,j )
ℓ=1 k=1 dummy variables
k and ℓ,
and we obtain the equality that we needed. Thus, (AB)C = A(BC). This proves (g).
The proof of (h) and (i) is left as an exercise.
Warning: Matrix multiplication is not commutative, that is, for matrices A and B,
AB Z
= BA.
In fact, it is possible that one of AB and BA is defined, while the other one is not.
(For instance, if A ∈ F2×3 and B ∈ F3×4 , where F is some field, then AB is defined,
but BA is not.) Moreover, it is possible that both AB and BA are defined, but are
not of the same size. (For instance, if A ∈ F2×3 and B ∈ F3×2 , where F is some field,
then AB ∈ F2×2 and BA ∈ F3×3 .) Finally, it is possible that AB and BA are both
defined,
and are of the same
size,
but AB = ̸ BA. Consider, for example, matrices
1 1 1 0
A= and B = , with the 1’s and 0’s understood to be in some
1 1 0 0
1 0 1 1
field F. Then AB = , but BA = , and we see that AB ̸= BA.
1 0 0 0
Recall that a vector is simply a matrix with one column. So, the following
corollary is a special case of Theorem 1.7.5.
Corollary 1.7.6. For any matrices A, B, vectors u, v, and w, and scalars α and
β, the following hold (provided the matrices and vectors are of compatible size for
the operation in question, and the entries of our matrices, the entries of our vectors,
and our scalars all belong to the same field F):
(a) (α + β)u = αu + βu; (f ) A(u + v) = Au + Av;
(b) (αβ)u = α(βu);
(g) (AB)u = A(Bu);
(c) u + v = v + u;
(h) (αA)u = α(Au);
(d) (u + v) + w = u + (v + w);
(i) A(αu) = α(Au).
(e) (A + B)u = Au + Bu;
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 122
Am = A
| .{z
. . A},
m
where we did not have to indicate parentheses since, by Theorem 1.7.5(g), matrix
multiplication is associative.
♢ ♢ ♢ ♢
1 4
1 2 3
For example, if A = , then AT = 2 5 .
4 5 6
3 6
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 123
Proposition 1.8.1. For any matrices A and B, and any scalar α, the following
hold (provided the matrices are of compatible size for the operation in question, and
the entries of our matrices and our scalar belong to the same field F):
n×m
Proof. Parts (a), (b), and (c)are obvious.
m×p
Let us prove
Fix matrices A ∈ F n×p
(d).
and B ∈ F , and set A = ai,j n×m and B = bi,j m×p . Clearly, AB ∈ F ,
and so (AB)T ∈ Fp×n . On the other hand, we have that B T ∈ Fp×m and AT ∈ Fm×n ,
and so B T AT ∈ Fp×n . So, both (AB)T and B T AT are p × n matrices with entries
in F. It remains to show that the corresponding entries of (AB)T and B T AT are
the same. Fix indices i ∈ {1, . . . , p} and j ∈ {1, . . . , n}; we will show that the i, j-th
entry of (AB)T is equal to the i, j-th entry of B T AT .
By the definition of matrix transpose, the i, j-th entry of (AB)T is equal to the
m
P
j, i-th entry of AB, which is equal to aj,k bk,i .
k=1
We now compute the i, j-th entry of B T AT . We observe that i-th row of the
matrix B T is b1,i b2,i . . . bm,i ,36 whereas the j-th column of the matrix
T 37
AT is aj,1 aj,2 . . . aj,m So, the i, j-th entry of the matrix B T AT is
.
m
P m
P
b1,i aj,1 + b2,i aj,2 + · · · + bm,i aj,m = bk,i aj,k = aj,k bk,i .
k=1 k=1
We have now shown that the corresponding entries of the p × n matrices (AB)T
and B T AT are the same, and we deduce that (AB)T = B T AT . This proves (d).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 124
rn
be a matrix in Fn×m .38 Then for all i ∈ {1, . . . , n}, we have that
eTi A = ri ,
Proof. First of all, we note that AT = rT1 . . . rTn , i.e. vectors rT1 , . . . , rTn are the
= ri by Proposition 1.8.1,
with entries understood to be in R. Solve the matrix equation AX = B.39 How many
solutions does the equation AX = B have?
38
So, r1 , . . . , rn are the rows of A, appearing in that order from top to bottom in A.
39
Note that solutions of the matrix equation AX = B are 4 × 2 real matrices.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 125
Solution #1. Set X = x1 x2 and B = b1 b2 . Then AX = Ax1 Ax2 ,
and so the equation AX = B is equivalent to
Ax1 Ax2 = b1 b2 .
So, we need to solve two matrix-vector equations, namely Ax1 = b1 and Ax2 = b2 .
We solve these two equations one by one.
First,
we solve
the matrix-vector equation Ax1 = b1 . We form the augmented
matrix A b1 and we row reduce to obtain its reduced row echelon form:
31 35
1 2 3 4 5 1 0 0 4 4
A b1 = −1 3 1 −2 −3 ∼ 0 1 0 3 3 .
13 13
0 1 0 3 3 0 0 1 −4 −4
− 31
4 t
−3t
x2 = , where t ∈ R.
13
t+1
4
t
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 126
We now read off the general solution for X = x1 x2 :
− 31 35
− 31
4 s+ 4 4 t
−3s + 3 −3t
X = , where s, t ∈ R.
13 13 13
4 s− 4 t + 1
4
s t
There are two parameters (namely, s and t), and they can each take infinitely many
values (because R is infinite). So, the equation AX = B has infinitely many solutions.
Remark: Note that the parameters (namely, s and t) from the solution above are
different for different columns! This is because the equations Ax1 = b1 and Ax2 = b2
are solved independently, and so the parameter that appears in x1 is independent of
the one that appears in x2 .
After row reducing, we obtain the following matrix (the columns to the right of the
vertical dotted line are color coded for easier reference):
31 35
1 0 0 4 4 0
RREF A B = 0 1 0 3 3 0 .
13 13
0 0 1 −4 −4 1
We now read off the columns of X one by one. We read off the first column of X by
reading off the solutions of the matrix-vector equation encoded by the matrix obtained
by taking the submatrix to the left of the vertical dotted line, plus the first column
40
Since B has two columns, this translated into two matrix-vector equations. In general, if B has
m columns, we get m matrix-vector equations.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 127
41
to the right of the vertical dotted line (i.e. the red column) of RREF A B .
We read off the second column of X by reading off the solutions of the matrix-vector
equation encoded by the matrix obtained by taking the submatrix to the left of the
vertical dotted line, plus the second
column to the right of the vertical dotted line
42
(i.e. the blue column) of RREF A B . The solutions are as follows:43
− 31 35
− 31
4 s+ 4 4 t
−3s + 3 −3t
X = , where s, t ∈ R.
13 13 13
4 s− 4 4 t+1
s t
There are two parameters (namely, s and t), and they can each take infinitely
many values (because R is infinite). So, the equation AX = B has infinitely many
solutions.
where at least one of the ∗’s (to the right of the vertical dotted line) is non-zero.
41
This is the matrix in question:
31 35
1 0 0 4 4
0 1 0 3 3 .
0 0 1 − 13
4
− 13
4
42
This is the matrix in question:
31
1 0 0 4
0
0 1 0 3 0 .
0 0 1 − 13
4
1
43
Remember to use different parameters for different columns!
44
Note that solutions of the matrix equation AX = B are m × p matrices.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 128
with entries understood to be in R. Solve the matrix equation AX = B.47 How many
solutions does the equation AX = B have?
Solution. We first form the matrix
1 1 1 4 3 1 3
1 1 1 4 3 1 3
A B = .
1 2 −1 2 1 1 3
1 2 −1 2 1 2 3
After row reducing, we obtain
1 0 3 6 5 0 3
0 1 −2 −2 −2 0 0
RREF A B = 0 0
.
0 0 0 1 0
0 0 0 0 0 0 0
By considering the third row of RREF A B , we see that the matrix equation
AX = B is inconsistent, i.e. it has no solutions.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 129
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 130
with entries understood to be in R. Solve the matrix equation XA = B.49 How many
solutions does the equation XA = B have?
Using the matrix above, we can solve for X T . There is only one solution, namely:
T 2 1 2
X = .
1 1 0
48
We are using Proposition 1.8.1(d).
49
Note that solutions of the matrix equation XA = B are 3 × 2 real matrices.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 131
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 132
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 133
Proof. This follows from the definition of a linear function via an easy induction
on k. The details are left as an exercise.
Example 1.10.2. Determine whether the following functions are linear (and prove
your answer):
for all x1 , x2 , x3 ∈ R.
for all x1 , x2 ∈ Z2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 134
for all x1 , x2 , x3 ∈ Z3 .
Remark: To show that a function is linear, we must show that it satisfies both
axioms from the definition of a linear function; in particular, axiom 1 must hold for
all vectors u and v, and axiom 2 must hold for all vectors u and scalars α. On
the other hand, to show that a function is not linear, it is enough to show that
it fails to satisfy at least one of the axioms 1 and 2 from the definition of a linear
function. To show that a function does not satisfy axiom 1, it is enough to exhibit
one particular pair of vectors u and v for which that axiom does not hold.
Similarly, to show that a function does not satisfy axiom 2, it is enough to exhibit
one particular vector u and one particular scalar α for which axiom 2 fails.
Solution of Example 1.10.2. (a) The function f is linear. We prove this by verifying
the axioms of a linearfunction
for the function
f , as follows.
u1 v1
1. Fix vectors u = u2 and v = v2 in R3 . We must show that f (u + v) =
u3 v3
f (u) + f (v). For this, we compute:
u1 v1 u1 + v1
f (u + v) = f u2 + v2 = f u2 + v2
u3 v3 u3 + v3
(∗) (u1 + v1 ) − (u2 + v2 ) + (u3 + v3 )
=
(u1 + v1 ) + (u2 + v2 )
(u1 − u2 + u3 ) + (v1 − v2 + v3 )
=
(u1 + u2 ) + (v1 + v2 )
u1 − u2 + u3 v1 − v2 + v3
= +
u1 + u2 v1 + v2
u1 v1
(∗∗)
= f u2 + f v2
u3 v3
= f (u) + f (v),
where both (*) and (**) follow from the definition of f .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 135
u1
2. Fix a vector u = u2 in R3 and a scalar α ∈ R. We must show that
u3
f (αu) = αf (u). For this, we compute
u1 αu1
f (αu) = f α u2 = f αu2
u3 αu3
(∗) αu1 − αu2 + αu3
=
αu1 + αu2
α(u1 − u2 + u3 )
=
α(u1 + u2 )
u1 − u2 + u3
= α
u1 + u2
u1
(∗∗)
= αf u2
u3
= αf (u),
where both (*) and (**) follow from the definition of f .
We have now shown that f satisfies both axioms from the definition of a linear
function. So, f is linear, as we had claimed.
(b) The function g is not linear because it does not satisfy axiom 1 of the
definition 52 To see this, we consider, for example, the vectors
of a linear function.
1 1
u= and v = in Z22 , and we observe that
1 1
0
1
1
0
0
g(u + v) = g + = g =
0 ,
1 1 0
1
whereas
52
In fact, g also fails to satisfy axiom 2 (details?). However, to show that g is not linear, it is
enough to show that it fails to satisfy at least one of the two axioms.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 136
1 1 0
1 1 0 0 0
g(u) + g(v) = g +g = + = .
1 1 1 1 0
1 1 0
As we can see, g(u + v) ̸= g(u) + g(v), and we deduce that g is not linear.
(c) The function h is not linear because it does not satisfy axiom 2 of the
definition
of a linear function. To see this, we consider, for example, the vector
1
u = 2 in Z33 and the scalar α = 2 in Z3 , and we observe that
0
1 2 2+1 0
h(αu) = h 2 2 = h 1 = = ;
2·1 2
0 0
1
1+2
0 0
αh(u) = 2h 2 =2 =2 = .
1·2 2 1
0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 137
L := b + Span(a) = {b + αa | α ∈ R},
where a ̸= 0 and b are fixed vectors in Rm (this is illustrated below for the special
case of R2 ).
x2
L = b+Span(a)
Span(a)
b
a
x1
where both (*) and (**) follow from the linearity of f , but in (*) we used axiom 1
from the definition of a linear function, and in (**) we used axiom 2. So, the image
of our line L under f , denoted by f [L], is
f [L] = {f (b) + αf (a) | α ∈ R} = f (b) + Span f (a) .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 138
We note, however, that not all functions f : Rm → Rn that map lines to lines (or
points) are linear. An obvious example might be a function f : Rn → Rn given by
f (x) = x + b for all x ∈ Rn , where b is a fixed non-zero vector in Rn . This function
is not linear because f (0) ̸= 0, and we know (by Proposition 1.10.3) that all linear
functions map 0 to 0. However, even if a function f : Rm → Rn maps lines to lines
(or points) and maps 0 to 0, it might still fail to be linear. For example, consider
the function g : R2 → R2 given by
x 3
1 x1
g = for all x1 , x2 ∈ R.
x2 0
This function is not linear,55 although it does map all lines onto either lines or points,
and it does map 0 to 0. In particular, g maps any non-vertical line in R2 onto
the x1 -axis, and it maps any vertical line onto a one-point set, as illustrated in the
picture below.
x2 x2
x1 x31
7→
x2 0
a3
0
a x1 x1
and so g does not satisfy axiom 2 from the definition of a linear function, and it follows that g is
not linear.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 139
So, f is linear.
Mappings of the form x 7→ Ax, where A is some matrix, are sometimes called
matrix transformations. By Proposition 1.10.4, all matrix transformations are linear.
Let us try to describe matrix
transformations in a bit more detail. Suppose we are
given a matrix A = ai,j n×m in F n×m (where F is some field), and define the
function f : Fm → Fn by setting f (x) = Ax for all x ∈ Fm . But now for all vectors
T
in Fm , we have the following:
x = x1 . . . xm
a1,1 a1,2 . . . a1,m x1
a2,1 a2,2 . . . a2,m x2
f (x) = Ax =
.. .. .. .. ..
. . . . .
an,1 an,2 . . . an,m xm
a1,1 x1 + a1,2 x2 + · · · + a1,m xm
a2,1 x1 + a2,2 x2 + · · · + a2,m xm
= .
..
.
an,1 x1 + an,2 x2 + · · · + an,m xm
Theorem 1.10.5. Let F be a field, and let a1 , . . . , am be any vectors in Fn . Then there
exists a unique linear function f : Fm → Fn that satisfies f (e1 ) = a1 , . . . , f (em ) =
am , where e1 , . . . , em are the standard basis vectors of Fm . Moreover, this linear
function f is given by f (x) = Ax for all x ∈ Fm , where A = a1 . . . am .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 140
(∗)
= x1 f (e1 ) + · · · + xm f (em )
(∗∗)
= x1 a1 + · · · + xm am
x1
(∗∗∗) .
= a1 . . . am ..
xm
= Ax,
where (*) follows from the linearity of f (and more precisely, from Proposition 1.10.1),
(**) follows from the fact that f (e1 ) = a1 , . . . , f (em ) = am , and (***) follows from
the definition of matrix-vector multiplication.
Remark: Theorem 1.10.5 essentially states that we can fully determine a linear
function f : Fm → Fn (where F is a field) by simply specifying what the standard
basis vectors of Fm get mapped to. Moreover, we can choose what the standard
basis vectors get mapped to arbitrarily (i.e. we can map them to any vectors of Fn
that we like).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 141
Then by Theorem 1.10.5, we have that f (x) = Ax for all x ∈ Fm .56 This proves
existence.
Uniqueness. Let B = b1 . . . bm be any matrix in Fn×m such that f (x) = Bx
Example 1.10.7. Find the standard matrix of the linear function f : R3 → R2 given
by
x1
x1 − x2 + x3
f x2 =
x1 + x2
x3
for all x1 , x2 , x3 ∈ R. (The fact that f is linear was proven in the solution of
Example 1.10.2(a).)
x1
Remark: Note that for all vectors x = x2 in R3 , we really do have
x3
x1
1 −1 1 x2 (∗) x1 − x2 + x3
Ax = = = f (x),
1 1 0 x1 + x2
x3
For any set X, the identity function on X is the function IdX : X → X given by
IdX (x) = x for all x ∈ X. The following proposition is obvious, but useful to keep in
mind.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 142
Proof. Obviously, the identity function IdFn satisfies the two axioms from the defini-
tion of a linear function, and by Theorem 1.10.6, its standard matrix is
IdFn (e1 ) . . . IdFn (en ) = e1 . . . en = In .
where (*) follows from the definition of the identity function, and (**) follows from
Proposition 1.4.6. So, IdFn is a matrix transformation and is therefore linear (by
Proposition 1.10.4), and its standard matrix is In .
Example 1.10.9. Prove that there exists a unique linear function f : Z32 → Z52 that
satisfies
T T
f 1 0 1 = 1 1 0 0 1 ,
1 1
57
Indeed, if f : R2 → R2 is a linear function that satisfies f = , then it also satisfies
0 1
2 1 (∗)
1
1
2
f = f 2 = 2f = 2 = ,
0 0 0 1 2
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 143
T T
f
1 1 1 = 1 1 1 1 1 ,
T T
f
0 1 1 = 1 1 1 1 1 ,
We need to prove that there exists a unique linear function f : Z32 → Z52 that satisfies
f (bi ) = ci for all i ∈ {1, 2, 3}. This is equivalent to proving that there exists a unique
matrix A ∈ Z5×3 2 (the standard matrix of f ) such that Abi = ci for all i ∈ {1, 2, 3}.
So, we are looking for the matrix A ∈ Z5×3 2 that satisfies
Ab1 = c1 , Ab2 = c2 , Ab3 = c3 .
This is equivalent to
A b1 b2 b3 = c1 c2 c3 ,
| {z } | {z }
=:B =:C
in which the matrix A is the unknown (and matrices B and C are known). So, we
proceed as in subsection 1.9.2. We take the transpose of both sides of the equation
above to obtain B T AT = C T , we form the matrix
T
b1 cT1
T 1 0 1 1 1 0 0 1
CT = bT2 cT2 = 1 1 1 1 1 1 1 1 ,
B
bT3 cT3 0 1 1 1 1 1 1 1
and we row reduce to obtain
1 0 0 0 0 0 0 0
RREF BT CT = 0 1 0 0 0 1 1 0 .
0 0 1 1 1 0 0 1
We now see that the equation B T AT = C T has a unique solution for AT , namely,
0 0 0 0 0
AT = 0 0 1 1 0 .
1 1 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 144
We have now shown that there exists a unique linear function f : Z32 → Z53 that
satisfies f (bi ) = ci for all i ∈ {1, 2, 3}, and that its standard matrix is the matrix A
above. (The existence and uniqueness of f follow from the existence and uniqueness
of A.)
Remark: Now that we have computed the standard matrix A of f , we can easily
T
in Z32 , we
compute a formula for f , as follows. For all vectors x = x1 x2 x3
have:
0 0 1 x3
0 0 1 x1 x3
x2 (∗)
f (x) = Ax = 0 1 0 = x2 ,
0 1 0 x3 x2
0 0 1 x3
where (*) was obtained via standard matrix-vector multiplication.
Example 1.10.10. Determine if there exists a linear function f : Z33 → Z23 that
satisfies all the following:
1 1
f 2 = ;
1
0
2 0
f 1 = ;
1
1
1 2
f 2 = ;
0
1
0 1
f 0 = .
2
1
If such a linear function f exists, determine if it is unique.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 145
We need to check whether there exists a linear function f : Z33 → Z23 that satisfies
f (bi ) = ci for all i ∈ {1, 2, 3, 4}, and if so, whether it is unique. This is equivalent
to determining whether there exists a matrix A ∈ Z2×3 3 (the standard matrix of f )
such that Abi = ci for all i ∈ {1, 2, 3, 4}. So, we have a system of four equations (in
which the unknown is the matrix A):
in which the matrix A is the unknown (and matrices B and C are known). We
proceed as in subsection 1.9.2. We take the transpose of both sides of the equation
above to obtain B T AT = C T , we form the matrix
T
b1 cT1
1 2 0 1 1
T bT2 cT2 2 1 1 0 1
CT
B = bT3 cT3 = 1 2 1 2 0 ,
bT4 cT4 0 0 1 1 2
We now see that the equation B T AT = C T is consistent, and that the following is
the general solution for AT :
t1 + 1 t2 + 1
AT = t1 t2 , where t1 , t2 ∈ Z3 .
1 2
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 146
By taking the transpose of the matrix above, we obtain the general solution of the
equation AB = C:
t1 + 1 t1 1
A = , where t1 , t2 ∈ Z3 .
t2 + 1 t2 2
So, the equation AB = C (with the unknown A) has a solution, but because of the
two parameters (namely, t1 and t2 ), it is not unique. It follows that there exists a
linear function f : Z33 → Z23 that satisfies f (bi ) = ci for all i ∈ {1, 2, 3, 4}, but such a
linear function f is not unique.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 147
in which the matrix A is the unknown (and matrices B and C are known). We
proceed as in subsection 1.9.2. We take the transpose of both sides of the equation
above to obtain B T AT = C T , we form the matrix
T
b1 cT1
1 −2 2 2 −3
T bT2 cT2 2 −4 4 4 −6
CT
B = bT3 cT3 = 0 −1
,
0 −2 −1
bT4 cT4 −2 7 −4 −2 7
We see from the third row of the matrix above that the equation AB = C (where
A is the unknown) is inconsistent. Therefore, there does not exist a linear function
f : R3 → R2 that satisfies the property that f (bi ) = ci for all i ∈ {1, 2, 3, 4}.
Example 1.10.12. Determine if there exists a linear function f : Z43 → Z33 that
satisfies all the following:
T T
f 1 2 1 2 = 1 1 0 ;
T T
f
2 2 2 2 = 2 0 1 ;
T T
f
1 0 1 0 = 1 2 1 ;
T T
f
0 1 0 1 = 0 1 1 ;
T T
f
1 1 0 1 = 0 0 0 ;
T T
f
0 0 1 1 = 0 1 0 .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 148
2 2 0
0 1 0
1 1 0
b4 :=
0 ,
b5 :=
0 ,
b6 :=
1 ,
1 1 1
We need to check whether there exists a linear function f : Z43 → Z33 that satisfies
f (bi ) = ci for all i ∈ {1, . . . , 6}, and if so, whether it is unique. This is equivalent
to determining whether there exists a matrix A ∈ Z3×4 3 (the standard matrix of f )
such that Abi = ci for all i ∈ {1, . . . , 6}. So, we have a system of six equations (in
which the unknown is the matrix A):
in which the matrix A is the unknown (and matrices B and C are known). We
proceed as in subsection 1.9.2. We take the transpose of both sides of the equation
above to obtain B T AT = C T , we form the matrix
T
b1 cT1
1 2 1 2 1 1 0
bT2 cT2 2 2 2 2 2 0 1
T T
T T
b3 c3 1 0 1 0 1 2 1
B C = T
T = 0 1 0 1 0 1 1 ,
b4 c4
bT cT 1 1 0 1 0 0 0
5 5
bT6 cT6 0 0 1 1 0 1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 149
and we deduce that the equation AB = C has a unique solution for A, namely,
0 1 1 2
A = 2 0 0 1 .
2 0 2 1
It now follows that there exists a unique linear function f : Z43 → Z33 such that
f (bi ) = ci for all i ∈ {1, . . . , 6}, and moreover, the standard matrix of f is the
matrix A above.
Remark: Now that we have computed the standard matrix A of f , we can easy
compute a formula for f :
x1
0 1 1 2 x2 + x3 + 2x4
x2
f (x) = Ax = 2 0 0 1 x3 =
2x1 + x4 .
2 0 2 1 2x1 + 2x3 + x4
x4
T
in Z43 .
for all vectors x = x1 x2 x3 x4
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 150
Rotation. The function rθ : R2 → R2 that rotates each vector about the origin
counterclockwise by the angle θ (see the picture below) is linear, and its standard
matrix is
cos θ − sin θ
rθ (e1 ) rθ (e2 ) = .
sin θ cos θ
x2
rθ (u)
u
θ
x1
Note that rotating by the angle θ clockwise is the same as rotating by the angle
−θ counterclockwise (which is why it is enough to consider only counterclockwise
rotation, as long as we allow negative angles as well).
Orthogonal projection. Given a line L in R2 that passes through the origin, the
orthogonal projection projL : R2 → R2 onto L (see the picture below) is linear.
x2
L
projL(u)
x1
We cannot yet compute the standard matrix of orthogonal projection onto an arbitrary
line through the origin; we will be able to do so only after we have developed a lot
more theory (see Corollary 6.6.4). However, we can already compute this matrix in
some special cases. Consider the projection projx1 : R2 → R2 onto the x1 -axis and
the projection projx2 : R2 → R2 onto the x2 -axis (illustrated below). Note that for a
u1 2 u1 0
vector u = in R , we have projx1 (u) = and projx2 (u) = .
u2 0 u2
x2
projx2 (u)
u
projx1 (u) x1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 151
Reflection. Given a line L in R2 that passes through the origin, the reflection
refL : R2 → R2 about the line L (see the picture below) is linear.
x2
refL(u)
L
x1
As in the case of orthogonal projections, we cannot yet compute the standard matrix
of the reflection about an arbitrary line through the origin; we will only be able to
do so once we have developed a lot more theory (see subsection 6.8.3). However,
we can already compute this matrix in some special cases. Consider the reflection
refx1 : R2 → R2 about the x1 -axis and the reflection refx2 : R2→ R2 about the
u1
x2 -axis (illustrated below). Note that for a vector u = in R2 , we have
u2
u1 −u1
refx1 (u) = and refx2 (u) = .
−u2 u2
x2
u
refx2 (u)
x1
refx1 (u)
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 152
Scaling. Given a scalar α ∈ R, the function that scales each vector in R2 by α (see
the picture below) is linear. The standard matrix of this linear function is
α 0
αe1 αe2 = .
0 α
x2 x2
scaling by α
αu2
u2 αu
u
u1 x1 αu1 x1
(If α = 0, then scaling by α is the same as mapping each vector to the origin.)
Horizontal Shear. A horizontal
shear in R2 is a mapping
from
R2 to R2 given by
1 k u1 u1 + ku2
the formula u 7→ u, i.e. by the formula 7→ , where k
0 1 u2 u2
is a fixed real constant. This mapping has the effect of horizontally tilting objects
in the coordinate plane (while keeping the vertical component unchanged). This is
illustrated below for the cases when k = 1 and k = −1.
x2 1 1 x2
u 7→ u
0 1
−1
1 0
2
1
1 1 1
x1 x1
−1 1
−2
−1
−1
0
−1
−1
x2 1 −1 x2
u 7→ u
0 1
0
−1 1
1
−2
1 1
1
x1 x1
−1 1
−1 −1
0
2
−1
−1
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 153
x1 x1
1
−1 1
−1
−1
0
−1
−2
x2 1 0 x2
u 7→ u
−1 1
−1
−1 1
2
1
1 1
0
x1 x1
−1
−1 1
0
−1 −1
1
−2
f g
A B C
Proposition 1.10.13. Let F be a field. Then all the following hold:
(a) for all linear functions f, g : Fm → Fn , the function f + g is linear,58 and
moreover, if A and B (both in Fn×m ) are the standard matrices of f and g,
respectively, then A + B is the standard matrix of f + g;
58
As usual, the function f + g : Fm → Fn is defined by (f + g)(u) = f (u) + g(u) for all u ∈ Fm .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 154
f, A g, B
Fp Fm Fn
Proof. We prove (c). Parts (a) and (b) are left as an exercise. Fix linear functions
f : Fp → Fm and g : Fm → Fn . Let A ∈ Fm×p be the standard matrix of f , and let
B ∈ Fn×m be the standard matrix of g. Then for any u ∈ Fp , we have that
(∗) (∗∗) (∗∗∗)
(g ◦ f )(u) = g(f (u)) = g(Au) = B(Au) = (BA)u,
where (*) follows from the fact that A is the standard matrix of f , (**) follows from the
fact that B is the standard matrix of g, and (***) follows from Corollary 1.7.6(g). We
have now shown that g◦f is a matrix transformation, and so (by Proposition 1.10.4) it
is linear. Moreover, since (by the calculation above) we have that (g ◦ f )(u) = (BA)u
for all vectors u ∈ Fp , we see that BA is the standard matrix of g ◦ f .
Example 1.10.14.
(a) Find the standard matrix of the linear function f1 : R2 → R2 that first reflects
about the x1 -axis and then rotates about the origin counterclockwise by 90◦ .
(b) Find the standard matrix of the linear function f2 : R2 → R2 that first rotates
about the origin counterclockwise by 90◦ and then reflects about the x1 -axis.
You may assume that f1 and f2 are indeed linear.
Solution. We solve the problem in two ways: first, by checking what the linear
functions f1 and f2 map the standard basis vectors to, and second, by multiplying
matrices as in Proposition 1.10.13(c).
Computing directly. (a) We observe that f1 (e1 ) = e2 and f1 (e2 ) = e1 . Conse-
quently, the standard matrix of f1 is
0 1
f1 (e1 ) f1 (e2 ) = e2 e1 = .
1 0
59
As usual, the function αf : Fm → Fn is defined by (αf )(u) = α(f (u)) for all u ∈ Fm .
60
As usual, the function g ◦ f : Fp → Fn is defined by (g ◦ f )(u) = g(f (u)) for all u ∈ Fp .
61
Note that BA ∈ Fn×p .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 155
(b) We observe that f2 (e1 ) = −e2 and f2 (e2 ) = −e1 . Consequently, the standard
matrix of f1 is
0 −1
f2 (e1 ) f2 (e2 ) = −e2 −e1 = .
−1 0
Note that
f1 = r90◦ ◦ refx1 and f2 = refx1 ◦ r90◦ .
So, by Proposition 1.10.13(c), the standard matrix of f1 is
0 −1 1 0 0 1
BA = = ,
1 0 0 −1 1 0
Remark: Our two methods produced the same final answer, as expected.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 156
(b) there exists some function g : B → A such that g ◦ f = IdA and f ◦ g = IdB .
Proof. Suppose first that (a) holds. Then for all b ∈ B, there exists a unique a ∈ A
such that f (a) = b.63 We now define g : B → A by, for each b ∈ B, letting g(b) be
the unique a ∈ A such that f (a) = b. Then clearly, g ◦ f = IdA and f ◦ g = IdB .64
Suppose now that (b) holds, and fix a function g : B → A such that g ◦ f = IdA
and f ◦ g = IdB . We first show that f is one-to-one. Fix a1 , a2 ∈ A such that
f (a1 ) = f (a2 ). Then
a1 = IdA (a1 )
= (g ◦ f )(a2 )
= a2 .
So, f is one-to-one. We now show that f is onto. Fix b ∈ B, and set a := g(b). Then
So, f is onto. We have now shown that f is both one-to-one and onto, and so f is a
bijection, i.e. (a) holds.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 157
= (g1 ◦ f )(a)
= g2 (f (a))
So, g1 = g2 .
f ◦ f −1 = IdB ;
(c) if f and g are bijections, then g ◦ f is also a bijection, and moreover, (g ◦ f )−1 =
f −1 ◦ g −1 (see the diagram below).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 158
g◦f
f g
A B C
−1 −1
f g
(g ◦ f )−1 = f −1 ◦ g −1
Proof. (a) Assume that f and g are one-to-one; we must show that g ◦ f is one-to-one.
Fix a1 , a2 ∈ A such that (g ◦ f )(a1 ) = (g ◦ f )(a2 ), i.e. g f (a1 ) = g f (a2 ) . Since
g is one-to-one, we have that f (a1 ) = f (a2 ). Since f is one-to-one, we have that
a1 = a2 . This proves that g ◦ f is one-to-one.
(b) Assume that f and g are onto; we must show that g ◦ f is onto. Fix c ∈ C.
Since g is onto, there exists some b ∈ B such that g(b) = c. Since f is onto, there
exists some a ∈ A such that f (a) = b. But now
(g ◦ f )(a) = g f (a) = g(b) = c.
(a) f is one-to-one if and only if rank(A) = m (i.e. A has full column rank);
(b) f is onto if and only if rank(A) = n (i.e. A has full row rank).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 159
(∗∗∗)
⇐⇒ rank(A) = m,
where (*) follows from the definition of a one-to-one function, (**) follows from the
fact that A is the standard matrix of f , and (***) follows from Corollary 1.6.5.
(b) We have the following sequence of equivalent statements:
for all b ∈ Fn , Ax = b
(∗∗)
⇐⇒ has at least one solution
(i.e. Ax = b is consistent)
(∗∗∗)
⇐⇒ rank(A) = n,
where (*) follows from the definition of an onto function, (**) follows from the fact
that A is the standard matrix of f , and (***) follows from Corollary 1.6.6.
(a) f is an isomorphism;
Proof. Suppose first that (a) holds. Since f is a one-to-one linear function, The-
orem 1.10.18(a) guarantees that rank(A) = m. On the other hand, since f is an
onto linear function, Theorem 1.10.18(b) guarantees that rank(A) = n. But now
m = rank(A) = n, and (b) follows.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 160
Suppose now that (b) holds. Then by Theorem 1.10.18(a), f is one-to-one, and
by Theorem 1.10.18(b), f is onto. So, f is a bijection. Since f is also linear (by
hypothesis), we deduce that f is an isomorphism, i.e. (a) holds.
f −1 f (u1 + u2 )
= because f is linear
= (f −1 ◦ f )(u1 + u2 )
= IdFn (u1 + u2 )
= u1 + u2
= f −1 (v1 ) + f −1 (v2 ).
f −1 (αv) = f −1 αf (u)
f −1 f (αu)
= because f is linear
= (f −1 ◦ f )(αu)
= IdFn (αu)
= αu
= αf −1 (v).
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 161
Proof. Since A is invertible, it has an inverse, and we just need to show that it is
unique. So, suppose that B, C ∈ Fn×n are both inverses of A, so that AB = BA = In
and AC = CA = In . Then
= B(AC) because AC = In
by the associativity of
= (BA)C matrix multiplication
(see Theorem 1.7.5(g))
= In C because BA = In
= C by Proposition 1.7.2.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 162
1 1 1 −1 1 −1 1 1
= I2 and = I2 .
0 1 0 1 0 1 0 1
Proof. We prove the proposition for the case when BA = In . The proof of the other
case (i.e. the case when AB = In ) is similar and is left as an easy exercise. Since A
is invertible, it has an inverse A−1 , and we have that AA−1 = In . We now compute:
by the associativity of
= (BA)A−1 matrix multiplication
(see Theorem 1.7.5(g))
= In A−1 because BA = In
Remark: Note that Proposition 1.11.3 can only be applied if we already know
that A is invertible. Once we have developed a lot more theory, we will be able to
eliminate this hypothesis and show that if A, B ∈ Fn×n are square matrices that
satisfy AB = In , then both A and B are invertible and are each other’s inverses
(see Corollary 3.3.20). However, we cannot prove this stronger statement yet, and
therefore, we cannot use it yet.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 163
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 164
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 165
Theorem 1.11.6. Let F be a field, and let A ∈ Fn×n be an invertible matrix. Then
for all vectors b ∈ Fn , the matrix-vector equation Ax = b has a unique solution, and
that solution is A−1 b.
Proof. Fix any vector b ∈ Fn . To show that A−1 b is indeed a solution of the
matrix-vector equation Ax = b, we compute
(∗) −1 (∗∗)
A(A−1 b) = | {z })b = In b
(AA = b,
=In
where (*) follows from Corollary 1.7.6(g), and (**) follows from Proposition 1.4.6.
So far, we have proven that A−1 b is a solution of the matrix-vector equation
Ax = b. It remains to prove uniqueness. Fix any solution x0 ∈ Fn of the matrix-
vector equation Ax = b. Then Ax0 = b, and consequently, A−1 (Ax0 ) = A−1 b. We
now compute:
(∗) −1 (∗∗)
A−1 b = A−1 (Ax0 ) = | {z A})x0 = In x0
(A = x0 .
=In
where once again, (*) follows from Corollary 1.7.6(g), and (**) follows from Proposi-
tion 1.4.6. This proves that A−1 b is in fact the unique solution of the matrix-vector
equation Ax = b.
Solution. As we saw in Example 1.11.2, the matrix A is invertible, and its inverse is
1 −1
A−1 = .
0 1
Remark: We saw in subsection 1.11.2 how one can check if a square matrix (with
entries in some field) is invertible, and if so, how one can compute its inverse.
However, if we do not already know whether A is invertible (or we know that A is
invertible, but have not yet computed its inverse), then the most efficient way to
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 166
know that A is invertible and have already computed its inverse A−1 for some reason
other than solving the equation Ax = b.
Making new invertible matrices out of old ones. We complete this subsection
by proving an easy, but important, proposition about invertible matrices and their
inverses.
(a) the identity matrix In is invertible and is its own inverse (i.e. In−1 = In );
(b) if a matrix A ∈ Fn×n is invertible, then its inverse A−1 is also invertible, and
moreover, (A−1 )−1 = A;
(c) if a matrix A ∈ Fn×n is invertible, then its transpose AT is also invertible, and
moreover, (AT )−1 = (A−1 )T ;
(d) if matrices A, B ∈ Fn×n are invertible matrices, then AB is also invertible, and
moreover, (AB)−1 = B −1 A−1 ;
where (*) follows from Proposition 1.8.1(d). An analogous argument shows that
(A−1 )T AT = In . So, AT is invertible and its inverse is (A−1 )T . This proves (c).
We now prove (d). Fix invertible matrices A, B ∈ Fn×n . It suffices to show
that (AB)(B −1 A−1 ) = (B −1 A−1 )(AB) = In . For this, we compute (using the
associativity of matrix multiplication):
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 167
Theorem 1.11.9. Let F be a field, let A ∈ Fn×n be a square matrix, and let
f : Fn → Fn be given by f (x) = Ax for all x ∈ Fn . Then f is linear and its standard
matrix is A. Furthermore, the following are equivalent:
(a) f is an isomorphism;
(b) A is invertible;
(c) RREF(A) = In ;
(d) rank(A) = n.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 168
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 169
3. The elementary matrix that corresponds to adding α times the third row to
the second row (“R2 → R2 + αR3 ”) of a matrix with three rows is
1 0 0
0 1 α .
0 0 1
Proposition 1.11.11. Let F be a field, and let A ∈ Fn×m be a matrix. Then both
the following hold:
(a) if R is any elementary row operation (performed on a matrix with n rows and
with entries in F) and E is the corresponding elementary matrix, then the matrix
obtained from A by performing R on it is precisely the matrix EA;
Remark: In part (b), note the swapping of order between R1 , . . . , Rk on the one
hand and Ek . . . E1 on the other.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 170
Proof. We first prove (a). Consider any elementary row operation R performed on a
matrix with n rows (and with entries in the field F). Define fR : Fn → Fn by, for
each u ∈ Fn , letting f (u) be the vector obtained by performing the elementary row
operation R on u. It is easy to see that fR is linear.69 So, fR has a standard matrix.
But clearly, the standard matrix of fR is precisely the matrix E.70
Now, fix any matrix A ∈ Fn×m , and set A = a1 . . . am . Then
(∗)
EA = Ea1 . . . Eam = fR (a1 ) . . . fR (am ) =: M,
where (*) follows from the fact that E is the standard matrix of fR . But obviously,
the matrix M is precisely the matrix obtained by performing the elementary row
operation R on A. This proves (a).
Part (b) follows from part (a) via an easy induction on k (the details are left as
an exercise).
(c) a matrix A ∈ Fn×n is invertible if and only if there exist elementary matrices
E1 , . . . , Ek such that A = E1 . . . Ek (that is, a matrix is invertible if and only if
it can be written as a product of elementary matrices).
Proof. We prove (a) and (b) simultaneously. Let R be an elementary row operation
performed on a matrix with n rows (and with entries in the field F), and let E be the
elementary matrix that corresponds to R. Let R′ be the elementary row operation
that “undoes” R,71 and let E ′ be the elementary matrix that corresponds to R′ . But
now Proposition 1.11.11 guarantees that EE ′ = E ′ E = In .72 This proves that E is
invertible, and that its inverse is the elementary matrix E ′ . This proves (a) and (b).
69
Check this!
70
Indeed, the standard matrix of R is fR (e1 ) . . . fR (en ) , which is precisely the matrix
obtained from In by applying the elementary row operation R to it, and this matrix is precisely the
elementary matrix E.
71
See subsection 1.3.2.
72
Let us explain this in detail. By Proposition 1.11.11, applying the elementary row operation R
(resp. R′ ) to a matrix in Fn×n is the same as multiplying that matrix on the left by the elementary
matrix E (resp. E ′ ). If we apply R to the matrix In , and then apply R′ to the resulting matrix, we
obtain In back. So, if we multiply In by E on the left, and then multiply the resulting matrix by E ′
on the left, we obtain In ; so, E ′ EIn = In , and consequently, E ′ E = In . Analogously, EE ′ = In .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 171
Let us now prove (c). The fact that products of elementary matrices are invertible
follows immediately from part (a) and from the fact that (by Proposition 1.11.8(e))
products of invertible matrices are invertible. For the reverse direction, we fix an
arbitrary invertible matrix A ∈ Fn×n , and we show that A can be written as a product
of elementary matrices. Since A is invertible, Proposition 1.11.9 guarantees that
RREF(A) = In . In particular, A and In are row equivalent, and it follows that we can
transform In into A via some sequence R1 , . . . , Rk of elementary row operations. For
each index i ∈ {1, . . . , k}, let Ei ∈ Fn×n be the elementary matrix that corresponds
to the elementary row operation Ri . But then by Proposition 1.11.11(b), we have
that A = Ek . . . E1 In = Ek . . . E1 . This proves (c).
Theorem 1.11.13. Let F be a field, and let A, B ∈ Fn×m . Then the following are
equivalent:
(a) A ∼ B;
(a’) B can be obtained from A via some sequence of elementary row operations.
But Proposition 1.11.11(b) guarantees that (a’) and (b) are equivalent, and Propo-
sition 1.11.12(c) guarantees that (b) and (c) are equivalent. This completes the
argument.
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 172
so
that A is invertible. To prove (a), it now remains to show that B = A−1 . Since
74
A In and In B are row equivalent, Theorem 1.11.13 guarantees that
n×n
there exists an invertible
matrix
C ∈ F 75such that
C A In =
In B
.
But
note that C A In = CA C . So, CA C = C A In =
In B , which in turn implies that CA = In and C = B, and consequently,
BA = In . But we already saw that A is invertible, and so Proposition 1.11.3
guarantees that A−1 = B.
Warning: The Invertible Matrix Theorem only works for square matrices. Do not
attempt to apply it to matrices that are not square (or to linear functions whose
standard matrices are not square)!
The Invertible Matrix Theorem (version 1). Let F be a field, and let A ∈ Fn×n
be a square matrix. Further, let f : Fn → Fn be given by f (x) = Ax for all x ∈ Fn .76
Then the following are equivalent:
(b) AT is invertible;
(c) RREF(A) = In ;
(e) rank(A) = n;
74
This is because In B = U B = RREF A In .
75
This is “obvious,”
but here are the details. Set A = a1 . . . an and set C =
c1 . . . cn . Then
C A In = C a1 . . . an e1 . . . en
= Ca1 ... Can Ce1 ... Cen
= Ca1 ... Can c1 ... cn
= CA C .
76
Since f is a matrix transformation, Proposition 1.10.4 guarantees that f is linear. Moreover, A
is the standard matrix of f .
Irena Penev
Linear Algebra 1 & 2
Chapter 1. Systems of linear equations. Vectors and matrices 173
(f ) rank(AT ) = n;
(h) the homogeneous matrix-vector equation Ax = 0 has only the trivial solution (i.e.
the solution x = 0);
(i) there exists some vector b ∈ Fn such that the matrix-vector equation Ax = b
has a unique solution;
(j) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has a unique solution;
(k) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has at most one
solution;
(m) f is one-to-one;
(n) f is onto;
(o) f is an isomorphism.
Proof. By Theorem 1.11.9, (a), (c), (e), and (o) are equivalent, and by Corol-
lary 1.11.10, (a), (b), and (f) are equivalent. By Theorem 1.11.4, (a) and (d) are
equivalent. By Proposition 1.11.12(c), we have that (a) and (g) are equivalent. So
far, we have shown that (a), (b), (c), (d), (e), (f), (g), and (o) are equivalent.
Next, by Theorem 1.6.8, (e), (h), (i), (j), (k), and (l) are equivalent.
Finally, by Theorem 1.10.18(a), we have that (m) and (e) are equivalent, and by
Theorem 1.10.18(b), we have that (n) and (e) are equivalent. This completes the
argument.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 174
Chapter 2
2.1 Monoids
A monoid is an ordered pair (S, ◦), where S is a set and ◦ is a binary operation on S
(i.e. ◦ : S × S → S), satisfying the following two axioms:
1. the operation ◦ is associative, i.e. for all a, b, c ∈ S, we have that
a ◦ (b ◦ c) = (a ◦ b) ◦ c;
2. there exists some e ∈ S, called the identity element of (S, ◦), such that for all
a ∈ S, we have that
e◦a = a and a ◦ e = a.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 175
1. (N0 , +); 2. (Z, +); 3. (Q, +); 4. (R, +); 5. (C, +).
Remark: (N, +) is not a monoid, since it does not have an identity element.
Example 2.1.3. All the following are monoids (“·” denotes multiplication):
Example 2.1.4. All the following are monoids (“·” denotes multiplication):
2.2 Groups
2.2.1 Groups: definition and basic properties
A group is an ordered pair (G, ◦), where G is a set and ◦ is a binary operation on G
(i.e. ◦ : G × G → G) that satisfy the following three axioms:
1. the operation ◦ is associative, i.e. for all a, b, c ∈ G, we have that
a ◦ (b ◦ c) = (a ◦ b) ◦ c;
2. there exists some e ∈ G, called the identity element of (G, ◦), such that for all
a ∈ G, we have that
e◦a = a and a ◦ e = a;
3. for all a ∈ G, there exists some a′ ∈ G, called the inverse of a, such that
a ◦ a′ = e and a′ ◦ a = e.
An abelian group is a group (G, ◦) that satisfies the following additional axiom:
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 176
Remark: Note that the first two axioms (axioms 1 and 2) from the definition
of a group are precisely the monoid axioms. So, every group is a monoid. By
Proposition 2.1.1, it follows that the identity element e of a group is unique. In
particular, the third axiom (axiom 3) makes sense.
= g1 ◦ (g ◦ g2 ) because g2 is an inverse of g
= e ◦ g2 because g1 is an inverse of g
2
This means that both the following hold:
g ◦ g1 = e and g1 ◦ g = e;
g ◦ g2 = e and g2 ◦ g = e.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 177
In each of the above cases, the identity element is 0, and the inverse of a group
element g is −g.3
Note that the monoid (N0 , +) is not a group because elements other than 0 do
not have inverses, and so axiom 3 from the definition of a group is not satisfied.
In each of the above cases, the identity element is 1, and the inverse of a group
element g is g −1 = g1 .4
Remark: Monoids (Q, ·), (R, ·), and (C, ·) are not groups because, in each of those
cases, 0 does not have an inverse element. Note also that (Z \ {0}, ·) is not a group
because elements other than 1 and −1 do not have inverses.
Remark: It might now seem that all groups are abelian. However, this is not
the case: we will see examples of non-abelian groups in subsection 2.2.2 and in
section 2.3.
Proposition 2.2.4. Let (G, ◦) be a group with identity element e. Then all the
following hold (here, the inverse of a group element g is denoted by g −1 ):
3
√ √
For example, in the group (R, +), the inverse of 13 √ is − 13.
4
For example, in the group (R \ {0}, ·), the inverse of 13 is √113 .
5
So, the inverse of the inverse of a is equal to a.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 178
= a−1 ◦ (a ◦ c) because a ◦ b = a ◦ c
Uniqueness follows from (a). This proves (c). The proof of (d) is similar.
We now prove (e). Fix a ∈ G. It suffices to show that a−1 ◦ (a−1 )−1 = a−1 ◦ a,
for then (a) will guarantee that (a−1 )−1 = a, which is what we need. Since (a−1 )−1
is the inverse of a−1 , we know that a−1 ◦ (a−1 )−1 = e. On the other hand, since a−1
is the inverse of a, we have that a−1 ◦ a = e. Thus, a−1 ◦ (a−1 )−1 = a−1 ◦ a. As
explained above, this implies that (a−1 )−1 = a. This proves (e).
It remains to prove (f). Fix a, b ∈ G. We observe that
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 179
= e because a ◦ a−1 = e,
and similarly,
= e because b−1 ◦ b = e.
Proposition 2.2.5.
(a) For all positive integers n, (Zn , +) is an abelian group whose identity element is
0 := [0]n .
(b) For all prime numbers p, (Zp \ {0}, ·) is an abelian group whose identity element
is 1 := [1]p .
Proof. (a) Fix a positive integer n. The fact that + (“addition”) is an associative and
commutative binary operation on Zn follows from Proposition 0.2.11. The identity
element of Zn is 0 := [0]n . For each element [a]n in Zn (where a ∈ Z), the additive
inverse of [a]n is [−a]n = [n − a]n . So, (Zn , +) is an abelian group with identity
element [0]n .
(b) Fix a prime number p. By Proposition 0.2.11, we know that · (“multiplication”)
is an associative and commutative binary operation on Zp . However, the question
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 180
Remark: If n is a positive integer that is not prime, then (Zn \ {0}, ·) is not a group.
Indeed, if n = 1, then Zn \{0} is empty and therefore not a group under any operation
(no group is empty, since it must, at a minimum, contain an identity element). On
the other hand, if n ≥ 2 is a composite number, say n = pq for some integers p, q ≥ 2,
then we have that [p]n , [q]n ∈ Zn \ {0}, but [p]n [q]n = [pq]n = [n]n = 0, and it follows
that Zn \ {0} is not closed under multiplication, i.e. multiplication is not a binary
operation on Zn \ {0}.
−ai,j for all indices i ∈ {1, . . . , n} and j ∈ {1, . . . , m}). In particular, (Fn , +) is an
abelian group (with identity element 0).8 More interestingly, consider the set GLn (F)
of all invertible matrices in Fn×n . GLn (F) is a group under matrix multiplication,
called the general linear group of degree n over the field F. The identity element of
GLn (F) is the identity matrix In , and the inverse of a matrix A in GLn (F) is the
matrix A−1 (the usual matrix inverse that we studied in section 1.11). The group
GL1 (F) is abelian (because multiplication is commutative in the field F). However,
for n ≥ 2, the group GLn (F) is not abelian. Let us first check this for n = 2, and
then we will generalize. Consider the following two matrices in F2×2 :
1 1 1 0
A2 := , B2 := .
0 1 1 1
6
In other words, the question is whether the product of two non-zero numbers in Zp is always a
non-zero number in Zp .
7
Remark: This is why we care about p being prime! If p were not prime, then this implication
would be invalid.
8
We are using the fact that, by definition, Fn = Fn×1 .
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 181
Both of these matrices have rank 2, and so by the Invertible Matrix Theorem (see
subsection 1.11.7), they are both invertible and therefore belong to GL2 (F). However,
we have that
1 1 1 0 1+1 1
A2 B 2 = = ,
0 1 1 1 1 1
1 0 1 1 1 1
B 2 A2 = = .
1 1 0 1 1 1+1
Since 1 + 1 ̸= 1,9 we see that A2 B2 ̸= B2 A2 , and so GL2 (F) is not abelian. Let us
now generalize this. Fix an integer n ≥ 2, and consider the following two matrices
in Fn×n :
1 0 0 ... 0 0 1 1 0 0 ... 0 0 0
0 1 0 ... 0 0 0 0 1 0 ... 0 0 0
0 0 1 ... 0 0 0 0 0 1 ... 0 0 0
An := ... ... ... . . . ... ... ... , Bn := ... ... ... . . . ... ... .
0 0 0 ... 1 0 0 0 0 0 ... 1 0 0
0 0 0 ... 0 1 0 0 0 0 ... 0 1 0
0 0 0 ... 0 0 1 1 0 0 ... 0 0 1
It is then easy to see that rank(An ) = rank(Bn ) = n, and so by the Invertible Matrix
Theorem (see subsection 1.11.7), An and Bn are both invertible and consequently
belong to GLn (F). Moreover, the 1,1-th entry (the one in the upper left corner) of
An Bn is 1 + 1, whereas the 1,1-th entry of Bn An is 1. Since 1 + 1 ̸= 1, we see that
An Bn ̸= Bn An , and it follows that the group GLn (F) is not abelian.
Remark: The fact that 1 + 1 ̸= 1 is obviously true for the fields that we are familiar
with. But in fact, it is true in any field F, not just those that we have seen so far,
and it essentially follows from the fact that 1 ̸= 0 (which is true for any field; see
axiom 3 from the definition of a field in section 2.4). On the other hand, 1 + 1 + 1 = 1
is true in some fields (for example, it is true for the field Z2 ).
2.2.3 Subgroups
A subgroup of a group (G, ◦) is a group (H, ⋄) such that H ⊆ G and for all a, b ∈ H, we
have that a ⋄ b = a ◦ b. If (H, ⋄) is a subgroup of (G, ◦), then we write (H, ⋄) ≤ (G, ◦).
Here, ⋄ is the restriction of ◦ to H, and it is important that a ⋄ b = a ◦ b ∈ H for
all a, b ∈ H (otherwise, H is not “closed under” ⋄, which means that ⋄ is not a
binary operation on H, and in particular, (H, ⋄) is not a group). Normally, we do
not notationally distinguish between ⋄ and ◦, and we speak about (H, ◦) being a
subgroup of (G, ◦), where it is understood from context that the operation ◦ from
(H, ◦) is the restriction of the the binary operation ◦ on G to H.
9
See the Remark at the end of this subsection.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 182
Example 2.2.6. Every group (G, ◦) has the following two (possibly identical) sub-
groups: (G, ◦) and ({e}, ◦), where e is the identity element of G.10
Theorem 2.2.9. Let (G, ◦) be a group with identity element e, and with the inverse
of an element a ∈ G denoted by a−1 . Then for all H ⊆ G, we have that (H, ◦) is a
subgroup of (G, ◦) if and only if all the following hold:
(i) e ∈ H;
(iii) H is closed under inverses, that is, for all a ∈ H, we have that a−1 ∈ H.
Proof. Fix H ⊆ G. Suppose first that (i), (ii), and (iii) hold. By (ii), the binary
operation ◦ on G can be restricted to H (so that it becomes a binary operation
on H). The fact that ◦ is associative in (H, ◦) follows simply from the fact that ◦
is inherited from the group (G, ◦), where it is associative. By (i), H contains an
identity element, and by (iii), every element of H has an inverse in (H, ◦).
Suppose, conversely, that (H, ◦) is a subgroup of (G, ◦). Then (ii) holds, because ◦
(properly restricted) is a binary operation on H. It remains to prove that (i) and (iii)
hold. Since H is a group, it must have an identity element eH , and each element
of H must have inverse in (H, ◦). The question is whether the identity element of
(H, ◦) is the same as in (G, ◦), and similar for inverses.11 We first deal with the
identity element. If we compute in (H, ◦), we have that eH ◦ eH = eH (because eH
is the identity element of (H, ◦)), and if we compute in (G, ◦), then we have that
eH ◦ e = eH (because e is the identity element of (G, ◦)). But now eH ◦ eH = eH ◦ e,
and so by Proposition 2.2.4(a) applied to (G, ◦), we have that eH = e. So, e ∈ H,
and it follows that (i) holds. Finally, fix a ∈ H. Since (H, ◦) is a group, a has an
inverse a′ in (H, ◦), so that a ◦ a′ = eH = e. On the other hand, if we compute
in (G, ◦), we get that a ◦ a−1 = e. It follows that a ◦ a′ = a ◦ a−1 , and so by
Proposition 2.2.4(a) applied to (G, ◦), we have that a′ = a−1 , and consequently,
a−1 ∈ H. This proves (ii).
10
If G = {e}, then the subgroups (G, ◦) and ({e}, ◦) are obviously identical. On the other hand,
if G has at least two elements, then the subgroups (G, ◦) and ({e}, ◦) are distinct, and it is possible
that (G, ◦) has other subgroups as well.
11
Could it be that eH ̸= e, i.e. that (H, ◦) has an identity element, but one that is different from
the identity element of (G, ◦)? Could something similar happen with inverses? Actually, this cannot
happen, but we need to prove that!
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 183
The identity element of this group is the identity function IdX on X. The inverse
element of any permutation π ∈ Sym(X) is the inverse permutation π −1 . (Since
permutations are bijections, they have inverse functions, and moreover, those inverses
are also bijections; see the comment following the proof of Proposition 1.10.15. We
deduce that the inverse of a permutation of X is another permutation of X.)
If a set X has at most two elements, then it is easy to see that the group Sym(X)
is abelian. However, if X has at least three elements, then Sym(X) is not abelian,
as we now show. Suppose that |X| ≥ 3, and let a, b, c be pairwise distinct elements
of X. Let σ, τ : X → X be defined as follows:13
σ(a) = b, σ(b) = a, and σ(x) = x for all x ∈ X \ {a, b};
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 184
We particularly often consider Sym(X) for the case when X = {1, . . . , n} for
some positive integer n. The set Sym({1, . . . , n}) is also denoted by Sym(n), Symn ,
or Sn . In these lecture notes, we will consistently use the notation Sn . The group
(Sn , ◦) is called the symmetric group of degree n. Note that |Sn | = n!.
A permutation π ∈ Sn can be represented in the following way:
1 2 ... n
π = .
π(1) π(2) . . . π(n)
So, in the top row, we have numbers 1, 2, . . . , n, and in the bottom row, we have
those same numbers in some order (determined by the permutation π). For example,
the permutation π ∈ S4 given by π(1) = 3, π(2) = 2, π(3) = 4, and π(4) = 1 can be
represented as follows:
1 2 3 4
π = .
3 2 4 1
We can represent this permutation geometrically, as shown below (the cycles are
color coded for easier reference).
7 9
1 6
4 8
3 2 5
π = (13267)(4)(59)(8).
π = (95)(26713)(8)(4).
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 185
the first elements of the cycles from the disjoint cycle decomposition form an
increasing sequence.15
Example 2.3.1. Find the disjoint cycle decompositions of the following permutations.
1 2 3 4 5
(a) π1 =
2 5 4 3 1
1 2 3 4 5 6
(b) π2 =
3 2 4 1 6 5
1 2 3 4 5
(c) π3 =
2 5 1 3 4
Solution. We have:
(a) π1 = (125)(34);
(b) π2 = (134)(2)(56);
(c) π3 = (12543).
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 186
It is also easy to go the other way around: from the disjoint cycle decomposition
to the table representation, i.e. representation of the form
1 2 ... n
π = .
π(1) π(2) . . . π(n)
and
1 2 3 4 5 6
(154362) = .
5 1 6 3 4 2
Again we apply permutations from right to left with respect to ◦. So, in the case
above, we first apply the blue permutation (124)(35), and then we apply the red
permutation (1)(23)(45). However, within each permutation (separated by ◦’s from
the other permutations), we read from left to right. For instance, in the blue
permutation (124)(35), 1 gets mapped to 2, 2 gets mapped to 4, and 4 gets mapped
to 1.
Again, when the n from Sn is clear from context, we may omit one-element cycles.
For instance, in S5 , we have
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 187
Here, certain one-element cycles are understood from context. In particular, (154) =
(154)(2)(3), (25) = (1)(25)(3)(4), and (135) = (135)(2)(4). So, the above expression
can be rewritten as
ak ak
a1 a2 a1 a2
(a1a2 . . . ak ) (ak . . . a2a1)
For example, in S7 :
if π1 = (143)(2576), then π1−1 = (341)(6752) = (134)(2675);
7 7
3 4 3 4
5 5
6 6
1 2 1 2
π1 π1−1
5 7 5 7
4 4
6 6
1 2 3 1 2 3
π2 π2−1
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 188
sgn(π1 ) = (−1)7−3 = 1,
as before.
Remark: Note that for all positive integers n, the identity permutation in Sn has sign
1. This is because the identity permutation in Sn has disjoint cycle decomposition
(1)(2) . . . (n), and so its sign is (−1)n−n = (−1)0 = 1.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 189
2.3.3 Transpositions
Slightly informally, a transposition is a permutation that swaps two elements and
fixes all the remaining ones. More formally, given an integer n ≥ 2, a transposition in
Sn is a permutation π ∈ Sn for which there exist distinct i, j ∈ {1, . . . , n} such that
π(i) = j, π(j) = i, and π(ℓ) = ℓ for all ℓ ∈ {1, . . . , n} \ {i, j}. Such a transposition
is typically denoted by (ij), and the n − 2 many one-element cycles are implicitly
understood. For instance, the following permutation in S5 is a transposition:
1 2 3 4 5
= (25).
1 5 3 4 2
Note that this transposition could also have been written in the form (1)(25)(3)(4).
More commonly, one-element cycles are omitted.
Remark: Every transposition is its own inverse, that is, for any transposition
τ = (ij) in Sn (n ≥ 2), we have that τ −1 = τ .
Remark: The sign of any transposition is −1,16 and so transpositions are odd.
As we shall see, for n ≥ 2, any permutation can be written as a composition of
transpositions. For instance, in S7 , we have
The correctness of the above can easily be verified by checking that the image of
each element of {1, . . . , 7} under the permutations (134)(2657) and (13) ◦ (34) ◦ (26) ◦
(65) ◦ (57) is the same. Moreover, this works in general, as the following proposition
shows.
Proof. The identity permutation in Sn can be written in the form (12) ◦ (12).17 Let
us now suppose that π is some permutation in Sn other than the identity. Then π
can be written as the product of one or more disjoint cycles of length at least two
(one-element cycles are omitted in our expression, but are understood from context).
Let us say we have k cycles of length at least two, as follows (to help the reader, the
cycles are color coded):
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 190
where the aji ’s are pairwise distinct, and ℓ1 , . . . , ℓk ≥ 2. But then we have
π = (a11 a12 ) ◦ (a12 a13 ) ◦ · · · ◦ (a1ℓ1 −1 a1ℓ1 ) ◦ · · · ◦ (ak1 ak2 ) ◦ (ak2 ak3 ) ◦ · · · ◦ (akℓk −1 akℓk ),
(12345) = (35) ◦ (35) ◦ (23) ◦ (23) ◦ (15) ◦ (14) ◦ (13) ◦ (12) ◦ (35) ◦ (35).
However, as we shall see, for any given permutation π in Sn , where n ≥ 2, in all
representations of π as a composition of transpositions, the number of transposi-
tions is of the same parity (i.e. it is either always even or always odd). We prove
this in Theorem 2.3.6. However, to prove Theorem 2.3.6, we need the following
technical proposition, which essentially states that composing a permutation with a
transposition results in a sign change.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 191
Warning: In general, τ ◦ π Z
=π ◦ τ.
Proof. The Claim below proves one part of the proposition (“sgn(τ ◦ π) = −sgn(π)”).
The other part (“sgn(π ◦ τ ) = −sgn(π)”) can be proven using the Claim and certain
basic properties of permutations (as we shall see below).
Note: Here, i and j are both in the red cycle. The remaining cycles (the ones that
do not contain i and j) are colored blue.18
In the permutation τ ◦ π, the red cycle essentially gets “split up” into two, while
the blue cycles remain unaffected, as follows:
The correctness of the above can easily be verified by checking that the permutations
τ ◦ π and π ′ do indeed map each element of
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 192
We now see that the disjoint cycle decomposition of τ ◦ π has one cycle more than
the disjoint cycle decomposition of π, and it follows that sgn τ ◦ π = −sgn(π),20
(∗)
= (ij) ◦ (i a1 . . . ap j b1 . . . bq )(c11 . . . c1ℓ1 ) . . . (cr1 . . . crℓr ),
where (*) follows from the argument given in Case 1. We now compose both sides
with τ = (ij) on the left, and we obtain
(ij) ◦ π = (ij) ◦ (ij) ◦ (i a1 . . . ap j b1 . . . bq )(c11 . . . c1ℓ1 ) . . . (cr1 . . . crℓr ).
Since (ij) = τ and (ij) ◦ (ij) = 1n ,22 we deduce that
τ ◦ π = (i a1 . . . ap j b1 . . . bq )(c11 . . . c1ℓ1 ) . . . (cr1 . . . crℓr ).
As we can see, in the permutation τ ◦ π, the two red cycles of π essentially get
“merged” into one, while the blue cycles remain unaffected. But now the disjoint
cycle decomposition of τ ◦ π has one
cycle less than the disjoint cycle decomposition
23
of π, and it follows that sgn τ ◦ π = −sgn(π), which is what we needed to show.
This completes the proof of the Claim. ♦
gets mapped to by the permutation τ ◦ π, we see that the diagram below also represents the
permutation τ ◦ π.
c1ℓ1 crℓr
ap a1 bq b1 ...
i j c11 cr1
20
Indeed, the disjoint cycle decomposition of π has r + 1 cycles, whereas the disjoint cycle
decomposition of τ ◦ π has r + 2 cycles. Therefore, sgn τ ◦ π = (−1)n−(r+2) = (−1)n−(r+1)−1 =
−(−1)n−(r+1) = −sgn(π).
21
It is possible that p = 0, q = 0, or r = 0. Similar remarks apply as in Case 1.
22
Here, 1n is the identity permutation in Sn .
23
Indeed, the disjoint cycle decomposition of π has r + 2 cycles, whereas the disjoint cycle
decomposition of τ ◦ π has r + 1 cycles. Therefore, sgn τ ◦ π = (−1)n−(r+1) = (−1)n−(r+2)+1 =
−(−1)n−(r+2) = −sgn(π).
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 193
by Proposition 1.10.17(c)
sgn τ −1 ◦ π −1
=
(or by Proposition 2.2.4(f))
because τ is a transposition,
sgn τ ◦ π −1
=
and so τ −1 = τ
Proof. Clearly, (b) and (c) follow from (a). Part (a) follows from Proposition 2.3.5
by an easy induction on r. Let us give the details. We prove the following statement:
“for every positive integer r and permutation π ∈ Sn , if π is the composition of r
transpositions, then sgn(π) = (−1)r .”
Base case: r = 1. Note that if π is the composition of one transposition, i.e. π is
itself a transposition, then π is odd, and we have that sgn(π) = −1 = (−1)r .
Induction step: Fix a positive integer r, and assume that for any permutation
π ∈ Sn , if π is the composition of r transpositions, then sgn(π) = (−1)r . Now, fix a
permutation π ∈ Sn in Sn such that π can be expressed as the composition of r + 1
transpositions, say π = (a0 a′0 )◦(a1 a′1 )◦· · ·◦(ar a′r ). Then by the induction hypothesis,
π ′ := (a1 a′1 ) ◦ · · · ◦ (ar a′r ) satisfies sgn(π ′ ) = (−1)r . But since π = (a0 a′0 ) ◦ π ′ ,
Proposition 2.3.5 guarantees that sgn(π) = −sgn(π ′ ). So, sgn(π) = −sgn(π ′ ) =
−(−1)r = (−1)r+1 . This completes the induction.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 194
Proof. This easily follows from Proposition 2.3.3 and Theorem 2.3.6. Let us give
the details. By Proposition 2.3.3, we can express σ and π as compositions of
transpositions, say
By Theorem 2.3.6(a), we have that sgn(σ) = (−1)k and sgn(π) = (−1)ℓ . On the
other hand, σ ◦ π = (s1 s′1 ) ◦ (s2 s′2 ) ◦ · · · ◦ (sk s′k ) ◦ (t1 t′1 ) ◦ (t2 t′2 ) ◦ · · · ◦ (tℓ t′ℓ ), and so
again by Theorem 2.3.6(a), we have that sgn(σ ◦ π) = (−1)k+ℓ . So, sgn(σ ◦ π) =
(−1)k+ℓ = (−1)k (−1)ℓ = sgn(σ)sgn(π).
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 195
3 3 3
120◦ 240◦
1 2 1 2 1 2
(1)(2)(3) (123) (132)
3 3 3
1 2 1 2 1 2
(12)(3) (1)(23) (13)(2)
3 3
1 2 1 2
(1)(2)(3) (12)(3)
Finally, if we have a triangle with three sides of different length, and with vertices
labeled 1, 2, 3, then its group of symmetries is just {(1)(2)(3)}, i.e. its only element
is the identity permutation.
3
1 2
(1)(2)(3)
In the case of a square, we have eight symmetries: the identity (which we can also
think of as rotation by 0◦ ), three rotations, and four reflections, shown below. The
resulting subgroup of S4 has 8 elements, whereas the group S4 itself has 4! = 24
elements. Of course, if we relabeled the vertices, we would get a different group.
However, it would be the same as the group that we obtained with this labeling, up
to a relabeling of the elements (vertices). The technical term is “isomorphic”: the
new group would be isomorphic to the old one.25
25
We will study vector space isomorphism in chapter 4, but we will not go into group isomorphism
in any detail.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 196
4 3 4 3 4 3 4 3
4 3 4 3 4 3 4 3
1 2 1 2 1 2 1 2
We can, of course, also consider symmetries of polygons with more than three
vertices. The regular n-gon has 2n symmetries: it has n rotations (by nk 360◦
counterclockwise for k = 0, 1, . . . , n − 1, where for k = 0, we simply get the identity)
and n reflections. If n is odd, then the reflections are about axes passing through one
vertex and the midpoint of opposite side, and if n is even, then n2 many reflections
are through two opposite vertices, and the remaining n2 reflections are through the
midpoints of the opposite sides. (This is illustrated below for the cases when n = 5
and n = 6). Note that the symmetric group Sn has n! many elements, whereas the
group of symmetries of a regular n-gon has only 2n symmetries.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 197
5 4 5 4 5 4 5 4
180◦
6 3 6 3 6 3 6 3
1 2 1 2 1 2 1 2
(1)(2)(3)(4)(5)(6) (14)(25)(36) (12)(36)(45) (15)(24)(3)(6)
2.3.6 Inversions
In this subsection, we give another way of computing the sign of a permutation. Let
n be a positive integer. An inversion of a permutation π ∈ Sn is an ordered pair
(i, j) of numbers in {1, . . . , n} such that i < j and π(i) > π(j).
in S7 has the following four inversions: (1, 2), (4, 5), (4, 6), (5, 6).
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 198
Induction step: Fix a non-negative integer r, and assume inductively that any
permutation in Sn that has exactly r inversions has sign (−1)r . We must show that
any permutation in Sn that has exactly r + 1 inversions has sign (−1)r+1 .
Fix a permutation π ∈ Sn , and assume that it has exactly r + 1 inversions. (Note
that this implies that n ≥ 2.) In particular, π has at least one inversion, and it
follows that there exists some p ∈ {1, . . . , n − 1} such that (p, p + 1) is an inversion
of π (otherwise, we would have that π(1) < π(2) < · · · < π(n), and then π would
be the identity permutation, contrary to the fact that it has at least one inversion).
Now, consider the transposition τ := π(p)π(p + 1) in Sn , and set π ′ := τ ◦ π, so
that
1 ... p−1 p p+1 p+2 ... n
π′ =
π(1) . . . π(p − 1) π(p + 1) π(p) π(p + 2) . . . π(n)
Then π ′ has exactly r inversions, i.e. exactly one inversion less than π has. To see
this, we note the following:
But now
by the induction hypothesis,
(−1)r = sgn(π ′ )
since π ′ has exactly r inversions
= sgn(τ ◦ π) because π ′ = τ ◦ π
by Proposition 2.3.5,
= −sgn(π)
since τ is a transposition,
Remark: In the induction step of the proof of Theorem 2.3.9, it was important
that we chose an inversion of the form (p, p + 1), and not just any inversion of our
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 199
Note that π ′ has three inversions,27 whereas π has four.28 If we had, instead, chosen
an arbitrary inversion of π, then the number of inversions would not necessarily
decrease by one, and we could not apply the induction hypothesis. Indeed, suppose
we chose the inversion (4, 6) of our permutation
π from Example 2.3.8 and then
′
considered the transposition τ := π(4)π(6) = (64) = (46) and the permutation
1 2 3 4 5 6 7
π ′′ := τ′ ◦ π = (46) ◦
2 1 3 6 5 4 7
1 2 3 4 5 6 7
= .
2 1 3 4 5 6 7
Note that π ′′ has only one inversion (namely, (1, 2)), whereas π has four.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 200
Remark: The 0’s and 1’s in permutation matrices may belong to any field F of our
choice. Of course, we have not formally studied fields yet, and so for now, you may
assume that the entries of our permutation matrices belong to one of the fields F
that we already know, namely, Q, R, C, or Zp for some prime number p. As usual,
in what follows, we will denote by e1 , . . . , en the standard basis vectors of Fn , where
F is the field to which the 0’s and 1’s of our permutation matrices belong. The
important point, though, is that in the remainder of this section, we will never need
to add two non-zero numbers, and whenever we multiply two numbers, at least one
of the two numbers will be 0 or 1. So, it does not matter which particular field we
are working in, and therefore, for the remainder of the section, we will not emphasize
this.
Obviously, identity matrices are permutation matrices. Moreover, n × n permuta-
tion matrices are precisely the matrices that can be obtained from the identity matrix
In by reordering (i.e. permuting) rows, or alternatively, by reordering (i.e. permuting)
columns. So, the columns of an n × n permutation matrix are the standard basis
vectors e1 , . . . , en (appearing in some order in that matrix), whereas the rows are
eT1 , . . . , eTn (again, appearing in some order in that matrix).
For a positive integer n and a permutation π ∈ Sn , we define the matrix ofthe
permutation π, denoted by Pπ , to be the n × n matrix that has 1 in the i, π(i) -th
entry for each each index i ∈ {1, . . . , n}, and has 0 in all other entries. In other
words, for each index i ∈ {1, . . . , n}, the i-th row of the matrix Pπ is eTπ(i) . For
example, for the permutation
1 2 3 4 5 6
π = ,
2 4 1 6 5 3
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 201
Proof. Obviously, Pπ is an n×n matrix, all of whose entries are 0’s and 1’s. Moreover,
by the definition of Pπ , we have that for each index i ∈ {1, . . . , n}, the i-th row of Pπ
is the row vector eTπ(i) . So, Pπ has exactly one 1 in each row. Note that this means
that the matrix Pπ has exactly n entries that are 1, whereas all the other entries are
0’s.
It remains to show that the matrix Pπ has exactly one 1 in each column. Since
Pπ has exactly n many 1’s, it is enough to show that no column has more than one
1. Since the rows of Pπ (from top to bottom) are eTπ(1) , . . . , eTπ(n) , and since all those
row vectors are pairwise distinct (because π is a permutation), we see that no two
rows of Pπ have a 1 in the same position. So, no column of Pπ has more than one 1,
and we are done.
(a) for all indices i ∈ {1, . . . , n}, we have that eTi Pπ = eπ(i) , i.e. the i-th row of Pπ
is eTπ(i) ;
(b) for all indices j ∈ {1, . . . , n}, we have that Pπ ej = eπ−1 (j) , i.e. the j-th column
of Pπ is eπ−1 (j) .
eTπ(1)
= ... =
Pπ eπ−1 (1) . . . eπ−1 (n) .
eTπ(n)
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 202
Proof. The last statement of the proposition follows immediately from (a) and (b).29
So, it is enough to prove (a) and (b).
(a) Fix an index i ∈ {1, . . . , n}. By Proposition 1.8.2, eTi Pπ is precisely the i-th
row of the matrix Pπ , and by the definition of the matrix Pπ , its i-th row is precisely
eπ(i) .
(b) Fix an index j ∈ {1, . . . , n}. By Proposition 1.4.5, Pπ ej is precisely the j-th
column of the matrix Pπ . Set i := π −1 (j), so that j = π(i). By (a), the i-th row
of Pπ is the row vector eTπ(i) = eTj . So, Pπ has 1 in its (i, j)-th entry. Since Pπ is a
permutation matrix (by Proposition 2.3.10), and therefore has exactly one 1 in each
column, it follows that the j-th column of Pπ is ei = eπ−1 (j) .
Propositions 2.3.12 and 2.3.13 (below) readily follow from Proposition 2.3.11.
Proposition 2.3.12. Let n be a positive integer, and let π ∈ Sn . Then
Pπ−1 = PπT .
Proof. We have that
eTπ−1 (1)
(∗)
T .. (∗)
PπT = eπ−1 (1) . . . eπ−1 (n) = = Pπ−1 ,
.
T
eπ−1 (n)
Proof. It suffices to show that matrices Pσ◦π and Pπ Pσ have the same corresponding
rows. Fix an index i ∈ {1, . . . , n}. By Proposition 1.8.2, the i-th row of the matrix
Pσ◦π is eTi Pσ◦π , and the i-th row of the matrix Pπ Pσ is eTi (Pπ Pσ ). So, we just need
to show that eTi Pσ◦π = eTi (Pπ Pσ ). But follows easily via repeated application of
Proposition 2.3.11(a). Indeed, we have that
(∗) (∗) (∗)
eTi (Pπ Pσ ) = (eTi Pπ )Pσ = eTπ(i) Pσ = e = eT
(σ◦π)(i) = eTi Pσ◦π ,
σ π(i)
Pπ = ..
eπ−1 (1) . . . eπ−1 (n) .
=
.
eTπ(n)
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 203
Theorem 2.3.14 (below) easily follows from Propositions 2.3.12 and 2.3.13, and it
states that permutation matrices are invertible, and moreover, that the inverse of a
permutation matrix is equal to the transpose of that permutation matrix.
Proof. The fact that Pπ−1 = PπT follows immediately from Proposition 2.3.12. It
remains to show that Pπ is invertible, and that its inverse is Pπ−1 . We will denote
the identity permutation in Sn by 1n , so that π ◦ π −1 = 1n and π −1 ◦ π = 1n . We
now compute:
(∗)
Pπ Pπ−1 = Pπ−1 ◦π = P1n = In ,
where (*) follows immediately from Proposition 2.3.13. Analogously, Pπ−1 Pπ = In .
So, Pπ and Pπ−1 are invertible and are each other’s inverses. This completes the
argument.
Permuting the rows and columns of a matrix. As our next theorem shows,
multiplying a matrix by a permutation matrix on the left permutes the rows of the
original matrix. On the other hand, multiplying a matrix by a permutation matrix
on the right permutes the columns of the original matrix. More precisely, we have
the following.
r1
Theorem 2.3.15. Let A = ... = a1 . . . am be an n × m matrix with
rn
entries in some field F.30 Then all the following hold:
rπ(n)
30
Since we have not formally studied fields yet, you may assume for now that F is one of the fields
that you are already familiar with, namely, Q, R, C, or Zp for some prime number p. However,
Theorem 2.3.15 is true for all fields F, not just those particular ones.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 204
APπT
= aπ(1) . . . aπ(m) .
by the definition of
= Aeπ−1 (1) . . . Aeπ−1 (m)
matrix multiplication
= aπ−1 (1) . . . aπ−1 (m) by Proposition 1.4.5.
(∗∗)
= a(π−1 )−1 (1) . . . a(π−1 )−1 (m)
(∗∗∗)
= aπ(1) . . . aπ(m) ,
where (*) follows from Proposition 2.3.12, (**) follows from (b) applied to the matrix
A and the permutation π −1 , and (***) follows from the fact that (π −1 )−1 = π.
It remains to prove (a). Fix any permutation π ∈ Sn . We first consider the
matrix (Pπ A)T , and we compute:
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 205
rπ(n)
2.4 Fields
2.4.1 Fields: definition, examples, and basic properties
A field is an ordered triple (F, +, ·), where F is a set, and + and · are binary operations
on F (i.e. functions from F × F to F), called addition and multiplication, respectively,
satisfying the following axioms:
1. addition and multiplication are associative, that is, for all a, b, c ∈ F, we have
that a + (b + c) = (a + b) + c and a · (b · c) = (a · b) · c;
2. addition and multiplication are commutative, that is, for all a, b ∈ F, we have
that a + b = b + a and a · b = b · a;
5. for all a ∈ F \ {0F }, there exists an element in F, denoted by a−1 and called
the multiplicative inverse of a, such that a · a−1 = 1F ;
Remark: Note that (Z, +, ·) is not a field. This is because elements of Z \ {−1, 0, 1}
do not have multiplicative inverses. As we shall see, (Zp , +, ·) is a field for every
prime number p (see Theorem 2.4.3).
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 206
Notation:
If operations + and · are understood from context, then we typically just say
“field F” instead of “field (F, +, ·).”
Remarks:
Axioms 1, 2, and 3 above imply that (F, +) and (F, ·) are monoids with identity
elements 0F and 1F , respectively. Proposition 2.1.1 guarantees that 0F and 1F
are unique.
Proposition 2.4.2. Let (F, +, ·) be a field. Then all the following hold:
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 207
Proof. We first prove (a). Fix a ∈ F. Since multiplication in the field F is com-
mutative, we know that 0a = a0. So, it suffices to show that a0 = 0. First, note
that
(∗) (∗∗)
a0 = a(0 + 0) = a0 + a0,
where (*) follows from the fact that 0 + 0 = 0 (because 0 is the additive identity of
the field), and (**) follows from axiom 6 of the definition of a field. We have now
established that a0 = a0 + a0, and it follows that
because a0 = a0 + a0
= −(a0) + (a0 + a0)
(proven above)
where (*) follows from the associativity of multiplication, (**) follows from the fact
that ab = 0, and (***) follows from (a).
It remains to prove (c). Fix a ∈ F. First, we have that
(∗)
0 = 0a = (1 − 1)a = 1a + (−1)a = a + (−1)a,
32
This statement may require some clarification. Here, −a is the additive inverse of a. On the
other hand, (−1)a is the product of −1 (the additive inverse of the multiplicative identity) and a.
So, −a is not simply a shorthand for (−1)a. The two quantities are indeed equal, but this requires
proof!
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 208
because 0 = a + (−1)a
= −a + (a + (−1)a)
(proven above)
Proof. By Proposition 0.2.11, addition and multiplication are associative and com-
mutative in Zp , and multiplication is distributive over addition in Zp . So, (Zp , +, ·)
satisfies axioms 1, 2, and 6 from the definition of a field. Further, 0 := [0]p is the
additive identity and 1 := [1]p is the multiplicative identity of (Zp , +, ·). Moreover,
̸ [1]p , since 0 ̸≡ 1 (mod p).33 Thus, (Zp , +, ·) satisfies axiom 3 from the
[0]p =
definition of a field. Further, for all a ∈ Z, the additive inverse of [a]p in (Zp , +, ·) is
[−a]p , and so axiom 4 is satisfied. Finally, by Fermat’s Little Theorem, every number
a ∈ Zp \ {0} has a multiplicative inverse, namely, ap−2 , and it follows that axiom 5
is satisfied. This proves that (Zp , +, ·) is indeed a field, which is what we needed to
show.
Remark: For a positive integer n that is not prime, (Zn , +, ·) is not a field. If n = 1,
then this follows from the fact that Zn = Z1 has only one element, whereas every field
has at least two elements (namely, the additive and multiplicative identities, which
cannot be equal by axiom 3 of the definition of a field). Now, let us suppose that n ≥ 2
33
This follows from the fact that p ≥ 2.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 209
is composite, say n = pq where p, q ≥ 2 are integers. Then [p]n [q]n = [pq]n = [n]n = 0.
So, if (Zn , +, ·) were a field, Proposition 2.4.2(b) would imply that at least one of
[p]n and [q]n is 0, a contradiction.
Theorem 2.4.4. Let n ≥ 2 be an integer. Then there exists a field of size n if and
only if n is a power of a prime.34 Moreover, if n is a power of a prime, then up to
“isomorphism” (i.e. up to renaming the operations and elements of the field), there is
exactly one field of size n, and it is denoted by Fn .35
Proof. Omitted.
1 + · · · + 1 = 0,
| {z }
n
where the 1’s and the 0 are understood to be in the field F. If no such n exists, then
char(F) := 0. Note that fields Q, R, and C all have characteristic 0. On the other
hand, for all prime numbers p, we have that char(Zp ) = p.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 210
Proof. Let F be a field. We may assume that char(F) ̸= 0, for otherwise we are done.
So, char(F) is a positive integer. By the definition of a field, we have that 1 ̸= 0,36
and so char(F) ≥ 2. Now, suppose that char(F) is not prime, and fix integers p, q ≥ 2
such that char(F) = pq. Then
1 + ··· + 1 1 + ··· + 1 = 1 + · · · + 1 = 0.
| {z } | {z } | {z }
p q pq
Since F is a field, Proposition 2.4.2(b) guarantees that at least one of the numbers
1 + · · · + 1 and 1 + · · · + 1 is zero. But this is impossible since 0 < p, q < char(F).
| {z } | {z }
p q
in R;
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 211
q(x) = x2 + 1.
Does q(x) have a root? If we consider q(x) to be a polynomial with real coefficients
and we ask if it has real roots, then the answer is that it has none. If we consider q(x)
to be a polynomial with complex coefficients, then we see that it has two complex
roots, namely i and −i. On the other hand, if we consider q(x) to be a polynomial
with coefficients in Z2 , then we see that 1 is a root, since q(1) = 12 + 1 = 0 (in Z2 ).
If we consider q(x) to be a polynomial with coefficients in Z3 , and we ask if it has
any roots in Z3 , then we see that the answer is “no”: none of 0, 1, 2 is a root, as we
can see by direct computation.
Algebraically closed fields. An algebraically closed field is a field F that has the
property that every non-constant polynomial with coefficients in F has a root in F.
By the Fundamental Theorem of Algebra (see subsection 0.3.2), C is an algebraically
closed field. On the other hand, R is not algebraically closed (as our example above
demonstrates), and similarly, neither is Q. Moreover, no finite field is algebraically
closed. To see this, consider any finite field F = {f1 , . . . , ft } (t ≥ 2), and consider
the polynomial
p(x) = (x − f1 ) . . . (x − ft ) + 1,
which is a polynomial of degree t with coefficients in F. Then for each i ∈ {1, . . . , t}, we
have that p(fi ) = 1, and consequently, fi is not a root of p(x). Since F = {f1 , . . . , ft },
we see that p(x) has no roots in F.
Thus, of the fields that we have seen so far, namely, Q, R, C, and Zp (where p is
a prime number), only the field C is algebraically closed. Other algebraically closed
fields do exist, but they will not be discussed in these lecture notes.
Irena Penev
Linear Algebra 1 & 2
Chapter 2. Groups and permutations. Fields 212
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 213
Chapter 3
Vector spaces
Terminology: A real vector space is a vector space over the field R, and a complex
vector space is a vector space over the field C.
Example 3.1.1. Let F be a field. Then all the following are vector spaces over F (in
each case, vector addition and scalar multiplication are defined in the natural way):
1. Fn ;
2. Fn×m ;
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 214
4. the set PF of all polynomials (in one varialble, typically x) with coefficients in
the field F;1
Notation: Some texts use the notation F[x] instead of PF (if x is the
variable used in the polynomials in question).
5. for a non-negative integer n, the set PnF of all polynomials of degree at most n
and with coefficients in F.2
Note that each of the cases above, elements of our vector space are considered vectors
(even if they do not “look like” vectors, i.e. even if they are matrices, functions, or
polynomials).
Remark: In these lecture notes, we will see quite a few examples with polynomials,
especially in chapter 4. So, a remark on when two polynomials are equal is in order.
For a field F, two polynomials in PF are equal precisely when their corresponding
coefficients are the same.3 For instance, polynomials p1 (x) = x2 + 2x + 3 and
p1 (x) = 2x2 − x + 3 in PR are not equal, and we write p1 (x) ̸= p2 (x). This is because
p1 (x) and p2 (x) do not have the same corresponding coefficients. One might object
that p1 (0) = p2 (0) and p1 (3) = p2 (3), and so p1 (x) and p2 (x) are “sometimes equal.”
This does not matter. The point is that polynomials p1 (x) and p2 (x) are the different
as polynomials (because they do not have the same corresponding coefficients).
For an even more interesting example, consider polynomials q1 (x) = x4 + x3 and
q2 (x) = x5 + x in PZ2 . Then q1 (x) ̸= q2 (x) (because q1 (x) and q2 (x) do not have
the same corresponding coefficients), even though q1 (0) = q2 (0) and q1 (1) = q2 (1),
and 0 and 1 are the only elements of Z2 ! On the other hand, note that polynomials
r1 (x) = (x + 3)2 and r2 (x) = x(x + 6) + 9 in PR are equal because if we write them
in the standard form,4 we see that they have the same corresponding coefficients.
Indeed, r1 (x) = x2 + 6x + 9 and r2 (x) = x2 + 6x + 9, and so r1 (x) = r2 (x).
Example 3.1.2. The following are real vector spaces (with vector addition and
scalar multiplication defined in the usual way):
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 215
We note that for any field F, we have the trivial vector space {0} over the field
F. In this vector space, vector addition and scalar multiplication are defined in
the obvious way: 0 + 0 = 0 and α0 = 0 for all scalars α ∈ F. A vector space is
non-trivial if it contains at least one non-zero vector.
Proposition 3.1.3. Let V be a vector space over a field F. Then all the following
hold:
Proof. The proof is similar to that of Proposition 2.4.2. We prove (a), and we leave
the rest as an exercise. Fix v ∈ V . Then 0v = (0 + 0)v = 0v + 0v, and consequently,
0 = −(0v) + 0v
= −(0v) + 0v + 0v because 0v = 0v + 0v
= 0 + 0v because −(0v) + 0v = 0
= 0v.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 216
Remark: It is obvious that the subspace relation is transitive. More precisely, for
any vector space V over a field F, if U is a subspace of V , and W is a subspace of U ,
then W is a subspace of V . Informally, we would say that “a subspace of a subspace
is a subspace” (see the picture below).
U
W
Terminology: For a vector space V over a field F, the trivial subspace of V is the
subspace {0}. A non-trivial subspace of V is one that contains at least one non-zero
vector. A subspace U of V is proper if U ⫋ V .
Example 3.1.5. Let n be a positive integer, and let F be a field. Then PnF is a
subspace of PF .
Theorem 3.1.7 (below) is a vector space analog of Theorem 2.2.9 (which dealt
with groups). Moreover, our proof of Theorem 3.1.7 relies on Theorem 2.2.9.
Theorem 3.1.7. Let V be a vector space over a field F, and let U ⊆ V . Then U is
a subspace of V if and only if the following three conditions are satisfied:
(i) 0 ∈ U ;8
(ii) U is closed under vector addition, that is, for all u, v ∈ U , we have that
u + v ∈ U;
(iii) U is closed under scalar multiplication, that is, for all u ∈ U and α ∈ F, we
have that αu ∈ U .
8
Here, 0 is the zero vector in the vector space V .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 217
Proof. Suppose first that (i), (ii), and (iii) are satisfied; we must show that U is
a subspace of V . By (ii), the restriction of + to U × U (denoted + ↾ (U × U ), or
just + for simplicity) is a binary operation on U ,9 and by (iii), the restriction of ·
to F × U (denoted by · ↾ (F × U ), or just · for simplicity) is indeed a function from
F × U to U . So, U is equipped with both the vector addition operation and the
scalar multiplication operation. Next, U satisfies axioms 2-5 from the definition of
a vector space because the vector space V satisfies those axioms and because the
vector addition and scalar multiplication operations in U are inherited from V . It
remains to show that U satisfies axiom 1 from the definition of a vector space, that
is, that U is an abelian group under vector addition. Since (V, +) is an abelian
group (because V is a vector space), it suffices to show that (U, +) is a subgroup of
(V, +).10 By (i), we have that 0 ∈ U , and by (ii), we have that U is closed under
vector addition. Moreover, by (iii) and by Proposition 3.1.3(d), for all u ∈ U , we
have that −u = (−1)u ∈ U ,11 and so U is closed under additive (vector) inverses.
Theorem 2.2.9 now guarantees that (U, +) is a subgroup of (V, +). This proves that
U is indeed a subspace of V .
Suppose now that U is a subspace of V ; we must show that (i), (ii), and (iii)
hold. Since the vector addition and scalar multiplication operations of the vector
space U are inherited from the ones for V , we see that (ii) and (iii) hold. Moreover,
since U is a vector space, we know that it contains the zero vector, call it 0U .12
We must show that 0U = 0.13 Since 0U is the identity element of (U, +), we see
that 0U + 0U = 0U . Since 0U ∈ V and 0 is the identity element of V , we see that
0U + 0 = 0U . So, 0U + 0U = 0U + 0. By now adding −0U to both sides of the
equation,14 and we obtain 0U = 0. So, (i) holds.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 218
The linear span (or simply span) of the set of vectors {u1 , . . . , uk }, denoted by
Span({u1 , . . . , uk }) or Span(u1 , . . . , uk ), is the set of all linear combinations of
u1 , . . . , uk , i.e.
Span(u1 , . . . , uk ) = α1 u1 + · · · + αk uk | α1 , . . . , αk ∈ F .
x3
e2
0
x2
e1
U = Span(e1, e2)
x1
Remark: By Proposition 1.4.4, for a field F and a matrix A = a1 . . . am in
Fn×m , we have that
Span(a1 , . . . , am ) = Ax | x ∈ Fm .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 219
Proof. By Corollary 1.6.6, (b) and (c) are equivalent. On the other hand, the fact
that (a) and (b) are equivalent essentially follows from the fact that
Span(a1 , . . . , am ) = Ax | x ∈ Fm .
Ax | x ∈ Fm = Fn
⇐⇒
⇐⇒ ∀b ∈ Fn ∃x ∈ Fm s.t. Ax = b
⇐⇒ ∀b ∈ Fn : Ax = b is consistent.
Thus, (a) and (b) are indeed equivalent. This completes the argument.
(a) u1 , . . . , uk ∈ Span(u1 , . . . , uk );
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 220
Proof. To prove (a), we simply observe that for all i ∈ {1, . . . , k}, we have that
and so ui ∈ Span(u1 , . . . , uk ).
Next, we prove (b). It suffices to show that Span(u1 , . . . , uk ) satisfies (i), (ii)
and (iii) from Theorem 3.1.7, that is, that all the following hold:
(i) 0 ∈ Span(u1 , . . . , uk );
(ii) Span(u1 , . . . , uk ) is closed under vector addition, that is, for all vectors v1 , v2 ∈
Span(u1 , . . . , uk ), we have that v1 + v2 ∈ Span(u1 , . . . , uk );
(iii) Span(u1 , . . . , uk ) is closed under scalar multiplication, that is, for all vectors
v ∈ Span(u1 , . . . , uk ) and scalars α ∈ F, we have that αv ∈ Span(u1 , . . . , uk ).
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 221
Remark: In some texts, for a vector space V over a field F, and for vectors
u1 , . . . , uk ∈ V , the linear span (or simply span) of {u1 , . . . , uk } is defined to be the
intersection of all subspaces of V that contain u1 , . . . , uk . By Theorem 3.1.11, this
definition is equivalent to the one that we gave at the beginning of this subsection.
Span(v1 , . . . , vk ) = Span(α1 v1 , . . . , αk vk ).
We prove (i); the proof of (ii) is similar and is left as an exercise. Fix any vector
v ∈ Span(v1 , . . . , vk ). Then, by definition, there exist scalars β1 , . . . , βk ∈ F such
that
v = β 1 v1 + · · · + β k vk .
Since scalars α1 , . . . , αk are all non-zero, they have multiplicative inverses α1−1 , . . . , αk−1 ,
respectively. We now have that
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 222
can be turned into a vector space over F in a natural way. We define vector addition
in U × W by setting
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 223
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 224
Thus, (a) and (b) are equivalent. This completes the argument.
Proof. This readily follows from the definition of linear independence and is left as
an exercise.
∅ is a basis of the trivial vector space {0} (over any field F), and in particular,
{0} is finite dimensional. In fact, ∅ is the unique basis of {0} (because, by the
previous bullet point, no linearly independent set contains 0).
20
A set A is a superset of a set B provided that B ⊆ A.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 225
In the literature, there is a bit of ambiguity about whether (finite) bases are
sets or ordered sets. An “ordered set” is a set in which order and repetitions
matter. For instance, {1, 2, 3}, {1, 2, 2, 3}, and {3, 1, 2} are the same as sets,
but they are pairwise distinct as ordered sets. In what follows, we will implicitly
treat finite sets (when discussed in the context of linearly independent sets,
spanning sets, and bases) as ordered, and in particular, we will care about
repetitions. It is important to note that no linearly independent set (and in
particular, no basis), may contain more than one copy of the same vector.
Indeed, if v1 , . . . , vk is a list of vectors that contains more than one copy of
some vector (say, vi = vj for some i ̸= j), then we can set αi = 1, αj = −1,
and αk = 0 for all k ∈ {1, . . . , n} \ {i, j}, and we get α1 v1 + · · · + αn vn = 0;
so v1 , . . . , vn are not linearly independent.
Example 3.2.3. Let F be a field. Then the standard basis En = {en1 , . . . , enn } of Fn
(defined in subsection 1.4.4) is indeed a basis of Fn .21
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 226
Proof. It is clear that for any non-negative integer n, {1, x, . . . , xn } is a basis of PnF .23
Let us show that PF is infinite-dimensional. We must show that PF does not have
a (finite) basis. Fix any finite set {p1 (x), . . . , pk (x)} (k ≥ 0) of polynomials in PF ;
we must show that this set is not a basis of PF .24Let d be any non-negative integer
such that deg pi (x) ≤ d for all i ∈ {1, . . . , k}. Then any linear combination of
the polynomials p1 (x), . . . , pk (x) is a polynomial of degree at most d, and it follows
that xd+1 ∈ / Span p1 (x), . . . , pk (x) . So, {p1 (x), . . . , pk (x)} is not a spanning set of
PF , and consequently, it is not a basis of PF . This proves that PF does not have a
finite basis, and consequently, PF is infinite-dimensional.
As Proposition 3.2.6 (below) shows, for a field F, we can easily check if a finite
set of vectors in Fn is a basis of Fn . Note, however, that Proposition 3.2.6 only works
for Fn , and not for general vector spaces V .
Remark: By the Invertible Matrix Theorem (version 1; see subsection 1.11.7), square
matrices of full rank are precisely the invertible matrices. So, Proposition 3.2.6 yields
another characterizations of invertible matrices: a matrix in Fn×n (where F is a field)
is invertible if and only if its columns form a basis of Fn .
Remark: By Proposition 3.2.6, every basis of Fn (where F is a field) contains exactly
n vectors. In fact (see Theorem 3.2.16), if V is any finite-dimensional vector space,
23
Here are the details. Fix a non-negative integer n. To show that {1, x, . . . , xn } is linearly
independent, we fix α0 , α1 , . . . , αn ∈ F such that α0 · 1 + α1 x + · · · + αn xn = 0. The 0 on
the right-hand-side denotes the zero polynomial, i.e. the polynomial whose coefficients are all
zero. So, α0 = α1 = · · · = αn = 0, and we deduce that {1, x, . . . , xn } is linearly independent.
On the other hand, by definition, for every p(x) ∈ Pn F , there exist a0 , a1 , . . . , an ∈ F such that
p(x) = a0 + a1 x + · · · + an xn . But then p(x) = a0 · 1 + a1 x + · · · + an xn , and so p(x) is a
linear combination of 1, x, . . . , xn . Thus, {1, x, . . . , xn } is a spanning set of Pn F . This proves that
{1, x, . . . , xn } is indeed a basis of Pn
F .
24
For example, we can take d := max{0, deg p1 (x) , . . . , deg pk (x) }. (Here, we needed to put 0
into the set so that d would be defined even in the case when k = 0: the empty set does not have a
minimum!)
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 227
then all bases of V are of the same size (i.e. contain exactly the same number of
vectors). However, to prove this, we first need to develop some more theory.
Remark/Notation: Theorem 3.2.7 is one of the main reasons we care about bases.
Suppose B = {b1 , . . . , bn } (n ≥ 1) is a basis of a vector space V over a field F. Then
by Theorem 3.2.7, to every vector v ∈ V , we can associate a unique vector
α1
:= ...
v
B
αn
in Fn such that v = α1 b1 + · · · + αn bn ; the vector v B is called the coordinate
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 228
(b) Consider the basis B := {1, x, . . . , xn } of PnF . Then for all polynomials p(x)
=
n n
an x + · · · + a1 x + a0 in PF (where an , . . . , a1 , a0 ∈ F), we have that p(x) B =
T
a0 a1 . . . an .
Remark: When working with coordinate vectors, we must always specify which
basis we are working with. This is because the same vector of a given finite-
dimensional vector space may have different coordinate vectors with respect to
different bases.
Remark: Note that if we change the order of basis elements, then coordinate vectors
change. This is, in fact, the main reason for treating bases as ordered sets, rather
than simply sets. For instance, consider the following two bases of R2×2 :
n 1 0 0 1 0 0 0 0 o
B1 = , , , ;
0 0 0 0 1 0 0 1
n 1 0 0 0 0 1 0 0 o
B2 = , , , .
0 0 1 0 0 0 0 1
25
T
Indeed, for any x = x1 ... xn , we have that x = x1 e1 + · · · + xn en , and so x En
=
T
x1 . . . xn = x.
1 0 0 1 0 0
26
Indeed, we have that A = a1,1 0 0 + a1,2 0 0 + a2,1 1 0 +
0 0 0 0 0 0
0 0 0 0 0 0
a2,2 0 1 + a3,1 0 0 + a3,2 0 0 , and it follows that A C
=
0 0 1 0 0 1
T
a1,1 a1,2 a2,1 a2,2 a3,1 a3,1 .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 229
These two bases are the same except for the order in which matrices appear in them
(the second and third matrix get swapped). But note that for any matrix
a b
A =
c d
T T
in R2×2 , we have that A B = a b c d
and A B = a c b d .
1 2
So, A B ̸= A B (unless b = c).
1 2
and consequently,
0
..
.
0
bi 1 ← i-th entry
=
B
0
..
.
0
= eni .
i.e. bi B
Rescaling basis vectors. The following proposition states that if we rescale the
vectors of a basis using non-zero scalars, then we obtain another basis of the same
vector space.
Proof. This follows immediately from the definition of a basis and from Proposi-
tions 3.1.12 and 3.2.2.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 230
Since not all of α1 , . . . , αk are zero (indeed, αi ̸= 0), we see that A = {a1 , . . . , ak } is
linearly dependent. This proves (a).
We now prove (b). Assume that A is a spanning set of V , and that some
ai ∈ A is a linear combination of the other vectors in A. Then there exist scalars
α1 , . . . , αi−1 , αi+1 , . . . , αk ∈ F such that
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 231
Now, fix any vector v ∈ V . We must show that v is a linear combination of vectors
in A \ {ai } = {a1 , . . . , ai−1 , ai+1 , . . . , ak }. Since A = {a1 , . . . , ak } is a spanning set
of V , we know that there exist scalars β1 , . . . , βk ∈ F such that v = β1 a1 + · · · + βk ak .
We now compute:
= β1 a1 + · · · + βi−1 ai−1 +
+βi (α1 a1 + · · · + αi−1 ai−1 + αi+1 ai+1 + · · · + αk ak )
+βi+1 ai+1 + · · · + βk ak
Proof. Exercise.
Proposition 3.2.13. Let V be a vector space over a field F, and let B = {b1 , . . . , bk }
be a spanning set of V . Let B ′ ⊆ B be such that every vector in B \ B ′ is a linear
combination of vectors in B ′ . Then B ′ is a spanning set of V .
B′ ⊆ B
e ⊆ B,
B
e is a spanning set of V ;
(The fact that Be exists follows from the fact that B ′ ⊆ B ⊆ B, and B is a spanning
e = B ′ , then we are done. So, assume that B ′ ⫋ B,
set of V .) If B e and fix some
v∈B ′
e \ B . Then v is a linear combination of the other vectors in B
e (because v is a
′ e \ {v} is
linear combination of the vectors in B ), and so by Proposition 3.2.11(b), B
a spanning set of V . But now B \ v contradicts the minimality of B.
e e
29
By definition, 0 is a linear combination of the empty set/list of vectors, and so if a1 = 0, then
a1 is, in fact, a linear combination of the empty list a1 , . . . , ai−1 .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 232
Our next theorem (Theorem 3.2.14) states that, given any spanning set B of a
vector space V over a field F, we can obtain a basis of V by possibly removing some
vectors from B. As we shall see later (see Theorem 3.2.19), any linearly independent
set in a finite-dimensional vector space can be extended to a basis; however, we
cannot prove this yet.
Theorem 3.2.14. Let V be a vector space over a field F, and let B = {b1 , . . . , bk }
be a spanning set of V . Then some subset of B is a basis of V .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 233
A
a
b a
B (B \ {b}) ∪ {a}
Proof. We may assume that A ̸⊆ B, for otherwise, the lemma is vacuously true.32
Fix any a ∈ A \ B. Then there exists an index i ∈ {1, . . . , k} such that a = ai . Since
ai ∈ V = Span(B), we know that there exist scalars α1 , . . . , αℓ ∈ F such that
ai = α1 b1 + · · · + αℓ bℓ .
Proof of the Claim. Suppose otherwise. Then for all j ∈ {1, . . . , ℓ} such that αj =
̸ 0,
33
we have that bj ∈ B ∩ A ⊆ A \ {ai }. But now ai is a linear combination of the
other vectors in the linearly independent set A,34 contrary to Proposition 3.2.11(a). ♦
Using the Claim, we fix an index j ∈ {1, . . . , ℓ} such that αj =
̸ 0 and bj ∈ B \ A.
We will show that (B \{bj })∪{ai } is a spanning set of V (this will complete the proof
of the lemma). Since bj ̸= ai ,35 we see that (B \ {bj }) ∪ {ai } = (B ∪ {ai }) \ {bj },
and we need to show that (B ∪ {ai }) \ {bj } is a spanning set of V . Since B is a
spanning set of V , so is B ∪ {ai }. In view of Proposition 3.2.11(b), it now suffices
to show that bj is a linear combination of the other vectors in B ∪ {ai }. Since
ai = α1 b1 + · · · + αℓ bℓ , we see that
Since αj ̸= 0, we know that αj has a multiplicative inverse αj−1 , and we deduce that
So, bj is indeed a linear combination of the other vectors in B ∪ {ai }, and we are
done.
32
Indeed, if A ⊆ B, then there are no vectors a ∈ A \ B, and so there is nothing to prove.
33
We are using the fact that ai ∈ A \ B, and so B ∩ A ⊆ A \ {ai }.
34
Indeed, since ai = α1 b1 + · · · + αℓ bℓ , we see that ai is a linear combination of those bj ’s for
which αj ̸= 0. But all such bj ’s belong to A \ {ai }.
35
This is because ai ∈ A, whereas bj ∈ B \ A.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 234
The Steinitz exchange lemma. Let V be a vector space over a field F, let
a1 , . . . , ak , b1 , . . . , bℓ ∈ V , and assume that a1 , . . . , ak are pairwise distinct and that
b1 , . . . , bℓ are pairwise distinct. Assume furthermore that A := {a1 , . . . , ak } is a
linearly independent set in V , and assume that B := {b1 , . . . , bℓ } is a spanning set
of V . Then k ≤ ℓ (i.e. |A| ≤ |B|). Moreover, there exists a set B ′ ⊆ B \ A such that
|B ′ | = |B| − |A| = ℓ − k and A ∪ B ′ is a spanning set of V .
B′ A B′
is a spanning set of V .
A ak
..
ap+t+1
ap+t
..
ap+2
ap+1
ap = bp
.. bi 2 bi 1 bi t
a1 = b1 B
36
Indeed, if A ⊆ B, then |A| ≤ |B|, and we may set B ′ := B \ A.
37
Since A ̸⊆ B, we see that p < k.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 235
is a spanning set of V . But note that |C| = ℓ = |B| and A ⊆ C. Thus, |A| ≤ |C| = |B|,
and so k ≤ ℓ. Next, set B ′ := {bp+1 , . . . , bℓ } \ {bi1 , . . . , bik−p }. Then B ′ ⊆ B \ A,
|B ′ | = (ℓ − p) − (k − p) = ℓ − k = |B| − |A|, and C = A ∪ B ′ is a spanning set of V .
This completes the argument.
Remark: For technical reasons (in order to get the set B ′ ), the Steinitz exchange
lemma assumes that the sets A and B contain no repetitions.38 However, if we only
care about the “|A| ≤ |B|” part of the Steinitz exchange lemma (which is what we
usually care about), then this assumption is not necessary. Indeed, suppose that V
is a vector space over a field F, and suppose that A is a linearly independent set of
vectors in V and that B is a spanning set of V (with repetitions allowed). Since A
is linearly independent, it contains no repetitions; however, B may possibly contain
repetitions. But then we let Be be the set obtained from B by eliminating repetitions.
Then B is still a spanning set of V , and by the Steinitz exchange lemma, we get that
e
|A| ≤ |B|
e ≤ |B|.
38
Actually, it would be possible to state and prove a version of the Steinitz exchange lemma that
allows repetitions. However, this would be notationally messy.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 236
Remarks:
Note that dim({0}) = 0 (where {0} is understood to be a vector space over an
arbitrary field F), because ∅ is a basis of {0}.
For any field F, we have that dim(Fn ) = n, because the standard basis of Fn
has n elements. We note, however, that the standard basis is not the only basis
of Fn (except in some very special cases; see Proposition 3.2.6).
Theorem 3.2.17. Let V be a finite-dimensional vector space over a field F, and set
n := dim(V ). Then both the following hold:
(a) every linearly independent set of vectors in V has at most n vectors;
(b) every spanning set of V has at least n vectors.
Proof. Fix a basis B = {b1 , . . . , bn } of V . Then B is both a linearly independent
set and a spanning set of V . Now, by the Steinitz exchange lemma, the number of
vectors in any linearly independent set of V is at most the number of vectors in the
spanning set B of V , which is n; so, (a) holds. On the other hand, by the Steinitz
exchange lemma, any spanning set of V has at least as many vectors as the linearly
independent set B; so, (b) holds.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 237
α1 a1 + · · · + αn an + αn+1 an+1 = 0.
−1 −1
If αn+1 ̸= 0, then an+1 = −αn+1 α1 a1 − · · · − αn+1 αn an , contrary to the fact that
an+1 ∈/ Span(a1 , . . . , an ). So, αn+1 = 0, and it follows that
α1 a1 + · · · + αn an = 0.
Our next theorem states that any linearly independent set of vectors in a finite-
dimensional vector space can be extended to a basis of that vector space.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 238
Remark: Suppose that V is a vector space over a field F. By Theorem 3.2.14, any
(finite) spanning set of V contains a subset that is a basis of V ; in particular, if a
vector space has a (finite) spanning set, then it is finite-dimensional.41 On the other
hand, by Theorem 3.2.19, if V is finite-dimensional, then any linearly independent
set in V can be extended to a basis of V .42
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 239
Theorem 3.2.21. Let V be a finite-dimensional vector space over a field F, and let
U be a subspace of V . Then all the following hold:
(a) U is finite-dimensional;
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 240
x2
U = Span(a)
0
x1
e2
0
x2
e1
U = Span(e1, e2)
x1
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 241
Proof (outline). Let 0U be the zero vector of the vector space U , and let 0W be the
zero of the vector space W . Set m := dim(U ) and n := dim(W ), and fix a basis
{u1 , . . . , um } of U and a basis {w1 , . . . , wn } of W . It is then straightforward to
check that n o
(u1 , 0W ), . . . , (um , 0W ), (0U , w1 ), . . . , (0U , wn )
Recall from subsection 3.1.3 that if V is a vector space over a field F, and
U and W are subspaces of V , then U ∩ W and U + W are also subspaces of V .
Theorem 3.2.23 (below) specifies the relationship between the dimensions of these
four subspaces of V .
Theorem 3.2.23. Let V be a finite-dimensional vector space over a field F, and let
U and W be subspaces of V . Then U ∩ W and U + W are subspaces of V . Moreover,
U , W , U ∩ W , and U + W are all finite-dimensional and satisfy
Proof (outline). The fact that U ∩ W and U + W are subspaces of V follows from
the discussion in subsection 3.1.3. Since V is finite-dimensional, Theorem 3.2.21
guarantees that all its subspaces are finite dimensional; in particular, U , W , U ∩ W ,
and U + W are all finite-dimensional. Set m := dim(U ), n := dim(W ), and
p := dim(U ∩ W ). Fix a basis {v1 , . . . , vp } of U ∩ W . Then {v1 , . . . , vp } is a
linearly independent set in the finite-dimensional vector space U , and so by Theo-
rem 3.2.19, it can be extended to a basis {v1 , . . . , vp , u1 , . . . , um−p } of U .46 Similarly,
{v1 , . . . , vp } can be extended to a basis {v1 , . . . , vp , w1 , . . . , wn−p } of W .47 It is now
straightforward to check that
n o
v1 , . . . , vp , u1 , . . . , um−p , w1 , . . . , wn−p
dim(U + W ) = p + (m − p) + (n − p) = m + n − p.
46
We are using the fact that dim(U ) = m, and so to extend the linearly independent set
{v1 , . . . , vp } to a basis of U , we must add precisely m − p suitably chosen vectors to this set.
47
We are using the fact that dim(W ) = n, and so to extend the linearly independent set
{v1 , . . . , vp } to a basis of W , we must add precisely n − p suitably chosen vectors to this set.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 242
= m+n
= dim(U ) + dim(W ),
If V is a vector space over a field F and U and W are its subspaces such that
U ∩ W = {0} and V = U + W , then we say that V is the direct sum of U and W , and
we write V = U ⊕ W . If V = U ⊕ W is also finite-dimensional, then Theorem 3.2.23
immediately implies that dim(V ) = dim(U ) + dim(W ).48 Moreover, we have the
following theorem.
Theorem 3.2.24. Let V be a vector space over a field F, and let U and W be
subspaces of V such that V = U ⊕ W . Then for all v ∈ V , there exist unique u ∈ U
and w ∈ W such that v = u + w.
Proof. Exercise.
Span(B) = α1 v1 + · · · + αk vk | v1 , . . . , vk ∈ B, α1 , . . . , αk ∈ F .50
1. B is linearly independent;
2. V = Span(B).
With a basis defined in this way, it is possible to show that every vector space has
a (possibly infinite) basis. However, the proof uses “Zorn’s lemma” (an equivalent of
the “Axiom of Choice,” which is studied in set theory) and is non-constructive. So,
48
This is because dim(U ∩ W ) = 0.
49
So, B is linearly independent if and only if all finite subsets of B are linearly independent.
50
So, Span(B) is the set of vectors that can be expressed as a linear combination of finitely many
vectors in B.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 243
it is possible to show that every vector space has a basis, but for some vector spaces,
we have no idea what a basis might look like. For instance, consider the set of all
functions from R to R; this set is a vector space (over R) and therefore has a basis,
but it is not known what a basis of this vector space might look like.
In some cases, though, we can get a “nice” infinite basis. For instance, PR has a
basis {1, x, x2 , x3 , x4 , . . . }.
Proof. This is essentially “obvious,” since transposes turn rows into columns and
vice versa. However, let us give a formal proof of (a). The proof of (b) is similar and
is left as an exercise. T
a1
T ..
Set A = a1 . . . am , so that A = . . By definition, we have that
aTm
Col(A) = Span(a1 , . . . , am ) and Row(AT ) = Span(aT1 , . . . , aTm ). Now, to prove (a),
we must prove the following two inclusions:
51
More precisely, if A = a1 . . . am , then Col(A) := Span(a1 , . . . , am ). The fact that
Col(A) really is a subspace of Fn follows from Theorem 3.1.11.
r1
52
More precisely, if A = ... (i.e. r1 , . . . , rn are the rows of A, appearing in A in that order,
rn
from top to bottom), then Row(A) := Span(r1 , . . . , rn ). The fact that Row(A) really is a subspace
of F1×m follows from Theorem 3.1.11.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 244
uT = (α1 a1 + · · · + αm am )T
= α1 aT1 + · · · + αm aTm ,
= α1 (aT1 )T + · · · + αm (aTm )T
= α1 a1 + · · · + αm am ,
Proposition 3.3.2. Let F be a field, and let A ∈ Fn×m be a matrix. Then both the
following hold:
Ax | x ∈ Fm
= by Proposition 1.4.4.
53
Indeed, we have shown that any element u of Col(A) is the transpose of some element (namely, uT )
of Row(AT ). So, we have proven (1).
54
Note that in the expression xA, we have that x is a row vector with n entries.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 245
T T
= (A x) | x ∈ Fn by (a)
T
= x A | x ∈ Fn
xA | x ∈ F1×n .
=
Our main goal in this section is to give a recipe for finding a basis of the column
space and the row space of a matrix (see Theorems 3.3.4 and 3.3.9). As we shall see,
both of those spaces have dimension precisely rank(A). We begin with a technical
proposition.
Proposition 3.3.3. Let F be a field, let a1 , . . . , ak ∈ Fn , and let B ∈ Fn×n be an
invertible matrix. Then both the following hold:
(a) {a1 , . . . , ak } is linearly independent if and only if {Ba1 , . . . , Bak } is linearly
independent;
α1 a1 + · · · + αk ak = 0.
α1 a1 + · · · + αk ak = 0.
α1 (Ba1 ) + · · · + αk (Bak ) = 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 246
Bv = α1 (Ba1 ) + · · · + αk (Bak ).
Theorem 3.3.4. Let F be a field, and let A ∈ Fn×m . Then the pivot columns of A
form a basis of Col(A). Moreover, dim Col(A) = rank(A).
Proof. Since r := rank(A) is equal to the number of pivot columns of A the first
statement implies the second.
It remains to prove the first statement. Set A = a1 . . . am . Let ai1 , . . . , air
(with 1 ≤ i1 < · · · < ir ≤ m) be the pivot columns of A. We must show that
{ai1 , . . . , air } is a basis of Col(A).
Set U := RREF(A). Then A ∼ U , and so by Theorem 1.11.13, there
exists an
invertible matrix B ∈ Fn×n such that U = BA = Ba1 . . . Bam . But now
(ii) for all j ∈ {1, . . . , r}, we have that Baij = enj ;55
(iii) in any column of U , only the top r entries may possibly be non-zero (the other
entries are all zero).
Clearly, {en1 , . . . , enr } is a linearly independent set; so, by (ii), {Bai1 , . . . , Bair } is a
linearly independent set. Consequently, by Proposition 3.3.3(a), {ai1 , . . . , air } is a
linearly independent set. Moreover, it is clear that any vector in Fn in which only the
top r entries may possibly be non-zero (and the other entries are all zero), is a linear
combination ofvectors en1 , . . . , enr . So, (i), (ii), and (iii) together imply that every
column of U = Ba1 . . . Bam is a linear combination of vectors Bai1 , . . . , Bair.
But now by Proposition 3.3.3(b), we see that every column of A = a1 . . . am
is a linear combination of vectors ai1 , . . . , air . So, by Propositon 3.2.13, {ai1 , . . . , air }
55
As usual, en n n
1 , . . . , en are the standard basis vectors of F .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 247
is a spanning set of Col(A).56 It now follows that {ai1 , . . . , air } is a basis of Col(A),
and we are done.
Warning: Make sure you use the pivot columns of A itself, and not of one of its
row echelon forms!
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 248
and vectors
1 2
1 0
b =
1 and 2 ,
c =
1 1
all with entries in Z3 .
(a) Find a basis A for Col(A).
(b) Find the coordinate vectors of all the columns of A with respect to the basis A.
(c) Determine whether b ∈ Col(A), and if so, compute the coordinate vector b A ;
(d) Determine whether c ∈ Col(A), and if so, compute the coordinate vector c A .
A b c = a1 a2 a3 a4 b c
1 1 2 2 0 1 2
1 2 1 2 1 1 0
=
2
.
0 0 1 1 1 2
1 0 0 2 1 1 1
0 0 0 0 0 1 0
where for emphasis, we colored the pivot columns to the left of the vertical dotted line
red and to the right of the vertical dotted line blue. By focusing on the submatrix
to the left of the vertical dotted line, we see that the pivot columns of A are its first,
second, and fifth column. So, by Theorem 3.3.4,
1 1 0
n 1 2 1 o
A := {a1 , a2 , a5 } = , ,
2 0 1
1 0 1
1 1 2 2 0
1 2 1 2
, and a5 = 1 .
57
So, a1 =
2 , a2 = 0
, a3 =
0 , a4 = 1
1
1 0 0 2 1
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 249
0
0
a2 = 0a1 + 1a2 + 0a5 , and so a2 A = 1 ;
0
0
a3 = 0a1 + 2a2 + 0a5 , and so a3 A = 2 ;
0
2
a4 = 2a1 + 0a2 + 0a5 , and so a4 A = 0 ;
0
0
a5 = 0a1 + 0a2 + 1a5 , and so a5 A = 0 .
Remark: Note that our solution roughly follows the recipe from subsection 1.5.1,
albeit with some modifications. For each pivot column ai , we simply get that
that it is equal to “1 times itself, plus 0 times all the other pivot columns.”
For
each non-pivot column ai , we focus on the submatrix of RREF A b c
consisting of its leftmost i columns, we ignore any non-pivot columns other than ai
itself, and we express ai as a linear combination of the pivot columns to the left of
it (for the pivot columns to the right of it, we simply get the weight/scalar 0). For
example, for the non-pivot
column a4 , we first focus on the first four columns of
RREF A b c :
1 0 0 2
0 1 2 0
0 0 0 0 ,
0 0 0 0
we ignore any non-pivot columns other than the fourth column itself,58 and we
express the fourth column as a linear combination of the pivot columns. This yields
a4 = 2a1 + 0a2 . To express a4 as a linear combination of all the pivot columns
58
In this case, we ignore the third column.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 250
of A, we simply add the remaining pivot columns with weight 0 at the front, i.e.
a4 = 2a1 + 0a2 + 0a5 . Now we can read off the coordinate vector of a4 with respect
T
to A: a4 A = 2 0 0 .
It remains to deal with vectors b and c. Here again, we essentially follow the
recipe from subsection 1.5.1. Since b is a pivot column of A b c , we see that
b cannot be written as a linear combination of the columns of A, and it follows
that b ∈ / Col(A). On the other hand, c is not a pivot column of A b c ;
consequently, c can indeed be expressed as a linear combination
of the columns of A,
and in particular, c ∈ Col(A). From the matrix RREF A b c , we read off
T
c = 1a1 + 1a2 + 0a5 , which yields c A = 1 1 0 .
Using Proposition 3.3.1 and Theorem 3.3.4, we can also compute a basis of the
row space of a matrix (see Example 3.3.7 below). However, we will later give another
way of computing a basis of the row space (see Theorem 3.3.9), one that implies that
the dimension of the row space of a matrix is equal to the rank of that matrix.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 251
Thus, the pivot columns of AT are its first, third, and fourth column. By Theo-
rem 3.3.4, it follows that
1 1 1
n 0 2 1
o
0 , 1 , 2
2 1 2
1 2 1
is a basis of Row(A).
Proposition 3.3.8. Let F be a field. Then any two row equivalent matrices in Fn×m
have the same row space.
Proof. We begin by showing that applying one elementary row operation to a matrix
does not alter the row space (see the Claim below).
an bn
of A appearing in that order in A, from top to bottom, and similar for B). By
definition, Row(A) = Span(a1 , . . . , an ) and Row(B) = Span(b1 , . . . , bn ).
Since B is obtained from A by performing one elementary row operation R, we
know that A can be obtained from B by performing one elementary row operation
(the one that “undoes” R). So, it is enough to show that Row(A) ⊆ Row(B), for
then an analogous argument will establish that Row(B) ⊆ Row(A), and then the
result will follow.
If B is obtained by swapping two rows of A, then obviously, Row(A) = Row(B).
Next, suppose that B is obtained by multiplying one row of A (say, the i-th row)
by a non-zero scalar α ∈ F. Then bi = αai and bj = aj for all j ∈ {1, . . . , n} \ {i}.
Now, fix v ∈ Row(A); we must show that v ∈ Row(B). Since v ∈ Row(A), there
exist scalars α1 , . . . , αn ∈ F such that v = α1 a1 + · · · + αn an . But now
v = α1 a1 + · · · + αi−1 ai−1 + αi ai + αi+1 ai+1 + · · · + αn an
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 252
β1 b1 + · · · + βn bn = α1 a1 + · · · + αn an = v,
Theorem 3.3.9. Let F be a field, let A ∈ Fn×m , and let U be any matrix in row
echelon form that is row equivalent to A. 61 Then the non-zero rows of U form a
basis of Row(A). Moreover, dim Row(A) = rank(A).
Remark: If U has no non-zero rows (which can only happen if A is the zero matrix,
in which case Row(A) = {0}, where 0 is the zero vector in F1×m ), then ∅ is a basis
of Row(A).
Proof. Since r := rank(A) is equal to the number of non-zero rows of U , the first
statement implies the second. Moreover, by Proposition 3.3.8, Row(A) = Row(U ).
So, it suffices to show that the non-zero rows of U form a basis of Row(U ). Let
u1 , . . . , ur be the non-zero rows of U , appearing in that order (from top to bottom)
in U .62 We must show that {u1 , . . . , ur } is a basis of Row(U ). Clearly, Row(U ) =
Span(u1 , . . . , ur ). It remains to show that {u1 , . . . , ur } is a linearly independent set.
Fix scalars α1 , . . . , αr ∈ F such that α1 u1 + · · · + αr ur = 0. We must show that
α1 = · · · = αr = 0. Suppose otherwise, and let i ∈ {1, . . . , r} be the smallest index
such that αi ̸= 0. We may assume that the leading entry (i.e. the leftmost non-zero
59
So, we applied the elementary row operation “Rj → Rj + αRi .”
60
Technically, we are doing an induction on the number of elementary row operations. (Details?)
61
It may be that U = RREF(A), but this assumption is not necessary. U may be any matrix in
row echelon form obtained from A via a sequence of elementary row operations. For instance, U
may be the matrix obtained from A by performing only the “forward” part of the row reduction
algorithm in order to transform A into a matrix in row echelon form.
62
It is possible that r = 0. In that case, we have that U = On×m (and consequently, A = On×m ),
and u1 , . . . , ur is an empty list of vectors.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 253
entry) of the row ui is in position j. But since U is in row echelon form, the leading
entries of ui+1 , . . . , ur are all strictly to the right of the leading entry of ui , and so
their j-th entry is 0. Since α1 = · · · = αi−1 = 0 (by the minimality of i), it follows
that the j-th entry of α1 u1 + · · · + αr ur is non-zero,63 contrary to the fact that
α1 u1 + · · · + αr ur = 0.
0 1 −2 2 2 1
0 1 2
(c) The non-zero rows of U form a basis of Row(A). So, the following is a basis
of Row(A):
n o
3 −9 12 −9 6 15 , 0 2 −4 4 2 −6 , 0 0 0 0 1 4 .
63
Indeed, it is equal to αi ui,j , where ui,j is the i, j-th entry of the matrix U . Since αi and ui,j
are both non-zero, we see that αi ui,j ̸= 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 254
Remark: We could also have computed a basis of Row(A) using the method
described in Example 3.3.7 (i.e. by finding a basis of Col(AT ) and then taking the
transpose of the basis vectors in order to obtain a basis of Row(A)). However, this
would have meant having to row reduce twice. Indeed, we would row reduce A in
order to find a basis of Col(A), and then we would row reduce AT in order to find
a basis of Row(A). On the other hand, the method from Example 3.3.7 has the
advantage that it produces a basis of Row(A) all of whose elements are rows of the
original matrix A itself (which was not the case for the basis of Row(A) that we
obtained above).
Corollary 3.3.11. Let F be a field, and let A ∈ Fn×m . Then both the following hold:
(a) dim Col(A) = dim Row(A) = rank(A);
Proof. Part (a) follows immediately from Theorems 3.3.4 and 3.3.9. For (b), we
observe that
rank(A) = dim Col(A) by (a)
= dim Row(AT )
by Proposition 3.3.1
= rank(AT ) by (a),
3.3.2 The rank of a matrix and elementary row and column opera-
tions
We introduced elementary row operations in subsection 1.3.2, and we have used them
in many contexts throughout these lecture notes. Elementary column operations are
defined completely analogously, only for columns instead of rows. Let us be fully
precise. There are three types of elementary column operations on a matrix (with
entries in some field F), listed below.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 255
Elementary column operations should not be used for solving linear systems. How-
ever, Proposition 1.6.2 and Corollary 3.3.11(b) readily imply that both elementary
row operations and elementary column operations preserve rank. This is stated
formally by the proposition below.
where both instances of (*) follow from Corollary 3.3.11(b), and (**) follows from
Proposition 1.6.2.
Remark: We could, of course, simply row reduce the matrix A, and count the number
of pivot columns (or the number of non-zero rows) of the matrix RREF(A). However,
to illustrate Proposition 3.3.12, we will instead apply a sequence of elementary row
and column operations to the matrix A.
Solution. We compute:
−1
2 −3 5
rank(A) = rank 2 −4 6 7
1 −1 3 7
64
Indeed, if one matrix can be obtained from another via an elementary row operation, then the
two matrices are row equivalent (by definition). So, by Proposition 1.6.2, such two matrices have
the same rank.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 256
C2 →C2 +2C1
C3 →C3 −3C1 −1 0 0 0
C4 →C4 +5C1
= rank 2 0 0 17
1 0 0 12
R2 →R2 +2R1 −1 0 0 0
R3 →R3 +R1
= rank 0 0 0 17
0 0 0 12
12
R3 →R3 − 17 R2
−1 0 0 0
= rank 0 0 0 17
0 0 0 0
= 2.
(a) the columns of A are linearly independent if and only if rank(A) = m (i.e. A has
full column rank);
(b) the columns of A span Fn (i.e. Col(A) = Fn ) if and only if rank(A) = n (i.e. A
has full row rank);
(c) the rows of A are linearly independent if and only if rank(A) = n (i.e. A has full
row rank);
(d) the rows of A span F1×m (i.e. Row(A) = F1×m ) if and only if rank(A) = m (i.e.
A has full column rank).
Proof. Part (a) follows from Proposition 3.2.1, and part (b) follows from Proposi-
tion 3.1.10.
Further, by Corollary 3.3.11(b), we have that rank(AT ) = rank(A). In particular,
A has full column rank if and only if A has full row rank,65 and AT has full row
T
65
Indeed AT is an m × n matrix, and so
(∗)
⇐⇒ rank(A) = n
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 257
rank if and only if A has full column rank.66 So, by applying (a) to AT , we obtain (c),
and by applying (b) to AT , we obtain (d).
Recall that a square matrix has full rank if and only if it is invertible (see
Corollary 1.11.10). For square matrices of full rank, Theorem 3.3.14 yields the
following corollary.
Corollary 3.3.15. Let F be a field, and let A ∈ Fn×n be a square matrix. Then
the following are equivalent:
(a) rank(A) = n;
(b) rank(AT ) = n;
Proof. By Corollary 3.3.11(b), we have that rank(A) = rank(AT ), and so (a) and (b)
are equivalent.67
The fact that (a) and (c) are equivalent follows from Theorem 3.3.14(a),68 the
fact that (a) and (d) are equivalent follows from Theorem 3.3.14(b),69 , and the fact
that that (a) and (e) are equivalent follows from Proposition 3.2.6.
So far, we have shown that (a), (b), (c), (d), and (e) are equivalent.
The equivalence of (a), (c), (d), and (e) applied to AT yields the equivalence
of (b), (f), (g), and (h). This completes the argument.
66
Indeed, AT is an m × n matrix, and so
(∗)
⇐⇒ rank(A) = m
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 258
Proposition 3.3.16. Let F be a field, and let A ∈ Fn×m . Then all the following
hold:
(a) for all invertible matrices S ∈ Fn×n , we have that rank(SA) = rank(A);
(b) for all invertible matrices S ∈ Fm×m , we have that rank(AS) = rank(A);
(c) for all invertible matrices S1 ∈ Fn×n and S2 ∈ Fm×m , we have that rank(S1 AS2 ) =
rank(A).
Proof. We first prove (a). Fix an invertible matrix S ∈ Fn×n . By Theorem 1.11.13,
A and SA are row equivalent, and so by Proposition 1.6.2, they have the same rank.
This proves (a).
We now prove (b). Fix an invertible matrix S ∈ Fm×m . Then by the Invertible
Matrix Theorem (version 1; see subsection 1.11.7), S T is also invertible. We now
compute:
= rank S T AT
by Proposition 1.8.1(d)
Our next theorem states that the rank of a product of two matrices is no greater
than the minimum of the ranks of the two matrices.
Theorem 3.3.17. Let F be a field, and let A ∈ Fn×m and B ∈ Fm×p . Then
n o
rank(AB) ≤ min rank(A), rank(B) .
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 259
Proof. Set A = a1 . . . am and B = b1 . . . bp . We must show that
rank(AB) ≤ rank(A) and rank(AB) ≤ rank(B).
We first prove that rank(AB) ≤ rank(A). By definition, we have that AB =
Ab1 . . . Abp , and in particular, every column of AB is a linear combination of
the columns of A,70 i.e. every column of AB belongs to Span(a1 , . . . , am ) = Col(A).
Since Col(A) is a subspace of Fn (and is therefore a vector space in its own right),
Theorem 3.1.11(b) now guarantees that Col(AB) = Span(Ab1 , . . . , Abp ) is a subspace
of Col(A).71 Since Col(A) is finite-dimensional, Theorem 3.2.21 now implies that
dim Col(AB) ≤ dim Col(A) ,
where both instances of (*) follow from Theorem 3.3.4 (or alternatively, from Corol-
lary 3.3.11(a)).
We have now shown that rank(AB) ≤ rank(A). A completely analogous argument
shows that rank(B T AT ) ≤ rank(B T ), and we deduce that
(∗) (∗)
rank (AB)T = rank(B T AT ) ≤ rank(B T )
rank(AB) = = rank(B)
Left and right inverses. Suppose that A ∈ Fn×m , where F is some field. A left
inverse of A is a matrix B ∈ Fm×n such that BA = Im , and a right inverse of A is a
70
T
is any vector in Fm , then Ax = x1 a1 + · · · + xm am , which is
Indeed, if x = x1 . . . xm
a linear combination of the columns of A.
71
Indeed, we have shown that every column of AB belongs to Col(A), that is, that Ab1 , . . . , Abp ∈
Col(A). Since Col(A) is a vector space (because it is a subspace of Fn ), Theorem 3.1.11(b) guarantees
that Span(Ab1 , . . . , Abp ) is a subspace of Col(A). But Span(Ab1 , . . . , Abp ) = Col(AB). So,
Col(AB) is a subspace of Col(A).
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 260
matrix C ∈ Fm×n such that AC = In . Thus, a left inverse (resp. right inverse) of a
matrix A is a matrix that we can multiply A by on the left (resp. on the right) in
order to obtain the identity matrix of the appropriate size. Consider, for example,
matrices
1/2 0
2 0 0
A1 = and A2 = 0 0 ,
0 0 1/3
0 3
with entries understood to be in R. Then A1 A2 = I2 , and consequently, A1 is a left
inverse of A2 , and A2 is a right inverse of A1 . Obviously, a matrix need not have a
left or a right inverse. For example, zero matrices have no left inverses and no right
inverses. On the other hand, a matrix may possibly have more than one left inverse
or more than one right inverse.72 However, as Corollary 3.3.19 (below) shows, any
matrix A that has both a left inverse and a right inverse is in fact invertible (and
in particular, square), and moreover, both its left inverse and its right inverse are
unique are equal to A−1 .
Corollary 3.3.19. Let F be a field, let A ∈ Fn×m be a matrix, and assume that
B ∈ Fm×n is a left inverse of A (i.e. BA = Im ) and that C ∈ Fm×n is a right inverse
of A (i.e. AC = In ). Then A is invertible (and in particular square, i.e. m = n),
and B = C = A−1 .
Proof. First, we have that
where (*) follows from the fact that BA = Im , (**) follows from Theorem 3.3.17,
and (***) follows from Proposition 1.6.3 (because A is an n × m matrix and B is an
m × n matrix). Since AC = In , an analogous argument establishes that n ≤ m (we
simply use the fact that AC = In instead of BA = Im ). So, m = n. In particular,
we have that A, B, C ∈ Fn×n , and that BA = Im = In and AC = In . But now
B = BIn = B(|{z}
AC ) = (|{z}
BA )C = In C = C.
=In =In
Remark: Corollary 3.3.19 is the reason that we defined invertibility only for square
matrices. Any reasonable definition of an invertible matrix would entail the existence
of both a left and a right inverse for that matrix, and by Corollary 3.3.19, only
square matrices can have both a left and a right inverse.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 261
Remark: Note that Corollary 3.3.20 implies that if a square matrix A has a left or
a right inverse B, then B is in fact a “two-sided inverse” of A, i.e. the (ordinary)
inverse of A, and in particular, A is invertible.
= rank(AB) because AB = In
n o
≤ min rank(A), rank(B) by Theorem 3.3.17
n o
≤ max rank(A), rank(B)
which in turn implies that rank(A) = rank(B) = n. But now the Invertible Matrix
Theorem (version 1; see subsection 1.11.7) guarantees that A and B are invertible.
Since AB = In , Proposition 1.11.3 now implies that A−1 = B and B −1 = A.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 262
Remark: Proposition 3.3.21 will work for any basis {b1 , . . . , bn } of Fn . However,
in practice, it is usually easiest to use the standard basis En = {e1 , . . . , en } of Fn .
0 1
with entries understood to be in Z2 . Extend the linearly independent set {a1 , a2 } to
a basis of Z42 . (Assume that the set {a1 , a2 } is indeed linearly independent.)
Solutution. We apply Proposition 3.3.21 to the linearly independent set {a1 , a2 } and
the standard basis E4 = {e1 , e2 , e3 , e4 } of Z42 . We form the matrix
1 0 1 0 0 0
1 1 0 1 0 0
C := a1 a2 e1 e2 e3 e4 = 0 0 0 0 1 0 .
0 1 0 0 0 1
By row reducing, we obtain
1 0 0 1 0 1
0 1 0 0 0 1
RREF(C) =
0
,
0 1 1 0 1
0 0 0 0 1 0
74
Indeed, we have that
⊇ Span(b1 , . . . , bn )
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 263
and we see that the pivot columns of C are the first, second, third, and fifth column.
It follows that
1 0 1 0
n 1 1 0
0 o
{a1 , a2 , e1 , e3 } = ,
0 , ,
0 0 1
0 1 0 0
0 0 2 2
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 264
Notation: In some texts, notation Ker(A) is used instead of Nul(A). “Ker” stands
for “kernel.”
Proposition 3.3.25. Let F be a field, and let A ∈ Fn×m . Then Nul(A) is a subspace
of Fm .
Terminology: The dimension of Nul(A) is called the nullity of the matrix A.
= 0,
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 265
= α0 because u ∈ Nul(A)
= 0,
and so αu ∈ Nul(A). Theorem 3.1.7 now guarantees that Nul(A) is a subspace
of Fm .
Proposition 3.3.26. Let F be a field, and let A ∈ Fm×n . Then the columns of A
are linearly independent if and only if Nul(A) = {0}.
Proof. This essentially follows from the definition of Nul(A) and from Proposi-
tion 3.2.1. Indeed, by definition, Nul(A) is the set of all solutions of the homogeneous
matrix-vector equation Ax = 0; consequently,
the homogeneous matrix-vector equation Ax = 0
Nul(A) = {0} ⇐⇒
has only the trivial solution (i.e. the solution x = 0)
(∗)
⇐⇒ the columns of A are linearly independent,
where (*) follows from Proposition 3.2.1.
Example 3.3.27. Let
1 0 1 0 1
A = 0 1 0 1 0 ,
1 1 1 1 1
with entries understood to be in Z2 . Find a basis of Nul(A). What is dim Nul(A) ?
Proof. We begin by finding the general solution of the homogeneous matrix-vector
equation Ax = 0.77 By row reducing, we get
1 0 1 0 1
RREF(A) = 0 1 0 1 0 .
0 0 0 0 0
The general solution of Ax = 0 is
r+t
s
x = r
,
where r, s, t ∈ Z2 ,
s
t
77
As discussed in subsection 1.3.4 (see Example 1.3.17), when solving a homogeneous linear
system, we need only row reduce the coefficient matrix, and not the whole augmented matrix. The
same obviously applies to homogeneous matrix-vector equations.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 266
that is,
1 0 1
0
1
0
x = r
1 + s
0 + t
0 ,
where r, s, t ∈ Z2 .
0 1 0
0 0 1
So,
1 0 1
n
0
1 0 o
B :=
1 ,
0, 0
0 1 0
0 0 1
is a basis of Nul(A), and it follows that dim Nul(A) = 3.
Remark: It is obvious that B spans the solution set of Ax = 0, that is, that B is
a spanning set of Nul(A). However, it might not be immediately obvious that B
is linearly independent. In view of Proposition 3.2.11(a), it suffices to show that
no vector in B is a linear combination of the other vectors in B. But this follows
immediately from the fact that each vector in B has a non-zero entry in a position
in which all the other vectors of B have a zero. The non-zero entries in question are
boxed below:
1 0 1
n 0 1 0 o
B := 1 , 0 , 0 .
0 1 0
0 0 1
Note that the boxed entries correspond to the entries in which our parameters (in
this case, r, s, t) appear for the first time, counting from bottom up, in our general
solution of the homogeneous matrix-vector equation Ax = 0, as indicated below:
r+t
s
x = r ,
where r, s, t ∈ Z2 .
s
t
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 267
1. We note that dim Nul(A) (i.e. the number of vectors in any basis of Nul(A))
will always be equal to the number of free variables in the general solution
of the homogeneous matrix-vector equation Ax = 0. We omit a fully formal
proof of this, but the basic argument is as in our solution of Example 3.3.27.
The rank–nullity theorem (matrix version). Let F be a field, and let A ∈ Fn×m .
Then
rank(A) + dim Nul(A) = m
|{z} .
= number of
columns of A
Remark: We give a slightly informal proof of the theorem. We will give a fully formal
proof of the (more general) rank-nullity theorem for linear functions in chapter 4
(see subsection 4.2.2). As we shall see in subsection 4.2.2, the rank-nullity theorem
for linear functions immediately implies the rank-nullity theorem for matrices.
Remark: The diagram below (informally) summarizes the idea behind the rank-
nullity theorem for matrices A ∈ Fn×m (where F is a field).
rank(A) + dim Nul(A) = m
|{z}
| {z } | {z }
= number of = number of = number of
pivot non-pivot columns of A
columns of A columns of A
= number of = number of
basic variables free variables
78
This last part (“the number of vectors in a basis of Nul(A) is equal to the number of free
variables”) is not fully justified, but you should be able to convince yourself that this is true by
reading the solution of Example 3.3.27 above.
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 268
Nul(A) = {x ∈ Fm | Ax = 0} by definition
= Nul(B) by definition.
= Nul(C) by definition.
This proves (b).
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 269
The Invertible Matrix Theorem (version 2). Let F be a field, and let A ∈ Fn×n
be a square matrix. Further, let f : Fn → Fn be given by f (x) = Ax for all x ∈ Fn .81
Then the following are equivalent:
(a) A is invertible (i.e. A has an inverse);
(b) AT is invertible;
(c) RREF(A) = In ;
(e) rank(A) = n;
(f ) rank(AT ) = n;
(h) the homogeneous matrix-vector equation Ax = 0 has only the trivial solution (i.e.
the solution x = 0);
(i) there exists some vector b ∈ Fn such that the matrix-vector equation Ax = b
has a unique solution;
(j) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has a unique solution;
(k) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has at most one
solution;
(m) f is one-to-one;
(n) f is onto;
(o) f is an isomorphism;
(p) there exists a matrix B ∈ Fn×n such that BA = In (i.e. A has a left inverse);
(q) there exists a matrix C ∈ Fn×n such that AC = In (i.e. A has a right inverse);
Irena Penev
Linear Algebra 1 & 2
Chapter 3. Vector spaces 270
Proof. The fact that (a)-(o) are equivalent follows from the Invertible Matrix Theorem
(version 1; see subsection 1.11.7). By definition, (a) implies (p) and (q). On the
other hand, Corollary 3.3.20 guarantees that any one of (p) and (q) implies (a).
By Corollary 3.3.15, (r)-(w) are equivalent to each other, as well as to (e). Finally,
Proposition 3.3.26 guarantees that (r) and (x) are equivalent. This completes the
argument.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 271
Chapter 4
Linear functions
Let us now take a look at a couple of examples (Examples 4.1.1 and 4.1.2). Recall
that a real vector space is a vector space over the field R.
Example 4.1.1. Let PR be the real vector space of all polynomials with coefficients
in R. Show that the function D : PR → PR given by
n n
ak xk kak xk−1
P P
D =
k=0 k=1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 272
Solution. We need to check that D satisfies the two axioms from the definition of a
linear function.
1. Fix p(x), q(x) ∈ PR . Then there exists an integer n ≥ 0 and real numbers
a0 , . . . , an , b0 , . . . , bn such that
n n
ak xk bk xk .
P P
p(x) = and q(x) =
k=0 k=0
Remark: Here, n is some non-negative integer such that deg p(x) , deg q(x) ≤ n.
The inequality may possibly be strict, i.e. it is possible that an = 0 or bn = 0.
We now compute:
n
P n
ak xk + bk xk
P
D p(x) + q(x) = D
k=0 k=0
n
P
= D (ak + bk )xk
k=0
n
k(ak + bk )xk−1
P
=
k=1
n
P n
P
= kak xk−1 + kbk xk−1
k=1 k=1
n
P n
P
= D ak xk + D ak xk
k=0 k=0
= D p(x) + D q(x) .
2. Fix p(x) ∈ PF and α ∈ F. Then there exists an integer n ≥ 0 and real numbers
a0 , . . . , an such that
n
ak xk .
P
p(x) =
k=0
We now compute:
Pn
ak xk
D αp(x) = D α
k=0
n
P
= D (αak )xk
k=0
n
k(αak )xk−1
P
=
k=0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 273
n
kak xk−1
P
= α
k=0
n
P
= αD ak xk
k=0
= αD p(x) .
Example 4.1.2. Let Diff(R) be the real vector space of all differentiable functions
from R to R, and let Func(R) be the real vector space of all functions from R to R.
Show that the function D : Diff(R) → Func(R) given by D(f ) = f ′ for all f ∈ Diff(R)
is linear. (As usual, f ′ denotes the derivative of f .)
Proof. 1. Fix f, g ∈ Diff(R). Then by the properties of the derivative, we have that
D(f + g) = (f + g)′ = f ′ + g ′ = D(f ) + D(g).
2. Fix f ∈ Diff(R) and α ∈ R. Then by the properties of the derivative, we have
that D(αf ) = (αf )′ = αf ′ = αD(f ).
From 1. and 2., we conclude that D is linear.
In the remainder of this section, we prove some basic properties of linear functions.
For the most part (though not exclusively), these are generalizations of the results
that we proved in section 1.10 for linear functions f : Fm → Fn (where F is a field).
As we shall see, most of the results readily generalize to linear functions between
arbitrary vectors spaces (over the same field), with one exception: linear functions
between general vector spaces do not have standard matrices. It is in fact possible to
define the matrix of a linear function between non-trivial,1 finite-dimensional vectors
spaces, but such matrices depend on the particular choice of basis of the domain and
codomain (see section 4.5).
(i) f is linear;
1
Recall that a vector space is trivial if it only contains the zero vector (i.e. if its dimension is 0),
and it is non-trivial if it contains at least one non-zero vector (i.e. if its dimension is greater than 0).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 274
Proof. This easily follows from the definition of a linear function. The details are
left as an exercise.
Proposition 4.1.4. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Then for all u1 , u2 ∈ U , we have that
where (*) follows from the linearity of f . By subtracting f (u2 ) from both sides, we
get that f (u1 − u2 ) = f (u1 ) − f (u2 ), which is what we needed to show.
Alternatively, we could observe that for all u1 , u2 ∈ U , we have the following:
Proposition 4.1.5. Let U and V be vector spaces over a field F, and let f : U → V be
a linear function. Then for all vectors u1 , . . . , uk ∈ U and all scalars α1 , . . . , αk ∈ F,
we have that
P k Pk
f αi ui = αi f (ui ),
i=1 i=1
Proof. This follows from the definition of a linear function via an easy induction on
k. The details are left as an exercise.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 275
We remark that our next proposition (Proposition 4.1.6) was already proven in the
context of linear functions from Fm to Fn , where F is a field (see Proposition 1.10.3).
Here, we prove the proposition more generally, with an essentially identical proof.
Proposition 4.1.6. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Then f (0) = 0.2
where both instances of (*) follows from Proposition 3.1.3(a), and (**) follows from
the fact that f is linear.
Proposition 4.1.7. Let U , V , and W be vector spaces over a field F. Then all the
following hold:
g◦f
f g
U V W
2
Technically, this means f (0U ) = 0V , where 0U is the zero vector in U , and 0V is the zero vector
in V .
3
As usual, the function f + g : U → V is defined by (f + g)(u) = f (u) + g(u) for all u ∈ U .
4
As usual, the function αf : U → V is defined by (αf )(u) = α f (u) for all u ∈ U .
5
As usual, the function g ◦ f : U → W is defined by (g ◦ f )(u) = g f (u) for all u ∈ U .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 276
Proof. We prove (c). The proofs of (a) and (b) are left as an exercise. Fix linear
functions f : U → V and g : V → W . We must show that g ◦ f is linear.
1. Fix u1 , u2 ∈ U . Then
(g ◦ f )(u1 + u2 ) = g f (u1 + u2 )
= g f (u1 ) + f (u2 ) because f is linear
= g f (u1 ) + g f (u2 ) because g is linear
= (g ◦ f )(u1 ) + (g ◦ f )(u2 ).
where (*) follows from the fact that f is linear, and (**) follows from the fact that g
is linear.
From 1. and 2., we conclude that g ◦ f is linear.
Given vector spaces U and V over a field F, the set of all linear functions from U to
V is denoted by Hom(U, V ).6 We note that Hom(U, V ) is a vector space over F. The
vector addition and scalar multiplication operations in Hom(U, V ) are the addition
and scalar multiplication of functions; by parts (a) and (b) of Proposition 4.1.7,
Hom(U, V ) is indeed closed under the addition and scalar multiplication of functions.
The zero vector in Hom(U, V ) is the zero function, i.e. the function f0 : U → V given
by f0 (u) = 0V for all u ∈ U , where 0V is the zero of the vector space V .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 277
for all subsets A′ ⊆ A, the set f [A′ ] := {f (a) | a ∈ A′ } is called the image of
A′ under the function f ;
Note that this means that Ker(f ) = f −1 [{0}], i.e. Ker(f ) is the preimage of the set
{0} under f . We further note the kernel is only defined for linear functions, and
not for general functions.
In the case of linear functions from Fm to Fn (where F is a field), Proposition 4.2.1
(below) gives the correspondence between the image and kernel of the linear function
on the one hand, and the column and null space of the standard matrix on the other
hand. Note, however, that the image and kernel are defined for all linear functions,
not just those from Fm to Fn (see Example 4.2.2 below).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 278
where (*) follows from Proposition 3.3.2(a), and (**) follows from the fact that A is
the standard matrix of f .
For (b), we observe that
(∗)
Nul(A) = {x ∈ Fm | Ax = 0} = {x ∈ Fm | f (x) = 0} = Ker(f ),
where (*) follows from the fact that A is the standard matrix of f .
Example 4.2.2. Let PR be the real vector space of all polynomials with coefficients
in R. Consider the function D : PR → PR given by
n n
ak xk ) = kak xk−1
P P
D(
k=0 k=1
Theorem 4.2.3. Let U and V be vector spaces over a field F, and let f : U → V be
a linear function. Then all the following hold:
Proof. Since U is a subspace of itself, (a) implies (b). Similarly, since Ker(f ) =
f −1 [{0}] and {0} is a subspace of V , we have that (c) implies (d). So, it suffices
to prove (a) and (c). We prove those two parts using Theorem 3.1.7. To avoid any
possible confusion, we will denote the zero vectors of the vector spaces U and V by
0U and 0V , respectively.
We first prove (a). Fix a subspace U ′ of U . We must show that f [U ′ ] is a
subspace of V . Since f : U → V and U ′ ⊆ U , we have that f [U ′ ] ⊆ V . In view of
Theorem 3.1.7, it now suffices to prove the following:
(i) 0V ∈ f [U ′ ];
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 279
where (*) follows from the fact that f is linear, and (**) follows from the fact that
u1 + u2 ∈ U ′ . This proves (ii).
It remains to prove (iii). Fix v ∈ f [U ′ ] and α ∈ F; we must show that αv ∈ f [U ′ ].
Since v ∈ f [U ′ ], we know that there exists some u ∈ U ′ such that v = f (u). Since
U ′ is a subspace of U , we have that αu ∈ U ′ .8 But now we have that
(∗) (∗∗)
αv = αf (u) = f (αu) ∈ f [U ′ ],
where (*) follows from the fact that f is linear, and (**) follows from the fact that
αu ∈ U ′ .
We have now proven (i), (ii), and (iii). So, by Theorem 3.1.7, we have that f [U ′ ]
is a subspace of V . This proves (a).
It remains to prove (c). Fix a subspace V ′ of V . We must show that f −1 [V ′ ] is a
subspace of U . Since f : U → V and V ′ ⊆ V , we have that f −1 [V ′ ] ⊆ U . In view of
Theorem 3.1.7, it now suffices to prove the following:
(i) 0U ∈ f −1 [V ′ ];
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 280
where (*) follows from the fact that f is linear. This proves (ii).
It remain to prove (iii). Fix u ∈ f −1 [V ′ ] and α ∈ F; we must show that
αu ∈ f −1 [V ′ ], i.e. that f (αu) ∈ V ′ . Since u ∈ f −1 [V ′ ], we know that v := f (u)
belongs to V ′ . Since V ′ is a subspace of V , we have that αv ∈ V ′ . We now have that
(∗)
f (αu) = αf (u) = αv ∈ V ′ ,
where (*) follows from the fact that f is linear. This proves (iii).
We have now proven (i), (ii), and (iii). So, by Theorem 3.1.7, we have that
f −1 [V ′ ] is a subspace of U . This proves (c).
Proof. To avoid any possible confusion, we denote by 0U the zero vector of the vector
space U , and we denote by 0V the zero vector of the vector space V . We need to
show that f is one-to-one if and only if Ker(f ) = {0U }.
Suppose first that f is one-to-one. By Proposition 4.1.6, we have that f (0U ) = 0V ,
and it follows that 0U ∈ Ker(f ). It remains to show that 0U is the only element
of Ker(f ). So, fix any u ∈ Ker(f ). Then f (u) = 0V = f (0U ), and so since f is
one-to-one, we have that u = 0U . This proves that Ker(f ) = {0U }.
Suppose now that Ker(f ) = {0U }. Fix u1 , u2 ∈ U , and assume that f (u1 ) =
f (u2 ); we must show that u1 = u2 . We note that
(∗) (∗∗)
f (u1 − u2 ) = f (u1 ) − f (u2 ) = 0V ,
where (*) follows from Proposition 4.1.4, and (**) follows from the fact that f (u1 ) =
f (u2 ). So, u1 − u2 ∈ Ker(f ). Since Ker(f ) = {0U }, it follows that u1 − u2 = 0U ,
and consequently, u1 = u2 . This proves that f is one-to-one.
and the nullity of f is dim(Ker(f )). We note that both the rank and the nullity of f
may possibly be infinite.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 281
f
Ker(f ) Im(f )
U V
Proposition 4.2.5. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Then rank(f ) ≤ dim(V ).
Proof. We may assume that n := dim(V ) is finite, for otherwise, this is immediate.
By Theorem 4.2.3,
Im(f ) is a subspace of V , and so by Theorem 3.2.21, we have
that dim Im(f ) ≤ dim(V ), i.e. rank(f ) ≤ dim(V ).
Proposition 4.2.6. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Assume that V is finite-dimensional. Then f is onto if and
only if rank(f ) = dim(V ).
(∗∗)
⇐⇒ dim Im(f ) = dim(V )
(∗∗∗)
⇐⇒ rank(f ) = dim(V ),
where (*) follows from the definition of an onto function, (**) follows from Theo-
rem 3.2.21 (since Im(f ) is a subspace of V , and V is finite-dimensional), and (***)
follows from the definition of rank.
Warning: Proposition 4.2.6 only applies to linear functions that have a finite-
dimensional codomain. Do not apply Proposition 4.2.6 to linear functions with
an infinite-dimensional codomain!
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 282
Proof. By Proposition 4.2.1, we have that Im(f ) = Col(A) and Ker(f ) = Nul(A).
The latter immediately implies (b). For (a), we observe that
(∗)
rank(f ) = dim Im(f ) = dim Col(A) = rank(A),
As we pointed out above, both the rank and the nullity of a linear function
f : U → V (where U and V are vector spaces over a field F) may possibly be infinite.
However, as the rank-nullity theorem for linear functions (below) states, if the domain
U is finite-dimensional, then both Im(f ) and Ker(f ) are finite-dimensional, and
moreover, the sum of their dimensions (i.e. the sum of rank and nullity of f ) is
precisely dim(U ). We also note that, together with Proposition 4.2.7, the rank-
nullity theorem for linear functions immediately implies the rank-nullity theorem for
matrices (the details are below).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 283
f Im(f )
um f (um)
... ...
uk+2 f (uk+2)
Ker(f ) uk+1 f (uk+1)
uk
...
0
u2
u1
U V
Claim 1. Vectors f (uk+1 ), . . . , f (um ) are linearly independent.
where (*) follows from the fact that f is linear (and more precisely, from Propo-
sition 4.1.5). But now we have that αk+1 uk+1 + · · · + αm um ∈ Ker(f ). Since
{u1 , . . . , uk } is a basis of Ker(f ), we have that αk+1 uk+1 + · · · + αm um is a linear
combination of the vectors u1 , . . . , uk , i.e. there exist scalars α1 , . . . , αk ∈ F such
that
αk+1 uk+1 + · · · + αm um = α1 u1 + · · · + αk uk .
But this implies that
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 284
Claim 2. Im(f ) = Span f (uk+1 ), . . . , f (um ) .
v = f (u)
= f (α1 u1 + · · · + αm um )
(∗)
= α1 f (u1 ) + · · · + αm f (um )
(∗∗)
= αk+1 f (uk+1 ) + · · · + αm f (um ),
where (*) follows from the fact that f is linear (and more precisely, from Proposi-
tion 4.1.5), and (**) follows from the fact that f (u1 ) = · · · = f (uk ) = 0 (because
u1 , . . . , uk ∈ Ker(f )). This proves that v is indeed a linear combination of the
vectors f (uk+1 ), . . . , f (um ), and we are done. ♦
Clearly, Claims 1 and 2 together imply that f (uk+1 ), . . . , f (um ) is a basis of
Im(f ). This completes the argument.
We are now ready to give a fully formal proof of the rank-nullity theorem for
matrices, one that relies on the rank-nullity theorem for linear functions, which we
just proved.
The rank–nullity theorem (matrix version). Let F be a field, and let A ∈ Fn×m .
Then
rank(A) + dim Nul(A) = m
|{z} .
= number of
columns of A
where (*) follows from Proposition 4.2.7, and (**) follows from the rank-nullity
theorem for linear functions.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 285
Corollary 4.2.8. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Then
rank(f ) ≤ min dim(U ), dim(V ) .
Remark: By definition, rank(f ) = dim Im(f ) . So, Corollary 4.2.8 states that the
dimension of the image of a linear function is at most the dimension of the domain
and also at most the dimension of the codomain. We note that in Corollary 4.2.8,
vector spaces U and V may possibly be infinite-dimensional.
Proof of Corollary 4.2.8. The fact that rank(f ) ≤ dim(V ) follows from Proposi-
tion 4.2.5. It remains to show that rank(f ) ≤ dim(U ). If dim(U ) = ∞, then this is
immediate. So, let us assume that U is finite-dimensional. Then
(∗)
rank(f ) ≤ rank(f ) + dim Ker(f ) = dim(U ),
where (*) follows from the rank-nullity theorem for linear functions.
Corollary 4.2.9. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Then for any subspace U ′ of U , we have that
U′ f [U ′]
U V
Proof. Consider the function f ′ := f ↾ U ′ (the restriction of f to U ′ ).12 Since U ′ is a
subspace of U and f : U → V is linear, we have that f ′ : U ′ → V is also linear. So,
(∗)
dim f [U ′ ] = dim f ′ [U ′ ] = dim Im(f ′ ) min dim(U ′ ), dim(V ) ,
≤
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 286
implies that f maps {0} onto {0}, maps any line through the origin onto either a
line through the origin or {0}, maps planes through the origin onto either planes
through the origin or lines through the origin or {0}. Similar remarks apply to
higher-dimensional generalizations of subspaces of Rm and Rn . (Compare these
remarks to the discussion in subsection 1.10.2.)
Linear functions between vector spaces of the same finite dimension. By the
Invertible Matrix Theorem (see subsection 3.3.7), for a linear function f : Fn → Fn
(where F is a field), the following are equivalent:
f is one-to-one;
f is onto;
f is an isomorphism.
Here, we assumed that the domain and the codomain of f are the same (namely, Fn ).
Using Theorem 4.2.4 (which states that a linear function is one-to-one if and only if
its kernel is {0}) and the rank-nullity theorem for linear functions, we can generalize
this to linear functions between two vector spaces of the same finite dimension.
(i) f is one-to-one;
(ii) f is onto;
Warning: Corollary 4.2.10 only works if U and V (the domain and codomain of our
linear function f ) are of the same finite dimension. Do not attempt to apply the
corollary to linear functions between infinite-dimensional vector spaces, or between
vector spaces of different dimension.
Proof of Corollary 4.2.10. By definition, (i) and (ii) together are equivalent to (iii).
So, it suffices to prove that (i) and (ii) are equivalent. By Theorem 4.2.4, we have
that f is one-to-one if and only if Ker(f ) = {0}, and by the rank-nullity theorem for
linear functions, we have that
rank(f ) + dim Ker(f ) = dim(U ).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 287
⇐⇒ dim Ker(f ) = 0
by the rank-nullity
⇐⇒ rank(f ) = dim(U )
theorem
by the definition
⇐⇒ dim Im(f ) = dim(U )
of rank(f )
because
⇐⇒ dim Im(f ) = dim(V )
dim(U ) = dim(V )
⇐⇒ f is onto V .
So, (i) and (ii) are equivalent. This completes the argument.
(b) f [U ′ ] = f Span(u
1 , . . . , uk ) = Span f (u1 ), . . . , f (uk ) , i.e. vectors f (u1 ), . . . , f (uk )
span f [U ′ ] = f Span(u1 , . . . , uk ) ;
uk
U′ f [U ′]
f (uk )
u2 f (u1)
u1
U V
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 288
Proof. The fact that U ′ is a subspace of U follows immediately from Theorem 3.1.11,
and the fact that f [U ′ ] is a subspace of V follows from Theorem 4.2.3(a). This
proves (a).
For (b), we have the following:
Span f (u1 ), . . . , f (uk ) = α1 f (u1 ) + · · · + αk f (uk ) | α1 , . . . , αk ∈ F
(∗)
n o
= f α1 u1 + · · · + αk uk | α1 , . . . , αk ∈ F
(∗∗)
= f (u) | u ∈ Span(u1 , . . . , uk )
= f Span(u1 , . . . , uk )
= f [U ′ ],
where (*) follows from the linearity of the f (and more precisely, from Proposi-
tion
4.1.5), and (**) follows from the fact that, by definition, Span(u1 , . . . , uk ) =
α1 u1 + · · · + αk uk | α1 , . . . , αk ∈ F .
It remains to prove (c). By hypothesis, {u1 , . . . , uk } is a spanning set of U ′ of
size k. So, by Theorem 3.2.14, some subset of that spanning set, say {ui1 , . . . , uim }
(with 1 ≤ i1 < · · · < im ≤ k) is a basis of U ′ . So, dim(U ′ ) = m ≤ k. But now
{ui1 , . . . , uim } is a spanning set of U ′ . So, by part (b) applied to the set {ui1 , . . . , uim }
(rather than to {u1 , . . . , uk }), we get that {f (ui1 ), . . . , f (uim )} is a spanning set of
f [U ′ ]. We now apply Theorem 3.2.14 again, and we deduce that some subset of
′ ′
{f (ui1 ), . . . , f (uim )} is a basis of f [U ], and consequently, dim f [U ] ≤ m. This
proves (c).
As an easy corollary of Theorem 4.2.11 for the case when the vectors u1 , . . . , uk
span the domain U , we obtain the following.
13
Here, the fact that rank(f
) = dim Im(f ) = dim f [U ] follows from the appropriate definitions.
The fact that dim f [U ] ≤ k follows from Theorem 4.2.11(c).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 289
(c) if f is onto and vectors u1 , . . . , uk span U , then vectors f (u1 ), . . . , f (uk ) span V ;
if f is 1-1
u1 , . . . , uk are =⇒ f (u1 ), . . . , f (uk ) are
(a)-(b)
linearly independent ⇐= linearly independent
always
if f is onto
=⇒
(c)-(d) u1 , . . . , uk span U f (u1 ), . . . , f (uk ) span V
⇐=
if f is 1-1
Proof of Theorem 4.2.13. Part (c) essentially follows from Corollary 4.2.12, so let us
prove it first. Assume that f is onto and that vectors u1 , . . . , uk span U . But then
(∗) (∗∗)
V = Im(f ) = Span f (u1 ), . . . , f (uk ) ,
where (*) follows from the fact that f is onto, and (**) follows from Corollary 4.2.12.
So, vectors f (u1 ), . . . , f (uk ) span V . This proves (c).
Next, we prove (d). Assume that f is one-to-one and that vectors f (u1 ), . . . , f (uk )
span V ; we must show that vectors u1 , . . . , uk span U , i.e. that any vector in U
can be written as a linear combination of the vectors u1 , . . . , uk . Fix u ∈ U . Since
f (u) ∈ V and since vectors f (u1 ), . . . , f (uk ) span V , we know that there exist scalars
α1 , . . . , αk ∈ F such that f (u) = α1 f (u1 ) + · · · + αk f (uk ). But now
(∗)
f (u) = α1 f (u1 ) + · · · + αk f (uk ) = f (α1 u1 + · · · + αk uk ),
where (*) follows from the fact that f is linear (and more precisely, from Proposi-
tion 4.1.5). Since f is one-to-one, we deduce that u = α1 u1 + · · · + αk uk , and so u
is indeed a linear combination of the vectors u1 , . . . , uk . This proves (d).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 290
We now prove (a). Assume that f is one-to-one and that vectors u1 , . . . , uk are
linearly independent in U . We must show that vectors f (u1 ), . . . , f (uk ) are linearly
independent in V . Fix scalars α1 , . . . , αk ∈ F such that
α1 f (u1 ) + · · · + αk f (uk ) = 0.
α1 u1 + · · · + αk uk = 0.
where (*) follows from the fact that f is linear (and more precisely, from Propo-
sition 4.1.5), (**) follows from the fact that α1 u1 + · · · + αk uk = 0, and (***)
follows from Proposition 4.1.6. But now since vectors f (u1 ), . . . , f (uk ) are linearly
independent, we now have that α1 = · · · = αk = 0. This proves (b).
(Actually, the above is true even if we allow A and B to be infinite, but to make
sense of the statement, we would need infinite cardinals. We omit the details.) In the
case of linear functions, Theorem 4.2.14 (below) gives us a very similar statement,
only involving dimension (rather than cardinality) of the domain and codomain. We
note that Theorem 4.2.14 is an easy corollary of Theorem 4.2.13. We also note that
the vector spaces U and V from the statement of Theorem 4.2.14 may possibly be
infinite-dimensional.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 291
Theorem 4.2.14. Let U and V be vector spaces over a field F, and let f : U → V
be a linear function. Then all the following hold:
Proof. Obviously, (a) and (b) together imply (c). So, it is enough to prove (a)
and (b).
(a) We prove the contrapositive: we assume that dim(U ) > dim(V ) (and in
particular, dim(V ) is finite), and we prove that f is not one-to-one. Set n := dim(V ).
Since dim(U ) > dim(V ), we know that U has a linearly independent set of size
greater than n. (Indeed, if U is finite-dimensional, then any one of its bases is a
linearly independent set of size dim(U ) > n, and if U is infinite-dimensional, then
Proposition 3.2.18 guarantees that U has linearly independent sets of any finite size.)
So, fix a linearly independent set {u1 , . . . , uk } of U , with k > n. Since dim(V ) = n,
Theorem 3.2.17(a) guarantees that the set f (u1 ), . . . , f (uk ) is linearly dependent.
But now Theorem 4.2.13(a) guarantees that f is not one-to-one.
(b) Assume that f is onto; we must show that dim(U ) ≥ dim(V ). We may
assume that n := dim(U ) is finite, for otherwise, we are done. We must show that
dim(V ) ≤ n. Fix any basis {u1 , . . . , un } of U . In particular, vectors u1 , . . . , un span
U , and so since f is onto, Theorem 4.2.13(c) guaranteesthat vectors f (u1 ), . . . , f (un )
span V . But then by Theorem 3.2.14, some subset of f (u1 ), . . . , f (un ) is a basis
of V , and it follows that dim(V ) ≤ n.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 292
and moreover, the pivot columns of the matrix A u1 . . . uk form a basis of
f [U ].
(∗)
= Span f (u1 ), . . . , f (uk )
(∗∗)
= Col f (u1 ) . . . f (uk )
(∗∗∗)
= Col Au1 . . . Auk
(∗∗∗∗)
= Col A u1 . . . uk ,
where (*) follows from Theorem 4.2.11(b), (**) follows from the definition of the
column space, and (***) follows from the fact that A is the standard matrix of f ,
and (****) follows from the definition of matrix multiplication. By Theorem 3.3.4,
the pivot columns of a matrix form a basis of the column space of that matrix, and
the result follows.
Example 4.2.16. Let f : Z52 → Z42 be the linear function whose standard matrix is
1 1 0 0 1
0 1 1 0 1
A = 1 0 1 0 0 ,
1 1 0 1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 293
1 1 0 1
1 1 0 0 1
0 1 1 0 1 0
1 0 1
A u1 u2 u3 u4 =
1 0
1 1 0 0
1 0 0
1 0 1 0
1 1 0 1 1
1 1 0 1
1 0 1 0
1 0 1 1
=
0
.
0 0 1
0 0 0 0
1 1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 294
−5 −3 −1
1 2 0 3 0 0 0
2 4 1 4 1 0 −1
A u1 u2 u3 = 2
= 0 0 0 .
2 2
1 2 1 1 0 0 0
1 1 1
So, A u1 u2 u3 is a zero matrix, and consequently, it has no pivot columns. It
follows that ∅ is a basis of f [U ].
Remark: So, we effectively got that f [U ] = {0}. The only basis of the trivial vector
space {0} is the empty basis, i.e. ∅.
x ∈ f −1 [V ]
⇐⇒ f (x) ∈ Span(v1 , . . . , vk )
| {z }
=V
(∗)
⇐⇒ Ax ∈ Span(v1 , . . . , vk )
⇐⇒ x a + · · · + xm am ∈ Span(v1 , . . . , vk )
|1 1 {z }
=Ax
(∗∗)
⇐⇒ ∃α1 , . . . , αk ∈ F s.t. x1 a1 + · · · + xm am = α1 v1 + · · · + αk vk
⇐⇒ ∃α1 , . . . , αk ∈ F s.t. x1 a1 + · · · + xm am − α1 v1 − · · · − αk vk = 0
(∗∗∗)
⇐⇒ ∃y1 , . . . , yk ∈ F s.t. x1 a1 + · · · + xm am + y1 v1 + · · · + yk vk = 0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 295
x1
..
.
xm
⇐⇒ ∃y1 , . . . , yk ∈ F s.t. a1 . . . am v1 . . . vk =0
y 1
..
.
yk
x
∃y ∈ Fk s.t.
⇐⇒ A v1 . . . vk =0
y
(∗∗∗∗) x
⇐⇒ ∃y ∈ Fk s.t. ∈ Nul A v1 . . . vk ,
y
where (*) follows from the fact that A is the standard matrix of f , (**) follows from
the definition of span, (***) follows by performing the substitution yi := −αi for all
i ∈ {1, . . . , k}, and (****) follows from the definition of the null space. The result is
now immediate.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 296
where the vector x has four entries (because A has four columns) and the vector y
has six entries (because we have six vectors v1 , . . . , v6 ). By row reducing, we obtain
1 0 0 0 −1 2 0 0 0 −3
0 1 2 0 −3 −1 0 1 0 0
RREF(C) = 0 0 0 1 −2 −1 0 0 0 −2
.
0 0 0 0 0 0 1 1 0 0
0 0 0 0 0 0 0 0 1 1
q − 2r + 3t
−2p + 3q + r − s
p
2q + r + 2t
x q
= , where p, q, r, s, t ∈ R.
y
r
−s
s
−t
t
But as per Proposition 4.2.18, we only need x! So, we simply ignore the part below
the horizontal dotted line, and we obtain
q − 2r + 3t
−2p + 3q + r − s
x = , where p, q, r, s, t ∈ R.
p
2q + r + 2t
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 297
We note that the five vectors that we obtained in the second-to-last line above are
not necessarily linearly independent,14 and so to find an actual basis of f −1 [V ], we
row reduce the matrix B and use Theorem 3.3.4. Indeed, Theorem 3.3.4 guarantees
that the pivot columns of B form a basis of Col(B) = f −1 [V ]. By row reducing, we
obtain
1 0 0 0 0
0 1 0 0 7/5
RREF(B) = 0 0 1 0 −4/5 .
0 0 0 1 17/5
Thus, the pivot columns of B are its leftmost four columns, and those four columns
14
In fact, we can immediately see that they are not linearly independent: no five vectors in R4 are
linearly independent (by Theorem 3.2.17(a)). More generally, though, the reason our computation
does not necessarily yield linearly independent vectors is because we “cut off” the entries below the
vertical dotted line.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 298
0 2 1 0
is a basis of f −1 [V ].
Example 4.2.20. Consider the linear function f : Z53 → Z53 whose standard matrix
is
1 1 0 1 1
2 1 2 0 2
A = 1 1 0 0 2 ,
2 1 2 1 1
1 1 0 0 2
and consider the following vectors in Z53 :
1 0 0 2 1
1
1
1
1
0
v1 =
1 ,
v2 =
0 ,
v3 =
1 ,
v4 =
1 ,
v5 =
2 .
0 2 0 0 1
0 1 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 299
where x has five entries (because A has five columns) and y also has five entries
(because we have five vectors v1 , . . . , v5 ). By row reducing, we obtain
1 0 2 0 0 0 1 0 0 1
0 1 1 0 2 0 0 0 0 2
RREF(C) = 0 0 0 1 2 0 0 0 0 0 .
0 0 0 0 0 1 2 0 2 1
0 0 0 0 0 0 0 1 2 1
p + 2r + 2t
2p + q + t
p
q
x q
= , where p, q, r, s, t ∈ Z3 .
y
r + s + 2t
r
s + 2t
s
t
For x, we get
p + 2r + 2t
2p + q + t
x =
p ,
where p, q, r, t ∈ Z3 .
q
q
Remark: The parameter s does not appear in the vector x, and so from this point
on, that parameter plays no role in our solution.
By separating parameters, we get
1 0 2 2
2 1 0 1
x = p 1 +q 0 +r
0 + t
0 ,
where p, q, r, t ∈ Z3 .
0 1 0 0
0 1 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 300
1 0 2 2
n 2 1 0 1 o
f −1 [V
] = p 1 +q 0 +r 0 + t 0 | p, q, r, t ∈ Z3
0 1 0 0
0 1 0 0
1 0 2 2
2
1
0
1
= Span
1 ,
0 ,
0 ,
0
0 1 0 0
0 1 0 0
1 0 2 2
2 1 0 1
= Col
1 0 0 0 .
0 1 0 0
0 1 0 0
| {z }
=:B
Example 4.2.21. Consider the linear function f : Z32 → Z52 whose standard matrix
is
1 1 0
1 1 0
A = 1 1 1 ,
0 1 1
0 1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 301
where x has three entries (because A has three columns) and y also has three entries
(because we have three vectors v1 , v2 , v3 ). By row reducing, we obtain
1 0 0 0 0 0
0 1 0 0 0 0
RREF(C) = 0 0 1 0 0 0 .
0 0 0 1 0 1
0 0 0 0 1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 302
v := α1 v1 + · · · + αn vn ,
αn
single most important isomorphism that we will encounter in these lecture notes. It
̸ 0)
essentially allows us to “translate” vectors of an n-dimensional vector space (n =
into vectors in Fn . We will see some numerical examples that rely on coordinate
vectors in subsection 4.4.3, after we have developed some more theory.
Proposition 4.3.1. Let V be a non-trivial, finite-dimensional vector space over
a field F, and let B = {v1 , . . . , vn } is a basis of V . Then · B : V → Fn is an
isomorphism.
Proof. We start by proving that · B is linear.
1. Fix x, y ∈ V . We must show that x + y B = x B + y B . Set x B =
T T
α1 . . . αn and y B = β1 . . . βn . Then x = α1 v1 + · · · + αn vn and
y = β1 v1 + · · · + βn vn ; consequently,
T
2. Fix x ∈ V and α ∈ F. Set x B = α1 . . . α n . Then x =
α1 v1 + · · · + αn vn ; consequently, αx = αα1 v1 + · · · + ααn vn , and so αx B =
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 303
T
αα1 . . . ααn . We now have that
αα1 α1
αx B = ... = α .. = α x .
. B
ααn αn
Theorem 4.3.2 (below) is one of the main reasons we care about bases. It
essentially states that, given vector spaces U and V over a field F, where U is finite-
dimensional with a basis B, we can uniquely determine a linear function f : U → V
by specifying what the basis vectors from B get mapped to (and we get to determine
arbitrarily what vectors of V those basis vectors get mapped to). We note that
Theorem 4.3.2 can, in fact, be generalized to infinite-dimensional domains U , but
this would require working with infinite bases, and we omit the details.
Theorem 4.3.2. Let U and V be vector spaces over a field F, and assume that U
is finite-dimensional. Let B = {u1 , . . . , un } be a basis of U , and let v1 , . . . , vn ∈
V .15 Then there exists a unique linear function f : U → V such that f (u1 ) =
v1 , . . . , f (un ) = vn . Moreover, if the vector space U is non-trivial (i.e. n ̸= 0), then
this unique linear function f : U → V satisfies the following: for all u ∈ U , we have
that
f (u) = α1 v1 + · · · + αn vn ,
T
. On the other hand, if U is trivial (i.e. U = {0}),16
where u B = α1 . . . αn
then f : U → V is given by f (0) = 0.
Proof. Suppose first that the vector space U is trivial, i.e. n = 0 and U = {0}.
Then the function f : U → V given by f (0) = 0 is obviously linear, and moreover,
it vacuously satisfies f (u1 ) = v1 , . . . , f (un ) = vn (because n = 0, and so both
u1 , . . . , un and v1 , . . . , vn are empty lists of vectors). The uniqueness of f follows
from Proposition 4.1.6.
̸ 0.
From now on, we assume that the vector space U is non-trivial, i.e. that n =
We must prove the existence and the uniqueness of the linear function f satisfying
the required properties.
15
Here, v1 , . . . , vn are arbitrary vectors in V . They are not necessarily pairwise distinct.
16
Note that in this case, we have that n = 0 and B = ∅.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 304
Existence. Let f : U → V be defined as in the statement of the theorem, i.e. for all
u ∈ U , we set
f (u) = α1 v1 + · · · + αn vn ,
T
where u B = α1 . . . αn . Note that this means that for all α1 , . . . , αn ∈ F,
we have that
f (α1 u1 + · · · + αn un ) = α1 v1 + · · · + αn vn .
Let us show that f is linear and satisfies f (u1 ) = v1 , . . . , f (un ) = vn . For the
latter, we note that for all i ∈ {1, . . . , n}, we have that
= vi .
(∗)
f (x + y) = (α1 + β1 )v1 + · · · + (αn + βn )vn
= (α1 v1 + · · · + αn vn ) + (β1 v1 + · · · + βn vn )
(∗∗)
= f (x) + f (y),
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 305
T T
,18 and we see that
α1 . . . αn . Then αu B
= αα1 . . . ααn
(∗) (∗∗)
f (αu) = (αα1 )v1 + · · · + (ααn )vn = α(α1 v1 + · · · + αn vn ) = αf (u),
by the linearity of f1
= α1 f1 (u1 ) + · · · + αn f1 (un ) (and more precisely,
by Proposition 4.1.5)
because
= α 1 v1 + · · · + α n vn
f1 (u1 ) = v1 , . . . , f1 (un ) = vn
because
= α1 f2 (u1 ) + · · · + αn f2 (un )
f2 (u1 ) = v1 , . . . , f2 (un ) = vn
by the linearity of f2
= f2 (α1 u1 + · · · + αn un ) (and more precisely,
by Proposition 4.1.5)
= f2 (u).
Corollary 4.3.3. Let U and V be vector spaces over a field F, and assume that U
is finite-dimensional. Let {u1 , . . . , uk } be a linearly independent set of vectors in U ,
and let v1 , . . . , vk ∈ V .19 Then there exists a linear function f : U → V such that
f (u1 ) = v1 , . . . , f (uk ) = vk . Moreover, if V is non-trivial, then this linear function
f is unique if and only if {u1 , . . . , uk } is a basis of U .
Remark: If V is trivial (i.e. V = {0}, and consequently v1 = · · · = vk = 0), then
there exists exactly one function from U to V , this function maps all elements of U
to 0, and obviously, it is linear.
18
T
Indeed, since u B
= α1
αn ..., we have that u = α1 u1 + · · · + αn un . Consequently,
T
αu = (αα1 )u1 + · · · + (ααn )un , and so αu B = αα1 . . . ααn .
19
Here, v1 , . . . , vk are arbitrary vectors in V . They are not necessarily pairwise distinct.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 306
4.4 Isomorphisms
Recall that, for vector spaces U and V over a field F, a function f : U → V is an
isomorphism if it is linear and a bijection.
Vector spaces U and V (over the same field F) are isomorphic, and we write
U∼ = V , if there exits an isomorphism f : U → V .
Proposition 4.4.1. Let U and V be vector spaces over a field F, and let f : U → V
be an isomorphism. Then f −1 : V → U is also an isomorphism.
f
U V
f −1
f −1 f (u1 + u2 )
= because f is linear
= (f −1 ◦ f )(u1 + u2 )
= IdU (u1 + u2 )
= u1 + u2
= f −1 (v1 ) + f −1 (v2 ).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 307
f −1 (αv) f −1 αf (u)
=
f −1 f (αu)
= because f is linear
= (f −1 ◦ f )(αu)
= IdU (αu)
= αu
= αf −1 (v).
Proposition 4.4.2. Let U , V , and W be vector spaces over a field F, and let
f : U → V and g : V → W be isomorphisms. Then g ◦ f : U → W is an
isomorphism.
g◦f
f g
U V W
Proof. Since f : U → V and g : V → W are linear functions (because they are
isomorphisms), Proposition 4.1.7 guarantees that their composition g ◦ f : U → W
is also linear. Since f : U → V and g : V → W are bijections, Proposition 1.10.17
guarantees that g ◦ f : U → W is also a bijection. So, g ◦ f : U → W is linear and a
bijection, i.e. it is an isomorphism.
Theorem 4.4.3. Let U , V , and W be vector spaces over a field F. Then all the
following hold:
(a) U ∼
= U;
(b) if U ∼
= V , then V ∼
= U;
(c) if U ∼
= V and V ∼
= W , then U ∼
= W.
Proof. (a) Clearly, IdU : U → U (the identity function on U ) is an isomorphism. So,
U=∼ U.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 308
The final result of this subsection (Theorem 4.4.4 below) essentially states that
isomorphisms map linearly independent sets to linearly independent set, spanning
sets to spanning sets, and bases to bases. As we shall see, it is an easy corollary of
Theorem 4.2.13.
(a) vectors u1 , . . . , uk are linearly independent in U if and only if vectors f (u1 ), . . . , f (uk )
are linearly independent in V ;
f
un vn
... ...
u3 v3
u2 v2
u1 v1
U V
Proof. The existence and uniqueness of the linear function f follows from The-
orem 4.3.2. We need to show that the linear function f is in fact an isomor-
phism. But by hypothesis, U and V are finite-dimensional vector spaces satisfying
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 309
= α 1 v1 + · · · + α n vn
= v,
where (*) follows from the linearity of f (and more precisely, from Proposition 4.1.5).
So, f is onto, and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 310
Proposition 4.4.7. Let U and V be a vector spaces over a field F, and let f : U → V
be an isomorphism, and let U ′ ⊆ U . Then U ′ is a subspace of U if and only if
V ′ := f [U ′ ] is a subspace of V . Moreover, in this case,21 all the following hold:
(b) U ′ ∼
= V ′;
U′ f V ′ = f [U ′]
U V
Proof. First of all, since f is an isomorphism (and in particular, a bijection), we
see that f −1 [V ′ ] = U ′ . Further, since f : U → V , Proposition 4.4.1 guarantees that
f −1 : V → U is an isomorphism. Now, if U ′ is a subspace of U , then Theorem 4.2.3
guarantees that f [U ′ ] = V ′ is a subsapce of V ′ . On the other hand, if V ′ is a subspace
of V , then Theorem 4.2.3 implies that f −1 [V ′ ] = U ′ is a subspace of U .
From now on, we assume that U ′ is a subspace of U and V ′ is a subspace of V .
We construct the function f ′ : U ′ → V ′ by setting f ′ (u) = f (u) for all u ∈ V ′ , and
in part (a). Since f : U → V is an isomorphism, and since U ′ and V ′ are subspaces
of U and V , respectively, we see that f ′ : U ′ → V ′ is also an isomorphism,24 and
consequently, U ′ ∼ = V ′ . So, (a) and (b) hold. Part (c) follows from part (a) and from
Theorem 4.2.14(c) applied to U ′ , V ′ , and f ′ .
This is useful because we have developed powerful computational tools for vectors in
Fn . By using isomorphisms, we can reduce problems of computing in an arbitrary
21
That is: if U ′ is a subspace of U and V ′ is a subspace of V .
22
So, we constructed f ′ by restricting both the domain and the codomain of f . This is well defined
because for all u ∈ U ′ , we have that f (u) ∈ f [U ′ ] = V ′ .
23
So, either U ′ and V ′ have the same finite dimension, or they are both infinite-dimensional.
24
This follows from the definition of an isomorphism. Details?
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 311
Remark: When working with coordinate vectors, we must always specify the
basis that we are working with (i.e. with respect to which the coordinate vectors are
computed). Choosing a different basis will, in general, produce different coordinate
vectors. For instance, consider the real vector space P2R of all polynomials of degree
at most 2 and with coefficients in R. There are two “obvious” bases to chose for P2R ,
namely A1 = {1, x, x2 } and A2 = {x2 , x, 1}. For a polynomial p(x) = a2 x2 + a1 x + a0
(with a0 , a1 , a2 ∈ R), we have
a0 a2
p(x) A = a1 and p(x) A = a1 .
1 2
a2 a0
As we can see, the coordinate vectors are different (whenever a0 ̸= a2 ), which is why
we have to be careful to specify what basis we are working with.
First of all, using Proposition 4.3.1 and Theorem 4.4.4, we can “translate”
Propositions 3.1.10, 3.2.1, and 3.2.6 into statements for arbitrary non-trivial, finite-
dimensional vector spaces, as follows.
(b) {v1 , . . . , vm } is a spanning set of V if and only if rank(A) = n (i.e. A has full
row rank);
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 312
Now (a) follows from (a’) and Proposition 3.2.1; (b) follows from (b’) and Proposi-
tion 3.1.10; and (c) follows from (c’) and Proposition 3.2.6.
Example 4.4.9. Consider the following sets of polynomials (with coefficients under-
stood to be in R):
(a) A = x2 + x, x3 + 1, x, x2 + 1 ;
(c) C = x3 + 1, x3 + x2 , x2 + x, x + 1, 1, x ;
it spans P3R ;
it is a basis of P3R .
(a) We set
T
a1 := x2 + x P = 0 1 1 0 ;
T
a2 := x3 + 1
P
= 1 0 0 1 ;
T
a3 :=
x P
= 0 1 0 0 ;
T
a4 := x2 + 1
P
= 1 0 1 0 ;
Further, we set
0 1 0 1
1 0 1 0
A := a1 a2 a3 a4 =
1
.
0 0 1
0 1 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 313
T
b2 := 6x3 + 4x2 + 5x + 6
P
= 6 5 4 6 ;
T
b3 :=
5x + 6 P
= 6 5 0 0 ;
T
b4 :=
2x + 2 P
= 2 2 0 0 .
Further, we set
1 6 6 2
1 5 5 2
B := b1 b2 b3 b4 =
2
.
4 0 0
3 6 0 0
T
c2 := x3 + x2
P
= 0 0 1 1 ;
T
c3 := x2 + x
P
= 0 1 1 0 ;
T
c4 :=
x+1 P
= 1 1 0 0 ;
T
c5 :=
1 P
= 1 0 0 0 ;
T
c6 :=
x P
= 0 1 0 0 .
Further, we set
1 0 0 1 1 0
0 0 1 1 0 1
C := c1 c2 c3 c4 c5 c6 =
0
.
1 1 0 0 0
1 1 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 314
T
d2 := 2x2 + 3x
P
= 0 3 2 0 ;
T
d3 := 4x3 + 5x + 6
P
= 6 5 0 4 .
Further, we set
0 0 6
0 3 5
D := d1 d2 d3 =
0
.
2 0
1 0 4
Example 4.4.10. Consider the following sets of matrices (with coefficients under-
stood to be in Z3 ):
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 315
n 1 2
0 1
0 0
2 0
o
(a) A = , , , ;
0 0 0 2 2 1 1 0
n 1 o
1 1 1 2 1 2 0
(b) B = , , , .
0 1 0 2 0 2 1 1
For each of the two sets above, determine whether
it is linearly independent in Z32×2 ;
it spans Z2×2
3 ;
it is a basis of Z2×2
3 .
Solution. In what follows, we will use the basis
n 1 0 0 1 0 0 0 0 o
M = , , ,
0 0 0 0 1 0 0 1
of Z2×2
3 .
(a) We set
1 2 T
a1 :=
= 1 2 0 0 ;
0 0 M
0 1 T
a2 :=
= 0 1 0 2 ;
0 2 M
0 0 T
a3 :=
= 0 0 2 1 ;
2 1 M
2 0 T
a4 :=
= 2 0 1 0 .
1 0 M
Further, we set
1 0 0 2
2 1 0 0
A := a1 a2 a3 a4 =
0
.
0 2 1
0 2 1 0
By row reducing, we get that
1 0 0 2
0 1 0 2
RREF(A) =
0
,
0 1 2
0 0 0 0
and consequently, rank(A) = 3. So, by Proposition 4.4.8, A is not a linearly
independent set in Z2×2 2×2 2×2
2 , is not a spanning set of Z2 , and is not a basis of Z2 .
(b) We set
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 316
1 1 T
b1 :=
= 1 1 0 1 ;
0 1 M
1 1 T
b2 :=
= 1 1 0 2 ;
0 2 M
2 1 T
b3 :=
= 2 1 0 2 ;
0 2 M
2 0 T
b4 :=
= 2 0 1 1 .
1 1 M
Further, we set
1 1 2 2
1 1 1 0
B := b1 b2 b3 b4 =
0
.
0 0 1
1 2 2 1
p1 (x) = x3 + x + 1; p4 (x) = x + 1;
p2 (x) = x3 + x2 + 1; p5 (x) = x2 ;
p3 (x) = x2 + 1; p6 (x) = x3 + 1.
Set U := Span p1 (x), . . . , p6 (x) . Find a basis B of U . What is dim(U )? For
each i ∈ {1, . . . , 6} such that pi (x) is not in the basis B, express pi (x) as a linear
combination of the basis vectors in B.
Solution. Note that polynomials p1 (x), . . . , p6 (x) are all of degree at most 3, and
they all belong to P3Z2 . Thus, U = Span p1 (x), . . . , p6 (x) is a subspace of P3Z2 . We
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 317
know that
A = {1, x, x2 , x3 }
is a basis of P3Z2 and (by Proposition 4.3.1) that · A : P3Z2 → Z42 is an iso-
morphism. Next, by Theorem 4.2.11, the image of U under · A is precisely
V := Span p1 (x) A , . . . , p6 (x) A , and moreover, Proposition 4.4.7 guaran-
tees that when we restrict the domain of · A to U and the codomain to V ,25 we
obtain an isomorphism. So, we first solve the problem for the coordinate vectors
p1 (x) A , . . . , p6 (x) A and the subspace V = Span p1 (x) A , . . . , p6 (x) A
of V , and then using the fact that · A is an isomorphism, we “translate” the
solution back to p1 (x), . . . , p6 (x) and U = Span p1 (x), . . . , p6 (x) .
We first read off the coordinate vectors of our six polynomials with respect to
the basis A:
T T
p1 (x) A
= 1 1 0 1 ; p4 (x) A
= 1 1 0 0 ;
T T
p2 (x) A
= 1 0 1 1 ; p5 (x) A
= 0 0 1 0 ;
T T
p3 (x) A
= 1 0 1 0 ; p6 (x) A
= 1 0 0 1 .
0 0 0 0 1 1
Since the pivot columns of A are its first, second, third, and fifth column, Theo-
rem 3.3.4 guarantees that
n o
C := p1 (x) A , p2 (x) A , p3 (x) A , p5 (x) A
is a basis of Col(A) = Span p1 (x) A , p2 (x) A , . . . , p6 (x) A = V . As
we pointed out above, the function obtained from · A : PZ2 → Z42 by re-
stricting the domain to U = Span p1 (x), . . . , p6 (x) and the codomain to V =
25
This is well defined because the image of U under · A
is precisely V .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 318
Span p1 (x) A , . . . , p6 (x) A is an isomorphism. So, since C is a basis of V ,
Theorem 4.4.4(c) guarantees that
n o
B := p1 (x), p2 (x), p3 (x), p5 (x)
But now
p4 (x) A
= p1 (x) A
+ p2 (x) A
+ p3 (x) A
(∗)
= p1 (x) + p2 (x) + p3 (x) A
and
(∗)
p6 (x) A
= p2 (x) A
+ p5 (x) A
= p2 (x) + p5 (x) A
,
where both instances of (*) follow from the fact that · A is linear (because it is an
isomorphism). But · A is also one-to-one (again, because it is an isomorphism);
it follows that
Optional: It is not a bad idea to check whether our expressions for p4 (x) and p6 (x)
are correct (to make sure we did not miscompute). So, we compute:
= (x3 + x3 ) + (x2 + x2 ) + x + (1 + 1 + 1)
= x+1
= p4 (x)
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 319
and
p2 (x) + p5 (x) = (x3 + x2 + 1) + x2
= x3 + (x2 + x2 ) + 1
= x3 + 1
= p6 (x).
As we can see, our expressions for p4 (x) and p6 (x) are correct.
p2 (x) = x3 + x2 ; p5 (x) = 2x + 1.
p3 (x) = x4 + x3 + x2 + 2;
Set U := Span p1 (x), . . . , p5 (x) . Find a basis B of U . What is dim(U )? For
each i ∈ {1, . . . , 5} such that pi (x) is not in the basis B, express pi (x) as a linear
combination of the basis vectors in B.
Solution. Note that polynomials p1 (x), . . . , p5 (x) are all of degree at most 4, and
they all belong to P4Z3 . Thus, U = Span p1 (x), . . . , p5 (x) is a subspace of P4Z3 . We
know that
A = {1, x, x2 , x3 , x4 }
is a basis of P4Z3 . The coordinate vectors of p1 (x), . . . , p5 (x) with respect to the basis
A are as follows:
T
p1 (x) A = 2 0 0 0 1 ;
T
p2 (x) A = 0 0 1 1 0 ;
T
p3 (x) A = 2 0 1 1 1 ;
T
p4 (x) A = 1 0 1 1 2 ;
T
p5 (x) A = 1 2 0 0 0 .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 320
and by row reducing, we obtain the following (pivot columns are in red, and non-pivot
columns are in blue):
1 0 1 2 0
0 1 1 1 0
RREF(A) = 0 0 0 0 1 .
0 0 0 0 0
0 0 0 0 0
We see that the pivot columns of A are its first, second, and fifth column. Therefore,
n o
C := p1 (x) A , p2 (x) A , p5 (x) A
is a basis of Col(A) = Span p1 (x) A , . . . , p5 (x) A . Consequently,
n o
B := p1 (x), p2 (x), p5 (x)
is a basis of U = Span p1 (x), . . . , p5 (x) , and it follows that dim(U ) = 3.
It remains to express p3 (x) and p4 (x) as a linear combination of the vectors
(polynomials) in B. First, we have that
(∗) (∗∗)
p3 (x) A = p1 (x) A + p2 (x) A = p1 (x) + p2 (x) A ,
(∗) (∗∗)
p4 (x) A
=2 p1 (x) A
+ p2 (x) A
= 2p1 (x) + p2 (x) A
,
where both instances of (*) were obtained from the matrix RREF(A), and both
instances of (**) follow from the fact that · A : P4Z3 → Z53 is linear (because it is an
isomorphism). Since · A is also one-to-one (again, because it is an isomorphism),
we get that
p3 (x) = p1 (x) + p2 (x),
p4 (x) = 2p1 (x) + p2 (x),
and we are done.
Optional: Let us check that our expressions for p3 (x) and p4 (x) are correct. We
compute:
p1 (x) + p2 (x) = (x4 + 2) + (x3 + x2 ) = x4 + x3 + x2 + 2 = p3 (x)
and
2p1 (x) + p2 (x) = 2(x4 + 2) + (x3 + x2 ) = 2x4 + x3 + x2 + 1 = p4 (x).
As we can see, our expressions for p3 (x) and p4 (x) are correct.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 321
−2 1 5 −2 0 0
M1 = ; M3 = ; M5 = ;
3 −2 −6 6 3 0
1 0 −3 0 7 −2
M2 = ; M4 = ; M6 = .
0 2 0 −6 −9 10
Set U := Span M1 (x), . . . , M6 (x) . Find a basis B for U . What is dim(U )? For
each i ∈ {1, . . . , 6} such that Mi (x) is not in the basis B, express Mi (x) as a linear
combination of the basis vectors in B.
−2 6 0
1 −3 7
0 0 −2
M2 A = M4 A = M6 A =
0 ; 0 ; −9 .
2 −6 10
and by row reducing, we obtain the following (pivot columns are in red, and non-pivot
columns are in blue):
1 0 −2 0 0 −2
0 1 1 −3 0 3
RREF(A) = .
0 0 0 0 1 −1
0 0 0 0 0 0
We see that the pivot columns of A are its first, second, and fifth column. Therefore,
n o
C := M 1 A , M 2 A , M5 A
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 322
is a basis of Col(A) = Span A
, . . M1
. , M 6 A . Consequently,
n o
B := M1 , M2 , M5
is a basis of U = Span M1 , . . . , M6 , and it follows that dim(U ) = 3.
It remains to express M3 , M4 , M6 as a linear combination of the vectors (matrices)
in C. First, we have that
(∗) (∗∗)
M3 A = −2 M1 A + M2 A = −2M1 + M2 A ,
(∗) (∗∗)
M4 A
= −3 M2 A
= −3M2 A
,
(∗) (∗∗)
M6 A
= −2 M1 A
+3 M2 A
− M5 A = −2M1 + 3M2 − M5 A ,
where all three instances of (*) can be read off from RREF(A), and all three
instances of (**) follow from the fact that · A : R2×2 → R4 is linear (because it is
an isomorphism). But since · A : R2×2 → R4 is also one-to-one (again, because it
= M6 ,
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 323
p1 (x) = x3 + 1; p3 (x) = x2 + 2x + 1
of Z43 . We now form the 4 × 8 matrix C whose columns are the coordinate vectors of
the polynomials
p1 (x), p2 (x), p3 (x), p4 (x), 1, x, x2 , x3
with respect to the basis A. Here is the matrix C explicitly (with tiny font so that it
would fit on the page):
h i
x2 x3
C := p1 (x) A
p2 (x) A
p3 (x) A
p4 (x) A
1 A
x A .
A A
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 324
and we see that the pivot columns of C are its first, third, fifth, and sixth column.
By Proposition 3.3.23, the pivot columns of C to the left of the vertical dotted line
form a basis of V , and all the pivot columns of C together form a basis of Z43 . So,
n o
p1 (x) A , p3 (x) A
is a basis of V , whereas
n o
p1 (x) A
, p3 (x) A
, 1 A
, x A
is a basis of P3Z3 that extends our basis BU of U . We can read off from RREF(C)
that
p2 (x) = 2p1 (x),
T
p2 (x) B
= 2 0 0 0 ,
T
p3 (x) B
= 0 1 0 0 ,
T
p4 (x) B
= 2 1 0 0 ,
and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 325
We know that
A := {A1 , A2 , A3 , A4 }
is a basis of Z2×2
3 , and we let V be the image of U under the isomorphism · A
.
Further, we consider the standard basis
n o
E4 = {e1 , e2 , e3 , e4 } = A1 A , A2 A , A3 A , A4 A
of Z43 . We now form the 4 × 8 matrix C whose columns are the coordinate vectors of
the matrices
M1 , M 2 , M 3 , M 4 , A 1 , A 2 , A 3 , A 4
with respect to the basis A. Here is the matrix C explicitly (as in Example 4.4.14,
the font is tiny so that the matrix would fit on the page):
C := M1 A
M2 A
M3 A
M4 A
A1 A
A2 A
A3 A
A4 A .
and we see that the pivot columns of C are its first, third, sixth, and seventh column.
By Proposition 3.3.23, the pivot columns of C to the left of the vertical dotted line
form a basis of V , and all the pivot columns of C together form a basis of Z4 . So,
n o
M1 A , M3 A
is a basis of V , whereas
n o
M1 A
, M3 A
, A2 A
, A3 A
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 326
that
BU := {M1 , M3 }
is a basis of U , and that
B := {M1 , M3 , A2 , A3 }
is a basis of Z2×2
3 that extends our basis BU of U . We can read off from RREF(C)
that
M2 = 2M1 ,
M4 = 2M1 + M3 .
Finally, we can read off the coordinate vectors:
T
M1 B = 1 0 0 0 ,
T
M2 B
= 2 0 0 0 ,
T
M3 B
= 0 1 0 0 ,
T
M4 B
= 2 1 0 0 ,
and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 327
(∗)
= β1 f (b1 ) + · · · + βm f (bm ) C
(∗∗)
= f β1 b1 + · · · + βm bm C
= f (u) C
,
particular, a linear function), and (**) follows from the fact that f is linear.27
Uniqueness. Fix any matrix A = a1 . .. am in Fn×m
that has the property
that for all u ∈ U , we have that A u B = f (u) C . We must show that
A = f (b1 ) C . . . f (bm ) C . We prove this by showing that the two
matrices have the same corresponding columns, that is, that ai = f (bi ) C for all
indices i ∈ {1, . . . , m}. Indeed, for all i ∈ {1, . . . , m}, we have the following:
ai = Aem
i by Proposition 1.4.5
because bi B = em
i
= A bi B (by Proposition 3.2.9)
= f (bi ) C
by the choice of A.
This proves that A = f (b1 ) C
... f (bm ) C
, and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 328
uniqueness part of Theorem 4.5.1 guarantees that if A ∈ Fn×m is any matrix that
satisfies the property that for all u ∈ U , we have that
A u B = f (u) C ,
then we in fact have that A = C f B . We will use this observation repeatedly (see
the proofs of Theorem 4.5.3, Theorem 4.5.4, and Lemma 4.5.11).
Remark: Note that matrices of the form C f B are generalizations of standard
m n
Indeed, if F is a field and f : F → F is a linear function, then
matrices. the matrix
f E is precisely the standard matrix of f . (As usual, Em = {e1 , . . . , em
m
En m m } is
m n n n
the standard basis of F , and En = {e1 , . . . , en } is the standard basis of F .)28
n 1 1 o
Example 4.5.2. Consider the basis B = , of R2 , and consider the
0 1
unique linear function f : R2 → R2 that satisfies the following:
1 1
f = ,
0 0
1 2
f = .
1 2
Compute the matrix B f B .
1 2
x2 x2 f =
1 2 f (u)
1
1 f
u
1
x1 1 1 x1
f =
0 0 0
n 1 1 o
Remark: The fact that B = , is a basis of R2 follows from the fact that
0 1
1 1
rank = 2 and from the Invertible Matrix Theorem (see subsection 3.3.7).
0 1
The existence and uniqueness of the linear function f follows from Theorem 4.3.2.
28
This is “obvious,” but here are the details. Let F be a field, let f : Fm → Fn be a linear function,
and let A be the standard matrix of f . Then for all u ∈ Fm , we have the following:
(∗) (∗∗) (∗)
A u Em
= Au = f (u) = f (u) En
,
where both instances of (*) follow from Example 3.2.8(a) (or alternatively, from Proposition 3.2.9),
and (**) follows from the fact that A is thestandard matrix
of f . But now the uniqueness part of
Theorem 4.5.1 guarantees that A = E f E , i.e. E f E is the standard matrix of f .
n m n m
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 329
(a) for all linear functions f, g : U → V , the function f + g is linear,29 and moreover,
C
f +g B = C f B+C g B;
(b) for all linear functions f : U → V and scalars α ∈ F, the function αf is linear,30
and moreover,
C
αf B
= α C
f B
;
f, C
f B
g, D
g C
U V W
B C D
29
As usual, the function f + g : U → V is defined by (f + g)(u) = f (u) + g(u) for all u ∈ U .
30
As usual, the function αf : U → V is defined by (αf )(u) = α(f (u)) for all u ∈ U .
31
As usual, the function g ◦ f : U → W is defined by (g ◦ f )(u) = g(f (u)) for all u ∈ U .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 330
Proof. We prove (c). The proofs of (a) and (b) are left as an exercise. The fact
g ◦ f is linear
that follows
from
Proposition 4.1.7(c). It remains to show that
D
g ◦ f B
=D g C C
f B
.
= D
g C
f (u) C
= g f (u) D
= (g ◦ f )(u) D
.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 331
(d) f is one-to-one if and only if rank C f B = m (i.e. the matrix C f B has
full column rank);
(e) f is onto if and only if rank C f B = n (i.e. the matrix C f B has full
row rank);
(f ) f is an isomorphism if and only if the matrix C f B is invertible (and in
particular, square);
−1
(g) if f is an isomorphism, then B f −1 C = C f B
.
We now compute:
(∗)
rank(f ) = dim Span f (b1 ), . . . , f (bm )
!
(∗∗)
= dim Span f (b1 ) C , . . . , f (bm ) C
!
= dim Col f (b1 ) C
... f (bm ) C
!
= dim Col C
f B
(∗∗∗)
= rank C f B ,
where (*) follows from the fact that B = {b1 , . . . , bm } is a spanning set of U
(because it is a basis of U ) and from Corollary 4.2.12, (**) follows from the fact that
· C : V → Fn is an isomorphism and from Propositions 4.2.11(b) and 4.4.7(c),34
dimension. On the other hand, by Theorem 4.2.11(b), the image of V ′ under · C is precisely
equal to Span f (b1 ) C , . . . , f (bm ) C . This justifies (**).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 332
= m
(∗∗)
= rank C
f B
+ dim Nul C f B
(∗∗)
⇐⇒ dim Nul C f B =0
⇐⇒ Nul C f B = {0},
where (*) follows from Theorem 4.2.4, and (**) follows from part (b).
For (d), we have the following sequence of equivalent statements:
(∗)
f is one-to-one ⇐⇒ Nul C f B = {0}
!
⇐⇒ dim Nul C f B =0
(∗∗)
⇐⇒ rank C f B = m,
where (*) follows from part (c), and (**) follows from the rank-nullity theorem for
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 333
matrices.35
For (e), we have the following sequence of equivalent statements:
(∗)
f is onto ⇐⇒ rank(f ) = dim(V )
(∗∗)
⇐⇒ rank(f ) = n
(∗∗∗)
⇐⇒ rank C f B = n,
where (*) follows from Proposition 4.2.6, (**) follows from the fact that dim(V ) = n,
and (***) follows from part (a).
Next, we prove (f). Suppose first that f is an isomorphism. Then by Theo-
rem 4.2.14(c) (or alternatively, by Theorem 4.4.6), we have that dim(U ) = dim(V ),
i.e. m = n. In particular, C f B is an n × n matrix. Next, since f is an iso-
morphism
(and in particular, an onto linear function), part (d) guarantees that
rank C f B = n. But now the Invertible Matrix Theorem (see subsection 1.11.7
or 3.3.7) guarantees that C f B is invertible.
Suppose, conversely, that C f B is invertible. In particular, C f B is a square
matrix, and it follows that m = n (because C f B is an n × m matrix). Now,
since C f B is an invertible n × n matrix, the Invertible Matrix Theorem (see
subsection 1.11.7 or 3.3.7) implies that rank C f B = n. But now parts (d)
and (e) guarantee that f is one-to-one and onto,36 and consequently, a bijection.
Since f is also linear (by hypothesis), it follows that f is an isomorphism. This
proves (f).
It remains to prove (g). Suppose that f is an isomorphism. Then by Theo-
rem 4.2.14(c) (or alternatively,
by Theorem 4.4.6), we have that m = dim(U ) =
dim(V ) = n. Consequently, C f B is an n × n matrix. Moreover, by (f), the matrix
C
f B
is invertible. But now for all v ∈ V , we have the following:
−1 −1 h i
f f −1 (v)
C
f B
v C
= C
f B C
35
Indeed, since C
f is an n × m matrix, the rank-nullity theorem for matrices guarantees that
B
!
rank C f B + dim Nul C f B = m,
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 334
−1
f −1 (v)
= C
f B C
f B B
!
−1
f −1 (v)
= C
f B C
f B B
| {z }
=In
f −1 (v)
= B
.
Example 4.5.5. Let U and V be real vector spaces. Let B = {b1 , b2 , b3 } be a basis
of U , and let C = {c1 , c2 , c3 } be a basis of V . Let f : U → V be the unique linear
function that satisfies the following:
f (b1 ) = −2c1 + c3 ;
f (b2 ) = c1 + 3c2 + c3 ;
f (b3 ) = c2 − 2c3 .
(The existence and uniqueness of f follow from Theorem 4.3.2.)
Compute the matrix C f B .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 335
f (b1 ) = c1 + c2 ;
f (b2 ) = c1 + 2c2 ;
f (b3 ) = 2c1 + c2 .
Proof. First of all, we observe that dim(U ) = 3 and dim(V ) = 2, and in particular,
dim(U ) > dim(V ). So, by Theorem 4.2.14, f is not one-to-one, and f is not an
isomorphism. Meanwhile, Theorem 4.2.14 gives us no information about whether f
is onto; we will determine this by computing.
Using Theorem 4.5.1, we compute:
C
f B = f (b1 ) C f (b2 ) C f (b3 ) C
= c1 + c2 C
c1 + 2c2 C
2c1 + c2 C
1 1 2
= .
1 2 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 336
f (b2 ) = c1 + c2 + c3 ;
f (b3 ) = c3 + c4 .
Proof. First of all, we observe that dim(U ) = 3 and dim(V ) = 4, and in particular,
dim(U ) < dim(V ). So, by Theorem 4.2.14, f is not onto, and f is not an isomorphism.
Meanwhile, Theorem 4.2.14 gives us no information about whether f is one-to-one;
we will determine this by computing.
Using Theorem 4.5.1, we compute:
C
f B = f (b1 ) C f (b2 ) C f (b3 ) C
= c1 + c2 + c4 C
c1 + c2 + c3 C
c3 + c4 C
1 1 0
1 1 0
=
0
.
1 1
1 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 337
have that A u B = f (u) C . How about the converse? Is it true that for every
matrix A ∈ Fn×m , there exists a linear function f : U → V such that A = C f B ?
As our next proposition shows, this is indeed true, but the proof is not completely
obvious: it relies on Theorems 4.3.2, 4.5.1, and 4.5.3(c).
f1 fA f2
bm em
m enn cn
... ... ... ...
b2 em
2 en2 c2
b1 em
1 en1 c1
U Fm Fn V
B Em En C
First, we have that
(∗)
C
f B
= C
f2 ◦ fA ◦ f1 B
(∗∗)
= C
f2 En En
fA Em Em
f1 B
(∗∗∗)
= C
f2 En
A Em
f1 B
,
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 338
where (*) follows from the fact that f = f2 ◦fA ◦f1 ,(**) follows from Theorem 4.5.3(c),
and (***) follows from the fact that A = E fA E . It is now enough to show that
n m
E
f1 B = Im and C
f2 E = In , for it will then follow that
m n
C
f B
= C
f2 En
A Em
f1 B
= In AIm = A,
| {z } | {z }
=In =Im
which is what we need. For Em
f1 B
, we compute:
(∗)
h i
Em
f1 B
= f1 (b1 ) Em
... f1 (bm ) Em
(∗∗)
h i
em em
= 1 Em
... m Em
(∗∗∗)
em . . . em
= 1 m = Im ,
where (*) follows from Theorem 4.5.1, (**) follows from the construction of f1 , and
(***) follows fromExample 3.2.8(a) (or alternatively, from Proposition 3.2.9). The
computation for C f2 E is similar and is left as an exercise. This proves existence.
n
Uniqueness. Suppose that f, g : U → V are linear functions such that C f B = A
and C g B = A. We must show that f = g. First of all, note that for all indices
i ∈ {1, . . . , m}, we have that
f (bi ) C = C f B bi B = C g B bi B = g(bi ) C ,
| {z } | {z }
=A =A
The fact that this function is one-to-one and onto (i.e. a bijection) follows from Proposition 4.5.8.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 339
Proof. The first statement follows straight from the definition of a change of basis
matrix; indeed, for all vectors v ∈ V , we have that
C
IdV B v B = IdV (v) C = v C.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 340
For the special case of Fn (where F is a field), we get a nice formula for change
of basis matrices (see Theorem 4.5.12 below). First, we need a lemma.
Lemma 4.5.11. Let F be a field, let En = {e1 , . . . , en }be the standard basis of Fn ,
and let B = {b1 , . . . , bn } be any basis of Fn . Set B := b1 . . . bn . Then B is
invertible, and moreover,
IdFn E = B −1 .
En
IdFn B = B and B n
Proof. Let us first prove that E IdFn B = B. In view of the uniqueness part of
n
Theorem 4.5.1, it suffices to show that for all v ∈ Fn , we have that B v B =
T
v E . So, fix a vector v ∈ Fn , and set v B = β1 . . . βn
, so that
n
v = β1 b1 + · · · + βn bn . Then
β1
n
b1 . . . bn ... =
P (∗)
B v B = βi bi = v = v E ,
n
i=1
βn
where (*) follows from Proposition [Link] This proves that E IdFn B = B. The
n
fact that B is invertible and that B IdFn E = B −1 now follows from Proposi-
n
tion 4.5.10.
IdFn B = C −1 B.
C
Proof. The fact that C IdFn B is invertible follows from Proposition 4.5.10. To
prove that the formula for C IdFn B is correct, we observe that
(∗) (∗∗)
C −1 B,
C
IdFn B
= C IdFn ◦ IdFn B
= C
IdFn En En
IdFn B
=
where (*) follows from Theorem 4.5.3, and (**) follows from Lemma 4.5.11.
= C2
IdV C1 C1
f B1 B1
IdU B2
.
38
Alternatively, it follows from Example 3.2.8(a).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 341
Let us now return to the linear function f from Example 4.5.2: we would like to
compute the standard matrix of this linear function.
n 1 1 o
Example 4.5.14. Consider the basis B = , of R2 , and consider the
0 1
unique linear function f : R2 → R2 that satisfies the following:
1 1
f = ;
0 0
1 2
f = .
1 2
Compute the standard matrix of the linear function f .
1 0
Solution. In Example 4.5.2, we saw that B f B = . Now, we set B :=
0 2
1 1 39 1 −1
, and we compute B −1 = . Then the standard matrix of f is
0 1 0 1
E2
f E2
= E2
IdR2 B B
f B B
IdR2 E2
by Proposition 4.5.13
B −1
= B B
f B
by Lemma 4.5.11
1 1 1 0 1 −1
=
0 1 0 2 0 1
1 1
= .
0 2
Optional: Let us check that our answer is correct. Indeed, we have that
1
1 1 1 1
= =f ;
0 2 0 0 0
1
1 1 1 2
= =f .
0 2 1 2 1
So, our answer is correct.
39
So, the columns of B are the vectors of the basis B, arranged from left to right in the order in
which they appear in B.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 342
Since V has at least one n-element basis (because dim(V ) = n), we see that (b)
implies (d), and that (c) implies (d).40 Further, by Proposition 4.5.10, (d) implies (a).
It remains to show that (a) implies (b) and (c). We prove the former; the proof of
the latter is similar and is left as an exercise.
So, assume that (a) is true; we must prove (b). Fix any basis B = {b1, . . . , bn }
of V ;41 we must construct a basis C = {c1 , . . . , cn } of V such that A = C IdV B .
Using Proposition
4.5.8, we let f : V → V be the (unique) linear function such
that A = B f B . Since A is invertible, Theorem 4.5.4(f) guarantees that f is
an isomorphism. Then by Proposition 4.4.1, f −1 : V → V is also an isomorphism.
For each index i ∈ {1, . . . , n}, we set ci := f −1 (bi ). Since f −1 : V → V is an
isomorphism
−1 and B = {b1 , . . . , bn } is a basis of V , Theorem 4.4.4(c) implies that
f (b1 ), . . . , f −1 (bn ) = {c1, . . . , cn } =: C is also a basis of V .
Now, we claim that A = C IdV B . First, we note that
(∗)
f −1 ◦ f f −1 f −1
C
IdV B
= C B
= C B B
f B = C B
A,
| {z }
=A
where (*) follows from Theorem 4.5.3(c). It now suffices to show that C f −1 B = In ,
for it will then immediately follow that A = C IdV B , which is what we need. We
compute:
40
We need the fact that V has at least one n-element basis, since that means that (b) and (c) are
not just “vacuously true” (due to there not being any bases of V ).
41
Since dim(V ) = n, all bases of V have n elements.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 343
(∗)
f −1 f −1 (b1 ) f −1 (bn )
C B
= C
... C
= c1 C
... cn C
(∗∗)
en1 . . . enn
= = In ,
where (*) follows from Theorem 4.5.1, and (**) follows from Proposition 3.2.9. This
proves (b), and we are done.
Proof. (a) Fix a matrix A ∈ Fn×n . Then A = In−1 AIn , and it follows that A is
similar to itself.
(b) Fix a matrices A, B ∈ Fn×n , and assume that A is similar to B. Then
there exists an invertible matrix P ∈ Fn×n such that B = P −1 AP . But then
A = P BP −1 = (P −1 )−1 BP −1 , and it follows that B is similar to A.
(c) Fix matrices A, B, C ∈ Fn×n , and assume that A is similar to B and that
B is similar to C. Then there exist invertible matrices P, Q ∈ Fn×n such that
B = P −1 AP and C = Q−1 BQ. But now
C = Q−1 BQ
= Q−1 (P −1 AP )Q
= (Q−1 P −1 )A(P Q)
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 344
Proposition 4.5.17. Let F be a field, and let A, B ∈ Fn×n be similar matrices, say
B = P −1 AP for some invertible matrix P ∈ Fn×n . Then A is invertible if and only
if B is invertible, and in this case, B −1 = P −1 A−1 P and A−1 = P B −1 P −1 .
where (*) follows from Proposition 1.11.8(e), and (**) follows from Proposition 1.11.8(b).
But now since B −1 = P −1 A−1 P , we immediately get that A−1 = P B −1 P −1 . This
completes the argument.
B m+1 = BmB
(∗) −1 m −1
= (P
| {zA P})(P
| {zAP})
=B m =B
−1
= P −1 Am (P
|P{z })AP
=In
42
Since P is invertible, Proposition 1.11.8(b) guarantees that P −1 is also invertible, and moreover,
that (P −1 )−1 = P .
43
Indeed, if A is invertible, then we have that P −1 , A, P are all invertible, and so by Proposi-
tion 1.11.8(e), B = P −1 AP is invertible. Similarly, if B is invertible, then we have that P, B, P −1
are all invertible, and so by Proposition 1.11.8(e), A = P BP −1 is invertible.
44
By Proposition 4.5.17, A is invertible if and only if B is invertible.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 345
= P −1 Am AP
= P −1 Am+1 P,
where in (*) we used the induction hypothesis (for the fact that B m = P −1 Am P ),
plus the fact that B = P −1 AP (by hypothesis). This completes the induction.
Assume now that A and B are invertible. By Proposition 4.5.17, we have that
B −1 = P −1 A−1 P . But now by an argument completely analogous to the above,45 we
get that for all non-negative integers m, we have that (B −1 )m = P −1 (A−1 )m P , that
is, B −m = P −1 A−m P . Combined with the above, this implies that B m = P −1 Am P
for all integers m.
Our next theorem essentially states that two n × n matrices are similar if and
only if they represent the same linear function from an n-dimensional vector space
to itself, but possibly with respect to different bases.
Proof. Clearly, it is enough to prove the implications shown in the diagram below.
(a)
But since matrix similarity in Fn×n is symmetric (by Proposition 4.5.16(b)), the
proofs of the implications “(a) =⇒ (b)” and “(a) =⇒ (c)” are completely analogous,
as are the proofs of the implications “(b) =⇒ (d)” and “(c) =⇒ (d).” So, it is enough
to prove the implications shown in the diagram below.
45
We simply replace A and B with A−1 and B −1 , respectively, in the argument above.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 346
(a)
(d) (c)
First, we assume (a) and prove (c). Assume that C is a basis of V and that
f : V → V is a linear function such that C = C f C . We must show that there
exists a basis B of V such that B = B f B . By (a), matrices B and C are similar,
which by definition means that there exists an invertible matrix P ∈ Fn×n such that
B = P −1 CP . Since P is invertible, Proposition 4.5.15 guarantees that there exists a
basis B of V such that P = C IdV B .46 But now we have that
B = P −1 CP
−1
= C
IdV B C
f C C
IdV B
= B
IdV C C
f C C
IdV B
by Proposition 4.5.10
= B
IdV ◦ f ◦ IdV B
by Theorem 4.5.3(c)
= B
f B
.
Finally, we assume (d) and prove (a). Using (d), we fix bases B and C of V
and a linear function f : V → V such that B = B f B and C = C f C . Set
P := B IdV C . By Proposition 4.5.10, P is invertible and satisfies P −1 = C IdV B .
We now compute:
P −1 BP = C IdV B B f B B IdV C
(∗)
= C
IdV ◦ f ◦ IdV C
46
We are relying on the “(a) =⇒ (c)” implication of Proposition 4.5.15.
47
Remark: The implication “(c) =⇒ (d)” may seem trivial, but in fact it is not! To get this
implication, we need to make
sure
that (c) is not just “vacuously true” due to there not existing any
C and f such that C = C f C . The existence of the basis C follows immediately from dimension
considerations, but the existence of a linear function f : V → V such that C = C f C only follows
from the not entirely trivial Proposition 4.5.8.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 347
= C
f C
= C,
where (*) follows from Theorem 4.5.3(c). So, B and C are similar. This proves (a),
and we are done.
Corollary 4.5.20. Let F be a field, and let B, C ∈ Fn×n be similar matrices. Then
rank(B) = rank(C).
Proof. This follows immediately from the definition of matrix similarity and from
Proposition 3.3.16(c).48 However, let us give a different proof, one relying on
Theorem 4.5.19 (in order to illustrate how Theorem 4.5.19 can be used).
Since B and C are similar, Theorem 4.5.19 guarantees that there exist bases
B and C of Fn and a linear function f : Fn → Fn such that B = B f B and
C = C f C .49 But then
rank(B) = rank B f B because B = B
f B
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 348
Remark: When working with matrices of linear functions with respect to particular
bases, or when working with coordinate vectors, we must always explicitly specify
the bases that we are working with. If bases are not explicitly specified, then our
proof/solution is at best incomplete, and at worst incorrect.
p1 (x) = x3 + x2 + x + 1; p5 (x) = x5 + x2 + 1;
p2 (x) = x4 + x2 + x + 1; p6 (x) = x5 + x4 + x2 + x;
p3 (x) = x5 + x4 + x2 + 1; p7 (x) = x2 + x;
p4 (x) = x3 ; p8 (x) = x5 + x.
(a) Prove that there exists a unique linear function f : Z2×3 2 → P5Z2 that satisfies the
property that f (Mi ) = pi (x) for all indices i ∈ {1, . . . , 8}.
(b) Find rank(f ) and dim Ker(f ) .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 349
(d) Find a formula for the linear function f , that is, fill in the blank in the following:
a
1,1 a1,2 a1,3
f =
a2,1 a2,2 a2,3
∀a1,1 , a1,2 , a1,3 , a2,1 , a2,2 , a2,3 ∈ Z2 .
(e) If f is an isomorphism, then find a formula for f −1 , that is, fill in the blank in
the following:
f −1 a5 x5 + a4 x4 + a3 x3 + a2 x2 + a1 x + a0 =
∀a0 , a1 , a2 , a3 , a4 , a5 ∈ Z2 .
of Z2×3 2 3 4 5 of P5 .
2 , and the basis P := 1, x, x , x , x , x Z2
(a) We proceed as in subsection 1.10.4, except that instead of solving for the
standard matrix of our linear function (which does not exist, since we are working
with vector spaces of matrices and polynomials), we will solve for the matrix P f M .
We need our linear function f to satisfy f (M pi (x) for all indices i ∈ {1, . . . , 8},
i) =
and consequently, our (unknown) matrix P f M should satisfy
P
f M
Mi M
= pi (x) P
Here,
matrices
M and P can easily be computed (see below), whereas the matrix
P
f M is the unknown that we need to solve for. We proceed as in subsection 1.9.2.
We first take the transpose of both sides of the equation above, and we obtain
T
MT P f M = PT,
T
which we solve for P
f M
. We form the matrix
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 350
T T
M1 M
p1 (x) P
MT PT
=
.. ..
. .
T T
M8 M
p8 (x) P
1 0 1 1 0 1 1 1 1 1 0 0
0 1 0 1 0 1 1 1 1 0 1 0
0 1 0 1 0 0 1 0 1 0 1 1
0 0 1 0 0 0 0 0 0 1 0 0
= ,
1 0 0 1 0 0 1 0 1 0 0 1
1 0 0 0 1 0 0 1 1 0 1 1
0 0 0 0 1 0 0 1 1 0 0 0
0 0 0 0 0 1 0 1 0 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 351
The existence and uniqueness of the matrix P f M guarantees the existence and
uniqueness of the linear function f : Z2×3 2 → P5Z2 that satisfies the property that
f (Mi ) = pi (x) for all indices i ∈ {1, . . . , 8}.
Remark: In the above, the existence and uniqueness of the matrix P f M implied
the existence and uniqueness of the linear function f with the specifications from
the statement
of the example. If we had obtained more than one solution for the
matrix P f M , this would have implied that a linear function f with the given
specifications exists,
but is not unique. On the other hand, if there had been no
solutions for P f M , this would have meant that no linear function f with the
given specifications exists.
(b) By row reducing, we see that RREF P f M = I6 . Consequently,
(∗)
rank(f ) = rank P
f M
= 6,
where (*) follows from Theorem 4.5.4(a). On the other hand, by the rank-nullity
theorem, we have that rank(f ) + dim Ker(f ) = dim(Z2×3
2 ), and it follows that
(c) Since dim Ker(f ) = 0, Theorem 4.2.4 guarantees that f is one-to-one. Since
rank(f ) = 6 = dim(P5Z2 ), Proposition 4.2.6 guarantees that f is onto.50 Since the
linear function f is one-to-one and onto, it is an isomorphism.
(d) Using the matrix P f M , we can easily read off the formula for f , as follows.
For a1,1 , a1,2 , a1,3 , a2,1 , a2,2 , a2,3 ∈ Z2 , we compute:
a1,1 a1,2 a1,3 a1,1 a1,2 a1,3
f = P f M
a2,1 a2,2 a2,3 P
a2,1 a2,2 a2,3 M
0 0 0 1 0 0 a1,1
0 0 0 0 1 1
a1,2
0 0 0 1 1 0 a1,3
=
0 0 1 0 0 0
a2,1
1 0 0 1 0 0 a2,2
1 1 0 0 0 1 a2,3
50
Alternatively, since the domain and the codomain of the linear function f have the same
finite dimension, and since f is one-to-one, Corollary 4.2.10 guarantees that f is also onto and an
isomorphism.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 352
a2,1
a2,2 + a2,3
a2,1 + a2,2
=
a1,3
a1,1 + a2,1
a1,1 + a1,2 + a2,3
for all a1,1 , a1,2 , a1,3 , a2,1 , a2,2 , a2,3 ∈ Z2 . This is the formula that we needed.
(e) As we saw in part (c), f is an isomorphism. Let us find a formula for f −1 .
First, we have that
1 0 0 0 1 0
0 1 1 0 1 1
−1 (∗)
−1 0 0 0 1 0 0
M
f P
= P
f M
=
1 0
,
0 0 0 0
1 0 1 0 0 0
1 1 1 0 0 0
where (*) follows from Theorem 4.5.4(g). We now proceed similarly as in part (d).
For all a0 , a1 , a2 , a3 , a4 , a5 ∈ Z2 , we have the following:
h i
f −1 a5 x5 + a4 x4 + a3 x3 + a2 x2 + a1 x + a0
M
f −1 a5 x5 + a4 x4 + a3 x3 + a2 x2 + a1 x + a0
= M P P
1 0 0 0 1 0 a0
0 1 1 0 1 1
a1
0 0 0 1 0 0 a2
=
1 0 0 0 0 0
a3
1 0 1 0 0 0 a4
1 1 1 0 0 0 a5
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 353
a0 + a4
a1 + a2 + a4 + a5
a3
=
a0
a0 + a2
a0 + a1 + a2
a0 + a4 a1 + a2 + a4 + a5 a3
= .
a0 a0 + a2 a0 + a1 + a2 M
Since · M
is an isomorphism (and in particular, one-to-one), it follows that
f −1 a5 x5 + a4 x4 + a3 x3 + a2 x2 + a1 x + a0
a0 + a4 a1 + a2 + a4 + a5 a3
=
a0 a0 + a2 a0 + a1 + a2
= x3 + x2 + x + 1 = p1 (x),
only do the computation for i = 1 in order to demonstrate the general principle. The
rest is similar routine computation. So, for i = 1, we compute:
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 354
f −1 p1 (x) f −1 x3 + x2 + x + 1
=
1+0 1+1+0+0 1
=
1 1+1 1+1+1
1 0 1
= = M1 ,
1 0 1
which is what we were supposed to get. Alternatively, having verified the formula
for f , we can verify the formula for f −1 by checking that f −1 ◦ f = IdZ2×3 and that
2
f ◦ f −1 = IdP5 (using our formulas for f and f −1 ).
Z2
p1 (x) = 1; q1 (x) = x4 ;
p2 (x) = x + 1; q2 (x) = x3 + x2 ;
p3 (x) = x2 + x + 1; q3 (x) = x2 + 1;
p4 (x) = x3 + x2 + x + 1; q4 (x) = x.
(a) Prove that there exists a unique linear function f : P3Z2 → PZ2 that satisfies the
property that f pi (x) = qi (x) for all indices i ∈ {1, 2, 3, 4}.
(b) Compute rank(f ) and dim Ker(f ) .
(c) If f one-to-one?
(d) Find a formula for the linear function f , that is, fill in the blank in the following:
f a3 x3 + a2 x2 + a1 x + a0 =
∀a0 , a1 , a2 , a3 ∈ Z2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 355
P4Z2 .51 Therefore, we may temporarily consider f as having codomain P4Z2 , which
is a non-trivial,
finite-dimensional vector space.52 We will now solve for the matrix
P4
f P3
. We need our linear function f to satisfy f pi (x) = qi (x) for all indices
i ∈ {1, 2, 3, 4}, and consequently, our (unknown) matrix P f B should satisfy
4
P
f P pi (x) P = qi (x) P
4 3 3 4
Here,
matrices
P and Q can easily be computed (see below), whereas the matrix
P4
f P is the unknown that we need to solve for. We proceed as in subsection 1.9.2.
3
We take the transpose of both sides, and we obtain
T
PT P f P = QT ,
4 3
T
which we solve for P4
f . We form the matrix
P3
T T
p1 (x) P q1 (x) P
3 4
PT QT
=
.. ..
. .
T T
p4 (x) P q4 (x) P
3 4
1 0 0 0 0 0 0 0 1
1 1 0 0 0 0 1 1 0
=
1
,
1 1 0 1 0 1 0 0
1 1 1 1 0 1 0 0 0
and we row reduce to obtain
1 0 0 0 0 0 0 0 1
0 1 0 0 0 0 1 1 1
RREF PT QT =
0
.
0 1 0 1 0 0 1 0
0 0 0 1 1 1 1 0 0
51
Here is a fully rigorous justification. Since polynomials p1 (x), p2 (x), p3 (x), p4 (x) span P3Z2
(because they form a basis of P3Z2 ), we have that
(∗)
(∗∗)
Im(f ) = Span f p1 (x) , . . . , f p4 (x) = Span q1 (x), . . . , q4 (x) ,
where (*) follows from Corollary 4.2.12, and (**) follows from the fact that f pi (x) = qi (x) for
all i ∈ {1, 2, 3, 4}. Since q1 (x), . . . , q4 (x) ∈ P4Z2 , Theorem 3.1.11 now guarantees that Im(f ) is a
subspace of P4Z2 .
52
This is important, because in order to form a matrix of a linear function (with respect to suitably
chosen bases), we need both the domain and the codomain to be non-trivial, finite-dimensional
vector spaces. As we know, the vector space PZ2 is not finite-dimensional.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 356
T
We now read off the (unique) solution for P4
f P3
:
0 0 0 0 1
T 0 0 1 1 1
P4
f P3
=
1
.
0 0 1 0
1 1 1 0 0
By taking the transpose, we obtain the (unique) solution for the matrix P4
f P3
:
0 0 1 1
0 0 0 1
P4
f P3
=
0 1 0 1 .
0 1 1 0
1 1 0 0
The existence and uniqueness of the matrix P f P guarantees the existence and
4 3
uniqueness of the linear function f : P3Z2 → PZ2 that satisfies f pi (x) = qi (x) for all
i ∈ {1, 2, 3, 4}.53
(b) By row reducing, we obtain
1 0 0 0
0 1 0 0
RREF P f P = 0 0 1 0 ,
4 3
0 0 0 1
0 0 0 0
and so rank P f P = 4. Therefore, by Theorem 4.5.4(a), we have that
4 3
rank(f ) = 4. For the kernel, we compute:
(∗)
dim P3Z2 − rank(f )
dim Ker(f ) = = 4−4 = 0,
f a3 x3 + a2 x2 + a1 x + a0 P
4
53
Technically,we proved the existence and uniqueness of the linear function f : P3Z2 → P4Z2 that
satisfies f pi (x) = qi (x) for all i ∈ {1, 2, 3, 4}. But obviously, we can simply expand the codomain
(from P4Z2 to PZ2 ).
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 357
a3 x3 + a2 x2 + a1 x + a0
= P4
f P3 P3
0 0 1 1 a2 + a3
0 0 0 1 a0 a3
a1
=
0 1 0 1
a2 =
a1 + a3
0 1 1 0 a1 + a2
a3
1 1 0 0 a0 + a1
for all a0 , a1 , a2 , a3 , a4 ∈ Z2 .
Optional: We can check that our formula
for f is correct by verifying that it indeed
satisfies the property that f pi (x) = qi (x) for all indices i ∈ {1, 2, 3, 4}. Here, we
only compute this for i = 4 in order to demonstrate the general principle. The rest
is similar routine computation. So, for i = 4, we compute:
f p4 (x) = f (x3 + x2 + x + 1)
= x = q4 (x),
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 358
Remark: In this particular case, it is not very hard to see that f does not exist.
Indeed, we can see that M3 = M1 + M2 , and so any linear function f : Z2×2
2 → Z2×3
2
satisfying f (M1 ) = N1 and f (M2 ) = N2 must also satisfy
(∗)
f (M3 ) = f (M1 + M2 ) = f (M1 ) + f (M2 ) = N1 + N2 ̸= N3 ,
where (*) follows from the linearity of f . However, we give a solution that illustrates
the general principle, which we can also use in those situations when the non-existence
of the function in question is not quite so obvious (and also when the function with
the given specifications does in fact exist).
In our solution, we will use the basis A := {A1 , A2 , A3 , A4 } of Z2×2 2 and the basis
B := {B1 , B2 , B3 , B4 , B5 , B6 } of Z2×3
2 . Instead of directly solving for the linear
function f : Z2×2
2 → Z
2
2×3
satisfying f (M i ) = Ni for all i ∈ {1, 2, 3, 4}, we will solve
6×4
for the matrix B f A in Z2 satisfying
B
f A
Mi A
= Ni B
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 359
T
which we solve for B
f A
. We form the matrix
T T
M1 A
N1 B
MT NT
=
.. ..
. .
T T
M4 A
N4 B
1 1 0 1 1 1 1 1 1 1
1 0 1 1 1 0 1 1 0 1
=
0
,
1 1 0 1 0 1 0 1 0
1 0 0 1 1 1 0 0 1 1
Example 4.5.24. Consider the following polynomials and vectors, the former with
coefficients in Z3 , and the latter with entries in Z3 :
T
p1 (x) = x2 + x + 1; v1 =
0 1 ;
T
p2 (x) = 2x + 1; v2 =
2 1 ;
T
p3 (x) = 2x2 + 1; v3 =
1 1 ;
T
p4 (x) = x + 2; v4 =
1 2 ;
T
p5 (x) = x2 + 2x; v5 =
1 0 .
Determine if there exists a linear function f : P2Z3 → Z23 such that f pi (x) = vi for
all i ∈ {1, . . . , 5}. If such a linear function f exists, determine if it is unique, and if
54
The point is that the fourth row is of the form 0 ... 0 ∗ ... ∗ , where at least one
of the ∗’s is non-zero.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 360
Solution. In our solution, we will use the basis P = {1, x, x2 } of P2Z3 , and the
standard basis E2 = {e1 , e2 } of Z23 . Instead of directly solving for the linear function
f : P2Z3 → Z23 satisfying f pi (x) = vi for all i ∈ {1, . . . , 5}, we will solve for the
matrix E f P in Z2×3
3 satisfying
2
E2
f P
pi (x) P
= vi E
| {z }2
=vi
T
which we solve for E2
f P
. We form the matrix
T 1 1 1 0 1
p1 (x) P
v1T 1 2 0 2 1
PT MT
=
.. .. =
1 0 2 1 1
,
. .
p5 (x)
T
v5T
2 1 0 1 2
P 0 2 1 1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 361
By taking the transpose, we obtain the general solution for E2
f P
, as follows:
t1 + 1 t1 + 2 t1
E2
f P
= , where t1 , t2 ∈ Z3 .
t2 + 1 t2 t2
Since we got more than one solution for the matrix E f P , we deduce that there
2
exists a linear function f : P2Z3 → Z23 satisfying f pi (x) = vi for all i ∈ {1, . . . , 5},
but that such a linear function f is not unique.
It remains to determine the exact number of linear functions
f with the given
specifications. Our general solution for the matrix E f P has two parameters,
2
each of which can take any value from Z3 . So, the number of solutions for E f P
2
is 32 = 9, and consequently, there are exactly nine linear functions f : P2Z3 → Z23
satisfying f pi (x) = vi for all i ∈ {1, . . . , 5}.
Our final example of this subsection (see Example 4.5.25 below) is slightly more
complicated. As we shall see, the linear function satisfying the specifications from
that example is not unique. Moreover, we will need to construct examples of linear
functions satisfying those specifications, and also having all possible ranks (that
is, possible subject to the constraints of the example). Our solution will rely on
Proposition 3.3.12, which states that both elementary row operations and elementary
column operations preserve the rank of a matrix.
p1 (x) = x3 + 1; p3 (x) = x2 + 2x + 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 362
If so, find a formula for one such isomorphism,56 and also for its inverse.
Solution. In our solution, we will use the basis P = {1, x, x2 , x3 } of P3Z3 , as well as
the basis M = {A1 , A2 , A3 , A4 } of Z2×2
3 , where
1 0 0 1 0 0 0 0
A1 = , A2 = , A3 = , A4 = .
0 0 0 0 1 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 363
T
We now read off the general solution for M
f P
:
2t1 + 2 2t2 2t3 2t4
T s1 + 2t1 + 1 s2 + 2t2 s3 + 2t3 + 1 s4 + 2t4 + 1
M
f P
=
s1
,
s2 s3 s4
t1 t2 t3 t4
2t1 + 2 s1 + 2t1 + 1 s1 t1
2t s2 + 2t2 s2 t2
2
= rank 2t3
s3 + 2t3 + 1 s3 t3
2t4 s4 + 2t4 + 1 s4 t4
57
Actually, in this particular example, we will end up with a matrix that has two pivot columns,
and two columns that can be arranged to be pivot columns or not (depending on the values we
assign to our parameters); there will be no zero columns in the end.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 364
2t1 + 2 2t1 + 1 s1 t1
2t 2t2 s2 t2
C2 →C2 +2C3 2
= rank 2t3
2t3 + 1 s3 t3
2t4 2t4 + 1 s4 t4
2 1 s1 t1
C1 →C1 +C4 0
C2 →C2 +C4 0 s2 t2
= rank
0
1 s3 t3
0 1 s4 t4
1 1 s1 t1
0 0 s2 t2
C1 →2C1
= rank
0
1 s3 t3
0 1 s4 t4
C2 →C2 +2C1 1 0 0 0
C3 →C3 +2s1 C1 0
C4 →C4 +2t1 C1 0 s2 t2
= rank
0
1 s3 t3
0 1 s4 t4
1 0 0 0
0 1 s3 t3
R2 ↔R3
= rank
0
0 s2 t2
0 1 s4 t4
1 0 0 0
0 1 s3 t3
R4 →R4 +2R2
= rank
0
0 s2 t2
0 0 2s3 + s4 2t3 + t4
1 0 0 0
C3 →C3 +2s3 C2 0
C4 →C4 +2t3 C2 1 0 0
= rank
0
,
0 s2 t2
0 0 2s3 + s4 2t3 + t4
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 365
f a3 x3 + a2 x2 + a1 x + a0 M = a3 x3 + a2 x2 + a1 x + a0
M
f P P
2 1 0 0 a0
0 0 0 0 a1
=
0
1 0 0 a2
0 1 0 0 a3
2a0 + a1
0
=
a1
a1
2a0 + a1 0
= .
a1 a1 M
Since · M
is an isomorphism (and in particular, one-to-one), we get the formula
2a0 + a1 0
x3 x2
f a3 + a2 + a1 x + a0 =
a1 a1
for all a0 , a1 , a2 , a3 ∈ Z3 .
Rank 3: By setting, for example, s2 = 1 and s1 = s3 = s4 = t1 = t2 = t3 = t4 =
0, we obtain rank(f ) = 3. In this case, we have
2 1 0 0
0 1 1 0
M
f P = 0 1
.
0 0
0 1 0 0
58
There are many other possible choices for the parameters s1 , s2 , s3 , s4 , t1 , t2 , t3 , t4 that will also
yield rank(f ) = 2. However, we only need to exhibit one single example, and this is arguably the
simplest one.
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 366
f a3 x3 + a2 x2 + a1 x + a0 a3 x3 + a2 x2 + a1 x + a0
M
= M
f P P
2 1 0 0 a0
0 1 1 0 a1
=
0
1 0 0 a2
0 1 0 0 a3
2a0 + a1
a1 + a2
=
a1
a1
2a0 + a1 a1 + a2
= .
a1 a1 M
Since · M
is an isomorphism (and in particular, one-to-one), we get the formula
2a0 + a1 a1 + a2
x3 x2
f a3 + a2 + a1 x + a0 =
a1 a1
for all a0 , a1 , a2 , a3 ∈ Z3 .
Rank 4: By setting, for example, s2 = t4 = 1 and s1 = s3 = s4 = t1 = t2 = t3 =
0, we obtain rank(f ) = 4. In this case, we have
2 1 0 0
0 1 1 0
M
f P = 0 1
.
0 0
2 0 0 1
f a3 x3 + a2 x2 + a1 x + a0 M = a3 x3 + a2 x2 + a1 x + a0
M
f P P
2 1 0 0 a0
0 1 1 0 a1
=
0
1 0 0 a2
2 0 0 1 a3
2a0 + a1
a1 + a2
=
a1
2a0 + a3
2a0 + a1 a1 + a2
= .
a1 2a0 + a3 M
Irena Penev
Linear Algebra 1 & 2
Chapter 4. Linear functions 367
Since · M
is an isomorphism (and in particular, one-to-one), we get the formula
2a0 + a1 a1 + a2
x3 x2
f a3 + a2 + a1 x + a0 =
a1 2a0 + a3
for all a0 , a1 , a2 , a3 ∈ Z3 . Finally, we note that our linear function f : P3Z3 → Z2×2
3
(given by the formula that we just obtained) is an isomorphism. Indeed, since
rank(f ) = 4 = dim(Z2×2 3 ), Proposition 4.2.6 guarantees that f is onto. Since
the domain and codomain of f have the same finite dimension, Corollary 4.2.10
guarantees that f is in fact an isomorphism. It remains to compute a formula for
f −1 . First, we note that
2 0 1 0
−1 (∗)
−1 (∗∗) 0 0 1 0
P
f M
= M
f P
= 0 1 2 0 ,
2 0 1 1
where (*) follows from Theorem 4.5.4(g), and (**) is obtained via routine computation.
Then for all a, b, c, d ∈ Z3 , we have that
a b
−1
−1 a b
f = P f M
c d P
c d M
2 0 1 0 a
0 0 1 0 b
=
0
1 2 0 c
2 0 1 1 d
2a + c
c
=
b + 2c
2a + c + d
for all a, b, c, d ∈ Z3 .
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 368
Chapter 5
a+U := {a + u | u ∈ U },
a+U
a U
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 369
for every vector a ∈ V , {a} is an affine subspace of V , since {a} = a + {0} and
{0} is a linear subspace of V .
a + U = a′ + U
a a′ U
(c) for all vectors a′ and linear subspaces U ′ of V such that M = a′ + U ′ , we have
that U ′ = U ;
1
Moreover, as we shall see, linear subspaces of V are precisely those affine subspaces of V that
contain 0 (see Corollary 5.1.2).
2
This follows from Theorem 5.1.1(b)
3
This follows from Theorem 5.1.1(c).
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 370
dim(M ) := dim(U ).
Corollary 5.1.2. Let V be a vector space over a field F. Then linear subspaces of V
are precisely those affine spaces of V that contain 0. In other words, for all U ⊆ V ,
the following are equivalent:
Fix u′ ∈ U ′ . Then a′ + u′ ∈ a′ + U ′ = a′ + U , and it follows that there exists some u ∈ U such that
a′ + u′ = a′ + u. By subtracting a′ from both sides, we get u′ = u; since u ∈ U , we deduce that
u′ ∈ U . So, U ′ ⊆ U .
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 371
Proof. Fix U ⊆ V . Suppose first that (i) holds. Then 0 ∈ U (by Theorem 3.1.7),
and moreover, U = 0 + U . So, (ii) holds.
Suppose now that (ii) holds. Since U is an affine subspace of V , we know that
there exists a vector a ∈ V and a linear subspace U ′ of V such that U = a + U ′ .
Moreover, by (ii), we have that 0 ∈ U , and so by Theorem 5.1.1(b), we have that
U = 0 + U ′ . So, U = U ′ . Since U ′ is a linear subspace of V , we see that (i) holds.
Recall that the intersection of two linear subspaces is a linear subspace (see
subsection 3.1.3). In the case of affine subspaces, we have the following corollary.
Corollary 5.1.3. Let V be a vector space over a field F, and let M1 and M2 be
affine subspaces of V . Then either M1 ∩ M2 = ∅, or M1 ∩ M2 is an affine subspace
of V .
Proof. We may assume that M1 ∩ M2 ̸= ∅, for otherwise we are done. Fix any
a ∈ M1 ∩ M2 . By Theorem 5.1.1, M1 and M2 can be written as M1 = a + U1 and
M2 = a+U2 , for some linear subspaces U1 and U2 of V . Then U := U1 ∩U2 is a linear
subspace of V (see subsection 3.1.3). Moreover, it is clear that M1 ∩ M2 = a + U ,5
and so M1 ∩ M2 is an affine subspace.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 372
f1 f2
V1 V2 V3
Proof. We prove (c). The proofs of (a) and (b) are left as an exercise. Fix affine
functions f1 : V1 → V2 and f2 : V2 → V3 . Since f1 : V1 → V2 is an affine function,
there exists a linear function g1 : V1 → V2 and a vector b2 ∈ V2 such that for all
x ∈ V1 , we have that f1 (x) = g1 (x) + b2 . Similarly, since f2 : V2 → V3 is an affine
function, there exists a linear function g2 : V2 → V3 and a vector b3 ∈ V3 such that
for all x ∈ V2 , we have that f2 (x) = g2 (x) + b3 . But now for all x ∈ V1 , we have that
(f2 ◦ f1 )(x) = f2 f1 (x)
= f2 g1 (x) + b2
= g2 g1 (x) + b2 + b3
= g2 g1 (x) + g2 (b2 ) + b3 because g2 is linear
= (g2 ◦ g1 )(x) + g2 (b2 ) + b3 .
Since g1 and g2 are linear, Proposition 4.1.7(c) guarantees that g2 ◦ g1 is linear. On
the other hand, g2 (b2 ) + b3 is a vector in V3 . So, f2 ◦ f1 is an affine function.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 373
by definition, since
= dim g[U1 ] g[U1 ] is a linear
subspace of V2
≤ min dim(U1 ), dim(V ) by Corollary 4.2.9
by definition, since
= min dim(M1 ), dim(V )
Irena Penev
M1 = a1 + U1 .
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 374
Corollary 5.2.4. Let V1 and V2 be vector spaces over a field F, and let f : V1 → V2
be an affine function given by
Im(f ) = f [V1 ]
= f [0 + V1 ]
= g(0) + b + g[V1 ] by Theorem 5.2.3
because g is linear
and therefore (by
= b + g[V1 ]
Proposition 4.1.6)
satisfies g(0) = 0
= b + Im(g).
by definition, since
= dim Im(g) Im(g) is a linear
subspace of V2
by definition, since
= rank(g)
g is linear
≤ min dim(V1 ), dim(V2 ) by Corollary 4.2.8.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 375
Theorem 5.2.5. Let V1 and V2 be vector spaces over a field F, and let f : V1 → V2
be an affine function given by
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 376
Proof. We first prove (a). Fix a1 ∈ f −1 [M2 ]. Then f (a1 ) ∈ M2 , and so by Theo-
rem 5.1.1, we have that M2 = f (a1 ) + U2 for some linear subspace U2 of V2 . We now
have the following:
f −1 [M2 ] = {x ∈ V1 | f (x) ∈ M2 }
= {x ∈ V1 | f (x) ∈ f (a1 ) + U2 }
= {x ∈ V1 | g(x) + b ∈ (g(a1 ) + b) + U2 }
= {x ∈ V1 | g(x) ∈ g(a1 ) + U2 }
= {x ∈ V1 | g(x) − g(a1 ) ∈ U2 }
(∗)
= {x ∈ V1 | g(x − a1 ) ∈ U2 }
(∗∗)
= a1 + {y ∈ V1 | g(y) ∈ U2 }
= a1 + g −1 [U2 ],
where (*) follows from the fact that g is linear, and in (**) we set y = x − a1 .7 This
proves (a).
It remains to prove (b). We may assume that f −1 [M2 ] ̸= ∅, for otherwise
we are done. Fix any a1 ∈ f −1 [M2 ]. Then by (a), we have that f −1 [M2 ] =
a1 + g −1 [U2 ]. Since g : V1 → V2 is a linear function and U2 is a linear subspace
of V2 , Theorem 4.2.3(c) guarantees that g −1 [U2 ] is a linear subspace of V1 . So,
f −1 [M2 ] = a1 + g −1 [U2 ] is an affine subspace of V1 . This proves (b).
Corollary 5.2.6. Let V1 and V2 be vector spaces over a field F, and let f : V1 → V2
be an affine function given by
(a) if a ∈ V1 is any solution of the equation f (x) = c,8 then the solution set of the
equation f (x) = c is a + Ker(g);
(b) the solution set of the equation f (x) = c is either empty or an affine subspace of
V1 .
7
We are also using the fact that V1 = {x − a1 | x ∈ V1 }. (Proof?)
8
This simply means that f (a) = c.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 377
Remark: If the equation f (x) = c has no solutions (which is possible), then (a) is
vacuously true.
Proof. We first prove (a). Suppose that a ∈ V1 is any solution of the equation
f (x) = c; we must show that the solution set of the equation f (x) = c is precisely
the set a + Ker(g). Now, note that the solution set of the equation f (x) = c is
precisely the set f −1 [{c}], and in particular, we have that a ∈ f −1 [{c}]. Moreover,
since {c} = c + {0}, and {0} is a linear subspace of V2 , we have that {c} is an affine
subspace of V2 . But now
We can now apply Theorem 5.2.5, as follows:
(∗) (∗∗)
f −1 [{c}] = a + g −1 [{0}] = a + Ker(g)
where (*) follows from Theorem 5.2.5, and (**) follows from the definition of Ker(g).
This proves (a).
It remains to prove (b). We may assume that the equation f (x) = c is consistent,
for otherwise, its solution set is empty, and we are done. Fix any solution a of
the equation f (x) = c. Then by (a), the solution set of the equation f (x) = c
is a + Ker(g). But by Theorem 4.2.3(d), Ker(g) is a linear subspace of V1 . So,
a + Ker(g) is an affine subspace of V1 . This proves (b).
Corollary 5.2.7. Let F be a field, and let A ∈ Fn×m and b ∈ Fn . Then both the
following hold:
(a) if a is any solution of the matrix-vector equation Ax = b, then the solution set
of Ax = b is a + Nul(A);
Let us take a look at a simple example illustrating Corollary 5.2.7. Consider the
the following matrix and vector, with entries understood to be in Z3 :
1 2 2 2 1 2
2 2 0 0 1 2
A := 0 2 0 2 0 ,
b := 1 .
1 1 2 1 1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 378
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 379
{tx + (1 − t)y | t ∈ R}
Since xi = 0x1 + · · · + 0xi−1 + 1xi + 0xi+1 + · · · + 0xn for all i ∈ {1, . . . , n}, we see that
x1 , . . . , xn ∈ Aff(x1 , . . . , xn ). As Theorem 5.3.1 (below) shows, affine subspaces of V
are precisely those non-empty subsets of V that are closed under affine combinations.
As a corollary (see Corollary 5.3.2), we deduce that all affine hulls are affine subspaces
of V . We note that Theorem 5.3.1 are the affine subspace analogs of Theorems 3.1.7
and 3.1.11(b), respectively.
Theorem 5.3.1. Let V be a vector space over a field F, and let M ⊆ V . Then the
following are equivalent:
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 380
(ii) M is non-empty and closed under affine combinations, that is, for all vectors
x1 , . . . , xn ∈ M and α1 , . . . , αn ∈ F such that α1 + · · · + αn = 1, we have that
α1 x1 + · · · + αn xn ∈ M .
Proof. Assume first that (i) holds. Let us prove (ii). Set M = a + U , where a is
a vector and U a linear subspace of V , as in the definition of an affine subspace.
By Theorem 5.1.1(a), we have that a ∈ M , and in particular, M ̸= ∅. It remains
to show that M is closed under affine combinations. Fix x1 , . . . , xn ∈ M , and fix
α1 , . . . , αn ∈ F such that α1 + · · · + αn = 1; we must show that α1 x1 + · · · + αn xn
belongs to M . Since x1 , . . . , xn ∈ M = a + U , there exist vectors u1 , . . . , un ∈ U
such that x1 = a + u1 , . . . , xn = a + un . We now have that
α1 x1 + · · · + αn xn = α1 (a + u1 ) + · · · + αn (a + u1 )
= (α1 + · · · + αn )a + (α1 u1 + · · · + αn un )
| {z }
=1
= a + (α1 u1 + · · · + αn un ).
| {z }
:=u
Since x, a ∈ M , and since (ii) holds, we have that y = αx + (1 − α)a ∈ M . But now
αu = y − a ∈ U .
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 381
We have now shown that U is a linear subspace of V , and it follows that (i)
holds.
n}, we set γj := m
P Pn
For each j ∈ {1, . . . , P i=1 αi βi,j . Then y = j=1 γn xj . It now
remains to show that nj=1 γj = 1, for this will imply that y is an affine combination
of x1 , . . . , xn , that is, that y ∈ M , which is what we need to show. We compute:
n
P n P
P m m
P n
P (∗) m
P
γj = αi βi,j = αi βi,j = αi = 1,
j=1 j=1 i=1 i=1 j=1 i=1
Pn
where (*) follows from the fact that j=1 βi,j = 1. This completes the argument.
Corollary 5.3.3. Let V be a vector space over a field F, let M be an affine subspace
of V , and let x1 , . . . , xn (n ≥ 1) be vectors in V . Then the following are equivalent:
(i) M = Aff(x1 , . . . , xn );
Proof. Obviously, (i) implies (ii). For the reverse implication, we assume that (ii)
holds, and we prove (i). Since every vector in M is an affine combination of
x1 , . . . , xn , we have that M ⊆ Aff(x1 , . . . , xn ). Let us prove the reverse inclusion.
Fix x ∈ Aff(x1 , . . . , xn ). By (ii), we have that x1 , . . . , xn ∈ M , and by Theorem 5.3.1,
we know that M is closed under affine combinations. Since x is an affine combination
of x1 , . . . , xn , we deduce that x ∈ M . This proves that Aff(x1 , . . . , xn ) ⊆ M . Thus, (i)
holds.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 382
Theorem 5.4.1. Let M be an affine subspace of a vector space V over a field F, and
let (a, u1 , . . . , un ) be an affine frame of M . Then for all x ∈ M , there exist unique
scalars α1 , . . . , αn ∈ F such that x = a + α1 u1 + · · · + αn un .
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 383
= (−α1 − · · · − αn )x0 + α1 x1 + · · · + αn xn
= α1 (x1 − x0 ) + · · · + αn (xn − x0 )
Since vectors x1 − x0 , . . . , xn − x0 are linearly independent, we see that α1 = · · · =
αn = 0. Since α0 = −α1 − · · · − αn , it follows that α0 = 0. This proves (i).
Suppose now that (i) holds. Let us prove (iii). By symmetry, it suffices to show
that x1 − x0 , . . . , xn − x0 are linearly independent. Fix scalars α1 , . . . , αn ∈ F such
that α1 (x1 − x0 ) + · · · + αn (xn − x0 ) = 0. Then
(−α1 − · · · − αn )x0 + α1 x1 + · · · + αn xn = 0.
| {z }
:=α0
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 384
Then ni=0 αi xi = ni=0 βi xi , and we deduce that ni=0 (αi − βi )xi = 0. On the
P P P
other hand,
Pn Pn P n
(αi − βi ) = αi − βi = 1 − 1 = 0.
i=0 i=0 i=0
Since vectors x0 , x1 , . . . , xn are affinely independent, we now deduce that α0 − β0 =
α1 − β1 = · · · = αn − βn = 0. Therefore, αi = βi for all i ∈ {0, 1, . . . , n}. This proves
uniqueness.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 385
Proof. First, we know that (i) and (ii) are, respectively, equivalent to (1) and (2)
below:
(1) vectors x0 , x1 , . . . , xn are affinely independent and
M = Aff(x0 , x1 , . . . , xn );
M = x0 + Span(x1 − x0 , . . . , xn − x0 ).
So, it suffices to show that (1) and (2) are equivalent. By Proposition 5.4.2, vectors
x0 , x1 , . . . , xn are affinely independent if and only if vectors x1 − x0 , . . . , xn − x0
are linearly independent. It now remains to show that Aff(x0 , x1 , . . . , xn ) = x0 +
Span(x1 − x0 , . . . , xn − x0 ). For this, we compute:
Aff(x0 , x1 , . . . , xn )
= α0 x0 + α1 x1 + · · · + αn xn | α0 , α1 , . . . , αn ∈ F, α0 + α1 + · · · + αn = 1
= (1 − α1 − · · · − αn )x0 + α1 x1 + · · · + αn xn | α1 , . . . , αn ∈ F
= x0 + α1 (x1 − x0 ) + · · · + αn (xn − x0 ) | α1 , . . . , αn ∈ F
= x0 + Span(x1 − x0 , . . . , xn − x0 ).
This completes the argument.
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 386
Example 5.4.5. Consider the following matrix and vector, both with entries in Z2 :
1 0 0 1 1 1 1
1 1 1 0 0 1 1
A= 0 1
, b = .
1 1 1 0 0
1 0 1 0 1 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 387
Irena Penev
Linear Algebra 1 & 2
Chapter 5. Affine subspaces and affine functions 388
1 0 0 0
1 1 0 0
n
1
0
1
0
o
= , , ,
0
1
0
0
0 0 1 0
0 0 0 1
is an affine basis of S.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 389
Chapter 6
The name “scalar product” comes from the fact that we multiply two vectors
and obtain a scalar as a result.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 390
Note that axioms r.2 and r.3 from the definition above guarantee that the scalar
product in a real vector space V is linear in the first variable (when we keep the
second variable fixed). But in fact, axioms r.2, r.3, and r.4 guarantee that it is linear
in the second variable as well (when we keep the first variable fixed). More precisely,
we have the following:
r.2’. for all x, y, z ∈ V , ⟨x, y + z⟩ = ⟨x, y⟩ + ⟨x, z⟩;
r.3’. for all x, y ∈ V and α ∈ R, ⟨x, αy⟩ = α⟨x, y⟩.
To see that r.2’ holds, note that for all x, y, z ∈ V , we have the following:
r.4 r.2 r.4
⟨x, y + z⟩ = ⟨y + z, x⟩ = ⟨y, x⟩ + ⟨z, x⟩ = ⟨x, y⟩ + ⟨x, z⟩.
On the other hand, to see that r.3’ holds, note that for all x, y ∈ V and α ∈ R, we
have the following:
r.4 r.3 r.4
⟨x, αy⟩ = ⟨αy, x⟩ = α⟨y, x⟩ = α⟨x, y⟩.
(By Proposition 6.1.1, this really is a scalar product in Rn .) For example, for vectors
T T
in R3 , we compute:
1 −2 5 and −3 2 1
1 −3
−2 · 2 = 1 · (−3) + (−2) · 2 + 5 · 1 = −2.
5 1
T T
in Rn , we
Note that for vectors x = x1 . . . xn and y = y1 . . . yn
have that
y1 n
.
xT y =
P
x1 .
. . . xn . = x y
i i = x·y .
i=1
yn
So, if we identify 1 × 1 matrices with scalars, then we simply get that
x · y = xT y
for all x, y ∈ Rn .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 391
n
P n
P
= xi zi + yi zi
i=1 i=1
= x · z + y · z.
T T
in Rn and a
r.3. For vectors x = x1 . . . xn and y = y1 . . . yn
scalar α ∈ R, we have that
n
P n
P
(αx) · y = (αxi )yi = α xi yi = α(x · y).
i=1 i=1
T T
in Rn , we have
r.4. For vectors x = x1 . . . xn and y = y1 . . . yn
that
Pn Pn
x·y = x i yi = yi xi = y · x.
i=1 i=1
This proves that the standard scalar product in Rn really is a scalar product.
We note that a similar type of scalar product can be defined for matrices.
n×m
Indeed, for matrices A = ai,j n×m and B = bi,j n×m in R , we can define
n Pm
aij bij . It is easy to verify that this really is a scalar product in Rn×m
P
⟨A, B⟩ =
i=1 j=1
(the proof is similar to that of Proposition 6.1.1).
Remark: The standard scalar product is only one of many possible scalar products in
Rn . A full characterization of all possible scalar products in Rn (and more generally,
in all non-trivial, finite-dimensional real vector spaces) is given by Theorem 10.4.1.
An example with integrals. For readers who have studied calculus, Proposi-
tion 6.1.2 (below) gives an example of a scalar product involving integrals.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 392
Proposition 6.1.2. Let a, b ∈ R be such that a < b, and let C[a,b] be the (real)
vector space of all continuous functions from the closed interval [a, b] to R.1 Then
the function ⟨·, ·⟩ : C[a,b] × C[a,b] → R defined by
Rb
⟨f, g⟩ := f (x)g(x)dx
a
Proof. We must verify that the four axioms from the definition of a scalar product
are satisfied. We first prove that axioms r.2, r.3, and r.4 are satisfied, and then we
prove that axiom r.1 is satisfied (our proof of r.1 relies on r.3 and r.4, which is why
we prove r.1 last).
r.2. For f1 , f2 , f3 ∈ C[a,b] , we have that
Rb
⟨f1 + f2 , f3 ⟩ = f1 (x) + f2 (x) f3 (x)dx
a
Rb
= f1 (x)f3 (x) + f2 (x)f3 (x) dx
a
Rb Rb
= f1 (x)f3 (x)dx + f2 (x)f3 (x)dx
a a
= ⟨f1 , f3 ⟩ + ⟨f2 , f3 ⟩.
Rb
⟨αf1 , f2 ⟩ = αf1 (x) f2 (x)dx
a
Rb
= α f1 (x)f2 (x)dx
a
= α⟨f1 , f2 ⟩.
Rb Rb
⟨f1 , f2 ⟩ = f1 (x)f2 (x)dx = f2 (x)f1 (x)dx = ⟨f2 , f1 ⟩.
a a
1
Recall from calculus that all such functions are integrable.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 393
Rb (∗)
⟨f, f ⟩ = f (x)2 dx ≥ 0,
a
where (*) follows from the fact that f (x)2 ≥ 0 for all x ∈ [a, b]. If f (x) = 0 for all
x ∈ [a, b], then obviously, ⟨f, f ⟩ = 0. Suppose now that there exists some x0 ∈ [a, b]
such that f (x0 ) ̸= 0. We must show that ⟨f, f ⟩ > 0.
Suppose first that f (x0 ) > 0. Set m = f (x2 0 ) . (Clearly, m > 0.) Then since f
is continuous on [a, b], there exist a0 , b0 ∈ R such that a ≤ a0 ≤ x0 ≤ b0 ≤ b and
a0 < b0 , and such that for all x ∈ [a0 , b0 ], we have that f (x) ≥ m.2 We now compute:
Rb
⟨f, f ⟩ = f (x)2 dx
a
Ra0 Rb0 Rb
= f (x)2 dx + f (x)2 dx + f (x)2 dx
a a0 b0
(∗) Rb0
≥ f (x)2 dx
a0
(∗∗)
≥ m2 (b0 − a0 )
> 0,
where (*) follows from the fact that f (x)2 ≥ 0 for all x ∈ [a, a0 ] ∪ [b0 , b], and (**)
follows from the fact that f (x)2 ≥ m2 for all x ∈ [a0 , b0 ].
Suppose now that f (x0 ) < 0. Then −f (x0 ) > 0. So, by an argument completely
analogous to the above (applied to −f instead of f ), we obtain ⟨−f, −f ⟩ > 0. We
now use axioms r.3 and r.4 (which we have already verified) to obtain the following:
r.3 r.4 r.3
⟨−f, −f ⟩ = −⟨f, −f ⟩ = −⟨−f, f ⟩ = ⟨f, f ⟩.
for all x ∈ [a0 , b0 ], we have that |x − x0 | ≤ 2δ < δ, and consequently, |f (x) − f (x0 )| < ε, i.e.
f (x0 ) − ε < f (x) < f (x0 ) + ε. Since f (x0 ) = 2m and ε = m, we deduce that for all x ∈ [a0 , b0 ], we
have that m < f (x) < 3m, and in particular, f (x) ≥ m.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 394
c.1. for all x ∈ V , ⟨x, x⟩ is a real number, ⟨x, x⟩ ≥ 0 , and equality holds if and
only if x = 0;
Note that axioms c.2 and c.3 from the definition above guarantee that the scalar
product in a complex vector space V is linear in the first variable (when we keep the
second variable fixed). Unlike in the real case, it is not linear in the second variable
(when we keep the first variable fixed). We do, however, have the following:
To see that c.2’ holds, note that for all x, y, z ∈ V , we have the following:
c.4
⟨x, y + z⟩ = ⟨y + z, x⟩
c.2
= ⟨y, x⟩ + ⟨z, x⟩
= ⟨y, x⟩ + ⟨z, x⟩
c.4
= ⟨x, y⟩ + ⟨x, z⟩.
On the other hand, to see that c.3’ holds, note that for all x, y ∈ V and α ∈ C, we
have the following:
c.4 c.3 c.4
⟨x, αy⟩ = ⟨αy, x⟩ = α⟨y, x⟩ = α ⟨y, x⟩ = α⟨x, y⟩.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 395
(By Proposition 6.1.3, this really is a scalar product in Cn .) For example, for vectors
T T
in C2 , we compute:
1 − 2i −2 + i and 2 + i 1 + 3i
1 − 2i 2+i
· = (1 − 2i)(2 + i) + (−2 + i)(1 + 3i)
−2 + i 1 + 3i
= 1 + 2i.
Proposition 6.1.3. The standard scalar product in Cn is a scalar product.
Proof. We need to check that the standard scalar product · in C satisfies the four
axioms from the definition of a scalar product in a complex vector space.
c.1. For a vector x = x1 . . . xn in Cn , we have that
n (∗) n (∗∗)
|xi |2
P P
x·x = xi xi = ≥ 0,
i=1 i=1
where (*) follows from Proposition 0.3.2. Moreover, note that the inequality (**) is
an equality if and only if x1 = · · · = xn = 0, i.e. if and only if x = 0.
T T T
c.2. For vectors x = x1 . . . xn , y = y1 . . . yn , and z = z1 . . . zn
in Cn , we have that
n
P
(x + y) · z = (xi + yi )zi
i=1
n
P n
P
= x i zi + yi zi
i=1 i=1
= x · z + y · z.
T T
in Cn and a
c.3. For vectors x = x1 . . . xn and y = y1 . . . yn
scalar α ∈ C, we have that
n
P n
P
(αx) · y = (αxi )yi = α xi yi = α(x · y).
i=1 i=1
T T
in Cn , we have
c.4. For vectors x = x1 . . . x n and y = y1 . . . y n
that
n
P n
P n
P n
P
x·y = xi yi = x i yi = x i yi = yi xi = y · x.
i=1 i=1 i=1 i=1
This proves that the standard scalar product in Cn really is a scalar product.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 396
6.1.3 Orthogonality
Given a real or complex vector space V , equipped with a scalar product ⟨·, ·⟩, we say
that vectors x and y in V are orthogonal, and we write x ⊥ y, if ⟨x, y⟩ = 0. When
our scalar product is the standard scalar product in Rn , this corresponds to the
usual geometric interpretation (a detailed explanation is given in subsection 6.2.1).
However, for general scalar products, this is how we define orthogonality.3
Proposition 6.1.4. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩. Then all the following hold:
(b) for all vectors x, y ∈ V and scalars α, β,4 if x ⊥ y then (αx) ⊥ (βy);
Proof. We prove the proposition for the case when V is a complex vector space. The
real case is similar but slightly easier (because we do not have to deal with complex
conjugates).
(a) For vectors x, y ∈ V , we have the following sequence of equivalences:
⇐⇒ ⟨y, x⟩ = 0 by c.4
⇐⇒ ⟨y, x⟩ = 0
⇐⇒ y⊥x by definition.
= αβ⟨x, y⟩ by c.3’
= αβ0 beause x ⊥ y
= 0.
3
For example, for the scalar product defined on C[−π,π] in Proposition 6.1.2, we have that
Rπ
sin x ⊥ cos x, since sin x, cos x = sin x cos xdx = 0.
−π
4
Here, α and β are real or complex numbers, depending on whether V is a real or complex vector
space.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 397
Suppose that V is a real or complex vector space, equipped with a scalar product
⟨·, ·⟩. For a vector v ∈ V and a set of vectors A ⊆ V ,5 we say that v is orthogonal
to A, and we write v ⊥ A, provided that v is orthogonal to all vectors in A.6 For
sets of vectors A, B ⊆ V ,7 we say that A is orthogonal to B, and we write A ⊥ B, if
every vector in A is orthogonal to every vector in B.
p D
P q
P E
= αi ai , βj bj by r.2 or c.2
i=1 j=1
p P
P q
= ⟨αi ai , βj bj ⟩ by r.2’ or c.2’
i=1 j=1 | {z }
(∗)
=0
= 0,
where (*) follows from Proposition 6.1.4(b) and from the fact that {a1 , . . . , ap } ⊥
{b1 , . . . , bq }. This proves that a ⊥ b, and the result follows.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 398
the origin, or alternatively, the length of the vector x; ||x|| is always supposed to
be a non-negative real number (even if V is a complex vector space). For vectors
x, y ∈ V , ||x − y|| is supposed to be the distance between x and y. Distance can
be defined in a variety of ways. We first study norms induced by a scalar product
(see subsections 6.2.1 and 6.2.2). The definition of a norm in general is given in
subsection 6.2.3, and some additional examples of norms are given in subsection 6.2.4.
for all x ∈ V . In view of r.1 and c.1, for all x ∈ V , we have that ||x|| is a non-negative
real number,8 and moreover, ||x|| = 0 if and only if x = 0.
Proposition 6.2.1. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩ and the induced norm || · ||. Then for all vectors x ∈ V and scalars α,9
we have that
||αx|| = |α| ||x||.
Proof. If the vector space V is real, then for all vectors x ∈ V and scalars α ∈ R, we
have that
p (∗) p p
||αx|| = ⟨αx, αx⟩ = α2 ⟨x, x⟩ = |α| ⟨x, x⟩ = |α| ||x||,
= |α| ||x||.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 399
y z=x−y
θ
x
We then compute
||z||2 = z · z
= (x − y) · (x − y)
= x · x −x · y − y · x + y · y
|{z} | {z }
=||x||2 =||y||2
= ||x||2 + ||y||2 − 2x · y
On the other hand, the Law of Cosines (for triangles) tells us that
||z||2 = ||x||2 + ||y||2 − 2||x|| ||y|| cos θ.
So, ||x||2 + ||y||2 − 2x · y = ||x||2 + ||y||2 − 2||x|| ||y|| cos θ, and consequently,
x · y = ||x|| ||y|| cos θ,
as we had claimed. Note that this means that non-zero vectors x, y ∈ Rn are
orthogonal in the usual geometric sense (i.e. the angle between them is 90◦ ) if and
only if x · y = 0.11
10
This triangle may possibly be “degenerate” (i.e. one-dimensional). This happens if x and y are
scalar multiples of each other.
11
This is because for an angle θ, with 0◦ ≤ θ ≤ 180◦ , we have that cos θ = 0 if and only if θ = 90◦ .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 400
Warning: The formula x · y = ||x|| ||y|| cos θ that we obtained above only works
for the standard scalar product in Rn and the norm induced by it. Do not attempt
to use it for general scalar products!
||x + y||2 = ⟨x + y, x + y⟩
= ||x||2 + ||y||2 ,
for all x, y ∈ V .
Proof. Fix x, y ∈ V . We may assume that ⟨x, y⟩ = ̸ 0, for otherwise, the result is
immediate. Note that this implies that x, y ̸= 0, and consequently, ||x||, ||y|| =
̸ 0.
We set
z := ⟨y,y⟩
⟨x,y⟩ x − y,
and we compute
(∗)
⟨z, y⟩ = ⟨ ⟨y,y⟩
⟨x,y⟩ x − y, y⟩ = ⟨y,y⟩
⟨x,y⟩ ⟨x, y⟩ − ⟨y, y⟩ = 0,
where (*) follows from r.2 and r.3 if V is a real vector space, or from c.2 and c.3
if V is a complex vector space. We have now shown that z ⊥ y, and so by the
Pythagorean theorem, we have that
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 401
⟨y,y⟩
But by construction, z + y = ⟨x,y⟩ x, and consequently:
(∗) ||y||2
||z + y|| = || ⟨y,y⟩
⟨x,y⟩ x|| = | ⟨y,y⟩
⟨x,y⟩ | ||x|| =
|⟨y,y⟩|
|⟨x,y⟩| ||x|| = |⟨x,y⟩| ||x||,
which yields
||y||4
|⟨x,y⟩|2
||x||2 ≥ ||y||2 .
|⟨x,y⟩|2
Since ⟨x, y⟩ and ||y|| are both non-zero, we have that ||y||2
is defined and positive.
|⟨x,y⟩|2
So, we may multiply both sides of the inequality above by ||y||2 to obtain
The triangle inequality. Let V be a real or complex vector space, equipped with a
scalar product ⟨·, ·⟩ and the induced norm || · ||. Then
for all x, y ∈ V .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 402
y
x
x+y
Proof. We prove the result for the case when V is a complex vector space. The
real case is similar but slightly easier (because we do not have to deal with complex
conjugates). We first remark that for all complex numbers z = a+ib (where a, b ∈ R),
we have that
z + z = 2a = 2Re(z);
√
Re(z) = a ≤ |a| ≤ a2 + b2 = |z|.
||x + y||2 = ⟨x + y, x + y⟩
(∗)
= ⟨x, x⟩ +⟨x, y⟩ + ⟨y, x⟩ + ⟨y, y⟩
| {z } | {z }
=||x||2 =||y||2
(∗∗)
= ||x||2 + ||y||2 + ⟨x, y⟩ + ⟨x, y⟩
(∗∗∗)
≤ ||x||2 + ||y||2 + 2||x|| ||y||
= (||x|| + ||y||)2 ,
where (*) follows from c.2 and c.2’, (**) follows from c.4, and (***) follows from the
Cauchy-Schwarz inequality. By taking the square root of both sides, we obtain
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 403
n.1. for all vectors x ∈ V , we have that ||x|| ≥ 0, and equality holds if and only if
x = 0;
n.2. for all vectors x ∈ V and scalars α,12 we have that ||αx|| = |α| ||x||;
n.3. for all vectors x, y ∈ V , we have that ||x + y|| ≤ ||x|| + ||y||.
As stated at the beginning of section 6.2, a norm in a real or complex vector space
V gives a way of measuring the distance of a vector from the origin, or equivalently,
measuring the length of a vector. The norm of a vector is always a non-negative
real number (regardless of whether the vector space is real or complex). We note
that n.3 is referred to as the “triangle inequality.” The idea is that vectors x, y, and
x + y form a triangle (see the picture below), and the length of the third side cannot
be greater than the sum of lengths of the other two sides.
y
x
x+y
It follows from the results of subsection 6.2.1 that any norm induced by a scalar
product in a real or complex vector space V really is a norm, i.e. it is a function
from V to R that satisfies axioms n.1, n.2, and n.3 above. The fact that axiom n.1 is
satisfied is immediate from the construction of a norm induced by a scalar product,
the fact that n.2 is satisfied follows from Proposition 6.2.1, and the fact that n.3 is
satisfied follows from the triangle inequality proven in subsection 6.2.2.
Unit vectors. Suppose that V is a real or complex vector space, equipped with a
norm || · ||. A vector v ∈ V is called a unit vector if ||v|| = 1. (In view of n.1, any
unit vector is, in particular, a non-zero vector.) For notational convenience, given a
vector v and a scalar α ̸= 0, we often write αv instead of α−1 v or α1 v. In particular,
v
for a non-zero vector v ∈ V , we may write ||v|| (as in Proposition 6.2.3 below).
Proposition 6.2.3. Let V be a real or complex vector space, equipped with a norm
v
|| · ||. Then for all non-zero vectors v ∈ V , we have that ||v|| > 0 and that || ||v|| || = 1,
v
and in particular, ||v|| is a unit vector.
Proof. Fix a non-zero vector v ∈ V . By n.1, we have that ||v|| > 0. We further have
that
v n.2 1 (∗) 1
|| ||v|| || = | ||v|| | ||v|| = ||v|| ||v|| = 1,
where (*) follows from the fact that ||v|| > 0. This completes the argument.
12
So, α is a real or complex number, depending on whether the vector space V is real or complex.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 404
which is precisely the norm induced by the standard scalar product in Rn , i.e. the
standard Euclidean norm in Rn . For p = 1, we get
n
P
||x||1 = |xi |.
i=1
We note that the || · ||1 norm is sometimes called the “Manhattan norm.” This is
because streets and avenues in Manhattan form a perfect grid (more or less), and so
|| · ||1 gives the actual walking distance between two places in Manhattan (see the
picture below).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 405
T
in Rn .13
for all vectors x = x1 . . . xn
The unit disk in a real or complex vector space V , equipped with a norm || · ||, is
the set
{x ∈ V | ||x|| ≤ 1}.
The unit disks in R2 with respect to the norms || · ||2 , || · ||1 , and || · ||∞ are represented
in the picture below.
x2 x2 x2
1 1 1
−1 1 x1 −1 1 x1 −1 1 x1
−1 −1 −1
Finally, if you have studied calculus, recall that for a, b ∈ R such that a < b,
C[a,b] is the (real) vector space of all continuous functions from [a, b] to R. For a real
number p ≥ 1, we have the norm || · ||p on C[a,b] given by
Rb 1
p
||f ||p = |f (x)|p
a
for all f ∈ C[a,b] , and we also have the norm || · ||∞ on C[a,b] given by
||f ||∞ = max |f (x)|
x∈[a,b]
for all f ∈ C[a,b] . Once again, we omit the proof of the fact that || · ||p (for a real
number p ≥ 1) and || · ||∞ really are norms in C[a,b] .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 406
Since u ̸= 0, r.1 or c.1 guarantees that ⟨u, u⟩ > 0, and so the expression above is
well defined (that is, we are not dividing by zero). As we can see, proju (v) is a scalar
multiple of u.
proju(v) u
As the picture above suggests, for any scalar α ̸= 0, the projection of v onto αu is
the same as the projection of v onto u. Indeed, if V is a complex vector space, then
we have that
⟨v,αu⟩
projαu (v) = ⟨αu,αu⟩ (αu) by definition
⟨v,αu⟩
= α⟨u,αu⟩ (αu) by c.3
α⟨v,u⟩
= αα⟨u,u⟩ (αu) by c.3’
⟨v,u⟩
= ⟨u,u⟩ u
Proposition 6.3.1. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩. Let u be a non-zero vector in V , let v be any vector in V , and set
z := v − proju (v). Then z ⊥ u.
v
z = v−proju(v)
proju(v) u
Proof. We compute
⟨v,u⟩
= v− ⟨u,u⟩ u, u
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 407
(∗) ⟨v,u⟩
= ⟨v, u⟩ − ⟨u,u⟩ ⟨u, u⟩
= ⟨v, u⟩ − ⟨v, u⟩
= 0,
where (*) follows from r.2 and r.3 (in the real case) or from c.2 and c.3 (in the
complex case). This proves that z ⊥ u, which is what we needed to show.
Proposition 6.3.2. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩ and the induced norm || · ||. Then both the following hold:
where (*) follows from Proposition 6.1.4(c). On the other hand, note that
(∗) (∗∗)
⟨α1 u1 + · · · + αk uk , ui ⟩ = α1 ⟨u1 , ui ⟩ + · · · + αk ⟨uk , ui ⟩ = αi ⟨ui , ui ⟩,
where (*) follows from r.2 and r.3 (in the real case) or from c.2 and c.3 (in the
complex case), and (**) follows from the fact that {u1 , . . . , uk } is an orthogonal
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 408
set.14 So,
αi ⟨ui , ui ⟩ = 0.
Since ui ̸= 0, r.1 or c.1 guarantees that ⟨ui , ui ⟩ = ̸ 0; consequently, αi = 0. Since
i ∈ {1, . . . , k} was chosen arbitrarily, it follows that α1 = · · · = αk = 0, and we are
done.
Proposition 6.3.3. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩ and the induced norm || · ||. Let {u1 , . . . , uk } be an orthogonal set of
vectors in V . Then all the following hold:
(a) for all scalars α1 , . . . , αk , we have that {α1 u1 , . . . , αk uk } is an orthogonal set
of vectors;
n o
(b) if vectors u1 , . . . , uk are all non-zero, then ||uu11 || , . . . , ||uukk || is an orthonormal
set of vectors, and consequently, an orthonormal basis of Span(u1 , . . . , uk );
n o
(c) if {u1 , . . . , uk } is an orthogonal basis of V , then ||uu11 || , . . . , ||uukk || is an or-
thonormal basis of V .
Proof. Part (a) follows immediately from Proposition 6.1.4(b), and part (c) is a
special case of part (b).15n It remains to prove o (b). Assume that vectors u1 , . . . , uk
u1 uk
are all non-zero. By (a), ||u1 || , . . . , ||uk || is an orthogonal set. On the other hand,
by Proposition 6.2.3, vectors ||uu11 || , . . . , ||uukk || are all unit vectors. So, by definition,
n o
u1 uk
||u1 || , . . . , ||uk || is an orthonormal set. In particular, by Proposition 6.3.2(b), the
n o
set ||uu11 || , . . . , ||uukk || is linearly independent. Moreover, by Proposition 3.1.12, we
n o
have that Span(u1 , . . . , uk ) = Span ||uu11 || , . . . , ||uukk || . So, ||uu11 || , . . . , ||uukk || is an
orthonormal basis of Span(u1 , . . . , uk ). This proves (b).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 409
and consequently,
h iT
⟨v,u1 ⟩ ⟨v,un ⟩
v B
= ⟨u1 ,u1 ⟩ ... ⟨un ,un ⟩ .
Proof. The second statement follows from the first and from the definition of a
coordinate vector. It remains to prove the first statement. Fix a vector v ∈ V . By
⟨v,ui ⟩
definition, for all i ∈ {1, . . . , n}, we have that projui (v) = ⟨u i ,ui ⟩
ui . So, it suffices to
show that
n
P ⟨v,ui ⟩
v = ⟨ui ,ui ⟩ ui .
i=1
Since v ∈ V and {u1 , . . . , un } is a basis of V , there exist scalars α1 , . . . , αn such that
n
P
v = α i ui .
i=1
where (*) follows from r.2 and r.3 (in the real case) or from c.2 and c.3 (in the complex
case), and (**) follows from the fact that u1 , . . . , un are pairwise orthogonal. Since
uj ̸= 0 (because {u1 , . . . , un } is a basis of V ), r.1 or c.1 guarantees that ⟨uj , uj ⟩ =
̸ 0,
and we deduce that
⟨v,u ⟩
αj = ⟨uj ,ujj ⟩ .
Since j ∈ {1, . . . , n} was chosen arbitrarily, we now deduce that
n n
P P ⟨v,ui ⟩
v = αi ui = ⟨ui ,ui ⟩ ui ,
i=1 i=1
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 410
Corollary 6.3.6. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩ and the induced norm || · ||. Let B = {u1 , . . . , un } be an orthonormal
basis of V . Then for all v ∈ V , we have that
n
P
v = ⟨v, ui ⟩ ui ,
i=1
and consequently,
T
v B
= ⟨v, u1 ⟩ . . . ⟨v, un ⟩ .
Terminology: Coefficients ⟨v, ui ⟩ from Corollary 6.3.6 are called Fourier coefficients.
Proposition 6.3.7. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩. Let {u1 , . . . , uk } be an orthogonal set of non-zero vectors in V . Let
k k
P P ⟨v,ui ⟩
v ∈ V , and set y := projui (v) = ⟨ui ,ui ⟩ ui and z := v − y. Then all the
i=1 i=1
following hold:
Proof. First of all, Proposition 6.3.2 guarantees that {u1 , . . . , uk } is a linearly indepen-
dent set, and we deduce that {u1 , . . . , uk } is an orthogonal basis of Span(u1 , . . . , uk ).
Let us first prove (a). By hypothesis, vectors u1 , . . . , uk are pairwise orthogonal.
On the other hand, for each j ∈ {1, . . . , k}, we have the following:
k
P ⟨v,ui ⟩
⟨z, uj ⟩ = ⟨v − ⟨ui ,ui ⟩ ui , uj ⟩
i=1
(∗) k
P ⟨v,ui ⟩
= ⟨v, uj ⟩ − ⟨ui ,ui ⟩ ⟨ui , uj ⟩
i=1
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 411
(∗∗) ⟨v,uj ⟩
= ⟨v, uj ⟩ − ⟨uj ,uj ⟩ ⟨uj , uj ⟩
= ⟨v, uj ⟩ − ⟨v, uj ⟩
= 0,
where (*) follows from r.2 and r.3 (in the real case) or from c.2 and c.3 (in the
complex case), and (**) follows from the fact that {u1 , . . . , uk } is an orthogonal set.
Thus, {u1 , . . . , uk , z} is an orthogonal set of vectors. This proves (a).
k
P ⟨v,ui ⟩
Next, we prove (b). Clearly, z = 0 if and only if v = ⟨ui ,ui ⟩ ui . If v =
i=1
k
P ⟨v,ui ⟩
⟨ui ,ui ⟩ ui , then v is a linear combination of the vectors u1 , . . . , uk , and conse-
i=1
quently, v ∈ Span(u1 , . . . , uk ). On the other hand, if v ∈ Span(u1 , . . . , uk ), then
k
P ⟨v,ui ⟩ 16 This proves (b).
Theorem 6.3.5 guarantees v = ⟨ui ,ui ⟩ ui .
i=1
x = α1 u1 + · · · + αk uk + βv
k
P
= αi ui + β(y + z)
i=1
k
P k
P
⟨v,ui ⟩
= α i ui + β ⟨ui ,ui ⟩ ui +z
i=1 i=1
k
P
⟨v,ui ⟩
= αi + β ⟨u i ,ui ⟩
u i + βz,
i=1
x = α1 u1 + · · · + αk uk + βz
16
This is because {u1 , . . . , uk } is an orthogonal basis of Span(u1 , . . . , uk ).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 412
k
P
= αi ui + β(v − y)
i=1
k
P k
P ⟨v,ui ⟩
= α i ui + β v − ⟨ui ,ui ⟩ u i
i=1 i=1
k
P
⟨v,ui ⟩
= αi − β ⟨u i ,ui ⟩
u i + βv,
i=1
u2 := v2 − proju1 (v2 );
u3 := v3 − proju1 (v3 ) + proju2 (v3 ) ;
..
.
uk := vk − proju1 (vk ) + proju2 (vk ) + · · · + projuk−1 (vk ) .
This describes precisely the sequence u1 , . . . , uk from the statement of the Gram-
Schmidt orthogonalization process (version 1), only in a less compact (but perhaps
more readable) form. We also note that it may be helpful to read Example 6.3.8
before reading the proof below, since Example 6.3.8 illustrates the Gram-Schmidt
orthogonalization process on a concrete numerical example.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 413
3 11 −2
(a) compute an orthogonal basis of U (with respect to the standard scalar product ·
in R4 ).
(b) compute an orthonormal basis of U (with respect to the standard scalar product ·
in R4 and the norm || · || induced by it).
17
The fact that {u1 , . . . , uℓ } is a basis of Uℓ follows from the induction hypothesis. The fact that
{v1 , . . . , vℓ } is a basis of Uℓ follows from the fact that {v1 , . . . , vℓ } is linearly independent (because
{v1 , . . . , vk } is linearly independent) and Uℓ = Span(v1 , . . . , vℓ ) (by construction).
18
Details?
19
This is because {v1 , . . . , vℓ+1 } is a basis of Uℓ+1 .
20
The fact that u1 , . . . , uℓ are all non-zero follows from the fact that {u1 , . . . , uℓ } is a basis of Uℓ
(by the induction hypothesis).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 414
0 0 0
and we deduce that rank v1 v 2 v3 = 3, i.e. v1 v2 v3 has full column
rank. So, by Theorem 3.3.14(a), vectors v1 , v2 , v3 are linearly independent.
Next, we compute:
−5 3
10 4
·
−4
−5 2
3
v2 ·u1
10 11 3 4
u2 := v2 − u1 ·u1 u1 2 −
=
−4
3 3
11 4 4 3
·
−4 −4
3 3
−5 3
10
4
(−5)·3+10·4+2·(−4)+11·3
2 −
=
3·3+4·4+(−4)·(−4)+3·3 −4
11 3
−8
6
=
6 .
Finally, we compute:
u3 := v3 − uv31 ·u·u1 u1 +
1 v3 ·u2
u2 ·u2 u2
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 415
8 3 8 −8
19 4 19 6
· ·
−4
11 11 6 −8 !
8
3
19 −2 3 4 −2 8 6
= 11 − −4 +
3 3 −8 −8 6
−2
4 4 3 6 6 8
· ·
−4 −4 6 6
3 3 8 8
8 3 −8 !
19
4
8·3+19·4+11·(−4)+(−2)·3 6
8·(−8)+19·6+11·6+(−2)·8
= 11 − 3·3+4·4+(−4)·(−4)+3·3 −4 +
(−8)·(−8)+6·6+6·6+8·8 6
−2 3 8
9
12
= 12 .
−9
So,
3 −8 9
n 4 6 12 o
B := {u1 , u2 , u3 } = −4 , 6 , 12
3 8 −9
is an orthogonal basis of U .
(b) To obtain an orthonormal basis of U , we normalize the vectors of the
orthogonal basis B of U that we obtained in part (a). First, we compute:
v
3 3
u
u
√ 4
· 4
u
||u1 || = u1 · u1 = u
u
t −4 −4
3 3
p
= 3 · 3 + 4 · 4 + (−4) · (−4) + 3 · 3
√
= 5 2
v
u −8 −8
u
√ u 6
· 6
u
||u2 || = u2 · u2 =
6 6
u
t
8 8
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 416
p
= (−8) · (−8) + 6 · 6 + 6 · 6 + 8 · 8
√
= 10 2
v
9 9
u
u
√ u 12 12
u
||u3 || = u3 · u3 = ·
t 12 12
u
−9 −9
p
= 9 · 9 + 12 · 12 + 12 · 12 + (−9) · (−9)
√
= 15 2.
Remark: Suppose that V is a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩ and the induced norm || · ||. Suppose, furthermore, that we are given
a list v1 , . . . , vk of vectors in V , which may possibly be linearly dependent. How
would we find an orthogonal (or orthonormal) basis of Span(v1 , . . . , vk )? In this
case, we would first need to find a basis of Span(v1 , . . . , vk ), and then apply the
Gram-Schmidt process to that basis. If V = Rn , then Theorem 3.3.4 guarantees
that such a basis is formed by the pivot columns of the matrix v1 . . . vk . A
numerical example is given below.
Example 6.3.9. Consider the following vectors in R3 :
1 −2 3 5
v1 = 2 , v2 = −4 , v3 = 5 , v4 = 9 .
1 −2 −1 1
Set U := Span(v1 , v2 , v3 , v4 ). Compute an orthogonal basis of U (with respect to the
standard scalar product · in R3 ).
Solution. First, we form the matrix
1 −2 3 5
A := v1 v2 v3 v4 = 2 −4 5 9 ,
1 −2 −1 1
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 417
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 418
uℓ
zℓ = ||uℓ || .
u1 = v1 ;
z1 = u1
||u1 || ;
u2 = v2 − projz1 (v2 );
z2 = u2
||u2 || ;
u3 = v3 − projz1 (v3 ) + projz2 (v3 ) ;
z3 = u3
||u3 || ;
..
.
uk = vk − projz1 (vk ) + projz2 (vk ) + · · · + projzk−1 (vk ) ;
uk
zk = ||uk || .
So, at each step, we obtain a vector uℓ that is orthogonal to the previously constructed
vectors z1 , . . . , zℓ−1 , and then we normalize uℓ to obtain the unit vector zℓ that
points in the same direction as uℓ . (In version 1, we skip this normalization process
during our recursive construction. At the very end, we may optionally normalize all
the vectors in the orthonormal basis that we obtain and thus create an orthonormal
basis.) Note that, for all ℓ ∈ {1, . . . , k} and i ∈ {1, . . . , ℓ − 1}, we have that
projzi (vℓ ) = ⟨vℓ , zi ⟩ zi . This is because ||zi || = 1, and so ⟨zi , zi ⟩ = 1, and therefore,
projzi (vℓ ) = ⟨v ℓ ,zi ⟩
⟨zi ,zi ⟩ zi = ⟨vℓ , zi ⟩ zi .
We now return to Example 6.3.8, and we compute an orthonormal basis using
the Gram-Schmidt process (version 2).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 419
3 11 −2
Proof. We set
3
4
u1 := v1 =
−4 ,
3
√ √
we compute ||u1 || = u1 · u1 = 5 2, and we set
3
u1 1
4
z1 := ||u1 || = √ .
5 2 −4
3
Next, we set
u2 := v2 − (v2 · z1 ) z1
−5 −5 3 3
10 10 1
4 1
4
2 − 2
= · √ √
5 2 −4 5 2 −4
11 11 3 3
−8
6
= 6 .
8
√ √
We compute ||u2 || = u2 · u2 = 10 2, and we set
−4
u2
3
1
z2 := ||u2 || = √ .
5 2 3
4
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 420
Next, we set
u3 := v3 − (v3 · z1 ) z1 + (v3 · z2 ) z2
8 8 3 3
19 19 1
4 1
4
11 −
= 11 ·
√ √ +
5 2 −4 5 2 −4
−2 −2 3 3
8 −4 −4 !
19 3 1 3
1
+ 11 · 5 2 3
√ √
5 2 3
−2 4 4
9
12
= 12 .
−9
√ √
We compute ||u3 || = u3 · u3 = 15 2, and we set
3
u3
4
1
z3 := ||u3 || = √ .
5 2 4
−3
We now have that
3 −4 3
n
1
4 1
3 1
4 o
C := {z1 , z2 , z3 } = √ , √
5 2 −4 5 2
, √
3 5 2 4
3 4 −3
is an orthonormal basis of U .
We complete this subsection with the following important corollary of the Gram-
Schmidt orthogonalization process.
Corollary 6.3.11. Let V be a finite-dimensional real or complex vector space,
equipped with a scalar product ⟨·, ·⟩ and the induced norm || · ||. Let U be a subspace
of V . Then all the following hold:
(a) U has an orthogonal basis;
(b) any orthogonal basis of U can be extended to an orthogonal basis of V ;21
21
This means that for any orthogonal basis B of U , there exists an orthogonal basis C of V such
that B ⊆ C.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 421
A⊥ = {v ∈ V | v ⊥ A}
= {v ∈ V | v ⊥ a ∀a ∈ A}
= {v ∈ V | ⟨v, a⟩ = 0 ∀a ∈ A}.
22
This means that for any orthonormal basis B of U , there exists an orthonormal basis C of V
such that B ⊆ C.
23
Here, A may or may not be a subspace of V .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 422
Proposition 6.4.1. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩. Let A, B ⊆ V . Then
(b) if A ⊆ B, then A⊥ ⊇ B ⊥ .
⟨αx, a⟩ = α⟨x, a⟩ = α0 = 0,
i.e. αx ⊥ a. So, αx ∈ A⊥ .
By Theorem 3.1.7, it now follows that A⊥ is a subspace of V .
(b) Suppose that A ⊆ B. Then any vector that is orthogonal to all vectors in B
is, in particular, orthogonal to all vectors in A. So, A⊥ ⊇ B ⊥ .
Proposition 6.4.2. Let V be a real or complex vector space, equipped with a scalar
product ⟨·, ·⟩. Let u1 , . . . , uk ∈ V . Then {u1 , . . . , uk }⊥ = Span(u1 , . . . , uk )⊥ .
⟨u, x⟩ = ⟨α1 u1 + · · · + αk uk , x⟩
= α1 ⟨u1 , x⟩ + · · · + αk ⟨uk , x⟩
(∗)
= α1 0 + · · · + αk 0
= 0,
24
Note that it is possible that A = ∅. In this case, we simply get that A⊥ = V . This is because
every vector in V is (vacuously) orthogonal to every vector in the empty set.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 423
where (*) follows from the fact that x ∈ {u1 , . . . , uk }⊥ . This proves that x ⊥ u, and
consequently, x ∈ Span(u1 , . . . , uk )⊥ .
Recall from subsection 3.1.3 that if V is a vector space over a field F, and U and
W are subspaces of V , then
U +W := {u + w | u ∈ U, w ∈ W }
(c) (U ⊥ )⊥ = U ;
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 424
x = αk+1 uk+1 + · · · + αn un .
u = α1 u1 + · · · + αk uk .
n
P k
P (∗)
= αi αj ⟨ui , uj ⟩ = 0,
i=k+1 j=1
where (*) follows from the fact that {u1 , . . . , un } is an orthogonal set. Similarly, if
V is a complex vector space, then we have that
n
P k
P (∗)
= αi αj ⟨ui , uj ⟩ = 0,
i=k+1 j=1
where (*) follows from the fact that {u1 , . . . , un } is an orthogonal set. In either case,
we get that x ⊥ u, and consequently, x ∈ U ⊥ . It follows that Span(uk+1 , . . . , un ) ⊆
U ⊥ . This proves (a). Part (b) follows immediately from part (a).28
It remains to prove (c), (d), and (e). First, since V is finite-dimensional, so
is U . So, by Corollary 6.3.11(a), U has an orthogonal basis {u1 , . . . , uk }. By
Corollary 6.3.11(b), the orthogonal basis {u1 , . . . , uk } of U can be extended to
28
This is “obvious,” but here are the details. Assume that {u1 , . . . , uk } is an orthonormal basis
of U , and that {u1 , . . . , uk , uk+1 , . . . , un } is an extension of that basis to an orthonormal basis of
V . Then {u1 , . . . , uk } is, in particular, an orthogonal basis of U , and {u1 , . . . , uk , uk+1 , . . . , un } is
an extension of that basis to an orthogonal basis of V . So, by (a), {uk+1 , . . . , un } is an orthogonal
basis of U ⊥ . But all vectors in {uk+1 , . . . , un } are unit vectors (because {u1 , . . . , uk , uk+1 , . . . , un }
is an orthonormal basis of V ). So, {uk+1 , . . . , un } is an orthonormal basis of U ⊥ . This proves (b).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 425
It now immediately follows that dim(V ) = dim(U ) + dim(U ⊥ ), i.e. (e) holds.
Finally, we prove (d). Let us first show that U ∩ U ⊥ = {0}. Since U and U ⊥ are
both subspaces of V , they both contain 0, and consequently, 0 ∈ U ∩ U ⊥ . Now, fix
any u ∈ U ∩ U ⊥ ; we must show that u = 0. Since u ∈ U and u ∈ U ⊥ , we have that
u ⊥ u, i.e. ⟨u, u⟩ = 0. But then by the definition of a scalar product, we have that
u = 0. This proves that U ∩ U ⊥ = {0}. It remains to show that V = U + U ⊥ . It
is clear that U + U ⊥ ⊆ V , and so we need only show that V ⊆ U + U ⊥ . Fix any
v ∈ V . Since {u1 , . . . , uk , uk+1 , . . . , un } is a basis of V , we know that there exist
scalars α1 , . . . , αn such that v = α1 u1 + · · · + αn un . Set v1 := α1 u1 + · · · + αk uk
and v2 := αk+1 uk+1 + · · · + αn un . Then v = v1 + v2 . Since {u1 , . . . , uk } is a basis
of U , we see that v1 ∈ U , and since {uk+1 , . . . , un } is a basis of U ⊥ , we see that
v2 ∈ U ⊥ . So, v = v1 + v2 belongs to U + U ⊥ , and it follows that V ⊆ U + U ⊥ . This
proves (d), and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 426
n o n o
uk uk+1
u1
||u1 || , . . . , ||uk || is an orthonormal basis of U , and un
||uk+1 || , . . . , ||un || is
an orthonormal basis of U ⊥ .
The proof of (b) is similar to that of (a), except that we apply Theorem 6.4.3(b)
instead of Theorem 6.4.3(a).
0 0 3 2
Solution. First, we need to find a basis of U and extend it to a basis of R4 . For this,
we use Proposition 3.3.23. We consider the standard basis E4 = {e1 , e2 , e3 , e4 } of
R4 , and we form the matrix
C := a1 a2 a3 a4 e1 e2 e3 e4
1 2 0 2 1 0 0 0
1 2 3 4 0 1 0 0
=
1
.
2 3 4 0 0 1 0
0 0 3 2 0 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 427
As we can see, the pivot columns of C are its first, third, fifth, and sixth column.
So, by Proposition 3.3.23, {a1 , a3 } is a basis of U , and {a1 , a3 , e1 , e2 } is a basis of
R4 that extends {a1 , a3 }. By applying the Gram-Schmidt orthogonalization process
(version 2) to the vectors a1 , a3 , e1 , e2 , we obtain the following vectors:
√ √
−2/√15
1/√3
1/ 3 1/ 15
z1 = √ √
1/ 3 , 1/ 15 ,
z2 =
√
0 3/ 15
√
2/√10 0√
−1/ 10 1/ 2
√ √
z3 =
−1/ 10
,
−1/ 2 .
z4 =
√
2/ 10 0
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 428
Proof of Theorem 6.5.1. Using Corollary 6.3.11, we fix an orthogonal basis {u1 , . . . , uk }
of U , and we extend it to an orthogonal basis {u1 , . . . , uk , uk+1 , . . . , un } of V . By
Theorem 6.4.3(a), {uk+1 , . . . , un } is an orthogonal basis of U ⊥ . Set
k
⟨x,ui ⟩
u∗ :=
P
⟨ui ,ui ⟩ ui .
i=1
(So, u∗ is defined via the formula from the statement of the theorem. The reason we
call it u∗ rather than xU is because we have not proven the existence and uniqueness
of xU yet. However, this is just a minor stylistic matter!) Since u∗ is a linear
combination of the vectors u1 , . . . , uk , which form a basis of U , we see that u∗ ∈ U .
Now, fix any u ∈ U . We must show that ||x − u∗ || ≤ ||x − u||, and that equality
holds if and only if u∗ = u. Clearly, this is sufficient to prove the theorem.
Let us first prove that (u∗ − u) ⊥ (x − u∗ ). Since u∗ , u ∈ U , and since U is a
subspace of V , it is clear that u∗ − u ∈ U . So, it suffices to show that x − u∗ ∈ U ⊥ .
By Theorem 6.3.5, we have that
n
P ⟨x,ui ⟩
x = ⟨ui ,ui ⟩ ui ,
i=1
(∗)
= ||x − u∗ ||2 + ||u∗ − u||2
≥ ||x − u∗ ||2 ,
where (*) follows from the Pythagorean theorem. Consequently, we have that
||x − u∗ || ≤ ||x − u||. Moreover, the inequality above is an equality if and only if
||u∗ − u|| = 0, i.e. if and only if u∗ = u. This completes the argument.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 429
Proof. Clearly, {u} is an orthogonal basis of U . So, the result follows immediately
from Theorem 6.5.1.
Consequently,
n k
P n
P
P ⟨x,ui ⟩ ⟨x,ui ⟩ ⟨x,ui ⟩
x = ⟨ui ,ui ⟩ ui = ⟨ui ,ui ⟩ ui + ⟨ui ,ui ⟩ ui = xU + xU ⊥ .
i=1 i=1 i=k+1
It remains to prove the uniqueness part of the corollary. So, suppose that y ∈ U
and z ∈ U ⊥ are such that x = y + z. We must prove that y = xU and z = xU ⊥ . We
have that
xU + xU ⊥ = x = y + z,
31
So, U is a one-dimensional subspace of V .
32
This means that for all y ∈ U and z ∈ U ⊥ , if x = y + z, then y = xU and z = xU ⊥ .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 430
and consequently,
xU − y = z − xU ⊥ .
But xU − y ∈ U and z − xU ⊥ ∈ U ⊥ . Since U ∩ U ⊥ = {0} (by Theorem 6.4.3(d)), it
follows that xU − y = z − xU ⊥ = 0, and consequently, y = xU and z = xU ⊥ . This
completes the argument.
Remark: We note that the uniqueness part of Corollary 6.5.3 could also have been
obtained as an immediate consequence of Theorems 6.4.3(d) and 3.2.24. However,
note that the proof of Theorem 3.2.24 is actually quite similar to the proof of the
uniqueness part of Corollary 6.5.3 that we gave above.
(∗) k
P ⟨x+y,ui ⟩
projU (x + y) = ⟨ui ,ui ⟩ ui
i=1
(∗∗) k
P ⟨x,ui ⟩+⟨y,ui ⟩
= ⟨ui ,ui ⟩ ui
i=1
k
P k
P
⟨x,ui ⟩ ⟨y,ui ⟩
= ⟨ui ,ui ⟩ ui + ⟨ui ,ui ⟩ ui
i=1 i=1
(∗)
= projU (x) + projU (y),
where both instances of (*) follow from Theorem 6.5.1, and (**) follows from
r.2 or c.2;
(∗) k
P ⟨αx,ui ⟩
projU (αx) = ⟨ui ,ui ⟩ ui
i=1
(∗∗) k
P α⟨x,ui ⟩
= ⟨ui ,ui ⟩ ui
i=1
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 431
k
P ⟨x,ui ⟩
= α ⟨ui ,ui ⟩ ui
i=1
(∗)
= αprojU (x),
where both instances of (*) follow from Theorem 6.5.1, and (**) follows from
r.3 or c.3.
we have that
1 2 3
2 3 4
AT =
1
,
2 3
2 3 4
and consequently,
1 2 3
2 3 4
Row(A) = Span
1 , 2
, .
3
2 3 4
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 432
(If this change of definition bothers you, then every time you see Row(□), mentally
replace it with Col(□T ).)
Theorem 6.6.1. Let A ∈ Rn×m . Then Row(A)⊥ = Nul(A) and Row(A) = Nul(A)⊥ .
x ∈ Nul(A) ⇐⇒ Ax = 0
aT1
..
⇐⇒ . x = 0
aTn
a1 · x
⇐⇒ ..
=0
.
an · x
⇐⇒ ai · x = 0 ∀i ∈ {1, . . . , n}
⇐⇒ ai ⊥ x ∀i ∈ {1, . . . , n}
⇐⇒ x ∈ {a1 , . . . , an }⊥
(∗)
⇐⇒ x ∈ Span(a1 , . . . , an )⊥
⇐⇒ x ∈ Row(A)⊥ ,
where (*) follows from the fact that {a1 , . . . , am }⊥ = Span(a1 , . . . , am )⊥ (by Propo-
sition 6.4.2). This proves that Nul(A) = Row(A)⊥ , and we are done.
33
Indeed, by Theorem 6.4.3(c), we have that (Row(A)⊥ )⊥ = Row(A). So, if Row(A)⊥ = Nul(A),
then Nul(A)⊥ = (Row(A)⊥ )⊥ = Row(A).
34
Indeed, we have the following:
Row(A) = Col(AT ) = Col a1 . . . an = Span(a1 , . . . , an ).
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 433
Proof. We first prove (a). Note that AT A ∈ Rm×m , and that both Nul(A) and
Nul(AT A) are subspaces of Rm . Now, fix any x ∈ Rm . We must show that
x ∈ Nul(AT A) if and only if x ∈ Nul(A).
Suppose first that x ∈ Nul(A). Then Ax = 0, and consequently, AT Ax = 0. So,
x ∈ Nul(AT A).
Suppose, conversely, that x ∈ Nul(AT A). Then AT Ax = 0, and it follows that
xT AT Ax = 0. But note that xT AT Ax = (Ax)T (Ax) = (Ax) · (Ax) = ||Ax||2 ;
consequently, ||Ax||2 = 0. It follows that ||Ax|| = 0, and therefore, Ax = 0, i.e.
x ∈ Nul(A). This proves (a).
For (b), we observe that
= Nul(A)⊥ by (a)
xC = A(AT A)−1 AT x.
Proof. Fix x ∈ Rn . We must first check that the expression A(AT A)−1 AT x is
defined and belongs to C = Col(A). First, note that AT A ∈ Rm×m , and that by
Corollary 6.6.2(a), we have that rank(AT A) = rank(A) = m. So, by the Invertible
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 434
Matrix Theorem,35 AT A is invertible, and we see that (AT A)−1 is defined and
belongs to Rm×m . Since A ∈ Rn×m , (AT A)−1 ∈ Rm×m , and AT ∈ Rm×n , we see
that A(AT A)−1 AT ∈ Rn×n ; since x ∈ Rn , we see that A(AT A)−1 AT x is defined and
belongs to Rn . Meanwhile, (AT A)−1 AT x is a vector in Rm , and so
A(AT A)−1 AT x = |{z} A (AT A)−1 AT x
n×m
| {z }
∈R ∈Rm
x − A(AT A)−1 AT x ∈ C ⊥ ,
for it will then follow that xC = A(AT A)−1 AT x,36 which is what we need to show.
But note that
(∗)
C ⊥ = Col(A)⊥ = Row(AT )⊥ = Nul(AT ),
where (*) follows from Theorem 6.6.1. So, it in fact suffices to show that the vector
x − A(AT A)−1 AT x belongs to Nul(AT ). For this, we compute:
AT x − A(AT A)−1 AT x = AT x − AT A(AT A)−1 AT x = 0.
| {z }
=Im
which (by Corollary 6.5.3) implies that xC = A(AT A)−1 AT x and xC ⊥ = x − A(AT A)−1 AT x.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 435
Proof. We have that L = Span(a) = Col(a), where we think of the vector a simply
as a one-column matrix. Moreover, since a ̸= 0, we know that rank(a) = 1, i.e. the
one-column matrix a has full column rank. The result now follows immediately from
Theorem 6.6.3.
where (*) follows from the fact that P is the standard matrix of projU ,37 and (**)
follows from Corollary 6.5.3. So, In − P is indeed the standard matrix of projU ⊥ .
where (*) follows from Theorem 6.6.1. Note further that AT ∈ Rm×n and that
(by Corollary 3.3.11) rank(AT ) = rank(A) = n, i.e. AT has full column rank. So,
by Theorem 6.6.3, the standard matrix of orthogonal projection onto Col(AT )
is AT (AAT )−1 A. Finally, by Theorem 6.6.5, the standard matrix of orthogonal
projection onto Col(AT )⊥ = Nul(A) is Im − AT (AAT )−1 A. This completes the
argument.
37
Technically, the fact that P is the standard matrix of projU guarantees that P x = xU . The fact
that In x = x follows from Proposition 1.4.6.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 436
Remark: Suppose that we are given a matrix A ∈ Rn×m , and that we need to
compute the standard matrix of orthogonal projection onto Nul(A). If rank(A) = n
(i.e. A has full row rank), then the matrix that we need is Im − AT (AAT )−1 A, as per
Corollary 6.6.6. But what if rank(A) < n? If A = On×m (i.e. A is a zero matrix),
then Nul(A) = Rm , and so the standard matrix of orthogonal projection onto Nul(A)
is the identity matrix Im . Assume now that A ̸= On×m . In this case, we let B be
the matrix obtained from RREF(A) by deleting any zero rows that RREF(A) may
have. By Proposition 3.3.28, Nul(A) = Nul(B). But the matrix B has full row rank,
which means that we can apply Corollary 6.6.6 to it. So, the standard matrix of
orthogonal projection onto Nul(A) = Nul(B) is Im − B T (BB T )−1 B.
||Ax − b||
AT Ax = AT b
is consistent, and moreover, its solution set is precisely the set of vectors x in Rm
that minimize the expression
||Ax − b||.
Proof. We are looking for vectors x ∈ Rm that minimize the expression ||Ax − b||.
Our goal is to show is that the vectors we are looking for are precisely those that
satisfy AT Ax = AT b.
By Proposition 3.3.2(a), we have that C := Col(A) = {Ax | x ∈ Rm }. So, we
are in fact looking for the solutions x of the equation Ax = bC , because by the
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 437
definition of bC , such x’s are precisely the ones for which ||Ax − b|| is minimized.
Moreover, by Corollary 6.5.3, b = bC + bC ⊥ is the only way to decompose b as a
sum of a vector in C and a vector in C ⊥ . So, we are looking for those x’s for which
b − Ax ∈ C ⊥ . But note that
(∗)
C ⊥ = Col(A)⊥ = Row(AT )⊥ = Nul(AT ),
where (*) follows from Theorem 6.6.1. So, we in fact looking for vectors x for which
b − Ax ∈ Nul(AT ), i.e. those that satisfy AT (b − Ax) = 0, which is obviously
equivalent to AT Ax = AT b.
It remains to show that the equation AT Ax = AT b is consistent. By our argument
above, a vector x ∈ Rm satisfies AT Ax = AT b if and only if it satisfies the equation
Ax = bC . Since the latter equation is consistent (this follows from the definition of
C and the existence of bC ), so is the former.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 438
It follows that
4/3
x̂ =
−1/3
is the unique solution of the matrix-vector equation AT Ax̂ = AT b, and consequently,
the unique least-squares solution of the matrix-vector equation Ax = b.
The least-squares error of Ax = b is
1 −2 3
−1 2 4/3 1
||Ax̂ − b|| = || − −4 ||
0 3 −1/3
2 5 2
−1
−3 √
= ||
3 || = 2 5.
−1
Since the least-squares error of the equation Ax = b is strictly positive, we see that
the equation is inconsistent.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 439
y
f (x) = ax + b
(xn, yn)
(x0, y0) (x1, y1)
(x2, y2)
x
ax0 + b = y0
ax1 + b = y1
..
.
axn + b = yn
This linear
system can be rewritten as the matrix-vector equation below, where the
a
vector is the unknown.
b
x0 1 y0
x1 1
a
y1
=
.. .. ..
b
. . .
xn 1 yn
Except in rare cases, the system above will be inconsistent. For this reason, we
â
will look for the least-squares solution(s) of the system, which yields the line
b̂
fˆ(x) = âx + b̂. This (approximate) solution minimizes the following quantity:
x0 1 y0 ax0 + b − y0
x1 1 y1 ax1 + b − y1
a
|| . . − . || = || ||
..
.. .. b .. .
xn 1 yn axn + b − yn
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 440
f (x0 ) − y0
f (x1 ) − y1
= || ||
..
.
f (xn ) − yn
s
n
P 2
= f (xi ) − yi .
i=0
So, we are effectively minimizing the sum of squares of the vertical distances between
our data points and the line, i.e. the sum of squares of the lengths of the purple
dotted line segments shown in the graph above.
Example 6.7.3. Using the method of least squares, find the line that best fits the
data points (1, 2), (2, 3), (3, 3), (5, 6).
Solution. We are looking for the function f (x) = ax + b that best fits these four
data points. We get the linear system below.
1a + b = 2
2a + b = 3
3a + b = 3
5a + b = 6
At a glance, we can see that this system is inconsistent; so, we will not be able to find
an exact solution and will instead have to settle for an approximate
one. This system
a
can be rewritten as a matrix-vector equation below, where is the unknown.
b
1 1 2
2 1 a 3
3 1 b
= 3
5 1 6
We multiply both sides by the transpose of the matrix on the left, and we get
the following (where a and b became â and b̂, respectively, because we are now
approximating):
1 1 2
1 2 3 5 2 1 â 1 2 3 5 3 .
=
1 1 1 1 3 1 b̂ 1 1 1 1 3
5 1 6
After performing matrix multiplication, we obtain
39 11 â 47
= .
11 5 b̂ 14
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 441
We now form the augmented matrix of the matrix-vector equation above, and we
row reduce to obtain:
39 11 47
1 0 81/74
RREF = .
11 5 14 0 1 29/74
fˆ(x) = 81
74 x + 29
74 .
(c) QQT = In ;
(d) QT is orthogonal;
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 442
Proof. By Corollary 3.3.20, we have that (a), (b), and (c) are equivalent. More-
over, since (QT )T = Q, we have that (c) and (d) are equivalent. This proves
that (a), (b), (c), and (d) are equivalent.
Next, (b) and (d) together imply (e). Suppose now that (e) holds. Then by
applying “(a) =⇒ (b)” to the matrix Q−1 , we see that Q−1 is invertible and satisfies
(Q−1 )−1 = (Q−1 )T . Consequently, Q−1 = QT , and it follows that (b) holds.
So far, we have established that (a), (b), (c), (d), and (e) are equivalent.
Let us now show that (a) and (f) are equivalent. Set Q = q1 . . . qn . Then
T
q1
qT
2
QT Q = . q1 q2 . . . qn
.
.
qTn
q 1 · q1 q1 · q2 . . . q1 · qn
q 2 · q1 q2 · q2 . . . q2 · qn
= .
.. .. .. ..
. . . .
qn · q1 qn · q2 . . . qn · qn
. . . qn = ...
Q= q1
rTn
be an orthogonal matrix in Rn . Then all the following hold:
(a) for all α1 , . . . , αn ∈ {−1, 1}, the matrix α1 q1 . . . αn qn is orthogonal;
α1 rT1
αn rTn
(c) the matrix −Q is orthogonal.
Remark: Proposition 6.8.2 guarantees that if we multiply one row or one column of
an orthogonal matrix by −1, then the resulting matrix is again orthogonal. Obviously,
we can iterate the process and obtain a sequence of orthogonal matrices.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 443
Proof. We first prove (a). Fix α1 , . . . , αn ∈ {−1, 1}. Since Q = q1 . . . qn
is orthogonal, Theorem 6.8.1 guarantees that {q1 , . . . , qn } is an orthonormal basis
of Rn . But then {α1 q1 , . . . , αn qn } is also an orthonormal basis
of Rn ,38 and so
once again by Theorem 6.8.1, the matrix α1 q1 . . . αn qn is orthogonal. This
proves (a).
Next, we prove (b). Fix α1 , .. . , αn ∈ {−1,
1}. Since Q is orthogonal, Theo-
T
rem 6.8.1 guarantees that Q = r1 , . . . , rn is also orthogonal. By (a) applied
to the orthogonal matrix QT , we get that
α 1 r 1 , . . . , α n
r n is orthogonal. We
now apply Theorem 6.8.1 to the matrix α1 r1 , . . . , αn rn , and we deduce that its
transpose is orthogonal. This proves (b).
Finally, part (c) is simply a special case of (a) for α1 = · · · = αn = −1.
38
This is “obvious,” but here are the details. First of all, since {q1 , . . . , qn } is an orthonormal
basis of Rn , it is, in particular, an orthogonal set of unit vectors in Rn . By Proposition 6.3.3(a), the
fact that {q1 , . . . , qn } is an orthogonal set implies that {α1 q1 , . . . , αn qn } is also an orthogonal set.
On the other hand, for all i ∈ {1, . . . , n}, we have that
(∗) (∗∗) (∗∗∗)
||αi qi || = |αi | ||qi || = ||qi || = 1,
where (*) follows from Proposition 6.2.1, (**) follows from the fact that αi ∈ {−1, 1}, and (***)
follows from the fact that qi is a unit vector. But now {α1 q1 , . . . , αn qn } is an orthonormal set
of n vectors in Rn , and so Proposition 6.3.4(b) guarantees that {α1 q1 , . . . , αn qn } is in fact an
orthonormal basis of Rn .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 444
QT1
Om×n Q1 Om×n
QT Q =
On×m QT2 On×m Q2
QT1 Q1 Om×n
=
On×m QT2 Q2
Im Om×n
=
On×m In
= Im+n .
To see that H(a) really is an orthogonal matrix, we perform the following simple
calculation:
2 2
H(a)T H(a) = (In − T T
a·a aa ) (In − T
a·a aa )
2 2
= (InT − T T
a·a (aa ) ) (In − T
a·a aa )
2 T 2 T
= (In − a·a aa ) (In − a·a aa )
= In − 4
a·a aa
T + 4
a aT a aT
(a·a)2 |{z}
=a·a
4 T 4 T
= In − a·a aa + a·a aa
= In .
Let us now discuss the geometric meaning of this matrix. First of all, we observe
that if U is a subspace of Rn , then for any vector x ∈ Rn , the reflection of x about
U is given by
refU (x) := x + 2(xU − x) = 2xU − x,
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 445
xU ⊥ − x
x
xU ⊥ xU − x
refU ⊥ (x)
xU U
refU (x)
Now, by Corollary 6.6.4, the standard matrix of orthogonal projection onto the line
L := Span(a) is
2 T
= a·a aa x − In x
2 T
= a·a aa − In x
= −H(a)x,
We now see that −H(a) is the standard matrix of reflection about the line L =
Span(a), whereas the Householder matrix H(a) itself is the standard matrix of
reflection about L⊥ .39 In the case of R2 , this is illustrated in the picture below.
39
Alternatively, the Householder matrix H(a) is the standard matrix of the linear transformation
that first reflects about the line L = Span(a) and then reflects about the origin. As we saw above,
this linear transformation is precisely the reflection about L⊥ .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 446
x2
L
a
−H(a)x
xL xL − x
x
x1
H(a)x L⊥
gi,i = gj,j = c;
gi,j = −s;
gj,i = s;
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 447
i j
It is not hard to check that the columns of Gi,j (c, s) form an orthonormal set of
vectors in Rn , and therefore (by Proposition 6.3.4) an orthonormal basis of Rn . So,
by Theorem 6.8.1, the Givens matrix Gi,j (c, s) really is orthogonal. Let us now give
a geometric interpretation of this matrix. Since c2 + s2 = 1, we see that there exists
a real number (angle in radians) θ such that c = cos θ and s = sin θ. With this
set-up, we see that Gi,j (c, s) represents rotation about the origin by angle θ in the
xi xj -plane. This is particularly easy to see in the case when n = 2. In that case, we
have that
c −s cos θ − sin θ
G1,2 (c, s) = = ,
s c sin θ cos θ
which is precisely the standard matrix of counterclockwise rotation about the origin
by angle θ.
x2
c = cos θ
G1,2(c, s)u s = sin θ
u
θ
x1
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 448
Proof. We prove the result for the case when V is a complex vector space.40 The
proof for the real case is similar but slightly easier (because we do not have to deal
40
In this case, · is the standard scalar product in Cn .
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 449
and consequently,
⟨x, u1 ⟩ ⟨y, u1 ⟩
x
= .. and
y
= ..
.
B . B .
⟨x, un ⟩ ⟨y, un ⟩
We now compute:
n
DP n
P E
⟨x, y⟩ = ⟨x, ui ⟩ ui , ⟨y, ui ⟩ ui
i=1 i=1
n
DP n
P E
= ⟨x, ui ⟩ ui , ⟨y, uj ⟩ uj
i=1 j=1
n P
P n D E
= ⟨x, ui ⟩ ui , ⟨y, uj ⟩ uj
i=1 j=1
n P
P n
= ⟨x, ui ⟩⟨y, uj ⟩ ⟨ui , uj ⟩
i=1 j=1
(∗) n
P
= ⟨x, ui ⟩⟨y, ui ⟩
i=1
⟨x, u1 ⟩ ⟨y, u1 ⟩
.. ..
= ·
. .
⟨x, un ⟩ ⟨y, un ⟩
= x B
· y B
,
where (*) follows from the fact that B = {u1 , . . . , un } is an orthonormal set.
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 450
(i) the columns of the n × m matrix B f B form an orthonormal set of vectors
V U
in Rn (with respect to the standard scalar product · and the induced norm
|| · ||);41
(ii) f preserves the scalar product, that is, for all vectors x, y ∈ U , we have that
f (x), f (y) V = ⟨x, y⟩U .
Proof. Set B f B = c1 . . . cm . We observe that
V U
cT1
cT2
)T
(B f f = c1 c2 . . . cm
V BU BV BU ..
.
cTm
c1 · c1 c1 · c2 ... c1 · cm
c2 · c1 c2 · c2 ... c2 · cm
= .
.. .. .. ..
. . . .
cm · c1 cm · c2 . . . cm · cm
)T
So, we see that (i) holds if and only if ( B f BU BV
f BU
= Im .
V
T
= f (x) BV
f (y) BV
T
= BV
f BU
x BU BV
f BU
y BU
T T
= x BU BV
f BU BV
f BU
y BU
.
)T
Suppose first that (i) holds. Then ( B f BU BV
f BU
= Im , and conse-
V
41
However, despite Theorem 6.8.1, this does not necessarily mean that the matrix B f B is
V U
orthogonal. This is because B f B is an n × m matrix, and it is possible that m ̸= n, in which
V U
case B f B is not a square matrix. Only square matrices can be orthogonal!
V U
Irena Penev
Linear Algebra 1 & 2
Chapter 6. Scalar (inner) products, norms, and orthogonality 451
T
= x BU
y BU
= x BU
· y BU
(1)
= ⟨x, y⟩U .
em m
i · ej = ui B · uj B
U U
(1)
= ⟨ui , uj ⟩U
(ii)
= f (ui ), f (uj ) V
(2)
= f (ui ) BV
· f (uj ) BV
= BV
f BU
ui BU
· BV
f BU
uj BU
em em
= BV
f BU i · BV
f BU j
= ci · cj .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 452
Chapter 7
Determinants
P
= sgn(σ)a1,σ(1) a2,σ(2) . . . an,σ(n) .
σ∈Sn
Let us try to explain this definition. Each permutation σ ∈ Sn gives us one way
of selecting one entry of A out of each row and each column: we select entries
a1,σ(1) , . . . , an,σ(n) , multiply them together, and then multiply that product by sgn(σ),
which yields the product sgn(σ)a1,σ(1) . . . an,σ(n) .1 We then sum up all products of
this type (there are |Sn | = n! many of them), and we obtain the determinant of our
matrix.
Note that if the entries of our square matrix belong to a field of characteristic 2
(i.e. a field in which 1 + 1 = 0, such as the field Z2 ), then 1 = −1, and so sgn(σ) can
be ignored (because it is always equal to 1). However, if our field is of characteristic
1 1 2 3 4
For example, for n = 4 and σ = = (134)(2), we select the boxed entries
3 2 4 1
below,
a1,1 a1,2 a1,3 a1,4
a2,1 a2,2 a2,3 a2,4
A = ,
a3,1 a3,2 a3,3 a3,4
a4,1 a4,2 a4,3 a4,4
and we obtain the product sgn(σ)a1,3 a2,2 a3,4 a4,1 = a1,3 a2,2 a3,4 a4,1 , since sgn(σ) = 1.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 453
other than 2 (i.e. if 1 + 1 ̸= 0 in our field, and consequently, 1 ̸= −1), then we must
keep track of sgn(σ) in each summand from the definition of a determinant. (For a
more detailed discussion of the characteristic of a field, see subsection 2.4.4.)
instead of
a1,1 a1,2 . . . a1,n
a2,1 a2,2 . . . a2,n
det .
.. .. .. ..
. . . .
an,1 an,2 . . . an,n
Proposition 7.1.1. Let n be a positive integer, and let π ∈ Sn , and consider the
matrix Pπ of the permutation π (where the 0’s and 1’s in Pπ can be considered as
belonging to an arbitrary field F). Then
det(Pπ ) = sgn(π).
Proof. Set Pπ = pi,j n×n
, so that
1 if j = π(i)
pi,j =
0 if j ̸= π(i)
The only permutation σ ∈ Sn for which none of p1,σ(1) , p2,σ(2) , . . . , pn,σ(n) is 0 is the
permutation σ = π. So,
(∗)
det(Pπ ) = sgn(π)p1,π(1) p2,π(2) . . . pn,π(n) = sgn(π),
where (*) follows from the fact that pi,π(i) = 1 for all i ∈ {1, . . . , n}.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 454
Remark: Note that the identity matrix In is the matrix of the identity permutation
1 in Sn . Since sgn(1) = 1, Proposition 7.1.1 guarantees that det(In ) = 1.
a1,1 a1,2
(b) = a1,1 a2,2 − a1,2 a2,1 ;
a2,1 a2,2
Proof. (a) S1 has just one element, namely σ1 = (1), with sgn(σ1 ) = 1. So, we have
that
a1,1 = sgn(σ1 )a1,σ1 (1) = a1,1 .
(b) S2 has two elements, listed below, along with their signs.
1 2
σ1 = = (1)(2), with sgn(σ1 ) = 1;
1 2
1 2
σ2 = = (12), with sgn(σ2 ) = −1.
2 1
So, we have that
a1,1 a1,2
= sgn(σ1 )a1,σ1 (1) a2,σ1 (2) + sgn(σ2 )a1,σ2 (1) a2,σ2 (2)
a2,1 a2,2
= a1,1 a2,2 − a1,2 a2,1 .
(c) S3 has six elements, listed below, along with their signs.
1 2 3
σ1 = = (1)(2)(3), with sgn(σ1 ) = 1;
1 2 3
1 2 3
σ2 = = (123), with sgn(σ2 ) = 1;
2 3 1
1 2 3
σ3 = = (132), with sgn(σ3 ) = 1;
3 1 2
2
Be careful not to confuse this with the absolute value! (The notation is admittedly some-
what unfortunate/ambiguous.)
If there is any danger of confusion, it is always possible to write
det a1,1 instead of a1,1 .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 455
1 2 3
σ4 = = (13)(2), with sgn(σ4 ) = −1;
3 2 1
1 2 3
σ5 = = (1)(23), with sgn(σ5 ) = −1;
1 3 2
1 2 3
σ6 = = (12)(3), with sgn(σ6 ) = −1.
2 1 3
So, we have that
sgn(σ1 )a1,σ1 (1) a2,σ1 (2) a3,σ1 (3)
+sgn(σ2 )a1,σ2 (1) a2,σ2 (2) a3,σ2 (3)
a1,1 a1,2 a1,3
+sgn(σ3 )a1,σ3 (1) a2,σ3 (2) a3,σ3 (3)
a2,1 a2,2 a2,3 =
+sgn(σ4 )a1,σ4 (1) a2,σ4 (2) a3,σ4 (3)
a3,1 a3,2 a3,3
+sgn(σ5 )a1,σ5 (1) a2,σ5 (2) a3,σ5 (3)
+sgn(σ6 )a1,σ6 (1) a2,σ6 (2) a3,σ6 (3)
a1,1 a2,2 a3,3
+a1,2 a2,3 a3,1
+a1,3 a2,1 a3,2
=
−a1,3 a2,2 a3,1
−a1,1 a2,3 a3,2
−a1,2 a2,1 a3,3 .
We multiply the entries along each of the red lines and add them up, and then we
multiply the entries along each of the blue lines and subtract them. In each case,
the result we get is precisely the formula from Proposition 7.1.2. For example, we
can compute the determinant of the matrix
1 2
A =
3 4
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 456
+ −
1 2
3 4
1 2
det(A) = = 1 · 4 − 2 · 3 = −2.
3 4
1 2 3
det(B) = 4 5 6
7 8 9
= 1·5·9+2·6·7+3·4·8−3·5·7−1·6·8−2·4·9
= 0.
det(AT ) = det(A).
Proof. We set A = ai,j n×n and AT = aTi,j n×n . So, for all i, j ∈ {1, . . . , n},
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 457
P n
Q
= sgn(σ) aσ(i),i
σ∈Sn i=1
P n
Q
= sgn(σ) aj,σ−1 (j)
σ∈Sn j=1
(∗) n
sgn(σ −1 )
P Q
= aj,σ−1 (j)
σ∈Sn j=1
P n
Q
= sgn(π) aj,π(j)
π∈Sn j=1
= det(A),
Proposition 7.1.5. Let F be a field, and let A = ai,j n×n be a matrix in Fn×n .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 458
q-th row of A are the same. (In particular, n ≥ 2.) Now, let An be the alternating
group of degree n, i.e. the group of all even permutations in Sn , and let On be the
set of all odd permutations in Sn .6 Obviously,
Sn = An ∪ On and An ∩ On = ∅.
where both instances of (*) follow from the fact that the p-th and q-th row of A
are the same. So, ap,σ(p) aq,σ(q) = ap,σ◦τ (p) aq,σ◦τ (q) . On the other hand, it is clear
Qn for all i ∈
that Qn{1, . . . , n} \ {p, q}, we have that ai,σ(i) = ai,σ◦τ (i) . It follows that
i=1 ai,σ(i) = i=1 ai,σ◦τ (i) , which is what we needed to show. ♦
We now compute:
P
det(A) = sgn(σ)a1,σ(1) . . . an,σ(n)
σ∈Sn
P P
= sgn(σ) a1,σ(1) . . . an,σ(n) + sgn(π) a1,π(1) . . . an,π(n)
σ∈An | {z } π∈On | {z }
=1 =−1
6
Unlike An , On is not a group.
7
Let us check this. First, suppose that σ ∈ An . Then
(∗) (∗∗)
sgn(σ ◦ τ ) = −sgn(σ) = −1,
where (*) follows from Proposition 2.3.2, and (**) follows from the fact that σ is even. So, σ ◦ τ ∈ On .
Conversely, suppose that π ∈ On . Set σ := π ◦ τ . Then
(∗) (∗∗)
sgn(σ) = sgn(π ◦ τ ) = −sgn(π) = 1,
where (*) follows from Proposition 2.3.2, and (**) follows from the fact that π is odd. So, σ ∈ An .
But τ is a transposition, and consequently, τ −1 = τ . So, π = π ◦ τ ◦ τ = σ ◦ τ .
8
This follows from the fact that τ is a bijection. So, if we had that σ1 ◦ τ = σ2 ◦ τ , then we would
have that
σ1 = σ1 ◦ τ ◦ τ −1 = σ2 ◦ τ ◦ τ −1 = σ2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 459
P P
= a1,σ(1) . . . an,σ(n) − a1,π(1) . . . an,π(n)
σ∈An π∈On
P P
= a1,σ(1) . . . an,σ(n) − a1,σ◦τ (1) . . . an,σ◦τ (n)
σ∈An σ∈An
(∗)
= 0,
det(A + B) Z
= det(A) + det(B)
and det(αA) Z
= αdet(A).
aT1
..
.
T
ap−1
T
x
fRp (x) = det
aT
p+1
.
..
aTn
Remark: Before reading the proof, the reader might want to take a look at
Example 7.2.2 (below), since it illustrates how Proposition 7.2.1 can be used in
practice.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 460
Proof. Clearly, (b) and Theorem 7.1.3 imply (a).9 So, it suffices to prove (b).
We first set up some notation. For each index i ∈ {1, . . . , n} \ {p}, we set
T
, so that aTi = ai,1 . . . ai,n . Now, let us prove that
ai = ai,1 . . . ai,n
fRp is linear.
T T
1. Fix x, y ∈ Fn , and set x = x1 . . . xn
and y = y1 . . . yn . We
compute:
aT1
a1,1 ... a1,n
.. .. . .. ..
. . .
T
ap−1
ap−1,1 . . . ap−1,n
(x + y) T x
fRp (x + y) = det = 1 + y1 . . . xn + yn
aT a p+1,1 . . . ap+1,n
p+1
.
..
.
.. .. ..
. .
aTn an,1 ... an,n
P
= sgn(σ)a1,σ(1) . . . ap−1,σ(p−1) xσ(p) + yσ(p) ap+1,σ(p+1) . . . an,σ(n)
σ∈Sn
P
= sgn(σ)a1,σ(1) . . . ap−1,σ(p−1) xσ(p) ap+1,σ(p+1) . . . an,σ(n)
σ∈SP
n
+ sgn(σ)a1,σ(1) . . . ap−1,σ(p−1) yσ(p) ap+1,σ(p+1) . . . an,σ(n)
σ∈Sn
aT1 aT1
.. ..
. .
T T
ap−1
ap−1
T
+ det yT
= x
det = fRp (x) + fRp (y).
aT aT
p+1 p+1
. .
.. ..
aTn aTn
9
Details?
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 461
T
2. Fix x ∈ Fn and α ∈ F, and set x =
x1 . . . xn . We compute:
aT1
a1,1 . . . a1,n
.. .. .. ..
. . . .
T
ap−1
ap−1,1 . . . ap−1,n
T
fRp (αx) = αx
det = αx1 . . . αxn
aT ap+1,1 . . . ap+1,n
p+1
. .. .. ..
..
. . .
aTn an,1 . . . an,n
P
= sgn(σ)a1,σ(1) . . . ap−1,σ(p−1) αxσ(p) ap+1,σ(p+1) . . . an,σ(n)
σ∈Sn
P
= α sgn(σ)a1,σ(1) . . . ap−1,σ(p−1) xσ(p) ap+1,σ(p+1) . . . an,σ(n)
σ∈Sn
aT1
a1,1 . . . a1,n
.. .. .. ..
. . . .
T
ap−1,1 . . . ap−1,n ap−1
T
= α x1 ... xn x
= α det
= αfRp (x).
ap+1,1 . . . ap+1,n aT
p+1
.. .. .. .
..
. . .
an,1 . . . an,n aTn
Example 7.2.2. By Proposition 7.2.1, we have the following (entries are understood
to be in R, and the row/column being manipulated is in red to facilitate reading):
1 2 1 1 1 1 1 1 1
2 3 4 = 2 2 4 + 2 1 4 ;
0 1 5 0 −2 5 0 3 5
3 2 4 1 2 4
6 −1 0 =3 2 −1 0 ;
−3 0 5 −1 0 5
1 2 3 1 2 3 1 2 3
2 2 3 = 2 2 3 + 2 2 3 ;
7 3 −2 4 4 −2 3 −1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 462
2 −2 4 1 −1 2
1 0 −2 =2 1 0 −2 .
2 1 4 2 1 4
det αA = αn det(A).
Proof. We apply Proposition 7.2.1 n times, once to each row (or alternatively, once
to each column) of αA, and the result follows.10
A is upper triangular if all entries of A below the main diagonal are zero, i.e. if
for all i, j ∈ {1, . . . , n} such that i > j, we have that ai,j = 0;
A is lower triangular if all entries of A above the main diagonal are zero, i.e. if
for all i, j ∈ {1, . . . , n} such that i < j, we have that ai,j = 0;
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 463
∗ ∗ ∗ ... ∗ ∗ ∗ 0 0 ... 0 0
0 ∗ ∗ ... ∗ ∗
∗ ∗ 0 ... 0 0
0 0 ∗ ... ∗ ∗
∗ ∗ ∗ ... 0 0
.. .. .. . . .. .. .. .. .. . . .. ..
. . . . . .
. . . . . .
0 0 0 ... ∗ ∗ ∗ ∗ ∗ ... ∗ 0
0 0 0 ... 0 ∗ ∗ ∗ ∗ ... ∗ ∗
1 2 3 1 0 0
0 4 5 = 1 · 4 · 6 = 24; 2 3 0 = 1 · 3 · 6 = 18.
0 0 6 4 5 6
Proof. Note that the transpose of an upper triangular matrix is a lower triangular
matrix, and moreover, the main diagonal remains unchanged when we take the
transpose of a square matrix. So, in view of Theorem 7.1.3, it suffices to prove the
result for the case when A is lower triangular. Now, note that for all σ ∈ Sn \ {1},11
there exists some index i ∈ {1, . . . , n} such that i < σ(i),12 and consequently,
ai,σ(i) = 0 (since A is lower triangular). It follows that for all σ ∈ Sn \ {1}, we have
that a1,σ(1) a2,σ(2) . . . an,σ(n) = 0, and consequently,
11
Recall that 1 is the identity permutation in Sn .
12
This is “obvious,” but here is a formal proof. Fix a permutation σ ∈ Sn \ {1}, and let
i ∈ {1, . . . , n} be minimal with the property that σ(i) ̸= i. Set j := σ(i). Then
σ(1) = 1, . . . , σ(i − 1) = i − 1,
σ(i) = j ̸= i.
If j < i, then σ(j) = j = σ(i), contrary to the fact that σ is a permutation (and in particular,
one-to-one). So, j > i, i.e. σ(i) > i.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 464
P
det(A) = sgn(σ)a1,σ(1) a2,σ(2) . . . an,σ(n)
σ∈Sn
(c) if a matrix B is obtained from A by adding a scalar multiple of one row (resp.
column) of A to another row (resp. column) of A, then
det(B) = det(A).
Proof. In view of Theorem 7.1.3, it suffices to prove the result for row operations
only.
(a) Fix distinct indices p, q ∈ {1, . . . , n}, and suppose
that B is obtained by
swapping rows p and q of A (“Rp ↔ Rq ”). Set B = bi,j n×n , so that
for all j ∈ {1, . . . , n}, we have that bp,j = aq,j and bq,j = ap,j ;
for all i ∈ {1, . . . , n} \ {p, q} and j ∈ {1, . . . , n}, we have that bi,j = ai,j .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 465
So, bp,σ(p) bq,σ(q) = ap,σ◦τ (p) aq,σ◦τ (q) . On the other hand, for all i ∈ {1, . . . , n} \ {p, q},
n
Q n
Q
we have that bi,σ(i) = ai,σ◦τ (i) . It follows that bi,σ(i) = ai,σ◦τ (i) , which is what
i=1 i=1
we needed to show. ♦
We now compute:
P Qn
det(B) = sgn(σ) i=1 bi,σ(i)
σ∈Sn
(∗) P Qn
= sgn(σ) i=1 ai,σ◦τ (i)
σ∈Sn
(∗∗) P Q
n
= − sgn(σ ◦ τ ) i=1 ai,σ◦τ (i)
σ∈Sn
P Qn
= − sgn(σ ◦ τ ) i=1 ai,σ◦τ (i)
σ∈Sn
P Qn
= − sgn(π) i=1 ai,π(i)
π∈Sn
= −det(A),
where (*) follows from the Claim, and (**) follows from Proposition 2.3.2. This
proves (a).
(b) Fix an index p ∈ {1, . . . , n} and a scalar α ∈ F \ {0}, and suppose that B is ob-
tained by multiplying the p-th row of A by α (“Rp → αRp ”). By Proposition 7.2.1(b),
the determinant is linear in the p-th row, and we deduce that det(B) = αdet(A).
Since α ̸= 0, we deduce that det(A) = α−1 det(B). This proves (b).
(c) Fix distinct indices p, q ∈ {1, . . . , n} and a scalar α ∈ F, and suppose thatB is
obtained by adding α times row p to row q (“Rq → Rq + αRp ”). Set B = bi,j n×n ,
so that
for all i ∈ {1, . . . , n} \ {q} and j ∈ {1, . . . , n}, we have that bi,j = ai,j .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 466
= det(A),
where (*) follows from the fact that the determinant is linear in the q-th row (by
Proposition 7.2.1(b)), and (**) follows from the fact that any square matrix with
two identical rows (in this case, the p-th and q-th row) has determinant zero (by
Proposition 7.1.5).
Example 7.3.3. Compute the determinant of the matrix below (with entries under-
stood to be in R).
2 4 6
A = 2 4 4
3 3 7
2 4 6
det(A) = 2 4 4
3 3 7
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 467
2 4 6
R2 →R2 −R1
= 0 0 −2
3 3 7
2 4 6
R2 ↔R3
= − 3 3 7
0 0 −2
R1 → 21 R1
1 2 3
= −2 3 3 7
0 0 −2
1 2 3
R2 →R1 −3R1
= −2 0 −3 −2
0 0 −2
(∗)
= (−2)1(−3)(−2)
= −12,
Example 7.3.4. Compute the determinant of the matrix below (with entries under-
stood to be in Z3 ).
1 2 1 1 2
1 1 0 2 1
A = 2 0 1 1 2
2 2 0 0 1
1 0 2 1 2
Solution. Here, we just notice that the second column is the sum of the first and third.
This allows us to turn the second column into a zero column via two elementary
column operations, which implies that det(A) = 0. The detailed computation is as
follows:
1 2 1 1 2
1 1 0 2 1
det(A) = 2 0 1 1 2
2 2 0 0 1
1 0 2 1 2
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 468
1 1 1 1 2
1 0 0 2 1
C2 →C2 −C1
= 2 1 1 1 2
2 0 0 0 1
1 2 2 1 2
1 0 1 1 2
1 0 0 2 1
C2 →C2 −C3
= 2 0 1 1 2
2 0 0 0 1
1 0 2 1 2
(∗)
= 0,
where (*) follows from the fact that a matrix with a zero column has determinant
zero (by Proposition 7.1.4). We could also have noticed that the matrix in the second
line of the computation above has two identical columns, and so by Proposition 7.1.5,
its determinant is zero. Finally, we note that our two elementary column operations
could also have been written as “C2 → C2 + 2C1 ” and “C2 → C2 + 2C3 ,” since in
Z3 , we have that −1 = 2.
Proof. We can transform A into a matrix in reduced row echelon form via a sequence
of elementary row operations. By Theorem 7.3.2, each elementary row operation has
the effect of multiplying the value of the determinant by some non-zero scalar. So,
there exists some scalar α ∈ F \ {0} such that
det(A) = αdet RREF(A) . Therefore,
det(A) = 0 if and only if det RREF(A) = 0. Moreover, RREF(A) is an upper
triangular matrix, and so (by Proposition 7.3.1) its determinant is zero if and only if
at least one entry on its main diagonal is zero. We now have the following sequence
of equivalent statements:
det(A) = 0 ⇐⇒ det RREF(A) = 0
(∗)
⇐⇒ RREF(A) ̸= In
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 469
(∗∗)
⇐⇒ A is not invertible,
where (*) follows from the fact that RREF(A) is a square matrix in reduced row ech-
elon form, and (**) follows from the Invertible Matrix Theorem (see subsection 1.11.7
or 3.3.7). It now obviously follows that A is invertible if and only if det(A) ̸= 0,
which is what we needed to show.
(b) AT is invertible;
(c) RREF(A) = In ;
(e) rank(A) = n;
(f ) rank(AT ) = n;
(h) the homogeneous matrix-vector equation Ax = 0 has only the trivial solution (i.e.
the solution x = 0);
(i) there exists some vector b ∈ Fn such that the matrix-vector equation Ax = b
has a unique solution;
(j) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has a unique solution;
(k) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has at most one
solution;
(m) f is one-to-one;
(n) f is onto;
13
Since f is a matrix transformation, Proposition 1.10.4 guarantees that f is linear. Moreover, A
is the standard matrix of f .
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 470
(o) f is an isomorphism;
(p) there exists a matrix B ∈ Fn×n such that BA = In (i.e. A has a left inverse);
(q) there exists a matrix C ∈ Fn×n such that AC = In (i.e. A has a right inverse);
(y) det(A) ̸= 0.
Proof. Items (a)-(x) are the same as those from the Invertible Matrix Theorem
(version 2) from subsection 3.3.7. The equivalence of (a) and (y) follows from
Theorem 7.4.1.
det(A + B) Z
= det(A) + det(B)
and det(αA) Z
= αdet(A).
det(AB) = det(A)det(B).
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 471
Proof. Let R be an elementary row operation that corresponds to the elementary ma-
trix E, i.e. E is the matrix obtained by performing R on In . By Proposition 1.11.11(a),
EA is the matrix obtained by performing R on A. Now, by Theorem 7.3.2, there
exists some scalar α ∈ F \ {0} such that for any matrix M ∈ Fn×n , the determinant
of the matrix obtained by performing the elementary row operation R on M is
αdet(M ). So,
det(E) = αdet(In ) = α;
det(EA) = αdet(A).
It follows that
det(EA) = αdet(A) = det(E)det(A),
which is what we needed to show.
det(AB) = det(A)det(B).
But now
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 472
Corollary 7.5.3. Let F be a field, and let A ∈ Fn×n be an invertible matrix. Then
det(A−1 ) = 1
det(A) .
where (*) follows from Theorem 7.5.2. We now see that det(A−1 ) = 1
det(A) , which is
what we needed to show.
Similar matrices and determinants. Recall from subsection 4.5.2 that matrices
A, B ∈ Fn×n (where F is a field) are said to be similar if there exists an invertible
matrix P ∈ Fn×n such that B = P −1 AP . Using Theorem 7.5.2 and Corollary 7.5.3,
we can easily show that similar matrices have the same determinant.
Corollary 7.5.4. Let F be a field, and let A and B be similar matrices in Fn×n .
Then det(A) = det(B).
Proof. Since A and B are similar, there exists an invertible matrix P ∈ Fn×n such
that B = P −1 AP . We then have that
det(B) = det(P −1 AP )
1
= det(P ) det(A)det(P ) by Corollary 7.5.3
= det(A),
where B is any basis of V . Let us explain why this is well defined, that is, why the
value of det(f ) that we get depends only on f , and not on the particular choice of
the B. Suppose
basis that C is any basis of V . Then by Theorem 4.5.19, matrices
B
f B
and C
f C
are similar, and consequently (by Corollary 7.5.4), they have
the same determinant. So, det(f ) is well defined.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 473
Remark: Note that we defined determinants only for linear functions whose domain
and codomain are one and the same, and moreover, are finite-dimensional and
non-null.
where (*) follows from Theorem 7.5.2, and (**) follows from Theorem 7.1.3. But
now we see that det(A) = ±1, which is what we needed to show.
A=
ai,j (n−1)×(n−1)
;
an,n = 1;
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 474
for all j ∈ {1, . . . , n − 1}, an,j is the j-th entry of the vector a.
Next, for all σ ∈ Sn−1 , let σ ∗ ∈ Sn be given by σ ∗ (i) = σ(i) for all i ∈ {1, . . . , n − 1}
and σ ∗ (n) = n. So, for any σ ∈ Sn−1 , the disjoint cycle decomposition of σ ∗ is
obtained by adding the one-element cycle (n) to the disjoint cycle decomposition
of σ, and consequently, sgn(σ) = sgn(σ ∗ ).16 Set Sn∗ := {σ ∗ | σ ∈ Sn−1 } = {π ∈ Sn |
π(n) = n}. We then have the following:
P
det(A) = sgn(σ)a1,σ(1) . . . an−1,σ(n−1)
σ∈Sn−1
P
= sgn(π)a1,π(1) . . . an−1,π(n−1) an,π(n)
∗
π∈Sn
(∗) P
= sgn(π)a1,π(1) . . . an−1,π(n−1) an,π(n)
π∈Sn
A 0
= det ,
aT 1 n×n
where (*) follows from the fact that for all π ∈ Sn \ Sn∗ , we have that i := π −1 (n) ̸= n
(because π(n) ̸= n), and so ai,π(i) = ai,n = 0.
We now introduce some terminology and notation. For a matrix A = ai,j n×n
(where n ≥ 2) with entries in some field F, and for indices p, q ∈ {1, . . . , n}, Ap,q
is the (n − 1) × (n − 1) matrix obtained from A by deleting the p-th row and q-th
column (see Example 7.6.2 below). The determinants
16
Indeed, fix any σ ∈ Sn−1 , and suppose that the disjoint cycle decomposition of σ contains
exactly k cycles (when cycles of length one are included). Then the disjoint cycle decomposition
of σ ∗ contains exactly k + 1 cycles (when cycles of length one are included). But now sgn(σ) =
(−1)(n−1)−k = (−1)n−k−1 = (−1)n−(k+1) = sgn(σ ∗ ).
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 475
(b) [expansion along the j-th column] for all j ∈ {1, . . . , n}, we have that
n
(−1)i+j ai,j det(Ai,j ).
P
det(A) =
i=1
Remark: If we write Ci,j := (−1)i+j det(Ai,j ) for all i, j ∈ {1, . . . , n} (so, the Ci,j ’s
Pn
are the cofactors of A), then the formula from (a) becomes det(A) = ai,j Ci,j , and
j=1
n
P
the formula from (b) becomes det(A) = ai,j Ci,j . This is why Laplace expansion
i=1
is also referred to as “cofactor expansion.”
Proof. In view of Theorem 7.1.3, it is enough to prove (b). Fix j ∈ {1, . . . , n}. We
must show that
n
(−1)i+j ai,j det(Ai,j ).
P
det(A) =
i=1
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 476
n
P
First, set A = a1 . . . an . Then aj = ai,j ei , and so
i=1
det(A) = det a1 . . . aj−1 aj aj+1 . . . an
n
P
= det a1 . . . aj−1 ai,j ei aj+1 . . . an
i=1
(∗) n
P
= ai,j det a1 . . . aj−1 ei aj+1 . . . an ,
i=1
where (*) follows from Proposition 7.2.1(a). Fix an arbitrary index i ∈ {1, . . . , n}.
To complete the proof, it now suffices to show that
det a1 . . . aj−1 ei aj+1 . . . an = (−1)i+j det(Ai,j ).
By iteratively performing n − i row swaps on the matrix Ci , we can obtain the matrix
Ai,j 0
,
aT 1
where aT is the row vector of length n − 1 obtained from the i-th row of A by deleting
its j-th entry.17 Since swapping two rows or two columns has the effect of changing
the sign of the determinant, we see that
A 0
i,j
= (−1)n−j (−1)n−i det
aT 1
(∗)
= (−1)2n−i−j det(Ai,j )
= (−1)i+j det(Ai,j ),
17
T
So, aT = , and in particular aT ∈ Fn−1 .
ai,1 ... ai,j−1 ai,j+1 ... ai,n
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 477
where (*) follows from Proposition 7.6.1. This completes the argument.
2 0 1
det(A) = 3 4 5
7 0 8
0 1 2 1 2 0
= (−1)3+1 7 + (−1)3+2 0 + (−1)3+3 8
4 5 3 5 3 4
0 1 2 0
= 7 +8 = 36.
4 5 3 4
| {z } | {z }
=−4 =8
(b) We compute:
2 0 1
det(A) = 3 4 5
7 0 8
3 5 2 1 2 1
= (−1)1+2 0 + (−1)2+2 4 + (−1)3+2 0
7 8 7 8 3 5
2 1
= 4 = 36.
7 8
| {z }
=9
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 478
Solution. As a general rule, it is best to expand along a row or column that has a lot
of zeros (if such a row or column exists), since that reduces the amount of calculation
that we need to perform. In the calculation below, the row or column along which
we are about to expand is in red (to facilitate reading).
1 2 0 −1 −2
1 2 −1 −2
3 −4 0 −2 −1
3 −4 −2 −1
det(A) = 1 2 2 0 1 = (−1)3+3 2
1 0 0 2
1 0 0 0 2
2 −1 1 3
2 −1 0 1 3
1 2 −1 −2
3 −4 −2 −1
= 2
1 0 0 2
2 −1 1 3
2 −1 −2 1 2 −1 !
= 2 (−1)3+1 1 −4 −2 −1 + (−1)3+4 2 3 −4 −2
−1 1 3 2 −1 1
2 −1 −2 1 2 −1
= 2 −4 −2 −1 −2 3 −4 −2 = 78,
−1 1 3 2 −1 1
| {z } | {z }
=−11 −25
where the determinants of the two 3 × 3 matrices from the last line can be obtained in
various ways: Laplace expansion, elementary row/column operations, or our diagram
for computing determinants of 3 × 3 matrices (described section 7.1).
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 479
1 −1 2
det(A) = −2 4 1
3 −3 5
1 0 2
C2 →C2 +C1
= −2 2 1
3 0 5
1 2 Laplace expansion
= (−1)2+2 2
3 5 along 2nd column
| {z }
=−1
= −2.
Using Laplace expansion, one can easily show (see Theorem 7.6.6 and Corol-
lary 7.6.7 below) that the determinant of a matrix obtained by arranging several
square matrices along the main diagonal and placing zeros everywhere else is equal
to the product of the determinants of those square matrices along the main diagonal.
Theorem 7.6.6. Let F be a field, and let A ∈ Fn×n and B ∈ Fm×m be square
matrices. Then
A On×m
det = det(A) det(B).
Om×n B
Proof (outilne). This can be proven (for example) by induction on n, via Laplace
expansion along the leftmost column. The details are left as an exercise.
Corollary 7.6.7. Let F be a field, and let A1 ∈ Fn1 ×n1 , A2 ∈ Fn2 ×n2 , . . . , Ak ∈
Fnk ×nk be square matrices. Then
A1 On1 ×n2 . . . On1 ×nk
On2 ×n1 A2 . . . On2 ×nk k
Q
det = det(Ai ).
.. .. .. ..
. . . . i=1
Onk ×n1 Onk ×n2 ... Ak
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 480
we have that
4 1 1 1 4 1 1 1 4
A1 (b) = 5 2 2 , A2 (b) = 0 5 2 , A3 (b) = 0 2 5 .
6 0 3 0 6 3 0 0 6
Further, in the remainder of this section, it will be convenient to use the fraction
notation discussed in subsection 2.4.3.
Cramer’s rule. Let F be a field, and let A be an invertible matrix in Fn×n , and let
b ∈ Fn . Then the matrix-vector equation Ax = b has a unique solution, namely
T
det A1 (b) det A2 (b) det An (b)
x = ... .
det(A) det(A) det(A)
n
P
= det a1 . . . aj−1 xi ai aj+1 . . . an
i=1
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 481
(∗) n
P
= xi det a1 . . . aj−1 ai aj+1 . . . an
i=1
(∗∗)
= xj det a1 . . . aj−1 aj aj+1 . . . an
= xj det(A),
where (*) follows from Proposition 7.2.1(a), and (**) follows from the fact that for
all i ∈ {1, . . . , n} \ {j}, the matrix
a1 . . . aj−1 ai aj+1 . . . an
has two identical columns and therefore (by Proposition 7.1.5) has determinant zero.
We have now shown that
det Aj (b) = xj det(A).
Since A is invertible, Theorem 7.4.1 guarantees that det(A) ̸= 0. So, we can divide
both sides of the equality above by det(A) to obtain
det Aj (b)
xj = det(A) .
2 1 0
det A2 (b) =
0 1 2 = 1;
1 0 1
2 1 1
det A3 (b) =
0 2 1 = 0.
1 1 0
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 482
2 1 0
T
= 2 2 2
T
= 1 2 0 .
So, the i, j-th entry of adj(A) is the cofactor Cj,i (note the swapping of the indices).
Solution. For all i, j ∈ {1, 2, 3}, we let Ci,j = (−1)i+j det(Ai,j ). We compute:
2 2
C1,1 = (−1)1+1 = 6;
0 3
0 2
C1,2 = (−1)1+2 = 0;
0 3
0 2
C1,3 = (−1)1+3 = 0;
0 0
1 1
C2,1 = (−1)2+1 = −3;
0 3
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 483
1 1
C2,2 = (−1)2+2 = 3;
0 3
1 1
C2,3 = (−1)2+3 = 0;
0 0
1 1
C3,1 = (−1)3+1 = 0;
2 2
1 1
C3,2 = (−1)3+2 = −2;
0 2
1 1
C3,3 = (−1)3+3 = 2.
0 2
So, the cofactor matrix of A is
C1,1 C1,2 C1,3 6 0 0
C2,1 C2,2 C2,3 = −3 3 0 .
C3,1 C3,2 C3,3 0 −2 2
Proof. Let us first show that the first statement implies the second. Indeed, if A is
invertible, then det(A) ̸= 0, and so if the first statement holds, then we get that
1 1
det(A) adj(A) A = A det(A) adj(A) = In ,
It remains to prove the first statement, i.e. that adj(A) A = A adj(A) = det(A)In .
We will do this by proving that the matrices adj(A) A, A adj(A), and det(A)In have
the same corresponding entries. Fix indices i, j ∈ {1, . . . , n}. The i, j-th entry of the
matrix det(A)In is det(A) if i = j, and is zero if i ̸= j. We must show this holds for
the i, j-th entry of the matrices adj(A) A and A adj(A) as well.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 484
We first consider the matrix adj(A) A. The i-th row of adj(A) is C1,i . . . Cn,i ,
T
Pn the j-th column of A is a1,j . . . an,j
and . So, the i, j-th entry of adj(A) A is
a C
k=1 k,j k,i . Now, let B 1 be the matrix obtained
Pn by replacing the i-th column of
A by the j-th column of A. Then det(B1 ) = k=1 ak,j Ck,i (via Laplace expansion
along the i-th column of B1 ). But if i = j, then det(B1 ) = det(A) (because B1 = A),
and if i ≠ j, then det(B1 ) = 0 (because B1 has two identical columns, namely, the
i-th and j-th column).18
We now consider the matrix A adj(A). The i-th row of A is ai,1 . . . ai,n ,
T
and the j-th Pncolumn of adj(A) is Cj,1 . . . Cj,n . So, the i, j-th entry of
A adj(A) is k=1 ai,k Cj,k . Now, let B2 be the matrix
Pn obtained by replacing the j-th
row of A by the i-th row of A. Then det(B2 ) = k=1 ai,k Cj,k (via Laplace expansion
along the j-th row of B2 ). But if i = j, then det(B2 ) = det(A) (because B2 = A),
and if i ̸= j, then det(B2 ) = 0 (because B2 has two identical rows, namely, the i-th
and j-th row).19
(with entries understood to be in R) is invertible, and using Theorem 7.8.5, find its
inverse A−1 .
Solution. The matrix A is upper triangular, and so its determinant can be computed
by multiplying the entries along the main diagonal. So, det(A) = 1 · 2 · 3 = 6. Since
det(A) ̸= 0, Theorem 7.4.1 guarantees that A is invertible. In Example 7.8.1, we
compute the adjugate matrix of A:
6 −3 0
adj(A) = 0 3 −2 .
0 0 2
18
By Proposition 7.1.5, the determinant of a square matrix with two identical columns is zero.
19
By Proposition 7.1.5, the determinant of a square matrix with two identical rows is zero.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 485
is invertible if and only if ad ̸= bc, and in this case, the inverse of A is given by the
formula
−1 1 d −b
A = ad−bc .
−c a
We complete this section with another proof of a slightly weaker version of Theo-
rem 7.8.2, one that only applies to invertible matrices A. We give this proof in order
to illustrate a nice application of Cramer’s rule.
Theorem 7.8.5. Let F be a field, and let A be an invertible matrix in Fn×n . Then
A−1 = 1
det(A) adj(A).
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 486
A a∗1 . . . a∗n
= e1 . . . en ,
and consequently (by the definition of matrix-vector multiplication), that
Aa∗1 . . . Aa∗n
= e1 . . . en .
In particular, the two matrices above have the same j-th column, and so Aa∗j = ej ,
i.e. a∗j is the solution of the equation Ax = ej (this solution is unique because A is
invertible). So, by Cramer’s rule, we have that
T
∗ det A1 (ej ) det An (ej )
aj = ... .
det(A) det(A)
So, the i-th entry of a∗j (which is precisely the i, j-th entry of A−1 ) is
(−1)j+i det(Aj,i )
det(A) ,
which is what we needed to show.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 487
Proof. By Theorem 7.4.1, we know that a square matrix is invertible if and only if its
determinant is non-zero. So, the second statement of the proposition follows immedi-
ately from the first, i.e. from the formula for the determinant of the Vandermonde
matrix.
We prove the formula for the determinant of the Vandermonde by induction on
n. For n = 1, we note that for any a0 , a1 ∈ R, we have that
1 1
det V (a0 , a1 ) = = (a1 − a0 ).
a0 a1
Now, fix a positive integer n, and assume inductively that our formula is correctfor
n, i.e. that for all real numbers a0 , a1 , . . . , an , we have that det V (a0 , a1 , . . . , an ) =
Qn Qi−1
i=1 j=0 (ai − aj ). We must show that the formula is correct for n + 1. Fix
a0 , a1 , . . . , an , an+1 ∈ R; we will show that
n+1
Q i−1
Q
det V (a0 , a1 , . . . , an , an+1 ) = (ai − aj ).
i=1 j=0
If some two of the numbers a0 , a1 , . . . , an , an+1 are the same, then this is obvious.
Indeed, in this case, the matrix V (a0 , a1 , . . . , an , an+1 ) has two identical columns
and
Qn+1therefore
Qi (by Proposition 7.1.5) has determinant zero, and on the other hand,
i=1 j=0 (a i − aj ) = 0 (because one of the factors is zero). So, from now on, we
may assume that a0 , a1 , . . . , an , an+1 are pairwise distinct.
Set
1 1 ... 1 1
a0 a1 . . . an t
a20 a21 . . . a2n t2
f (t) := .. .. .. .. .. ,
. . . . .
an0 an1 . . . ann tn
an+1
0 an+1
1 . . . an+1
n tn+1
so that f (an+1 ) = V (a0 , a1 , . . . , an , an+1 ). By performing Laplace expansion along
the rightmost column, we see that f (t) is a polynomial of degree n + 1, and that its
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 488
1 1 ... 1
a0 a1 . . . an
(∗) n i−1
k := a20 a21 . . . a2n =
Q Q
(ai − aj ),
.. .. .. . i=1 j=0
. . . ..
an0 an1 . . . ann
where (*) follows from the induction hypothesis. Moreover, for each i ∈ {0, 1, . . . , n},
f (ai ) is the determinant of a square matrix that has two identical columns and is
therefore (by Proposition 7.1.5) equal to zero. Thus, a0 , a1 , . . . , an are all roots of
the (n + 1)-th degree polynomial f (t). So, f (t) can be factored as
n
Q n i−1
Q Q n
Q
f (t) = k (t − aj ) = (ai − aj ) (t − aj ) .
j=0 i=1 j=0 j=0
Consequently,
n+1
Q i−1
Q
det V (a0 , a1 , . . . , an , an+1 ) = f (an+1 ) = (ai − aj ).
i=1 j=0
height
base
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 489
height
base
v2
v1
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 490
v3
v2
v1
0
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 491
from the definition of volume (see Proposition 7.10.1 below). However, the latter
is not entirely obvious. We prove this in Corollary 7.10.4, which in fact follows
from the formula for volume as the determinant of a certain square matrix (see
Theorem 7.10.2).
We will show that the latter happens if and only if the set {v1 , . . . , vm } is linearly
dependent.
Suppose first that at least one of v1 , v2⊥ , . . . , vm⊥ is 0. If v = 0, then obvi-
1
ously, {v1 , . . . , vm } is linearly dependent. Suppose now that vi⊥ = 0 for some
index i ∈ {2, . . . , m}. Then projSpan(v1 ,...,vi−1 ) (vi ) = vi − vi⊥ = vi , and so vi ∈
Span(v1 , . . . , vi−1 ), i.e. vi is a linear combination of the vectors v1 , . . . , vi−1 . So,
{v1 , . . . , vm } is linearly dependent.
Suppose now that {v1 , . . . , vm } is linearly dependent. Then by Proposition 3.2.12,
there exists some i ∈ {1, . . . , m} such that vi is a linear combination of the vectors
v1 , . . . , vi−1 . If i = 1, then v1 = 0. On the other hand, if i ≥ 2, then vi ∈
Span(v1 , . . . , vi−1 ), and so vi⊥ = 0.21
p
Vm (a1 , . . . , am ) = det(AT A).
Proof. For each i ∈ {1, . . . , m}, set Ai := a1 . . . ai . We will prove inductively
q
that for all i ∈ {1, . . . , m}, we have that Vi (a1 , . . . , ai ) = det(ATi Ai ). Obviously,
this is enough, since Am = A.
For i = 1, we observe that
T
AT1 A1 =
a1 a1 = a1 · a1 ,
and consequently,
√
q
det(AT1 A1 ) = a1 · a1 = ||a1 || = V1 (a1 ).
21
Indeed, if vi ∈ Span(v1 , . . . , vi−1 ), then projSpan(v1 ,...,vi−1 ) (vi ) = vi , and consequently, vi⊥ =
vi − projSpan(v1 ,...,vi−1 ) (vi ) = 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 492
We may now assume that m ≥ 2, for otherwise we are done by what weqjust showed.
Fix i ∈ {1, . . . , m − 1}, and assume inductively that Vi (a1 , . . . , ai ) = det(ATi Ai ).
q
We must show that Vi+1 (a1 , . . . , ai , ai+1 ) = det(ATi+1 Ai+1 ). Set
||
ai+1 := projSpan(a1 ,...,ai ) (ai+1 );
a⊥
i+1 := projSpan(a1 ,...,ai )⊥ (ai+1 ).
|| ||
By Corollary 6.5.3, we have that ai+1 = ai+1 + a⊥
i+1 . Since ai+1 ∈ Span(a1 , . . . , ai ),
||
there exist scalars c1 , . . . , ci ∈ R such that ai+1 = c1 a1 + · · · + ci ai , and consequently,
||
a⊥
i+1 = ai+1 − ai = ai+1 − c1 a1 − · · · − ci ai .
Now, let Bi+1 be the matrix obtained from Ai+1 by replacing the rightmost column
of Ai+1 by a⊥
i+1 , i.e.
a1 . . . ai a⊥
Bi+1 := i+1 .
Then
aT1 aT1
.. ..
T
Bi+1 =
. =
. .
aTi aTi
(a⊥
i+1 )
T aTi+1 − c1 aT1 − · · · − ci aTi
T
So, Bi+1 can be obtained from ATi+1 via the following sequence of i elementary row
operations:
Ri+1 → Ri+1 − c1 R1 ;
..
.
Ri+1 → Ri+1 − ci Ri .
(∗)
= det(Ei ) . . . det(E1 )det(ATi+1 Ai+1 )det(E1T ) . . . det(EiT )
22
Indeed, for each j ∈ {1, . . . , i}, the matrix Ej is obtained by performing the row operation
Ri+1 → Ri+1 − cj Rj on the identity matrix Ii+1 , and so by Theorem 7.3.2(c), we have that
det(Ej ) = det(Ii+1 ) = 1.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 493
(∗∗)
= det(Ei ) . . . det(E1 ) det(ATi+1 Ai+1 ) det(E1 ) . . . det(Ei )
| {z } | {z } | {z } | {z }
=1 =1 =1 =1
= det(ATi+1 Ai+1 ),
ATi
T B Ai a⊥
Bi+1 i+1 =
(a⊥
i+1 )
T i+1
ATi Ai ATi a⊥
= i+1
(a⊥ T ⊥ T ⊥
i+1 ) Ai (ai+1 ) ai+1
ATi Ai
(∗) 0
= ,
0T ||a⊥
i+1 ||
2
det(ATi+1 Ai+1 ) = T B
det(Bi+1 i+1 )
ATi Ai 0
=
0T ||a⊥
i+1 ||
2
(∗)
= (−1)(i+1)+(i+1) ||a⊥ 2 T
i+1 || det(Ai Ai )
= det(ATi Ai ) ||a⊥
i+1 ||
2
(∗∗)
= Vi (a1 , . . . , ai )2 ||a⊥
i+1 ||
2
(∗∗∗)
= Vi+1 (a1 , . . . , ai , ai+1 )2 ,
where (*) follows by Laplace expansion along the rightmost column, (**) follows from
23
Indeed,
aT1 a1 · a⊥
i+1
. ⊥ ..
AT a⊥ = .. ai+1 = .
i+1 .
⊥
aTi a1 · ai+1
Since a⊥ ⊥ ⊥ ⊥ T ⊥
i+1 ∈ Span(a1 , . . . , ai ) , we see that a1 · ai+1 = · · · = ai · ai+1 = 0, and so A ai+1 = 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 494
the induction hypothesis, and (***) follows from the definition of Vi+1 (a1 , . . . , ai , ai+1 ).
Since Vi+1 (a1 , . . . , ai , ai+1 ) ≥ 0 (by Proposition 7.10.1), we may now take the square
root of both sides to obtain
q
Vi+1 (a1 , . . . , ai , ai+1 ) = det(ATi+1 Ai+1 ).
= |det(A)|.
24
We discussed permutation matrices in subsection 2.3.7.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 495
p
= det(Pσ AT APσT )
(∗∗) p
= det(Pσ )det(AT A)det(PσT )
(∗∗∗) p
= det(Pσ )det(AT A) det(Pσ )
p
= sgn(σ)2 det(AT A)
p
= det(AT A)
(∗)
= Vm (a1 , . . . , am ),
where both instances of (*) follow from Theorem 7.10.2, (**) follows from Theo-
rem 7.5.2, and (***) follows from Theorem 7.1.3.
p
= det(B T AT AB)
(∗∗) p
= det(B T )det(AT )det(A)det(B)
(∗∗∗) p
= det(A)2 det(B T )det(B)
(∗∗) p
= det(A)2 det(B T B)
p
= |det(A)| det(B T B)
(∗)
= |det(A)| Vn (v1 , . . . , vn ),
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 496
where both instances of (*) follow from Theorem 7.10.2, both instances of (**) follow
from Theorem 7.5.2, and (***) follows from Theorem 7.1.3.
Remark: For a1 , . . . , am ∈ Rn (m ̸= n) and A ∈ Rn×n , the formula from Corol-
lary 7.10.5 fails, i.e.
= |det(A)| Vm (v1 , . . . , vm ).
Vm (Av1 , . . . , Avm ) Z
1 1 0
For instance, for m = 1 and n = 2, we can take v1 = and A = ,
0 0 0
so that Av1 = v1 . Then V1 (Av1 ) = V1 (v1 ) = ||v1 || = 1, but det(A) = 0, and so
V1 (Av1 ) ̸= |det(A)| V1 (v1 ).
Suppose that Ω is any object in Rn for which n-volume Vn (Ω) can be defined.
We will not go into the technical details of how this can be done, but the idea is
that we approximate Ω with ever smaller n-dimensional hypercubes; the sum of
n-volumes of those n-hypercubes (which are simply n-parallelepipeds, and so we
know how to compute their n-volume) will give us an ever better approximation of
the n-volume of Ω that we wish to define. To obtain the actual n-volume of Ω, we
take the limit of these ever-finer approximations. If the limit exists, then Ω will have
an n-volume (defined to be this limit). If the limit does not exist, then n-volume
is undefined for Ω. (It is actually pretty difficult to construct Ω for which volume
is undefined! Any reasonably pretty object Ω will have a volume, although that
volume may possibly be zero.) Now, suppose we are given a matrix A ∈ Rn×n . We
consider the linear function fA : Rn → Rn whose standard matrix is A (i.e. for all
x ∈ Rn , we have fA (x) = Ax). Then each of the small n-hypercubes gets mapped
onto a small n-parallelepiped; if the small n-hypercubes each had volume V , then by
Corollary 7.10.5, the small n-parallelepipeds that these n-hypercubes get mapped
onto via fA will have volume |det(A)| V . So, we get the following formula for the
n-volume of the image of Ω under fA :
Vn (fA [Ω]) = |det(A)| Vn (Ω).
For the case n = 2, see the picture below.
Ω fA[Ω]
fA(x) = Ax
Example 7.10.6. Let a and b be positive real numbers. Compute the area (i.e.
2-volume) of the region bounded by the ellipse whose equation is
x21 x22
a2
+ b2
= 1.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 497
1 D fA(x) = Ax E = fA[D]
b
−1 1 −a a
x1
x1
a 0
A=
−b
−1 0 b
= E.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 498
and let Q be the m × (n + m) matrix whose j-th row (for j ∈ {1, . . . , m}) is
h i
0 . . . 0 bn bn−1 . . . b0 0 . . . 0 .
| {z } | {z }
j−1 m−j
25
This does not hold in general if the field in question is not algebraically closed!
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 499
p(x) = a3 x3 + a2 x2 + a1 x + a0 ,
q(x) = b5 x5 + b4 x4 + b3 x3 + b2 x2 + b1 x + b0 ,
then we have
a3 a2 a1 a0 0 0 0 0
0 a3 a2 a1 a0 0 0 0
0 0 a3 a2 a1 a0 0 0
P 0 0 0 a3 a2 a1 a0 0
= .
Q
0 0 0 0 a3 a2 a1 a0
b5 b4 b3 b2 b1 b0 0 0
0 b5 b4 b3 b2 b1 b0 0
0 0 b5 b4 b3 b2 b1 b0 8×8
Claim. Polynomials p(x) and q(x) have a common root in F if and only
if there exist non-zero polynomials r(x) and s(x) with coefficients in F
that satisfy the following:
deg r(x) ≤ n − 1;
deg s(x) ≤ m − 1;
r(x)p(x) + s(x)q(x) = 0.
Proof of the Claim. Suppose first that p(x) and q(x) have a common root in
q(x) p(x)
F, say α. Then we set r(x) := x−α and s(x) := − x−α , and we observe that
deg r(x) = deg q(x) − 1 = n − 1, deg s(x) = deg p(x) − 1 = m − 1, and
q(x)p(x) p(x)q(x)
r(x)p(x) + s(x)q(x) = x−α − x−α = 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 500
p(x) either fails to be a root of s(x), or is a root of s(x) but has smaller multiplicity
in s(x) than in p(x). This root of p(x) must therefore be a root of q(x).27 ♦
In view of the P Claim,i it now suffices to determine if there exist non-zero poly-
nomials r(x) = n−1
Pm−1 i
i=0 ic x and s(x) = i=0 di x such that r(x)p(x) + s(x)q(x) = 0.
So, we need to determine if there exist c0 , . . . , cn−1 , d0 , . . . , dm−1 ∈ F such that at
least one of c0 , . . . , cn−1 is non-zero and at least one of d0 , . . . , dm−1 is non-zero, and
such that
n−1
X m
X m−1
X n
X
ci xi ai xi + di xi bi xi = 0.
i=0 i=0 i=0 i=0
| {z } | {z } | {z } | {z }
=r(x) =p(x) =s(x) =q(x)
But obviously, if c0 , . . . , cn−1 are all zero, then d0 , . . . , dm−1 are all zero, and vice
versa. So, we in fact need to determine if the above equality holds for some numbers
c0 , . . . , cn−1 , d0 , . . . , dm−1 ∈ F, at least one of which is non-zero. We now write
the polynomial on the left-hand-side in the standard form, and we set all the
coefficients that we obtain equal to zero.28 This yields a system of n + m linear
equations in the variables cn−1 , . . . , c0 , dm−1 , . . . , d0 (we treat am , . . . , a0 , bn , . . . , b0
as constants). In each equation, we arrange the variables cn−1 , . . . , c0 , dm−1 , . . . , d0
in this order from left to right. We arrange the equations for the coefficients in front
of xn+m−1 , . . . , x1 , x0 from top to bottom. We then rewrite this linear system as a
matrix-vector equation
T
A cn−1 . . . c0 dm−1 . . . d0 = 0,
P 29
and we observe that the coefficient matrix A satisfies AT = .
Q
27
We are using the fact that r(x)p(x) and s(x)q(x) have the same roots with the same corresponding
multiplicities.
28
We can do this since our polynomial is identically zero, i.e. it is zero as a polynomial. This
means precisely that all its coefficients are zero.
29
For example, if m = 3 and n = 5, so that
p(x) = a3 x3 + a2 x2 + a1 x + a0 ,
q(x) = b5 x5 + b4 x4 + b3 x3 + b2 x2 + b1 x + b0 ,
r(x) = c4 x4 + c3 x3 + c2 x2 + c1 x + c0 ,
s(t) = d2 x2 + d1 x + d0 ,
then our equation becomes
4
X 3
X 2
X 5
X
ci xi ai xi + d i xi bi xi = 0,
i=0 i=0 i=0 i=0
| {z } | {z } | {z } | {z }
=r(x) =p(x) =s(x) =q(x)
which yields the system of linear equations below (we consider the coefficients in front of
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 501
(∗)
⇐⇒ A is non-invertible
(∗) P
⇐⇒ AT = is non-invertible
Q
(∗)
P
⇐⇒ det = 0,
Q
where all three instances of (*) follow from the Invertible Matrix Theorem (version 3;
x7 , x6 , x5 , x4 , x3 , x2 , x1 , x0 from top to bottom, and we arrange the variables c4 , c3 , c2 , c1 , c0 , d2 , d1 , d0
from left to right).
c4 c3 c2 c1 c0 d2 d1 d0
x7 a3 c4 + b5 d 2 = 0
x6 a2 c4 + a3 c3 + b4 d 2 + b5 d 1 = 0
x5 a1 c4 + a2 c3 + a3 c2 + b3 d 2 + b4 d 1 + b5 d0 = 0
x4 a0 c4 + a1 c3 + a2 c2 + a3 c1 + b2 d 2 + b3 d 1 + b4 d0 = 0
x3 a0 c3 + a1 c2 + a2 c1 + a3 c0 + b1 d 2 + b2 d 1 + b3 d0 = 0
x2 a0 c2 + a1 c1 + a2 c0 + b0 d 2 + b1 d 1 + b2 d0 = 0
x1 a0 c1 + a1 c0 + b0 d 1 + b1 d0 = 0
x0 a0 c0 + b0 d0 = 0
This linear system, in turn, translates into the following matrix-vector equation:
a3 0 0 0 0 b5 0 0 c4
c3
a2 a3 0 0 0 b4 b5 0
a1 a2 a3 0 0 b3 b4 b5 c2
c1 = 0.
a0 a1 a2 a3 0 b2 b3 b4
0 a0 a1 a2 a3 b1 b2 b3 c0
0 0 a0 a1 a2 b0 b1 b2 d2
0 0 0 a0 a1 0 b0 b1 d1
0 0 0 0 a0 0 0 b0 d0
Note that the transpose of the coefficient matrix that we obtained is precisely the matrix
a3 a2 a1 a0 0 0 0 0
0 a3 a2 a1 a0 0 0 0
0 0 a3 a2 a1 a0 0 0
P 0 0 0 a3 a2 a1 a0 0
= 0
Q 0 0 0 a3 a2 a1 a0
b5 b4 b3 b2 b1 b0 0 0
0 b5 b4 b3 b2 b1 b0 0
0 0 b5 b4 b3 b2 b1 b0 8×8
Irena Penev
Linear Algebra 1 & 2
Chapter 7. Determinants 502
Example 7.11.2. Determine whether the polynomials p(x) = 5x3 − 2x2 + x − 4 and
q(x) = 7x2 − 6x − 1 have a common complex root.
Solution. In this case, it is easy to see that p(1) = 0 and q(1) = 0, and so 1 is a
common root of p(x) and q(x). However, let us use Theorem 7.11.1, in order to
illustrate how this theorem can be applied.
Using the notation of Theorem 7.11.1, we have that m = 3, n = 2, and the
matrices P and Q are given by
5 −2 1 −4 0
P = ;
0 5 −2 1 −4
7 −6 −1 0 0
Q= 0 7 −6 −1 0 .
0 0 7 −6 −1
We now have that
5 −2 1 −4 0
0 5 −2 1 −4
P
det = 7 −6 −1 0 0 = 0.
Q
0 7 −6 −1 0
0 0 7 −6 −1
Theorem 7.11.1 now guarantees that p(x) and q(x) have a common complex root.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 503
Chapter 8
Remark: In our study of eigenvalues and eigenvectors, we will often make reference to
“algebraically closed fields.” Algebraically closed fields were covered in subsection 2.4.5,
which the reader may wish to review before reading the present chapter. In a nutshell,
a field F is algebraically closed if every non-constant polynomial with coefficients in
F has a root in F. It can be shown that if F is an algebraically closed field, then any
non-constant polynomial with coefficients in F can be factored into linear terms. Of
all the fields that we have seen in these lecture notes, only C is algebraically closed.
(Other algebraically closed fields exist, but they are not discussed in these lecture
notes.) Fields Q, R, and Zp (where p is a prime number) are not algebraically closed.
f (v) = λv.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 504
f (v) v
x1
f (e2) = e2
f (e1) = −e1 e1 x1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 505
x2
f (v)
90◦ v
x1
for all x1 , x2 ∈ C. (This is the same formula as the one from Example 8.1.2, except
that we are now working over C, rather than over R.) Then
i
v1 := is an eigenvector of f associated with the eigenvalue λ1 := i, since
1
−1 i
f (v1 ) = = i = λ1 v1 ;
i 1
−i
v2 := is an eigenvector of f associated with the eigenvalue λ2 := −i,
1
since
−1 −i
f (v2 ) = = (−i) = λ2 v2 .
−i 1
Remark: It may be somewhat surprising that the linear function f from Exam-
ple 8.1.2 has no eigenvectors and no eigenvalues, whereas the one from Example 8.1.3
has them. As we shall see once we learn how to actually compute eigenvalues and
eigenvectors (this will involve finding roots of polynomials), the essential difference
is that C is an algebraically closed field, whereas R is not.
Eλ (f ) := {v ∈ V | f (v) = λv}.
(∗)
Note that 0 ∈ Eλ (f ), since f (0) = 0 = λ0, where (*) follows from Proposition 4.1.6
(since f is linear). The set Eλ (f ) can be defined for any scalar λ, but it is only
interesting in the case when λ is an eigenvalue of V , in which case Eλ (f ) is called
the eigenspace of f associated with the eigenvalue λ. Note that, for an eigenvalue
λ of f , the elements of the eigenspace Eλ (f ) are precisely the zero vector and the
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 506
(b) for all distinct scalars λ1 , λ2 ∈ F, we have that Eλ1 (f ) ∩ Eλ2 (f ) = {0}.
= λ(v1 + v2 ),
= α(λv) because v ∈ Eλ (f )
= λ(αv),
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 507
(b) Fix distinct scalars λ1 , λ2 ∈ F. By (a), Eλ1 (f ) and Eλ2 (f ) are both subspaces
of V , and consequently, 0 ∈ Eλ1 (f ) ∩ Eλ2 (f ). Now, fix any v ∈ Eλ1 (f ) ∩ Eλ2 (f ).
Since v ∈ Eλ1 (f ), we have that f (v) = λ1 v, and since v ∈ Eλ2 (f ), we have that
f (v) = λ2 v. So, λ1 v = λ2 v, and consequently, (λ1 − λ2 )v = 0. Since λ1 − λ2 ̸= 0
(because λ1 ̸= λ2 ), Proposition 3.1.3(c) guarantees that v = 0. This proves that
Eλ1 (f ) ∩ Eλ2 (f ) = {0}.
Av = λv.
Eigenspaces. For a square matrix A ∈ Fn×n (where F is some field), and for a
scalar λ ∈ F, we define
Eλ (A) := {v ∈ Fn | Av = λv}.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 508
Proposition 8.1.6. Let F be a field, and let A ∈ Fn×n be a square matrix. Then all
the following hold:
(a) for all scalars λ ∈ F, Eλ (A) is a subspace of Fn , and this subspace is non-trivial
(i.e. contains at least one non-zero vector) if and only if λ is an eigenvalue of A;
(b) for all distinct scalars λ1 , λ2 ∈ F, we have that Eλ1 (A) ∩ Eλ2 (A) = {0}.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 509
n o
(2) v B
| v ∈ E λ (f ) ⊆ E λ B f B
.
T
We first prove (1). Fix any vecor x = x1 . . . xn in Eλ B f B . Set
v := x1 b1 + · · · + xn bn , so that v B = x. We must show that v ∈ Eλ (f ). We
compute:
(∗) (∗∗)
f (v) B = B f B v B = λ v B = λv B ,
| {z } | {z }
=x =x
where (*) follows from the fact that x ∈ Eλ B f B , and (**) follows from the
linearity of · B . Since · B is an isomorphism (and in particular, one-to-one),
we see that f (v) = λv. By definition, this means that v ∈ Eλ (f ). This proves (1).
Let us now prove (2). Fix any v ∈ Eλ (f ). Then
B
f B v B = f (v) B
= λv B
because v ∈ Eλ (f )
= λ v B because · B is linear,
and it follows that v B ∈ Eλ B f B . This proves (2).
We have now proven both (1) and (2), and it follows that
n o
Eλ B f B = v B | v ∈ Eλ (f ) .
Thus, Eλ B f B is the image of Eλ (f ) under the isomorphism · B : V → Fn .
Remark: In view of Propositions 8.1.5 and 8.1.7, we see that the study of eigenvalues
and eigenvectors of linear functions from a non-trivial, finite-dimensional vector space
to itself is essentially equivalent to the study of eigenvalues and eigenvectors of square
matrices. The computational tools that we develop for finding eigenvectors and
eigenvalues will primarily be for square matrices. On the other hand, some of the
theoretical results that we prove will be for linear functions instead, and we will
obtain corresponding results for matrices as more or less immediate corollaries.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 510
So, the roots of the characteristic polynomial of A are precisely the solutions of the
characteristic equation of A.
λ − 1 2 −3
pA (λ) = det(λI3 − A) = 1 λ −2 = λ3 + 2λ2 − 9λ − 3.
−2 1 λ + 3
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 511
(1) λ0 is an eigenvalue of A;
v ∈ Fn | Av = λ0 v
Eλ0 (A) =
v ∈ Fn | Av = λ0 In v
=
v ∈ Fn | (λ0 In − A)v = 0
=
= Nul λ0 In − A .
It remains to show that (1), (2), and (3) are equivalent. The fact that (2) and (3)
are equivalent follows immediately from the appropriate definitions. It remains to
prove that (1) and (3) are equivalent. For this, we have the following sequence of
equivalent statements:
λ0 is an eigenvalue of A (∗)
| {z } ⇐⇒ Eλ0 (A) ̸= {0}
(1)
(∗∗)
⇐⇒ Nul λ0 In − A ̸= {0}
Theorem 8.2.3. Let F be a field, and let A ∈ Fn×n . Then the geometric multiplicity
of any eigenvalue of A is no greater than the algebraic multiplicity of that eigenvalue.
We postpone the proof of Theorem 8.2.3 to the very end of this section (see
subsection 8.2.8); no result of the present section relies on this theorem.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 513
The spectral radius. For a matrix A ∈ Cn×n , the spectral radius of A, denoted
by ρ(A), is the maximum absolute value of any eigenvalue of A. For example, if
the spectrum of a matrix A ∈ C5×5 is {1, 1 + i, 1 + i, 1 − i, 1 −√ i}, then the spectral
radius of A is ρ(A) = max{|1|, |1 + i|, |1 + i|, |1 − i|, |1 − i|} = 2.7
In view of Theorems 0.3.6 and 8.2.2, we can visualize the complex eigenvalues
of an n × n matrix A with real entries (however, we consider A to be a matrix in
the vector space Cn×n , so that it can have complex eigenvalues). Its characteristic
polynomial pA (λ) is of degree n and has real coefficients. By Theorem 0.3.6, the roots
of this polynomial come in conjugate pairs,8 and moreover, by Theorem 8.2.2, those
roots are precisely the eigenvalues of A. The eigenvalues all lie in the complex plane,
in the disk centered at the origin and with radius ρ(A), and they are symmetric
about the real axis. Visually, the eigenvalues λ1 , λ2 , λ3 , λ4 , λ5 of a matrix A ∈ C5×5
with real entries might appear as in the picture below (the conjugate pairs are color
coded for emphasis).
Im
λ1
ρ
λ3
λ5 Re
λ4
λ2
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 514
(c) For each eigenvalue λ of A, compute a basis of the eigenspace Eλ (A) and specify
the geometric multiplicity of the eigenvalue λ.
pA (λ) = det(λI3 − A)
λ−4 0 2
= −2 λ − 5 −4
0 0 λ−5
(∗)
= (λ − 4)(λ − 5)2
where the easiest way to obtain (*) is via Laplace expansion along the second column.
Remark: We did not really need to expand in the last line. We only really care
about the roots of the characteristic polynomial, and it is more convenient to have a
form that is already factored. So, pA (λ) = (λ − 4)(λ − 5)2 is a “better” answer than
pA (λ) = λ3 − 14λ2 + 65λ − 100, although they are both correct.
(b) From part (a), we see that A has two eigenvalues, namely, the eigenvalue
λ1 = 4 (with algebraic multiplicity 1), and the eigenvalue λ2 = 5 (with algebraic
multiplicity 2). So, the spectrum of A is {4, 5, 5}.
(c) For each i ∈ {1, 2}, we have that
Eλi (A) = Nul λi I3 − A ,
(λi I3 − A)x = 0.
and that
1
1 2 0
RREF(λ1 I3 − A) = 0 0 1 .
0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 515
0
that the eigenvalue λ1 = 4 has geometric multiplicity 1.
For λ2 = 5, we have that
λ2 − 4 0 2 1 0 2
λ2 I3 − A = −2 λ2 − 5 −4 = −2 0 −4 ,
0 0 λ2 − 5 0 0 0
and that
1 0 2
RREF(λ2 I3 − A) = 0 0 0 .
0 0 0
Consequently, the general solution of the equation (λ2 I3 − A)x = 0 is
−2t 0 −2
x = s = s 1 + t 0 , with s, t ∈ C.
t 0 1
n0 −2 o
So, 1 , 0 is a basis of the eigenspace Eλ2 (A) = Nul A − λ2 In , and
0 1
we see that the eigenvalue λ2 = 5 has geometric multiplicity 2.
(Note that B is the standard matrix of counterclockwise rotation by 45◦ about the
origin in R2 .)
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 516
(b) Compute all the (real) eigenvalues of B and their algebraic multiplicities.
(c) For each eigenvalue λ of B, compute a basis of the eigenspace Eλ (B) and specify
the geometric multiplicity of the eigenvalue λ.
pB (λ) = det(λI2 − B)
λ − √12 √1
2
=
− √12 λ − √12
= (λ − √1 )(λ − √1 ) − √1 (− √1 )
2 2 2 2
√
= λ2 − 2λ + 1.
(b,c) We need to find any real roots that the polynomial pB (λ) may have, i.e.
any real solutions that the quadratic equation
√
λ2 − 2λ + 1 = 0
√
may have. The discriminant of this quadratic equation is (− 2)2 − 4 · 1 · 1 = −2 < 0,
and it follows that the equation has no real solutions. Therefore, B has no real
eigenvalues, and it follows that the spectrum of B is empty.
Remark: This is the same as the matrix B from Example 8.2.5, but this
time, we consider the matrix to be in C2×2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 517
λ − √12 √1
2
=
− √12 λ − √12
= (λ − √1 )(λ − √1 ) − √1 (− √1 )
2 2 2 2
√
= λ2 − 2λ + 1.
(b) We need to find the (complex) roots of the characteristic polynomial pC (λ),
together with their algebraic multiplicities. The quadratic equation
√
λ2 − 2λ + 1 = 0
| {z }
=pC (λ)
has solutions
√ √ √ √ √
−(− 2)± (− 2)2 −4·1·1 2± −2 1±i
λ1,2 = 2·1 = 2 = √ ,
2
that is,
1+i 1−i
λ1 = √
2
and λ2 = √ .
2
Complex numbers λ1 and λ2 are the eigenvalues of the matrix C, and they each
have algebraic
n multiplicity
o 1, since pC (λ) = (λ − λ1 )(λ − λ2 ). The spectrum of C is
1+i 1−i
{λ1 , λ2 } = √2 , √2 .
(c) For each i ∈ {1, 2}, the eigenspace Eλi (C) is precisely the set of solutions of
the characteristic equation
(λi I2 − C)x = 0.
1+i
For λ1 = √ ,
2
we have that
" # " #
λ1 − √12 √1
2
√i
2
√1
2
λ1 I2 − C = = ,
− √12 λ1 − √1
2
− √12 √i
2
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 518
and that
1 −i
RREF(λ1 I2 − C) = .
0 0
Consequently, the general solution of the equation (λ1 I2 − C)x = 0 is
it i
x = = t , with t ∈ C.
t 1
n i o
So, is a basis of the eigenspace Eλ1 (C) = Nul λ1 I2 − C , and we see that
1
the eigenvalue λ1 = 1+i
√ has geometric multiplicity 1.
2
1−i
For λ2 = √ ,
2
we have that
" # " #
λ2 − √12 √1
2
− √i2 √1
2
λ 2 I2 − C = = ,
− √12 λ2 − √1
2
− √12 − √i2
and that
1 i
RREF(λ2 I2 − C) = .
0 0
Consequently, the general solution of the equation (λ2 I2 − C)x = 0 is
−it −i
x = = t , with t ∈ C.
t 1
n −i o
So, is a basis of the eigenspace Eλ2 (C) = Nul λ2 I2 − C , and we see that
1
the eigenvalue λ2 = 1−i
√ has geometric multiplicity 1.
2
the eigenvalues of A are precisely the entries of A on its main diagonal, and more-
over, the algebraic multiplicity of each eigenvalue is precisely the number of times
that it appears on the main diagonal of A.10 Consequently, the spectrum of A is
10
However, the geometric multiplicity may possibly be smaller, as Example 8.2.8 shows. We note,
however, that the geometric multiplicity will never be larger than this, as per Theorem 8.2.3 (which
we have not proven yet).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 519
{a1,1 , a2,2 , . . . , an,n }, i.e. the multiset formed precisely by the main diagonal entries
of A, with each number appearing in the spectrum of A the same number of times as
on the main diagonal of A.
Proof. Since A is triangular, so is the matrix λIn − A; so, the determinant of λIn − A
can be computed simply by multiplying its entries on the main diagonal. It follows
that the characteristic polynomial of A is
(b) Compute all the eigenvalues of A and their algebraic multiplicities, and compute
the spectrum of A.
(c) For each eigenvalue λ of A, compute a basis of the eigenspace Eλ (A) and specify
the geometric multiplicity of the eigenvalue λ.
Solution. (a) The matrix A is upper triangular, and so its characteristic polynomial
is
λ − 1 −2 0 0 0
0 λ−2 0 0 0
pA (λ) = det λI5 − A = 0 0 λ − 1 −1 −3
0 0 0 λ − 3 −3
0 0 0 0 λ−3
(b) We see from part (a) that A has three eigenvalues, namely, λ1 = 1 (with
algebraic multiplicity 2), λ2 = 2 (with algebraic multiplicity 1), and λ = 3 (with
algebraic multiplicity 2).11 So, the spectrum of A is {1, 1, 2, 3, 3}.
11
We could also have obtained the same answer by noticing that A is triangular, and that 1
appears twice on the main diagonal of A, 2 appears once, and 3 appears twice.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 520
(c) For each i ∈ {1, 2, 3}, the eigenspace Eλi (A) is precisely the set of solutions
of the characteristic equation
(λi I5 − A)x = 0.
and that
0 1 0 0 0
0 0 0 1 0
RREF(λ1 I5 − A) =
0 0 0 0 1 .
0 0 0 0 0
0 0 0 0 0
Consequently, the general solution of the equation (λ1 I5 − A)x = 0 is
s 1 0
0 0 0
x = t = s 0 + t 1 ,
with s, t ∈ C.
0 0 0
0 0 0
So,
1 0
n
0
0 o
0 ,
1
0 0
0 0
is a basis of the eigenspace Eλ1 (A) = Nul λ1 I5 − A , and we see that the eigenvalue
λ1 = 1 has geometric multiplicity 2.
For λ2 = 2, we have that
1 −2 0 0 0
0 0 0 0 0
λ 2 I5 − A =
0 0 1 −1 −3 ,
0 0 0 −1 −3
0 0 0 0 −1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 521
and that
1 −2 0 0 0
0 0 1 0 0
RREF(λ2 I5 − A) =
0 0 0 1 0 .
0 0 0 0 1
0 0 0 0 0
Consequently, the general solution of the equation (λ2 I5 − A)x = 0 is
2t 2
t 1
x = 0 = t 0 ,
with t ∈ C.
0 0
0 0
So,
2
n
1 o
0
0
0
is a basis of the eigenspace Eλ2 (A) = Nul λ2 I5 − A , and we see that the eigenvalue
λ2 = 2 has geometric multiplicity 1.
For λ3 = 3, we have that
2 −2 0 0 0
0 1 0 0 0
λ 3 I5 − A =
0 0 2 −1 −3 ,
0 0 0 0 −3
0 0 0 0 0
and that
1 0 0 0 0
0 1 0 0 0
1 − 12 0
RREF(λ3 I5 − A) =
0 0
0 0 0 0 1
0 0 0 0 0
Consequently, the general solution of the equation (λ3 I5 − A)x = 0 is
0 0 0
0 0 0
t
= t 1 = t 1 ,
x = 2 2 2 with t ∈ C.
t 1 2
0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 522
So,
0
n
0 o
1
2
0
is a basis of the eigenspace Eλ3 (A), and we see that the eigenvalue λ3 = 3 has
geometric multiplicity 1.
Theorem 8.2.9. Let F be a field, and let A, B ∈ Fn×n be similar matrices. Then
A and B have the same characteristic polynomial, as well as the same eigenvalues,
with the same corresponding algebraic multiplicities, and the same corresponding
geometric multiplicities. Moreover, A and B have the same spectrum.
Warning: Similar matrices A and B need not have the same eigenspaces, that is,
for an eigenvalue λ of A and B:
Eλ (A) Z
= Eλ (B)
Proof. Let us first show that A and B have the same eigenvalues with the same
corresponding geometric multiplicities. Since A and B are similar, Theorem 4.5.19
guarantees that there
exists a linear
function
f : Fn → Fn and bases A and B of Fn
such that A = A f A and B = B f B . But then by Proposition 8.1.7, the linear
function f and the matrix A = A f A have exactly the same eigenvalues, with
exactly the same corresponding
geometric multiplicities, and the same holds for f
and the matrix B = B f B . So, A and B have exactly the same eigenvalues with
exactly the same corresponding geometric multiplicities.
It now remains to show that A and B have the same characteristic polynomial,
since this will (by definition) imply that A and B have the same spectrum, and in
particular, that the eigenvalues of A and B have the same corresponding algebraic
multiplicities. Since A and B are similar, we know that there exists an invertible
matrix P ∈ Fn×n such that B = P −1 AP . We now compute:
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 523
pB (λ) = det λIn − B
det λIn − P −1 AP
=
1
= det(P ) det λIn − A det(P ) by Corollary 7.5.3
= det λIn − A
= pA (λ).
Remark: The converse of Theorem 8.2.9 is false: two matrices in Fn×n (where F is
a field) that have the same characteristic polynomial, as well as the same eigenvalues,
with the same corresponding algebraic multiplicities, and the same corresponding
geometric multiplicities, need not be similar. We will see examples of this when we
study the “Jordan normal form” (see section 8.6).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 524
Proof. By definition, we have that pA (λ) = det(λIn − A). On the other hand,
since {λ1 , . . . , λn } is the spectrum of A (and A is an n × n matrix), we see that
pA (λ) = (λ − λ1 ) . . . (λ − λn ).
(a) By setting λ = 0, we obtain
pA (0) = (0 − λ1 ) . . . (0 − λn ) = (−1)n λ1 . . . λn .
where (*) follows from Proposition 7.2.3. It now follows that (−1)n λ1 . . . λn =
(−1)n det(A), and consequently, det(A) = λ1 . . . λn .
(b) We will compute the coefficient in front of λn−1 in the characteristic polynomial
pA (λ) in two ways.
First, since pA (λ) = (λ − λ1 ) . . . (λ − λn ), it is clear that the coefficient in front
of λn−1 is −λ1 − · · · − λn .
On the other hand, we have that
λ − a1,1 −a1,2 . . . −a1,n
−a2,1 λ − a2,2 . . . −a2,n
pA (λ) = det(λIn − A) = .. .. .. .. .
. . . .
−an,1 −an,2 . . . λ − an,n
We now use the definition of the determinant: the only permutation σ ∈ Sn that pro-
duces a polynomial with λn−1 appearing
with it (with
a possibly non-zero coefficient)
1 2 . . . n 12
is the identity permutation σ = , and clearly, this permutation
1 2 ... n
is even, i.e. has sign 1. So, the coefficient in front of λn−1 in pA (λ) is equal to the
coefficient of λn−1 in the product (λ − a1,1 )(λ − a2,2 ) . . . (λ − an,n ), and this coefficient
is precisely −a1,1 − a2,2 − · · · − an,n = −trace(A).
We have now computed the coefficient in front of λn−1 in the polynomial pA (λ) in
two ways: we got −λ1 − · · · − λn the first time, and we got −trace(A) the second time.
So, −λ1 − · · · − λn = −trace(A), and it follows that trace(A) = λ1 + · · · + λn .
12
Note that the identity permutation encodes the selection of the entire main diagonal.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 525
⇐⇒ det(−A) = 0
⇐⇒ det(A) = 0
(b) AT is invertible;
(c) RREF(A) = In ;
(e) rank(A) = n;
(f ) rank(AT ) = n;
(h) the homogeneous matrix-vector equation Ax = 0 has only the trivial solution (i.e.
the solution x = 0);
(i) there exists some vector b ∈ Fn such that the matrix-vector equation Ax = b
has a unique solution;
(j) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has a unique solution;
13
Since f is a matrix transformation, Proposition 1.10.4 guarantees that f is linear. Moreover, A
is the standard matrix of f .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 526
(k) for all vectors b ∈ Fn , the matrix-vector equation Ax = b has at most one
solution;
(m) f is one-to-one;
(n) f is onto;
(o) f is an isomorphism;
(p) there exists a matrix B ∈ Fn×n such that BA = In (i.e. A has a left inverse);
(q) there exists a matrix C ∈ Fn×n such that AC = In (i.e. A has a right inverse);
(y) det(A) ̸= 0;
Proof. Items (a)-(y) are the same as those from the Invertible Matrix Theorem
(version 3) from subsection 7.4.1. The equivalence of (a) and (z) follows from
Proposition 8.2.11.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 527
where B is any basis of V . As we explained in section 7.5, the reason that det(f )
is well defined is because, by Theorem 4.5.19, all matrices of the form B f B are
similar, and therefore (by Corollary 7.5.4) have the same determinant.
We can similarly define the characteristic polynomial of linear functions, as long
as their domain and codomain are one and the same non-trivial, finite-dimensional
vector space. So, let us once again suppose that V is a non-trivial, finite-dimensional
vector space over a field F. As usual, IdV is the identity function on V , i.e. it is
the function IdV : V → V given by IdV (v) = v for all v ∈ V . The characteristic
polynomial of a linear function f : V → V is defined to be the polynomial
pf (λ) := det λIdV − f = det B λIdV − f B ,
where B is any basis of V . As per our discussion above, the polynomial pf (λ) depends
only on f , and not on the particular choice of the basis B. The characteristic equation
of f is the equation
det λIdV − f = 0.
So, the roots of the characteristic polynomial of f are precisely the solutions of the
characteristic equation of f .
By Theorem 8.2.9, similar matrices have the same characteristic polynomial. In
view of the characterization of similar matrices given by Theorem 4.5.19, it should
not be surprising that the characteristic polynomial of a linear function is exactly
the same as the characteristic polynomial of its matrices (as long as we use the
same basis for the domain and codomain). More precisely, we have the following
proposition.
We now compute:
pf (λ) = det λIdV − f by definition
= det B λIdV − f B by definition
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 528
= det λ B IdV B − B f B by Theorem 4.5.3
= det λIn − B
= pB (λ) by definition.
(1) λ0 is an eigenvalue of f ;
It remains to show that (1), (2), and (3) are equivalent. The fact that (2)
and (3) are equivalent follows immediately from the definition of the characteristic
polynomial and the characteristic equation of f . It remains to show that
(1) and (2)
are equivalent. For this, we fix any basis B of V , and set B := B f B . We then
have the following sequence of equivalent statements:
(∗)
λ0 is an eigenvalue of f ⇐⇒ λ0 is an eigenvalue of B
| {z }
(1)
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 529
(∗∗)
⇐⇒ λ0 is a root of pB (λ)
(∗∗∗)
⇐⇒ λ0 is a root of pf (λ),
| {z }
(2)
where (*) follows from Proposition 8.1.7, (**) follows from Theorem 8.2.2, and (***)
follows from the fact that pf (λ) = pB (λ) (by Proposition 8.2.12).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 530
for all a0 , a1 , a2 ∈ R. Prove that f is linear, and compute its characteristic polynomial
and spectrum. Identify the eigenvalues of f , and for each eigenvalue λ of f , determine
its geometric and algebraic multiplicity, and compute a basis of the eigenspace Eλ (f ).
= f (a2 + b2 )x2 + (a1 + b1 )x + (a0 + b0 )
2. Fix a polynomial p(x) ∈ P2R and a scalar α ∈ R. Since p(x) ∈ P2R , there exist
some a0 , a1 , a2 ∈ R such that p(x) = a2 x2 + a1 x + a0 . We now compute:
f αp(x) = f α(a2 x2 + a1 x + a0 )
= f (αa2 )x2 + (αa1 )x + (αa0 )
= αf p(x) .
(∗)
f (x2 )
= f (1) A
f (x) A A
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 531
x2 + 1 x2 + 1
= A
−x A A
1 0 1
= 0 −1 0 ,
1 0 1
where (*) follows from Theorem 4.5.1. We can now compute the characteristic
polynomial of f , as follows:
(∗)
pf (λ) = fA (λ) = det λI3 − A)
λ−1 0 −1
= 0 λ+1 0
−1 0 λ−1
(∗∗) λ − 1 −1
= (λ + 1)
−1 λ − 1
(λ + 1) (λ − 1)2 − 1
=
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 532
By
Proposition 8.1.7, Eλ1 (A) is simply the image of Eλ1 (f ) under the isomorphism
· A . So, by Theorem 4.4.4(c), {x2 − 1} is a basis of Eλ1 (f ). In particular, the
So, {x2 + 1} is basis of Eλ2 (f ). (The argument is analogous to the one we gave for
λ1 .) In particular, the geometric multiplicity of λ2 = 2 as an eigenvalue of f is 1.
Finally, we deal with the eigenvalue λ3 = −1. We compute:
−2 0 −1 1 0 0
RREF λ3 I3 − A = RREF 0 0 0 = 0 0 1 .
−1 0 −2 0 0 0
n 0 o
Therefore, 1 is a basis of Eλ3 (A) = Nul λ3 I3 − A . Note that
0
0
1 = x A.
0
So, {x} is basis of Eλ3 (f ). (The argument is analogous to the one we gave for λ1 .)
In particular, the geometric multiplicity of λ3 = −1 as an eigenvalue of f is 1.
We now summarize our results as follows.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 533
Optional: Since it is easy to miscompute, it is not a bad idea to check that each
vector in a basis of an eigenspace of f associated with λi (for i ∈ {1, 2, 3}) really is
an eigenvector of f associated with λi . For this, we compute:
14
Obviously, b1 , . . . , bk are all eigenvectors of f associated with the eigenvalue λ0 , and they form
a linearly independent set of vectors in Fn .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 534
B := B
f B
(∗)
= f (b1 ) B
... f (bk ) B
f (bk+1 ) B
... f (bn ) B
(∗∗)
= λ 0 b1 B
... λ 0 bk B
f (bk+1 ) B
... f (bn ) B
λ0 en1 . . . λ0 enk
= f (bk+1 ) B
... f (bn ) B
λ 0 Ik
= f (bk+1 ) B
... f (bn ) B
,
O(n−k)×k
where (*) follows from Theorem 4.5.1, and (**) follows from the fact that b1 , . . . , bk ∈
Eλ0 (f ).
If k = n, then we have that B = λ0 In , and so by Proposition 8.2.7, pB (λ) =
(λ − λ0 )n , and in particular, (λ − λ0 )k | pB (λ).
From now on, we may assume that k < n. We then have that
(λ − λ0 )Ik
pB (λ) = det λIn − B = C ,
O(n−k)×k
where
C = λek+1 − f (bk+1 ) B
. . . λen − f (bn ) B (n−k)×n
.
λ − λ0 0 ... 0 ∗ ∗ ... ∗
0 λ − λ0 ... 0 ∗ ∗ ... ∗
.. .. .. .. .. .. . . ..
. . . . . . . .
0 0 . . . λ − λ0 ∗ ∗ ... ∗
pB (λ) = ,
0 0 ... 0 ∗ ∗ ... ∗
0 0 ... 0 ∗ ∗ ... ∗
.. .. .. .. .. .. . . ..
. . . . . . . .
0 0 ... 0 ∗ ∗ ... ∗
where the red submatrix in the upper-left corner (to the left of the vertical dotted
line, and above the horizontal dotted line) is of size k × k. By iteratively performing
Laplace expansion along the first column, we see that pB (λ) has a factor (λ − λ0 )k .
This completes the argument.
We are now ready to prove Theorem 8.2.3, restated below for the reader’s
convenience.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 535
Theorem 8.2.3. Let F be a field, and let A ∈ Fn×n . Then the geometric multiplicity
of any eigenvalue of A is no greater than the algebraic multiplicity of that eigenvalue.
λ − 1 −2
pA (λ) = det(λI2 − A) = = λ2 − 5λ − 2,
−3 λ − 4
We note that the proof of the Cayley-Hamilton theorem relies on the adjugate
matrix (see section 7.8) and on Theorem 7.8.2. Let us now state and prove the
Cayley-Hamilton theorem.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 536
Now, note that each cofactor of the matrix λIn − A is a polynomial (in variable λ) of
degree at most λn−1 . Since the entries of adj(λIn − A) are precisely the cofactors of
λIn − A, it follows that each entry of adj(λIn − A) is a polynomial (in the variable λ)
of degree at most n − 1. So, the matrix adj(λIn − A) can be expressed in the form
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 537
We now multiply the first (top) equation by An on the left, the second equation by
An−1 on the left, the third equation by An−2 on the left, and so on. (The (n + 1)-th
equation, i.e. the bottom one, gets multiplied by A0 = In on the left, i.e. it remains
unchanged). This yields the following.
An Bn−1 = An
An−1 B n
n−2 − A Bn−1 = an−1 A
n−1
We now add up the equations that we obtained. On the left-hand-side, the sum is
obviously On×n . So, the right-hand-side must also sum up to On×n , i.e.
Corollary 8.3.1. Let F be a field. For all matrices A ∈ Fn×n , both the following
hold:
Proof. Fix a matrix A ∈ Fn×n , and consider its characteristic polynomial pA (λ) =
λn + an−1 λn−1 + an−2 λn−2 + · · · + a1 λ + a0 .
(a) By the Cayley-Hamilton theorem, we have that
Consequently,
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 538
We multiply both sides of the equation by A−1 on the right, and we obtain
and consequently,
Proof. We will prove inductively that for all i ∈ {0, . . . , k}, the set {v1 , . . . , vi } is
linearly independent. For i = 0, we have that {v1 , . . . , vi } = ∅, which is obviously
a linearly independent set. Now, fix an index i ∈ {0, . . . , k − 1}, and assume
inductively that the set {v1 , . . . , vi } is linearly independent. We must show that
{v1 , . . . , vi , vi+1 } is linearly independent. Fix scalars α1 , . . . , αi , αi+1 ∈ F such that
α1 v1 + · · · + αi vi + αi+1 vi+1 = 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 539
(∗)
= α1 f (v1 ) + · · · + αi f (vi ) + αi+1 f (vi+1 )
(∗∗)
= α1 λ1 v1 + · · · + αi λi vi + αi+1 λi+1 vi+1 ,
where (*) follows from the linearity of f (and more precisely, from Proposition 4.1.5),
and (**) follows from the fact that v1 , . . . , vi , vi+1 are eigenvectors of f associated
with eigenvalues λ1 , . . . , λi , λi+1 , respectively. Combining this with (1), we obtain
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 540
Proof. Fix scalars α1,1 , . . . , α1,t1 , α2,1 , . . . , α2,t2 , . . . , αk,1 , . . . , αk,tk ∈ F such that
k
P
αi,1 vi,1 + · · · + αi,ti vi,ti = 0.
i=1
Now, for each i ∈ {1, . . . , k}, set vi := αi,1 vi,1 + · · · + αi,ti vi,ti , that is
So,
v1 + v2 + · · · + vk = 0.
Now, note that for each i ∈ {1, . . . , k}, the vector vi is a linear combination of
vectors in Eλi (f );17 since (by Proposition 8.1.4) Eλi (f ) is a subsapce of V and is
therefore closed under linear combinations, it follows that vi ∈ Eλi (f ). Consequently,
for each i ∈ {1, . . . , k}, vi is either 0 or an eigenvector of f associated with the
eigenvalue λi . We claim that v1 = v2 = · · · = vk = 0. Suppose otherwise. After
possibly permuting the order of the λi ’s and the corresponding vi ’s, we may assume
that there exists some ℓ ∈ {1, . . . , k} such that v1 , . . . , vℓ are all non-zero (and are
consequently eigenvectors of f associated with λ1 , . . . , λℓ ), while vℓ+1 , . . . , vk are all
zero. So,
v1 + · · · + vℓ = 0,
and it follows that {v1 , . . . , vℓ } is a linearly dependent set. But this contradicts
Proposition 8.4.1. We have now shown that v1 = · · · = vk = 0. So, for all indices
i ∈ {1, . . . , k}, we have that αi,1 vi,1 + · · · + αi,ti vi,ti = 0; since vectors vi,1 , . . . , vi,ti
are linearly independent, it follows that αi,1 = · · · = αi,ti = 0. Since this holds for
all indices i ∈ {1, . . . , k}, we deduce that the eigenvectors
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 541
(c) V has an eigenbasis associated with f if and only if the sum of geometric
multiplicities of the eigenvalues of f is n, and in this case, B is such an eigenbasis;
(d) V has an eigenbasis associated with f if and only if the sum of algebraic mul-
tiplicities of the eigenvalues of f is n, and the geometric multiplicity of each
eigenvalue is equal to its algebraic multiplicity; in this case, B is an eigenbasis
of V associated with the linear function f .
Proof. Part (a) follows immediately from Proposition 8.4.2. Part (b) follows from (a)
and from the fact that, by Theorem 3.2.17(a), any linearly independent set of vectors
in an n-dimensional vector space contains at most n vectors.
Let us prove (c). Suppose first that the sum of geometric multiplicities of the
eigenvalues of f is equal to n. Then B is a linearly independent set of size n in the
n-dimensional vector space V . So, by Corollary 3.2.20(a), B is a basis of V . Since all
vectors in B are eigenvectors of f , it follows that B is an eigenbasis of V associated
with f .
Suppose, conversely, that V has an eigenbasis C associated with f ; since dim(V ) =
n, we see that |C| = n. Since all vectors in C are eigenvecors of f , we see that they all
belong to Eλ1 (f ) ∪ · · · ∪ Eλk (f ). But since the basis C of V is, in particular, linearly
independent, we see that it cannot contain more than dim Eλi (f ) many vectors from
Eλi (f ) for any index i ∈ {1, . . . , k}.18 So, |C| ≤ dim Eλ1 (f ) + · · · + dim Eλk (f ) .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 542
Propositions 8.4.1 and 8.4.2 can easily be “translated” into the language of
matrices, as can Theorem 8.4.3. The case of Propositions 8.4.1 and 8.4.2 is left
as an easy exercise for the reader. In the case of Theorem 8.4.3, we obtain the
Theorem 8.4.5 (below).
Theorem 8.4.5. Let F be a field, and let A ∈ Fn×n . Let λ1 , . . . , λk be all the
(distinct) eigenvalues of A, and let B1 , . . . , Bk be bases of the associated eigenspaces
Eλ1 (A), . . . , Eλk (A), respectively. Set B := B1 ∪ · · · ∪ Bk . Then all the following hold:
(a) B is a linearly independent set of eigenvectors of A;
(b) dim Eλ1 (A) + · · · + dim Eλk (A) ≤ n, i.e. the sum of geometric multiplicities
of the eigenvalues of A is at most n;
(c) Fn has an eigenbasis associated with A if and only if the sum of geometric
multiplicities of the eigenvalues of A is n, and in this case, B is such an eigenbasis;
(d) Fn has an eigenbasis associated with A if and only if the sum of algebraic
multiplicities of the eigenvalues of A is n, and the geometric multiplicity of each
eigenvalue is equal to its algebraic multiplicity; in this case, B is an eigenbasis
of Fn associated with the matrix A.
Proof. Define fA : Fn → Fn by setting fA (v) = Av for all v ∈ Fn . Then fA is
linear (by Proposition 1.10.4), and moreover, A is the standard matrix of fA . The
result now follows immediately from Proposition 8.2.15 (applied to fA and A) and
Theorem 8.4.3 (applied to fA ).
19
Or alternatively: by Proposition 8.1.4.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 543
Corollary 8.4.6. Let F be a field, and let A ∈ Fn×n . If A has n distinct eigenvalues,
then Fn has an eigenbasis associated with A.
Proof. Define fA : Fn → Fn by setting fA (x) = Ax for all x ∈ Fn . Then fA is linear
(by Proposition 1.10.4), and A is the standard matrix of A. The result now follows
immediately from Proposition 8.1.5 and Corollary 8.4.4.
8.5 Diagonalization
8.5.1 Diagonal matrices and their powers
For a field F, a square matrix D ∈ Fn×n is diagonal if all its entries off the main
diagonal are zero (the entries on the main diagonal may or may not be zero). For
scalars λ1 , λ2 , . . . , λn ∈ F, D(λ1 , λ2 , . . . , λn ) is the n × n matrix with λ1 , λ2 , . . . , λn
on the main diagonal (appearing in that order) and 0’s everywhere else, i.e.
λ1 0 . . . 0
0 λ2 . . . 0
D(λ1 , λ2 , . . . , λn ) := .
. .. . . ..
. . . .
0 0 . . . λn
= λ1 e1 . . . λn en ,
where as usual, e1 , . . . , en are the standard basis vectors of Fn .
Note that diagonal matrices are, in particular, triangular. So, Propositions 7.3.1
and 8.2.7 apply. More precisely, for scalars λ1 , . . . , λn ∈ F (where F is a field), and
for the diagonal matrix D := D(λ1 , . . . , λn ), we have the following:
det(D) = λ1 . . . λn ;
pD (λ) = (λ − λ1 ) . . . (λ − λn ).
λ n xn
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 544
x1
. . . λn en ...
Dx = λ1 e1
xn
(∗)
= x1 (λ1 e1 ) + · · · + xn (λn en )
AD = A λ1 e1 . . . λn en
(∗)
= A(λ1 e1 ) . . . A(λn en )
= λ1 (Ae1 ) . . . λn (Aen )
(∗∗)
= λ1 a1 . . . λn an ,
where (*) follows from the definition of matrix multiplication, and (**) follows from
Proposition 1.4.5.
Proposition 8.5.2 (below) states that if the product of two diagonal matrices is
another diagonal matrix.
Proposition 8.5.2. Let F be a field, and let λ1 , . . . , λn , µ1 , . . . , µn ∈ F (n ≥ 1) be
arbitrary scalars. Then
Proof. We compute:
D(λ1 , . . . , λn ) D(µ1 , . . . , µn ) = λ1 e1 . . . λn en D(µ1 , . . . , µn )
(∗)
= µ1 (λ1 e1 ) . . . µn (λn en )
= (λ1 µ1 )e1 . . . (λn µn )en
= D(λ1 µ1 , . . . , λn µn ),
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 545
(b) D is invertible if and only if λ1 , . . . , λn are all non-zero, and in this case, we
have that Dm = D(λm m
1 , . . . , λn ) for all integers m.
Proof. Part (a) follows from Proposition 8.5.2 via an easy induction on m (the details
are left as an exercise).
We now prove (b). By Theorem 7.4.1, we know that D is invertible if and only if
det(D) ̸= 0. Since det(D) = λ1 . . . λn (because D is diagonal), we deduce that D is
invertible if and only if λ1 , . . . , λn are all non-zero.
Now assume that D is invertible, so that λ1 , . . . , λn are all non-zero and therefore
have multiplicative inverses. Then
(∗)
D(λ1 , . . . , λn ) D(λ−1 −1
1 , . . . , λn ) = D(λ1 λ−1 −1
1 , . . . , λ n λ n ) = In ,
| {z }
=D
where (*) follows from Proposition 8.5.2. Corollary 3.3.20 now guarantees that
D−1 = D(λ−1 −1
1 , . . . , λn ). To obtain (b), we simply apply (a) twice: first to the
diagonal matrix D = D(λ1 , . . . , λn ), and then to the diagonal matrix D−1 =
D(λ−1 −1 20
1 , . . . , λn ).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 546
= D(λ1 , . . . , λn ).
Conversely, suppose that the matrix B f B is diagonal, and let λ1 , . . . , λn be
the entries of this matrix on the main diagonal, so that
B
f B = D(λ1 , . . . , λn ) = λ1 e1 . . . λn en .
We will show that the basis vectors v1 , . . . , vn are eigenvectors of f with associated
eigenvalues λ1 , . . . , λn , respectively. Fix any index i ∈ {1, . . . , n}; we
must
show that
f (vi ) = λi vi . Since vi is the i-th basis vector of B, we have that vi B = ei . We
now compute:
f (vi ) B = B f B vi B
= λ1 e1 . . . λn en ei
(∗)
= λi ei
= λi vi B
(∗∗)
= λ i vi B
,
where
(*) follows from Proposition 1.4.5, and (**) follows from the linearity of
· B . Since · B is an isomorphism (and in particular, one-to-one), it follows that
f (vi ) = λi vi , which is what we needed to show.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 547
diagonal matrix are precisely those that can be defined starting from some basis, and
then scaling each of the basis elements. Indeed, suppose that B = {v1 , . . . , vn } is
some basis of V , and that λ1 , . . . , λn ∈ F are some scalars. By Theorem 4.3.2, there
exists a unique linear function f : V → V such that f (vi ) = λi vi (for the special
case of R2 , see the picture below). But then by Theorem 8.5.4, we have that
B
f B = D(λ1 , . . . , λn ).
λ1v1
f λ2v2
v1
v2
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 548
D = P −1 AP and A = P DP −1 ,
where D = D(λ1 , . . . , λn ) and P = p1 . . . pn .
Proof. Suppose first that Fn has an eigenbasis associated with A, and let P =
{p1 , . . . , pn } be such an eigenbasis. Let λ1 , . . . , λn be the eigenvalues of A associated
with the eigenvectors p1 , . . . , pn , so that Api = λi pi for all indices i ∈ {1, . . . , n}.
Further, set D := D(λ1 , . . . , λn ) and P := p1 . . . pn , as in the statement
of the theorem. Since the columns of P form a basis of Fn , the Invertible Matrix
Theorem (see subsection 8.2.6) guarantees that P is invertible. Now, it suffices to
show that P D = AP , since this will imply that D = P −1 AP and A = P DP −1
(because P is invertible). We compute:
PD = λ1 p1 . . . λn pn by Proposition 8.5.1(b)
because Api = λi pi
= Ap1 . . . Apn
for all i ∈ {1, . . . , n}
by the definition of
= A p1 . . . pn
| {z } matrix multiplication
=P
= AP.
21
Try it!
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 549
But this implies that for all i ∈ {1, . . . , n}, we have that Api = λi pi , and so pi
is an eigenvector of A associated with the eigenvalue λi .22 It now follows that
{p1 , . . . , pn } is an eigenbasis of Fn associated with the matrix A. This completes
the argument.
Corollary 8.5.7. Let F be a field, and let A ∈ Fn×n . If A has n distinct eigenvalues,
then A is diagonalizable.
Diagonalizing a matrix. Note that Theorems 8.4.5 and 8.5.6 together give us a
recipe for determining whether a matrix A ∈ Fn×n is diagonalizable, and if so, for
diagonalizing it (i.e. for finding a diagonal matrix D and an invertible matrix P ,
both in Fn×n , such that D = P −1 AP ). We proceed as follows.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 550
3. From now on, we assume that the sum of algebraic multiplicities of the eigen-
values of A, call them λ1 , . . . , λk , is n. We then compute a basis Bi for each
eigenspace Eλi (A), which allows us to compute the geometric multiplicities of
all the eigenvalues of A.
5. From now on, we assume that the geometric multiplicity of each eigenvalue of
A is equal to its algebraic multiplicity. Theorem 8.4.5 then guarantees that Fn
has an eigenbasis associated with A, and moreover, that B = B1 ∪ · · · ∪ Bk is
one such eigenbasis.
7. We form the matrix P whose columns are precisely the vectors in the eigenbasis
B. We form the diagonal matrix D, where on the main diagonal we place the
eigenvalues of A, taking care that, for each i ∈ {1, . . . , n}, the i-th entry on
the main diagonal of D is the eigenvalue associated with the i-th column of P
(which is, by construction, an eigenvector of A). Now D = P −1 AP .
Example 8.5.8. Consider the following matrix in C3×3 :
4 0 −2
A = 2 5 4 .
0 0 5
Determine whether A is diagonalizable, and if so, diagonalize it.
Solution. The matrix A is precisely the matrix from Example 8.2.4. In that example,
we determined that A has two eigenvalues, namely, λ1 = 4 (with algebraic multiplicity
1 and geometric multiplicity 1) and λ2 = 5 (with algebraic multiplicity 2 and geometric
multiplicity 2). Since the sum of algebraic multiplicities of the eigenvalues of A
is 3, and since the geometric multiplicity of each eigenvalue of A is equal to its
algebraic multiplicity, we see 3 × 3 matrix A is indeed diagonalizable. In
that the
n −1 o
Example 8.2.4, we saw that 2 is a basis of the eigespace Eλ1 (A), and that
0
23
By Theorem 8.2.3, the geometric multiplicity of an eigenvalue is either smaller than or equal to
the algebraic multiplicity of that eigenvalue.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 551
n 0 −2 o
1 , 0 is a basis of the eigenspace Eλ2 (A). So, we set
0 1
4 0 0 −1 0 −2
D := 0 5 0 and P := 2 1 0 ,
0 0 5 0 0 1
and we see that D = P −1 AP .
Example 8.5.9. Consider the following matrix in C5×5 :
1 2 0 0 0
0 2 0 0 0
A = 0 0 1 1 3 .
0 0 0 3 3
0 0 0 0 3
Determine whether A is diagonalizable, and if so, diagonalize it.
Solution. The matrix A is precisely the matrix from Example 8.2.8. In that example,
we determined that A has three eigenvalues, namely λ1 = 1 (with algebraic multi-
plicity 2 and geometric multiplicity 2), λ2 = 2 (with algebraic multiplicity 1 and
geometric multiplicity 1), and λ3 = 3 (with algebraic multiplicity 2 and geometric
multiplicity 1). Since the geometric multiplicity of the eigenvalue λ3 = 3 is strictly
smaller than the algebraic multiplicity, we see that A is not diagonalizable.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 552
We then compute
−1 0 −2
P −1 = 2 1 4 .
0 0 1
Then for all non-negative integers m, we have the following:
(∗)
Am = P Dm P −1
m
−1 0 −2 4 0 0 −1 0 −2
(∗∗)
= 2 1 0 0 5m 0 2 1 4
0 0 1 0 0 5m 0 0 1
| {z }| {z }| {z }
=P =Dm =P −1
4m 2 · 4m − 2 · 5m
0
(∗∗∗)
= −2 · 4m + 2 · 5m 5m −4m+1 + 4 · 5m
0 0 5m
4m 0 2(4m − 5m )
= 2(5m − 4m ) 5m 4(5m − 4m ) ,
0 0 5m
where (*) follows from Proposition 4.5.18, (**) follows from Proposition 8.5.3, and
(***) follows by simple matrix multiplication.
It remains to check whether our formula for Am also works for negative integers
m. If A is not invertible, then Am is not defined for negative integers m (and in
particular, the formula does not work for negative m). On the other hand, if A is
invertible, then Proposition 4.5.18 guarantees that our formula for Am does in fact
work for negative integers m. To see if A is invertible, we compute
(∗)
det(A) = det(D) = 4 · 5 · 5 = 100 ̸= 0
where (*) follows from Corollary 7.5.4, since matrices A and D are similar. Since
det(A) ̸= 0, Theorem 7.4.1 guarantees that A is invertible. So, our formula for Am
does in fact work for negative numbers m as well.
To summarize, we have shown that
4m 0 2(4m − 5m )
Am = 2(5m − 4m ) 5m 4(5m − 4m )
0 0 5m
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 553
Optional: Since it is easy to miscompute, it is not a bad idea to check that the
formula that we obtained is correct. We can do this by induction, as follows. For
m = 0, we have
40 0 2(40 − 50 )
2(50 − 40 ) 50 4(50 − 40 ) = I3 = A0 .
0 0 50
4m 0 2(4m − 5m )
Am = 2(5m − 4m ) 5m 4(5m − 4m ) .
0 0 5m
We now compute:
4m 0 2(4m − 5m )
4 0 −2
Am+1 = 2(5m − 4m ) 5m 4(5m − 4m ) 2 5 4
0 0 5 m 0 0 5
| {z }| {z }
(∗) =A
= Am
4m+1 8 · 4m − 10 · 5m
0
(∗∗)
= 10 · 5m − 8 · 4m 5m+1 20 · 5m − 16 · 4m
0 0 5m+1
where (*) follows from the induction hypothesis, and (**) follows via simple matrix
multiplication. This completes the induction and proves that our formula is correct.
(Technically, we have only shown that our formula is correct for non-negative
integers m. We could also prove inductively that the formula is true for negative
integers m, but in practice, we need not bother. This is because this part is optional
anyway, and it simply serves to increase our confidence that we didn’t make any
mistakes in our computation.)
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 554
pA (λ) = det(λI2 − A)
λ−6 2
=
−6 λ + 1
= λ2 − 5λ + 6
= (λ − 2)(λ − 3).
where (*) follows from Corollary 7.5.4 (because A and D are similar), and (**) follows
from Proposition 7.3.1 (because D is diagonal, and in particular, triangular). By the
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 555
Invertible Matrix Theorem (see subsection 8.2.6), it follows that A is invertible. So,
by Proposition 4.5.18, the following holds for all integers m:
Am = P Dm P −1
2m 0
1 2 −3 2 by Proposition 8.5.3,
=
2 3 0 3m 2 −1 since D is diagonal
−3 · 2m + 4 · 3m 2m+1 − 2 · 3m
= .
−3 · 2m+1 + 2 · 3m+1 2m+2 − 3m+1
This is the formula that we need, and as we saw, it works for all integers m (positive,
negative, and zero).
Optional: Let us check that our answer is correct, at least for non-negative integers
m. For m = 0, we have the following:
−3 · 20 + 4 · 30 20+1 − 2 · 30
= I2 = A0 .
−3 · 20+1 + 2 · 30+1 20+2 − 30+1
−3 · 2m + 4 · 3m 2m+1 − 2 · 3m
A m = .
−3 · 2m+1 + 2 · 3m+1 2m+2 − 3m+1
We now compute:
−3 · 2m + 4 · 3m 2m+1 − 2 · 3m
6 −2
Am+1 =
−3 · 2m+1 + 2 · 3m+1 2m+2 − 3m+1 6 −1
| {z } | {z }
(∗) =A
= Am
−6 · 2m + 12 · 3m 4 · 2m − 6 · 3m
(∗∗)
=
−6 · 2m+1 + 6 · 3m+1 4 · 2m+1 − 3 · 3m+1
where (*) follows from the induction hypothesis, and (**) follows via simple matrix
multiplication. So, our formula is correct.
Reading off the spectrum and bases of the eigenspaces of a square matrix
from its diagonalization. Suppose that we have successfully diagonalized a square
matrix A ∈ Fn×n (where F is a field), that is, that we have computed a diagonal matrix
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 556
where (*) follows from Theorem 8.2.9 (because A and D are similar), and (**) follows
from Proposition 8.2.7 (because D is diagonal, and in particular, triangular). It now
immediately follows that the spectrum of A is {λ1 , . . . , λn }.
But this implies that for all i ∈ {1, . . . , n}, we have that Api = λi pi , and so pi is an eigenvector of
A associated with the eigenvalue λi .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 557
Example 8.5.13. Consider the following matrices in C6×6 (color coded for empha-
sis):
5 0 0 0 0 0 1 3 8 8 3 4
0 4 0 0 0 0
2 8 0 0 0 2
0 0 5 0 0 0 5 4 6 4 5 0
D = , P = .
0 0 0 3 0 0
0 5 8 5 4 3
0 0 0 0 4 0 1 0 8 0 3 0
0 0 0 0 0 4 0 2 0 3 0 2
It can be checked that P is invertible (for example, we can compute that det(P ) =
−1020 ̸= 0, and so by Theorem 7.4.1, P is invertible). We now set A = P DP −1 , so
that D = P −1 AP . Then by Proposition 8.5.12, all the following hold:
the characteristic polynomial of A is
pA (λ) = (λ − 3)(λ − 4)3 (λ − 5)2 ;
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 558
we can read off bases of the eigenspaces E3 (A), E4 (A), and E5 (A), as follows:
– a basis of E3 (A) is
8
0
n
4
o
,
5
0
3
– a basis of E4 (A) is
3 3 4
8 0 2
n
4
5
0
o
, , ,
5
4
3
0 3 0
2 0 2
– a basis of E5 (A) is
1 8
2 0
n
5
6
o
, ;
0
8
1 8
0 0
the columns of P form an eigenbasis of Cn associated with the matrix A.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 559
In subsection 8.6.3, we give an outline of the proof of our main theorems. For most
readers, it is enough to read subsections 8.6.1, 8.6.2, and 8.6.3.
The remaining subsections (namely, subsections 8.6.4, 8.6.5, 8.6.6, and 8.6.7) are
highly technical and can be considered “optional reading” for particularly ambitious
students. Subsections 8.6.4, 8.6.5, 8.6.6 together give a formal proof of our main
theorems (the theorems stated in subsection 8.6.1). Subsection 8.6.7 is computational,
and it is essentially a more ambitious version of subsection 8.6.2. Suppose we are given
a square matrix A ∈ Fn×n , where F is an algebraically closed field. By Theorem 8.6.2,
the matrix A is similar to some matrix in Jordan normal form. In other words,
there exists a Jordan matrix J and an invertible matrix P , both in Fn×n , such that
J = P −1 AP . In subsection 8.6.2, we give a recipe for computing the Jordan matrix
J. In subsection 8.6.7, we give a recipe for computing both J and P ; the correctness
of this recipe essentially follows from the proofs given in subsections 8.6.4, 8.6.5,
and 8.6.6. We note, however, that readers who just wish to learn how to compute J
and P mechanically, without necessarily understanding why the procedure works,
can simply follow the steps described in subsection 8.6.7 (without having read the
proofs from subsections 8.6.4, 8.6.5, and 8.6.6 first).
More generally, for square matrices A1 ∈ Fn1 ×n1 , A2 ∈ Fn2 ×n2 , . . . , Ak ∈ Fnk ×nk , we
define the direct sum of A1 , A2 . . . , Ak to be the (n1 +n2 +· · ·+nk )×(n1 +n2 +· · ·+nk )
matrix
A1 On1 ×n2 . . . On1 ×nk
On ×n A2 . . . On2 ×nk
2 1
A1 ⊕ A2 ⊕ · · · ⊕ Ak := .
.. .. .. ..
. . . .
Onk ×n1 Onk ×n2 ... Ak
For example:
1 2 0 0 0 0
3 4 0 0 0 0
1 2 3
1 2 0 0 1 2 3 0
⊕ 4 5 6 ⊕ 1
= .
3 4 0 0 4 5 6 0
7 8 9
0 0 7 8 9 0
0 0 0 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 560
For a field F, a scalar λ0 ∈ F, and a positive integer t, the Jordan block Jt (λ0 ) is
defined to be following t × t matrix (with entries understood to be in F):
λ0 1 0 . . . 0 0
0 λ0 1 . . . 0 0
Jt (λ0 ) = ... .. .. . . .. .. .
. . . . .
0 0 0 . . . λ0 1
0 0 0 . . . 0 λ0 t×t
Thus, Jt (λ0 ) is a matrix in Ft×t , it has all λ0 ’s on the main diagonal, all 1’s on the
diagonal right above the main diagonal, and 0’s everywhere else. For example:
J1 (λ0 ) = λ0 ;
λ0 1
J2 (λ0 ) = ;
0 λ0
λ0 1 0
J3 (λ0 ) = 0 λ0 1 ;
0 0 λ0
λ0 1 0 0
0 λ0 1 0
J4 (λ0 ) = 0 0 λ0 1 ;
0 0 0 λ0
λ0 1 0 0 0
0 λ0 1 0 0
J5 (λ0 ) =
0 0 λ0 1 0 .
0 0 0 λ0 1
0 0 0 0 λ0
A Jordan matrix (also called a matrix in Jordan normal form) is any matrix that is
a direct sum of one or more Jordan blocks. Thus, a Jordan matrix is a matrix of the
form
Jt1 (λ1 ) O ... O
O Jt2 (λ2 ) . . . O
Jt1 (λ1 ) ⊕ Jt2 (λ2 ) ⊕ · · · ⊕ Jtℓ (λℓ ) = ,
.. .. . . .
.
. . . .
O O . . . Jtℓ (λℓ )
where λ1 , . . . , λℓ are scalars in F, t1 , . . . , tℓ are positive integers, and the O’s are zero
matrices of appropriate sizes. For instance, the following is a Jordan matrix with
four Jordan blocks, namely J3 (5), J2 (2), J1 (2), and J3 (5):
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 561
5 1 0 0 0 0 0 0 0
0 5 1 0 0 0 0 0 0
0 0 5 0 0 0 0 0 0
0 0 0 2 1 0 0 0 0
J3 (5) ⊕ J2 (2) ⊕ J1 (2) ⊕ J3 (5) =
0 0 0 0 2 0 0 0 0 .
0 0 0 0 0 2 0 0 0
0 0 0 0 0 0 5 1 0
0 0 0 0 0 0 0 5 1
0 0 0 0 0 0 0 0 5
Remark: Every diagonal matrix is a Jordan matrix. Moreover, note that a Jordan
matrix is diagonal if and only if all its Jordan blocks are of size 1 × 1. On the other
hand, if some Jordan block of a Jordan matrix J is of larger size (i.e. is of size t × t
for some t ≥ 2), then J will have at least one 1 on the diagonal right above the main
diagonal.
Remark: Not all matrices that have an arbitrary main diagonal, all 0’s and 1’s on
the diagonal right above the main one, and 0’s everywhere else, are Jordan matrices.
For example, the matrix
2 1
0 3
is not a Jordan matrix (because it is not a direct sum of Jordan blocks).
Theorem 8.6.1. Let F be a field, and let J1 , J2 ∈ Fn×n be Jordan matrices. Then J1
and J2 are similar if and only if they have exactly the same Jordan blocks (counting
repetitions, but not counting the order in which the blocks appear in the two matrices).
The proof of Theorem 8.6.1 is postponed to subsection 8.6.4. For now, let us
point out that the “if”(“⇐=”) part is fairly easy, whereas the “only if” (“=⇒”) part
requires some work. The “if” part, i.e. the fact that two Jordan matrices that have the
same Jordan blocks, counting repetitions, are indeed similar essentially follows from
the fact that similar matrices represent the same linear function, only with respect to
(possibly) different bases (see Theorem 4.5.19). A change in the order of Jordan blocks
corresponds to a change in the order of basis vectors. For a formal proof, see Proposi-
tion 8.6.12. For now, let us take a look at a special case in order to gain some intuition.
Suppose that V is a finite-dimensional vector space over a field F, that f : V → V
is a linear function, and that B = {a1 , . . . , at1 , b1 , . . . , bt2 , c1 , . . . , ct3 , d1 , . . . , dt4 }
(with t1 , t2 , t3 , t4 ≥ 1) is a basis of V such that
Jt1 (λ1 ) O O O
O Jt2 (λ2 ) O O
B
f B = .
O O Jt3 (λ3 ) O
O O O Jt4 (λ4 )
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 562
Then for the basis C = {b1 , . . . , bt2 , d1 , . . . , dt4 , a1 , . . . , at1 , c1 , . . . , ct3 } of V , we have
the following:
Jt2 (λ2 ) O O O
O Jt4 (λ4 ) O O
C
f C = .
O O Jt1 (λ1 ) O
O O O Jt3 (λ3 )
By Theorem 4.5.19, matrices B
f B
and C
f C
are similar, and so the two Jordan
matrices above are similar.
We now state two theorems involving Jordan matrices, namely, Theorems 8.6.2
and 8.6.4 below. As we shall see, the two theorems are equivalent (in the sense that
either one easily implies the other). The proofs of the two theorems are long and
technical; a proof outline is given in subsection 8.6.3, and a full proof is given in
subsections 8.6.4, 8.6.5, 8.6.6.
Theorem 8.6.2. Assume that F is an algebraically closed field, and let A ∈ Fn×n
be a square matrix. Then A is similar to a matrix J in Jordan normal form. Moreover,
this matrix J is unique up to a reordering of the Jordan blocks.
(b) there exists a Jordan matrix J ∈ Fn×n such that both A and B are similar to J;
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 563
Proof (assuming Theorems 8.6.1 and 8.6.2). In what follows, we will use the fact
that, by Proposition 4.5.16, matrix similarity is an equivalence relation on Fn×n . We
will prove “(a) =⇒ (b) =⇒ (c) =⇒ (a).”
We first assume (a) and prove (b). By Theorem 8.6.2, A is similar to a Jordan
matrix J ∈ Fn×n . Since matrix similarity is an equivalence relation on Fn×n , it
follows that B is similar to J.27 This proves (b).
Next, we assume (b) and prove (c). By (b), A and B are both similar to the
same Jordan matrix J ∈ Fn×n . But then we simply set JA := J and JB := J, and (c)
follows.
Finally, we assume (c) and prove (a). Let JA and JB be as in part (c). Then
by Theorem 8.6.1, JA and JB are similar. Since matrix similarity is an equivalence
relation on Fn×n , we deduce that A is similar to B,28 i.e. (a) holds.
Remarks:
1. Theorems 8.6.2 and 8.6.4 only hold for algebraically closed fields. The only
algebraically closed field that we have seen is C, but others do exist.
2. Theorem 4.5.19 essentially states that two n × n matrices are similar if and
only if they represent the same linear function from an n-dimensional vector
space to itself, only possibly with respect to different bases. It is then easy to
show that Theorems 8.6.2 and Theorems 8.6.4 are equivalent in the sense that
either one of them (combined with Theorem 4.5.19) readily implies the other.
The details are left as an exercise.
3. As we saw in section 8.5, not all square matrices are diagonalizable, i.e. there
are square matrices that are not similar to any diagonal matrix. However, as
long as we are working over an algebraically closed field, Theorem 8.6.2
guarantees that any square matrix is similar to a matrix that is “almost
27
Indeed, we have that A is similar to both B and and J. So, B is similar to J.
28
Indeed, we have that A is similar to JA , that JA is similar to JB , and that JB is similar to B.
So, A is similar to B.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 564
diagonal,” namely to its Jordan normal form. However, in the special case
when a square matrix A is diagonalizable, the Jordan normal form of A is any
diagonal matrix D that is similar to A.29
4. Since every Jordan matrix is upper triangular, its eigenvalues, together with
their algebraic multiplicities, can easily be read off from the Jordan matrix
itself (see Proposition 8.2.7): the eigenvalues are precisely the entries along
the main diagonal of the Jordan matrix, and the algebraic multiplicity of each
eigenvalue is the number of times that it appears on the main diagonal. For
instance, the eigenvalues of the Jordan matrix
5 1 0 0 0 0 0 0 0
0 5 1 0 0 0 0 0 0
0 0 5 0 0 0 0 0 0
0 0 0 2 1 0 0 0 0
J3 (5) ⊕ J2 (2) ⊕ J1 (2) ⊕ J3 (5) =
0 0 0 0 2 0 0 0 0
0 0 0 0 0 2 0 0 0
0 0 0 0 0 0 5 1 0
0 0 0 0 0 0 0 5 1
0 0 0 0 0 0 0 0 5
6. By Theorem 8.2.9, similar matrices have the same eigenvalues, with the same
corresponding algebraic multiplicities, and the same corresponding geometric
multiplicities. So, if we know the Jordan normal form of a matrix A, then
we can easily read off the eigenvalues of A, together with their algebraic and
geometric multiplicities. We note, however, that two square matrices of the
same size, and with exactly the same eigenvalues, with the same corresponding
algebraic and geometric multiplicities, need not be similar. Indeed, it is easy
to construct two Jordan matrices that have different Jordan blocks, but have
the same eigenvalues with the same corresponding algebraic and geometric
multiplicities. By Theorem 8.6.1, such matrices are not similar. For a concrete
example, consider the Jordan matrices J2 (λ) ⊕ J2 (λ) and J3 (λ) ⊕ J1 (λ), where
29
All such diagonal matrices D have the spectrum of A on the main diagonal (in some order),
and they are all similar to each other.
30
Check this!
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 565
λ is an arbitrary scalar from the field in question; these two matrices have
only one eigenvalue, namely λ, with algebraic multiplicity 4 and geometric
multiplicity 2, but they have different Jordan blocks and are therefore not
similar.
Example 8.6.5. Let A1 , A2 , A3 ∈ C7×7 be matrices whose Jordan normal forms are
J1 , J2 , J3 , respectively, as follows:
0 0 0 0 0 0 0
0 1 1 0 0 0 0
0 0 1 1 0 0 0
J1 =
0 0 0 1 0 0 0 ;
0 0 0 0 1 0 0
0 0 0 0 0 0 1
0 0 0 0 0 0 0
1 0 0 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 0 0 0
J2 =
0 0 0 0 0 0 0 ;
0 0 0 0 1 1 0
0 0 0 0 0 1 1
0 0 0 0 0 0 1
0 0 0 0 0 0 0
0 1 1 0 0 0 0
0 0 1 0 0 0 0
J3 =
0 0 0 1 1 0 0 .
0 0 0 0 1 0 0
0 0 0 0 0 0 1
0 0 0 0 0 0 0
Determine which (if any) of A1 , A2 , A3 are similar. Then, for each i ∈ {1, 2, 3},
compute its characteristic polynomial and spectrum, and find all the eigenvalues of
Ai , along with their algebraic and geometric multiplicities.
Solutution. We first identify the Jordan blocks of the the three Jordan matrices. In
each matrix, we use colors to indicate the Jordan blocks.
0 0 0 0 0 0 0
0 1 1 0 0 0 0
0 0 1 1 0 0 0
J1 =
0 0 0 1 0 0 0 = J1 (0) ⊕ J3 (1) ⊕ J1 (1) ⊕ J2 (0);
0 0 0 0 1 0 0
0 0 0 0 0 0 1
0 0 0 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 566
1 0 0 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 0 0 0
J2 =
0 0 0 0 0 0 0 = J1 (1) ⊕ J2 (0) ⊕ J1 (0) ⊕ J3 (1);
0 0 0 0 1 1 0
0 0 0 0 0 1 1
0 0 0 0 0 0 1
0 0 0 0 0 0 0
0 1 1 0 0 0 0
0 0 1 0 0 0 0
J3 =
0 0 0 1 1 0 0 = J1 (0) ⊕ J2 (1) ⊕ J2 (1) ⊕ J2 (0).
0 0 0 0 1 0 0
0 0 0 0 0 0 1
0 0 0 0 0 0 0
We see that J1 and J2 have the same Jordan blocks (counting repetitions), and so
A1 and A2 are similar. On the other hand, the Jordan blocks of the matrix J3 are
different from those of J1 and J2 , and so A3 is not similar to A1 and A2 .
For each i ∈ {1, 2, 3}, we see that the characteristic polynomial of Ai is
(∗) (∗∗)
pAi (λ) = pJi (λ) = λ3 (λ − 1)4 ,
where (*) follows from the fact that Ai and Ji are similar (we are using Proposi-
tion 8.2.9), and (**) from the fact that the Jordan matrix Ji is upper triangular
(we are using Proposition 8.2.7). Finally, we see from the matrices J1 , J2 , J3 , that
A1 , A2 , A3 all have spectrum {0, 0, 0, 1, 1, 1, 1}, and that they all have exactly two
eigenvalues: the eigenvalue 0 with algebraic multiplicity 3 and geometric multiplicity
2, and the eigenvalue 1 with algebraic multiplicity 4 and geometric multiplicity 2.
Theorem 8.6.6. Let F be an algebraically closed field, let A ∈ Fn×n , and let
λ1 , . . . , λ 1 , . . . , λ k , . . . , λ k
| {z } | {z }
m1 mk
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 567
(i) each Jordan block of the Jordan matrix J is of the form Jt (λi ) for some
i ∈ {1, . . . , k} and t ∈ {1, . . . , mi };
(ii) for each i ∈ {1, . . . , k} and each positive integer r, the Jordan matrix J has
exactly
rank (A − λi In )r−1 − rank (A − λi In )r
Moreover, A is similar to any Jordan matrix in Fn×n that satisfies conditions (i)
and (ii) above.
The proof of Theorem 8.6.6 is given in subsection 8.6.6 (the proof relies on the
rather technical results of subsections 8.6.4 and 8.6.5). For now, let us just note
that Theorem 8.6.6 does indeed allow us to compute the Jordan normal form of a
square matrix A with entries in an algebraically closed field F, as long as we are able
to factor its characteristic polynomial into linear terms.32 Indeed, condition (i) of
Theorem 8.6.6 tells us what sorts of Jordan blocks the Jordan normal form of A may
possibly have. Condition (ii) gives us an easy way to compute the number of Jordan
blocks of each type. Indeed, using the set-up and notation from Theorem 8.6.6, we
consider an eigenvalue λi of A, and we fix a positive integer r. Then the number of
Jordan blocks Jr (λi ) in the Jordan normal form of A is exactly
! !
r−1 r r r+1
rank (A − λi In ) − rank (A − λi In ) − rank (A − λi In ) − rank (A − λi In ) .
| {z } | {z }
= number of Jordan blocks = number of Jordan blocks
Jt (λi ) satisfying t ≥ r Jt (λi ) satisfying t ≥ r + 1
So, we can compute both the possible types of Jordan blocks that the Jordan normal
form of A may have, and the exact number of blocks of each possible type. The
reader may have noticed that we in fact get an exact formula
for the number of Jordan blocks Jr (λi ) in the Jordan normal form of A. However, it
is arguably easier to memorize the formula for the number of Jordan blocks of the
form Jt (λi ) satisfying t ≥ r. For a couple of numerical examples, see subsection 8.6.2.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 568
F1 ⊆ F2 ;
We will not prove this in full generality, since it would involve theory that is beyond
the scope of these lecture notes. However, for the special case of R and C, we can
give a proof that that is both fully formal and fairly simple (see Theorem 8.6.7
below). Before turning to the special case of R and C, let us explain what similarity
over different fields had to do with the Jordan normal form. Suppose that we need
to check if two n × n matrices, call them A and B, with entries in some field F,
are similar (over F). We first extend F to an algebraically closed field F.e Then the
following are equivalent:
(The equivalence of the second and third item above follows from Corollary 8.6.3.)
So, if we can compute the Jordan normal forms of A and B in F en×n , then we can
immediately determine if A and B are similar over F. Of course, actually computing
33
Of course, Q is also a subfield of the algebraically closed field C.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 569
the Jordan normal forms of A and B (in F en×n ) may be very difficult or even
impossible, essentially because we might not succeed in factoring the characteristic
polynomials pA (λ) and pB (λ).34
We now turn to the special case of R and C. As we pointed out above, we have
all the tools that we need to prove that two n × n matrices with real entries are
similar over R if and only if they are similar over C.
Theorem 8.6.7. Two n × n matrices with real entries are similar over R if and
only if they are similar over C.
Proof. Fix n×n matrices A and B with real entries. We must show that the following
are equivalent:
A and B are similar over R, that is, there exists an invertible matrix P ∈ Rn×n
such that B = P −1 AP ;
A and B are similar over C, that is, there exists an invertible matrix P ∈ Cn×n
such that B = P −1 AP .
If A and B are similar over R, then they are obviously similar over C. For the
converse, we assume that A and B are similar over C, and we prove that they
are similar over R. Fix an invertible matrix P ∈ Cn×n such that B = P −1 AP ,
so that P B = AP . Obviously, there exist n × n matrices R and Q with real
entries such that P = R + iQ.35 So, (R + iQ)B = A(R + iQ), and consequently,
RB + i(QB) = AR + i(AQ). By separating the real and imaginary parts (and
relying on the fact A, B, R, Q all have only real entries), we get that RB = AR and
QB = AQ.36 Therefore,
(R + cQ)B = A(R + cQ)
for all c ∈ C. It now suffices to show that there exists a real number c such that the
matrix R + cQ is invertible; we will then have that B = (R + cQ)−1 A(R + cQ), so
that A and B are similar over R (because all entries of R + cQ are real), which is
what we need.
Consider the polynomial
q(x) := det(R + xQ).
34
Since Fe is algebraically closed, the characteristic polynomials pA (λ) and pB (λ) can be factored
into linear terms with coefficients in F.e However, as we have pointed out a number of times already,
this is only an existence statement: we have no general recipe for factoring.
35 2 + i −3i 2 0
For example, if P = , then we have that P = R + iQ for R := and
1 − 2i −7 1 −7
1 −3
Q := .
−2 0
36
If R is invertible, then we have that B = R−1 AR, and so A and B are similar over R, and we
are done. We are similarly done if Q is invertible. Unfortunately, it is possible that neither R nor Q
is invertible, which is why we are not done yet.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 570
Since R and Q are n × n matrices with real entries, we see that q(x) is a polynomial
with real coefficients and of degree at most n. Now, since P is invertible, the
Invertible Matrix Theorem (see subsection 8.2.6) guarantees that det(P ) ̸= 0. So,
q(i) = det(R + iQ) = det(P ) ̸= 0. We have now shown that q(x) is a non-zero
polynomial with real coefficients and of degree at most n. Therefore, q(x) has at
most n complex roots, and in particular, it has at most n real roots. Thus, there
exists a real number c such that q(c) ̸= 0.37 But then det(R + cQ) = q(c) ̸= 0, and so
the Invertible Matrix Theorem (see subsection 8.2.6) guarantees R + cQ is invertible.
This completes the argument.
Remark: In view of Theorem 8.6.7, we can rely on the Jordan normal form to check
whether two n × n matrices with real entries are similar over R, even though the
field R is not algebraically closed. Indeed, for n × n matrices A and B with real
entries, Corollary 8.6.3 and Theorem 8.6.7 together guarantee that the following are
equivalent:
A and B have the same Jordan normal form in Cn×n (up to a reordering of
the Jordan blocks).
37
We can even choose c to be one of 0, 1, . . . , n. Indeed, since q(x) has at most n complex roots,
we know that at least one of 0, 1, . . . , n is not a root of q(x). We can choose c to be this non-root.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 571
3 1 0 0 0 0 0 −1 0 1
−3 1 5 2 −2 −4 −7 4 −1 3
0
1 3 0 0 0 0 −1 0 1
−2 −1 3 4 −1 −2 −3 2 −1 2
−1 0 2 1 2 −2 −1 1 0 1
A := .
−1 0 1 0 0 2 −1 0 0 1
1
1 −2 −1 1 2 7 −2 1 −2
−1 0 1 0 0 −1 0 3 1 0
0 0 0 0 0 0 1 0 3 −1
1 1 −2 −1 1 2 5 −2 1 0
We have now obtained the same rank twice in a row, and so we can stop. We
compute:
rank (A − λ1 I10 )0 − rank (A − λ1 I10 )1 = 3;
38
By definition, we have that (A − λ1 I10 )0 = I10 , and obviously, rank(I10 ) = 10.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 572
rank (A − λ1 I10 )1 − rank (A − λ1 I10 )2 = 3;
rank (A − λ1 I10 ) − rank (A − λ1 I10 ) = 2;
2 3
rank (A − λ1 I10 )3 − rank (A − λ1 I10 )4 = 0.
Keeping in mind that for any positive integer r, the number of Jordan blocks
Jr (λ1 ) = Jr (3) in the Jordan normal form of A is equal to
number of Jordan blocks number of Jordan blocks
− ,
Jt (λ1 ) satisfying t ≥ r Jt (λ1 ) satisfying t ≥ r + 1
we conclude that the Jordan normal form of A will contain exactly two Jordan blocks
J3 (λ1 ) = J3 (3),39 and exactly one Jordan block J2 (λ1 ) = J2 (3). The Jordan normal
form of A contains no other Jordan blocks of the form Jt (λ1 ) = Jt (3).
It remains to deal with the eigenvalue λ2 = 2. We compute the matrices
(A − λ2 I10 )r for r = 0, 1, 2, 3, . . . along with their ranks. We keep computing until
we get the same rank twice in a row. We obtain:
rank (A − λ2 I10 )0 = 10;
rank (A − λ2 I10 )1 = 9;
rank (A − λ2 I10 )2 = 8;
rank (A − λ2 I10 )3 = 8.
We have now obtained the same rank twice in a row, and so we can stop. We
compute:
rank (A − λ2 I10 )0 − rank (A − λ2 I10 )1 = 1;
39
Indeed, it contains two Jordan blocks Jt (3) with t ≥ 3, but zero Jordan blocks Jt (3) with t ≥ 4.
So, the number of Jordan blocks Jt (3) with t = 3 is 2 − 0 = 2.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 573
rank (A − λ2 I10 )1 − rank (A − λ2 I10 )2 = 1;
rank (A − λ2 I10 ) − rank (A − λ2 I10 ) = 0.
2 3
Consequently, the Jordan normal form of A will contain exactly one Jordan block
J2 (λ2 ) = J2 (2), and it will contain no other Jordan blocks of the form Jt (λ2 ) = Jt (2).
Putting everything together, we get that the Jordan normal form of A is the
following (color coded for ease of reading):
3 1 0 0 0 0 0 0 0 0
0 3 1 0 0 0 0 0 0 0
0 0 3 0 0 0 0 0 0 0
0 0 0 3 1 0 0 0 0 0
0 0 0 0 3 1 0 0 0 0
= .
0 0 0 0 0 3 0 0 0 0
0 0 0 0 0 0 3 1 0 0
0 0 0 0 0 0 0 3 0 0
0 0 0 0 0 0 0 0 2 1
0 0 0 0 0 0 0 0 0 2
We remark that we could have written our Jordan blocks in a different order, but in
any case, the Jordan blocks would have to be the same as above (counting repetitions).
For instance, J2 (3) ⊕ J3 (3) ⊕ J2 (2) ⊕ J3 (3) is also a Jordan normal form of A.
Remark: It is acceptable to leave J3 (3) ⊕ J3 (3) ⊕ J2 (3) ⊕ J2 (2) (color coded or not)
as a final answer, without exhibiting the actual 10 × 10 matrix with its 100 entries.
It is not acceptable to leave J3 (λ1 ) ⊕ J3 (λ1 ) ⊕ J2 (λ1 ) ⊕ J2 (λ2 ) as a final answer.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 574
We see that the eigenvalues of A are λ1 = 4 (with algebraic multiplicity 10) and
λ2 = 2 (with algebraic multiplicity 3). So, all of our Jordan blocks will be of the form
Jt (4) and Jt (2) for various positive integers t. We now deal with the two eigenvalues
separately, as follows.
We first deal with the eigenvalue λ1 = 4. We compute the matrices (A − λ1 I13 )r
for r = 0, 1, 2, 3, . . . along with their ranks. We keep computing until we get the
same rank twice in a row. We obtain:
rank (A − λ1 I13 )0 = 13;
rank (A − λ1 I13 )1 = 9;
rank (A − λ1 I13 )2 = 6;
rank (A − λ1 I13 )3 = 5;
rank (A − λ1 I13 )4 = 4;
rank (A − λ1 I13 )5 = 3;
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 575
rank (A − λ1 I13 )6 = 3.
We have now obtained the same rank twice in a row, and so we can stop. We
compute:
rank (A − λ1 I13 )0 − rank (A − λ1 I13 )1 = 4;
rank (A − λ1 I13 )1 − rank (A − λ1 I13 )2 = 3;
rank (A − λ1 I13 )2 − rank (A − λ1 I13 )3 = 1;
rank (A − λ1 I13 )3 − rank (A − λ1 I13 )4 = 1;
rank (A − λ1 I13 )4 − rank (A − λ1 I13 )5 = 1;
rank (A − λ1 I13 )5 − rank (A − λ1 I13 )6 = 0.
Keeping in mind that for any positive integer r, the number of Jordan blocks
Jr (λ1 ) = Jr (4) in the Jordan normal form of A is equal to
number of Jordan blocks number of Jordan blocks
− ,
Jt (λ1 ) satisfying t ≥ r Jt (λ1 ) satisfying t ≥ r + 1
we conclude that the Jordan normal form of A will contain exactly one Jordan
block J5 (λ1 ) = J5 (4), two Jordan blocks J2 (λ1 ) = J2 (4), and one Jordan block
J1 (λ1 ) = J1 (4). The Jordan normal form of A contains no other Jordan blocks of
the form Jt (λ1 ) = Jt (4).
It remains to deal with the eigenvalue λ2 = 2. We compute the matrices
(A − λ2 I13 )r for r = 0, 1, 2, 3, . . . along with their ranks. We keep computing until
we get the same rank twice in a row. We obtain:
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 576
rank (A − λ2 I13 )0 = 13;
rank (A − λ2 I13 ) = 11;
1
rank (A − λ2 I13 )2 = 10;
rank (A − λ2 I13 )3 = 10.
We have now obtained the same rank twice in a row, and so we can stop. We
compute:
rank (A − λ2 I13 )0 − rank (A − λ2 I13 )1 = 2;
rank (A − λ2 I13 )1 − rank (A − λ2 I13 )2 = 1;
rank (A − λ2 I13 )2 − rank (A − λ2 I13 )3 = 0.
Consequently, the Jordan normal form of A will contain exactly one Jordan block
J2 (λ2 ) = J2 (2), one Jordan block J1 (λ2 ) = J1 (2), and no other Jordan blocks of the
form Jt (λ2 ) = Jt (2).
Putting everything together, we get that the Jordan normal form of A is the
following (color coded for ease of reading):
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 577
4 1 0 0 0 0 0 0 0 0 0 0 0
0 4 1 0 0 0 0 0 0 0 0 0 0
0 0 4 1 0 0 0 0 0 0 0 0 0
0 0 0 4 1 0 0 0 0 0 0 0 0
0 0 0 0 4 0 0 0 0 0 0 0 0
0 0 0 0 0 4 1 0 0 0 0 0 0
= 0 0 0 0 0 0 4 0 0 0 0 0 0 .
0 0 0 0 0 0 0 4 1 0 0 0 0
0 0 0 0 0 0 0 0 4 0 0 0 0
0 0 0 0 0 0 0 0 0 4 0 0 0
0 0 0 0 0 0 0 0 0 0 2 1 0
0 0 0 0 0 0 0 0 0 0 0 2 0
0 0 0 0 0 0 0 0 0 0 0 0 2
As in Example 8.6.8, we could have written our Jordan blocks in a different order, as
long as we preserved any repetitions. For example, J1 (2) ⊕ J2 (4) ⊕ J1 (4) ⊕ J2 (2) ⊕
J5 (4) ⊕ J2 (4) is also a Jordan normal form of A.
Uniqueness. Let us outline the proof of the uniqueness part of Theorem 8.6.2,
restated below for the reader’s convenience.
40
It really is quite long and quite laborious, even if we use a calculator throughout.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 578
Theorem 8.6.2. Assume that F is an algebraically closed field, and let A ∈ Fn×n
be a square matrix. Then A is similar to a matrix J in Jordan normal form. Moreover,
this matrix J is unique up to a reordering of the Jordan blocks.
So, let us suppose that F is a field,41 and assume that a matrix A ∈ Fn×n is
similar to a Jordan matrix J ∈ Fn×n . Clearly, it suffices to show that the types
of Jordan blocks that appear in J are fully determined by A, as is the number of
Jordan blocks of each type. (For a formal statement of what we are trying to prove,
see the somewhat lengthy statement of Proposition 8.6.17.)
First of all, since A and J are similar, Theorem 8.2.9 guarantees that these two
matrices have the same characteristic polynomial and the same spectrum. Since the
Jordan matrix J is upper triangular, it has precisely its spectrum (equivalently: the
spectrum of A) on the main diagonal. In particular, all Jordan blocks of J are of
the form Jt (λ), where λ is an eigenvalue of A, and t is a positive integer no greater
than the algebraic multiplicity of λ as an eigenvalue of A. For each eigenvalue λ and
positive integer r, we would like to compute the number of Jordan blocks Jt (λ) that
appear in J and satisfy t ≥ r. If we can show that this number depends only on A
(and not on the particular choice of J), then we are done, since for fixed λ and r,
the number of Jordan blocks Jr (λ) in J is equal to
number of Jordan blocks number of Jordan blocks
− .
Jt (λ) satisfying t ≥ r Jt (λ) satisfying t ≥ r + 1
So, the r-th power of a Jordan matrix is equal to the direct sum of the r-th powers
of its Jordan blocks, and the rank of the r-th power of a Jordan matrix is equal to
the sum of ranks of the r-th powers of its Jordan blocks.
41
For the uniqueness part, we do not need F to be algebraically closed. Algebraic closure matters
only for the existence part.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 579
The second observation is that for any matrix A with t columns and entries in F,
the matrix AJt (0) is obtained from A by first adding a zero column to the left, and
then deleting the rightmost column of the resulting matrix; it then follows by an
easy induction on r that
It if r = 0
r O It−r
(t−r)×r
Jt (0) = if 1 ≤ r ≤ t − 1
Or×r Or×(t−r)
if r ≥ t
Ot×t
for all positive
integers t and r (see Proposition 8.6.13). From here, we can easily
r 42
read off rank Jt (0) . Meanwhile, the remaining Jordan blocks of J − λIn (i.e.
those that have a number other than 0 on the main diagonal) are invertible matrices
(because their determinant is non-zero);43 therefore, all powers of these matrices
are invertible and have full rank.44 So, for any positive integer r, the r-th powers
of the Jordan blocks of J − λIn that have a non-zero on the main diagonal end up
contributing n − m to the rank of (J − λIn )r . Meanwhile, the contribution that the
r-th power of a Jordan block Jt (0) of J − λIn makes to the rank of (J − λIn )r can
r
easily be read off from our formula for Jt (0) above.
Thus, we can in fact obtain a formula for rank (J − λIn )r that depends on the
number of Jordan blocks Jt (0) for various values of t. With a little bit of computation,
it can be shown that, for each positive integer r, the number of Jordan blocks Jt (0)
satisfying t ≥ r in the Jordan matrix J − λIn is precisely
As discussed above, this is precisely the number of Jordan blocks Jt (λ) satisfying
t ≥ r in J. But since A and J are similar, so are A − λIn and A − λIn , and by
Proposition 4.5.18, so are all of their corresponding powers. By Corollary 4.5.20,
similar matrices have the same rank. So, the number of Jordan blocks Jt (λ) satisfying
t ≥ r in J is in fact
This essentially completes the proof of the uniqueness part of Theorems 8.6.2. For
the full details, see subsection 8.6.4.
r r
42
Indeed, we get that rank Jt (0) = t − r if r ≤ t − 1, and that rank Jt (0) = 0 if r ≥ t.
43
Any Jordan block is an upper triangular matrix, and so (by Proposition 7.3.1) its determinant
can be computed by multiplying the entries on the main diagonal. If these entries are non-zero,
then the determinant is non-zero. By the Invertible Matrix Theorem (see subsection 8.2.6), any
square matrix whose determinant is non-zero is invertible.
44
By Proposition 1.11.8(f), all powers of an invertible matrix are invertible, and by the Invertible
Matrix Theorem (see subsection 8.2.6), invertible matrices have full rank.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 580
Remark: The formula that we obtained above is precisely the same as the one from
Theorem 8.6.6. However, the argument above (fortified with all the technical details)
does not actually prove Theorem 8.6.6. It only proves that if a square matrix A
is similar to a Jordan matrix J, then the Jordan blocks of J are as specified in
Theorem 8.6.6. To prove that a matrix A ∈ Fn×n (where F is an algebraically closed
field) is indeed similar to at least one Jordan matrix,45 we need the existence part of
Theorem 8.6.2, to which we now turn.
Existence. We now give a brief outline of the proof of the existence part of
Theorem 8.6.4, restated below for the reader’s convenience.
f k := f ◦ · · · ◦ f .
| {z }
k
(λ1 , . . . , λ1 , . . . , λk , . . . , λk )
| {z } | {z }
m1 mk
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 581
∞
S r
= Ker f − λIdV .
r=0
It is easy to show that Gλ (f ) is a subspace of V (we simply check that it satisfies the
three conditions from Theorem 3.1.7), and obviously, eigenspace Eλ (f ) = Ker(f −λIn )
is a subspace of the generalized eigenspace of Gλ (f ). Now, in the first part of our
proof, we show that all generalized eigenspaces of f are f -invariant subspaces of V ,
and moreover, that V is the direct sum of the generalized eigenspaces of f , that is,
V = Gλ1 (f ) ⊕ · · · ⊕ Gλk (f ).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 582
for some vectors u1 , . . . , uℓ ∈ V and positive integers a1 , . . . , aℓ such that for all
indices i ∈ {1, . . . , ℓ}, we have that f ai (ui ) = 0 and f ai −1 (ui ) ̸= 0. These Jordan
chains need to be chosen with care, so that they together produce a basis. We will say
a few words about this below, but let us first explain why a basis of this type is actually
useful. The point is that each Jordan chain {f ai −1 (ui ), f ai −2 (u), . . . , f(ui ),ui } in
our basis B will correspond to a Jordan block Jai (0) in the matrix B f B . To
gain some intuition for how the Jordan chains behave, let us suppose that B =
{f r−1 (u), f r−2 (u), . . . , f (u), u} is our whole basis, i.e. our basis B consists of only one
Jordan chain; in this particular case, we would in fact have that r = dim(V ) = n, and
so B = {f n−1 (u), f n−2 (u), . . . , f (u), u}. Then, using the formula from Theorem 4.5.1,
we would obtain
f f n−1 (u) B f f n−2 (u) B . . .
B
f B = f f (u) B f (u) B
= Jn (0).
The computation above works when B consists of only one Jordan chain. If B consists
of multiple Jordan chains, then we simply get multiple Jordan blocks.
We now briefly outline the construction of the basis B discussed above. The
argument proceeds by (strong) induction on dim(V ). Let p be an integer such that
f p is a zero function, i.e. Ker(f p ) = V . The goal is to show that for all vectors
v1 , . . . , vt ∈ V that are “linearly independent over Ker(f p−1 )” (which means that they
47
This essentially follows from the Cayley-Hamilton theorem (stated and proven in section 8.3).
For the details, see Proposition 8.6.26.
48
Granted, this terminology is slightly unfortunate, since the Jordan chain rather “ends” with u.
The point, however, is that once we have chosen u, the Jordan chain is uniquely determined.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 583
for some vectors vt+1 , . . . , vt+s ∈ Ker(f p−1 ) and positive integers at+1 , . . . , at+s such
that f at+i (vi ) = 0 and f at+i −1 (vi ) ̸= 0 for all i ∈ {1, . . . , s}. We extend the chains
started by f (v1 ), . . . , f (vt ) by adding to them the vectors v1 , . . . , vt , respectively.
These “extended” chains, plus the remaining (“non-extended”) chains form the basis
B of V that we need:
{f p−1 (v1 ), f p−2 (v1 ), . . . , f 2 (v1 ), f (v1 ), v1 }
..
.
p−1 p−2 2
S
{f (vt ), f (vt ), . . . , f (vt ), f (vt ), vt }
B := S a −1 a −2 2
.
{f t+1 (vt+1 ), f t+1 (vt+1 ), . . . , f (vt+1 ), f (vt+1 ), vt+1 }
..
S . at+s −1
{f (vt+s ), f at+s −2 (vt+s ), . . . , f 2 (vt+s ), f (vt+s ), vt+s }
Remark: This completes our outline of the proofs of Theorems 8.6.2 and 8.6.4. The
full technical details are given in subsections 8.6.4, 8.6.5, and 8.6.6.
49
This is because, if p = 1, then every non-zero vector u starts the one-element Jordan chain {u}.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 584
Invariant subspaces. Suppose that V is a vector space over a field F and that
f : V → V is a linear function. A subspace U of V is said to be f -invariant (or
invariant for f ) if f [U ] ⊆ U , that is, if for all u ∈ U , we have that f (u) ∈ U . Under
these circumstances (i.e. if U is an f -invariant subspace of V ), we may define the
function f |U : U → U given by f |U (u) = f (u) for all u ∈ U ; thus, f |U is obtained by
restricting both the domain and the codomain of f to U (which we can do because
U is f -invariant), and obviously, f |U is linear (because f is linear).
Recall from subsection 3.2.6 that if V is a vector space over a field F and
U1 and U2 are its subspaces such that U1 ∩ U2 = {0} and V = U1 + U2 , then
we say that V is the direct sum of U1 and U2 , and we write V = U1 ⊕ U2 . If
50
We note that Proposition 8.6.17 immediately implies the uniqueness part of Theorem 8.6.2, as
outlined in subsection 8.6.3.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 585
Proof. This essentially follows from the appropriate definitions. The details are left
as a straightforward exercise.
Consequently,
pf (λ) = pf1 (λ) . . . pfk (λ),
i.e. the characteristic polynomial of f is equal to the product of the characteristic
polynomials of f1 , . . . , fk .
Proof. For each index i ∈ {1, . . . , k}, fix a basis Bi = {bi,1 , . . . , bi,mi } of Ui . Set
B := B1 ∪ · · · ∪ Bk = {b1,1 , . . . , b1,m1 , . . . , bk,1 , . . . , bk,mk }.
Claim 1. B is a basis of V .
U1 + · · · + Uk := {u1 + · · · + uk | u1 ∈ U1 , . . . , uk ∈ Uk }.
53
Here, we allow B1 , . . . , Bk to possibly be empty, although in practice, we will apply the proposition
only to the case when they are all non-empty.
54
The fact that Bi is linearly independent follows from the fact that B is linearly independent
(because it is a basis of V ), and by construction, Bi is a spanning set of Ui .
55
This readily follows from Theorem 3.2.23 via an easy induction on k.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 586
and we see that v is a linear combination of the vectors in B. We now conclude that
B is indeed a spanning set of V , and is therefore (as we discussed above) a basis of
V. ♦
0
..
.
0
f (bi,j ) fi (bi,j ) Bi
= ,
B
0
..
.
0
with exactly m1 + · · · + mi−1 many 0’s in the top block,56 and exactly
mi+1 + · · · + mk many 0’s in the bottom block.57
and
T
f (bi,j ) B
= 0 . . . 0 αi,1 . . . αi,mi 0 ... 0 ,
56
Meaning: above the block f (bi,j ) B .
i
57
Meaning: below the block f (bi,j ) B .
i
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 587
with m1 + · · · + mi−1 many 0’s on the left (these 0’s correspond to the coefficients
0 in front of the basis vectors b1,1 , . . . , b1,m1 , . . . , bi−1,1 , . . . , bi−1,mi−1 ), and with
mi+1 + · · · + mk many 0’s on the right (these 0’s correspond to the coefficients 0
in front of the basis vectors bi+1,1 , . . . , bi+1,mi+1 , . . . , bk,1 , . . . , bk,mk ). The result is
now immediate. ♦
Claim 3. B
f B
= B1
f1 B1
⊕ ··· ⊕ B fk Bk
.
k
Proof of Claim 3. This follows immediately from Theorem 4.5.1 and from Claim 2. ♦
Now, set n := dim(V ). By Claim 1, we have that n = m1 + · · · + mk , and
consequently, In = Im1 ⊕ · · · ⊕ Imk . Further, set B = B f B . Then
λIn − B = λIn − B f B
(∗)
= (λIm1 ) ⊕ · · · ⊕ (λImk ) − B f1 B ⊕ · · · ⊕ B fk B
1 1 k k
= λIm1 − B f1 B1
⊕ · · · ⊕ λImk − B fk B
1 k k
(∗∗) k
Q (∗) k
Q
= det λImi − B fi B = pfi (λ),
i i
i=1 i=1
where both instances of (*) follow from Proposition 8.2.12, and (**) follows from
Corollary 7.6.7. This completes the argument.
Remark: Proposition 8.6.12 immediately implies that any two Jordan matrices that
have exactly the same Jordan blocks (counting repetitions) are similar.
Proof. For each index i ∈ {1, . . . , k}, assume that the square matrix Ai is of size
mi ×mi . Set m := m1 +· · ·+mk , so that A is of size m×m, and let Em = {e1 , . . . , em }
be the standard basis of Fm . Let f : Fm → Fm be given
by f (x) = Ax, so that f linear
and A is the standard matrix of f , i.e. A = E f E . For each index i ∈ {1, . . . , k},
m m
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 588
we set Bi := {em1 +···+mi−1 +1 , . . . , em1 +···+mi−1 +mi },58 and we set Ui := Span(Bi ), so
that Bi is a basis of Ui . It is then easy to see that for each i ∈ {1, . . . , k}, the subspace
Ui of Fm is f -invariant,59 and moreover, that Ai = B fi B , where fi := f |Ui .60
i i
Now, set Em σ := B σ m
σ(1) ∪ · · · ∪ Bσ(k) ; obviously, Em is a basis of F , since it was
obtained by simply permuting the vectors of the standard basis Em of Fm . It then
follows from Proposition 8.6.11 that
σ
Em
f σ
Em
= Bσ(1)
fσ(1) Bσ(1)
⊕ · · · ⊕ Bσ(k)
fσ(k) Bσ(k)
= Aσ .
| {z } | {z }
=Aσ(1) =Aσ(k)
By Theorem 4.5.19, matrices A = Em
f Em
and Aσ = σ
Em
f σ
Em
are similar. This
completes the argument.
Counting the number of Jordan blocks. Suppose we are are given a matrix
A ∈ Fn×n (where F is a field), and that we know that this matrix is similar to a
Jordan matrix J ∈ Fn×n . In what follows, we would like to determine the types
of Jordan blocks that the Jordan matrix J can have, and also to compute the
number of blocks of each possible type (see Proposition 8.6.17 below); combined
with Proposition 8.6.12, this will allow us to prove Theorem 8.6.1, which states that
two Jordan matrices are similar if and only if they have exactly the same Jordan
blocks (counting repetitions). This, in turn, will allow us to prove uniqueness part
of Theorems 8.6.2 and 8.6.4. Proposition 8.6.17 will also be one of the ingredients
of the proof of Theorem 8.6.6. We begin with four simple technical propositions
(Propositions 8.6.13, 8.6.14, 8.6.15, and 8.6.16).
Proposition 8.6.13. Let F be a field, and let t be a positive integer. Then both the
following hold:
AJt (0) = 0 a1 . . . at−1 ,
i.e. AJt (0) is the s × t matrix obtained from A by first adding a zero column to
the left, and then deleting the rightmost column of the resulting matrix;
58
So, the vectors of B1 are the first m1 vectors of Em , the vectors of B2 are the subsequent m2
vectors of Em , and so on.
59
Here are the details. Fix an index i ∈ {1, . . . , k}. Then for all ej ∈ Bi , Aej is the j-th column of
A, and we see from the construction of A that this column is a linear combination of the vectors in
Bi , i.e. f (ej ) = Aej ∈ Span(Bi ) = Ui . Since Ui = Span(Bi ) and since f is linear, it readily follows
that f [Ui ] ⊆ Ui .
60
Details?
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 589
by the definition of
= A0 Ae1 . . . Aet−1
matrix multiplication
= 0 a1 . . . at−1 by Proposition 1.4.5.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 590
for each i ∈ {1, . . . , k} and each positive integer r, the Jordan matrix J has
exactly
rank (A − λi In )r−1 − rank (A − λi In )r
λ1 , . . . , λ 1 , . . . , λ k , . . . , λ k .
| {z } | {z }
m1 mk
Note that this implies that m1 + · · · + mk = n. It also proves that each Jordan block
of J is of the form Jt (λi ) for some i ∈ {1, . . . , k} and t ∈ {1, . . . , mi }.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 591
It remains to compute the number of Jordan blocks of each type in the matrix J.
We begin with a simple technical claim.
Proof of Claim 1. Fix λ ∈ F. First of all, since A and J are similar, we know that
there exists an invertible matrix P ∈ Fn×n such that J = P −1 AP . Then
P −1 (A − λIn )P = P −1 AP − λP −1 In P = J − λi In ,
and so A − λIn and J − λIn are similar. Now, fix a positive integer r. By Proposi-
tion 4.5.18, matrices (A−λIn )r and (J −λIn )r are similar, and so by Corollary 4.5.20,
these two matrices have the same rank. ♦
Now, fix an index i ∈ {1, . . . , k}. We must show that for each positive integer
r, the Jordan matrix J has exactly rank (A − λi In )r−1 − rank (A − λi In )r many
Jordan blocks Jt (λi ) satisfying t ≥ r. Let a1 , . . . , aℓ be a non-decreasing sequence of
positive integers such that the Jordan blocks of J of the form Jt (λi ) are precisely the
blocks Ja1 (λi ), . . . , Jaℓ (λi ), counting repetitions and appearing in some order along
the main diagonal of J.61 Clearly, a1 + · · · + aℓ = mi .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 592
(∗)
rank (A − λi In )r rank (J − λi In )r
=
(∗∗) s
P k
P r
= rank(Jjr ) + rank Jaj (0) ,
j=1 j=1
where (*) follows from Claim 1, and (**) follows from Propositions 8.6.15 and 8.6.16.
By Proposition 8.6.14 we know that for all ℓ ∈ {1, . . . , s}, Jsr is a matrix of full rank,
and in particular, we have that
(∗) q
P
= (n − mi ) + (aj − r),
j=1
q
rank (A − λi In )r−1 = (n − mi ) +
P
(aj − (r − 1)).
j=1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 593
We are now ready to prove Theorem 8.6.1, restated below for the reader’s
convenience.
Theorem 8.6.1. Let F be a field, and let J1 , J2 ∈ Fn×n be Jordan matrices. Then J1
and J2 are similar if and only if they have exactly the same Jordan blocks (counting
repetitions, but not counting the order in which the blocks appear in the two matrices).
Proof. If J1 and J2 have the same Jordan blocks (counting repetitions), then Propo-
sition 8.6.12 guarantees that they are similar. On the other hand, if J1 and J2 are
similar, then Proposition 8.6.17 guarantees that they have exactly the same Jordan
blocks (counting repetitions).65
fk = f ◦ · · · ◦ f .
| {z }
k
(c) for all non-negative integers r, if Ker(f r ) = Ker(f r+1 ), then Ker(f r ) = Ker(f r+1 ) =
Ker(f r+2 ) = Ker(f r+3 ) = . . . ;
(d) for all non-negative integers r and all scalars λ ∈ F, both Ker(f r ) and Im(f r )
are (f + λIdV )-invariant subspaces of V ;69
65
Indeed, we set A := J1 . Then A is similar both to J1 and to J2 , and we simply apply
Proposition 8.6.17 twice: first to A and J1 , and then to A and J2 .
66
Here, it is important that the domain and the codomain of f are the same.
67
As usual, IdA is the identity function on A, that is, IdA : A → A is given by IdA (a) = a for all
a ∈ A.
68
Note that this implies that Ker(f 0 ), Ker(f 1 ), Ker(f 2 ), Ker(f 3 ), . . . are all defined.
69
Since f and IdV are linear, Proposition 4.1.7 guarantees that f + λIdV is linear for all λ ∈ F.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 594
(e) for all positive integers r, and all v1 , . . . , vr ∈ V , if vi ∈ Ker(f i ) \ Ker(f i−1 ) for
all i ∈ {1, . . . , r}, then the set {v1 , . . . , vr } is linearly independent;
(f ) for all non-negative integers r, all i ∈ {0, . . . , r}, and all v ∈ V , we have that
v ∈ Ker(f r ) if and only if f r−i (v) ∈ Ker(f i );
(g) for all positive integers r and vectors v ∈ Ker(f r ) \ Ker(f r−1 ), both the following
hold:
Proof. We prove (a)-(g) in order, with one exception: we prove (c) last, because our
proof of (c) relies on (f).
(a) The function f 0 = IdV is obviously linear, and the function f 1 = f is linear
by assumption. The result now follows from Proposition 4.1.7(c) via an obvious
induction.
(b) First of all, by definition, f 0 = IdV , and so Ker(f 0 ) = {0}. Now, fix a
non-negative integer r. We must show that Ker(f r ) ⊆ Ker(f r+1 ). Fix v ∈ Ker(f r ).
Then
(∗) (∗∗)
f r+1 (v) = f f r (v) = f (0) = 0,
where (*) follows from the fact that v ∈ Ker(f r ), and (**) follows from the fact that
f is linear and from Proposition 4.1.6. This proves that Ker(f r ) ⊆ Ker(f r+1 ).
(d) Fix a non-negative integer r and a scalar λ ∈ F. We first show that Ker(f r )
is (f + λIdV )-invariant. Fix any v ∈ Ker(f r ), so that f r (v) = 0; we must show that
(f + λIdV )(v) ∈ Ker(f r ). We compute:
(∗)
f r (f + λIdV )(v) = f r+1 (v) + λf r (v)
f f r (v) + λf r (v)
=
(∗∗)
= f (0) +λ0 = 0,
|{z}
(∗∗∗)
= 0
where (*) follows from the linearity of f r , (**) follows from the fact that v ∈
Ker(f r ) (and so f r (v) = 0), and (***) follows from the linearity of f and from
Proposition 4.1.6. Thus, (f + λIdV )(v) ∈ Ker(f r ), and it follows that Ker(f r ) is
(f + λIdV )-invariant.
It remains to show that Im(f r ) is (f + λIdV )-invariant. Fix any v ∈ Im(f r );
we must show that (f + λIdV )(v) ∈ Im(f r ). Since v ∈ Im(f r ), we know that there
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 595
f f r (u) + λf r (u)
=
f r f (u) + λf r (u)
=
(∗)
f r f (u) + λu ,
=
| {z }
=:w
where (*) follows from the linearity of f r . We have now obtained that (f +λIdV )(v) =
f r (w), and we deduce that (f + λIdV )(v) ∈ Im(f r ). This proves that Im(f r ) is
(f + λIdV )-invariant.
(e) Fix a positive integer r and vectors v1 , . . . , vr ∈ V , and assume that vi ∈
Ker(f i ) \ Ker(f i−1 ) for all i ∈ {1, . . . , r}. We must show that the set {v1 , . . . , vr } is
linearly independent. Fix scalars α1 , . . . , αr ∈ F such that
α1 v1 + · · · + αr vr = 0.
α1 v1 + · · · + αk vk = 0.
We apply f k−1 to both sides of the equation above, and using the linearity of f k−1
and Proposition 4.1.6, we obtain
In view of (b), we have that v1 , . . . , vk−1 ∈ Ker(f k−1 ), and consequently, f k−1 (v1 ) =
· · · = f k−1 (vk−1 ) = 0. Thus, αk f k−1 (vk ) = 0. Since αk = ̸ 0, it follows that
f k−1 (vk ) = 0, and consequently, vk ∈ Ker(f k−1 ), a contradiction.
(f) Fix a non-negative integer integer r, an index i ∈ {0, . . . , r}, and a vector
v ∈ V . Then f r (v) = f i f r−i (v) , and consequently, we have the following sequence
of equivalences:
v ∈ Ker(f r ) ⇐⇒ f r (v) = 0
f i f r−i (v) = 0
⇐⇒
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 596
(g) Fix a positive integer r and a vector v ∈ Ker(f r ) \ Ker(f r−1 ). By (f), we
know that f r−i (v)∈ Ker(f i ) \ Ker(f i−1 ) for all i ∈ {1, . . . , r}.70 But now by (e), we
have that the set f r−1 (v), f r−2 (v), . . . , f 2 (v), f (v), v is linearly independent.
(c) Fix a non-negative integer r, and assume that Ker(f r ) = Ker(f r+1 ). We must
show that Ker(f r ) = Ker(f r+1 ) = Ker(f r+2 ) = Ker(f r+3 ) = . . . . Clearly, it suffices
to show that for all non-negative integers j, we have that Ker(f r+j ) = Ker(f r+j+1 ).
Suppose otherwise. In view of (b), this means that there exists some non-negative
integer j such that Ker(f r+j ) ⫋ Ker(f r+j+1 ). Fix some v ∈ Ker(f r+j+1 ) \ Ker(f r+j ).
Then (f) guarantees that f j (v) ∈ Ker(f r+1 ) \ Ker(f r ), contrary to the fact that
Ker(f r ) = Ker(f r+1 ).
Moreover, for this integer p, we have that p ≤ dim Ker(f p ) ≤ dim(V ) and V =
Ker(f p ) ⊕ Im(f p ).
Remark: It is possible that p = 0. In this case, we simply have that {0} = Ker(f 0 ) =
Ker(f 1 ) = Ker(f 2 ) = . . . . In view of Theorem 4.2.4, this happens precisely when
our linear function f is one-to-one.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 597
For all i ∈ {1, . . . , p}, we fix vi ∈ Ker(f i ) \ Ker(f i−1 ). By Proposition 8.6.18(e),
vectors v1 , . . . , vp are linearly independent, and obviously, they all belong to Ker(f p ).
By Theorem3.2.17(a), all linearly independent sets in Ker(f p ) are of size at most
dim Ker(f p ) , and we deduce that p ≤ dim Ker(f p ) . ♦
It remains to show that V = Ker(f p ) ⊕ Im(f p ), that is, that Ker(f p ) ∩ Im(f p ) =
{0} and V = Ker(f p ) + Im(f p ).
We first show that Ker(f p ) ∩ Im(f p ) = {0}. Since both Ker(f p ) and Im(f p ) are
subspaces of V , they both contain 0, and so 0 ∈ Ker(f p ) ∩ Im(f p ). Now, fix any
v ∈ Ker(f p ) ∩ Im(f p ); we must show that v = 0. Since v ∈ Im(f p ), we know that
there exists some u ∈ V such that f p (u) = v. We now apply f p to both sides of the
equation, and we obtain f 2p (u) = f p (v) = 0, where the last equality follows from
the fact that v ∈ Ker(f p ). But now u ∈ Ker(f 2p ) = Ker(f p ),72 and we deduce that
f p (u) = 0, i.e. v = 0. This proves that Ker(f p ) ∩ Im(f p ) = {0}.
It remains to show that V = Ker(f p ) + Im(f p ). We compute:
(∗)
dim Ker(f p ) + Im(f p ) = dim Ker(f p ) + Im(f p ) + dim Ker(f p ) ∩ Im(f p )
(∗∗) (∗∗∗∗)
dim Ker(f p ) + dim Im(f p )
= = dim(V ),
| {z }
(∗∗∗)
= rank(f p )
where (*) follows from the fact that Ker(f p ) ∩ Im(f p ) = {0} (proven above), (**)
follows from Theorem 3.2.23, (***) follows from the definition of rank(f p ), and
(****) follows from the rank-nullity theorem. Since V is finite-dimensional, Theo-
rem 3.2.21(c) now guarantees that Ker(f p ) + Im(f p ) = V , and we are done.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 598
∞
S r
= Ker f − λIdV .
r=0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 599
We are now ready to prove (a) and (b). Fix a scalar λ ∈ F. By Claims 1 and 4,
Gλ is an f -invariant subspace of V .77 Moreover, by Claim 2, Eλ is a subspace of
Gλ . This proves (a). For (b), suppose first that Gλ is non-trivial, and fix some
p .
v ∈ Gλ \ {0}. Let p be the smallest positive integer such that v ∈ Ker (f − λIdV )
Then v ∈ Ker (f −λIdV )p \Ker (f −λIdV )p−1 , and so by Claim 3, λ is an eigenvalue
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 600
both contain 0, i.e. 0 ∈ Gλ1 ∩ Gλ2 . Now, fix any u ∈ Gλ1 ∩ Gλ2 ; we must show that
u ̸= 0. Fix the smallest non-negative integer p such that u ∈ Ker (f − λ1 IdV )p .
Claim 5. For all non-negative integers k, we have that (f −λ2 IdV )k (w) =
(λ1 − λ2 )k w.
Now, fix a non-negative integer k, and assume inductively that (f − λ2 IdV )k (w) =
(λ1 − λ2 )k w. We then compute:
(∗)
= (f − λ2 IdV )k (λ1 w − λ2 w)
(f − λ2 IdV )k (λ1 − λ2 )w
=
(∗∗)
= (λ1 − λ2 )(f − λ2 IdV )k (w)
(∗∗∗)
= (λ1 − λ2 )(λ1 − λ2 )k w
= (λ1 − λ2 )k+1 w,
where (*) follows from the fact that w is an eigenvector of f associated with the
eigenvalue λ1 (and so f (w) = λ1 w), (**) follows from the linearity of (f − λ2 IdV )k ,
and (***) follows from the induction hypothesis. This completes the induction. ♦
Now, suppose that w ∈ Gλ2 . Then there exists a non-negative integer k such
that w ∈ Ker (f − λ2 IdV )k . But now
(∗) (∗∗)
0 = (f − λ2 IdV )k (w) = (λ1 − λ2 )k (w),
where (*) follows from the fact that w ∈ Ker (f − λ2 IdV )k , and (**) follows from
78
This is because Ker (f − λ1 IdV )0 = Ker(IdV ) = {0}.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 601
Note that the elements of the generalized eigenspace Gλ (f ) are precisely the general-
ized eigenvectors of f associated with λ. Moreover, by Proposition 8.1.4, we have
that Eλ (f ) = Ker(f − λIdV ). So, eigenvectors of f associated with λ are precisely
the the generalized eigenvectors of rank 1 of f associated with λ.
Remark: In view of Proposition 8.6.20(c), any generalized eigenvector of a linear
function f : V → V (where V is a vector space over a field F) is associated with
exactly one eigenvalue of f .
Remark: By Proposition 8.6.18(g), every Jordan chain is a linearly independent
set. We note that the basis B from the proof of Theorem 8.6.4 will turn out to be
the union of pairwise disjoint Jordan chains (associated with various eigenvalues).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 602
... ⫋ Ker (f − λi IdV )pi = Ker (f − λi IdV )pi +1 = ...,
and in particular, Gλi (f ) = Ker (f − λi IdV )pi .
Remark: Since the field F is algebraically closed, we know that pf (λ) can be factored
into linear terms, and so pf (λ) = (λ−λ1 )m1 . . . (λ−λk )mk and m1 +· · ·+mk = dim(V ).
Proof. Set n := dim(V ). To simplify notation, for all indices i ∈ {1, . . . , k}, we
∞
set Gi := Gλi (f ) and gi := f − λi IdV ,81 so that Gi = Ker gir . Now, by
S
i=0
Proposition 8.6.19 applied to gi (for i ∈ {1, . . . , k}), we know that there exists a
(unique) non-negative integer pi such that
Claim 1. For all i ∈ {1, . . . , k}, both Gi and Im(gipi ) are f -invariant
subspaces of V , and moreover, V = Gi ⊕ Im(gipi ).
Claim 2. For all indices i ∈ {1, . . . , k}, we have that pfi (λ) = (λ − λi )mi ,
dim(Gi ) = mi , and pi ≤ mi .
81
Since f and IdV are linear, Proposition 4.1.7 guarantees that gi is linear as well.
82
Indeed, by Proposition 8.6.18(d), both Ker(gipi ) and Im(gipi ) are (gi + λi IdV )-invariant, and by
construction, gi + λi IdV = f .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 603
Proof of Claim 2. Fix an index i ∈ {1, . . . , k}. By the definition of the characteristic
polynomial, we know that the degree of pfi (λ) is equal to dim(Gi ), and by Proposi-
tion 8.6.19 applied to gi , we know that pi ≤ dim(Gi ). So, it suffices to show that
pfi (λ) = (λ − λi )mi .
By Claim 1, Im(gipi ) is an f -invariant subspace of V , and so hi := f |Im(gpi ) is
i
well defined. Further, by Claim 1 and by Proposition 8.6.11, we know that
where (*) follows from Theorem 3.2.23, and (**) follows from Claim 2. Thus,
U is an n-dimensional subspace of the n-dimensional vector space V , and so by
Theorem 3.2.21(c), we have that U = V , that is, V = G1 ⊕ · · · ⊕ Gk . This completes
the argument.
Span(v1 , . . . , vt ) ∩ U = {0}.
83 (∗)
Indeed, u is a non-zero vector of V that satisfies f (u) = fi (u) = λ0 u, where (*) follows from
the fact that u is an eigenvector of fi associated with the eigenvalue λ0 .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 604
Proof. Suppose otherwise, and fix an index i ∈ {1, . . . , t} such that vi ∈ U . Then
vi ∈ Span(v1 , . . . , vt ) ∩ U = {0}, and consequently, vi = 0. But this is impossible
since vectors v1 , . . . , vt are linearly independent.
Remark: Some texts take (b) as the definition of linear independence over U .
By Proposition 8.6.23, and in particular, by the equivalence of (a) and (b), this
alternative definition is equivalent to our definition.
Proof. We will prove the implications “(a) =⇒ (b) =⇒ (c) =⇒ (d) =⇒ (a).” Since
U is m-dimensional and therefore has at least one basis of size m, the implication
“(c) =⇒ (d)” is immediate. We must prove the remaining three implications.
First, we assume (a), and we prove (b). Fix scalars α1 , . . . , αt ∈ F, and assume
that α1 v1 +· · ·+αt vt ∈ U . Then α1 v1 +· · ·+αt vt ∈ Span(v1 , . . . , vt )∩U . But by (a),
we have that Span(v1 , . . . , vt ) ∩ U = {0}, and we deduce that α1 v1 + · · · + αt vt = 0.
But once again by (a), vectors v1 , . . . , vt are linearly independent. So, α1 = · · · =
αt = 0. This proves (b).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 605
Next, we assume (b), and we prove (c). Fix any basis B = {b1 , . . . , bm } of U . We
must show that vectors b1 , . . . , bm , v1 , . . . , vt are linearly independent. Fix scalars
α1 , . . . , αm , β1 , . . . , βt ∈ F such that α1 b1 + · · · + αm bm + β1 v1 + · · · + βt vt = 0. Then
β1 v1 + · · · + βt vt = −α1 b1 − · · · − αm bm ∈ Span(b1 , . . . , bm ) = U , and so by (b),
we have that β1 = · · · = βt = 0. Consequently, α1 b1 + · · · + αm bm = 0, and so since
B = {b1 , . . . , bm } is linearly independent (because it is a basis of U ), we have that
α1 = · · · = αm = 0. We have now shown that α1 = · · · = αt = β1 = · · · = βm = 0,
and (c) follows.
Finally, we assume (d), and we prove (a). Using (d), we fix a basis B =
{b1 , . . . , bm } of U such that vectors b1 , . . . , bm , v1 , . . . , vt are linearly independent.
It is clear that {v1 , . . . , vt } is linearly independent, and we just need to show that
Span(v1 , . . . , vt ) ∩ U = {0}. Since Span(v1 , . . . , vt ) and U are both subspaces
of V , they both contain 0, and so 0 ∈ Span(v1 , . . . , vt ) ∩ U . Now, fix any u ∈
Span(v1 , . . . , vt ) ∩ U ; we must show that u = 0. Since u ∈ Span(v1 , . . . , vt ), we
know that there exist scalars α1 , . . . , αt ∈ F such that u = α1 v1 + · · · + αt vt . On
the other hand, since u ∈ U , and since B = {b1 , . . . , bm } is a basis of U , we know
that there exist scalars β1 , . . . , βm ∈ F such that u = β1 b1 + · · · + βm bm . But now
α1 v1 + · · · + αt vt = β1 b1 + · · · + βm bm , and consequently, β1 b1 + · · · + βm bm −
α1 v1 − · · · − αt vt = 0. Since {b1 , . . . , bm , v1 , . . . , vt } is linearly independent, we
deduce that β1 = · · · = βm = −α1 = · · · = −αt = 0. So, u = 0. This proves that
Span(v1 , . . . , vt ) ∩ U = {0}, and (a) follows.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 606
Proposition 8.6.25. Let F be a field, and let A ∈ Fn×n be a square matrix. Then
the following are equivalent:
(a) A is nilpotent;
(b) pA (λ) = λn ;
(c) A has only one eigenvalue, namely 0, and the algebraic multiplicity of this
eigenvalue is n.
Remark: Note that Proposition 8.6.25 immediately implies that the only eigenvalue
of a nilpotent n × n matrix is 0, and moreover, the algebraic multiplicity of this
eigenvalue is n.
Proof. Obviously, (b) and (c) are equivalent. We will complete the proof by showing
that (a) and (b) are equivalent, that is, that A is nilpotent if and only if pA (λ) = λn .
If pA (λ) = λn , then the Cayley-Hamilton theorem (see section 8.3) guarantees
that An = On×n , and consequently, A is nilpotent.
For the reverse implication, we assume that A is nilpotent, and we prove that
pA (λ) = λn . Using the fact that A is nilpotent, we fix a positive integer p such that
Ap = On×n . Now, recall the following factoring formula:
p−1
xp − y p = (x − y) xp−i−1 y i .
P
i=0
Taking the determinant of both sides, and keeping the multiplicative property of
determinants in mind (see Theorem 7.5.2), we get that
p−1
P p−i−1 i
det(λp In − Ap ) = det(λIn − A) det λ A .
i=0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 607
(a) f is nilpotent;
(b) pf (λ) = λn ;
(c) f has only one eigenvalue, namely 0, and the algebraic multiplicity of this
eigenvalue is n.
Proof. Obviously, (b) and (c) are equivalent, and we just need to prove that (a)
and (b) are equivalent. For this, we simply “translate” Proposition 8.6.25 into
the language
of linear functions, as follows. Let B be any basis of V , and set
B := B f B ; by Proposition 8.2.12, we have that pf (λ) = pB (λ). We note that
Theorem 4.5.3(c) and an easyinduction on p imply that for all non-negative integers
p, we have that B p = B f p B . We now have the following sequence of equivalent
statements:
f is nilpotent ⇐⇒ ∃p ∈ N s.t. f p is the zero function
fp
⇐⇒ ∃p ∈ N s.t. B B
= On×n
⇐⇒ ∃p ∈ N s.t. B p = On×n .
⇐⇒ B is nilpotent
(∗)
⇐⇒ pB (λ) = λn
⇐⇒ pf (λ) = λn ,
where r is the smallest positive integer such that f r (v) = 0.86 Here, we have that
v ∈ Ker(f r ) \ Ker(f r−1 ), i.e. v is a generalized eignvector of rank r of the nilpotent
function f and associated with the eigenvalue 0, and Jf (v) is the Jordan chain
started by v. By Proposition 8.6.18(g), Jf (v) is a linearly independent set. Now, a
basis B of V is canonical with respect to the nilpotent linear function f if it is of the
form
B = Jf (u1 ) ∪ · · · ∪ Jf (uk ),
86
Such an r exists because f is nilpotent.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 608
where u1 , . . . , uk are some non-zero vectors in V , and Jf (u1 ), . . . , Jf (uk ) are pairwise
disjoint. So, a canonical basis of V associated with the nilpotent linear function
f is a basis that is the union of pairwise disjoint Jordan chains. Our goal is to
prove Theorem 8.6.28, which states that such a basis always exists. We begin with a
technical proposition, which readily implies Theorem 8.6.28.
Proof. We may assume inductively that the proposition is true for non-trivial, finite-
dimensional vector spaces of dimension strictly smaller than dim(V ).
To simplify notation, for each non-negative integer r, we set Kr := Ker(f r ). So,
Kp = V . Let us first explain why we may assume that Kp−1 ⫋ V . Let q be the
smallest non-negative integer such that Kq = V (so, q ≤ p). Since K0 = {0} and V
is non-trivial, we know that K0 ⫋ V , and in particular, q ≥ 1. Now, suppose that
q < p. By Proposition 8.6.19, we then have that
K0 ⫋ K1 ⫋ K2 ⫋ . . . ⫋ Kq = Kq+1 = . . . ,
|{z} |{z}
={0} =V
K0 ⫋ K1 ⫋ K2 ⫋ . . . ⫋ Kp = Kp+1 = . . . ,
|{z} |{z}
={0} =V
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 609
independent over Kp−1 . So, we may now assume that ℓ = 0, for otherwise, we simply
consider vectors v1 , . . . , vt , z1 , . . . , zℓ instead of v1 , . . . , vt . With this set-up, Np−1 ∪
{v1 , . . . , vt } is a basis of V . Note that this implies that t = dim(V ) − dim(Kp−1 ).
Suppose first that p = 1, so that {0} = K0 ⫋ Ker(f ) = V .88 Then Jf (vi ) = {vi }
for all i ∈ {1, . . . , t}. Moreover, we have that Np−1 = ∅,89 and therefore, B =
{v1 , . . . , vt } is a basis of V .90 But note that B = Jf (v1 ) ∪ · · · ∪ Jf (vt ), and obviously,
the Jordan chains Jf (v1 ), . . . , Jf (vt ) are pairwise disjoint.91 So, B satisfies the
requirements from the statement of the proposition, and we are done.
From now on, we may assume that p ≥ 2. Note that this implies that {0} = K0 ⫋
Kp−1 ⫋ Kp = V , and in particular, by Theorem 3.2.21, 0 < dim(Kp−1 ) < dim(V ).
So, we will be able to apply the induction hypothesis to the vector space Kp−1 .
By Proposition 8.6.18(d), Kp−1 is f -invariant, and so g := f |Kp−1 is well defined
and obviously linear (because f is linear). Clearly, g p−1 is the zero function,92 and
in particular, g is nilpotent. Moreover, it is clear that for all i ∈ {0, . . . , p − 1}, we
have that Ker(g i ) = Ki .93
By Proposition 8.6.18(f), vectors f (v1 ), . . . , f (vt ) belong to Kp−1 , and by Propo-
sition 8.6.24, they are linearly independent over Kp−2 . We now apply the induc-
tion hypothesis applied to Kp−1 , the nilpotent linear function g, and the vectors
f (v1 ), . . . , f (vt ), and we deduce that there exist non-zero vectors vt+1 , . . . , vt+s ∈
Kp−1 (s ≥ 0) such that the Jordan chains
Jg f (v1 ) , . . . , Jg f (vt ) , Jg (vt+1 ), . . . , Jg (vt+s )
where (*) follows from the fact that g = f |Kp−1 , and (**) follows from the fact that u ∈ Kp−1 .
93
This readily follows from the fact that g = f |Kp−1 , but here is a formal proof. Fix an index
i ∈ {0, . . . , p − 1}. Clearly, for all u ∈ Ker(g i ), we have that f i (u) = g i (u) = 0, and so u ∈ Ki . This
proves that Ker(g i ) ⊆ Ki . For the reverse inclusion, fix any u ∈ Ki . Since Ki ⊆ Kp−1 , we know
that u ∈ Kp−1 , and in particular, g i (u) is defined. But now g i (u) = f i (u) = 0, and we deduce that
u ∈ Ker(g i ). This proves that Ki ⊆ Ker(g i ).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 610
First of all, since g = f |Kp−1 , it is clear that for any u ∈ Kp−1 , we have that
Jg (u) = Jf (u). Therefore,
C = Jf f (v1 ) ∪ · · · ∪ Jf f (vt ) ∪ Jf (vt+1 ) ∪ · · · ∪ Jf (vt+s ),
and the Jordan chains Jf f (v1 ) , . . . , Jf f (vt ) , Jf (vt+1 ), . . . , Jf (vt+s ) are pairwise
disjoint. Moreover, for all i ∈ {1, . . . , t}, we have that Jf (vi ) = Jf f (vi ) ∪ {vi }.
Since vectors v1 , . . . , vt are pairwise distinct (because they are linearly independent)
and do not belong to Kp−1 , whereas all vectors of C do belong to Kp−1 , we see that
the Jordan chains Jf (v1 ), . . . , Jf (vt ), Jf (vt+1 ), . . . , Jf (vt+s ) are pairwise disjoint.
Now, C is a basis of Kp−1 , and vectors v1 , . . . , vt are linearly independent over
Kp−1 . So, by Proposition 8.6.23, C ∪ {v1 , . . . , vt } is linearly independent. But B was
obtained from C ∪ {v1 , . . . , vt } by simply rearranging the elements of the ordered
set C ∪ {v1 , . . . , vt } (and placing v1 , . . . , vt in the appropriate places). So, B is
linearly independent. Moreover, |B| = |C| + t. Since t = dim(V ) − dim(Kp−1 ), and
since |C| = dim(Kp−1 ) (because C is a basis of Kp−1 ), we have that |B| = dim(V ).
Corollary 3.2.20(a) now guarantees that B is a basis of V . This completes the
argument.
B = Jf (u1 ) ∪ · · · ∪ Jf (uk ).
Our goal is to show that B f B is a Jordan matrix.
For each i ∈ {1, . . . , k}, let ai be the positive integer for which ui ∈ Ker(f ai ) \
Ker(f ai −1 ), so that Jf (ui ) = f ai −1 (ui ), f ai −2 (ui ), . . . , f 2 (ui ), f (ui ), ui , and set
Ui := Span Jf (ui ) , so that Ji (ui ) is a basis of Ui . We will show that B f B =
Ja1 (0) ⊕ · · · ⊕ Jak (0).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 611
But note that f (ai −1)+1 (ui ) = f ai (ui ) = 0, and so we in fact have that
i −2
aP i −1
aP
f (u) = αj f j+1 (ui ) = αj−1 f j (ui ).
j=0 j=1
In view of the Claim, for each i ∈ {1, . . . , k}, we may define fi := f |Ui . By the
Claim and Proposition 8.6.11, we have that
B
f B
= J (u )
f1 J (u )
⊕ · · · ⊕ J (u )
fk J (u )
.
f 1 f 1 f k f k
On the other hand, for all indices i ∈ {1, . . . , k}, we have the following:
J (u )
fi J (u )
f i f i
(∗)
h i
fi f ai −1 (ui ) J fi f ai −2 (ui ) J
= ... fi ui Jf (ui )
f (ui ) f (ui )
h i
f ai (ui ) f ai −1 (ui )
= Jf (ui ) Jf (ui )
... f (ui ) Jf (ui )
(∗∗)
= 0 e1 . . . eai −1 = Jai (0),
where (*) follows from Theorem 4.5.1, and where in (**), e1 , . . . , eai are the standard
basis vectors of Fai . It now follows that
B
f B = J (u ) f1 J (u ) ⊕ · · · ⊕ J (u ) fk J (u )
f 1 f 1 f k f k
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 612
The existence part of Theorems 8.6.2 and 8.6.4. We are now ready to prove
the main result of this section. We first prove the existence part of Theorem 8.6.4
(see Theorem 8.6.30 below); as we shall see, it readily follows from Theorems 8.6.21
and 8.6.29. Corollary 8.6.31 readily follows from Theorem 8.6.30, and it constitutes
the existence part of Theorem 8.6.2.
Theorem 8.6.30. Let V be a non-trivial, finite-dimensional vector space over an
algebraically closed field F, and let f : V → V be a linear function. Then there
exists a basis B of V such that B f B is a Jordan matrix.
Proof. Set n := dim(V ), and let
λ1 , . . . , λ 1 , . . . , λ k , . . . , λ k
| {z } | {z }
m1 mk
Now, for each index i ∈ {1, . . . , k}, we proceed as follows. Obviously, the linear
function fi − λi IdGi is nilpotent.94 Using Theorem 8.6.29, for each i ∈ {1, . . . , k},
we fix a basis Bi such that Ji := B fi − λi IdGi B is a matrix in Jordan normal
i i
form; by Theorem 8.6.29, we know that all the Jordan blocks of the Jordan matrix
Ji are of the form Jt (0) for some positive integer t. But now
(∗) (∗∗)
B
f B
= B
f − λi IdGi B
+ λi B IdGi B = Ji + λi Imi ,
where (*) follows from Theorem 4.5.3, and (**) follows from the definition of Ji and
from formula from Theorem
4.5.1. Since the matrix Ji is in Jordan normal form,
so is the matrix B f B , and moreover, we see that each Jordan block Jt (0) of the
former corresponds to a Jordan block Jt (λi ) of the latter.
Now, set B := B1 ∪ · · · ∪ Bk . Then by Proposition 8.6.11, we have that
B
f B = B f1 B ⊕ · · · ⊕ B fk B .
1 1 k k
Since B1
f1 B1
,...,B fk Bk
are Jordan matrices, so is B
f B
.
k
94 pi pi
Indeed, for all v ∈ Gi , we have that (fi − λi IdGi ) (v) = (f − λi IdV ) (v) = 0, and it follows
that (fi − λi IdGi )pi is a zero function. So, fi − λi IdGi is nilpotent.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 613
Theorem 8.6.6. Let F be an algebraically closed field, let A ∈ Fn×n , and let
λ1 , . . . , λ 1 , . . . , λ k , . . . , λ k
| {z } | {z }
m1 mk
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 614
(i) each Jordan block of the Jordan matrix J is of the form Jt (λi ) for some
i ∈ {1, . . . , k} and t ∈ {1, . . . , mi };
(ii) for each i ∈ {1, . . . , k} and each positive integer r, the Jordan matrix J has
exactly
rank (A − λi In )r−1 − rank (A − λi In )r
∞
S r
= Nul A − λIn ,
r=0
96
The reason we specify that r is positive (rather than merely non-negative) is simply that
(A − λIn )0 = In , and so there are no non-zero vectors v ∈ Fn such that (A − λIn )0 v = 0.
97
Note that this means that v ∈ Nul(Ar ) \ Nul(Ar−1 ).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 615
i.e. the set whose elements are precisely the generalized eigenvectors of A
associated with λ, plus the vector 0.
98
The fact that pA (λ) can be factored into linear terms follows from the fact that the field F is
algebraically closed. Of course, we only know that such a factorization exists and do not have an
actual formula/algorithm for finding it. If we get stuck factoring pA (λ), then we are well and truly
stuck: we will not be able to compute the matrices J and P that we need.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 616
and we will further have rank A0i > rank A1i > · · · > rank Api i −1 >
rank Api i = rank Api i +1 will be the first instance of “repeating rank.”100
associated with A and λi ; the goal is to find the vectors u that start
these Jordan chains (one vector u per Jordan block Jpi (λi ) in J). We
proceed as follows. We extend the basis Ni,pi −1 of Nul(Api i −1 ) to a basis
of Nul(Api i ). For this, we can use Proposition 3.3.21 (the needed matrix
is formed by the vectors of Ni,pi −1 and of Ni,pi , with a vertical dotted
line placed between them). Each vector u that we added to Ni,pi −1 to
form our basis of Nul(Api i ) starts a Jordan chain Api i −1 u, . . . , Ai u, u
For this pi , we have that dim Nul Api i = dim Gλi (A) = mi , and so by the rank-nullity theorem,
rank Api i = n − mi . On the other hand, Theorem 3.2.21 guarantees that 0 = dim Nul A0i
<
pi
, and consequently (by the rank-nullity theorem), n = rank A0i > · · · >
· · · < dim Nul Ai
pi
that Nul Ari = Nul Api i , and consequently (by
rank Ai = pi − mi . For integers r > pi , we have
the rank-nullity theorem), rank Ari = rank Api i = n − mi .
100
In subsection 8.6.2, our recipe said that we should keep computing until we get “repeating rank”
for the first time. Here, we give a bit of a shortcut: we keep computing until we get rank n − mi for
the first time, and we are guaranteed that the rank will start repeating itself after that.
101
Note that A0i = In , and consequently, Nul(A0i ) = Nul(In ) = {0} and Ni,0 = ∅.
102
Since we are currently processing the eigenvalue λi , we are only interested in the Jordan blocks
associated with this particular eigenvalue. The Jordan blocks associated with the other eigenvalues
are computed when we process those other eigenvalues.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 617
4. We form J as the direct sum of the Jordan blocks that we have computed
103
Let us be more precise. Suppose we have already generated a Jordan chain As−1 i u, . . . , Ai u, u
for some s > t. Then As−ti u is the unique generalized eigenvector of rank t of A associated with the
eigenvalue λi that comes from this Jordan chain. We select such a generalized eigenvector of rank t
out of each Jordan chain associated with A and λi that we have already generated.
104
Let us consider an example. Suppose that we have determined (using Theorem 8.6.6) that the
Jordan blocks of J associated with the eigenvalue λi are precisely
J18 (λi ), J9 (λi ), J9 (λi ), J9 (λi ), J5 (λi ), J5 (λi ), J3 (λi ), J1 (λi ), J1 (λi ),
counting repetitions. Suppose that we have already generated the needed Jordan chains that
correspond to the Jordan blocks J18 (λi ), J9 (λi ), J9 (λi ), J9 (λi ), and that we are currently trying to
generate the Jordan chains that correspond to the Jordan blocks J5 (λi ), J5 (λi ). Suppose that the
Jordan chains that we have already generated are the following:
the Jordan chain {A17 16
i u1 , Ai u1 , . . . , Ai u1 , u1 } corresponding to the Jordan block J18 (λi ),
the Jordan chain {Ai w1 , Ai w1 , . . . , Ai w1 , w1 } corresponding to the first Jordan block J9 (λi ),
8 7
the Jordan chain {A8i w2 , A7i w2 , . . . , Ai w2 , w2 } corresponding to the second Jordan block
J9 (λi ),
the Jordan chain {A8i w3 , A7i w3 , . . . , Ai w3 , w3 } corresponding to the third Jordan block J9 (λi ).
Since we are now processing the Jordan blocks J5 (λi ), J5 (λi ), we first to need to identify the
generalized eigenvectors of rank 5 of the matrix A associated with the eigenvalue λi from the four
Jordan chains above. These are the vectors A13 4 4 4
i u1 , Ai w1 , Ai w2 , Ai w3 . Now we form the set
−
:= Ni,4 ∪ A13 4 4 4
Ni,5 i u1 , Ai w1 , Ai w2 , Ai w3 .
−
The set Ni,5 is linearly independent in Nul(A5i ), and so using Proposition 3.3.21, we can extend it
−
to a basis of Nul(A5i ) (the columns of the needed matrix are the vectors of Ni,5 , followed by the
−
vectors of Ni,5 , with a vertical dotted line between the vectors of Ni,5 and the vectors of Ni,5 ).
Because we have two Jordan blocks J5 (λi ), J5 (λi ), we will need to add exactly two vectors, say
−
z1 , z2 , to Ni,5 in order to obtain a basis of Nul(A5i ). (Vectors z1 , z2 will be the vectors of Ni,5 that
Proposition 3.3.21 gives us. More precisely, they will be the the pivot columns to the right of the
vertical dotted line of the matrix that we formed when we used Proposition 3.3.21.) Now z1 , z2 are
generalized eigenvectors of rank 5 of A associated with the eigenvalue λi , and they will start the
Jordan chains of length five corresponding to our two Jordan blocks J5 (λi ), J5 (λi ). So, the Jordan
chains that correspond to our two Jordan blocks J5 (λi ), J5 (λi ) are {A4i z1 , A3i z1 , A2i z1 , Ai z1 , z1 } and
{A4i z2 , A3i z2 , A2i z2 , Ai z2 , z2 }.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 618
(associated with all the eigenvalues of A), and we form P using the corresponding
Jordan chains. We make sure that the Jordan blocks of J and the Jordan
chains in P are placed in a corresponding order.
Some numerical examples. We now revisit Examples 8.6.8 and 8.6.9 from
subsection 8.6.2. In each case, we are given a square matrix A with entries in C. In
Examples 8.6.8 and 8.6.9, we computed the Jordan normal form of the matrix in
question. We will now compute both a Jordan matrix J and an invertible matrix P
such that J = P −1 AP .
3 1 0 0 0 0 0 −1 0 1
−3 1 5 2 −2 −4 −7 4 −1 3
0 1 3 0 0 0 0 −1 0 1
−2 −1 3 4 −1 −2 −3 2 −1 2
−1 0 2 1 2 −2 −1 1 0 1
A := .
−1 0 1 0 0 2 −1 0 0 1
1 1 −2 −1 1 2 7 −2 1 −2
−1 0 1 0 0 −1 0 3 1 0
0 0 0 0 0 0 1 0 3 −1
1 1 −2 −1 1 2 5 −2 1 0
Compute a Jordan matrix J and an invertible matrix P , both in C10×10 , such that
J = P −1 AP .
Remark: This is the matrix from Example 8.6.8. In that example, we computed
the matrix J. Here, we will see how to compute the matrix P .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 619
0 1 0 0 0 0 0 −1 0 1
−3 −2 5 2 −2 −4 −7 4 −1 3
0 1 0 0 0 0 0 −1 0 1
−2 −1 3 1 −1 −2 −3 2 −1 2
−1 0 2 1 −1 −2 −1 1 0 1
A1 := A − λ1 I10 = .
−1 0 1 0 0 −1 −1 0 0 1
1 1 −2 −1 1 2 4 −2 1 −2
−1 0 1 0 0 −1 0 0 1 0
0 0 0 0 0 0 1 0 0 −1
1 1 −2 −1 1 2 5 −2 1 −3
r = 1:
0 1 0 0 0 0 0 −1 0 1
−3 −2 5 2 −2 −4 −7 4 −1 3
0 1 0 0 0 0 0 −1 0 1
−2 −1 3 1 −1 −2 −3 2 −1 2
−1 0 2 1 −1 −2 −1 1 0 1
A11 = .
−1 0 1 0 0 −1 −1 0 0 1
1 1 −2 −1 1 2 4 −2 1 −2
−1 0 1 0 0 −1 0 0 1 0
0 0 0 0 0 0 1 0 0 −1
1 1 −2 −1 1 2 5 −2 1 −3
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 620
1 0 0 1 −1 0 0 1 0 0
0 1 0 0 0 0 0 −1 0 0
0 0 1 1 −1 0 0 1 0 0
0 0 0 0 0 1 0 0 0 0
1
0 0 0 0 0 0 1 0 0 0
RREF(A1 ) = ,
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
and we see that rank A11 = 7. The following is a basis of Nul A11 :
−1 1 −1
0
0
1
−1
1
−1
1 0 0
n
0
1
0
o
N1,1 := , , .
0
0
0
0
0
0
0
0
1
0 0 0
0 0 0
r = 2:
−1 −1 2 1 −1 −1 −2 2 −1 0
0 0 0 0 0 0 0 0 0 0
−1 −1 2 1 −1 −1 −2 2 −1 0
1 1 −2 −1 1 2 4 −2 1 −2
0 0 0 0 0 1 1 0 0 −1
A21 =
1 0 −1 0 0 1 2 0 0 −2
0 0 0 0 0 0 0 0 0 0
1 0 −1 0 0 1 2 0 0 −2
0 0 0 0 0 0 −1 0 0 1
0 0 0 0 0 0 −1 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 621
1 0 −1 0 0 0 0 0 0 0
0 1 −1 −1 1 0 0 −2 1 2
0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 0 −1
2
0 0 0 0 0 0 0 0 0 0
RREF(A1 ) = ,
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
and we see that rank A21 = 4. The following is a basis of Nul A11 :
1 0 0 0 0 0
1
1
−1
2
−1
−2
1
0
0
0
0
0
0 1 0 0 0 0
n
0
0
1
0
0
0
o
N1,2 := , , , , , .
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0 0 0 0 1 0
0 0 0 0 0 1
r = 3:
−1 0 1 0 0 −1 −3 0 0 3
0 0 0 0 0 0 0 0 0 0
−1 0 1 0 0 −1 −3 0 0 3
0 0 0 0 0 0 0 0 0 0
−1 0 1 0 0 −1 −2 0 0 2
A31 =
−1 0 1 0 0 −1 −3 0 0 3
0 0 0 0 0 0 0 0 0 0
−1 0 1 0 0 −1 −3 0 0 3
0 0 0 0 0 0 1 0 0 −1
0 0 0 0 0 0 1 0 0 −1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 622
1 0 −1 0 0 1 0 0 0 0
0 0 0 0 0 0 1 0 0 −1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
3
0 0 0 0 0 0 0 0 0 0
RREF(A1 ) = ,
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 1 0 0 −1 0 0 0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0 0 1 0 0 0 0 0
n
0
0
0
1
0
0
0
0
o
N1,3 := , , , , , , , .
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 1
Since rank A31 = 2,105 we know that rank A31 = rank A41 = rank A51 = . . . , and
vectors of N1,2 , followed by the vectors of N1,3 , with a vertical dotted line between
105
Recall that A is of size 10 × 10, whereas the eigenvalue λ1 is of algebraic multiplicity 8. So, we
needed to compute powers of A1 until we got rank 10 − 8 = 2.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 623
the vectors of N1,2 and the vectors of N1,3 . The matrix we obtain is the following:
1 0 0 0 0 0 0 1 0 0 −1 0 0 0
1 1 −1 2 −1 −2 1 0 0 0 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0 0 0 0
0 1 0 0 0 0 0 0 1 0 0 0 0 0
0 0 1 0 0 0 0 0 0 1 0 0 0 0
.
0 0 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0 0 0 0 0 1
0 0 0 1 0 0 0 0 0 0 0 1 0 0
0 0 0 0 1 0 0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 0 0 0 0 0 0 1
By row reducing this matrix, we see that its pivot columns are all its columns to
the left of the vertical dotted line, plus the first and fifth column to the right of the
vertical dotted line. So, N1,2 can be extended to a basis of Nul A31 by adding the
first and fifth vector of the basis N1,3 to it. The first and fifth vector of N1,3 are the
following vectors:
T
u1 := 0 1 0 0 0 0 0 0 0 0 ;
T
u2 :=
−1 0 0 0 0 1 0 0 0 0 .
These two vectors will start our first two Jordan chains. More precisely, one of our
Jordan blocks J3 (λ1 ) corresponds to the Jordan chain {A21 u1 , A1 u1 , u1 }, whereas
the other Jordan block J3 (λ1 ) corresponds to the Jordan chain {A21 u2 , A1 u2 , u2 }.
If we compute the values of all these vectors and arrange them into a matrix, we
obtain the following (the vertical dotted line separates the two Jordan chains):
−1 1 0 0 0 −1
0 −2 1 0 −1 0
−1 1 0 0 0 0
1 −1 0 1 0 0
0 0 0 1 −1 0
A21 u1 A1 u1 u1 A21 u2 A1 u2
u2 = .
0 0 0 0 0 1
0 1 0 0 1 0
0 0 0 0 0 0
0 0 0 0 0 0
0 1 0 0 1 0
It remains to compute a Jordan chain that corresponds to the Jordan block J2 (λ1 ).
(This Jordan chain will contain two vectors, and it will be of the form {A1 u, u}.)
We first identify the generalized eigenvectors of rank 2 of A associated with the
eigenvalue λ1 inside the Jordan chains (associated with λ1 ) that we have already
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 624
−
created. These are the vectors A1 u1 and A1 u2 . Now, N1,2 := N1,1 ∪ {A1 u1 , A1 u2 } is
2
a linearly independent set of vectors in Nul A 1 , and we would like to extend it to a
2
basis of Nul A1 . We once again use Proposition 3.3.21. We form the matrix whose
−
columns are the vectors of the linearly independent set N1,2 = N1,1 ∪ {A1 u1 , A1 u2 },
followed by the vectors of N1,2 , with a vertical dotted line between the vectors of
the two sets. The matrix that we obtain is the following:
−1 1 −1 1 0 1 0 0 0 0 0
0 0 1 −2 −1 1 1 −1 2 −1 −2
−1 1 −1 1 0 1 0 0 0 0 0
1 0 0 −1 0 0 1 0 0 0 0
0 1 0 0 −1 0 0 1 0 0 0
.
0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0 0 0 1
0 0 1 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0 1 0
0 0 0 1 1 0 0 0 0 0 1
By row reducing, we see that the pivot columns of this matrix are all the columns to
the left of the vertical dotted line, plus the fifth column to the right of the vertical
−
dotted line. So, N1,2 = N1,1 ∪ {A1 u1 , A1 u2 } can be extended to a basis of Nul A21
by adding the fifth vector of N1,2 to it. The fifth vector of N1,2 is the following:
T
u3 = 0 −1 0 0 0 0 0 0 1 0 .
This vector starts our Jordan chain. More precisely, our Jordan block J2 (λ1 ) corre-
sponds to the Jordan chain {A1 u3 , u3 }. By computing and placing this chain into a
matrix, we obtain:
−1 0
1 −1
−1 0
0 0
0 0
A1 u3 u3 = 0
.
0
0 0
1 0
0 1
0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 625
1 1 0 0 0 0 0 −1 0 1
−3 −1 5 2 −2 −4 −7 4 −1 3
0 1 1 0 0 0 0 −1 0 1
−2 −1 3 2 −1 −2 −3 2 −1 2
−1 0 2 1 0 −2 −1 1 0 1
A2 := A − λ2 I10 = .
−1 0 1 0 0 0 −1 0 0 1
1 1 −2 −1 1 2 5 −2 1 −2
−1 0 1 0 0 −1 0 1 1 0
0 0 0 0 0 0 1 0 1 −1
1 1 −2 −1 1 2 5 −2 1 −2
r = 1:
1 1 0 0 0 0 0 −1 0 1
−3 −1 5 2 −2 −4 −7 4 −1 3
0 1 1 0 0 0 0 −1 0 1
−2 −1 3 2 −1 −2 −3 2 −1 2
−1 0 2 1 0 −2 −1 1 0 1
A12 = .
−1 0 1 0 0 0 −1 0 0 1
1 1 −2 −1 1 2 5 −2 1 −2
−1 0 1 0 0 −1 0 1 1 0
0 0 0 0 0 0 1 0 1 −1
1 1 −2 −1 1 2 5 −2 1 −2
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 626
1 0 0 0 0 0 0 −1 0 0
0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 −1 0 0
0 0 0 1 0 0 0 0 0 0
1
0 0 0 0 1 0 0 −1 0 0
RREF(A2 ) = ,
0 0 0 0 0 1 0 −1 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0
and we see that rank A12 = 9. The following is a basis of Nul A12 :
1
0
1
0
n
1
o
N2,1 := .
1
0
1
0
0
r = 2:
0 1 2 1 −1 −1 −2 0 −1 2
−6 −3 10 4 −4 −8 −14 8 −2 6
−1 1 3 1 −1 −1 −2 0 −1 2
−3 −1 4 2 −1 −2 −2 2 −1 2
−2 0 4 2 −1 −3 −1 2 0 1
A22 = .
−1 0 1 0 0 0 0 0 0 0
2 2 −4 −2 2 4 9 −4 2 −4
−1 0 1 0 0 −1 2 1 2 −2
0 0 0 0 0 0 1 0 1 −1
2 2 −4 −2 2 4 9 −4 2 −4
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 627
1 0 0 0 0 0 0 −1 0 0
0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 −1 0 0
0 0 0 1 0 0 0 0 0 0
2
0 0 0 0 1 0 0 −1 0 −1
RREF(A2 ) = ,
0 0 0 0 0 1 0 −1 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 1 −1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
and we see that rank A22 = 8. The following is a basis of Nul A22 :
1 0
0
0
1
0
0 0
n
1
1
o
N2,2 := , .
1
0
0
0
1
0
0 1
0 1
Since rank A22 = 8,106 we know that rank A22 = rank A32 = rank A42 = . . . , and
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 628
1 1 0
0 0 0
1 1 0
0 0 0
1 1 1
.
1 1 0
0 0 0
1 1 0
0 0 1
0 0 1
By row reducing, we see that the pivot columns of this matrix are its first column
(the only column to the left of the vertical dotted line), plus the second column after
2
the vertical dotted line. So, N2,1 can be extended to a basis of Nul A2 by adding
the second vector of the basis N2,2 to it. The second vector of N2,2 is the following
vector:
T
w1 := 0 0 0 0 1 0 0 0 1 1 .
The Jordan chain corresponding to the Jordan block J2 (λ2 ) will therefore be the
chain {A2 w1 , w1 }. In a matrix form, we get
1 0
0 0
1 0
0 0
1 1
A2 w1 w1 = .
1 0
0 0
1 0
0 1
0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 629
The matrices J and P . We now put everything together. Our Jordan matrix is
3 1 0 0 0 0 0 0 0 0
0 3 1 0 0 0 0 0 0 0
0 0 3 0 0 0 0 0 0 0
0 0 0 3 1 0 0 0 0 0
0 0 0 0 3 1 0 0 0 0
= .
0 0 0 0 0 3 0 0 0 0
0 0 0 0 0 0 3 1 0 0
0 0 0 0 0 0 0 3 0 0
0 0 0 0 0 0 0 0 2 1
0 0 0 0 0 0 0 0 0 2
Our matrix P consists of the Jordan chains that we have created, where we make
sure that we place the Jordan chains in the order that corresponds to the order in
which we placed our Jordan blocks in J. Our matrix P is the following (with vertical
dotted lines places between different Jordan chains to facilitate reading):
2
A1 u1 A1 u1 u1 A21 u2 A1 u2 u2 A1 u3 u3 A2 w1 w1
P :=
−1 1 0 0 0 −1 −1 0 1 0
0 −2 1 0 −1 0 1 −1 0 0
−1 1 0 0 0 0 −1 0 1 0
1 −1 0 1 0 0 0 0 0 0
0 0 0 1 −1 0 0 0 1 1
= .
0 0 0 0 0 1 0 0 1 0
0 1 0 0 1 0 0 0 0 0
0 0 0 0 0 0 1 0 1 0
0 0 0 0 0 0 0 1 0 1
0 1 0 0 1 0 0 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 630
Compute a Jordan matrix J and an invertible matrix P , both in C5×5 , such that
J = P −1 AP .
Remark: This is the matrix from Example 8.6.9. In that example, we computed
the matrix J. Here, we will see how to compute the matrix P .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 631
A1 := A − λ1 I13
0 0 0 3 0 −1 2 0 0 0 0 2 0
1 1 1 −3 0 1 −2 1 1 0 1 −2 0
−1 −2 −1 4 0 −6 3 1 −2 2 −3 4 −2
0 −3 0 6 −1 −2 4 0 −2 −1 0 4 0
0 0 0 −1 0 3 −1 0 0 0 1 −1 2
0 0 0 0 0 0 0 0 0 0 0 0 0
= 0 3 0 −12 1 2 −8 0 2 1 −2 −6 0
1 1 1 −1 0 6 −1 −1 1 −2 3 −2 2
0 −1 0 3 0 −1 2 0 −1 0 0 2 0
−1 −1 −1 0 −4 3 −1 −1 0 −2 3 −2
4
0 1 0 −3 0 1 −2 0 1 0 0 −2 0
0 2 0 3 1 1 2 0 1 1 2 0 0
0 0 0 0 0 −2 0 0 0 0 0 0 −2
r = 1:
0 0 0 3 0 −1 2 0 0 0 0 2 0
1 1 1 −3 0 1 −2 1 1 0 1 −2 0
−1 −2 −1 4 0 −6 3 1 −2 2 −3 4 −2
0 −3 0 6 −1 −2 4 0 −2 −1 0 4 0
0 0 0 −1 0 3 −1 0 0 0 1 −1 2
0 0 0 0 0 0 0 0 0 0 0 0 0
A11 = 0 3 0 −12 1 2 −8 0 2 1 −2 −6 0 .
1 1 1 −1 0 6 −1 −1 1 −2 3 −2 2
0 −1 0 3 0 −1 2 0 −1 0 0 2 0
−1 −1 −1 0 −4 3 −1 −1 0 −2 3 −2
4
0 1 0 −3 0 1 −2 0 1 0 0 −2 0
0 2 0 3 1 1 2 0 1 1 2 0 0
0 0 0 0 0 −2 0 0 0 0 0 0 −2
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 632
and we see that rank A11 = 9. The following is a basis of Nul A11 :
−1 0 1 −1
0 −1 0 0
1 0 0 0
0 0 0 −2
0 1 −1 0
n 0 0 0 0
o
N1,1 := 0 , 0 , 0 , 2 .
0 0 −1 0
0 1 0 0
0 0 1 0
0 0 0 1
0 0 0 1
0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 633
r = 2:
0 1 0 0 1 0 0 0 0 1 0 0 0
1 −1 1 3 −1 0 2 1 0 −1 1 2 0
−2 3 −2 9 3 8 6 −6 0 −1 2 2 4
−2 2 −2 0 2 0 0 −2 0 2 −2 0 0
0 −1 0 0 −1 −4 0 0 0 −1 0 0 −4
0 0 0 0 0 0 0 0 0 0 0 0 0
A21 = 2 −2 2 12 −2 0 8 2 0 −2 6 4 0 .
1 −2 1 −9 −2 −8 −6 5 0 2 −3 −2 −4
−1 1 −1 0 1 0 0 −1 0 1 −1 0 0
−1 −1 −3 4 −2 −1 0 2 −1 −2
2 2 4
1 −1 1 0 −1 0 0 1 0 −1 1 0 0
1 −1 1 −12 −1 0 −8 1 0 −1 −3 −4 0
0 0 0 0 0 4 0 0 0 0 0 0 4
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 634
and we see that rank A21 = 6. The following is a basis of Nul A21 :
−1 0 0 0 1 −3 1
0 −1 0 0 −1 0 0
1 0 0 0 0 0 0
0 0 −2 0 0 −2 0
0 1 0 0 0 0 0
n 0 0 0 0 0 0 −1 o
N1,2 := 0 , 0 , 3 , 0 , 0 , 0 , 0 .
0 0 0 0 −1 0 −1
0 0 0 1 0 0 0
0 0 0 0 1 0 0
0 0 0 0 0 3 0
0 0 0 0 0 3 0
0 0 0 0 0 0 1
r = 3:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 3 1 0 2 0 0 1 0 2 0
0 −1 0 −42 −1 −16 −28 8 0 7 −12 −16 −8
0 0 0 −6 0 0 −4 0 0 0 0 −4 0
0 0 0 0 0 8 0 0 0 0 0 0 8
0 0 0 0 0 0 0 0 0 0 0 0 0
A31 = 0 0 0 −18 0 0 −12 0 0 0 −8 −4 0 .
0 1 0 39 1 16 26 −8 0 −7 12 14 8
0 0 0 −3 0 0 −2 0 0 0 0 −2 0
0 −1 0 −3 −1 −8 −2 0 0 −1 0 −2 −8
0 0 0 3 0 0 2 0 0 0 0 2 0
0 0 0 27 0 0 18 0 0 0 8 10 0
0 0 0 0 0 −8 0 0 0 0 0 0 −8
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 635
and we see that rank A31 = 5. The following is a basis of Nul A31 :
1 0 0 0 0 0 0 0
0 0 −1 0 0 −1 0 0
0 1 0 0 0 0 0 0
0 0 0 −2 0 0 −2 0
0 0 1 0 0 0 0 0
n 0 0 0 0 0 0 0 −1
o
N1,3 := 0 , 0 , 0 , 3 , 0 , 0 , 0 , 0 .
0 0 0 0 0 −1 0 −1
0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0
0 0 0 0 0 0 3 0
0 0 0 0 0 0 3 0
0 0 0 0 0 0 0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 636
r = 4:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 0 0 0 1 0 0 0
0 −2 0 96 −2 32 64 −16 0 −18 32 32 16
0 −2 0 0 −2 0 0 0 0 −2 0 0 0
0 0 0 0 0 −16 0 0 0 0 0 0 −16
0 0 0 0 0 0 0 0 0 0 0 0 0
A41 = 0 2 0 48 2 0 32 0 0 2 16 16 0
0 1 0 −96 1 −32 −64 16 0 17 −32 −32 −16
0 −1 0 0 −1 0 0 0 0 −1 0 0 0
−1 0 −1 0 0 −1
0 0 16 0 0 0 16
0 1 0 0 1 0 0 0 0 1 0 0 0
0 1 0 −48 1 0 −32 0 0 1 −16 −16 0
0 0 0 0 0 16 0 0 0 0 0 0 16
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 637
and we see that rank A41 = 4. The following is a basis of Nul A41 :
1 0 0 0 0 0 0
0 0 −1 0 0 −1 0
0 1 0 0 0 0 0
0 0 0 −2 0 0 −1
0 0 1 0 0 0 0
n 0 0 0 0 0 0 0
N1,4 := 0 , 0 , 0 , 3 , 0 , 0 , 0 ,
0 0 0 0 0 −1 0
0 0 0 0 1 0 0
0 0 0 0 0 1 0
0 0 0 0 0 0 3
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0
0
0
0
0
−1
0
0
0
0 −1
o
0 , 0 .
0 −1
0 0
0 0
0
0
3 0
0 1
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 638
r = 5:
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 −240 0 −64 −160 32 0 32 −80 −80 −32
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 32 0 0 0 0 0 0 32
0 0 0 0 0 0 0 0 0 0 0 0 0
A51 = 0 0 0 −96 0 0 −64 0 0 0 −32 −32 0 .
0 0 0 240 0 64 160 −32 0 −32 80 80 32
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 −32 0 −32
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 96 0 0 64 0 0 0 32 32 0
0 0 0 0 0 −32 0 0 0 0 0 0 −32
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 639
and we see that rank A51 = 3. The following is a basis of Nul A51 :
1 0 0 0 0 0 0
0 1 0 0 0 0 0
0 0 1 0 0 0 0
0 0 0 0 −2 0 0
0 0 0 1 0 0 0
n 0 0 0 0 0 0 0
N1,5 = 0 , 0 , 0 , 0 , 3 , 0 , 0 ,
0 0 0 0 0 0 −1
0 0 0 0 0 1 0
0 0 0 0 0 0 1
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0
0
0
0
0
0
0
−1
−1
0
0
0
0
0 0 −1
o
0 , 0 , 0
0 0 −1
0 0 0
0 0 0
3
0
0
0 3 0
0 0 1
Since rank A51 = 3,107 we know that rank A51 = rank A61 = rank A71 = . . . , and
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 640
{A41 u, A31 u, A21 u, A1 u, u}.) We extend our basis N1,4 to a basis of Nul A51 . We
use Proposition 3.3.21. We form the matrix whose columns are the vectors of N1,4 ,
followed by the vectors of N1,5 , with a vertical dotted line between the vectors of
N1,4 and the vectors of N1,5 . The matrix that we obtain is the following:
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 −1 0 0 −1 0 0 0 0 1 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0
0 −2 0 0 −1 −1 0 0 0 0 0 −2 0 0 −1 −1 0
0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 −1 0 0 0 0 0 0 0 0 0 −1
0 0 0 3 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 .
0 0 0 0 0 −1 0 0 −1 0 0 0 0 0 0 −1 0 0 −1
0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 3 0 0
0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 3 0
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1
By row reducing this matrix, we see that its pivot columns are all its columns to the
left of the vertical dotted line, plus the second column to the right of the vertical
5
dotted line. So, N1,4 can be extended to a basis of Nul A1 by adding the second
vector of the basis N1,5 to it. The second vector of N1,5 is the following vector:
T
u1 := 0 1 0 0 0 0 0 0 0 0 0 0 0 .
The vector u1 will start the Jordan chain that corresponds to the Jordan block
J5 (λ1 ). This Jordan chain is {A41 u1 , A31 u1 , A21 u1 , A1 u1 , u1 }. If we compute the values
of all these vectors and arrange them into a matrix, we obtain the following:
0 0 1 0 0
1
1 −1 1 1
−2 −1 3 −2 0
−2 0 2 −3 0
0
0 −1 0 0
0 0 0 0 0
4
A1 u1 A31 u1 A21 u1 A1 u1 u1
= 2 0 −2 3 0 .
1 1 −2 1 0
−1 0 1 −1 0
−1 −1 2 −1 0
1
0 −1 1 0
1 0 −1 2 0
0 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 641
Next, we generate the Jordan chains corresponding to the two Jordan chains
corresponding to the two Jordan blocks J2 (λ1 ). Each of these Jordan chains will
contain two vectors and will be of the form {A1 u, u}. We first identify the generalized
eigenvectors of rank 2 of A associated with the eigenvalue λ1 inside the Jordan chains
(associated with λ1 ) that we have already created. There is exactly on such vector,
−
namely, A31 u1 . Now, N1,2 := N1,1 ∪ {A31 u1 } is a linearly independent set of vectors
in Nul A1 , and we would like to extend it to a basis of Nul A21 . We once again
2
use Proposition 3.3.21. We form the matrix whose columns are the vectors of the
−
linearly independent set N1,2 = N1,1 ∪ {A31 u1 }, followed by the vectors of N1,2 , with
a vertical dotted line between the vectors of the two sets. The matrix that we obtain
is the following:
−1 0 1 −1 0 −1 0 0 0 1 −3 1
0 −1 0 0 1 0 −1 0 0 −1 0 0
1
0 0 0 −1 1 0 0 0 0 0 0
0
0 0 −2 0 0 0 −2 0 0 −2 0
0
1 −1 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 −1
0 0 0 2 0 0 0 3 0 0 0 0
0 0 −1 0 1 0 0 0 0 −1 0 −1
0 1 0 0 0 0 0 0 1 0 0 0
0 −1
0 0 1 0 0 0 0 1 0 0
0 0 0 1 0 0 0 0 0 0 3 0
0 0 0 1 0 0 0 0 0 0 3 0
0 0 0 0 0 0 0 0 0 0 0 1
By row reducing this matrix, we see that its pivot columns are all its columns to the
left of the vertical dotted line, plus the third and seventh column tothe right of the
−
vertical dotted line. So, N1,2 can be extended to a basis of Nul A21 by adding the
third and the seventh vector of N1,2 to it. The third and the seventh vector of N1,2
are the following:
T
u2 := 0 0 0 −2 0 0 3 0 0 0 0 0 0 ;
T
u3 :=
1 0 0 0 0 −1 0 −1 0 0 0 0 1 .
These two vectors will start our two Jordan chains that correspond to the two
Jordan blocks J2 (λ1 ). These two Jordan chains are {A1 u2 , u2 } and {A1 u3 , u3 }. If
we compute the values of these vectors and arrange them into a matrix, we obtain
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 642
the following (the vertical dotted line separates the two Jordan chains):
0 0 1 1
0
0 −1 0
1 0 2 0
0 −2 2 0
−1 0 −1 0
0 0 0 −1
A1 u2 u2 A1 u3 u3 = 0 3 −2 0 .
−1 0 −2 −1
0 0 1 0
1 0 2 0
0
0 −1 0
0 0 −1 0
0 0 0 1
Finally, we generate the Jordan chain that corresponds to the Jordan block
J1 (λ1 ). This Jordan chain will contain only one vector, which we find as follows.
We first identify the generalized eigenvectors of rank 1 of A associated with the
eigenvalue λ1 inside the Jordan chains (associated with λ1 ) that we have already
generated. There are exactly three such vectors, namely, A41 u1 , A1 u2 , A1 u3 . Now,
−
N1,1 := N1,0 ∪ {A41 u1 , A1 u2 , A1 u3 } = {A41 u1 , A1 u2 , A1 u3 } is a linearly independent
set in Nul A11 , and we would like to extend it to a basis of Nul A11 . We once again
use Proposition 3.3.21. We form the matrix whose columns are the vectors of the
−
linearly independent set N1,1 = {A41 u1 , A1 u2 , A1 u3 }, followed by the vectors of N1,1 ,
−
with a vertical dotted line between the vectors of N1,1 and the vectors of N1,1 . The
matrix that we obtain is the following:
0 0 1 −1 0 1 −1
1
0 −1 0 −1 0 0
−2 1 2 1 0 0 0
−2 0 2 0 0 0 −2
0 −1 −1 0 1 −1 0
0 0 0 0 0 0 0
2 0 −2 0 0 0 2 .
1 −1 −2 0 0 −1 0
−1 0 1 0 1 0 0
−1
1 2 0 0 1 0
1
0 −1 0 0 0 1
1 0 −1 0 0 0 1
0 0 0 0 0 0 0
By row reducing this matrix, we see that its pivot columns are all its columns to the
left of the vertical dotted line, plus the second column to the right of the vertical
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 643
−
can be extended to a basis of Nul A11 by adding the second
dotted line. So, N1,1
vector of N1,1 to it. The second vector of N1,1 is the following:
T
u4 := 0 −1 0 0 1 0 0 0 1 0 0 0 0 .
This vector forms the Jordan chain {u4 } that corresponds to the Jordan block J1 (λ1 ).
We are now done processing the eigenvalue λ1 = 4.
A2 := A − λ2 I13
2 0 0 3 0 −1 2 0 0 0 0 2 0
1 3 1 −3 0 1 −2 1 1 0 1 −2 0
−1 −2 1 4 0 −6 3 1 −2 2 −3 4 −2
0 −3 0 8 −1 −2 4 0 −2 −1 0 4 0
0 0 0 −1 2 3 −1 0 0 0 1 −1 2
0 0 0 0 0 2 0 0 0 0 0 0 0
= 0 3 0 −12 1 2 −6 0 2 1 −2 −6 0 .
1 1 1 −1 0 6 −1 1 1 −2 3 −2 2
0 −1 0 3 0 −1 2 0 1 0 0 2 0
−1 −1 −1 0 −4 3 −1 −1 2 −2 3 −2
4
0 1 0 −3 0 1 −2 0 1 0 2 −2 0
0 2 0 3 1 1 2 0 1 1 2 2 0
0 0 0 0 0 −2 0 0 0 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 644
r = 1:
2 0 0 3 0 −1 2 0 0 0 0 2 0
1 3 1 −3 0 1 −2 1 1 0 1 −2 0
−1 −2 1 4 0 −6 3 1 −2 2 −3 4 −2
0 −3 0 8 −1 −2 4 0 −2 −1 0 4 0
0 0 0 −1 2 3 −1 0 0 0 1 −1 2
0 0 0 0 0 2 0 0 0 0 0 0 0
A12 = 0 3 0 −12 1 2 −6 0 2 1 −2 −6 0 .
1 1 1 −1 0 6 −1 1 1 −2 3 −2 2
0 −1 0 3 0 −1 2 0 1 0 0 2 0
−1 −1 −1 0 −4 3 −1 −1 2 −2 3 −2
4
0 1 0 −3 0 1 −2 0 1 0 2 −2 0
0 2 0 3 1 1 2 0 1 1 2 2 0
0 0 0 0 0 −2 0 0 0 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 645
0 0
0 0
−1 0
0 0
0 −1
n 0 0 o
N2,1 := 0 , 0 .
1 0
0 0
0 1
0 0
0 0
0 1
r = 2:
4 1 0 12 1 −4 8 0 0 1 0 8 0
5 7 5 −9 −1 4 −6 5 4 −1 5 −6 0
−6 −5 −2 25 3 −16 18 −2 −8 7 −10 18 −4
−2 −10 −2 28 −2 −8 16 −2 −8 −2 −2 16 0
0 −1 0 −4 3 8 −4 0 0 −1 4 −4 4
0 0 0 0 0 4 0 0 0 0 0 0 0
A22 = 2 10 2 −36 2 8 −20 2 8 2 −2 −20 0 .
5 2 5 −13 −2 16 −10 5 4 −6 9 −10 4
−1 −3 −1 12 1 −4 8 −1 0 1 −1 8 0
−5 −2 −5 2 −12 10 −5 −4 6 −9 10 −4
13
1 3 1 −12 −1 4 −8 1 4 −1 5 −8 0
1 7 1 0 3 4 0 1 4 3 5 0 0
0 0 0 0 0 −4 0 0 0 0 0 0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 646
0 0 0
0 0 0
−1 0 0
0 0 0
0 0 −1
n 0 0 0
o
N2,2 := 0 , −1 , 0 .
1 0 0
0 0 0
0 0 1
0 0 0
0 1 0
0 0 1
Since rank A22 = 10,108 we know that rank A22 = rank A32 = rank(A42 ) = . . . , and
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 647
We extend our basis N2,1 to a basis of Nul A22 . We use Proposition 3.3.21. We form
the matrix whose columns are the vectors of N2,1 , followed by the vectors of N2,2 ,
with a vertical dotted line between the vectors of N2,1 and the vectors of N2,2 . The
matrix that we obtain is the following:
0 0 0 0 0
0 0 0 0 0
−1 0 −1 0 0
0 0 0 0 0
0 −1 0 0 −1
0 0 0 0 0
0 0 0 −1 0 .
1 0 1 0 0
0 0 0 0 0
0 1 0 0 1
0 0 0 0 0
0 0 0 1 0
0 1 0 0 1
By row reducing, we see that the pivot columns of the matrix above are both columns
to the left of the vertical dotted line, plus the second column to the right of the
2
vertical dotted line. So, N2,1 can be extended to a basis of Nul A2 by adding the
second vector of N2,2 to it. The second vector of N2,1 is the following vector:
T
w1 := 0 0 0 0 0 0 −1 0 0 0 0 1 0 .
The vector w1 will starts the Jordan chain {A2 w1 , w1 } that corresponds to the
Jordan block J2 (λ2 ). If we place this Jordan chain into a matri, we obtain the
following:
0 0
0 0
1 0
0 0
0 0
0 0
A2 w1 w1 = 0 −1 .
−1 0
0 0
0 0
0 0
0 1
0 0
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 648
We once again use Proposition 3.3.21. We form the matrix whose columns are
−
the unique vector of the linearly independent set N2,1 = {A2 w1 }, followed by the
−
vectors of N2,1 , with a vertical dotted line between the vector of N2,1 and the vectors
of N2,1 . The matrix that we obtain is the following:
0 0 0
0 0 0
1 −1 0
0 0 0
0
0 −1
0 0 0
0 0 0 .
−1 1 0
0 0 0
0 0 1
0 0 0
0 0 0
0 0 1
By row reducing this matrix, we see that its pivot columns are its one column to the
left of the vertical dotted line, plus the second column to the right of the vertical
−
dotted line. So, N2,1 can be extended to a basis of Nul A12 by adding the second
vector of N2,1 to it. The second vector of N2,1 is the following:
T
w2 := 0 0 0 0 −1 0 0 0 0 1 0 0 1 .
This vector forms the Jordan chain {w2 } that corresponds to the Jordan block
J1 (λ2 ).
We are now done processing the eigenvalue λ2 = 2.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 649
The matrices J and P . We now put everything together. Our Jordan matrix is
Our matrix P consists of the Jordan chains that we have generated, where we make
sure that we place the Jordan chain in the order that correspoinds to the order in
which we places our Jordan blocks in J. Our matrix P is the following (with vertical
dotted lines between different Jordan chains to facilitate reading):
4
A1 u1 A31 u1 A21 u1 A1 u1 u1 A1 u2 u2 A1 u3 u3 u4 A2 w1 w1 w2
P :=
0 0 1 0 0 0 0 1 1 0 0 0 0
1 1 −1 1 1 0 0 −1 0 −1 0 0 0
−2 −1 3 −2 0 1 0 2 0 0 1 0 0
−2 0 2 −3 0 0 −2 2 0 0 0 0 0
0 0 −1 0 0 −1 0 −1 0 1 0 0 −1
0 0 0 0 0 0 0 0 −1 0 0 0 0
= 2 0 −2 3 0 0 3 −2 0 0 0 −1 0
1 1 −2 1 0 −1 0 −2 −1 0 −1 0 0
−1 0 1 −1 0 0 0 1 0 1 0 0 0
−1 −1 2 −1 0
1 0 2 0 0 0 0 1
1 0 −1 1 0 0 0 −1 0 0 0 0 0
1 0 −1 2 0 0 0 −1 0 0 0 1 0
0 0 0 0 0 0 0 0 1 0 0 0 1
Optional: Let us check our anger. We first check that our matrix P is invertible,
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 650
Next, we ask the calculator to compute the product P −1 AP , and indeed, we obtain
our matrix J. So, our answer is correct.
T T
for all vectors x = in Cn :
x1 . . . xn and y = y1 . . . yn
n
P
x·y = xk yk .
k=1
Throughout this section, we shall denote by || · || the norm induced by the standard
scalar product · in Rn or Cn (as appropriate). In particular, orthogonality and
orthonormality will always be assumed to be with respect to the standard scalar
product and the induced norm.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 651
matrices.” For a matrix A = ai,j n×m in Cn×m , we set A = ai,j n×m , i.e. A
is an n × m matrix such that for all indices i ∈ {1, . . . , n} and j ∈ {1, . . . , m}, the
i, j-th entry of A is ai,j (the complex conjugate of ai,j ). The Hermitian transpose of
a A is the matrix A∗ = (A)T . For example, for
−1 + i 3 2i
A := ,
1 + 2i 4 − 2i 3
is Hermitian. Note that all entries on the main diagonal of a Hermitian matrix are
real. Note also that if all entries of a matrix in Cn×n happen to be real, then that
matrix is Hermitian if and only if it is symmetric.
The basic algebraic properties of the Hermitian transpose are essentially the same
as those of the ordinary transpose, as we can see by comparing Proposition 1.8.1
(which deals with the ordinary transpose) and Proposition 8.7.2 (below).
Proposition 8.7.2. For all matrices A, B ∈ Cn×m and scalars α ∈ C, the following
hold:
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 652
Proof. This follows from the appropriate definitions. The details are left as an easy
exercise.
Remark: Recall that the field C is algebraically closed, and consequently, every
matrix in Cn×n has n complex eigenvalues (with algebraic multiplicities taken into
account). So, Theorem 8.7.3 states that if A is a Hermitian matrix in Cn×n , then all
n eigenvalues of A (with algebraic multiplicities taken into account) are real.
Proof. Let A ∈ Cn×n be a Hermitian matrix, let λ be any eigenvalue of A, and let
x be an associated eigenvector of A. After possibly normalizing the eigenvector x
x
(i.e. replacing x by ||x|| ), we may assume that x is a unit vector, i.e. that it satisfies
||x|| = 1. Then Ax = λx, and we compute:
x∗ Ax = x∗ (λx) because Ax = λx
= λ(x∗ x)
= λ because ||x|| = 1.
λ = x∗ Ax
= x ∗ A∗ x because A is Hermitian
where we consider λ as
= λ∗
a 1 × 1 complex matrix
where we consider λ as
= λ
a complex number.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 653
Q is orthogonal;
In what follows, we will repeatedly use the fact that the three statements above are
equivalent, without explicitly mentioning Theorem 6.8.1.
Let us say that a matrix A ∈ Rn×n is orthogonally diagonalizable if there exists a
diagonal matrix D and an orthogonal matrix Q, both in Rn×n , such that D = QT AQ.
Since orthogonal matrices Q are invertible and satisfy QT = Q−1 , we see that
orthogonally diagonalizable matrices are, in particular, diagonalizable in the usual
sense. The main result of this subsection is Theorem 8.7.6, which states that a
matrix in Rn×n is orthogonally diagonalizable if and only if it is symmetric. The
proof proceeds by induction on n, and in the induction step, it will be convenient to
reduce the problem to the case when the matrix has an eigenvalue 0. To this end,
we will use the following technical proposition.
Proposition 8.7.5. Let A ∈ Rn×n and λ0 ∈ R. Then all the following hold:
Proof. (a) For all v ∈ Rn , we have that Av = λ0 v if and only if (A−λ0 In )v = 0 = 0v,
and we deduce that v ∈ Eλ0 (A) if and only if v ∈ E0 (A − λ0 In ). Thus, Eλ0 (A) =
E0 (A − λ0 In ). In particular, Eλ0 (A) is non-trivial if and only if E0 (A − λ0 In ) is
109
Here, Eλ0 (A) = E0 (A − λ0 In ) holds even if λ0 is not an eigenvalue of A. In that case, we simply
have that Eλ0 (A) = E0 (A − λ0 In ) = {0}.
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 654
P −1 (A − λ0 In )P = P −1 AP − P −1 (λ0 In )P
−1 −1
| {zAP} −λ0 P
= P | {z P}
=D =In
= D − λ0 In ,
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 655
S T AS = S T A x0 x1 . . . xn
by the definition of
S T Ax0 S T Ax1 . . . S T Axn
=
matrix multiplication
S T 0 S T Ax1 . . . S T Axn
= because Ax0 = 0
0 S T Ax1 . . . S T Axn
= .
We now know that S T AS ∈ R(n+1)×(n+1) is a symmetric matrix, and that its leftmost
column is 0. So, there exists a symmetric matrix A0 ∈ Rn×n such that
0 0T
T
S AS = .
0 A0
0 0T 1 0T
D := ; R := .
0 D0 (n+1)×(n+1) 0 Q0 (n+1)×(n+1)
112
Let us explain this in more detail. By Proposition 8.7.5(a-b), A − λ0 In is symmetric and has
eigenvalue 0. On the other hand, if we can show that A − λ0 In is orthogonally diagonalizable, then
Proposition 8.7.5(d) will guarantee that A is also orthogonally diagonalizable. So, we may consider
A − λ0 In and 0 instead of A and λ0 , respectively.
113
Indeed, {x0 } is an orthonormal basis of the subspace U := Span(x0 ) of Rn+1 , and so by
Corollary 6.3.11(d), {x0 } can be extended to an orthonormal basis of Rn+1 .
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 656
QT AQ = (SR)T A(SR)
= RT (S T AS)R
1 0T 0 0T 1 0T
=
0 QT0 0 A0 0 Q0
0T
0
= T
0 Q0 A0 Q0
0 0T
=
0 D0
= D,
(e) Rn has an eigenbasis associated with A, and the eigenspaces of A are pairwise
orthogonal;
114
Indeed,
0T 0T 0T 0T
1 1 1 (∗) 1
RT R = = = = In+1 ,
0 QT0 0 Q0 0 QT Q0 0 In
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 657
(e) (d) (f )
The fact that (a) and (b) are equivalent follows from Theorem 8.7.6. Let us prove
that (d) and (f) are equivalent. Since any basis of Rn contains exactly n vectors, it
is clear that (d) implies (f). Let us now assume (f) and prove (d). Using (f), we fix
pairwise orthogonal eigenvectors v1 , . . . , vn of A. By the definition of an eigenvector,
v1 , . . . , vn are all non-zero. So, by Proposition 6.3.4(a), {v1 , . . . , vn } is an orthogonal
basis of Rn . But now {v1 , . . . , vn } is an orthogonal eigenbasis of Rn associated with
A, and we see that (d) holds.
Next, we assume (b) and prove (e). Using (b), we fix a diagonal matrix D
and an orthogonal matrix Q, both in Rn×n , such that D = QT AQ = Q−1 AQ. By
Proposition 8.5.12, the columns of Q form an eigenbasis of Rn associated with
A, and since Q is orthogonal, this basis is orthonormal. It remains to show that
the eigenspaces of A are pairwise orthogonal. So, suppose that λ1 and λ2 are
distinct eigenvalues of A; we must show that Eλ1 ⊥ Eλ2 . By Proposition 8.5.12,
the eigenvalues of A are precisely the entries on the main diagonal of D, and in
particular, both λ1 and λ2 appear on the main diagonal of D. Now, suppose the
eigenvalue λ1 appears (precisely) in entries i1 , . . . , ik1 of the main diagonal of D;
then by Proposition 8.5.12, columns number i1 , . . . , ik1 of Q form a basis B1 of Eλ1 .
Similarly, suppose that the eigenvalue λ2 appears (precisely) in entries j1 , . . . , jk2 of
the main diagonal of D; then by Proposition 8.5.12, columns number j1 , . . . , jk2 of
Q form a basis B2 of Eλ2 . But since Q is orthogonal, we know that its columns form
an orthonormal basis of Rn . In particular, B1 ⊥ B2 . Proposition 6.1.5 then implies
that Span(B1 ) ⊥ Span(B2 ), that is, Eλ1 ⊥ Eλ2 . This proves (e).
Next, we assume (e) and prove (d). Let λ1 , . . . , λk be the distinct eigenvalues of A,
and for all i ∈ {1, . . . , k}, let Bi be a basis of Eλi ; after possibly applying the Gram-
Schmidt orthogonalization procedure to Bi , we may assume that Bi is orthogonal.
By (e), Rn has an eigenbasis associated with A, and so by Proposition 8.4.5(c),
the sum of geometric multiplicities of A is n, and moreover, B := B1 ∪ · · · ∪ Bk
is an eigenbasis of Rn associated with A. Since the eigenspaces of A are pairwise
orthogonal, we see that B1 , . . . , Bk are orthogonal to each other. Since B1 , . . . , Bk
115
This means that some n eigenvectors of A are pairwise orthogonal. It does not mean that A
has exactly n eigenvectors (which happen to be orthogonal).
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 658
Irena Penev
Linear Algebra 1 & 2
Chapter 8. Eigenvalues and eigenvectors 659
pA (λ) = det(λI3 − A)
λ−3 2 −4
= 2 λ − 6 −2
−4 −2 λ − 3
= λ3 − 12λ2 + 21λ + 98
= (λ + 2)(λ − 7)2 .
117
In other words, if {λ1 , . . . , λn } is the spectrum of A, then we set D := D(λ1 , . . . , λn ). Recall
that the geometric multiplicity of any eigenvalue of A is equal to the algebraic multiplicity of that
eigenvalue.
118
So, if an eigenvalue λ of A has algebraic/geometric multiplicity k and appears (precisely) in
entries i1 , . . . , ik of the main diagonal of D, then columns number i1 , . . . , ik of Q should be the
vectors of the orthonormal basis Cλ of the eigenspace Eλ (A).
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 660
Chapter 9
T T
in Fn , we have
(a) for all vectors x = x1 . . . x n and y = y1 . . . y n
that
n P
n
xT Ay =
P
ai,j xi yj ;
i=1 j=1
(b) for all indices i, j ∈ {1, . . . , n}, we have that eTi Aej = ai,j .
Proof. Obviously, (a) implies (b). So, let us prove (a). For any vectors x =
T T
in Fn , we have the following:
x1 . . . x n and y = y1 . . . yn
a1,1 a1,2 . . . a1,n y1
a2,1 a2,2 . . . a2,n y2
xT Ay
= x1 x2 . . . xn
.. .. .. .. ..
. . . . .
an,1 an,2 . . . an,n yn
Pn
a1,j yj
Pj=1
n
j=1 a2,j yj
= x1 x2 . . . xn
..
Pn .
j=1 an,j yj
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 661
n
P n
P n P
P n
= xi ai,j yj = ai,j xi yj .
i=1 j=1 i=1 j=1
b.4. for all x, y ∈ V and α ∈ F, we have that f (x, αy) = αf (x, y).
The bilinear form f is said to be symmetric if it further satisfies the property that
f (x, y) = f (y, x) for all x, y ∈ V .
Remark: In section 6.1, we defined scalar products in real and complex vector spaces.
We note that every scalar product ⟨·, ·⟩ in a real vector space V is a symmetric
bilinear form. Indeed, r.2, r.3, r.2’, and r.3’ (see subsection 6.1.1) are precisely the
axioms b.1, b.2, b.3, and b.4, respectively. Moreover, by r.4, scalar products in
real vector spaces are symmetric. However, scalar products in non-trivial complex
vector spaces are not bilinear forms, since c.1 and c.3’ (see subsection 6.1.2) together
contradict axiom b.4.1 Indeed, if ⟨·, ·⟩ is a scalar product in a non-trivial complex
vector space V , then for any x ∈ V \ {0}, c.1 guarantees that ⟨x, x⟩ = ̸ 0, and so
c.3’
⟨x, ix⟩ = i⟨x, x⟩ = −i⟨x, x⟩ ̸= i⟨x, x⟩,
Proposition 9.2.1. Let V be a vector space over a field F, and let f be a bilinear
form on V . Then all the following hold:
(c) f (0, 0) = 0.
1
If our complex vector space V is trivial, then there is no contradiction. Indeed, in this case,
there is exactly one scalar product in V = {0}, namely, the function ⟨·, ·⟩ : V × V → C given by
⟨0, 0⟩ = 0. This is obviously a symmetric bilinear form, but it is not very interesting!
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 662
By subtracting f (x, 0) from both sides, we obtain 0 = f (x, 0). This proves (a). The
proof of (b) is similar. Finally, (c) is a special case of (a) for x = 0.
(a) For every matrix A = ai,j n×n in Fn×n , the function f : V × V → F given by
T
f (x, y) = x B
A y B
for all x, y ∈ V
Moreover, the entries of the matrix A are given by ai,j = f (bi , bj ) for all indices
i, j ∈ {1, . . . , n}.
setting
T
f (x, y) = x B A y B for all x, y ∈ V .
Let us first check that f is bilinear. We must check that f satisfies axioms b.1-b.4.
For b.1, we observe that for all vectors x1 , x2 , y ∈ V , we have the following:
T
f (x1 + x2 , y) = x1 + x2 B
A y B
(∗)
T
= x1 B
+ x2 B
A y B
T T
= x1 B
A y B
+ x2 B
A y B
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 663
where (*) follows from the linearity of · B . Thus, f satisfies b.1, and similarly, it
satisfies b.3. For b.2, we observe that for all vectors x, y ∈ V and scalars α ∈ F, we
have the following:
T
f (αx, y) = αx B
A y B
(∗)
T
= α x B A y B
T
= α x B
A y B
= αf (x, y),
where (*) follows from the linearity of · B . Thus, f satisfies b.2, and similarly, it
satisfies b.4. This proves that f is indeed bilinear.
Next, to prove (a.1), we fix indices i, j ∈ {1, . . . , n}, and we compute:
T (∗)
= eTi Aej
f (bi , bj ) = bi B
A bj B
= ai,j ,
(∗)
T T
= x B
A y B
T
AT
= y B
x B
(∗∗) T
= y B
A x B
= f (y, x),
T
where (*) follows from the fact that x B A y B is a 1 × 1 matrix (and is
therefore symmetric), and (**) follows from the fact that A is symmetric. So, f is
symmetric.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 664
Suppose, conversely, that f is symmetric. Then for all indices i, j ∈ {1, . . . , n},
we have the following:
(a.1) (∗) (a.1)
ai,j = f (bi , bj ) = f (bj , bi ) = aj,i ,
where (*) follows from the fact that f is symmetric. So, A is symmetric.
(b) Fix a bilinear form f on V . First of all, if A = ai,j n×n is any matrix in
T
Fn×n that satisfies the property that f (x, y) = x B A y B for all x, y ∈ V ,
then (a) guarantees that ai,j = f (bi , bj ) for all indices i, j ∈ {1, . . . , n}. This, in
particular, proves the uniqueness part of (b).
For existence, we must show that the matrix A = ai,j n×n given by the formula
ai,j = f (bi , bj ) for all indices i, j ∈ {1, . . . , n}, does indeed satisfy the property that
T
f (x, y) = x B A y B for all x, y ∈ V . So, fix vectors x, y ∈ V . Since B =
{b1 , . . . , bn } is a basis of V , we know that there exist scalars c1 , . . . , cn , d1 , . . . , dn ∈ F
T
such that x = ni=1 ci bi and y = nj=1 dj bj , so that x B = c1 . . . cn
P P
and
T
y B = d1 . . . dn . We then compute:
n
P n
P
f (x, y) = f ci bi , dj bj
i=1 j=1
(∗) n P
P n
= ci dj f (bi , bj )
i=1 j=1 | {z }
=ai,j
n P
P n
= ai,j ci dj
i=1 j=1
(∗∗) T
= x B
A y B
,
where (*) follows from the fact that f is bilinear, and (**) follows from Proposi-
tion 9.1.1(a).
Corollary 9.2.3. Let F be a field, and let En = {e1 , . . . , en } be the standard basis
of Fn .
(a) For every matrix A = ai,j n×n in Fn×n , the function f : Fn × Fn → F given
by
f (x, y) = xT Ay for all x, y ∈ Fn
is a bilinear form on Fn , and moreover, all the following hold:
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 665
n P
P n T
(a.2) f (x, y) = ai,j xi yj for all vectors x = x1 . . . xn and y =
i=1 j=1
T
Fn ,
y1 . . . yn in
(a.3) f is symmetric if and only if A is symmetric.
Moreover, the entries of the matrix A are given by ai,j = f (ei , ej ) for all indices
i, j ∈ {1, . . . , n}.
Remark: Corollary 9.2.3 implies that, for a field F, the bilinear forms on Fn are
precisely the functions f : Fn × Fn → F given by
x1 y1
n Pn
for all x = ... and y = .. in Fn ,
P
f (x, y) = ai,j xi yj
.
i=1 j=1
xn yn
where the ai,j ’s are some scalars in F. Moreover, such a bilinear form is symmetric
if and only if ai,j = aj,i for all indices i, j ∈ {1, . . . , n}. The
matrix of this bilinear
form with respect to the standard basis En of Fn is ai,j n×n (so, the i, j-th entry
of the matrix is the coefficient in front of xi yj from the formula for f above). For
example, functions f1 , f2 : R2 × R2 → R given by the formulas
Theorem 4.3.2 essentially states that a linear function can be fully determined by
specifying what the vectors of some basis of the domain get mapped to. For bilinear
forms, Theorem 9.2.2 yields the following analogous result.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 666
is bilinear, and moreover, part (a.1) of Theorem 9.2.2(a) guarantees that f (bi , bj ) =
ai,j for all indices i, j ∈ {1, . . . , n}. Clearly, A is the matrix of the bilinear form f
with respect to the basis B.
Uniqueness. Suppose that f ′ is any bilinear form on V that satisfies f ′ (bi , bj ) = ai,j
for all i, j ∈ {1, . . . , n}. Then Theorem 9.2.2(b) guarantees that the matrix of the
′
bilinear form f with respect to the basis B is precisely the matrix A = ai,j n×n ,
T
i.e. f ′ (x, y) = x B A y B for all x, y ∈ V .
Theorem 9.2.5 (Change of basis for bilinear forms). Let V be a non-trivial, finite-
dimensional vector space over a field F, let f be a bilinear form on V , and let B and
C be bases of V . Further, let B be the matrix of f with respect to B, and let C be
the matrix of f with respect to C. Then
T
C = B
IdV C
B B
IdV C
.
T
= B
IdV C
x C
B B
IdV C
y C
T T
= x C B
IdV C
B B
IdV C
y C
,
where (*) follows from the fact that B is the matrix of the bilinear form f with
respect to the basis B. But now we have that
T
B
IdV C
B B
IdV C
is the matrix of the bilinear form f with respect to the basis C, that is, C =
T
IdV C B B IdV C .2
B
2
Note that we are using the uniqueness part of Theorem 9.2.2(b).
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 667
Proof. (a) Fix a matrix A ∈ Fn×n . Then A = InT AIn , and it follows that A is
congruent to itself.
(b) Fix a matrices A, B ∈ Fn×n , and assume that A is congruent to B. Then there
exists an invertible matrix P ∈ Fn×n such that B = P T AP . By Proposition 1.11.8(c),
P T is invertible and satisfies (P T )−1 = (P −1 )T . So,
A = (P T )−1 BP −1 = (P −1 )T BP −1 ,
C = QT BQ
= QT (P T AP )Q
= (QT P T )A(P Q)
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 668
Theorem 4.5.19 essentially states that two square matrices are similar if and only
if they represent the same linear function, but possibly with respect to different
bases. Theorem 9.2.7 (below) is an analog of Theorem 4.5.19 for congruent matrices:
it states that two square matrices are congruent if and only if they represent the
same bilinear form, but possibly with respect to different bases.
(b) for all bases B of V and bilinear forms f on V such that B is the matrix of f
with respect to B, there exists a basis C of V such that C is the matrix of f with
respect to C;
(c) there exist bases B and C of V and a bilinear form f on V such that B is the
matrix of f with respect to B, and C is the matrix of f with respect to C.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 669
where the 1’s and 0’s are understood to be in the field F. If no such n exists, then
char(F) := 0. Note that fields Q, R, and C all have characteristic 0. On the other
hand, for all prime numbers p, we have that char(Zp ) = p. By Theorem 2.4.5, the
characteristic of any field is either 0 or a prime number.
Proposition 9.2.8 (below) applies to bilinear forms over vector spaces of character-
istic other than 2. In such fields, we can divide by 2 := 1 + 1, since 2 = 1 + 1 ̸= 0. The
only field of characteristic 2 that we have seen is Z2 , but other fields of characteristic
2 do exist.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 670
for all x ∈ V . Quadratic forms are defined for vector spaces over fields of any
characteristic. However, in all our results below, we assume that the field in question
is of characteristic other than 2, so that we can divide by 2.
and moreover, this unique symmetric matrix A is precisely the matrix of the symmetric
bilinear form f with respect to the basis B.
Terminology: The symmetric matrix A from the statement of Theorem 9.3.1 is
called the matrix of the quadratic form q with respect to the basis B. For emphasis,
we may optionally refer to A as the symmetric matrix of the quadratic form q with
respect to the basis B.
Warning: There may possibly exist more than one matrix A ∈ Fn×n that satisfies
T
the property that q(x) = x B A x B for all x ∈ V . However, only one such
matrix is symmetric. This (unique) symmetric matrix is the one that we refer to as
the matrix of q with respect to B.
Proof. We first prove the existence and uniqueness of the symmetric bilinear form f .
By the definition of a quadratic form, there exists some bilinear form h on V such
that for all x ∈ V , we have that q(x) = h(x, x). Now, using the fact that char(F) ̸= 2,
we define f : V × V → F by setting
f (x, y) = 21 h(x, y) + h(y, x) for all x ∈ V .
which is what we needed. This completes the proof of existence. Uniqueness follows
immediately from Proposition [Link]
Let us now assume that the vector space V is non-trivial and finite-dimensional,
and let B be a basis of V . Let A ∈ Fn×n be the matrix of the bilinear form f with
3
Details?
4
This is “obvious,” but here are the details. Suppose that f1 and f2 are symmetric bilinear forms
on V such that q(x) = f1 (x, x) and q(x) = f1 (x, x) for all x ∈ V . Then f1 (x, x) = f2 (x, x) for all
x ∈ V . But then by Proposition 9.2.8, we have that f1 = f2 .
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 671
By Theorem 9.2.2(a), f ′ is a symmetric bilinear form. But then for all x ∈ V , we have
that f ′ (x, x) = q(x) = f (x, x), and so by Proposition 9.2.8, f ′ = f . The uniqueness
part of Theorem 9.2.2(b) now guarantees that A′ = A, and we are done.
Remark: Let F be a field. Then quadratic forms q on Fn are all of the form
n P
n T
in Fn ,
P
q(x) = bi,j xi xj for all x = x1 . . . xn
i=1 j=1
where the bi,j ’s are some elements of F.5 If char(F) ̸= 2, then the matrix of
such a quadratic form q with respect to the standard basis En of Fn is the matrix
A = ai,j n×n whose entries are given by ai,j = 12 (bi,j +bj,i ) for all i, j ∈ {1, . . . , n}.6
(∗) n P
n
xT Ax
P
= ai,j xi xj
i=1 j=1
n P
n
P 1
= 2 (bi,j + bj,i )xi xj
i=1 j=1
n P
P n n P
n
1
P
= 2 bi,j xi xj + bj,i xi xj
i=1 j=1 i=1 j=1
n P
P n
= bi,j xi xj = q(x),
i=1 j=1
5
This is because for every quadratic form q on Fn , there exists a bilinear form f on Fn×n such
that q(x) = f (x, x) for all x ∈ Fn . By Corollary 9.2.3(b), the bilinear form f is of the form
T T
f (x, y) = n
P Pn
i=1 j=1 bi,j xi yj for all vectors x = x1 . . . xn and y = y1 . . . yn in
n
F , where the bi,j ’s are some elements of F.
6
In particular, we have that ai,i = 12 (bi,i + bi,i ) = bi,i for all i ∈ {1, . . . , n}.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 672
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 673
C is the matrix of the bilinear form f with respect to C. But then once again by
Theorem 9.3.1, we have that C is the matrix of q with respect to C. This proves (b).
Next, we assume (b) and prove (c). Fix any basis B of V , and define f : V ×V → F
T
by setting f (x, y) = x B B y B for all x, y ∈ V . By Theorem 9.2.2, f is a
symmetric bilinear form on V , and obviously, B is the matrix of f with respect to B.
But then by Theorem 9.3.1, B is the matrix of the quadratic form q with respect to
B. So, by (b), there exists a basis C of V such that C is the matrix of the quadratic
form q with respect to C. We have now constructed bases B and C of V , and a
quadratic form q on V , such that B is the matrix of q with respect to B, and C is
the matrix of q with respect to C. This proves (c).
Finally, we assume (c) and prove (a). Using (c), we fix bases B and C of V , as
well as a quadratic form q on V , such that B is the matrix of q with respect to B,
and C is the matrix of q with respect to C. Using Theorem 9.3.1, we fix the (unique)
symmetric bilinear form f on V such that q(x) = f (x, x) for all x ∈ V . But then
Theorem 9.3.1 guarantees that B is the matrix of the bilinear form f with respect
to B, and that C is the matrix of the bilinear form f with respect to C. So, by
Theorem 9.2.7,8 B and C are congruent, i.e. (a) holds.
n0 := n − n+ − n− .
Note that 0 is an eigenvalue of A if and only if n0 > 0, and in this case, the algebraic
multiplicity of the eigenvalue 0 is precisely n0 . For example, if the spectrum of a
symmetric matrix in R9×9 is {0, 0, 1, 1, −2, −2, 5, 6, −7}, then the signature of that
matrix is (4, 3, 2).
8
We are using the “(c) =⇒ (a)” implication from Theorem 9.2.7.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 674
The main goal of this subsection is to prove Theorem 9.4.3, which states that
two symmetric matrices in Rn×n are congruent if and only if they have the same
signature. We begin by proving Proposition 9.4.1, which essentially states that any
symmetric matrix with real entries is congruent to a diagonal matrix with only
1’s, −1’s, and 0’s on the main diagonal, where the number of 1’s, −1’s, and 0’s is
determined by the signature of the symmetric matrix that we started with.
Proposition 9.4.1. Let A be a symmetric matrix in Rn×n with signature (n+ , n− , n0 ).
Then there exists an invertible matrix R ∈ Rn×n with pairwise orthogonal columns
such that
RT AR = D 1, . . . , 1, −1, . . . , −1, 0, . . . , 0 .
| {z } | {z } | {z }
n+ n− n0
Proof. By the spectral theorem for symmetric matrices (see subsection 8.7.3), we know
that A is orthogonally diagonalizable. So, let D = D(λ1 , . . . , λn ) be a diagonal and
Q an orthogonal matrix, both in Rn×n , such that D = QT AQ. By Proposition 8.5.12,
{λ1 , . . . , λn } is the spectrum of A. After possibly permuting the λi ’s and the
corresponding columns of the orthogonal matrix Q, we may assume that the first n+
many λi ’s are positive, the subsequent n− many λi ’s are negative, and the final n0
many λi ’s are 0.9 Now, set
( 1
√ if λi ̸= 0
|λi |
ℓi :=
1 if λi = 0
9
More precisely, we are assuming the following:
for all i ∈ {1, . . . , n+ }, we have that λi > 0;
for all i ∈ {n+ + 1, . . . , n+ + n− }, we have that λi < 0;
for all i ∈ {n+ + n− + 1, . . . , n}, we have that λi = 0.
The fact that we may assume this essentially follows from our recipe for orthogonally diagonalizing
a symmetric matrix, which allows us to place the eigenvalues of A in any order we like on the
diagonal matrix D (as long as we respect algebraic multiplicities, and as long as we take care to
place the suitable eigenvectors of A in Q in the corresponding order). However, let us give a fully
formal justification for why we may permute the λi ’s in this way. We use permutation matrices (see
subsection 2.3.7). Since {λ1 , . . . , λn } is the spectrum of A, we know that the number of positive,
negative, and zero λi ’ (counting repetitions) is exactly n+ , n− , and n0 , respectively. So, there exists
a permutation σ ∈ Sn such that all the following hold:
for all i ∈ {1, . . . , n+ }, we have that λσ(i) > 0;
for all i ∈ {n+ + 1, . . . , n+ + n− }, we have that λσ(i) < 0;
for all i ∈ {n+ + n− + 1, . . . , n}, we have that λσ(i) = 0.
As usual, Pσ is the matrix of the permutation σ. But then by Theorem 2.3.15, we have that
Pσ DPσT = D(λσ(1) , . . . , λσ(n) ). Moreover, by Proposition 2.3.14, Pσ and PσT are orthogonal, and so
since Q is also orthogonal, Proposition 6.8.3 guarantees that QPσT is orthogonal. But note that
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 675
for all indices i ∈ {1, . . . , n}, and set L := D(ℓ1 , . . . , ℓn ) and R := QL. Since both Q
and L are invertible,10 so is R. Moreover, since L is diagonal, Proposition 8.5.1(b)
guarantees that the columns of R = QL are scalar multiples of the columns of Q; since
the columns of Q are pairwise orthogonal (by Theorem 6.8.1),11 Proposition 6.1.4(b)
guarantees that the columns of R are pairwise orthogonal. Finally, we compute:
RT AR = (QL)T A(QL)
= LT QT AQ L
| {z }
=D
= LT DL
(∗)
= LDL
(∗∗)
= D(λ1 ℓ21 , . . . , λn ℓ2n ),
(∗∗∗)
= D 1, . . . , 1, −1, . . . , −1, 0, . . . , 0 ,
| {z } | {z } | {z }
n+ n− n0
where (*) follows from the fact that L is diagonal and therefore symmetric, (**)
follows from Proposition 8.5.2, and (***) follows from the fact that, by construction,
1 if λi > 0
λi ℓ2i = −1 if λi < 0
0 if λi = 0
for all indices i ∈ {1, . . . , n}, plus the fact that the first n+ many λi ’s are positive,
the subsequent n− many λi ’s are negative, and the final n0 many λi ’s are zero.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 676
RT AR = D 1, . . . , 1, −1, . . . , −1, 0, . . . , 0 .
| {z } | {z } | {z }
n+ n− n0
So, the spectrum of A is {2, 2, −4, 0}. In other words, the eigenvalues of A are λ1 = 2
(with algebraic multiplicity 2), λ2 = −4 (with algebraic multiplicity 1), and λ3 = 0
(with algebraic multiplicity 1). Clearly, the signature of A is (2, 1, 1). It remains to
compute the matrix R.
Remark: It is important to list any positive eignvalues first, any negative eigenvalues
second, and any zero eigenvalues last. This is to ensure that on the main diagonal of
the diagonal matrix RT AR, any 1’s appear first, followed by any −1’s, followed by
any 0’s, as specified by the requirements of the example.
We now compute an orthonormal basis of each of the three eigenspaces. We
process our eigenvalues separately (first positive, then negative, then zero).
For the eigenvalue λ1 = 2, we compute:
1 −1 0 0
0 0 1 1
RREF(λ1 I4 − A) = RREF(2I4 − A) =
0
.
0 0 0
0 0 0 0
T T
So, B1 := 1 1 0 0 , 0 0 −1 1 is a basis of Eλ1 (A). After perform-
ing the Gram-Schmidt orthogonalization process on B1 ,12 we obtain an orthonormal
√ √ T √ √ T
basis C1 := 1/ 2 1/ 2 0 0 , 0 0 −1/ 2 1/ 2 of Eλ1 (A).
For the eigenvalue λ2 = −4, we compute:
1 0 0 1
0 1 0 −1
RREF(λ2 I4 − A) = RREF(−4I4 − A) = .
0 0 1 −1
0 0 0 0
12
In this particular case, the basis B1 is already orthogonal, and so we just need to normalize the
two vectors in it. However, this is an accident: in the general case, we may need to perform the full
Gram-Schmidt orthogonalization process.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 677
T
So, B2 := −1 1 1 1 is a basis of Eλ2 (A). After performing the Gram-
Schmidt orthogonalization process on B2 ,13 we obtain an orthonormal basis C2 :=
T
−1/2 1/2 1/2 1/2 of Eλ2 (A).
For the eigenvalue λ3 = 0, we compute:
1 0 0 −1
0 1 0 1
RREF(λ3 I4 − A) = RREF(−A) = .
0 0 1 −1
0 0 0 0
T
So, B3 := 1 −1 1 1 is a basis of Eλ3 (A). After performing the Gram-
Schmidt orthogonalization process on B3 ,14 we obtain an orthonormal basis C3 :=
T
1/2 −1/2 1/2 1/2 of Eλ3 (A).
We now set D := D(λ1 , λ2 , λ2 , λ3 ) = D(2, 2, −4, 0) and
√
−1/2
1/√2 0 1/2
1/ 2
√0 1/2 −1/2
Q := .
0 −1/√2 1/2 1/2
0 1/ 2 1/2 1/2
where (*) follows from Proposition 8.5.1(b) (or simply via routine matrix multiplica-
tion). Then R is an invertible matrix that has pairwise orthogonal columns, and we
have that
RT AR = D(1, 1, −1, 0),
as in the proof of Proposition 9.4.1.
13
Since B2 contains only one vector, all we actually need to do is to normalize the one vector
in B2 .
14
Since B3 contains only one vector, we just need to normalize the one vector in B3 .
15
Here, we started with D = D(2, 2, −4, 0), and we formed the matrix L by setting
L := D( √1 , √1 , √ 1 , 1) = D( √12 , √1 , 1 , 1),
2 2
|2| |2| |−4|
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 678
Theorem 9.4.3. Two symmetric matrices in Rn×n are congruent if and only if they
have the same signature.
Proof. Fix symmetric matrices B, C ∈ Rn×n , and suppose first that B and C both
have the same signature, say (n+ , n− , n0 ). Proposition 9.4.1 then guarantees B and
C are both congruent to the diagonal matrix
D := D 1, . . . , 1, −1, . . . , −1, 0, . . . , 0 .
| {z } | {z } | {z }
n+ n− n0
Proposition 9.2.6 then guarantees that DB and DC are congruent to each other. By
definition, this means that there exists an invertible matrix P ∈ Rn×n such that
DC = P T DB P ; we will use this to prove that p + q = r + s. On the other hand, by
Theorem 9.4.1,16 there exist bases B = {b1 , . . . , bn } and C = {c1 , . . . , cn } of Rn , as
well as a quadratic form qe on Rn , such that DB is the matrix of qe with respect to B,
and DC is the matrix of qe with respect to C; we will use this to prove that p = s.
We first show that p + q = s + t. Clearly, rank(DB ) = p + q and rank(DC ) = s + t,
and so it is enough to show that rank(DB ) = rank(DC ). Since the matrix P is
invertible, the Invertible Matrix Theorem (see subsection 8.2.6) guarantees that P T
is also inverible. But then
(∗)
rank(DC ) = rank(P T DB P ) = rank(DB ),
where (*) follows from Proposition 3.3.16 (since P T and P are both invertible).
It remains to show that p = s. Suppose otherwise. By symmetry, we may
assume that p > s. Now consider the subspaces UB := Span(b1 , . . . , bp ) and
UC := Span(cs+1 , . . . , cn ) of Rn . Then by Theorem 3.2.23, we have that
dim(UB ) + dim(UC ) = dim(UB + UC ) + dim(UB ∩ UC ).
But note that
16
We are using the “(a) =⇒ (c)” implication from Theorem 9.4.1
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 679
T (∗)
qe(u) = 2 2
u C
DC u C
= −ys+1 − · · · − ys+t ≤ 0,
where for both instances of (*), we used the formula from Proposition 9.1.1(a). We
have now derived a contradiction, and it follows that p = s. This completes the
argument.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 680
Remark: The basis C from the second sentence of Sylvester’s law of inertia is not
assumed to be polar, i.e. it is possible that it is not orthogonal.
Proof. Let A be the matrix of the quadratic form q with respect to the standard
basis En of Rn ; then the signature of A is (n+ , n− , n0 ).
We first prove the existence of the polar basis B. Set
D := D 1, . . . , 1, −1, . . . , −1, 0, . . . , 0 .
| {z } | {z } | {z }
n+ n− n0
T
D = En
IdV B
A En
IdV B
.
But now Theorem 9.3.3 guarantees that D is the matrix of q with respect to B. We
have already seen that the basis B is orthogonal, and we deduce that B is a polar
basis of Rn associated with q.
Now, fix any basis C of Rn such that the matrix of q with respect to C is a diagonal
matrix C with only 1’s, −1’s, and 0’s on the main diagonal. By Theorem 9.3.4,
matrices A and C are congruent, and so by Theorem 9.4.3, they have the same
signature, which is (n+ , n− , n0 ). Since the matrix C is diagonal, we know its entries
on the main diagonal form its spectrum;18 so, the number of 1’s, −1’s, and 0’s on
the main diagonal of C is n+ , n− , and n0 , respectively.
Solution. First of all, the (symmetric) matrix of q with respect to the standard basis
E4 of R4 is the matrix
0 2 1 1
2 0 −1 −1
A := 1 −1
.
0 −2
1 −1 −2 0
18
This follows from Proposition 8.2.7.
Irena Penev
Linear Algebra 1 & 2
Chapter 9. Bilinear and quadratic forms 681
This is precisely the matrix from Example 9.4.2. In the solution to that example, we
saw that the signature of A is (2, 1, 1), and so by definition, the signature of q is also
(2, 1, 1). Moreover, in the solution to Example 9.4.2, we saw that matrix
1/2 0 −1/4 1/2
1/2 0 1/4 −1/2
R :=
0 −1/2 1/4 1/2
0 1/2 1/4 1/2
is invertible with pairwise orthogonal columns, and that RT AR = D(1, 1, −1, 0).
The columns of the matrix R form a polar basis
1/2 0 −1/4 1/2
n 1/2 0 1/4
−1/2 o
B := 0 , −1/2 , 1/4
,
1/2
of R4 associated with the quadratic form q. The matrix of q with respect to the
polar basis B is the matrix D := RT AR = D(1, 1, −1, 0).
Thus, the graph of any quadratic form q on R2 has the same general shape as one
of the six graphs shown below (the one that has the same signature as q).19 The
actual graph of the quadratic form q would be obtained by starting with one of
the six graphs below (the one that has the same signature as q), and then possibly
stretching or shrinking the graph along the x1 - and x2 -axes (the coordinate axes of
the domain), and then possibly rotating it about the vertical axis x3 ; this to account
for the fact that a polar basis B of R2 associated with q is not necessarily equal to
the standard basis E2 = {e1 , e2 }, but the vectors of B are indeed orthogonal to each
other (by the definition of a polar basis).
19
My thanks to Milan Hladı́k, who generated these six graphs and shared them with me.
Irena Penev
Linear Algebra 1 & 2
Poznamenejme, že báze, vůči níž matice kvadratické formy je diagonální, se nazývá polární báze. Tedy
báze z věty 12.13 je příkladem polární báze, ale typicky existují i další. Dá se také ukázat, že polární báze
existuje nejen pro reálné prostory, ale i pro prostory nad libovolným tělesem charakteristiky různé od 2.
Geometrický význam Sylvestrova zákona setrvačnosti spočívá v tom najít vhodný souřadný systém (tj.
bázi), ve kterém má kvadratická forma jednoduchý diagonální tvar. Algebraický pohled na věc je ten, že
danou symetrickou matici A transformujeme na diagonální tvar pomocí úprav S TAS, kde S je regulární.
Chapter 9. Bilinear and quadratic forms 682
Příklad 12.14 (Kvadratické formy v R2 ). Podle Sylvestrova zákona mají kvadratické formy v R2 v pod-
statě jeden z následujících tvarů v souřadném systému vhodné báze.
50 0
40 −10
30 −20
20 −30
10 −40
0 −50
5 5
5 5
0 0
0 0
−5 −5 −5 −5
25 0
20 −5
15 −10
10 −15
5 −20
0 −25
5 5
5 5
0 0
0 0
−5 −5 −5 −5
x21 −x21
30 1
20
0.5
10
0 0
−10
−0.5
−20
−30 −1
5 5
5 5
0 0
0 0
−5 −5 −5 −5
x21 − x22 0
e2 b2 e2 b2
b1
e1 x1 e1 x1
−b1
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 683
Chapter 10
Matrix definiteness
Notation: Throughout this chapter, we will be working over the field R of real
numbers. So, in our numerical examples, we will not emphasize the fact that
the matrix in question has real entries (this will simply be assumed throughout).
Moreover, throughout this chapter, · denotes the standard scalar product in Rn , and
|| · || denotes the norm in Rn induced by the standard scalar product (for the relevant
definitions, see subsections 6.1.1 and 6.2.1).
Remark: Obviously, any positive definite matrix is positive semi-definite, and any
negative definite matrix if negative semi-definite.
Remark: We note that the definitions above would also make sense without the
requirement that A be symmetric. However, for any matrix A ∈ Rn×n , the matrix
1 T 1 n
2 (A + A ) is symmetric, and for all vectors x ∈ R , we have that
1 1
xT + AT ) x T + 12 (xT AT x)
2 (A = 2 (x Ax)
1
T
Indeed, 1
2
(A + AT ) = 12 (AT + A) = 21 (A + AT ), and so 1
2
(A + AT ) is symmetric.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 684
(∗) 1
= T
2 (x Ax) + 12 (xT AT x)T
1
= T
2 (x Ax) + 12 (xT Ax)
= xT Ax,
where (*) follows from the fact that xT Ax is a 1 × 1 matrix, and is consequently
symmetric. So, instead of considering an arbitrary square matrix A, we can consider
the symmetric matrix 12 (A + AT ) instead. This is important because some tests of
definiteness only work if we assume that the matrix in question is symmetric.
Remark: Matrix definiteness plays an important role in optimization, though these
lecture notes do not cover this. Another reason for caring about positive definite
matrices in particular is that it turns out that a bilinear form on a non-trivial,
finite-dimensional real vector space is a scalar product if and only if the matrix of
this bilinear form with respect to some basis of the vector space in question is a
positive definite matrix (see section 10.4). In fact, it can be shown that one such
matrix is positive definite if and only if all such matrices are positive definite (for a
precise statement, see Theorem 10.4.1).
Proposition 10.1.1. For every symmetric matrix A ∈ Rn×n , both the following
hold:
Proof. Fix a symmetric matrix A ∈ Rn×n . For (a), we have the following sequence
of equivalent statements:
⇐⇒ −A is negative definite.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 685
positive definite matrices, which are somewhat easier to deal with than the more
general positive semi-definite ones.
By Corollary 8.7.4, any symmetric matrix in Rn×n has n real eigenvalues (when
algebraic multiplicities are taken into account). The following theorem specifies the
relationship between the signature (defined in subsection 9.4.1) and the definiteness
of a symmetric matrix with real entries.
Theorem 10.1.2. Let A ∈ Rn×n be a symmetric matrix, and let (n+ , n− , n0 ) be the
signature of A. Then all the following hold:
(a) A is positive definite if and only if n+ = n (i.e. all eigenvalues of A are positive);
(c) A is negative definite if and only if n− = n (i.e. all eigenvalues of A are negative);
(e) A is indefinite if and only if n+ and n− are both non-zero (i.e. A has at least
one positive and at least one negative eigenvalue).
Proof. Obviously, (b) and (d) together imply (e).2 So, we just need to prove (a)-(d).
Here, we prove (a). The proofs of (b)-(d) are similar.
Suppose first that A is positive definite. Fix an eigenvalue λ of A, and let x
be an associated eigenvector of A; after possibly normalizing the eigenvector x (i.e.
x
replacing x by ||x|| ), we may assume that ||x|| = 1. Then
where (*) follows from the fact that A is positive definite and x ̸= 0, (**) follows
from the fact that x is an eigenvector of A associated with the eigenvalue λ, and
(***) follows from the fact that ||x|| = 1. We have now shown that λ > 0; since λ
was an arbitrarily chosen eigenvalue of A, we deduce that all eigenvalues of A are
positive, i.e. n+ = n.
2
Indeed, by definition, n+ , n− , n0 ≥ 0 and n+ + n− + n0 = n. Moreover, by definition, A is
indefinite if and only if it is neither positive semi-definite nor negative semi-definite. So, assuming (b)
and (d), we have the following sequence of equivalent statements:
(∗)
A is indefinite ⇐⇒ n+ + n0 < n and n− + n0 < n
⇐⇒ n+ , n− > 0,
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 686
Suppose conversely that n+ = n, i.e. that all eigenvalues of A are positive. Since
A is symmetric, the spectral theorem for symmetric matrices (see subsection 8.7.3)
guarantees that Rn has an orthonormal eigenbasis B = {x1 , . . . , xn } associated
with A. For each i ∈ {1, . . . , n}, let λi be the eigenvalue of A associated with the
eigenvector xi . Set λ0 := min{λ1 , . . . , λn }; since all eigenvalues of A are positive, we
see that λ0 > 0. Now, fix any x ∈ Rn \ {0}. Since B is a basis of Rn , we know that
there exist scalars α1 , . . . , αn ∈ R such that x = α1 x1 + · · · + αn xn . Since x ̸= 0, at
least one of α1 , . . . , αn is non-zero. We now compute:
n T n
xT Ax
P P
= αi xi A α j xj
i=1 j=1
n P
n
αi αj xTi Axj
P
=
i=1 j=1
n P
n because each xj is an
αi αj xTi (λj xj )
P
= eigenvector of A associated
i=1 j=1 with the eigenvalue λj
n P
n
λj αi αj (xTi xj )
P
=
i=1 j=1
n P
P n
= λj αi αj (xi · xj )
i=1 j=1
n because x1 , . . . , xn are
λi αi2 (xi · xi )
P
= pairwise orthogonal (by
i=1 the orthonormality of B)
n
λi αi2 ||xi ||2
P
=
i=1
n because x1 , . . . , xn are
λi αi2
P
= unit vectors (by the
i=1 orthonormality of B)
n because λ0 = min{λ1 , . . . , λn }
λ0 αi2
P
≥
i=1 and α12 , . . . , αn2 ≥ 0
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 687
(a) If A is positive definite, then det(A) and trace(A) are both positive.
(b) If A is positive semi-definite, then det(A) and trace(A) are both non-negative.
Proof. Since A is symmetric, Corollary 8.7.4 guarantees that it has n real eigenvalues
(with algebraic multiplicities taken into account). So, let {λ1 , . . . , λn } be the spectrum
of A. By Theorem 8.2.10, we have that det(A) = λ1 . . . λn and trace(A) = λ1 +· · ·+λn .
By Theorem 10.1.2(a), all eigenvalues of a positive definite matrix are positive, and it
follows that (a) holds. Similarly, by Theorem 10.1.2(b), all eigenvalues of a positive
semi-definite matrix are non-negative, and it follows that (b) holds.
Proposition 10.1.4. The main diagonal of any positive definite (resp. positive
semi-definite, negative definite, negative semi-definite) matrix is positive (resp. non-
negative, negative, non-positive).
Proof. Fix a matrix A = ai,j n×n in Rn×n . Then for all indices i ∈ {1, . . . , n}, we
have that eTi Aei = ai,i .3 The result now follows from the appropriate definitions.4
Proposition 10.1.5. Let A, B ∈ Rn×n and α ∈ R. Then all the following hold:
(a) if A and B are both positive definite (resp. positive semi-definite, negative definite,
negative semi-definite), then A+B is positive definite (resp. positive semi-definite,
negative definite, negative semi-definite);
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 688
Proof. The proof of (a), (b), and (c) is left as a straightforward exercise. Let us
prove (d). We prove the result for positive definite matrices; the proof for negative
definite matrices is similar, or alternatively, it can be reduced to the case of positive
definiteness via Proposition 10.1.1(a).
Assume that A is positive definite. Then by Theorem 10.1.2(a), all eigenvalues of
A are positive, and in particular, 0 is not an eigenvalue of A. So, by the Invertible
Matrix Theorem (see subsection 8.2.6), A is invertible. We must show that A−1 is
positive definite.
First, we show that A−1 is symmetric. By Proposition 1.11.8(c), AT is invertible
and satisfies (AT )−1 = (A−1 )T . But AT = A (because A is positive definite and
therefore symmetric), and it follows that A−1 = (A−1 )T . So, A−1 is symmetric.
In view of Theorem 10.1.2(a), it now suffices to show that all eigenvalues of A−1
are positive. So, let λ ∈ R be an eigenvalue of A−1 , and let v ∈ Rn \ {0} be an
associated eigenvector. Since A−1 is invertible, the Invertible Matrix Theorem once
again guarantees that λ ̸= 0, and in particular, λ1 is defined. We now compute:
1 (∗) 1 −1 1 −1 1
Av = λ A(λv) = λ A(A v) = λ (AA
| {z })v = λ v,
=In
where (*) follows from the fact that v is an eigenvector of A−1 associated with the
eigenvalue λ. But now v is an eigenvector of A associated with the eigenvalue λ1 ,
and it follows that λ1 > 0 (because all eigenvalues of A are positive). So, λ > 0.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 689
a1,1 aT
A = .
a A1,1
..
.
an,1
Rn → Rn − a1,1 R1 .
Then " #
a1,1 aT
A
e = 1 .
0 A1,1 − a1,1 aaT
Proof. Set
rT2
A1,1 = ... ,
rTn
so that the row vectors rT2 , . . . , rTn (in R1×(n−1) ) are the rows of A1,1 (from top to
bottom).5
Since none of the elementary row
operations modified the first row of A, we see
e is a1,1 aT . On the other hand, for each i ∈ {2, . . . , n}, the
that the first row of A
h i
i-th row of Ae is 0 rTi − ai,1 aT , whereas the (i − 1)-th row of the (n − 1) × (n − 1)
a1,1
1 ai,1 T
matrix A1,1 − a1,1 aaT is T
ri − a1,1 a . The result is now immediate.
where in (*), we used the fact that A is symmetric and so AT = A. This proves that
A − αaaT is indeed symmetric.
5
T
So, r2 , . . . , rn ∈ Rn−1 , and A1,1 =
r2 ... rn .
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 690
aT
α
0 A′ − α1 aaT
α aT − α1 aT x
(∗)
− α1 aT x xT
=
a A′ x
| {z }
:=y
(∗∗)
= yT Ay > 0
where (**) follows from the fact that A is positive definite and y ̸= 0 (because
x ̸= 0), and (*) follows from the following computation:
1 T
α aT −aT x + aT x
1 T −αa x 1 T
− α a x xT T
= − a x x
a A′ x α − α1 aaT x + A′ x
0
− α1 aT x xT
=
A′ x − α1 aaT x
= xT A′ x − α1 xT aaT x.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 691
α aT
x0
xT Ax zT
= x0
a A′ z
= αx20 + x0 aT z + x0 zT a + zT A′ z
(∗)
= αx20 + 2x0 aT z + zT A′ z
√ 2 (∗∗)
= zT (A′ − α1 aaT )z + √1 aT z
α
+ αx0 ≥ 0,
6
Indeed, suppose we are given a matrix A = a in R1×1 . Then for all x = x in R1 \ {0},
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 692
α2 aT2
Next, set α2 := 9, a2 := 3 , and A′2 := 2 , so that A1 =
. We
a2 A′2
have that α2 > 0, and so by Theorem 10.2.3, A1 is positive definite if and only if
A2 := A′2 − α12 a2 aT2 is positive definite. We compute
Since the only entry of A2 is positive, we see that A2 is positive definite. So, A is
positive definite.
α1 aT1
so that A = . We have that α1 > 0, and so by Theorem 10.2.3, A is
a1 A′1
positive definite if and only if A1 := A′1 − α11 a1 aT1 is positive definite. We compute:
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 693
3 0 1 −2
A′1 − 1 T 0 6 0 − 1 2 −2 2 0 T
A1 = α1 a1 a1 = 2
1 0 2 0
1 2 1
= 2 4 0 .
1 0 2
Next, set
2 4 0
α2 := 1, a2 := , A′2 = ,
1 0 2
α2 aT2
so that A1 = . We have that α2 > 0, and so by Theorem 10.2.3, A1 is
a2 A′2
positive definite if and only if A2 := A′2 − α12 a2 aT2 is positive definite. We compute:
′ 1 T 4 0 1 2 0 −2
A2 = A2 − α2 a 2 a 2 = −1 2 1 = .
0 2 1 −2 1
The matrix A2 has a zero on the main diagonal, and so by Proposition 10.1.4, A2 is
not positive definite. So, A is not positive definite.
For j ∈ {1, . . . , n}, and assuming the matrix Aj has already been generated, we
proceed as follows.
Step j:
– If the main diagonal of Aj is not positive,7 then the algorithm returns
the answer that A is not positive definite and terminates.
– If the main diagonal of Aj is positive and j = n, then the algorithm
returns the answer that A is positive definite and terminates.
– If the main diagonal of Aj is positive and j ≤ n − 1, then for each index
i ∈ {j + 1, . . . , n}, we add a suitable scalar multiple of the j-th row of Aj
to the i-th row of Aj so that the i, j-th entry of the matrix becomes zero;8
we call the resulting matrix Aj+1 , and we go to Step j + 1.
7
This means that the main diagonal of Aj has at least one non-positive entry.
8
The point is to turn all the entries of the j-th column below the main diagonal into zeros.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 694
Remark: The algorithm performs a modified version of the “forward” part of the
row reduction algorithm. It only performs elementary row operations of the form
“Ri → Ri + αRj ,” where i > j (i.e. row i is below row j), and where α is chosen so
that the i, j-th entry of the matrix becomes zero; moreover, these operations (which
add scalar multiples of row j to the rows below it) are performed only in Step j.9
We keep modifying our matrix until we either obtain a zero or a negative number on
the main diagonal (in this case, our input matrix is not positive definite), or until we
transform our matrix into an upper triangular matrix with a positive main diagonal
(in this case, our input matrix is positive definite). To fully understand how this
algorithm works, the reader may wish to take a look at Examples 10.2.7 and 10.2.8
before reading the proof of the theorem.
..
.
an,1
Rn → Rn − a1,1 R1 .
This transforms entries 2, . . . , n − 1 of the first column into 0. The resulting matrix
is A2 . But note that our matrix A1 = A is of the form
a1,1 aT
A1 = A = ,
a A1,1
9
Essentially, we use the j, j-th entry of the matrix Aj to “clean up” the j-th column below the
main diagonal, i.e. to turn all entries of the j-th column below the main diagonal into zeros. Note
that at the start of Step j, the leftmost j − 1 many columns have already been processed, so that
they have all zeros below the main diagonal.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 695
T
where a = a2,1 . . . an,1 , and A1,1 is the matrix obtained from A by deleting
the first row and first column. So, by Proposition 10.2.2, the matrix A2 that we
obtain after the Step 1 is precisely the matrix
" #
a1,1 aT
A2 = 1 .
0 A1,1 − a1,1 aaT
1
By Proposition 10.2.2, A1,1 − a1,1 aaT is symmetric, and the remainder of our algorithm
1
only manipulates the (n − 1) × (n − 1) submatrix A1,1 − a1,1 aaT of A2 (while leaving
the top row and leftmost column of A2 unchanged). Moreover, by Theorem 10.2.3,
1
A is positive definite if and only if A1,1 − a1,1 aaT is positive definite. The result now
readily follows from the induction hypothesis.
is positive definite.
R2 →R2 + 12 R1
4 −2 4
R3 →R3 −R1
∼ 0 9 3 Step 1
0 3 2
| {z }
=:A2
R3 →R3 − 13 R2
4 −2 4
∼ 0 9 3 Step 2.
0 0 1
| {z }
=:A3
We have now obtained an upper triangular matrix with a positive main diagonal.
So, by Theorem 10.2.6, A is positive definite. (This answer is returned by Step 3 of
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 696
the algorithm from Theorem 10.2.6, at which point the algorithm terminates.)
Remark: Normally, we do not actually number our steps, and we do not name the
matrices Ai ; here, we did it for the sake of extra clarity. The horizontal and vertical
dotted lines are also optional, but they are useful for visually keeping track of the
submatrix being processed, and so it is not a bad idea to include them.
is positive definite.
We have now obtained a zero on the main diagonal of our matrix, and so by
Theorem 10.2.6, the matrix A is not positive definite.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 697
Proof. We first assume (i) and prove (ii). In view of Corollary 10.1.3(a), it suffices
to show that the matrices A(1) , . . . , A(n) are all positive definite. Obviously, these n
matrices are all symmetric (because A is symmetric). Now, fix an index k ∈ {1, . . . , n}
T
in Rk \ {0}; we must show that xTk A(k) xk > 0.
and a vector xk = x1 . . . xk
T
Set x := x1 . . . xk 0 . . . 0 (with n − k zeros to the right of the vertical
dotted line, so that x ∈ Rn \ {0}). Then
(∗)
xTk A(k) xk = xT Ax > 0,
where (*) follows from the fact that A is positive definite and x ̸= 0 (because xk =
̸ 0).
So, A(k) is positive definite, and we deduce that (ii) holds.
We now assume (ii) and prove (i). We may assume inductively that the statement
is true for smaller matrices. More precisely, we assume that the following holds.
Set A = ai,j n×n . Then a1,1 = det A(1) > 0. If n = 1, so that A = a1,1 ,
then it is clear that A is positive definite, and we are done. So, from now, we assume
that n ≥ 2. Let A e be the matrix obtained from A by (sequentially or simultaneously)
performing the following elementary row operations on A:
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 698
a2,1
R2 → R2 − a1,1 R1 ;
a3,1
R3 → R3 − a1,1 R1 ;
..
.
an,1
Rn → Rn − a1,1 R1 .
1
Set B := A1,1 − a1,1 aaT ; obviously, B ∈ R(n−1)×(n−1) , and by Proposition 10.2.2, B
is symmetric. By Proposition 10.2.1, we have that
" #
T
a1,1 aT
a 1,1 a
A = 1 = ,
aaT
e
0 A1,1 − a1,1 0 B
and since we have already checked that a1,1 > 0, Theorem 10.2.3 guarantees that A
is positive definite if and only if B is positive definite. Thus, it is enough to show
that the symmetric matrix B ∈ R(n−1)×(n−1) is positive definite. By the induction
hypothesis, it suffices to show that det B (1) , . . . , det B (n−1) > 0.
Fix an index k ∈ {1, . . . , n − 1}; we must show that det B (k) > 0. First of
where (*) follows from the fact that a1,1 > 0 and det A(k+1) > 0. We now conclude
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 699
4 −2
det A(2) =
= 36 > 0;
−2 10
4 −2 4
det A(3) =
−2 10 1 = 36 > 0.
4 1 6
All three determinants are positive, and so by Sylvester’s criterion of positive
definiteness, the matrix A is positive definite.
2 −2
det A(2) =
= 2 > 0;
−2 3
2 −2 2
det A(3) =
−2 3 0 = 0.
2 0 6
Since det A(3) is not positive, Sylvester’s criterion of positive definiteness guarantees
Remark: Note that we did not need to compute det A(4) . In general, if we obtain
det A(k) ≤ 0 for some k, then we do not need to compute further, and we simply
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 700
Clearly, L is lower triangular with a positive main diagonal. Moreover, we have that
" √ #" √ #
T
α 0T α √1α aT
LL = √1 a L′
α 0 L′T
aT
α
= 1 T ′ ′T
a α aa + L L
α aT
= = A.
a A′
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 701
β 0T
L1 = ,
b L′1
where β is some positive real number, b is some vector in Rn , and L′1 is some lower
triangular matrix in Rn×n with a positive main diagonal. Then
β 0T β bT
2
βbT
T β
A = L1 L1 = = .
b L′1 0 L′T 1 βb bbT + L′1 L′T 1
2. For all j ∈ {2, . . . , n}, assuming we have constructed the first (i.e. leftmost)
j − 1 columns of L, we construct the j-th column of L as follows (from top to
bottom):
10
Indeed, L′ is the unique lower triangular matrix in Rn×n with a positive main diagonal such that
A − α1 aaT = L′ L′T . Since L′1 is a lower triangular matrix in Rn×n with a positive main diagonal
′
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 702
We omit the proof of correctness of the construction above, but it essentially follows
from Theorem 10.2.3 and from the proof of Theorem 10.3.2.
Example 10.3.3. Compute the Cholesky decomposition of the positive definite matrix
4 −2 4
A := −2 10 1 .
4 1 6
(The fact that A is positive definite follows from the solution of Example 10.2.4, 10.2.7,
or 10.2.10.)
Proof. We construct the matrix L = ℓi,j 3×3 as follows.
1. The first column of L is:
√ √
ℓ1,1 := a1,1 = 4 = 2,
a
ℓ2,1 := √ 2,1
a1,1 = −2
√
4
= −1,
a3,1
ℓ3,1 := √
a1,1 = 4
√
4
= 2.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 703
Remark: The main reason for interest in the Cholesky decomposition for positive
definite matrices is that it allows us to solve equations of the form Ax = b (where A
is positive definite) faster, as well as to compute the inverse of A faster. We omit
the details.
Moreover, as we saw in subsection 6.1.1, these four axioms imply the following:
As we saw in section 9.2, every scalar product in a real vector space is, in
particular, a symmetric bilinear form on that vector space. Furthermore, we have
the following theorem.
(ii) for all bases B of V , the matrix B of the bilinear form ⟨·, ·⟩ with respect to the
basis B is positive definite;
(iii) there exists a basis B of V such that the matrix B of the bilinear form ⟨·, ·⟩
with respect to the basis B is positive definite.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 704
T
in Rn ; we must
also symmetric. Now, fix any non-zero vector x = x1 . . . xn
T
show that x Bx > 0. Set v := x1 b1 + · · · + xn bn , so that v B = x. Since x ̸= 0,
and since · B is an isomorphism, we have that v ̸= 0. Then
T (∗) (∗∗)
xT Bx =
v B
B v B
= ⟨v, v⟩ > 0,
where (*) follows from the fact that B is the matrix of the bilinear form ⟨·, ·⟩, and
(**) follows from (i), and more precisely, from the axiom r.1. This proves that B is
positive definite, and (ii) follows.
We now assume (iii) and prove (i). First of all, since ⟨·, ·⟩ is a bilinear form, it
satisfies axioms r.2 and r.3 from the definition of a scalar product; it remains to
show that it satisfies axioms r.1 and r.4. Using (iii), we fix a basis B of V such that
the matrix B of the bilinear form ⟨·, ·⟩ with respect to the basis B is positive definite.
Since B is positive definite, it is in particular symmetric, and so by Theorem 9.2.2(a),
the bilinear form ⟨·, ·⟩ is also symmetric, i.e. r.4 holds. It remains to show that r.1
holds. First, we have that
(∗) T
= 0T B0 = 0,
⟨0, 0⟩ = 0 B
B 0 B
⟨·, ·⟩
where (*) follows from the fact that B is the matrix of the bilinear form
with respect to the basis B. Now, fix any vector x ∈ V \ {0}. Since · B is an
isomorphism, we see that x B ̸= 0. We then have that
(∗) (∗∗)
⟨x, x⟩ = x B
B x B
> 0,
where (*) follows from the fact that B is the matrix of the bilinear form ⟨·, ·⟩, and
(**) follows from the fact that B is positive definite and x B = ̸ 0. Thus, r.1 holds.
This proves (i).
Corollary 10.4.2. For any function ⟨·, ·⟩ : Rn ×Rn → R, the following are equivalent:
(ii) there exists a positive definite matrix A ∈ Rn×n such that for all x, y ∈ Rn , we
have ⟨x, y⟩ = xT Ay.
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 705
Now, let A be the matrix of the bilinear form ⟨·, ·⟩ with respect to the standard
basis En of Rn . Then for all x, y ∈ Rn , we have that
T
x E A y E = xT Ay.
⟨x, y⟩ =
n n
(a) Compute the matrix of the bilinear form ⟨·, ·⟩ with respect to the standard basis
E3 of R3 .
Remark: Note that the i, j-th entry of this matrix is simply the coefficient in front
of xi yj , for all indices i, j ∈ {1, 2, 3}.
(b) The matrix A from part (a) is symmetric, and so Theorem 9.2.2(a) guarantees
that ⟨·, ·⟩ is also symmetric.
(c) By Corollary 10.4.2, we know that ⟨·, ·⟩ is a scalar product in R3 if and only if
the matrix A is positive definite. We already saw that A is symmetric. We can now
perform any of our tests of positive definiteness on the matrix A. When computing
by hand with small-ish matrices, it is usually easiest to use Sylvester’s criterion of
positive definiteness (see Theorem 10.2.9). We compute:
5 2
det A(2) =
= 1 > 0;
2 1
5 2 −2
det A(3) =
2 1 0 = 2 > 0.
−2 0 6
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 706
(a) Compute the matrix of the bilinear form ⟨·, ·⟩ with respect to the standard basis
E4 of R4 .
(b) Since the matrix A from part (a) is symmetric, Theorem 9.2.2(a) guarantees
that the bilinear form ⟨·, ·⟩ on R4 is also symmetric.
(c) By Corollary 10.4.2, ⟨·, ·⟩ is a scalar product in R4 if and only if A is positive
definite. But since the main diagonal of A is not positive,13 Proposition 10.1.4
guarantees that A is not positive definite. We now conclude that ⟨·, ·⟩ is not a scalar
product in R4 .
(a) Compute the matrix of the bilinear form ⟨·, ·⟩ with respect to the standard basis
E3 of R3 .
Irena Penev
Linear Algebra 1 & 2
Chapter 10. Matrix definiteness 707
(b) The matrix A from part (a) is not symmetric, and so by Theorem 9.2.2(a),
the bilinear form ⟨·, ·⟩ on R3 is not symmetric, either.
(c) Since the bilinear form ⟨·, ·⟩ is not symmetric, it is not a scalar product.
Irena Penev
Linear Algebra 1 & 2
Bibliography 708
Bibliography
[1] Otto Bretscher, Linear algebra with applications (4th ed.), Pearson, Upper
Saddle River, 2009.
[2] Evan Dummit, Linear Algebra (part 4): Eigenvalues, Diagonalization, and the
Jordan Form (v. 3.00, 2022), [Link]
/linalgthy_4_eigenvalues_diagonalization_jordan_form.pdf (accessed
April 18, 2024).
[4] Milan Hladı́k, Lineárnı́ algebra (nejen) pro informatiky, MatfyzPress, Praha,
2019.
[6] David C. Lay, Linear algebra and its applications (3rd ed.), Pearson, Boston,
2006.
[7] marco2013, Similarity of real matrices over C (In Stack Exchange), https:
//[Link]/q/1129770 (accessed April 18, 2024).
[13] Mark Wildon, A short proof of the existence of Jordan normal form, https:
//[Link]/~uvah099/Maths/[Link] (accessed April 18,
2024).
[14] Alex Zorn, Prove that the characteristic polynomial of a nilpotent matrix is xn
(In Stack Exchange), [Link] (accessed
April 18, 2024).
Irena Penev
Linear Algebra 1 & 2