# 15. Reduced echelon form

## 15. Reduced echelon form

### Definition

Definition:

A matrix is in reduced echelon form if:

• it's in echelon form,

• all its leading entries are equal to $1$ ,

• (*) in any column containing a leading entry, there are no other nonzero entries.

Consider the following matrices: $A=\begin{pmatrix}1&2&3\\ 0&1&2\\ 0&0&1\end{pmatrix},\qquad B=\begin{pmatrix}1&1\end{pmatrix},\qquad C=\begin{% pmatrix}1&0&1&1\\ 0&1&2&-1\end{pmatrix}$ $D=\begin{pmatrix}0&0&1&0\\ 0&0&2&0\end{pmatrix},\qquad E=\begin{pmatrix}3&0&1\\ 0&2&0\\ 0&0&0\end{pmatrix},\qquad F=\begin{pmatrix}0&1\\ 1&0\end{pmatrix}.$

• $A$ is in echelon form an its leading entries are all $1$ . However, condition (*) doesn't hold: for example column 2 contains a leading entry ($1$ ) and another nonzero entry (the $2$ above it).

• $B$ is in echelon form, its leading entry is $1$ and, in the column containing the leading entry, there are no other nonzero entries, so $B$ is in reduced echelon form.

• $C$ is in reduced echelon form.

• $D$ and $F$ are not even in echelon form.

• $E$ is in echelon form, but its leading entries are not $1$ , so it is not in reduced echelon form.

### Reason for the definition

Consider the augmented matrix $\begin{pmatrix}1&0&1&1&|&5\\ 0&1&2&-1&|&13\end{pmatrix}.$ This corresponds to the system of simultaneous equations: $w+y+z=5,\qquad x+2y-z=13$ . These are two equations in four variables, so the best we can hope for is to use the equations to express some of the variables (dependent variables) in terms of the rest (free variables). Then, for any value of the free variables, we get a solution (where the dependent variables are determined by the free variables and the equations).

We get $w=5-y-z$ and $x=13-2y+z$ , using $w,x$ as dependent variables and $y,z$ as free variables. Why did I pick $w,x$ as the dependent variables? If we had tried to use the first equation to express $y$ in terms of $w$ and $z$ , since $y$ appears in the second equation, we would need to substitute $y=5-w-z$ into the second equation to proceed. We didn't need to do that for $w$ or $x$ because $w$ only appeared in equation 1 and $x$ only appeared in equation 2. That is a consequence of condition (*): if we take our dependent variables to be the ones whose coefficients are the leading entries then they only appear in one of the equations.

### Another example

Consider the augmented matrix $\begin{pmatrix}1&2&0&1&|&1\\ 0&0&1&8&|&2\\ 0&0&0&0&|&0\end{pmatrix}$ . This corresponds to the equations: $w+2x+z=1,\qquad y+8z=2,\qquad 0=0.$ The third equation here is trivially satisfied, so we can ignore it. The dependent variables are $w$ and $y$ , as they have the leading entries as their coefficients. We get $w=1-2x-z,\qquad y=2-8z,$ with $x,z$ as free variables.

Note that $x$ also appears only in the first equation, so we could use $x$ as a dependent variable, but that's just luck: we're only guaranteed that the variables whose coefficients are leading entries will appear in precisely one equation.

Consider the augmented matrix $\begin{pmatrix}1&2&0&1&|&1\\ 0&0&1&8&|&2\\ 0&0&0&0&|&3\end{pmatrix}$ which differs from the previous one only in the very last entry. That corresponds to the system: $w+2x+z=1,\qquad y+8z=2,\qquad 0=3.$ The third equation here doesn't hold, which means there is no solution: even if you can find $w,x,y,z$ satisfying the first two equations, you'll never be able to solve the third.

### Strategy

Our strategy (which we'll see implemented in some examples next time) is as follows:

• given a system of equations, write down an augmented matrix;

• perform row operations on the augmented matrix until the part left of the bar is in reduced echelon form;

• read off from this whether solutions exist (they do unless one of the rows is $\begin{pmatrix}0&\cdots&0&|&b\end{pmatrix}$ for $b\neq 0$ );

• if solutions exist, write down the solution by finding the dependent variables in terms of the free variables.