Tutorials › Linear Algebra › Homogeneous Systems and Unique Solutions

Elementary Matrices and Inverses · Tutorial 100 of 1000

Homogeneous Systems and Unique Solutions

Learn how the zero-solution test for a homogeneous system identifies invertibility and guarantees a unique solution for every right-hand side.

Beginner 10 min read

What You'll Learn

  • Define homogeneous systems and distinguish uniqueness from existence.
  • Prove the equivalence between invertibility and a trivial homogeneous solution.
  • Connect invertibility to exactly one solution for every right-hand side.
  • Describe all solutions of a consistent system using a particular solution and the null space.
  • Recognize how a nonzero homogeneous solution creates multiple solutions when a system is consistent.
  • Avoid confusing the solution sets for different right-hand sides.

Why the Homogeneous System Matters

A square matrix can be tested for invertibility by examining a system with zero on the right-hand side. The connection is useful because the homogeneous system has an immediate solution, \(\mathbf{x}=\mathbf{0}\), and the question becomes whether any other solution is possible. For square matrices, having no other solution is not merely a statement about one system: it guarantees that every right-hand side produces exactly one solution.

Throughout, let \(n\in\mathbb{N}\), let \(\mathbf{A}\in\mathbb{R}^{n\times n}\), and let \(\mathbf{b},\mathbf{x}\in\mathbb{R}^n\) be column vectors. A system \(\mathbf{A}\mathbf{x}=\mathbf{b}\) is homogeneous when \(\mathbf{b}=\mathbf{0}\). It is consistent when it has at least one solution. A matrix \(\mathbf{A}\) is invertible if there is a matrix \(\mathbf{A}^{-1}\) such that \(\mathbf{A}\mathbf{A}^{-1}=\mathbf{A}^{-1}\mathbf{A}=\mathbf{I}_n\).

Theorem: For a square matrix \(\mathbf{A}\in\mathbb{R}^{n\times n}\), these statements are equivalent: (1) \(\mathbf{A}\) is invertible; (2) the homogeneous system \(\mathbf{A}\mathbf{x}=\mathbf{0}\) has only the solution \(\mathbf{x}=\mathbf{0}\); (3) for every \(\mathbf{b}\in\mathbb{R}^n\), the system \(\mathbf{A}\mathbf{x}=\mathbf{b}\) has exactly one solution.

Proof. First suppose that \(\mathbf{A}\) is invertible. If \(\mathbf{A}\mathbf{x}=\mathbf{0}\), multiply both sides on the left by \(\mathbf{A}^{-1}\). Then \(\mathbf{x}=\mathbf{A}^{-1}\mathbf{0}=\mathbf{0}\), so (2) holds. Also, for any \(\mathbf{b}\in\mathbb{R}^n\), the vector \(\mathbf{x}=\mathbf{A}^{-1}\mathbf{b}\) satisfies \(\mathbf{A}\mathbf{x}=\mathbf{A}\mathbf{A}^{-1}\mathbf{b}=\mathbf{b}\). If \(\mathbf{y}\) is another solution, then \(\mathbf{A}\mathbf{y}=\mathbf{b}\); multiplying by \(\mathbf{A}^{-1}\) gives \(\mathbf{y}=\mathbf{A}^{-1}\mathbf{b}=\mathbf{x}\). Thus (3) holds.

Now suppose (2) holds. Row reduction preserves the solutions of the homogeneous system. If the reduced row echelon form of \(\mathbf{A}\) had a column without a pivot, the variable for that column would be free; assigning it a nonzero value and the other free variables zero would give a nonzero solution. Therefore every column has a pivot. Since \(\mathbf{A}\) is \(n\times n\), its reduced row echelon form is \(\mathbf{I}_n\). Each row operation is left multiplication by an invertible elementary matrix, so a product \(\mathbf{E}\) of these matrices satisfies \(\mathbf{E}\mathbf{A}=\mathbf{I}_n\). Hence \(\mathbf{A}=\mathbf{E}^{-1}\), which is invertible. This proves (2) implies (1). Finally, if (3) holds, take \(\mathbf{b}=\mathbf{0}\). The zero vector is a solution, and uniqueness says it is the only solution, so (2) holds. These implications establish the equivalence. \(\square\)

