Linear maps and matrices

Definition (vector space of linear maps) open_in_new

Let $V$ and $W$ be $\mathbb{F}$-vector spaces.

Define $\mathcal{L}(V,W)$ be the set of linear maps $V\to W$.

$\mathcal{L}(V,W)$ is an $\mathbb{F}$-vector space under the operations $$ \begin{align*} (\alpha + \beta) (v) &= \alpha(v) + \beta(v), \\ (\lambda \alpha)(v) &= \lambda \alpha(v). \end{align*} $$

Definition (matrix of a linear map) open_in_new

Let $V$ and $W$ be finite-dimensional $\mathbb{F}$-vector spaces, and $B=\set{v_1, v_2, \ldots, v_n}$ be a basis for $V$ and $C=\set{w_1, w_2, \ldots, w_m}$ be a basis for $W$. Further let $\alpha\in$ $\mathcal{L}(V,W)$.

Define $[\alpha]^B_C = (a_{ij}) \in M_{m\times n}(\mathbb{F})$ be the matrix of $\alpha$ with respect to $B$ and $C$, where $a_{ij}$ are given by $$ \begin{align*} \begin{cases} \alpha(v_1) &= a_{11}w_1 + a_{21}w_2 + \ldots + a_{m1}w_m, \\ \alpha(v_2) &= a_{12}w_1 + a_{22}w_2 + \ldots + a_{m2}w_m, \\ \vdots \\ \alpha(v_n) &= a_{1n}w_1 + a_{2n}w_2 + \ldots + a_{mn}w_m. \end{cases} \end{align*} $$ (This means $[\alpha(v_j)]_C$ is the $j$-th column of $[\alpha]^B_C$.)

Theorem (matrices and linear maps) open_in_new

Define $V, W, B, C$ as in here.

$[\alpha]_C^B$ is the only matrix in $M_{m\times n}(\mathbb{F})$ satisfying $$ \begin{align*} [\alpha]^B_C [v]_B = [\alpha(v)]_C \quad \text{for all }v\in V \end{align*} $$ where $[v]_B$ is the coordinate vector of $v$ with respect to $B$. Furthermore, $$ \begin{align*} \mathcal{E}_C^B: \mathcal{L}(V,W) &\to M_{m\times n}(\mathbb{F}) \\ \alpha &\mapsto [\alpha]^B_C \end{align*} $$ is an isomorphism.

Proof

Theorem (dimension of the space of linear maps) open_in_new

Suppose $V$ and $W$ are finite-dimensional vector spaces. Then $$ \begin{align*} \dim(\mathcal{L}(V,W)) = \dim(V) \cdot \dim(W). \end{align*} $$

Proof

Proposition (matrix multiplication and linear map composition) open_in_new

Let $U,V,W$ be finite-dimensional $\mathbb{F}$-vector space having bases $B,C,D$ respectively. Further let $\alpha\in$ $\mathcal{L}(U,V)$ and $\beta\in\mathcal{L}(V,W)$. Then $$ \begin{align*} [\beta\circ\alpha]^B_D = [\beta]_D^C \, [\alpha]_C^B. \end{align*} $$

Proof

Definition (base change matrix) open_in_new

Let $B$ and $B'$ be bases for a vector space $V$ where $\dim$$(V) = n$.

The base change matrix from $B$ to $B'$ is $[\mathrm{id}_V]^B_{B'} \in M_{n\times n}(\mathbb{F})$.

Definition (equivalent matrices) open_in_new

Two $m\times n$ matrices $A, A'$ are said to be equivalent if there exists invertible $m\times m$ matrix $P$ and $n\times n$ matrix $Q$ such that $$ \begin{align*} A' = PAQ. \end{align*} $$

Equivalently, if $A'$ can be obtained from $B$ by a sequence of row and column operations.

This is an equivalence relation on $M_{m\times n}(\mathbb{F})$.

Theorem (matrix of linear map can be (I_rank 0; 0 0)) open_in_new

Let $V$ and $W$ be finite-dimensional vector spaces and $\alpha: V\to W$ be a linear map.

There exists bases $B$ for $V$ and $C$ for $W$ such that $$ \begin{align*} [\alpha]_C^B = \pmat{I_r & 0 \\ 0 & 0} \equiv \pmat{1 & 0 & \ldots & 0 & 0 & \ldots & 0 \\ 0 & 1 & \ldots & 0 & 0 & \ldots & 0 \\ \vdots & \vdots & \ddots & \vdots & \vdots & & \vdots \\ 0 & 0 & \ldots & 1 & 0 & \ldots & 0 \\ 0 & 0 & \ldots & 0 & 0 & \ldots & 0 \\ \vdots & \vdots & & \vdots & \vdots & & \vdots \\ 0 & 0 & \ldots & 0 & 0 & \ldots & 0}. \end{align*} $$ where $r =$ $\op{rk}$$(\alpha)$.

