Gaussian elimination and elementary row operations

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