MIT 18.701 — Lecture 6

Linear Transformations, Bases and Matrices, The Dimension Theorem

§ Vector Space Definitions (cont.)

Previously, we defined span and linear independence using vectors. Let's generalize these definitions to subspaces.

Definition (Span). Consider subspaces W1,,WkVW_1, \dots, W_k \subseteq V of a vector space VV. Then their span is:

span(W1,,Wk):=W1++Wk:={w1++wk:wiWi}.\mathrm{span}(W_1, \dots, W_k) := W_1 + \dots + W_k := \{w_1 + \dots + w_k : w_i \in W_i\}.

Equivalently, the span of {W1,,Wk}\{W_1, \dots, W_k\} is the smallest subspace of VV containing i=1kWi\bigcup_{i = 1}^k W_i.

Definition (Linear Independence). We say subspaces W1,,WkVW_1, \dots, W_k \subseteq V of a vector space VV are linearly independent if, for any choice of vectors wiw_i in each subspace WiW_i, we have:

w1++wk=0  if and only if  w1==wk=0.w_1 + \dots + w_k = 0 ~ \text{ if and only if } ~ w_1 = \dots = w_k = 0.

Remark. Our previous notions of span and linear independence in terms of vectors are the same as those for subspaces: they're the special cases when each WiW_i is a one-dimensional subspace Wi:={λvi:λF}W_i := \{\lambda v_i: \lambda \in F\}.

Definition (Direct Sum). If subspaces W1,,WkVW_1, \dots, W_k \subseteq V of a vector space VV are both spanning and linearly independent, then we say VV is isomorphic to the direct sum (\oplus) of these subspaces:

V=W1WkW1××Wk.V = W_1 \oplus \dots \oplus W_k \cong W_1 \times \dots \times W_k.

To be precise, here is how we formally define the isomorphism \cong in the definition above.

Definition (Transformations). Given vector spaces VV and WW and a map T:VWT: V \to W, we say:

Example. Each matrix MFm×nM \in F^{m \times n} gives a natural linear transformation M:FnFmM: F^n \to F^m.

Example. Consider the vector space V:={infinitely differentiable f:RR}V := \{\text{infinitely differentiable } f: \mathbb{R} \to \mathbb{R} \}. Then the map T:VVT: V \to V defined by T:ffT: f \mapsto f' is a linear operator.

§ Choosing a Basis

The following always (obviously!) holds.

Theorem. (Finite-Dimensional Vector Spaces) Suppose a finite-dimensional vector space VV over a field FF has dimension nn and some basis {v1,,vn}V\{v_1, \dots, v_n\} \subseteq V. Then VV is isomorphic to FnF^n, with isomorphism:

φ:FnV  defined by  φ([λ1λn])=λ1v1++λnvn\varphi: F^n \to V ~ \text{ defined by } ~ \varphi\left(\left[\begin{smallmatrix} \lambda_1 \\ \vdots \\ \lambda_n \end{smallmatrix}\right]\right) = \lambda_1v_1 + \dots + \lambda_n v_n

So all vector spaces of the same dimension over FF are isomorphic.

This yields two philosophical perspectives about vector spaces:

Physicists' Approach: We can reduce any abstract nn-dimensional vector space VV to the simpler vector space FnF^n, as long as we just pick a basis. So the different ways we can pick a good basis should be our focus of study.

Mathematicians' Approach: The same vector space VV looks very different under different choices of basis. So our focus of study should be the qualities of vector spaces that are well-defined independent of choice of basis.

§ Linear Transformation     \implies Matrix (Only if You Choose a Basis!)

Recall the following remark from the previous lecture:

Remark. It does not make sense to describe linear maps between arbitrary vector spaces M:VWM: V \to W using a matrix. Matrices only make sense if the vector spaces VV and WW are both of the form FmF^m and FnF^n.

To fix this, let's take the physicists' approach: if we choose a basis for vector spaces VV and WW, then we can reduce VV and WW to the isomorphic vector spaces FnF^n and FmF^m, at which point matrix representations make sense.

Theorem. (Matrix Representation of Linear Maps) Consider vector spaces VV and WW over a field FF. Select a basis {v1,,vn}V\{v_1, \dots, v_n\} \subseteq V for VV and a basis {w1,,wm}W\{w_1, \dots, w_m\} \subseteq W for WW. Then any linear transformation T:VWT: V \to W is determined entirely by just the images of T(v1),,T(vn)T(v_1), \dots, T(v_n). To be explicit,

Unfortunately, abstract vector spaces VV and WW aren't usually born with an inherent choice of basis. How do the entries of our matrix {(MT)ji}Fm×n\{(M_T)_{ji}\} \in F^{m \times n} change when we change our choices of basis?

Theorem. (Change of Basis) Suppose a linear transformation T:VWT: V \to W has corresponding matrix representation MTM_T when we choose bases {v1,,vn}V\{v_1, \dots, v_n\} \subseteq V and {w1,,wm}W\{w_1, \dots, w_m\} \subseteq W.

Suppose we instead adopt new bases {Av1,,Avn}V\{Av_1, \dots, Av_n\} \subseteq V and {Bw1,,Bwm}W\{Bw_1, \dots, Bw_m\} \subseteq W, where AA and BB are bijective linear operators A:VVA: V \to V and B:WWB: W \to W that encode our change of basis.

Then the matrix MTM_T' determined by these new choices of bases looks like MT=MB1MTMAM_T' = M_{B}^{-1}M_T M_A.

