Mehmet Emre Tiryaki
Back to Notes

Matrix Basics

Span and Basis

Span{v1,…,vn}={a1v1+⋯+anvn∣ai∈F}\mathrm{Span}\{v_1, \ldots, v_n\} = \{a_1 v_1 + \cdots + a_n v_n \mid a_i \in \mathbb{F}\}

v1,…,vnv_1, \ldots, v_n is a basis of VV when

  1. the viv_i are linearly independent,
  2. Span{vi}=V\mathrm{Span}\{v_i\} = V.

If viv_i is a basis of VV, then every v∈Vv \in V has unique ci∈Fc_i \in \mathbb{F} with v=c1v1+⋯+cnvnv = c_1 v_1 + \cdots + c_n v_n. If v=∑civi=∑ci′viv = \sum c_i v_i = \sum c'_i v_i, subtracting gives

0⃗=(c1−c1′)v1+⋯+(cn−cn′)vn\vec{0} = (c_1 - c'_1) v_1 + \cdots + (c_n - c'_n) v_n

so ci=ci′c_i = c'_i by linear independence.

Linear Maps

f:V→Wf : V \to W is linear when

f(αv+βu)=αf(v)+βf(u)f(\alpha v + \beta u) = \alpha f(v) + \beta f(u)

Any linear f:Fn→Fmf : \mathbb{F}^n \to \mathbb{F}^m is a matrix, namely

A=[ f(e1)∣⋯∣f(en) ]A = [\, f(e_1) \mid \cdots \mid f(e_n) \,]

Nullspace and Range

null(A)={x∈Fn:Ax=0⃗},range(A)={Ax:x∈Fn}\mathrm{null}(A) = \{x \in \mathbb{F}^n : Ax = \vec{0}\}, \qquad \mathrm{range}(A) = \{Ax : x \in \mathbb{F}^n\} nullity(A)=dim⁡(null(A)),rank(A)=dim⁡(range(A))\mathrm{nullity}(A) = \dim(\mathrm{null}(A)), \qquad \mathrm{rank}(A) = \dim(\mathrm{range}(A))

Columns of AA are linearly independent   ⟺  \iff null(A)={0}\mathrm{null}(A) = \{0\}   ⟺  \iff AA is one-to-one. This is clear from writing AxAx as a combination of the columns,

Ax=[A1∣A2∣⋯∣An][x1⋮xn]=x1A1+⋯+xnAnAx = [A_1 | A_2 | \cdots | A_n] \begin{bmatrix} x_1 \\ \vdots \\ x_n \end{bmatrix} = x_1 A_1 + \cdots + x_n A_n

RREF

A matrix is in reduced row echelon form when

  1. the leading entry in every row is 1,
  2. each pivot is the only nonzero entry in its column,
  3. pivots move to the right going down, and zero rows are at the bottom.

For invertible A∈Mn(F)A \in M_n(\mathbb{F}), row reduction solves several systems at once,

[A∣b]∼[I∣d],[A∣b∣b′]∼[I∣d∣d′][A|b] \sim [I|d], \qquad [A|b|b'] \sim [I|d|d']

where Ad=bAd = b and Ad′=b′Ad' = b'.

Determinant

det⁡A:=∑σsign(σ)∏i=1nAi,σ(i)\det A := \sum_{\sigma} \mathrm{sign}(\sigma) \prod_{i=1}^{n} A_{i,\sigma(i)}

where the sum is over all bijections σ:{1,…,n}→{1,…,n}\sigma : \{1, \ldots, n\} \to \{1, \ldots, n\}. Also det⁡AB=det⁡Adet⁡B\det AB = \det A \det B.

Effects of row operations on det⁡A\det A:

  1. swapping two rows multiplies it by −1-1,
  2. multiplying a row by cc multiplies it by cc,
  3. adding a multiple of one row to another doesn't change it.

Matrix Product and Permutation Matrices

(AB)ij=∑k=1nAikBkj(AB)_{ij} = \sum_{k=1}^{n} A_{ik} B_{kj}

A permutation matrix has exactly one 1 in every row and every column, and zeros elsewhere. PAPA permutes the rows of AA and APTAP^T permutes the columns.

Inverse

BB is the inverse of AA when AB=BA=IAB = BA = I. For A∈MnA \in M_n the following are equivalent

  1. there is BB with AB=BA=IAB = BA = I,
  2. det⁡A≠0\det A \neq 0   ⟺  \iff RREF(A)=I\mathrm{RREF}(A) = I,
  3. ker⁡A={0}\ker A = \{0\}   ⟺  \iff columns of AA are linearly independent   ⟺  \iff AA is one-to-one,
  4. rank A=n\mathrm{rank}\, A = n   ⟺  \iff columns of AA span Fn\mathbb{F}^n   ⟺  \iff AA is onto.

Proof

(1⇒2)(1 \Rightarrow 2) AB=I⇒det⁡Adet⁡B=1⇒det⁡A≠0AB = I \Rightarrow \det A \det B = 1 \Rightarrow \det A \neq 0.

(2⇒1)(2 \Rightarrow 1) Row operations only multiply the determinant by nonzero constants, so det⁡A=cdet⁡(RREF(A))\det A = c \det(\mathrm{RREF}(A)) with c≠0c \neq 0. A square RREF with nonzero determinant has no zero rows, so RREF(A)=I\mathrm{RREF}(A) = I. Row reducing [A∣I]∼[I∣B][A|I] \sim [I|B] means EA=IEA = I and E=BE = B for a product EE of elementary matrices, so BA=IBA = I, and since EE is invertible also AB=IAB = I.

(1⇒3)(1 \Rightarrow 3) Ax=0⇒BAx=B0⇒x=0Ax = 0 \Rightarrow BAx = B0 \Rightarrow x = 0.

(3,4⇒1)(3, 4 \Rightarrow 1) AA is one-to-one and onto, so there is an inverse map BB, which is linear. ABx=xABx = x and BAx=xBAx = x for all xx, so AB=BA=IAB = BA = I.

Similarity

A,BA, B are similar when A=SBS−1A = SBS^{-1} for some invertible SS. Similarity is an equivalence relation.