Conversely, if for some $r'$ and bases $B', C'$ for $V, W$, $$ \begin{align*} [\alpha]^{B'}_{C'} = \pmat{I_{r'} & 0 \\ 0 & 0}, \end{align*} $$ then $r' = \op{rk}(\alpha)$.

Proof

Definition (column space, column rank, row space, row rank) open_in_new

Let $A \in M_{m\times n}(\mathbb{F})$.

  • The column space $\op{Col}(A)$ of $A$ is the subspace of $\mathbb{F}^m$ spanned by the columns of $A$.

  • The column rank of $A$ is $\op{c-rk}(A) = \dim(\op{Col}(A))$.

Similarly for row space $\op{Row}(A) \leq \mathbb{F}^n$ and row rank $\op{r-rk}(A)$.

Lemma (column rank of matrix product is at most column rank of each matrix) open_in_new

Let $A\in M_{n\times k}(\mathbb{F})$ and $B\in M_{k\times m}(\mathbb{F})$. Then $$ \begin{align*} \op{c-rk}(AB) \leq \min\set{\op{c-rk}(A), \op{c-rk}(B)}. \end{align*} $$

Proof

Theorem (matrices are equivalent iff column ranks equal) open_in_new

Let $A, A'\in M_{m\times n}(\mathbb{F})$.

$A$ is equivalent to $$ \begin{align*} \pmat{I_r & 0 \\ 0 & 0} \qquad \text{where } r = \op{c-rk}(A). \end{align*} $$

As a consequence, $A$ and $A'$ are equivalent iff $\op{c-rk}$$(A) = \op{c-rk}(A')$.

Proof

Theorem (row rank equals column rank) open_in_new

For any $A \in M_{m\times n}(\mathbb{F})$, we have $\op{r-rk}$$(A) =$ $\op{c-rk}$$(A).$

Proof

Definition (similar matrix) open_in_new

Let $A, A' \in M_{n\times n}(\mathbb{F})$.

$A$ and $A'$ are said to be similar if there exists $P\in \mathrm{GL}_n(\mathbb{F})$ such that $A' = PAP\inv$.

Elementary operations on matrices open_in_new

Definition (elementary matrices) open_in_new

There are three types of elementary matrices:

  1. identity with row $i$ and $j$ swapped $$ \begin{align*} T_{i,j} = \pmat{1 \\ &\ddots \\ && 0 && 1 \\ &&& \ddots \\ && 1 && 0 \\ &&&&&\ddots \\ &&&&&&1}, \end{align*} $$

  2. identity with the $i$-th diagonal entry replaced with $\lambda\neq 0$ $$ \begin{align*} E_{i,\lambda} = \pmat{1 \\ &\ddots \\ &&1 \\ &&&\lambda \\ &&&& 1 \\ &&&&& \ddots \\ &&&&&& 1}, \end{align*} $$

  3. identity with $\lambda$ in an off-diagonal entry $(i,j)$ $$ \begin{align*} C_{i,j,\lambda} = \pmat{1 \\ &\ddots \\ &&1 \\ &&& \ddots \\ &&\lambda &&1 \\ &&&&& \ddots \\ &&&&&& 1}. \end{align*} $$

Definition (elementary operations) open_in_new

Let $A\in M_{m\times n}(\mathbb{F})$. Write $\v c_i$ and $\v r_i$ to denote the $i$-th column and row.

There are three types of elementary column operations on $A$:

  1. Right multiply $T_{i,j}$, which swaps $\v c_i$ and $\v c_j$;

  2. Right multiply $E_{i,\lambda}$, which replaces $\v c_i$ by $\lambda \v c_i$ (where $0\neq \lambda\in \mathbb{F}$);

  3. Right multiply $C_{i,j,\lambda}$, which replaces $\v c_j$ by $\v c_j + \lambda\v c_i$ (where $i\neq j$).

There are three types of elementary row operations on $A$:

  1. Left multiply $T_{i,j}$, which swaps $\v r_i$ and $\v r_j$;

  2. Left multiply $E_{i,\lambda}$, which replaces $\v r_i$ by $\lambda \v r_i$ (where $0\neq \lambda\in \mathbb{F}$);

  3. Left multiply $C_{i,j,\lambda}$, which replaces $\v r_i$ by $\v r_i + \lambda\v r_j$ (where $i\neq j$).

