Second Year Linear Algebra Notes
Second Year Linear Algebra Notes
JESSE RATZKIN
1.1. Motivations. In these notes we will explore the algebra and geometry of a
certain family of very nice transformations: the linear transformations. In previ-
ous classes, you’ve seen that one can add together vectors in space, and multiply a
vector by a number (i.e. scalar). This gives three-dimensional space (in fact, any
finite dimensional Euclidean space) a certain degree of algebraic structure. The
2LA module is all about the transformations of Euclidean space which preserve
this structure. Along the way we will also explore some abstract properties of lin-
ear transformations and the natural spaces they act on, which are vector spaces.
The material in this course will seem very abstract at times, but it has a wealth of
applications to mathematical modeling, dynamical systems, differential equations,
and many many other areas. For instance, it turns out that linear algebra greatly
simplifies the classification of isometries of the plane and of three-dimensional Eu-
clidean space (and of any dimensional Euclidean space). Some of you will take the
2DE module next semester, and there you will see many applications of eigenvalues
and eigenvectors (which we will learn about in this module).
1.2. Background. Here we list some topics you should already be familiar with
from MAM1000. This is by no means a complete list!
• vectors in two and three dimensions
• the dot product
• the cross product
• matrices, and operations on them (e.g. matrix addition and multiplication)
• systems of linear equations; in particular, you should know how to solve a
system of linear equations by converting it to a matrix equation and then
row-reducing the matrix.
• the complex numbers
• some elementary linear mappings of the plane (particularly rotations and
reflections)
If you don’t already know an item listed above, please review it as soon as
possible.
Date: 2013.
1
1.3. Other resources. I have more or less cribbed these notes from the book
Linear Algebra by S. Friedberg, A. Insel, and L. Spence. I have placed this book
on short loan, and you can borrow it for 3 hours at a time.
There are many other great books on linear algebra, and you can find them under
the call number 512.5 in the main library. I’d encourage you to page through several
of them until you find one you like. Here are some others I like:
• Elementary Linear Algebra by H. Anton
• Linear Algebra with Applications by O. Bretscher
• Introduction to Linear Algebra by G. Strang
1.4. Notation. For future reference, we collect here a table of some common no-
tation.
a
1 -
1 a
Actually, if we adopt the convention that we always start with the unit square
{0 ≤ x ≤ 1, 0 ≤ y ≤ 1}, we really only need to draw the square on the right to have
a geometric picture of or transformation. If we want to write this transformation
in terms of matrices, we can write
x a 0 x ax
7→ = .
y 0 a y ay
In the previous example, we scaled the horizontal and vertical axes by the same
factor, but there’s no reason we have to do this. More generally, we might scale the
horizontal axis by a > 0 and the vertical axis by b > 0. This time, we can write
the transformation as
x a 0 x ax
7→ = .
y 0 b y by
As before, we can represent this transformation with a picture.
b
1 -
1 a
3
Rotations and reflections: Let’s suppose we want to write down a formula for
a 30◦ counterclockwise rotation in the plane; call this rotation R30 . For instance,
we may have a collection of data points we’d like to put into a database, but the
coordinates of these datapoints are all rotated by 30◦ in the clockwise direction,
and so we want to undo this rotation, by rotating through the same angle in the
opposite direction. So let’s find out how to write down a formula for the rotation.
We start with a picture of the vectors (1, 0) and (0, 1) rotated by 30◦ .
y
A
K 6
A
A
A
A
A *
A
A $
A
30◦
A
A - x
?
We see that (1, 0) gets mapped to the point
√
cos(30◦ )
1 3/2
R30 = = ,
0 sin(30◦ ) 1/2
− sin(30◦ )
0 −1/2
R30 = = √ .
1 cos(30◦ ) 3/2
Next observe that we can rescale the vectors (1, 0) and (0, 1), and, because
rotations don’t change lengths, the rotation will carry these scalings along:
√
x 3x/2 0 −y/2
R30 = , R30 = √ .
0 x/2 y 3y/2
?
Then, just as before, we have
1 cos θ 0 − sin θ
Rθ = , Rθ = ,
0 sin θ 1 cos θ
and, by the same argument we have above,
x x cos θ − y sin θ cos θ − sin θ x
Rθ = = .
y x sin θ + y cos θ sin θ cos θ y
In this way, we can say that the rotation Rθ is given by multiplication (on the left)
by the matrix
cos θ − sin θ
[Rθ ] = .
sin θ cos θ
Exercise: Verify that
cos θ sin θ
[R−θ ] = .
− sin θ cos θ
Exercise: Verify that [Rθ ]2 = [R2θ ]. (You’ll need to remember double angle
formulas from trigonometry.)
5
Exercise: Verify that [Rθ ][Rφ ] = [Rθ+φ ]. (You’ll need to remember the angle
addition formulas from trigonometry.) Notice that rotation matrices commute!
That is, [Rθ ][Rφ ] = [Rφ ][Rθ ].
Now that we’ve figured out how to write any rotation as multiplication by a
matrix, let’s be a little ambitious and see what else we can write. The next natural
thing to consider is a reflection. The reflection through the x axis sends (x, y) to
(x, −y). We can write this as a matrix product by
x x 1 0 x
7→ = .
y −y 0 −1 y
Now that we know how to write reflection through the y axis and any rotation,
we can write down any reflection through a line that intersections the origin (0, 0).
Indeed, let l be a line passing through the origin making an angle θ with the positive
x axis, and let rl be reflection through the line l. We build the matrix for rl by
performing three transformations in succession. We first rotate our coordinates by
−θ, then reflect through the x axis, and then rotate back by the angle θ. The result
is a reflection fixing the line l, so it must be rl , and it has the matrix representation
cos θ − sin θ 1 0 cos θ sin θ
[rl ] =
sin θ cos θ 0 −1 − sin θ cos θ
cos2 θ − sin2 θ
2 cos θ sin θ
= .
2 cos θ sin θ sin2 θ − cos2 θ
cos(2θ) sin(2θ)
= .
sin(2θ) − cos(2θ)
Let’s check quickly that we have the right matrix for the reflection through the
line l. This line l is uniquely determined by the two points (0, 0) and (cos θ, sin θ),
so we only need to check that [rl ] fixes these two vectors. It is quite easy to check
that
0 cos(2θ) sin(2θ) 0 0
[rl ] = = .
0 sin(2θ) − cos(2θ) 0 0
Now we check that [rl ] fixes (cos θ, sin θ):
cos2 θ − sin2 θ
cos θ 2 cos θ sin θ cos θ
[rl ] =
sin θ 2 cos θ sin θ sin2 θ − cos2 θ sin θ
cos3 θ − sin2 θ cos θ + 2 sin2 θ cos θ
=
2 cos2 θ sin θ − cos2 θ sin θ + sin3 θ
cos θ(cos2 θ + sin2 θ)
cos θ
= = .
sin θ(cos2 θ + sin2 θ) sin θ
Sheers: The next sort of transformation we’ll talk about is a sheer, which you
can imagine as what happens to a deck of cards (as viewed from the side) when
you push the top card to the side and hold the bottom
card still. This means a
1
sheer will fix one direction, say the direction of , but it will move the other
0
6
directions. We draw a picture of what this transformation does the unit square
{0 ≤ x ≤ 1, 0 ≤ y ≤ 1} below.
(1, 1)
1 -
1 (1, 0)
Exercise: Notice that a can be negative in the formula just above. What does
the paralellogram which is the image of the unit square {0 ≤ x ≤ 1, 0 ≤ y ≤ 1}
look like in this case? In particular, what can you say about the angle at the origin
(0, 0)?
Exercise: Show that the general sheer which fixes the y axis is given by a matrix
of the form
1 0
[S] = ,
a 1
where a 6= 0 is a number.
1
Exercise: Construct the general sheer which fixes the direction. Hint:
1
you might want to apply a rotation.
General matrices as mappings: We just saw how to construct the matrix
associated
to a sheer
by tracking where the sheer transformation sends the basis
1 0
vectors and . In fact, this technique is exactly how we can produce the
0 1
matrix associated to any linear transformation. Let T : R2 → R2 be any linear
transformation, which means T (v + w) = T (v) + T (w) for all vectors v, w ∈ R2
and T (av) = aT (v) for all scalars
a.
0 0
Exercise: Prove that T = for any linear mapping. Hint: sup-
0 0
0
pose otherwise; then what is T 2 ?
0
We can construct a matrix
associated to T , which we call [T ], as
follows.
The
1 0
first column of [T ] is T , and the second column of [T ] is T .
0 1
Let’s check this is actually the right matrix. Suppose we have a linear mapping
T : R2 → R2 with
1 a 0 b
T = , T = .
0 c 1 d
In this case we’d like to check that the matrix associated with T is
a b
[T ] = .
c d
8
Indeed,
x x 0
T = T +
y 0 1
1 0
= xT + yT
0 1
a b
= x +y
c d
ax + by
=
cx + dy
x a b x
[T ] =
y c d y
ax + by
= .
cx + dy
In both computations we end up with the same answer, regardless of which x and
y we choose, so this matrix must be the correct choice.
Let’s look at an example. Suppose we want to find the linear map which takes
the unit square {0 ≤ x ≤ 1, 0 ≤ y ≤ 1} to the parallelogram with the vertices
(0, 0), (2, 1), (1, 2), (3, 3).
Here’s a picture.
(1, 2)
(2, 1)
-
In fact, we have two choices for this linear mapping; we can either have
1 2 0 1
T = , T = ,
0 1 1 2
or we can have
1 1 0 2
T = , T = .
0 2 1 1
In the first case we have
2 1
[T ] = ,
1 2
and in the second case we have
1 2
[T ] = .
2 1
9
Notice that we can get from one of these matrices to the other
by swapping
the
1 0
columns, which geometrically corresponds to the swapping and . We
0 1
can write this in terms of matrix multiplication as
2 1 1 2 0 1
= .
1 2 2 1 1 0
(Youshouldcheck the matrix product.) This should not surprise you. The ma-
0 1
trix corresponds to the reflection through the line y = x, which maps
1 0
1 0
our parallelogram to itself and interchanges the vectors and . Thus
0 1
we see that we represent the composition of linear mappings as matrix
multiplication. We will return to this important
idea later on in these
notes.
1 3 1 0
Exercise: Why can’t we have T = ? Hint: what is + ?
0 3 0 1
In fact, we can reverse this process. Suppose we have a matrix, let’s say
1 −3
[T ] = ,
4 1
and we want to understand the linear transformation associated to this matrix. We
can draw the parallelogram that T sends the unit square {0 ≤ x ≤ 1, 0 ≤ y ≤ 1}
onto, which gives us all the geometric information about T . We see from the matrix
that
1 1 0 −3
T = , T = .
0 4 1 1
To draw
the parallelogram, all we need to do is draw in these two edges starting
0
at and connect them. We end up with the following picture.
0
P
PP
PP P
P
(1, 4)
(−3, 1)PPP
- PP
PP
Exercise: Can you explain why the image of a square is always a parallelogram?
(Or a line segment, which is really a degenerate parallelogram, with one pair of
opposite angles collapsed to 0 . . . )
Beyond two dimensions: So far we’ve seen how to write down the matrix of a
linear transformation taking the unit square to an arbitrary parallelogram, and how
to draw the parallelogram which is the image of the unit square under an arbitrary
10
linear mapping. However, nothing we’ve done so far is special to two dimensions,
and everything works in higher dimensions. Let’s suppose T : Rn → Rm is a linear
mapping. Also let {e1 , e2 , e3 , . . . , en } be the vectors in Rn where ei has a 1 in the
ith component and 0 elsewhere. (This is known as the standard basis of Rn .) Then
we can write down a matrix [T ], where the ith column of T is T (ei ). We have
.
...
..
[T ] = T (e1 ) T (e2 ) · · · T (en ) .
.. ..
. .
Example: It is not always true that the union of two subspaces is a subspace.
Let V = R2 , let W1 = {(x, 0) : x ∈ R}, and let W2 = {(0, y) : y ∈ R}. Then
W1 and W2 are subspaces of V , but W1 ∪ W2 is not. Indeed, (1, 0) ∈ W1 and
(0, 1) ∈ W2 , but (1, 1) = (1, 0) + (0, 1) 6∈ W1 ∪ W2 . Thus W1 ∪ W2 is not closed
under vector addition, so it cannot be a subspace.
Exercise: Prove that W1 ∪ W2 is a subspace if and only if either W1 ⊂ W2 or
W2 ⊂ W1 .
In the next chapter we will see many very important examples of subspaces in
vector spaces, but there two large families of examples you already know.
• Any line through the origin in either the plane or three-space is a vector
subspace.
• Any plane through the origin in three-space is vector subspace.
13
3.2. Linear dependence and independence. We return to vector spaces over
R.
Definition 3. Let V be a vector space over R and let v1 , v2 , . . . , vk ∈ V . We say
{v1 , . . . , vk } are linearly dependent if there is a choice of scalars a1 , a2 , . . . , ak , not
all of which are zero, such that
a1 v1 + a2 v2 + · · · + ak vk = 0.
Otherwise, we say {v1 , . . . , vk } are linearly independent.
The left hand side of this equation above,
a1 v1 + a2 v2 + · · · + ak vk ,
is called a (finite) linear combination of the vectors v1 , . . . , vk , and the scalars
a1 , . . . , ak are called the coefficients of the linear combination. Thus we can say
a set A = {v1 , . . . vk } is linearly dependent if and only if there is some linear
combination, not all of whose coefficients are zero, where the linear combination
itself is zero.
Example: We prove that {v1 , . . . , vk } are linearly independent if and only if
a1 v1 + a2 v2 + · · · + ak vk = 0
implies a1 = a2 = · · · = ak = 0. Suppose there exist coefficients a1 , a2 , . . . , ak , not
all of which are zero, such that
a1 v1 + a2 v2 + · · · + ak vk = 0.
Then by definition {v1 , v2 , . . . , vk } is linearly dependent, so it is not a linearly
independent set. Now suppose the only set of coefficients a1 , a2 , . . . , ak such that
a1 v1 + a2 v2 + · · · + ak vk = 0
is a1 = a2 = · · · = ak = 0. Then by definition {v1 , v2 , . . . , vk } cannot be linearly
dependent, so it must be linearly independent.
Example: Consider the sets A = {v1 , v2 , v3 } and B = {v1 , v2 , v3 , v4 }. We prove
that if A is linearly dependent then so is B, and that if B is linearly independent
then so is A. First suppose that A is linearly dependent. Then there must exist
coefficients a1 , a2 , a3 , not all of which are zero, so that
a1 v1 + a2 v2 + a3 v3 = 0.
Setting b1 = a1 , b2 = a2 , b3 = a3 , b4 = 0, we now have coefficients b1 , b2 , b3 , b4 , not
all of which are zero, such that
b1 v1 + b2 v2 + b3 v3 + b4 v4 = 0,
which proves that B is linearly dependent. Now suppose that B is linearly inde-
pendent, and suppose that
a1 v1 + a2 v2 + a3 v3 = 0
for some coefficients a1 , a2 , a3 . Again, choose b1 = a1 , b2 = a2 , b3 = a3 , b4 = 0, and
we have coefficients such that
0 = b1 v 1 + b2 v 2 + b3 v 3 + b4 v 4 .
14
However, B is linearly independent, so we must have b1 = b2 = b3 = b4 = 0, so in
particular we must have a1 = a2 = a3 = 0. Thus A is also linearly indenpendent.
One can use exactly the same reasoning to prove the following result.
Proposition 3. Let V be a vector space and let A ⊂ B ⊂ V be subsets. If A is
linearly dependent then so is B, and if B is linearly independent then so is A.
3.3. Span and basis.
Definition 4. If A = {v1 , v2 , . . . , vk } is a subset of a vector space V , we define the
span of A as
span(A) = {a1 v1 + a2 v2 + · · · + ak vk : a1 , a2 , . . . , ak ∈ R}.
By convention, the span of the empty set ∅ is the singleton set {0}. We also say
that the span of A is the linear combination of all vectors in A.
Observe, that, by definition, the span of any set A contains sums of only finitely
many elements of A, and not infinite sums. This is not an important distinction
for finite-dimensional vector spaces, but it is important when the vector space is
infinite-dimensional (e.g. the space of all polynomials).
We have already seen some examples. For instance,
2 1 0
R = span{e1 , e2 } = span ,
0 1
and
R2 [x] = span{1, x, x2 }.
Definition 5. Let V be a vector space. A basis for V is a set of vectors {v1 , v2 , . . . }
which is linearly independent and whose span is all of V . If V has a basis B =
{v1 , v2 , . . . , vn } with finitely many elements, then we say V is finite dimensional,
and has dimension n = #(B). Otherwise, we say V is infinite dimensional.
We will see below that, if V is finite dimensional, then the number of elements
in a basis for is it fixed, and so the dimension of V is well-defined.
Observe that the choice of basis is definitely not unique. Any vector space will
have many different bases. For instance, we can observe that
1 0 1 1
B1 = , , B2 = ,
0 1 −1 1
are both perfectly fine bases for R2 . Can you find other (distinct) bases for R2 ?
Example: We show that a set B = {v1 , v2 , . . . } is a basis for the vector space
V if and only if it satisfies the following two conditions:
• the vectors v1 , v2 , . . . in B are linearly independent
• one can write any w ∈ V as a linear combination
X
w= aj vj , where only finitely many aj are nonzero.
vj ∈B
15
If B is a basis then by definition the vectors v1 , v2 , . . . form a linearly independent
set which spans V . The fact that B spans V says exactly that, given any w ∈ V ,
there are coefficients a1 , a2 , . . . such that
X
w= aj vj .
vj ∈B
Proof. The fact that B spans V implies that there is some choice of coefficients
a1 , . . . , an such that
w = a1 v1 + · · · + an vn .
It remains to show uniqueness. Suppose that there are some other coefficients
b1 , . . . , bn such that
w = b1 v1 + · · · bn vn .
Subtracting, we then have
0 = (a1 v1 + · · · + an vn ) − (b1 v1 + · · · + bn vn ) = (a1 − b1 )v1 + · · · + (an − bn )vn .
We have now produced a linear combination of v1 , . . . , vn which sums to zero.
However, B is linearly independent, so all the coefficients ai − bi = 0, for i =
1, 2, 3, . . . , n, which in turn implies ai = bi for i = 1, 2, 3, . . . , n.
If we’re given a vector space and a basis, we can now define an element in Rn
associated to any v ∈ V as follows.
Definition 6. Let V be a vector space with basis B = {v1 , . . . , vn }. Given v ∈ V
we define [v]B = (a1 , a2 , . . . , an ) ∈ Rn , where v = a1 v1 + a2 v2 + · · · an vn . We call
the coefficients a1 , a2 , . . . , an the coordinates of V with respect to the basis B, and
call [v]B the coordinate representation to v.
The previous theorem tells us this choice of coefficients is unique, so [v]B is
well-defined.
We close this section with two examples. First, we reconsider the complex num-
bers as 2 × 2 matrices. Recall that z ∈ C has the form z = x + iy, where x, y ∈ R
and i2 = −1. Also, complex multiplication is defined as
z · w = (x + iy)(u + iv) = (xu − yv) + i(yu + xv).
If we consider the complex numbers as two copies of the real numbers, we can write
(using vector notation)
x u xu − yv
z= , w= , z·w = .
y v yu + xv
Observe that, if we fixe z = x + iy, this gives us a set of two linear equation for u
and v, and we can rewrite this as
xu − yv x −y u
z·w = = · .
yu + xv y x v
19
(You might want to check the computation is correct.) This means we can identify
the complex number z = x + iy with the 2 × 2 matrix
x −y
.
y x
p
We can rewrite this matrix further if we let r = x2 + y 2 = |z|, cos θ = xr , and
sin θ = yr . Now we
x −y cos θ − sin θ
z' =r ,
y x sin θ cos θ
and we can recognize complex multiplication as nothing more than a (counterclock-
wise) rotation followed by a dilation. This is a that the complex numbers carry
some special algebraic structure.
For our second example, we discuss the Lagrange interpolation formula. You
know that two points determine a line (in the plane), and if I hand you two points
you can find the line passing through both of them. You’d probably imagine that
three points determine a parabola, and that if I hand you three points then (with
a little more work) you can find the parabola passing through all three of them.
What if I hand you 17 points and ask you to find the degree 16 polynomial passing
through them. Can you do that?
It turns out this is not too hard, if you use the following clever basis for R16 [x],
the space of degree 16 polynomials. We will outline the process for a polynomial
of some arbitrary (fixed) degree n. Start by choosing n + 1 distinct real numbers
c0 , c1 , . . . , cn ; these are the points where you will evaluate the polynomial (i.e. the
x-coordinates of the n + 1 points I hand to you). Now define the polynomials
(x − c0 ) · · · (x − ci−1 )(x − ci+1 ) · · · (x − cn ) x − cj
pi (x) = = Πj=n
j=0,j6=i .
(ci − c0 ) · · · (ci − ci−1 )(ci − ci+1 ) · · · (ci − cn ) ci − cj
(Here the Π means take a product of all those terms.) For instance,
(x − c1 ) · · · (x − cn ) (x − c0 ) · · · (x − cn−1 )
p0 (x) = , pn (x) = .
(c0 − c1 ) · · · (c0 − cn ) (cn − c0 ) · · · (cn − cn−1 )
Observe that
0 i 6= j
pi (cj ) =
1 i = j.
We will use this property to show that B = {p0 , . . . pn } is a basis for Rn [x], the
degree n polynomials in the variable x. First suppose that there are coefficients
a0 , a1 , . . . , an such that
a0 p0 (x) + a1 p1 (x) + · · · + an pn (x) = 0
for all x. Evaluate this expression at each cj , so we get
0 = a0 p0 (cj ) + · · · + an pn (cj ) = aj
for each j, which implies (by definition) that {p0 , . . . , pn } are linearly independent.
We already know that dim(Rn [x]) = n + 1, and B = {p0 , . . . , pn } contains exactly
n + 1 elements, so B must be a basis.
20
Now we return to the original problem. We have n + 1 points of the form
(c0 , y0 ), (c1 , y1 ), . . . , (cn , yn ), and we want to find the polynomial q(x) of degree n
such that
q(c0 ) = y0 , q(c1 ) = y1 , · · · , q(cn ) = yn .
This is simple now, we must have
q(x) = y0 p0 (x) + y1 p1 (x) + · · · + yn pn (x).
Exercise: Show that the graph of the polynomial q(x) given above passes
through all the points (c0 , y0 ), . . . , (cn , yn ).
Exercise: Show that the polynomial q(x) given above is the only degree n
polynomial passing through all the points (c0 , y0 ), . . . , (cn , yn ).
This is the Lagrange interpolation formula, and it is very useful for finding nice
functions passing through a given set of points.
Exercise: Show the following: if f ∈ Rn [x] is a degree n polynomial and
f (c0 ) = f (c1 ) = · · · = f (cn ) = 0 for n + 1 distinct numbers c0 , . . . , cn then f is the
zero function.
3.4. Subspaces revisited.
Proposition 9. Let V be a finite dimensional vector space and let W ⊂ V be a
subspace. Then W is also finite dimensional, and dim(W ) ≤ dim(V ). Moreover,
if dim(W ) = dim(V ) then W = V .
One can find a quick proof of this result using Theorem 6, but we offer another
proof for the readers enlightenment.
Proof. Let dim(V ) = n. If W = {0}, then by inspection W is finite-dimensional,
and dim(W ) = 0. If W 6= {0} then it contains a nonzero vector w1 , and so
{w1 } is a linearly independent set. If W = span{w1 }, then we stop, and conclude
dim(W ) = 1. Otherwise, we continue to add elements w2 , w3 , . . . , wk to our list,
until W = span{w1 , w2 , . . . , wk }, all the while maintaining that {w1 , . . . , wk } is a
linearly independent set. Moreover, by the replacement theorem, we cannot have
k ≥ n, because otherwise we’d have a linearly independent set in V with more than
n elements. We have just shown that dim(W ) = k ≤ n, and in particular that W
is finite dimensional.
Finally, if dim(W ) = n then we have a basis {w1 , . . . , wn } for W with n elements.
By the replacement theorem, this is also a basis for V , and so W = V .
Example: Let W ⊂ R5 be defined by
W = {(x1 , . . . , x5 ) : x1 + x3 + x5 = 0, x2 = x4 }.
First we show that W is a subspace. Indeed, by inspection 0 ∈ W . If x, y ∈ W
then we have
x1 + x3 + x5 = 0 = y1 + y3 + y5 , x 2 = x4 , y2 = y4 .
This implies
(x1 +y1 )+(x3 +y3 )+(x5 +y5 ) = (x1 +x3 +x5 )+(y1 +y3 +y5 ) = 0, x2 +y2 = x4 +y4 ,
21
and so x + y ∈ W . Similarly, ax + by ∈ W for any a, b ∈ R.
Next we find a basis for W . We can find 3 linearly independent vectors in W :
w1 = (0, 1, 0, 1, 0), w2 = (1, 0, 0, 0, −1), w3 = (0, 0, 1, 0, −1).
Suppose B = {w1 , w2 , w3 } were not a linearly independent set. Then we could find
three numbers a1 , a2 , a3 , not all of which are zero, such that
(0, 0, 0, 0, 0) = a1 w1 + a2 w2 + a3 w3 = (a2 , a1 , a3 , a1 , −a2 − a3 ).
However, we can read off from the first three coefficients that a1 = a2 = a3 = 0.
We conclude that B is linearly independent.
Does B = {w1 , w2 , w3 } span W ? Write some element of W as w = (a1 , a2 , a3 , a4 , a5 );
we claim that
w = a2 w1 + a1 w2 + a3 w3 = (a1 , a2 , a3 , a2 , −a1 − a3 ).
Indeed, the first three components match, so we only need to verify the fourth and
fifth components. We check that, because w ∈ W we must have a2 = a4 , and so
the fourth component matches. Similarly, we must have a5 = −a1 − a3 , and so the
fifth component matches.
In particular, we see that dim(W ) = 3.
Exercise: Is it an accident that dim(W ) = 3 = 5 − 2 and W is a subspace of
R5 determined by 2 linear equations?
Example: We already know that the set of n × n matrices is a vector space of
dimension n2 . Let V be the set of symmetric n×n matrices. That is, A = [aij ] ∈ V
if and only if aij = aji , i.e. At = A (here At is the transpose of A, the matrix you
get by swapping rows and columns). First we show V is a subspace. First of all, if
Z = [zij ] is the zero matrix, that is zij = 0 for all i, j, then we have zij = 0 = zji .
Thus the zero vector (in the vector space of n × n matrices) is also in V . Next let
A = [aij ] ∈ V and B = [bij ] ∈ V , and observe aij = aji , bij = bji . Then, for any
α, β ∈ R we have
(αA + βB)ij = αaij + βbij = αaji + βbji = (αA + βB)ji ,
and so αA + βB ∈ V . Thus V is a vector subspace of the space of n × n matrices.
Now we find a basis for V . For i ≥ j we define the n × n matrix
1 i = k, j = l
Aij = [(aij )kl ], (aij )kl = 1 i = l, j = k
0 otherwise.
0 0
If i 6= i0 or j 6= j 0 then Aij and Ai j have 1’s in different entries, and so the set
B = {Aij : 1 ≤ i ≤ n, 1 ≤ j ≤ n, i ≥ j}
is linearly independent. Now let A = [aij ] ∈ V . It is easy to check that
n X
X i
A= aij Aij ,
i=1 j=1
22
and so V = span(B). Thus B is a basis for V , and, in particular,
n(n + 1)
dim(V ) = #B = n + (n − 1) + · · · + 2 + 1 = .
2
Exercise: Repeat the exercise directly above with W , the set of skew-symmetric
matrices. That is, A = [aij ] ∈ W if and only if aij = −aji .
4. Linear Transformations
By themselves, vector spaces are boring. This subject only becomes alive when
we talk about linear transformations, which are precisely those transformations
between vector spaces that preserve the vector space structure.
4.1. Definitions and examples.
Definition 7. Let V and W be vector spaces. A transformation (i.e. mapping,
i.e. function) T : V → W is linear if for all v1 , v2 ∈ V and a1 , a2 ∈ R we have
T (a1 v1 + a2 v2 ) = a1 T (v1 ) + a2 T (v2 ).
Example: We use induction to show that if T : V → W is linear then
T (a1 v1 + a2 v2 + · · · + ak vk ) = a1 T (v1 ) + a2 T (v2 ) + · · · + ak T (vk ).
As our base case, we have
T (a1 v1 + a2 v2 ) = a1 T (v1 ) + a2 T (v2 )
by definition. Now suppose
T (a1 v1 + · · · + ak vk ) = a1 T (v1 ) + · · · + ak T (vk )
for some k ≥ 2. Then
T (a1 v1 + · · · ak vk + ak+1 vk+1 ) = T ((a1 v1 + · · · + ak vk ) + ak+1 vk+1 )
= T (a1 v1 + · · · ak vk ) + ak+1 T (vk+1 )
= a1 T (v1 ) + · · · + ak+1 T (vk+1 ).
This completes the induction step, so we’ve proved the result we wanted to prove.
Example: Let V and W be vector spaces. There are two very simple, yet
important, examples of linear transforms which we should mention to begin. First,
I : V → V, I(v) = v
is the identity transformation. This mapping always sends a vector v to itself. The
second example is
Z : V → W, Z(v) = 0,
is the zero mapping. This sends every vector v to the zero vector 0 (in W ). We
verify this quickly:
I(a1 v1 + a2 v2 ) = a1 v1 + a2 v2 = a1 I(v1 ) + a2 I(v2 )
and
Z(a1 v1 + a2 v2 ) = 0 = a1 · 0 + a2 · 0 = a1 Z(v1 ) + a2 Z(v2 ).
Lemma 10. Let T : V → W be a linear transformation. Then T (0) = 0.
23
Proof.
T (0) = T (0 + 0) = T (0) + T (0) ⇒ 0 = T (0)
Example: Let Rn [x] be the set of polynomials in the variable x of degree at
most n. The transformation
T : Rn [x] → Rn−1 [x], T (p) = p0
is linear. Indeed, for any two polynomials p and q and real numbers a and b we
have
T (ap + bq) = (ap + bq)0 = ap0 + bq 0 = aT (p) + bT (q).
Example: Let C[0, 1] be the space of continuous function on the interval [0, 1];
that is, any continuous function f (x), defined for 0 ≤ x ≤ 1, is in the space C[0, 1].
we saw in class that this is a vector space. The map
Z 1
T : C[0, 1] → R, T (f ) = f (x)dx
0
is linear. Indeed, for any two continuous functions f and g and real numbers a and
b we have
Z 1 Z 1 Z 1
T (af + bg) = (af (x) + bg(x))dx = a f (x)dx + b g(x)dx = aT (f ) + bT (g).
0 0 0
2
Example: Let C [0, 1] be the space of functions f (x) defined for 0 ≤ x ≤ 1 such
that f 00 exists and is continuous. The map
T : C 2 [0, 1] → C[0, 1], T (f ) = f 00 − 3f 0 + 2f
is a linear transformation
4.2. Kernel and range. There are two important vector subspaces associated to
any linear transformation. We define them now.
Definition 8. Let T : V → W be a linear transformation. Define the sets
ker(T ) = {v ∈ V : T (v) = 0}, R(T ) = {w ∈ W : w = T (v) for some v ∈ V }.
We call ker(T ) the ”kernel” of T and R(T ) the ”range” of T . (The range is not
to be confused with the target W , which in general is a larger vector space.)
Theorem 11. If T : V → W is linear then ker(T ) is a subspace of V and R(T ) is
a subspace of W .
Proof. First, we have T (0) = 0, which implies 0 ∈ ker(T ) and 0 ∈ R(T ). Next,
suppose v1 , v2 ∈ ker(T ). Then, for any a1 , a2 ∈ R, we have
T (a1 v1 + a2 v2 ) = a1 T (v1 ) + a2 T (v2 ) = a1 · 0 + a2 · 0 = 0,
and so a1 v1 + a2 v2 ∈ ker(T ). We conclude that ker(T ) is a subspace of V . Finally,
suppose that w1 , w2 ∈ R(T ). Then there are v1 , v2 ∈ V such that T (v1 ) = w1 and
T (v2 ) = w2 . Now, for any a1 , a2 ∈ R, we have
a1 w1 + a2 w2 = a1 T (v1 ) + a2 T (v2 ) = T (a1 v1 + a2 v2 ) ∈ R(T ),
24
because a1 v1 + a2 v2 ∈ V .
Remark 4. In general, this is the most useful tool to prove something is a vector
space.
Example: We know one can write the equation of any plane passing through
the origin in R3 as
n1 x1 + n2 x2 + n3 x3 = 0,
where n = (n1 , n2 , n3 ) is the normal vector to the plane. This formulation tells us
immediately that any plane through the origin is a subspace of R3 , because it is
the kernel of the linear transformation
T : R3 → R, T (x1 , x2 , x3 ) = n1 x1 + n2 x2 + x3 x3 .
Exercise: Mimic the example above to show that any line passing through (0, 0)
in the plane is a vector space. Also, prove that any line passing through the origin
in three-space is a vector space.
Example: Above we considered the linear transformation
Z 1
T : C[0, 1] → R, T (f ) = f (x)dx.
0
It is easy to check that R(T ) = R. Indeed, the target R is a one-dimensional vector
space, so we must either have R(T ) = R or R(T ) = {0}. Also, T (2x) = 1 6= 0,
so R(T ) 6= {0}. Thus we must have R(T ) = R. The kernel ker(T ) is the space of
functions on [0, 1] with average value 0.
Example: Recall that C 2 [0, 1], the space of functions f (x), for 0 ≤ x ≤ 1, with
continuous second derivatives, is a vector space. We define the linear transforma-
tion
T : C 2 [0, 1] → C[0, 1], T (f ) = f 00 + (1 + x2 )f = 0.
The set of functions
ker(T ) = {f ∈ C 2 [0, 1] : T (f ) = f 00 + (1 + x2 )f = 0}
is the kernel of a linear transformation, so it is a vector space.
Exercise: Use the same technique to prove that the set of solutions to any
homogeneous, second order ordinary differential equation,
K = {f ∈ C 2 [0, 1] : f 00 + p(x)f 0 + q(x)f = 0}
is a vector space. Can you generalize this result at all?
Theorem 12. Let T : V → W be linear and let B = {v1 , . . . , vn } be a basis for V .
Then
R(T ) = span{T (v1 ), T (v2 ), . . . , T (vn )}.
Proof. Each T (vi ) ∈ R(T ), and R(T ) is a subspace of W , so we must have
span{T (v1 ), . . . , T (vn )} ⊂ R(T ).
Conversely, suppose w ∈ R(T ). Then w = T (v) for some v ∈ V , but
v = a1 v1 + · · · + an vn .
25
Therefore,
w = T (a1 v1 + · · · + an vn ) = a1 T (v1 ) + · · · + an T (vn ) ∈ span{T (v1 ), . . . , T (vn )},
and so
R(T ) ⊂ span{T (v1 ), . . . , T (vn )}.
Example: Let M2×2 be the vector space of 2 × 2 matrices and let R2 [x] be the
space of quadratic polynomials. Consider
p(1) − p(2) 0
T : R2 [x] → M2×2 , T (p) = .
0 p(0)
We wish to find R(T ). Recall that B = {1, x, x2 } is a basis for R2 [x], so we can
find R(T ) by finding taking the span of the image of our basis elements under T .
Thus we have
R(T ) = span{T (1), T (x), T (x2 )}
0 0 −1 0 −3 0
= span ,
0 1 0 0 0 0
0 0 −1 0
= span , .
0 1 0 0
In fact, the computation above finds a basis of two elements for R(T ), and so
dim(R(T )) = 2.
Theorem 13. Let T : V → W be a linear transformation. Then T is one-to-one
if and only if ker(T ) = {0}.
Proof. First suppose ker(T ) = {0} and let T (v1 ) = T (v2 ). Then
0 = T (v1 ) − T (v2 ) = T (v1 − v2 ) ⇒ v1 − v2 ∈ ker(T ) = {0}.
We conclude v1 − v2 = 0, i.e. that v1 = v2 , and so T is one-to-one.
Conversely, suppose that T is one-to-one, and let v ∈ ker(T ). We already know
that T (0) = 0, and so (because T is one-to-one) we must have v = 0.
The following theorem is the most important theorem you will learn in this linear
algebra class; it is called the Rank-Nullity Theorem.
Theorem 14. (Rank-Nullity Theorem) Let T : V → W be linear and suppose V
is finite dimensional. Then
dim(ker(T )) + dim(R(T )) = dim(V ).
Remark 5. • Notice that we do not require W to be finite dimensional.
• This is called the rank-nullity theorem because one can call dim(R(T )) the
rank of T and dim(ker(T )) the nullity of T . Then the rank-nullity theorem
reads
rank(T ) + nullity(T ) = n.
• Some people like to call this result ”the dimension theorem.”
26
Proof. Let dim(V ) = n, and choose a basis {v1 , . . . , vk } for ker(T ). Notice that
ker(T ) is a subspace of V , so we necessarily have k ≤ n, and k = n if and only if
ker(T ) = V . If ker(T ) = V , we must have R(T ) = {0}, which is 0-dimensional.
Otherwise, we have k < n, and (by the replacement theorem) we can choose
n − k linearly independent vectors {vk+1 , . . . , vn } such that {v1 , . . . , vn } forms a
basis of V . Once we show that
B = {T (vk+1 ), T (vk+2 ), . . . , T (vn )}
is a basis for R(T ), we’re done, because in this case we show that
dim(ker(T )) + dim(R(T )) = k + n − k = n = dim(V ).
Let w ∈ R(T ), and write w = T (v). Then there are coefficients a1 , . . . , an such
that
v = a1 v1 + a2 v2 + · · · + an vn .
Use the fact that T (vi ) = 0 for i = 1, 2, . . . , k to see
n
! n n
X X X
w = T (v) = T ai vi = ai T (vi ) = ai T (vi ),
i=1 i=1 i=k+1
and so T = U .
Corollary 17. Let V and W be vector spaces , and suppose V is finite dimensional
with a basis {v1 , . . . , vn }. If T, U : V → W are two linear transformations such
that T (vi ) = U (vi ) for all i = 1, 2, . . . , n then T = U .
Example: We consider two bases in R3 :
B = {e1 = (1, 0, 0), e2 = (0, 1, 0), e3 = (0, 0, 1)}
B̃ = {v1 = (1, 0, −1), v2 = (1, 0, 1), v3 = (0, 1, 0)}.
We wish to find a linear transformation such that T (e1 ) = v1 , T (e2 ) = v2 , T (e3 ) =
v3 . By the theorem above, we must have
a a1 + a2
T b = T (a1 e1 + a2 e2 + a3 e3 ) = a1 v1 + a2 v2 + a3 v3 = a3 .
c −a1 + a2
In fact, if you multiply the matrices out, you’ll find that
a1 1 1 0 a1
T 12 = 0 0 1 a2 .
a3 −1 1 0 a3
We have already seen this relationship between linear transformations and matrices
in the case of linear transformations mapping Rn to Rm . We will see in the next
section that, after choosing bases for the domain and target of a linear transforma-
tion, one obtains the same sort of matrix representation of a linear mapping.
However, before we do that, we need several more terms.
Definition 9. Let V, W be vector spaces. A linear transformation T : V → W
which is both one-to-one and onto is called a (linear) isomorphism. Two vector
spaces V, W are isomorphic if there exists a (linear) isomorphism T : V → W . We
write this condition as V ' W .
Isomorphic is a Greek word; it means ”same structure.”
29
Corollary 18. Let V, W be vector spaces and let T : V → W be linear. Then the
restriction T : V → R(T ) is an isomorphism if and only if dim(ker(T )) = 0.
This follows from the fact that T is one-to-one if and only if dim(ker(T )) = 0.
Corollary 19. Let V, W be finite dimensional vector spaces of the same dimension,
and let T : V → W be linear. Then T is an isomorphism if and only if T is one-
to-one if and only if T is onto.
Example: Let V and W be finite dimensional vector spaces, and let dim(V ) 6=
dim(W ). Then V and W cannot be isomorphic. Indeed, suppose that T : V → W
is an isomorphism. Then, because T would have to be both one-to-one and onto,
we must have
dim(V ) = dim(R(T )) + dim(ker(T )) = dim(W ) + 0,
which is impossible.
Corollary 20. Let V be a finite dimensional vector space with dim(V ) = n. Then
V is isomorphic to Rn .
Proof. Choose a basis B = {v1 , v2 , . . . , vn } for V and let {e1 , e2 , . . . , en } be the
standard basis for Rn ; that is, ei is the vector with a 1 in the ith component and
a 0 everywhere else. By Theorem 16 there is a linear map T : Rn → V with
T (ei ) = vi for i = 1, 2, . . . , n. The map T is onto because B spans V , and it is
one-to-one because B is linearly independent.
Remark 6. If all finite dimensional are the same (i.e. isomorphic) to some Eu-
clidean space, as we have just shown, then why do we study abstract vector spaces
at all? The answer has to do with the way we constructed the isomorphism in the
proof above. To prove our corollary, we had to choose a basis. Indeed, if we choose
a different basis for V then we will get a different isomorphism Rn → V . This free-
dom to choose the representation of our vector space is very powerful, and changing
the representation can turn a difficult problem into an easy one. Geometrically and
physically, you can think of the following analogy. Some problems are easier in
the usual Euclidean coordinates, and some are easier in rotated coordinates. For
instance, if you’re tracking the motion of a planet around a star, you’d certain
want to choose coordinates so that the motion of the planet lies in a coordinate
plane. This choice of a particular coordinate system is (at least locally) the same
as choosing a basis for the vector space R3 .
4.3. Matrix representations of general linear transformations. In fact, one
can represent a linear transformation between any two finite dimensional vector
space as a matrix, after one chooses bases.
Let V and W be finite dimensional vector spaces, and choose a basis B =
{v1 , v2 , . . . , vn } for V and a basis A = {w1 , w2 , . . . , wm } for W . By Theorem 16 we
can represent any linear transformation
T :V →W
30
as
m
X
T (vj ) = aij wi = a1j w1 + · · · + amj wm .
i=1
We have now represented T by the m × n matrix [T ]A B = [aij ], which has aij as the
entry in its ith row and jth column. This is a straight-forward generalization of the
previous subsection, using the fact that V ' Rn and W ' Rm . In fact, choosing
the bases {v1 , . . . , vn } and {w1 , . . . , wm } realizes these isomorphisms, which in turn
determines the matrix [T ]A B . In the next section we will consider the effect changing
basis has on [T ]A B , but first we will write out some examples. We will also say
something brief about the set of linear transformations between V and W .
Example: Above we considered
p(1) − p(2) 0
T : R2 [x] → M2×2 , T (p) = .
0 p(0)
In order to find the matrix [T ] we need to choose bases for R2 [x] and M2×2 . We
choose
B = {p0 (x) = 1, p1 (x) = x, p2 (x) = x2 }
as a basis for R2 [x] and
1 0 0 1 0 0 0 0
A = e11 = , e12 = , e21 = , e22 =
0 0 0 0 1 0 0 1
as a basis for M2×2 . Notice we have
0 0 −1 0 −3 0
T (1) = = e22 , T (x) = = −e11 , T (x) = = −3e11 ,
0 1 0 0 0 0
which implies
0 −1 −3
0 0 0
[T ]A
B = 0
.
0 0
1 0 0
Example: We also considered the linear map
Z x
0
T : R2 [x] → R3 [x], T (p) = 2p + 3p(t)dt.
0
We choose bases
B = {p0 (x) = 1, p1 (x) = x, p2 (x) = x2 }
for R2 [x] and
A = {q0 (x) = 1, q1 (x) = x, q2 (x) = x2 , q3 (x) = x3 }
for R3 [x]. We computed above that
3 3
T (1) = 3x = 3q1 , T (x) = 2 + x2 = 2q0 + q2 , T (x2 ) = 4x + x3 = 4q1 + q3 ,
2 2
31
so that
0 2 0
[T ]A 3 0 4
B = 0 3 0
.
2
0 0 1
There is a nice correspondence between the range of T and the span of the
column vectors of [T ]A
B.
Proof. We know that R(T ) = span{T (v1 ), . . . , T (vn )}, and that the jth column of
[T ]A
B is T (vj ), written in terms of {w1 , . . . , wm }. The result follows.
4.4. Systems of linear equations and linear transformations. We have just
seen how one can represent a linear transformation T : V → W as an m × n
matrix, where dim(V ) = n and dim(W ) = m. Before, you also saw m × n matrices
as tools to solve m linear equations in m unknowns. In this section we describe
the connection between these two phenomena.
For the rest of the section, we take A ∈ Mm×n to be a matrix with m rows
and n columns, whose entries are real numbers. We will also regard A as a linear
transformation A : Rn → Rm . In the context of linear equations, we’re used to
solving the matrix equation Ax = b for the unknown x, given the matrix A and
the right hand side b.
It will be convenient to isolate the homogeneous case, where the right hand side
b is zero, first.
Lemma 22. Let A ∈ Mm×n . Then x solves the equations Ax = 0 if and only if
x ∈ ker(A).
Proof. By definition, ker(A) = {x ∈ Rn : Ax = 0}, so the lemma follows.
Lemma 23. Let A ∈ Mm×n with m < n. Then the set of solutions to the homoge-
neous equation, which is {x : Ax = 0} has positive dimension.
Proof. By the rank-nullity theorem,
dim(ker(T )) = n − dim(R(T )) ≥ n − m > 0.
Next we proceed to the general case, where the right hand side b of the equation
Ax = b can be any vector in Rm .
Lemma 24. Let A ∈ Mm×n . One can solve the matrix equation Ax = b for x if
and only if b ∈ R(T ).
Proof. By definition, b ∈ R(T ) if and only if there exists a vector x ∈ Rn such that
Ax = b, that is, if and only if there is a solution to the equation Ax = b.
32
Lemma 25. Let A ∈ Mm×n and let b ∈ R(T ). The solution x to the matrix
equation Ax = b is unique if and only if ker(T ) = {0}.
Proof. Suppose ker(T ) = {0}, and let x1 and x2 both solve Ax = b. Then
The case of n = m bears specific mention, and we can summarize it here. Recall
(from MAM1000) that A ∈ Mn×n is invertible if there exists a matrix B = A−1
such that AB = BA = I. (See also Definition 10.)
Theorem 28. Let A ∈ Mn×n . Then the following statements are equivalent.
• A : Rn → Rn is invertible.
• A is an invertible matrix.
• One can find a unique solution x to the equation Ax = b for any b.
• One can find at least one solution x to the equation Ax = b for any b.
• One can find at most one solution x to the equation Ax = b for any b.
Proof. This theorem follows from the previous theorem and the fact that A is
invertible if and only if A is onto if and only if A is one-to-one. (This latter part is
particular to n × n matrices.)
33
4.5. Isomorphisms, invertibility, and the effect of changing basis. In this
section we relate isomorphisms and the invertibility of a matrix, and discuss how
the matrix representing a linear transformation changes if one changes the basis of
the vector space. We begin with some general properties of linear transformations
and use this to discuss inversion of matrices, leading to the effect of a change of
basis.
Theorem 29. Let V and W be vector spaces and let T : V → W be linear and
invertible. Then T −1 : W → V is also linear.
Proof. Let w1 , w2 ∈ W and let a1 , a2 ∈ R. Since T is both one-to-one and onto,
there are unique vectors v1 , v2 ∈ V such that T (v1 ) = w1 and T (v2 ) = w2 , which
implies v1 = T −1 (w1 ) and T −1 (w2 ) = v2 . Thus
T −1 (a1 w1 + a2 w2 ) = T −1 (a1 T (v1 ) + a2 T (v2 )) = T −1 (T (a1 v1 + a2 v2 ))
= a1 v1 + a2 v2 = a1 T −1 (w1 ) + a2 T −1 (w2 ).
Using our identification of a matrix as a linear transformation, we can now define
the inverse of an n × n matrix.
Definition 10. Let A ∈ Mn×n . Then A is invertible if there exists B ∈ Mn×n such
that
AB = BA = I,
where I is the n × n identity matrix (with 1’s on the leading diagonal, and 0’s in
every other entry).
Example: If
5 7 3 −7
A= ,
2 3 −2 5
it is easy to check that AB = BA = I, so B = A−1 .
Theorem 30. Let V and W be finite dimensional vector spaces, and choose bases
B = {v1 , . . . , vn } for V and A = {w1 , . . . , wn } for W . Let T : V → W be linear.
Then T is an isomorphism if and only if [T ]A B is an invertible matrix. In this case,
[T −1 ]BA = ([T ]AB ) −1
.
Proof. We already know (by the rank-nullity theorem) that T can be an isomor-
phism if and only if dim(V ) = dim(W ) = n, so [T ]A
B must be an n × n matrix.
We have also seen that we can represent the composition of linear transforma-
tions as the product of matrices. Thus, if T is an isomorphism then we have
T ◦ T −1 = IW : W → W and T −1 ◦ T = IV : V → V . Thus
I = [IV ]BB = [T −1 ◦ T ]BB = [T −1 ]BA [T ]A
B, I = [IW ]A
A = [T ◦ T
−1 A
]A = [T ]A
B [T
−1 B
]A ,
so ([T ]A
B)
−1
= [T −1 ]BA . In particular, if T is an isomorphism then [T ] must be an
invertible matrix.
Now we suppose A = [T ]A B be an invertible matrix and prove that T is an
isomorphism. There must be B ∈ Mn×n such that AB = BA = I, and write the
34
components of A as aij and the components of B as bij . There is a unique linear
transformation U : W → V such that
n
X
U (wj ) = bij vi
i=1
then the equation of the curve becomes {(x0 , y 0 ) ∈ R2 : (x0 )2 + 6(y 0 )2 = 1}. This
is rather obviously an ellipse. In fact, all we are doing in changing from the (x, √ y)
0 0
coordinates to the (x , y ) coordinates is rotating by the angle θ = − arcsin(1/ 5).
It is a useful exercise to write out the change of variables matrix for the coordinate
transformation we have just done. Implicitly, we have two bases for R2 in the
computation we have just done. The first is the standard basis
B = {e1 = (1, 0), e2 = (0, 1)},
and the second is
2 1 2 1 −1 2 −1 2
A = v1 = √ , √ = √ e1 + √ e2 , v2 = √ , √ = √ e1 + √ e2 .
5 5 5 5 5 5 5 5
The matrix representing the change of basis between these two bases is the ma-
trix representing the identity linear transformation, written with respect to two
different bases. We have
B 1 2 −1
Q = [I]A = √ ,
5 1 2
and so 0
x B x 1 2 −1 x
= [v]A = [I]A [v]B = Q =√ .
y0 y 5 1 2 y
We call Q = [I]BA the change of basis matrix, because it changes the coordinates
of a vector from the coordinates from the A coordinates to the B coordinates.
There is in fact nothing particular about the change of coordinates we chose above,
36
and the entire process carries through with any change of basis. We summarize
this with the following theorem.
Theorem 31. Let B and A be two bases for a finite dimensional vector space V ,
and let Q = [IV ]BA , the matrix representing the identity map from V to itself, written
with respect to the basis A in the domain and the basis B in the target. Then
(1) Q is invertible.
(2) For any v ∈ V we have [v]B = Q[v]A .
Proof. We have seen that the matrix representing a linear transformation is invert-
ible if and only if the linear transformation is an isomorphism, and the identity
map is certainly an isomorphism. Thus the first statement holds. We verify the
second statement as follows:
[v]B = [IV (v)]B = [IV (v)]BA [v]A = Q[v]A .
Example: Take V = R2 , and choose the two bases
B = {(1, 1); (1, −1)}, A = {(2, 4), (3, 1)}.
Observe that
(2, 4) = 3(1, 1) − 1(1, −1), (3, 1) = 2(1, 1) + 1(1, −1),
so in this case the change of basis matrix is
3 2
Q= .
−1 1
If T : V → V is linear, we can write a matrix [T ]BB representing T with respect
to the basis B or a matrix [T ]A
A with respect to A. How are these two matrices
related?
Theorem 32. Let T : V → V be linear, let B and A be two bases for V , let [T ]BB
be the matrix of T with respect to B, and let [T ]A
A be the matrix of T with respect
to A. Then
[T ]A −1 B
A = Q [T ]B Q.
5. Determinants
Area and mappings from the plane to itself: Recall that in Section 2 we
found a linear mapping to take the unit square S = {0 ≤ x ≤ 1, 0 ≤ y ≤ 1} to any
parallelogram P with one corner at the origin. We can write the parallelogram P
as
P = {xv + yw : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1},
where v and w are the two vectors which form the edges of P starting at the origin
(0, 0). Then we can write the linear transformation as
x v1 w1
T = xv + yw, [T ] = ,
y v2 w2
where v = (v1 , v2 ) and w = (w1 , w2 ) in components. Notice that the mapping T is
invertible precisely when it does not collapse S down to a line segment (or a point),
which happens precisely when the area of the parallelogram P is non-zero.
You might recall that in MAM1000 you defined an object called the determinant,
written det([T ]) = v1 w2 − w1 v2 , and were told
det([T ]) 6= 0 ⇔ T invertible ⇔ Area(P ) 6= 0.
We’ll see next that det([T ]) is the area of P , up to a sign.
38
This is easiest to see with the shear map we examined in the last set of notes.
Start with the sheer map T whose matrix representation is
1 b
[T ] = .
0 1
(In the earlier set of notes we wrote the entry in the upper right corner of [T ] as
a, but it will turn out to be convenient to call it b for our later discussion.) In this
case, T maps the unit square S = {0≤ x ≤ 1, 0≤ y≤ 1} to the parallelogram P
1 b
spanned by the two vectors v = and w = ; in other words,
0 1
1 b
T (S) = P = {xv+yw : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1} = x +y : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 .
0 1
1 -
1 (1, 0)
We already know that the unit square S has area 1, but let’s see that P also has
area 1. The area of a parallelogram is equal to its base times its height, and the
height and base of P are both 1, so the area of P is 1 · 1 = 1. On the other hand,
1 b
det([T ]) = det = 1 · 1 − 0 · b = 1 = Area(P ).
0 1
Now we can rescale the sheer T by a in the horizontal direction and by d and
vertical direction, to have something more general. This time we have
a b
[T ] = ,
0 d
and
a b
T (S) = P = {xv+yw : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1} = x +y : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 ,
0 d
(In this particular picture a = 1/2 and d = 2, but this choice of scaling factors is
not important.) This time the height of the parallelogram P is d while its base is
a, so Area(P ) = base · height = ad. Again, we have
a b
| det([T ])| = det = |a · d − b · 0| = |ad| = Area(P ).
0 d
Notice that the absolute value here is necessary, because a and d could have opposite
signs.
know | det([T ])| gives the area of the image of the unit square if
Now that we
a b
[T ] = , it’s not too hard to see this is true for any linear map. We’ll first
0 d
need a technical fact.
Example: Choose any angle θ. Then
cos θ − sin θ
det([Rθ ]) = det
sin θ cos θ
= cos2 θ − (− sin2 θ) = cos2 θ + sin2 θ = 1.
Geometrically, this computation says that a rotation leaves area unchanged.
Example: We prove det(AB) = det(A) det(B) for 2 × 2 matrices A and B. We
have
a b e f ae + bg af + bh
det(AB) = det = det
c d g h ce + dg cf + gh
= (ae + bg)(cf + dh) − (ce + dg)(af + bh) = adeh + bcf g − bceh − adf g
and
a b e f
det(A) det(B) = det det = (ad − bc)(eh − f g)
c d g h
= adeh − bceh − adf g + bcf g.
Notice that this means det(AB) = det(A) det(B) = det(B) det(A) = det(BA) for
any pair of 2 × 2 matrices. In fact, this is true for A, B ∈ Mn×n , though the proof
is a little bit messier.
Now let T : R2 → R2 be a linear mapping of the plane to itself, and suppose
a b
[T ] = .
c d
40
a b 1 0
This means T (e1 ) = and T (e2 ) = , where e1 = and e2 =
c d 0 1
a
as before. Now, the vector T (e1 ) = makes some angle θ with the positive x
c
axis, so we apply the rotation R−θ to T to get a new mapping
cos θ sin θ a b ã b̃
T̃ = R−θ ◦ T, [T̃ ] = [R−θ ][T ] = = ,
− sin θ cos θ c d 0 d˜
and
det([T̃ ]) = det([R−θ ][T ]) = det([R−θ ]) det([T ]) = det([T ]).
By the computation we did above, Area(P̃ ) = | det([T̃ ])|. We also have that T
sends the unit square S to a parallelogram P , and T̃ sends S to a parallelogram
P̃ . These two parallelograms P and P̃ differ by a rotation, so they have the same
area. Thus we see
Area(P ) = Area(P̃ ) = | det([T̃ ])| = | det([T ])|.
In particular, we have just proven that det([T ]) 6= 0 precisely when T is invertible,
because this is precisely when the image parallelogram P has nonzero area.
Orientation and the sign of the determinant: As we saw in the previous
notes, there are actually two linear transformations which map the unit square S
onto this parallelogram P , we can also have
1 b 0 a b a
T = , T = , [T ] = .
0 d 1 0 d 0
In this case we see that
det([T ]) = −ad = − Area(P ).
Why do we have the minus sign? To understand what’s going on, it will help to
label the corners of the unit square S and the parallelogram P as in the picture
below.
ii’ iii’
iv iii
-
i ii i’ iv’
What does this labeling mean? The mapping T sends the vector e1 , which goes
b
from i to ii in the square on the left to the vector , which also goes from i’ to
d
ii’ in the parallelogram on the right. Similarly, the mapping T sends
the vector e2 ,
a
which goes from i to iv in the square on the left to the vector , which also goes
0
41
from i’ to iv’ in the parallelogram on the right. Now, if we follow the labeling of
the corners of the square in order, as in i to ii to iii to iv, then we traverse along the
boundary of the square counter-clockwise. However, if we follow the labeling of the
corners of the parallelogram in order, as in i’ to ii’ to iii’ to iv’, we traverse along
the boundary of the parallelogram clockwise. This means the mapping T reversed
the direction we traversed along the boundary of the shape. In other words, T
reversed the orientation. We have discovered the following general principle:
det([T ]) < 0 ⇔ T reverses orientation.
This principle is exactly why we wrote | det([T ])| = Area(P ) before. In general,
if T : R2 → R2 preserves orientation then det([T ]) = Area(P ), but if T reverses
orientation then det([T ]) = − Area(P ).
Higher dimensions: So far we’ve seen that the determinant of a 2 × 2 matrix
is the area (up to a sign) of the parallelogram which is the image of the unit square.
In fact, a similar thing is true in higher dimensions. Let [T ] be an n × n matrix,
which we’ve seen corresponds to a linear map T : Rn → Rn . Then T sends the unit
cube S = {0 ≤ xi ≤ 1 : i = 1, 2, . . . , n} to a parallelepiped P , which is spanned by
the columns of [T ]. Then | det([T ])| = Vol(P ), where Vol gives the n-dimensional
volume.
We begin with a quick illustrative example. Consider
a b 0
[T ] = c d 0 , e > 0.
0 0 e
Then the image of the unit cube S under T is
P = {(x, y, z) : (x, y) ∈ P̄ , 0 ≤ z ≤ e},
where
a b
[T̄ ] = , S̄ = {0 ≤ x ≤ 1, 0 ≤ y ≤ 1}, P̄ = T (S̄).
c d
By slicing P with horizontal slices, we see
Vol(P ) = e Area(P̄ ) = e| det([T̄ ])|.
So, by any reasonable definition of the determinant for 3 × 3 matrices which fits
with our definition for 2 × 2 matrices, we must have
det([T ]) = e det([T̄ ]) = e(ad − bc).
Exercise: Let [T ] be a 3 × 3 matrix. Show that you can always perform a
rotation to make the last row of [T ] into 0 0 e . (Hint: geometrically, you
want to rotate the parallelepiped so that one of its faces lies in a coordinate plane.
What are the columns of [T ]?)
At this point, we can write down a reasonable formula for the determinant of a
3 × 3 matrix. Let
a b c
[T ] = d e f ,
g h i
42
then
b c a c a b
det[T ] = g det − h det + i det .
e f d f d e
Here we’ve singled out the last row, but we can do the same thing by picking out
any row or column. To do this properly, we need some notation. Let [T ] = [Aij ],
so that the entry of [T ] in the ith row, jth column is Aij . Also, let [T̄ij ] be the
2 × 2 matrix you get from [T ] by crossing out the ith row and jth column. Then
for any choice of j = 1, 2, 3 we can write
det([T ]) = (−1)1+j A1j det([T̄1j ]]) + (−1)2+j A2j det([T̄2j ]) + (−1)3+j A3j det([T̄3j ]),
which computes det([T ]) by expanding along the jth column. Alternatively, for
any choice of i = 1, 2, 3 we can write
det([T ]) = (−1)i+1 Ai1 det([T̄i1 ]) + (−1)i+2 Ai2 det([T̄i2 ]) + (−1)i+3 Ai3 det([T̄i3 ]),
which computes det([T ]) by expanding along the ith row.
The same idea will compute the determinant of any square matrix inductively.
That is, you write the determinant of an n × n matrix as a sum of determinants
of (n − 1) × (n − 1) matrices. We write the general formula as follows. Again,
we let Aij be the entry of [T ] in the ith row, jth column, and we let [T̄ij ] be the
(n − 1) × (n − 1) matrix you get from [T ] by crossing out the ith row and the jth
column. The for any choice of j = 1, 2, . . . , n we compute det([T ]) by expanding
along the jth column using the formula
det([T ]) = (−1)1+j A1j det([T̄1j ])+(−1)2+j A2j det([T̄2j ])+· · ·+(−1)n+j Anj det([T̄nj ]).
Alternatively, for any choice of i = 1, 2, . . . , n we compute det([T ]) by expanding
along the ith row using the formula
det([T ]) = (−1)i+1 Ai1 det([T̄i1 ])+(−1)i+2 Ai2 det([T̄i2 ])+· · ·+(−1)i+n Ain det([T̄in ]).
We summarize some important properties of the determinant here.
(1) The determinant is linear in each row and column. That is, if A is an n × n
matrix and à is the same as A except that you multiply the ith row by c,
then det(Ã) = c det(A). Also, A1 and A2 are the same except at the ith
row and A is what you get by adding together the ith row of A1 and A2
then det(A) = det(A1 ) + det(A2 ). The same goes for columns.
(2) Consequently, if A is an n × n matrix and c is a number then det(cA) =
cn det(A).
(3) An n × n matrix A is invertible if and only if det(A) 6= 0.
(4) In fact, | det(A)| is the n-dimensional volume of the parallelpiped P which
is the image of the unit cube S = {0 ≤ x1 ≤ 1, . . . , 0 ≤ xn ≤ 1} under the
linear transformation associated to A. (You can prove this by induction, in
a very similar way we got the geometric interpretation for three dimensions
from the two-dimensional version.)
(5) Let A and B be n × n matrices, then det(AB) = det(A) det(B).
(6) Let A be an n × n matrix and let à be the matrix you get by swapping two
rows of A (or by swapping two columns). Then det(Ã) = − det(A)
43
6. Eigenvalues and eigenvectors
In this section we discuss eigenvalues and eigenvectors of a linear transformation.
The bulk of this section is concerned with linear transformations T : Rn → Rn ,
and so we can work entirely in terms of n × n matrices. However, the situation is
really no more complicated for a general linear transformation T : V → V , where
V is an arbitrary finite-dimensional vector space. So we will close with some more
general examples.
6.1.1. Some motivation. We saw in the last section that the determinant of a 2 × 2
matrix tells us the effect the associated linear map has on area. In other words,
if det([T ]) = 2 then T : R2 → R2 will scale the areas of squares by a factor of 2.
It’s not to hard to show that T scales the areas of all shapes by the same factor.
(Hint: cut whatever shape you’re interested in into a bunch of little tiny squares.
You won’t be able to do this exactly, but what you have left over has a negligible
area.) However, it’s easy to find a linear map which preserves area but distorts
lengths by a lot. For instance, consider the linear
1
2 2 0
T :R →R , [T ] = 2 .
0 2
We draw a picture of what T does to the unit square below.
2
1 -
1
1 2
This map preserves area, but it changes lengths by a lot. It shrinks length in some
directions by a factor of 1/2 and it stretches lengths in other directions by a factor
of 2. We can make this picture much worse by choosing , for instance, a horizontal
scale factor of 1/100 and a vertical scale factor of 100. This example tells us we
need at least two numbers to keep track of how a linear map T : R2 → R2 deforms
lengths. We’ll see in a bit that, at least in some special cases, we only need two
numbers, and that these numbers are (essentially) the eigenvalues.
6.1.2. Definitions. If you know a little about the German language, you might be
able to guess what an eigenvector is. The German word eigen means own, and an
44
eigenvector of a linear transformation keeps its own direction. It can get rescaled,
but the direction remains the same.
Definition 12. Let T : Rn → Rn be a linear transformation. Then a nonzero
vector v ∈ Rn is an eigenvector with eigenvalue λ if T (v) = λv. Notice that, even
though v is not allowed to be zero, it’s possible that λ = 0.
Exercise: Why is it necessary to have v 6= 0 in the definition of an eigenvector
v?
This definition is a little awkward for doing computations, so the first thing we’ll
do is reformulate it a little. Let v be an eigenvector of T with eigenvalue λ. Then
[T ][v] = λ[v] = λ[I][v] ⇔ ([T ] − λ[I])[v] = 0.
Now, v 6= 0, so the linear transformation T − λI sends a nonzero vector to 0, which
means it can’t be one-to-one. This means T − λI isn’t invertible, and so
det([T ] − λ[I]) = 0.
This last equation is an n-th degree polynomial equation for the unknown λ. We
know that any n-th degree polynomial has exactly n roots in the complex numbers
C (so long as we remember to count repeated roots), which means we’ve just proved
the following
Theorem 33. Let T : Rn → Rn be linear. Then a complex number λ ∈ C is an
eigenvalue of T if and only if
det([T ] − λ[I]) = 0.
Moreover, every n × n matrix has precisely n complex numbers λ1 , . . . , λn (counted
with multiplicity) which are eigenvalues.
The polynomial det([T ] − λ[I]) is called the characteristic polynomial of T ;
it is a polynomial of degree n if T ∈ Mn×n , and carries much important informa-
tion about T . The Cayley-Hamilton theorem states that T is a root of its own
characteristic polynomial.
This theorem tells us how to compute eigenvalues of a square matrix: we write
down the polynomial det([T ] − λ[I]) and find its roots. In practice this can be
a little sticky, for instance, if we want to find the eigenvalues of a 5 × 5 matrix.
However, for the case of 2 × 2 matrices, which is most of what we’ll discuss in this
class, the eigenvalues are the roots of a second order polynomial, which we can
always find using the quadratic formula. So, for the time being at least, let’s say
we can find eigenvalues and continue, to see how to find the eigenvectors.
Let [T ] be an n × n matrix, and let λ be an eigenvalue of [T ]. We want to find
the associated eigenvector(s), that is the nonzero vectors v such that T (v) = λv.
We write this equation as a matrix equation
[T ][v] = λ[v]
and try to solve it using our favorite method (like row reduction).
45
Exercise: Show that if v is an eigenvector of the matrix A with eigenvalue λ,
then 2v is also an eigenvector of A, with the same eigenvalue λ. Is there anything
special about the scale factor of 2?
Exercise: Show that the linear system [T ][v] = λ[v] for finding an eigenvector
will always have many many solutions. Usually, this system will have one free
variable, so it might be convenient to set one of the components of v to 1. However,
it is possible that this linear system has more than one free variables.
6.1.3. Some properties of eigenvalues and eigenvectors. Here we list some proper-
ties of the eigenvalues and eigenvectors.
Recall that v is an eigenvector of A with eigenvalue λ if Av = λv. If λ is a
real number as well, this means A(v) is colinear with v, i.e. either A(v) points in
the same direction or the opposite direction as v. In other words, if λ is a real
eigenvalue of A then, considered as a linear map, A preserves the direction of the
associated eigenvector v.
Exercise: Recall that we constructed the 2 × 2 rotation matrices
cos θ − sin θ
[Rθ ] = .
sin θ cos θ
Show that [Rθ ] has a real eigenvalue if and only if the angle θ is an integer multiple
of π (when measured in radians).
Exercise: We also constructed reflection matrices. Show that 1 is an eigenvalue
of any reflection matrix.
Exercise: Let A be the 3 × 3 matrix associated to a rotation of 3-dimensional
space. Show that 1 is an eigenvalue of A, and describe the relation between this
associated eigenvector and the rotation.
Exercise: Show that 0 is an eigenvalue of an n × n matrix A if and only if A is
not invertible. (This is completely general.)
Now we consider an n × n matrix A with real entries Aij in the ith row, jth
column. We have that λ is an eigenvalue of A precisely when
det(A − λI) = 0.
This is an nth degree polynomial, and the coefficients of this polynomial are sums
of products of the entries of A. This means λ is a root of a polynomial with real
coefficients. Now, it can happen that λ is not a real number, but it is a complex
number, but these complex roots occur in conjugate pairs. We have the following
Proposition 34. Let A be an n × n matrix with real entries. Then a non-real
complex number λ = a+ib is an eigenvalue of A if and only if its complex conjugate
λ̄ = a − ib is also an eigenvalue. In fact, in this case the eigenvectors are also
complex conjugates. That is, if v is an eigenvector associated to the eigenvalue λ
then v̄ is an eigenvector associated to the eigenvalue λ̄.
The last sentence of the proposition follows immediately from taking the complex
conjugate of the equation Av = λv to get Av̄ = λ̄v̄.
46
Exercise: Let A be an n × n matrix with real entries, and let λ = a + ib be a
non-real eigenvalue. Show that the components of the associated eigenvector v are
also non-real.
Some times we can find n independent eigenvectors v1 , . . . , vn for an n×n matrix
A. This means we can find n linearly independent vectors v1 , . . . , vn such that
A(vj ) = λj vj , and that we can’t write vj as the weighted sum of the other vi ’s. In
this case, we say that A is diagonalizable, for the following reason. We can write
any vector w as a sum w = c1 v1 + c2 v2 + · · · cn vn , and then
(1) A(w) = A(c1 v1 + · · · cn vn ) = c1 A(v1 ) + · · · cn A(vn ) = c1 λ1 v1 + · · · cn λn vn .
In other words, if we let B = {v1 , . . . , vn } be a basis of Rn consisting of eigenvectors
of A then we have
λ1 0 · · · 0
0 λ2 · · · 0
[A]BB = ... .. ;
.
0 · · · 0 λn
in other words, [A] is a diagonal matrix in the right coordinates. We see immedi-
ately from equation (1) that, at least if A is diagonalizable, that the eigenvalues
λ1 , . . . , λn encode the stretch factors we were looking for at the beginning of this
section.
We need to know the facts that the determinant and the trace of a matrix do
not depend on the basis; that is, if you change coordinates as we just did the
determinant and the trace remain the same.
Exercise: Show that, for a diagonalizable, n × n matrix, the determinant is the
product of the eigenvalues and the trace is the sum of the eigenvalues.
1 1
Exercise: Not all matrices are diagonalizable. In fact, show that is
0 1
not diagonalizable.
We saw above that if A is diagonalizable then det(A) is the product of all the
eigenvalues and tr(A) is their sum. In fact, this is true for any n × n matrix,
as you’ll see in a second year linear algebra course when you discuss the Jordan
cannonical form of a matrix.
Proposition 35. For any n × n matrix A, it holds that det(A) is the product of
the eigenvalues of A, and tr(A) is their sum.
Exercise: Let A be a 2 × 2 matrix with complex eigenvalues λ± = a ± ib. Show
that tr(A) = 2a and det(A) = a2 + b2 . In particular, det(A) ≥ 0.
Exercise: Let A be a 2 × 2 matrix with real eigenvalues λ1 and λ2 . Show that
det(A) > 0 if and only if λ1 and λ2 have the same sign. Then show that λ1 and λ2
are both positive if and only if both det(A) > 0 and tr(A) > 0.
Finally, we mention symmetric matrices, that is matrices such that Aij = Aji
where Aij is the entry of A in the ith row, jth column. These are particularly nice,
as we see from the following theorem (which we will not prove here).
Theorem 36. A symmetric n × n matrix is diagonalizable and has n real eigen-
values λ1 ≤ λ2 ≤ · · · ≤ λn ∈ R.
47
6.1.4. Examples. We’ll compute the eigenvalues and eigenvectors of some 2 × 2
matrices here, just so we have some examples written down.
First let
4 −2
A= .
3 −3
We want to find the eigenvalues of A, so we set
4−λ −2
0 = det(A − λI) = det
3 −3 − λ
= λ2 − λ − 6 = (λ − 3)(λ + 2),
and we see that the eigenvalues of A are λ1 = −2 and λ2 = 3.
Now we find the eigenvector associated to the eigenvalue λ1 = −2. We want to
solve the linear equation
4 −2 v1 −2v1
Av = −2v ⇔ = .
3 −3 v2 −2v2
Of course, you can solve this using row reduction, but I find that for a small system
like this, it’s easier to just write out the equations. We have
4v1 − 2v2 = −2v1 , 3v1 − 3v2 = −2v2 ,
and both these equations reduce to v2 = 3v1 . (You might want to think about why
you’ll always reduce from two equations to one when you’re finding the eigenvectors
of a 2 × 2 matrix.) So, up to a scale factor, the eigenvector of A associated to
λ1 = −2 is
1
v= .
3
Finally we find the eigenvector associated to λ2 = 3. This time the linear equa-
tion is
4 −2 w1 3w1
Aw = 3w ⇔ = ,
3 −3 w2 3w2
which we rewrite as
4w1 − 2w2 = 3w1 , 3w1 − 3w2 = 3w2 .
This reduces to w1 = 2w2 , and so the eigenvector is (again, up to scale)
2
w= .
1
For our next example, we take the matrix
1 −1
A= .
1 1
Again, we find eigenvalues of A by setting
1 − λ −1
0 = det(A − λI) = det
1 1−λ
= λ2 − 2λ + 2.
48
Using the quadratic formula we see that the eigenvalues are λ+ = 1 + i and λ− =
1 − i. Notice that, just as we said earlier, the eigenvalues occur in conjugate pairs.
We set up the equation for the eigenvector associated to λ+ = 1 + i as before,
and get
1 −1 v1 (1 + i)v1
Av = (1 + i)v ⇔ = ,
1 1 v2 (1 + i)v2
which reduces to
v1 = iv2 ⇔ −v2 = iv1 .
1
(You might want to recall here that i
= −i.) So we see that the eigenvector
associated to λ+ = 1 + i is
i
v= .
1
There’s a short cut to finding the other eignevector w: since
Aw = λ− w = λ̄+ w
and Ā = A we must have
−i
w = v̄ = .
1
We can also do this computation directly:
1 −1 w1 (1 − i)w1
= ⇔ w2 = iw1 ⇔ w1 = −iw2
1 1 w2 (1 − i)w2
and we recover
−i
w= .
1
7.2. Dual spaces. Given two vector spaces V and W , we have just seen the vector
space L(V, W ), the vector space of linear transformations from V to W . In the
special case that the target W = R, we obtain something called the dual space to
V.
Definition 15. Let V be a vector space. The dual space V ∗ to V is the vector
space V ∗ = L(V, R).
An element φ ∈ V ∗ is a linear function φ : V → R; such a linear map is often
called a linear functional. In the special case that B = {v1 , . . . , vn } is a basis for
V , we have a particular set of n linear functionals B ∗ = {φ1 , . . . , φn }, which are
defined by the relation
1 i=j
φi (vj ) =
0 i 6= j.
The main content of the proof of the theorem below is to show that B ∗ is a basis
of V ∗ ; it is called the dual basis to B.
Theorem 39. Let V be a finite dimensional vector space. Then V ∗ is isomorphic
to V .
Proof. We pick a basis B = {v1 , . . . , vn } and prove the theorem. In fact, we al-
ready know that V is isomorphic to Rn , so we only need to prove that V ∗ is also
isomorphic to Rn as well. To show this, we only need to show that V ∗ is an n-
dimensional vector space, i.e. that V ∗ has a basis with n elements. We already
have an excellent candiate for this basis, namely the dual basis B ∗ = {φ1 , . . . , φn }.
Let φ ∈ V ∗ . We show that there is a unique choice of coefficients a1 , . . . , an such
that
φ = a1 φ1 + a2 φ2 + · · · + an φn ;
as we have seen before, this shows both that B ∗ spans V ∗ (by the existence of a
solution) and that it is linearly independent (by the uniqueness of the solution).
Given our choice of φ ∈ V ∗ , we can pick
a1 = φ(v1 ), a2 = φ(v2 ), ..., an = φ(vn ).
Now we compare φ to the map
φ̃ = a1 φ1 + a2 φ2 + · · · + an φn .
We have, by definition, φ(vj ) = aj = φ̃(vj ), which implies φ = φ̃. Thus we
have represented our arbitrary φ ∈ V ∗ as a linear combination of elements of B ∗ .
Furthermore, if there is some other choice of coefficients b1 , . . . , bn such that
φ = b1 φ1 + · · · bn φn ,
52
then for any j = 1, . . . , n we have
bj = (b1 φ1 + · · · + bn φn )(vj ) = φ(vj ) = (a1 φ1 + · · · + an φn )(vj ) = aj .
Thus the choice of coeffients is unique, completing the proof.
Remark 9. • Notice that isomorphism V → V ∗ depends quite heavily on the
choice of basis B (or, equivalently, on the choice of dual basis B ∗ ). If we
change basis in V , we will obtain a very different isomorphism V → V ∗ .
• Also notice that in order to construct the dual basis B ∗ , we need to first
pick the basis B. We cannot pick them simultaneously, say choosing the
first two elements of B, then the elements of B ∗ , then the rest of B. This
is because in order to describe even the first linear functional φ1 ∈ B ∗ , we
need to know what it does to each and every basis vector in B.
Example: As our first example, we take V = Rn with the standard basis
B = {e1 , . . . , en }, and we denote the elements of the dual basis by {e∗1 , . . . , e∗n }. By
definition we must have
e∗i (x1 , x2 , . . . , xn ) = xi ,
and we can write the matrix of e∗i (with respect to the standard basis) as the row
with n element, which has a 1 in the ith column and 0’s everywhere else.
Example: Let V = R3 and choose the basis B = {e1 − e2 , e1 + e2 , e3 }. Then
the dual basis is
∗ 1 ∗ ∗ 1 ∗ ∗ ∗
B = (e − e2 ), (e1 + e2 ), e3 .
2 1 2
3
Exercise: Let V = R , and choose the basis
B = {e1 − e2 , e1 + e2 , e1 + e2 + e3 }.
Find the dual basis B ∗ .
We have seen that the isomorphism V → V ∗ depends very much on our choice of
basis. Thus it is remarkable that the isomorphism V → (V ∗ )∗ = V ∗∗ is canonical;
that is, this isomorphism doesn’t depend on anything at all.
Theorem 40. Let V be a finite dimensional vector space. Then V is canonically
isomorphic to its double-dual V ∗∗ . In other words, the isomorphism V → V ∗∗ does
not depend on anything at all.
Proof. Given a vector v ∈ V , we define v̂ ∈ V ∗∗ by v̂(φ) = φ(v) for all φ ∈ V ∗ .
This now defines a mapping
Ψ : V → V ∗∗ , Ψ(v) = v̂,
which, it turns out, will be our isomorphism. Observe that we have now defined v̂
and Ψ without choosing anything at all, and so Ψ is canonically defined.
We first check that Ψ is linear. Let v1 , v2 ∈ V and choose two real numbers
a1 , a2 ∈ R. Then, for any φ ∈ V ∗ we have
Ψ(a1 v1 + a2 v2 )(φ) = φ(a1 v1 + a2 v2 ) = a1 φ(v1 ) + a2 φ(v2 ) = a1 Ψ(v1 )(φ) + a2 Ψ(v2 )(φ).
Since this formula holds for all φ ∈ V ∗ , we conclude that
Ψ(a1 v1 + a2 v2 ) = a1 Ψ(v1 ) + a2 Ψ(v2 ).
53
Next we check that ker(Ψ) = {0}. Suppose that Ψ(v) = 0 ∈ V ∗∗ . This means
that for all φ ∈ V ∗ we must have
0 = Ψ(v)(φ) = φ(v).
If v 6= 0 then we could choose an ordered basis {v1 = v, v2 , . . . , vn }, and choosing
φ = φ1 to be the first element of the dual basis would force φ(v) = 1 6= 0. Clearly
this is impossible in light of φ(v) = 0 for all φ ∈ V ∗ .
In fact, we’re done with the proof now. We know that dim(V ) = dim(V ∗ ) =
dim(V ∗∗ ), and we’ve just shown that Ψ : V → V ∗∗ is a one-to-one linear trans-
formation. By our previous theorems we know this is only possible if Ψ is an
isomorphism.
Remark 10. Some people call the isomorphism Ψ the tautological isomorphism
between V and V ∗∗ .
Remark 11. We have done everything here for finite dimensional vector spaces.
Some of these ideas extend to infinite dimensions (e.g. the idea of constructing a
dual vector space), but many of the proofs don’t carry through in higher dimensions.
In particular, the dual space to an infinite dimensional vector space is bigger than
the original.
Proof. The first equation follows from the fact that hcv, cvi = c2 hv, vi.
Next we prove the Cauchy Schwarz inequality. If v = 0 then both sides of the
equation are zero, so the inequality holds. If v 6= 0 then we have, for any c,
0 ≤ ku − cvk2 = hu − cv, u − cvi = kuk2 + c2 kvk2 − 2chu, vi
Now choose
hu, vi
c=
kvk2
and plug this into the inequality we have just derived to get
|hu, vi|2
0 ≤ kuk2 − ,
kvk2
which we can rearrange to give the Cauchy-Schwarz inequality.
56
Finally we use Cauchy-Schwarz to prove the triangle inequality.
ku + vk2 = hu + v, u + vi = kuk2 + 2hu, vi + kvk2
≤ kuk2 + 2|hu, vi| + kvk2 ≤ kuk2 + 2kukkvk + kvk2
≤ (kuk + kvk)2
Taking square roots of both sides of this inequality gives the triangle inequality.
8.2. Gram-Schmidt orthogonalization. For many applications it is convenient
to have an orthonormal basis for a vector space with an inner product. However,
when one originally picks a basis for a vector space it is usually not orthogonal, so
it is useful to have a process to turn an arbitrary basis into an orthonormal basis.
This subsection will outline an algorithm for doing so, and present some examples.
Recall that an orthogonal set S = {v1 , . . . , vk } ⊂ V is a set such that hvi , vj i = 0
if i 6= j. We say that S is orthonormal if we also have kvi k2 = hvi , vi i = 1 for
i = 1, 2, . . . , k. Thus an orthonormal basis for V is a basis {v1 , v2 , . . . , vn } such
that
1 i=j
hvi , vj i =
0 i 6= j.
Example: We list some orthonormal bases for R2 equipped with the usual dot
product. The first such basis is the familiar standard basis
{e1 = (1, 0), e2 = (0, 1)}.
We can rotate this basis through an angle π/4 to get
1 1
{v1 = √ (1, 1), v2 = √ (1, −1)},
2 2
or through an angle π/6 to get
1 √ 1 √
{v1 = ( 3, 1), v2 = (−1, 3),
2 2
or (for a general angle θ)
{v1 = (cos θ, sin θ), v2 = (− sin θ, cos θ)}.
Before outlining the Gram-Schmidt process we should see why an orthonormal
basis is useful.
Theorem 43. Let V be a vector space over R with an inner product h·, ·i, and let
S = {v1 , . . . , vk } be an orthogonal set of nonzero vectors. If w = Σkj=1 aj vj then
hw,v i
aj = kvj kj2 for all j = 1, 2, . . . , k.
Proof. We take some inner products. For i = 1, . . . , k we have
hw, vi i = Σkj=1 aj vj , vi = Σkj=1 aj hvj , vi i = ai kvi k2 .
The theorem follows.
Corollary 44. Under the hypotheses of the last theorem, if S is also orthonormal
then
w = Σkj=1 hw, vj ivj .
57
Corollary 45. Let V be a vector space over R with an inner product h·, ·i, and
let S = {v1 , v2 , . . . , vk } be an orthogonal set of nonzero vectors. Then S is also
linearly independent.
Proof. Suppose there exist coefficients a1 , . . . , ak such that
a1 v1 + a2 v2 + · · · + ak vk = 0.
h0,vi i
Then, by the theorem above, for each i = 1, 2, . . . , k we have ai = kvi k2
= 0. We
conclude that S must be linearly independent.
The following theorem is the main tool we will use to construct an orthonormal
basis from an arbitrary basis.
Theorem 46. Let V be a vector space over R with an inner product h·, ·i and let
S = {w1 , w2 , . . . , wn } ⊂ V be a linearly independent subset. If we define
k−1 hwk , vj i
v1 = w1 , vk = wk − Σj=1 vj for k = 2, 3, . . . , n
kvj k2
then S 0 = {v1 , v2 . . . , vn } is an orthogonal set with span(S 0 ) = span(S).
If we want to complete the process of finding an orthonormal basis, we apply the
above theorem to a basis to get an orthogonal basis {v1 , . . . , vn }, and then replace
vj with kv1j k vj . Thus the main difficulty lies in achieving hvi , vj i = 0 for i 6= j.
Theorem 47. Let V be a finite dimensional vector space over R with an inner
product. Then V has an orthonormal basis B = {v1 , . . . , vn }. Moreover, if v ∈ V
then we can represent
Xn
v= ai vi , ai = hv, vi i.
i=1
P1 : R 2 → R 2 , P1 (x1 , x2 ) = (x1 , 0)
and
P2 : R 2 → R 2 , P2 (x1 , x2 ) = (0, x2 )
satisfy P12 = P1 and P22 = P2 .
59
9.1. Direct sums. We begin with some definitions and basic properties.
Definition 21. Let V be a vector space, and let W1 , W2 ⊂ V be subspace. Then
W1 + W2 = {w1 + w2 : w1 ∈ W1 , w2 ∈ W2 }.
Proposition 49. The sum W1 + W2 is a subspace of V . In fact, it is the smallest
subspace containing both W1 and W2 .
Proof. We need first to verify that if w, w̃ ∈ W1 + W2 and a, ã ∈ R then aw + ãw̃ ∈
W1 + W2 . We have w = w1 + w2 , where w1 ∈ W1 and w2 ∈ W2 . Similarly,
w̃ = w̃1 + w̃2 , where w̃1 ∈ W1 and w̃2 ∈ W2 . Then
aw + ãw̃ = a(w1 + w2 ) + ã(w̃1 + w̃2 ) = (aw1 + ãw̃1 ) + (aw2 + ãw̃2 ),
and we have now written aw + ãw̃ as the sum of a vector in W1 and a vector in
W2 . Thus W1 + W2 is closed under linear combinations, so it must be a subspace.
Now suppose U is another subspace of V containing both W1 and W2 , and choose
w = w1 +w2 ∈ W1 +W2 . However, w1 and w2 must both be elements of U , and U is
closed under addition, so w1 + w2 ∈ U . We have just shown that W1 + W2 ⊂ U .
Definition 22. A vector space V is said to be the direct sum of the subspaces W1
and W2 if W1 ∩ W2 = {0} and V = W1 + W2 . In this case we write V = W1 ⊕ W2 .
Example: We can write Rn = W1 ⊕ W2 where W1 = {(x1 , x2 , . . . , xn ) : xn = 0}
and W2 = {(x1 , x2 , . . . , xn ) : x1 = x2 = · · · = xn−1 = 0}. We can write any vector
in Rn as
(x1 , . . . , xn ) = (x1 , . . . , xn−1 , 0) + (0, . . . , 0, xn ),
and so Rn = W1 + W2 . Moreover, the only vector in common with W1 and W2
must have all its components equal to zero, so W1 ∩ W2 = {0}.
Example: Let V = Mn×n , let W1 = {A ∈ Mn×n : At = A} be the set of
symmetric matrices, and let W2 = {A ∈ Mn×n : At = −A} be the set of skew-
symmetric matrices. Then V = W1 ⊕ W2 . Indeed, for any matrix A ∈ Mn×n we
have
1 1 1 1
(A + At ) ∈ W1 , (A − At ) ∈ W2 , A = (A + At ) + (A − At ),
2 2 2 2
so V = W1 + W2 . Now suppose A ∈ W1 ∩ W2 . Then
A ∈ W1 ⇒ A = A t , A ∈ W2 ⇒ A = −At .
Putting these last two equations together we get A = −A, which is only possible
if A = 0.
Exercise: Let V = Rn [x], the space of polynomials of degree at most n. Define
W1 = {p = a0 + a1 x + · · · + an xn : ak = 0 if k is even},
and
W2 = {p = a0 + a1 x + · · · + an xn : ak = 0 if k is odd}.
Prove that V = W1 ⊕ W2 .
60
Theorem 50. Let W1 and W2 be finite-dimensional subspaces of the vector space
V . Then W1 + W2 is also finite dimensional, and
dim(W1 + W2 ) = dim(W1 ) + dim(W2 ) − dim(W1 ∩ W2 ).
In particular, V = W1 ⊕ W2 if and only if
dim(V ) = dim(W1 ) + dim(W2 ).
Proof. Let B1 = {v1 , . . . vk } be a basis for W1 and let B2 = {w1 , . . . wm } be a basis
for W2 . Then
W1 + W2 ⊂ span(B1 ∪ B2 ) = span{v1 , . . . , vk , w1 , . . . , wm },
so in particular
dim(W1 + W2 ) ≤ k + m = dim(W1 ) + dim(W2 ),
which implies W1 + W2 is finite dimensional.
If W1 ∩ W2 = {0} then span(B1 ) and span(B2 ) cannot contain any vectors in
common, and so B1 ∪ B2 must be linearly independent. In this case, we have shown
dim(W1 +W2 ) = dim(W1 )+dim(W2 )−dim{0} = dim(W1 )+dim(W2 )−dim(W1 ∩W2 )
as desired.
Otherwise, we still have that W1 ∩ W2 is a subspace of W2 . (It is also a subspace
of W1 and of V , but for the purposes of the proof we will work with W1 ∩ W2 as
a subspace of W2 .) By the replacement theorem, we can re-order {w1 , . . . , wm } so
that {w1 , w2 , . . . , wm0 } span W1 ∩ W2 , for some m0 ≤ m. As each of w1 , w2 , . . . , wm0
must also be in W1 = span(B1 ), each must be a linear combination of v1 , v2 , . . . , vk .
Removing these vectors w1 , . . . , wm0 from B2 we still have a set
B 0 = {v1 , . . . , vk , wm0 +1 , . . . , wm }
such that W1 + W2 = span(B 0 ). If we show B 0 is linearly independent then we’re
done, because in this case
dim(W1 +W2 ) = k +(m−m0 ) = k +m−m0 = dim(W1 )+dim(W2 )−dim(W1 ∩W2 ).
So, suppose there is some choice of coefficients a1 , . . . , ak , bm0 +1 , . . . , bm ∈ R, not
all of which are zero, such that
0 = a1 v1 + a2 v2 + · · · + ak vk + bm0 +1 wm0 +1 + bm0 +2 wm0 +2 + · · · + bm wm .
If one of the aj ’s is non-zero, we can re-order the vectors v1 , . . . , vk so that a1 6= 0.
Then we rearrange our equation to read
1
v1 = − (a2 v2 + · · · + ak vk + bm0 +1 wm0 +1 + · · · + bm wm ).
a1
However, we know that {v1 , . . . , vk } are linearly independent, and wm0 +1 , . . . , wm
are not in W1 at all, so this is impossible. Similarly, assuming that one of the bj ’s
is nonzero will also give a contradiction. We have just proven that B 0 is linearly
independent, completing the proof of our theorem.
61
If we have V = W1 ⊕ W2 then we can examine two natural projection operators:
Π1 : V → W1 , Π2 : V → W2 .
To understand these operators, we need some preliminaries. First observe that we
can write any v ∈ V as v = w̃1 + w̃2 , where w̃1 ∈ W1 and w̃2 ∈ W2 . In fact, this
choice of w̃1 and w̃2 is unique. To see this, choose bases B1 = {v1 , . . . , vk } for W1
and B2 = {w1 , . . . , wm } for W2 . By the proof of the theorem immediately above,
we know that B1 ∪ B2 is a basis for V = W1 ⊕ W2 , which means that for any v ∈ V
there is a unique choice of coefficients a1 , . . . , ak , b1 , . . . , bm such that
v = a1 v1 + · · · ak vk + b1 w1 + · · · bm wm ,
and so
w̃1 = a1 v1 + · · · + ak vk , w̃2 = b1 w1 + · · · + bm wm .
Because B1 = {v1 , . . . , vk } is a basis for W1 and B2 = {w1 , . . . , wm } is a basis
for W2 , these representations of w̃1 and w̃2 uniquely determine them. Then our
projection formulas read
Π1 (v) = Π1 (w̃1 + w̃2 ) = w̃1 , Π2 (v) = Π2 (w̃1 + w̃2 ) = w̃2 .
Remark 12. It is a straight-forward exercise to extend everything in this section
to finite sums (or finite direct sums) of subspaces W1 , W2 , . . . , Wk ⊂ V using in-
duction.
9.2. Quotients. To define quotients we will need to introduce equivalence rela-
tions.
Definition 23. If X is any set, a relation R on X is a subset R ⊂ X × X. If
x1 , x2 ∈ X and (x1 , x2 ) ∈ R we write x ∼ y. An equivalence relation is a relation
such that
(1) For all x ∈ X we have x ∼ x (reflexivity).
(2) If x ∼ y then y ∼ x (symmetry).
(3) If x ∼ y and y ∼ z then x ∼ z (transitivity).
Also, if X is a set with an equivalence relation R then the equivalence class of
an element x ∈ X, written [x], is the set of everything equivalent to x. That is,
[x] = {x̃ ∈ X : x̃ ∼ x}.
The first example of an equivalence relation you should think of is the following.
Let X = Z, the set of integers, and fix a positive integer n. We say x ∼ y if x − y
is an integer multiple of n. For instance, if n = 2, then x ∼ y if x − y is an even
integer, and x 6∼ y if x − y is odd.
We’ll verify transitivity here, the other two properties are easier to check. If
x ∼ y and y ∼ z then there are integers a and b such that
x − y = an, y − z = bn,
and so
x − z = (an + y) − (−bn + y) = (a + b)n
is indeed a multiple of n.
62
We write
nZ = 0, ±n, ±2n, ±3n, . . .
for the set of all integer multiples of n, and we see that we can identify the set of
equivalence classes
Zn = Z/ ∼= Z/nZ = {0, 1, 2, . . . , n − 1}.
This means that for any integer x we can find another integer y ∈ {0, 1, 2, . . . , n−1}
such that x ∼ y, and that this choice of y is unique. Indeed, we can write any integer
x as x = an + y, where y is the remainder of x divided by n. By definition, we have
x ∼ y, and that y ∈ {0, 1, 2, . . . , n − 1}. Also, if y ∼ z and y, z ∈ {0, 1, 2, . . . , n − 1}
then y − z = an for some integer a. However, this is only possible if a = 0, which
implies y = z.
Now we are ready to define the quotient of a vector space V by a subspace W .
Definition 24. Let V be a vector space and let W ⊂ V be a subspace. For any
v ∈ V we define the coset v + W = {v + w : w ∈ W }, and define an equivalence
relation on the set of cosets by saying
v1 + W ∼ v2 + W ⇔ v1 − v2 ∈ W.
Then the quotient space V /W is the vector space formed by the set of equivalence
classes.
In order for this to be a sensible definition, we must check some things.
Theorem 51. The equivalence relation
v1 + W ∼ v2 + W ⇔ v1 − v2 ∈ W
is indeed and equivalence relation. Moreover, the set of equivalence relations V /W
inherits a vector space structure from V .
Proof. We first check that ∼ is an equivalence relation. First of all, v + W ∼ v + W
because v − v = 0 ∈ W , as W is a subspace. Second, if v1 + W ∼ v2 + W then
v1 − v2 ∈ W , which implies v2 − v1 = −(v1 − v2 ) ∈ W . Third, if v1 + W ∼ v2 + W
and v2 + W ∼ v3 + W , then v1 − v2 = w1 ∈ W and v2 − v3 = w2 ∈ W . Thus
v1 − v3 = (v1 − v2 ) − (v2 − v3 ) = w1 − w2 ∈ W,
and so v1 + W ∼ v3 + W .
At this point, it will be convenient to notice that v + W = 0 + W = W (with
equality as equivalence classes) if and only if v ∈ W . To see this, observe that
v + W = 0 + W = W ⇔ v = v − 0 ∈ W.
Next we define the vector addition and scalar multiplication on the cosets. Let
v1 + W, v2 + W ∈ V /W and let a1 , a2 ∈ R. Then we define
a1 (v1 + W ) + a2 (v2 + W2 ) = (a1 v1 + a2 v2 ) + W.
63
We need to check that this definition of vector addition and scalar multiplication
does not depend on the choice we have made, namely, the representatives v1 and
v2 we chose for the cosets. Let
v1 + W ∼ v10 + W ⇔ v1 − v10 = w1 ∈ W, v2 + W = v20 + W ⇔ v2 − v20 = w2 ∈ W
Then
(a1 v1 + a2 v2 ) − (a1 v10 + a2 v20 ) = a1 (v1 − v10 ) + a2 (v2 − v20 ) = a1 w1 + a2 w2 ∈ W,
so the coset we get by choosing a representative to do the vector addition and
scalar multiplication does not in fact depend on our choice of representative.
It is now quite easy to see that V /W inherits all its vector space structure from
that of V .
Just as was the case with direct sums, there is a natural projection operator
associated to any quotient, which we define with the following theorem.
Theorem 52. Let V be a vector space and let W ⊂ V be a subspace. Define the
map
η : V → V /W, η(v) = v + W.
Then η is a linear transformation, ker(η) = W , and dim(V ) = dim(W )+dim(V /W ).
Proof. Let v1 , v2 ∈ V and a1 , a2 ∈ R. Then
η(a1 v1 + a2 v2 ) = (a1 v1 + a2 v2 ) + W = a1 (v1 + W ) + a2 (v2 + W ) = a1 η(v1 ) + a2 η(v2 ),
and so η is linear. We have already noticed in the middle of the previous proof that
v + W = 0 + W = W if and only if v ∈ W , which (by the definition of η) proves
that ker(η) = W . The last statement of the theorem now follows immediately from
the rank-nullity theorem.
64