Elementary operations on matrices
There are three types of elementary matrices:
-
identity with row $i$ and $j$ swapped $$ \begin{align*} T_{i,j} = \pmat{1 \\ &\ddots \\ && 0 && 1 \\ &&& \ddots \\ && 1 && 0 \\ &&&&&\ddots \\ &&&&&&1}, \end{align*} $$
-
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*} $$
-
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*} $$
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$:
-
Right multiply $T_{i,j}$, which swaps $\v c_i$ and $\v c_j$;
-
Right multiply $E_{i,\lambda}$, which replaces $\v c_i$ by $\lambda \v c_i$ (where $0\neq \lambda\in \mathbb{F}$);
-
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$:
-
Left multiply $T_{i,j}$, which swaps $\v r_i$ and $\v r_j$;
-
Left multiply $E_{i,\lambda}$, which replaces $\v r_i$ by $\lambda \v r_i$ (where $0\neq \lambda\in \mathbb{F}$);
-
Left multiply $C_{i,j,\lambda}$, which replaces $\v r_i$ by $\v r_i + \lambda\v r_j$ (where $i\neq j$).
-
Elementary matrices are invertible with elementary inverses.
-
Elementary row/column operations preserve the row/column space, and therefore the row/column ranks.
A matrix $A\in M_{m\times n}(\mathbb{F})$ is said to be in row-reduced echelon form if
-
every non-zero row of $A$ appears above every zero row;
-
in a non-zero row, the leftmost non-zero entry (the pivot entry) is 1;
-
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
-
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.
If a matrix $A$ is in row-reduced echelon form, then the row rank of $A$ is the number of non-zero rows.
Every matrix can be put uniquely into row-reduced echelon form via elementary row operations.
For $A\in M_{n\times n}(\mathbb{F})$, the following are equivalent:
-
$\op{rk}$$(A) = n$;
-
$A$ is a product of elementary matrices;
-
$A$ is invertible.
-
$A$ is non-singular, i.e. $\det(A)\neq 0$.
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*} $$
-
form the augmented matrix $\big(\begin{array}{c|c}A & \v b\end{array}\big)$;
-
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);
-
then solve $A'\v x = \v b'$.
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*} $$