(Note the different indices when left and right multiplying $C_{i,j,\lambda}$.)

  • Elementary matrices are invertible with elementary inverses.

  • Elementary row/column operations preserve the row/column space, and therefore the row/column ranks.

Definition (row and column-reduced echelon form) open_in_new

A matrix $A\in M_{m\times n}(\mathbb{F})$ is said to be in row-reduced echelon form if

  1. every non-zero row of $A$ appears above every zero row;

  2. in a non-zero row, the leftmost non-zero entry (the pivot entry) is 1;

  3. for two non-zero rows $\v r_i$ and $\v r_j$ where $i<j$, the pivot entry in $\v r_j$ is strictly to the right of that of $\v r_i$; and

  4. each pivot entry is the only non-zero entry in its column.

$A$ is said to be in column-reduced echelon form if $A^T$ is in row-reduced echelon form.

Lemma (rank of matrices in row-reduced echelon form) open_in_new

If a matrix $A$ is in row-reduced echelon form, then the row rank of $A$ is the number of non-zero rows.

Proof

Proposition (unique row-reduced echelon form) open_in_new

Every matrix can be put uniquely into row-reduced echelon form via elementary row operations.

Proof of existence

Theorem (equivalent conditions for invertible matrices) open_in_new

For $A\in M_{n\times n}(\mathbb{F})$, the following are equivalent:

  1. $\op{rk}$$(A) = n$;

  2. $A$ is a product of elementary matrices;

  3. $A$ is invertible.

  4. $A$ is non-singular, i.e. $\det(A)\neq 0$.

Proof

Gaussian elimination and elementary row operations open_in_new