Proof: By definition, the entries of our new matrix MTM_T' must satisfy the property:

T(Avi)=j=1m(MT)ji(Bwj) for all i.T(Av_i) = \sum_{j = 1}^m (M_T')_{ji} (Bw_j) \text{ for all } i.

Note that we can perform left-multiplication by B1B^{-1} on both sides of this equation to achieve:

(B1TA)vi=j=1m(MT)jiwj.(B^{-1}TA)v_i = \sum_{j = 1}^m (M_T')_{ji}w_j.

Forget about what MTM_T' meant to us to begin with: looking only at the equation above, we can read off that the coefficients (MT)ji(M_T')_{ji} encode the image of each viv_i under the map B1TAB^{-1}TA as a linear combination of wjw_j.

Thus, MT=MB1TAM_T' = M_{B^{-1}TA}, so MT=MB1MTMAM_T' = M_B^{-1} M_TM_A, as promised.   \blacksquare

Something interesting happens when we consider change of basis for linear maps T:VVT: V \to V.

The key observation is that MT=MA1MTMAM_T' = M_A^{-1}M_TM_A just looks like the result of conjugating MTM_T by MAM_A. Thus,

Theorem. (Matrix Conjugation) Changing the basis used in deriving the matrix form MTM_T of a linear map T:VVT: V \to V is the same as conjugating the matrix MTM_T by another matrix MAM_A in the group GLn(F)GL_n(F).

Remark. Recall that a subgroup is normal if it remains invariant under conjugation. Equivalently, a subgroup HH of GLn(F)GL_n(F) is normal if changing the basis of a matrix in HH yields another matrix in HH.

§ Rank, Nullity, and the Dimension Theorem

Definition (Rank and Nullity). Given a linear transformation T:VWT: V \to W (for finite-dimensional vector spaces VV and WW), the kernel and image of TT are kerT:={vV:Tv=0}V\ker T := \{ v \in V: Tv = 0\} \subseteq V and imT:={Tv:vV}W\im T := \{Tv : v \in V\} \subseteq W.

Then the rank and nullity of TT are rank T:=dim(imT)\mathrm{rank} \ T := \dim(\im T) and nullity T:=dim(kerT)\mathrm{nullity} \ T := \dim(\ker T).

Somewhat intuitively, the rank and nullity of a linear map together satisfy the following nice property:

Theorem. (Dimension Theorem) For a linear transformation T:VWT: V \to W between finite-dimensional vector spaces VV and WW, we have dimimT+dimkerT=dimV\dim \im T + \dim \ker T = \dim V.

Remark. The Dimension Theorem is just the “logarithm” version of the fact that for any group homomorphism f:GHf: G \to H, we have kerfimf=G| \ker f | \cdot | \im f | = |G|: just take GG and HH to be vector spaces over F=Z/pZF = \mathbb{Z} / p \mathbb{Z}.

In fact, the Dimension Theorem is stronger than kerfimf=G| \ker f | \cdot | \im f | = |G|, since dimension is a stronger notion than cardinality: R2\mathbb{R}^2 and R3\mathbb{R}^3 have the same cardinality, but as vector spaces over R\mathbb{R}, they have different dimensions!

We'll finish class by proving the Dimension Theorem.

Proof: Choose bases {v1,,vn}V\{v_1, \dots, v_n\} \subseteq V and {w1,,wm}W\{w_1, \dots, w_m \} \subseteq W so we may represent T:VWT: V \to W with a matrix MTM_T. We begin by investigating a very special case: suppose T=T0T = T_0 for which the matrix MT0M_{T_0} looks like the following:

MT0=[1000010000000000] with a k-dimensional Ik in the top-left corner.M_{T_0} = \begin{bmatrix} 1 & \cdots & 0 & 0 & \cdots & 0 \\ \vdots & \ddots & \vdots & \vdots & \vdots & \vdots \\ 0 & \cdots & 1 & 0 & \cdots & 0 \\ 0 & \cdots & 0 & 0 & \cdots & 0 \\ \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ 0 & \cdots & 0 & 0 & \cdots & 0 \end{bmatrix} \text{ with a } k\text{-dimensional } I_k \text{ in the top-left corner.}

In other words, TT sends each of (v1,,vk)(v_1, \dots, v_k) to (w1,,wk)(w_1, \dots, w_k), respectively, and TT sends each of (vk+1,,vn)(v_{k + 1}, \dots, v_n) to zero. Then the image of TT is span(w1,,wk)\mathrm{span}(w_1, \dots, w_k), and the kernel of TT is span(vk+1,,vn)\mathrm{span}(v_{k + 1}, \dots, v_n). Thus, the rank of TT is kk and the nullity of TT is nkn - k, so the Dimension Theorem holds because k+(nk)=nk + (n - k) = n.

Now the key idea is the following: consider, more generally, a linear transformation T:VWT: V \to W whose matrix representation MTM_T is not as nice as MT0M_{T_0}. We claim that, under a suitable change of basis, the matrix MTM_T can become MT=MT0M_T' = M_{T_0}, in which case we'd be done!

Why must there exist a change of basis that transforms MTM_T into MT=MT0M_T' = M_{T_0}? Because performing change of basis on a matrix looks like performing row and column operations on MTM_T. So we can procedurally perform row and column operations (changes of basis) to eventually reform MTM_T into the form MT0M_{T_0}.   \blacksquare

The moral of the story? Picking the right basis can yield very nice results.

Remark. The above argument also implies that the rank of a matrix MTM_T is the same as that of its transpose MTM_T^{\top}.