The square-matrix condition matters in the proof: \(n\) columns with a pivot in every column yield the identity after reduction because there are also \(n\) rows. The theorem does not assert the same equivalence for a rectangular matrix. For a particular \(\mathbf{b}\), the equation might have no solution, one solution, or many; the theorem’s third statement requires exactly one solution for every right-hand side.

Testing the Homogeneous System in Practice

Worked Example: A Trivial Homogeneous Solution

Consider \(\mathbf{A}=\begin{bmatrix}2&1\\1&1\end{bmatrix}\). Determine whether the homogeneous system has only the zero solution, then solve \(\mathbf{A}\mathbf{x}=\begin{bmatrix}5\\3\end{bmatrix}\).

First row-reduce the coefficient matrix. Swap the rows, eliminate the entry below the first pivot, scale the second row, and clear above its pivot:

$$ \begin{bmatrix}2&1\\1&1\end{bmatrix} \xrightarrow{R_1\leftrightarrow R_2} \begin{bmatrix}1&1\\2&1\end{bmatrix} \xrightarrow{R_2\to R_2-2R_1} \begin{bmatrix}1&1\\0&-1\end{bmatrix} \xrightarrow{R_2\to -R_2} \begin{bmatrix}1&1\\0&1\end{bmatrix} \xrightarrow{R_1\to R_1-R_2} \begin{bmatrix}1&0\\0&1\end{bmatrix}. $$

There is a pivot in each column, so the homogeneous system has no free variables. Its reduced equations are \(x_1=0\) and \(x_2=0\), and its only solution is \(\mathbf{x}=\mathbf{0}\). By the theorem, \(\mathbf{A}\) is invertible and every right-hand side has exactly one solution.

For the stated right-hand side, row-reduce the augmented matrix using the same operations:

$$ \left[\begin{array}{cc|c}2&1&5\\1&1&3\end{array}\right] \xrightarrow{R_1\leftrightarrow R_2} \left[\begin{array}{cc|c}1&1&3\\2&1&5\end{array}\right] \xrightarrow{R_2\to R_2-2R_1} \left[\begin{array}{cc|c}1&1&3\\0&-1&-1\end{array}\right]. $$

Scale the second row by \(-1\), then subtract the new second row from the first:

$$ \left[\begin{array}{cc|c}1&1&3\\0&-1&-1\end{array}\right] \xrightarrow{R_2\to -R_2} \left[\begin{array}{cc|c}1&1&3\\0&1&1\end{array}\right] \xrightarrow{R_1\to R_1-R_2} \left[\begin{array}{cc|c}1&0&2\\0&1&1\end{array}\right]. $$

Thus \(\mathbf{x}=\begin{bmatrix}2\\1\end{bmatrix}\). Check: \(\mathbf{A}\mathbf{x}=\begin{bmatrix}2&1\\1&1\end{bmatrix}\begin{bmatrix}2\\1\end{bmatrix}=\begin{bmatrix}4+1\\2+1\end{bmatrix}=\begin{bmatrix}5\\3\end{bmatrix}\), as required.

The pivot test in this computation is a way to detect whether a nonzero homogeneous solution exists. A free variable supplies a nonzero choice; no free variables means every variable is forced to zero. The theorem turns this observation into a test for invertibility specifically because the matrix is square.

What a Nonzero Homogeneous Solution Tells Us

A nonzero solution of \(\mathbf{A}\mathbf{x}=\mathbf{0}\) rules out invertibility. It also explains what can happen in a nonhomogeneous system. If one solution is known, adding any homogeneous solution gives another solution. More precisely, the null space \(\operatorname{Nul}\mathbf{A}\) is the set of vectors \(\mathbf{z}\) satisfying \(\mathbf{A}\mathbf{z}=\mathbf{0}\).

Theorem: If \(\mathbf{A}\mathbf{x}=\mathbf{b}\) is consistent and \(\mathbf{x}_p\) is one particular solution, then its full solution set is \(\{\mathbf{x}_p+\mathbf{z}:\mathbf{z}\in\operatorname{Nul}\mathbf{A}\}\). In particular, if the homogeneous system has a nonzero solution, every consistent system with the same coefficient matrix has more than one solution.

