Elementary operations on matrices

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}$.)

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*} $$