For some $A\in M_{m\times n}(\mathbb{F})$ and $\v b\in \mathbb{F}^m$, to solve $$ \begin{align*} A\v x = \v b,\qquad \v x\in \mathbb{F}^n, \end{align*} $$

  1. form the augmented matrix $\big(\begin{array}{c|c}A & \v b\end{array}\big)$;

  2. put into row-reduced echelon form $\big(\begin{array}{c|c}A' & \v b'\end{array}\big)$ (and $A'$ is in row-reduced echelon form as well);

  3. then solve $A'\v x = \v b'$.

(Derivation)

Solution exists iff $$ \begin{align*} \v b \in \im(A) = \op{Col}(A) &\iff \op{rk}(A) = \op{rk}(\big(\begin{array}{c|c}A & \v b\end{array}\big)) \\ &\iff \op{rk}(A') = \op{rk}(\big(\begin{array}{c|c}A' & \v b'\end{array}\big)). \end{align*} $$

If $\v x_0$ is a solution, then the solution set is $\v x_0 + \ker(A)$. The solution is unique iff $$ \begin{align*} \ker(A) = \set{\v 0} &\iff \op{rk}(A) = n \\ &\iff A' = \pmat{I_n \\ 0}. \end{align*} $$

Determinant open_in_new

Definition (volume form) open_in_new

An $n$-dimensional volume form is a function $F: M_{n\times n}(\mathbb{F}) \to \mathbb{F}$ satisfying:

  1. multilinear in columns: for any $\v v_1, \ldots, \v v_n \in \mathbb{F}$, the function $$ \begin{align*} \mathbb{F}^n &\to \mathbb{F} \\ {\color{yellow}\v v} &\mapsto F\big(\pmat{\v v_1 & \ldots & \v v_{i-1} & {\color{yellow}\v v} & \v v_{i+1} & \ldots \v v_n}\big) \end{align*} $$ is a linear map for all $1\leq i\leq n$.

  2. alternating: if $A$ has two columns that are the same, then $F(A) = 0$.

Lemma (properties of volume forms) open_in_new

Let $A\in M_{n\times n}(\mathbb{F})$ and $F$ be an $n$-dimensional volume form on $M_{n\times n}(\mathbb{F})$.

  1. If $A$ has a zero column, then $F(A) = 0$.

  2. $F(A\cdot$ $T_{ij}$$) = -F(A)$.

  3. $F(A\cdot$ $M_{i,\lambda}$$) = \lambda F(A)$.

  4. $F(A\cdot$ $C_{i,j,\lambda}$$) = F(A)$.

Proof

Theorem (determinant as unique volume form) open_in_new

For each $n\in \N$, there is a unique $n$-dimensional volume form $\det$ on $M_{n\times n(\mathbb{F})}$ satisfying $F(I_n) = 1$, given by $$ \begin{align*} \det(A) = \sum_{\sigma\in S_n} \sign(\sigma) \prod_{i=1}^n a_{\sigma(i), i} \end{align*} $$ called the $n$-dimensional determinant. Here $S_n$ is the $n$-th symmetric group and $\sign: S_n \to (\set{\pm 1}, \cdot)$ is the sign homomorphism.

This is called Leibniz formula for determinants.

Proof

Lemma (determinant of transpose) open_in_new

For all $A\in M_{n\times n}(\mathbb{F})$, $\det$$(A^T) = \det(A)$.

Proof

Proposition (determinant of products) open_in_new

For all $A,B\in M_{n\times n}(\mathbb{F})$, $\det(AB) = \det(A) \det(B)$.

Proof

This shows that $\det(A\inv) = \det(A)\inv$ and similar matrices have equal determinants.

Definition (determinant of linear maps) open_in_new

Let $V$ be finite-dimensional vector space and $\alpha: V\to V$ be a linear map.

Define the determinant of $\alpha$ as $\det(\alpha) =$ $\det$$($$[A]^B_B$$)$, where $B$ is a basis for $V$.

$\det(\alpha)$ does not depend on the basis chosen. (Derivation)

Corollary (equivalent conditions for invertible linear maps) open_in_new

Let $V$ be a finite-dimensional vector space and $\alpha: V\to V$ be a linear map. The following are equivalent:

  1. $\op{rk}$$(\alpha) = \dim(V)$;

  2. $\alpha$ is invertible;

  3. $\alpha$ is non-singular, i.e. $\det$$(\alpha) \neq 0$.

Proof

Proposition (determinant of block-triangular matrix) open_in_new

Let $A\in M_{k\times k}(\mathbb{F})$ and $B\in M_{l\times l}(\mathbb{F})$. Then $$ \begin{align*} \det\pmat{A & * \\ 0 & B} = \det(A) \det(B). \end{align*} $$

Proof

By extension, for square matrices $A_1, \ldots, A_k$, $$ \begin{align*} \det\pmat{A_1 & * & \ldots & * \\ 0 & A_2 & \ldots & * \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \ldots & A_k} = \det(A_1) \det(A_2) \ldots \det(A_k). \end{align*} $$

Here $*$ means any block matrices of the right size.

Definition (minor) open_in_new

Let $A\in M_{m\times n}(\mathbb{F})$, $1\leq i\leq m$ and $1\leq j\leq n$.

The $(i,j)$-minor matrix $A_{\hat{ij}}\in M_{(m-1)\times(n-1)}(\mathbb{F})$ of $A$ is obtained from $A$ by deleting $i$ and column $j$.

Lemma (Laplace expansion) open_in_new

Let $A\in M_{n\times n}(\mathbb{F})$.

  1. For any fixed column $j$, $$ \begin{align*} \det(A) = \sum_{i=1}^{n} a_{ij} (-1)^{i+j} \det(A_{\hat{ij}}). \end{align*} $$

  2. For any fixed row $i$, $$ \begin{align*} \det(A) = \sum_{j=1}^{n} a_{ij} (-1)^{i+j} \det(A_{\hat{ij}}). \end{align*} $$

Proof

Definition (adjugate matrix) open_in_new

Let $A\in M_{n\times n}(\mathbb{F})$.

The adjugate matrix $\op{adj}(A) \in M_{n\times n}(\mathbb{F})$ is defined by $$ \begin{align*} \op{adj}(A)_{i,j} = (-1)^{i+j} \det(A_{\hat{ji}}). \end{align*} $$

Theorem (adjugate and inverses) open_in_new

Let $A \in M_{n\times n}(\mathbb{F})$.

  1. $A \op{adj}(A) = \op{adj}(A)\, A = \det(A) \, I_n$.

  2. If $A$ is invertible, the $A\inv = \frac{1}{\det(A)} \op{adj}(A)$.

Proof

Trace open_in_new

Definition (trace of a matrix) open_in_new

Let $A\in M_{n\times n}(\mathbb{F})$. The trace of $A$ is defined as $$ \begin{align*} \op{tr}(A) = \sum_{i=1}^{n} A_{i,i}. \end{align*} $$

  • $\op{tr} : M_{n\times n}(\mathbb{F}) \to \mathbb{F}$ is a linear map.

  • $\op{tr}(AB) = \op{tr}(BA)$. (Proof)

  • Similar matrices have equal trace. (Proof)

Definition (trace of a linear map) open_in_new

Let $V$ be a finite-dimensional vector space and $\alpha: V\to V$ be a linear map.

Define the trace of $\alpha$ as $\op{tr}(\alpha) =$ $\op{tr}$$($$[\alpha]^B_B$$)$.

This is independent of the choice of basis, since $[\alpha]^B_B$ and $[\alpha]^{B'}_{B'}$ are similar.