Proof. Suppose \(\mathbf{x}\) is any solution of \(\mathbf{A}\mathbf{x}=\mathbf{b}\). Since \(\mathbf{A}\mathbf{x}_p=\mathbf{b}\), subtraction gives \(\mathbf{A}(\mathbf{x}-\mathbf{x}_p)=\mathbf{b}-\mathbf{b}=\mathbf{0}\). Thus \(\mathbf{x}-\mathbf{x}_p\in\operatorname{Nul}\mathbf{A}\), so \(\mathbf{x}=\mathbf{x}_p+\mathbf{z}\) for some \(\mathbf{z}\in\operatorname{Nul}\mathbf{A}\). Conversely, if \(\mathbf{z}\in\operatorname{Nul}\mathbf{A}\), then \(\mathbf{A}(\mathbf{x}_p+\mathbf{z})=\mathbf{A}\mathbf{x}_p+\mathbf{A}\mathbf{z}=\mathbf{b}+\mathbf{0}=\mathbf{b}\). This proves the description of all solutions. If there is a nonzero \(\mathbf{z}\) in the null space, then \(\mathbf{x}_p+\mathbf{z}\ne\mathbf{x}_p\), so the system has at least two solutions. \(\square\)

Worked Example: A Singular Matrix with Infinitely Many Solutions

Let \(\mathbf{A}=\begin{bmatrix}1&2\\2&4\end{bmatrix}\). Find the homogeneous solutions and solve \(\mathbf{A}\mathbf{x}=\begin{bmatrix}3\\6\end{bmatrix}\).

For the homogeneous system, subtract twice the first row from the second:

$$ \begin{bmatrix}1&2\\2&4\end{bmatrix} \xrightarrow{R_2\to R_2-2R_1} \begin{bmatrix}1&2\\0&0\end{bmatrix}. $$

The reduced equation is \(x_1+2x_2=0\). Setting the free variable \(x_2=t\), where \(t\in\mathbb{R}\), gives \(\mathbf{x}=\begin{bmatrix}-2t\\t\end{bmatrix}\). For example, \(t=1\) gives a nonzero homogeneous solution \(\begin{bmatrix}-2\\1\end{bmatrix}\). Direct multiplication confirms it: \(\mathbf{A}\begin{bmatrix}-2\\1\end{bmatrix}=\begin{bmatrix}-2+2\\-4+4\end{bmatrix}=\begin{bmatrix}0\\0\end{bmatrix}\). Thus \(\mathbf{A}\) is not invertible.

For the nonhomogeneous system, the same row operation gives

$$ \left[\begin{array}{cc|c}1&2&3\\2&4&6\end{array}\right] \xrightarrow{R_2\to R_2-2R_1} \left[\begin{array}{cc|c}1&2&3\\0&0&0\end{array}\right]. $$

Again let \(x_2=t\). Then \(x_1=3-2t\), so all solutions are \(\mathbf{x}=\begin{bmatrix}3-2t\\t\end{bmatrix}\). Check: multiplying gives \(\mathbf{A}\mathbf{x}=\begin{bmatrix}3-2t+2t\\6-4t+4t\end{bmatrix}=\begin{bmatrix}3\\6\end{bmatrix}\) for every real \(t\). The system has infinitely many solutions, consistent with the nonzero homogeneous solution.

Not every right-hand side for this matrix is consistent. For \(\mathbf{b}=\begin{bmatrix}3\\5\end{bmatrix}\), row reduction gives

$$ \left[\begin{array}{cc|c}1&2&3\\2&4&5\end{array}\right] \xrightarrow{R_2\to R_2-2R_1} \left[\begin{array}{cc|c}1&2&3\\0&0&-1\end{array}\right]. $$

The last row requires \(0=-1\), which is impossible, so this system has no solution. The same noninvertible matrix can therefore produce infinitely many solutions for one right-hand side and no solutions for another.

Common Pitfall: Uniqueness Is About Differences

A frequent error is to reason that if \(\mathbf{x}\) and \(\mathbf{y}\) both solve \(\mathbf{A}\mathbf{x}=\mathbf{b}\), then \(\mathbf{A}(\mathbf{x}-\mathbf{y})=\mathbf{b}\). Subtracting the two equations correctly gives \(\mathbf{A}(\mathbf{x}-\mathbf{y})=\mathbf{b}-\mathbf{b}=\mathbf{0}\), not \(\mathbf{b}\). Thus two solutions differ by a homogeneous solution. They must be equal when the homogeneous system has only the zero solution.

