Homogeneous Linear Systems
Source inspiration: (Mathew 2000-2019).
Background
A homogeneous linear system has the form
\[ A\mathbf{x}=\mathbf{0}. \tag{1} \]
The vector \(\mathbf{x}=\mathbf{0}\) always solves (1), so every homogeneous system has at least the trivial solution.
A matrix is in reduced row echelon form (RREF) if:
- Every nonzero row has leading entry \(1\).
- Each leading \(1\) is the only nonzero entry in its column.
- Leading \(1\) positions move to the right as you move down rows.
- Any zero rows are grouped at the bottom.
The rank of a matrix \(A\), written \(\operatorname{rank}(A)\), is the number of nonzero rows in its RREF.
Because an augmented homogeneous matrix is
\[ M=[A\mid \mathbf{0}], \tag{2} \]
the last column is always zero, so
\[ \operatorname{rank}(A)=\operatorname{rank}(M). \tag{3} \]
For \(A\in\mathbb{R}^{n\times n}\):
\[ \operatorname{rank}(A)=n \Longleftrightarrow \text{the only solution is }\mathbf{x}=\mathbf{0}, \tag{4} \]
\[ \operatorname{rank}(A)<n \Longleftrightarrow \text{there are infinitely many nontrivial solutions}. \tag{5} \]
For square matrices, this is equivalent to:
\[ \det(A)\neq 0 \Rightarrow \text{unique trivial solution}, \qquad \det(A)=0 \Rightarrow \text{infinitely many solutions}. \tag{6} \]
Algorithm
- Form \([A\mid\mathbf{0}]\).
- Row reduce to RREF.
- Identify pivot variables and free variables.
- Express pivot variables in terms of free variables.
- Write the parametric vector form and verify by substitution into \(A\mathbf{x}=\mathbf{0}\).
Example 1 - Unique Trivial Solution
Solve
\[ \begin{aligned} x_1+x_2-2x_3&=0,\\ 3x_1+2x_2+4x_3&=0,\\ 4x_1+3x_2+3x_3&=0. \end{aligned} \]
Step 1: Build the coefficient matrix and row reduce.
\[ A= \begin{pmatrix} 1&1&-2\\ 3&2&4\\ 4&3&3 \end{pmatrix} \longrightarrow \operatorname{RREF}(A)=I_3. \]
Step 2: Read off solution.
\[ x_1=x_2=x_3=0, \qquad \mathbf{x}=\begin{pmatrix}0\\0\\0\end{pmatrix}. \]
Verification:
| Row | Substitution result | Target |
|---|---|---|
| 1 | \(0+0-2(0)=0\) | \(0\ \checkmark\) |
| 2 | \(3(0)+2(0)+4(0)=0\) | \(0\ \checkmark\) |
| 3 | \(4(0)+3(0)+3(0)=0\) | \(0\ \checkmark\) |
Since \(\det(A)=-1\neq0\), only the trivial solution exists.
Example 2 - One Free Variable
Solve
\[ \begin{aligned} x_1+x_2-2x_3&=0,\\ 3x_1+2x_2+4x_3&=0,\\ 4x_1+3x_2+2x_3&=0. \end{aligned} \]
Step 1: Row reduce.
\[ \operatorname{RREF}(A)= \begin{pmatrix} 1&0&8\\ 0&1&-10\\ 0&0&0 \end{pmatrix}. \]
So
\[ x_1+8x_3=0, \qquad x_2-10x_3=0. \]
Step 2: Let the free variable \(x_3=t\).
\[ x_1=-8t, \qquad x_2=10t, \qquad x_3=t. \]
Hence
\[ \mathbf{x}(t)=t \begin{pmatrix} -8\\10\\1 \end{pmatrix}, \qquad t\in\mathbb{R}. \]
Verification:
| Row | Substitution with \((-8t,10t,t)\) | Target |
|---|---|---|
| 1 | \(-8t+10t-2t=0\) | \(0\ \checkmark\) |
| 2 | \(3(-8t)+2(10t)+4t=0\) | \(0\ \checkmark\) |
| 3 | \(4(-8t)+3(10t)+2t=0\) | \(0\ \checkmark\) |
Example 3 - Two Free Variables
Solve
\[ \begin{aligned} 4x_1+3x_2+2x_3&=0,\\ 4x_1+3x_2+2x_3&=0,\\ 4x_1+3x_2+2x_3&=0. \end{aligned} \]
Step 1: Row reduce.
\[ \operatorname{RREF}(A)= \begin{pmatrix} 1&\tfrac34&\tfrac12\\ 0&0&0\\ 0&0&0 \end{pmatrix}. \]
So
\[ x_1+\tfrac34x_2+\tfrac12x_3=0. \]
Step 2: Let \(x_2=s\) and \(x_3=t\) be free.
\[ x_1=-\tfrac34 s-\tfrac12 t, \qquad x_2=s, \qquad x_3=t. \]
Parametric vector form:
\[ \mathbf{x}(s,t)= s\begin{pmatrix}-\tfrac34\\1\\0\end{pmatrix} + t\begin{pmatrix}-\tfrac12\\0\\1\end{pmatrix}. \]
Verification:
| Row | Substitution result | Target |
|---|---|---|
| 1 | \(4(-\tfrac34 s-\tfrac12 t)+3s+2t=0\) | \(0\ \checkmark\) |
| 2 | same as row 1 | \(0\ \checkmark\) |
| 3 | same as row 1 | \(0\ \checkmark\) |
Example 4 - A Free Variable Between Pivot Columns
Solve
\[ \begin{aligned} x_1+2x_2+3x_3+4x_4+3x_5&=0,\\ 2x_1+4x_2+6x_3+2x_4+6x_5&=0,\\ 3x_1+6x_2+18x_3+9x_4+9x_5&=0,\\ 4x_1+8x_2+12x_3+10x_4+12x_5&=0,\\ 5x_1+10x_2+24x_3+11x_4+15x_5&=0. \end{aligned} \]
Step 1: Subtract \(2,3,4,5\) times row 1 from rows 2 to 5.
\[ \begin{pmatrix} 1&2&3&4&3\\ 2&4&6&2&6\\ 3&6&18&9&9\\ 4&8&12&10&12\\ 5&10&24&11&15 \end{pmatrix} \longrightarrow \begin{pmatrix} 1&2&3&4&3\\ 0&0&0&-6&0\\ 0&0&9&-3&0\\ 0&0&0&-6&0\\ 0&0&9&-9&0 \end{pmatrix}. \]
Column 2 now has no nonzero entry below row 1, so it gets no pivot; the next pivot is in column 3.
Step 2: Finish the reduction.
\[ \operatorname{RREF}(A)= \begin{pmatrix} 1&2&0&0&3\\ 0&0&1&0&0\\ 0&0&0&1&0\\ 0&0&0&0&0\\ 0&0&0&0&0 \end{pmatrix}, \qquad \operatorname{rank}(A)=3, \qquad \det(A)=0. \]
So
\[ x_1+2x_2+3x_5=0, \qquad x_3=0, \qquad x_4=0. \]
Step 3: The pivots are in columns 1, 3 and 4, so \(x_2=s\) and \(x_5=t\) are free (\(5-3=2\) free variables).
\[ \mathbf{x}(s,t)= \begin{pmatrix}-2s-3t\\ s\\ 0\\ 0\\ t\end{pmatrix} = s\begin{pmatrix}-2\\1\\0\\0\\0\end{pmatrix} + t\begin{pmatrix}-3\\0\\0\\0\\1\end{pmatrix}. \]
Verification: with \(x_3=x_4=0\), row \(i\) reads \(c_i\,(x_1+2x_2+3x_5)\) for \(c_i=1,2,3,4,5\).
| Row | Substitution result | Target |
|---|---|---|
| 1 | \((-2s-3t)+2s+3t=0\) | \(0\ \checkmark\) |
| 2 | \(2(-2s-3t)+4s+6t=0\) | \(0\ \checkmark\) |
| 3 | \(3(-2s-3t)+6s+9t=0\) | \(0\ \checkmark\) |
| 4 | \(4(-2s-3t)+8s+12t=0\) | \(0\ \checkmark\) |
| 5 | \(5(-2s-3t)+10s+15t=0\) | \(0\ \checkmark\) |
When \(\operatorname{rank}(A)<n\), free variables are unavoidable. The solution set is a subspace (a line, plane, or higher-dimensional analogue through the origin), not a single point.
Application - Balancing Propane Combustion
Write
\[ x_1\,\mathrm{C_3H_8}+x_2\,\mathrm{O_2} \rightarrow x_3\,\mathrm{CO_2}+x_4\,\mathrm{H_2O}. \]
Atom-balance equations give the homogeneous system
\[ \begin{aligned} 3x_1-x_3&=0,\\ 8x_1-2x_4&=0,\\ 2x_2-2x_3-x_4&=0. \end{aligned} \]
From RREF,
\[ x_1=\tfrac14x_4, \qquad x_2=\tfrac54x_4, \qquad x_3=\tfrac34x_4. \]
Let \(x_4=t\):
\[ \mathbf{x}(t)= \begin{pmatrix} \tfrac14 t\\ \tfrac54 t\\ \tfrac34 t\\ t \end{pmatrix}. \]
Choose \(t=4\) for the smallest positive integers:
\[ (x_1,x_2,x_3,x_4)=(1,5,3,4). \]
Balanced equation:
\[ \mathrm{C_3H_8}+5\mathrm{O_2} \rightarrow 3\mathrm{CO_2}+4\mathrm{H_2O}. \]
Verification (atom counts):
| Element | Left side | Right side |
|---|---|---|
| C | \(3(1)=3\) | \(1(3)=3\ \checkmark\) |
| H | \(8(1)=8\) | \(2(4)=8\ \checkmark\) |
| O | \(2(5)=10\) | \(2(3)+1(4)=10\ \checkmark\) |
Summary
Homogeneous systems are classified by comparing the rank with the number of unknowns \(n\) (for square systems, the determinant gives the same test):
- \(\operatorname{rank}(A)=n\) gives only the trivial solution.
- \(\operatorname{rank}(A)<n\) gives \(n-\operatorname{rank}(A)\) free variables and infinitely many solutions. A system with fewer equations than unknowns always has \(\operatorname{rank}(A)<n\), so it always has nontrivial solutions; the propane system (\(3\) equations, \(4\) unknowns, rank \(3\)) is an example.
- RREF exposes the null-space basis directly, which is useful both in algebra and in applications such as chemical equation balancing.