Skip to main content

Section 1.1 Gauss-Jordan Elimination

Subsection 1.1.1 Dependent and independent systems

Definition 1.1.1. Dependent system of linear equations.

A dependent system of equations has infinitely many solutions. This is characterized by having one or more free variables.

\begin{equation*} \, \end{equation*}
Definition 1.1.2. Independent system of linear equations.

An independent system of equations has a unique solution.

\begin{equation*} \, \end{equation*}
Insight 1.1.3. Updated summary of classification of systems of linear equations.

Once we obtained the RREF of the augmented matrix of a system, we can conclude -without explicitly solving the system- whether it has no solution, infinitely many solutions or unique solution. We do this by looking at the rows and leading ones in the RREF of the augmented matrix:

  • If there is a row with all zeros except the last entry, this implies the system has no solution.

  • If the number of leading ones is less than the number of variables in the system, the system has infinitely many solutions.

  • If the number of leading ones is equal to the number of variables in the system, the system has unique solution.

Given the RREF matrix, find the solution to the system of equations it represents.

\begin{equation*} \left[ \begin{array}{ccccc} 1 \amp 2 \amp 0 \amp 1 \amp 0 \amp 3\\ 0 \amp 0 \amp 1 \amp 3 \amp 0 \amp -1\\ 0 \amp 0 \amp 0 \amp 0 \amp 1 \amp -4\\ 0 \amp 0 \amp 0 \amp 0 \amp 0 \amp 0\\ \end{array}\right] \end{equation*}

Since the matrix has 5 columns, the corresponding system of equations has 4 variables (4 variables + 1 independent vector = 5). Then the system represented by the matrix is

\begin{equation*} \begin{array}{rcl} x_1 + 2x_2 + x_4 = \hspace{0.4cm} 3 \amp \hspace{1cm} \Rightarrow \hspace{1cm} \amp x_1 = 3 - 2x_2 - x_4 \\ x_3 + 3x_4 = -1 \amp \hspace{1cm} \Rightarrow \hspace{1cm} \amp x_3 = -1 - 3x_4\\ x_5 = -4 \amp \hspace{1cm} \Rightarrow \hspace{1cm} \amp x_5 = -4 \end{array} \end{equation*}

The solution is

\begin{equation*} \begin{array}{rcl} x_1 \amp = \amp 3 - 2r - s \\ x_2 \amp = \amp r\\ x_3 \amp = \amp -1 - 3s\\ x_4 \amp = \amp s\\ x_5 \amp = \amp -4 \end{array} \end{equation*}

This system has infinetely many solutions since both \(r \) and \(s \) can be any real number. We call this a dependent system.

Let \(\boldsymbol{A} = \begin{array}{lrrrrrr} \lceil \amp 1 \amp 0 \amp {-1} \amp 0 \amp {5} \amp \rceil \\ \vert \amp 0 \amp 1 \amp {2} \amp 0 \amp {8} \amp \vert\\ \vert \amp 0 \amp 0 \amp 0 \amp 1 \amp {7} \amp \vert\\ \lfloor \amp 0 \amp 0 \amp 0 \amp 0 \amp 0 \amp \rfloor \end{array}\)

\begin{equation*} \, \end{equation*}

Is the matrix in row echelon form (REF)?

  • Yes

  • No

\begin{equation*} \, \end{equation*}

Is the matrix in reduced row echelon form (RREF)?

  • Yes

  • No

\begin{equation*} \, \end{equation*}

If this matrix were the augmented matrix for a system of linear equations, would the system be inconsistent, dependent, or independent?

  • Inconsistent

  • Dependent

  • Independent

\begin{equation*} \, \end{equation*}
Answer 1

\(\text{Yes}\)

Answer 2

\(\text{Yes}\)

Answer 3

\(\text{Dependent}\)

Solution

The corresponding system for the reduced matrix is

\begin{equation*} \begin{array}{ccccccccc} x_1 \amp \amp \amp - \amp {1}x_3 \amp \amp \amp = \amp {5} \\ \amp \amp x_2\amp + \amp {2}x_3 \amp \amp \amp = \amp {8} \\ \amp \amp \amp \amp \amp \amp x_4\amp = \amp {7} \\ \end{array} \end{equation*}

The solution is then,

\begin{equation*} \begin{array}{ccc} x_1 \amp = \amp {5} + {1}s\\ x_2 \amp = \amp {8} - {2}s\\ x_3 \amp = \amp s\\ x_4 \amp = \amp {7}\\ \end{array} \end{equation*}

Since \(s\) can be any real number, the system has infinitely many solutions, which means the system is dependent.

\begin{equation*} \end{equation*}

Another way to see this is by comparing the number of leading ones to the number of variables. The system has 4 variables but the augmented matrix has only 3 leading ones, this implies that there will be 1 free variable, and since that free variable can take any value, the system has infinitely many solutions.

Without explicitly solving the system and based on the RREF of the augmented matrix of a system, determine if the system has no solution (inconsistent), unique solution (independent) or infinitely many solutions (dependent).

\begin{equation*} \, \end{equation*}
\begin{equation*} \begin{array}{lrrrrr} \lceil \amp 1 \amp 0 \amp 0 \amp {2} \amp \rceil\\ \vert \amp 0 \amp 1 \amp 0 \amp {5} \amp \vert \\ \lfloor \amp 0 \amp 0 \amp 0 \amp 0 \amp \rfloor \end{array} \end{equation*}

\(\,\)

  • Inconsistent

  • Dependent

  • Independent

\begin{equation*} \, \end{equation*}
\begin{equation*} \begin{array}{lrrrrrr} \lceil \amp 1 \amp 0 \amp 0 \amp 0\amp {5} \amp \rceil \\ \vert \amp 0 \amp 1 \amp 0 \amp 0 \amp {8} \amp \vert\\ \vert \amp 0 \amp 0 \amp 1 \amp 0 \amp {8} \amp \vert\\ \lfloor \amp 0 \amp 0 \amp 0 \amp 0 \amp {4} \amp \rfloor \end{array} \end{equation*}

\(\,\)

  • Inconsistent

  • Dependent

  • Independent

\begin{equation*} \, \end{equation*}
\begin{equation*} \begin{array}{lrrrrr} \lceil \amp 1 \amp 0 \amp 0 \amp {1} \amp \rceil\\ \vert \amp 0 \amp 1 \amp 0 \amp {3} \amp \vert \\ \lfloor \amp 0 \amp 0 \amp 1 \amp {-1} \amp \rfloor \end{array} \end{equation*}

\(\,\)

  • Inconsistent

  • Dependent

  • Independent

Answer 1

\(\text{Dependent}\)

Answer 2

\(\text{Inconsistent}\)

Answer 3

\(\text{Independent}\)

Solution
  • For the first matrix, the system has 3 variables (4 columns in the augmented matrix) and the RREF only has 3 leading ones (last row is all zeros). This means that only two variables will be defined and the third one can be anything. The system has infinitely many solutions, which makes it a dependent system.

  • For the second matrix, the last row suggests \(0 = {4},\) which is obviously not possible. The system has no solution, which makes it an inconsistent system.

  • The system has 3 variables and there are 3 leading ones, which means each variable gets a value. The system is independent since it has unique solution \(\left( x_1 = {1}, x_2 = {3}, x_3 = {-1}\right)\text{.}\)

Subsection 1.1.2 Solving systems of equations: Gauss-Jordan method

Definition 1.1.7. Gauss-Jordan elimination.

Gauss-Jordan elimination is used to find the solution -if it exists- of a system of linear equations. Solutions to the system are obtained by performing elementary row operations ([cross-reference to target(s) "ERO" missing or not unique]) to the augmented matrix of the system. These operations are applied until that matrix is in reduced echelon form ([cross-reference to target(s) "RREF" missing or not unique]).

Solving a system of linear equations using Gauss-Jordan elimination includes:

  1. Find the augmented matrix of the system
  2. Reduced the augmented matrix to RREF
  3. Determine the system of equations represented by the new RREF matrix
  4. Solve the system

Solve the following system of equations,

\begin{equation*} \left\{ \begin{array}{ccccccc} 4x_1 \amp + \amp 2x_2 \amp \amp \amp = \amp -6\\ x_1 \amp + \amp 5x_2 \amp - \amp 2x_3 \amp = \amp 6\\ 3x_1 \amp + \amp 3x_2 \amp - \amp 4x_3 \amp = \amp 0\\ \end{array}\right. \end{equation*}
\begin{equation*} \, \end{equation*}
  1. Find the augmented matrix of the system
\begin{equation*} \left[ \begin{array}{ccc|c} 4 \amp 2 \amp 0 \amp -6\\ 1 \amp 5 \amp -2 \amp 6\\ 3 \amp 3 \amp -4\amp 0\\ \end{array}\right] \end{equation*}
\begin{equation*} \, \end{equation*}

\(\hspace{0.55cm} \) 2. \(\hspace{0.03cm} \) Reduced the augmented matrix to RREF (see detailed operations in video below)

\begin{equation*} \left[ \begin{array}{ccc|c} 4 \amp 2 \amp 0 \amp -6\\ 1 \amp 5 \amp -2 \amp 6\\ 3 \amp 3 \amp -4\amp 0\\ \end{array}\right] \end{equation*}
\begin{equation*} R_1 \leftrightarrow R_2 \left[ \begin{array}{ccc|c} \color{red}{1} \amp 5 \amp -2 \amp 6\\ 4 \amp 2 \amp 0 \amp -6\\ 3 \amp 3 \amp -4\amp 0\\ \end{array}\right] \begin{array}{lcl} R_2 \amp \rightarrow\amp R_2 - 4R_1\\ R_3 \amp \rightarrow\amp R_3 - 3R_1\\ \end{array} \left[ \begin{array}{ccc|c} 1 \amp 5 \amp -2 \amp 6\\ \color{red}{0} \amp -18 \amp 8 \amp -30\\ \color{red}{0} \amp -12 \amp 2\amp -18\\ \end{array}\right] \end{equation*}
\begin{equation*} R_2 \rightarrow \frac{R_2 }{-18} \left[ \begin{array}{ccc|c} 1 \amp 5 \amp -2 \amp 6\\ 0 \amp \color{red}{1} \amp -\frac{4}{9} \amp \frac{5}{3}\\ 0 \amp -12 \amp 2\amp -18\\ \end{array}\right] \begin{array}{lcl} R_1 \amp \rightarrow\amp R_1 - 5R_2\\ R_3 \amp \rightarrow\amp R_3 - 12R_2\\ \end{array} \left[ \begin{array}{ccc|c} 1 \amp \color{red}{0} \amp \frac{2}{9} \amp \frac{7}{3}\\ 0 \amp 1 \amp -\frac{4}{9} \amp \frac{5}{3}\\ 0 \amp \color{red}{0} \amp - \frac{10}{3}\amp 2\\ \end{array}\right] \end{equation*}
\begin{equation*} R_3 \rightarrow -\frac{3}{10}R_3 \left[ \begin{array}{ccc|c} 1 \amp 0 \amp \frac{2}{9} \amp \frac{7}{3}\\ 0 \amp 1 \amp -\frac{4}{9} \amp \frac{5}{3}\\ 0 \amp 0 \amp \color{red}{1}\amp - \frac{3}{5}\\ \end{array}\right] \begin{array}{lcl} R_1 \amp \rightarrow\amp R_1 - \frac{2}{9}R_3\\ R_2 \amp \rightarrow\amp R_2 + \frac{4}{9}R_3\\ \end{array} \left[ \begin{array}{ccc|c} 1 \amp 0 \amp \color{red}{0} \amp -\frac{11}{5}\\ 0 \amp 1 \amp \color{red}{0} \amp \frac{7}{5}\\ 0 \amp 0 \amp 1\amp -\frac{3}{5}\\ \end{array}\right] \end{equation*}
\begin{equation*} \, \end{equation*}
\begin{equation*} \, \end{equation*}

\(\hspace{0.55cm} \) 3. \(\hspace{0.03cm} \) Determine the system of equations for new RREF matrix

\begin{equation*} \left[ \begin{array}{ccc|c} 1 \amp 0 \amp 0 \amp -\frac{11}{5}\\ 0 \amp 1 \amp 0 \amp \frac{7}{5}\\ 0 \amp 0 \amp 1\amp -\frac{3}{5}\\ \end{array}\right] \hspace{0.1cm} \Rightarrow \left\{ \begin{array}{ccccccc} \hspace{0.1cm} x_1 \amp \amp \amp \amp \amp = \amp-\frac{11}{5} \\ \amp \amp x_2 \amp \amp \amp = \amp \frac{7}{5}\\ \amp \amp \amp \amp x_3 \amp = \amp -\frac{3}{5}\\ \end{array}\right. \end{equation*}
\begin{equation*} \, \end{equation*}

\(\hspace{0.55cm} \) 3. \(\hspace{0.03cm} \) Solve system

\begin{equation*} \begin{array}{ccc} x_1 \amp = \amp -\frac{11}{5}\\ x_2 \amp = \amp \frac{7}{5}\\ x_3 \amp = \amp -\frac{3}{5}\\ \end{array} \end{equation*}

Use Gauss-Jordan elimination to solve the system

\begin{equation*} \begin{array}{rrrrrcr} {-1} x_1 \amp + \amp {3} x_2 \amp - \amp {2} x_3 \amp = \amp {-2}\\ {1} x_1 \amp + \amp {1} x_2 \amp + \amp {2} x_3 \amp = \amp {-14}\\ {0} x_1 \amp + \amp {1} x_2 \amp - \amp {2} x_3 \amp = \amp {4}\\ \end{array} \end{equation*}

The reduced row echelon form of the augmented matrix is

\(\,\) \(\lceil\)



\(\rceil\)
\(A_{\text{RREF}} =\) \(\vert\)



\(\vert\)
\(\,\) \(\lfloor\)



\(\rfloor\)
\(\,\) \(\,\) \(\,\)

\(\,\)

The solution of the system is

\(x_1 =\)
\(x_2 =\)
\(x_3 =\)

\(\,\)

Answer 1

\(1\)

Answer 2

\(0\)

Answer 3

\(0\)

Answer 4

\(-2\)

Answer 5

\(0\)

Answer 6

\(1\)

Answer 7

\(0\)

Answer 8

\(-4\)

Answer 9

\(0\)

Answer 10

\(0\)

Answer 11

\(0\)

Answer 12

\(-4\)

Answer 13

\(-2\)

Answer 14

\(-4\)

Answer 15

\(-4\)

Solution
\begin{equation*} A_{\text{RREF}} = \left[ \begin{array}{cccc} 1\amp 0 \amp 0 \amp {-2}\\ 0\amp 1 \amp 0 \amp {-4}\\ 0\amp 0 \amp 1 \amp {-4}\\ \end{array}\right] \end{equation*}
\begin{equation*} \begin{array}{ccc} x_1 \amp = \amp {-2}\\ x_2 \amp = \amp {-4}\\ x_3 \amp = \amp {-4}\\ \end{array} \end{equation*}

Subsection 1.1.3 Homework

Link to webwork: HW 1.3