→ Slide 1

Recap: $2\times 2$ inverses

↓ Slide 2

Using the inverse to solve a matrix equation

→ Slide 3

The transpose of a matrix

The transpose of an $n\times m$ matrix $A$ is the $m\times n$ matrix $A^T$ whose $(i,j)$ entry is the $(j,i)$ entry of $A$. In other words, to get $A^T$ from $A$, you write the rows of $A$ as columns, and vice versa; equivalently, you reflect $A$ in its main diagonal.

For example, $\def\mat#1{\begin{bmatrix}#1\end{bmatrix}}\mat{a&b\\c&d}^T=\mat{a&c\\b&d}$ and $\mat{1&2&3\\4&5&6}^T=\mat{1&4\\2&5\\3&6}$.

↓ Slide 4

Simple properties of the transpose

↓ Slide 5

Lemma: transposes and row-column multiplication

If $a$ is a $1\times m$ row vector and $b$ is an $m\times 1$ column vector, then \[ ab=b^Ta^T.\]

↓ Slide 6

Observation: the transpose swaps rows with columns

Formally, for any matrix $A$ and any $i,j$, we have \begin{align*}\def\col#1{\text{col}_{#1}}\def\row#1{\text{row}_{#1}} \row i(A^T)&=\col i(A)^T\\\col j(A^T)&=\row j(A)^T .\end{align*}

↓ Slide 7

Theorem: the transpose reverses the order of matrix multiplication

If $A$, $B$ are matrices and the matrix product $AB$ is defined, then $B^TA^T$ is also defined, and $(AB)^T=B^TA^T$.

Proof

→ Slide 8

$n\times n$ determinants

For $A$: $n\times n$ we'll define a number $\det(A)$ so that \[ A\text{ is invertible} \iff \det(A)\ne0.\]

  1. If $A=[a]$ is a $1\times 1$ matrix, then $\det[a]=a$.
  2. If $A=\def\mat#1{\left[\begin{smallmatrix}#1\end{smallmatrix}\right]}\mat{a&b\\c&d}$ is a $2\times2$ matrix, then $\det(A)=ad-bc$.
  3. If $A=\mat{a&b&c\\d&e&f\\g&h&i}$ is a $3\times 3$ matrix, then it turns out that $\det(A)=aei-afh+bfg-bdi+cdh-ceg$.
  4. If $A$ is $4\times 4$, the formula for $\det(A)$ has $24$ terms.
  5. If $A$ is $5\times 5$, the formula for $\det(A)$ has $120$ terms.
  6. etc
  1. Define the minors of a matrix
  2. Use minors to define the cofactors of a matrix
  3. Use cofactors to find the determinant of a $3\times 3$ matrix
  4. Use cofactors to find the determinant of an $n\times n$ matrix
↓ Slide 9

Step 1: minors

If $A$ is an $n\times n$ matrix, then the $(i,j)$ minor of $A$ is defined to be the determinant of the $(n-1)\times (n-1)$ matrix formed by removing row $i$ and column $j$ from $A$. We will write this number as $M_{ij}$.

↓ Slide 10

Examples of minors (1)

Short version: to find $M_{ij}$: delete the row and col containing $(i,j)$ entry, then take determinant.

Example: for $A=\mat{3&5\\-4&7}$:

↓ Slide 11

Examples of minors (2)

Short version: to find $M_{ij}$: delete the row and col containing $(i,j)$ entry, then take determinant.

Example: for $A=\mat{1&2&3\\7&8&9\\11&12&13}$:

↓ Slide 12

Step 2: cofactors

The $(i,j)$ cofactor of an $n\times n$ matrix $A$ is $(-1)^{i+j}M_{ij}$, where $M_{ij}$ is the (i,j) minor of $A$.

Note that $(-1)^{i+j}$ is $+1$ or $-1$, and can looked up in the matrix of signs: $\mat{+&-&+&-&\dots\\-&+&-&+&\dots\\+&-&+&-&\dots\\\vdots&\vdots&\vdots&\vdots&\ddots}$. This matrix starts with a $+$ in the $(1,1)$ entry (corresponding to $(-1)^{1+1}=(-1)^2=+1$) and the signs then alternate.

↓ Slide 13

Examples of cofactors (1)

Short version: minors with sign changes $\mat{+&-&+&-&\dots\\-&+&-&+&\dots\\+&-&+&-&\dots\\\vdots&\vdots&\vdots&\vdots&\ddots}$

If $A=\mat{3&5\\-4&7}$, then

↓ Slide 14

Examples of cofactors (2)

Short version: minors with sign changes $\mat{+&-&+&-&\dots\\-&+&-&+&\dots\\+&-&+&-&\dots\\\vdots&\vdots&\vdots&\vdots&\ddots}$

If $A=\mat{1&2&3\\7&8&9\\11&12&13}$, then

↓ Slide 15

Step 3: the determinant of a $3\times 3$ matrix

If $A=\mat{a_{11}&a_{12}&a_{13}\\a_{21}&a_{22}&a_{23}\\a_{31}&a_{32}&a_{33}}$ is a $3\times 3$ matrix, then \[\det A=a_{11}C_{11}+a_{12}C_{12}+a_{13}C_{13}.\] Here $C_{ij}$ are the cofactors of $A$.

↓ Slide 16

Example

Short version: sum along first row of (entries $\times$ cofactors)

↓ Slide 17

Notation

↓ Slide 18

Step 4: the determinant of an $n\times n$ matrix

If $A$ is an $n\times n$ matrix, then \[\det A=a_{11}C_{11}+a_{12}C_{12}+\dots+a_{1n}C_{1n}.\] Here $C_{ij}$ are the cofactors of $A$.

↓ Slide 19

Example

\begin{align*} \def\vm#1{\left|\begin{smallmatrix}#1\end{smallmatrix}\right|} \vm{\color{red}1&\color{red}0&\color{red}2&\color{red}3\\0&2&1&-1\\2&0&0&1\\3&0&4&2} &= \color{red}1\vm{\color{blue}2&\color{blue}1&\color{blue}-1\\0&0&1\\0&4&2}-\color{red}0\vm{0&1&-1\\2&0&1\\3&4&2}+\color{red}2\vm{\color{orange}0&\color{orange}2&\color{orange}{-1}\\2&0&1\\3&0&2}-\color{red}3\vm{\color{purple}0&\color{purple}2&\color{purple}1\\2&0&0\\3&0&4} \\&= 1\left(\color{blue}2\vm{0&1\\4&2}-\color{blue}1\vm{0&1\\0&2}\color{blue}{-1}\vm{0&0\\0&4}\right) \\&\quad -0+2\left(\color{orange}0-\color{orange}{2}\vm{2&1\\3&2}\color{orange}{-1}\vm{2&0\\3&0}\right) \\&\quad -3\left(\color{purple}0-\color{purple}2\vm{2&0\\3&4}+\color{purple}1\vm{2&0\\3&0}\right) \\&=1(2(-4)-0-0)+2(-2(1)-0)-3(-2(8)+0) \\&=-8-4+48\\ &=36. \end{align*}