For a concrete correction, in the preceding example with \(\mathbf{b}=\begin{bmatrix}3\\6\end{bmatrix}\), take \(\mathbf{x}=\begin{bmatrix}3\\0\end{bmatrix}\) and \(\mathbf{y}=\begin{bmatrix}1\\1\end{bmatrix}\). Both multiply by \(\mathbf{A}\) to give \(\begin{bmatrix}3\\6\end{bmatrix}\). Their difference is \(\mathbf{x}-\mathbf{y}=\begin{bmatrix}2\\-1\end{bmatrix}\), and \(\mathbf{A}(\mathbf{x}-\mathbf{y})=\begin{bmatrix}2-2\\4-4\end{bmatrix}=\begin{bmatrix}0\\0\end{bmatrix}\). The error is assigning the right-hand side \(\mathbf{b}\) to the difference equation instead of zero.

Another distinction is equally important: a trivial homogeneous solution guarantees uniqueness for a consistent system, while the theorem guarantees consistency for every right-hand side only in the square invertible case. For a noninvertible square matrix, a given right-hand side need not have any solution, as the inconsistent example shows. The phrase “exactly one solution for every \(\mathbf{b}\)” includes both requirements: existence and uniqueness.

Worked Example: A Singular Matrix in Three Variables

Consider \(\mathbf{A}=\begin{bmatrix}1&0&1\\0&1&1\\1&1&2\end{bmatrix}\). Determine whether it is invertible and solve \(\mathbf{A}\mathbf{x}=\begin{bmatrix}2\\3\\5\end{bmatrix}\).

Subtract the first row and then the second row from the third:

$$ \begin{bmatrix}1&0&1\\0&1&1\\1&1&2\end{bmatrix} \xrightarrow{R_3\to R_3-R_1} \begin{bmatrix}1&0&1\\0&1&1\\0&1&1\end{bmatrix} \xrightarrow{R_3\to R_3-R_2} \begin{bmatrix}1&0&1\\0&1&1\\0&0&0\end{bmatrix}. $$

The third variable is free. In the homogeneous system, setting \(x_3=t\) gives \(x_1=-t\), \(x_2=-t\), and hence \(\mathbf{x}=\begin{bmatrix}-t\\-t\\t\end{bmatrix}\). Taking \(t=1\) gives a nonzero homogeneous solution, so the matrix is not invertible.

For the stated right-hand side, apply the same row operations to the augmented matrix:

$$ \left[\begin{array}{ccc|c}1&0&1&2\\0&1&1&3\\1&1&2&5\end{array}\right] \xrightarrow{R_3\to R_3-R_1} \left[\begin{array}{ccc|c}1&0&1&2\\0&1&1&3\\0&1&1&3\end{array}\right] \xrightarrow{R_3\to R_3-R_2} \left[\begin{array}{ccc|c}1&0&1&2\\0&1&1&3\\0&0&0&0\end{array}\right]. $$

Set \(x_3=t\). The first two equations give \(x_1=2-t\) and \(x_2=3-t\), so the full solution set is \(\mathbf{x}=\begin{bmatrix}2-t\\3-t\\t\end{bmatrix}\). Check: the three entries of \(\mathbf{A}\mathbf{x}\) are \((2-t)+t=2\), \((3-t)+t=3\), and \((2-t)+(3-t)+2t=5\), as required.

Check Your Understanding

For each question, distinguish carefully between the homogeneous system, a particular right-hand side, and the claim about every right-hand side.

  1. State the three equivalent conditions in the theorem for a square real matrix.
  2. If \(\mathbf{A}\mathbf{x}=\mathbf{0}\) has a nonzero solution, what does this imply about invertibility?
  3. For a consistent system \(\mathbf{A}\mathbf{x}=\mathbf{b}\), explain why adding a homogeneous solution to a particular solution gives another solution.
  4. Can a noninvertible square matrix yield a consistent system with infinitely many solutions? Explain using the solution-set theorem.
  5. For \(\mathbf{A}=\begin{bmatrix}1&2\\2&4\end{bmatrix}\), solve \(\mathbf{A}\mathbf{x}=\begin{bmatrix}1\\2\end{bmatrix}\), and state whether the solution is unique.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon