Tutorials › Linear Algebra › Homogeneous Systems as Independence Tests

Linear Independence · Tutorial 166 of 1000

Homogeneous Systems as Independence Tests

Learn to encode a vector list as the columns of a matrix and use its homogeneous system to test linear independence.

Beginner 9 min read

What You'll Learn

  • Match the number of entries in a coefficient vector to the number of columns in the matrix.
  • Translate a linear combination of columns into a matrix-vector product.
  • State the trivial solution of a homogeneous system precisely.
  • Prove both directions of the homogeneous-system test for independence.
  • Classify lists as independent or dependent by solving their homogeneous equations.
  • Check a dependence relation by multiplying the matrix by its coefficient vector.

From a Vector List to a Homogeneous System

Linear independence asks whether a list of vectors has any nontrivial linear combination equal to the zero vector. A homogeneous system asks whether a matrix equation with zero on the right has any solution besides the zero vector. These are two ways of asking the same question once the vectors are placed in the columns of a matrix. The coefficient vector records which linear combination is being tested.

Work over \(\mathbb{R}\). Let \(\mathbf{v}_1,\dots,\mathbf{v}_p\) be a list of vectors in \(\mathbb{R}^n\), with \(p\ge 1\). A list is ordered: its positions matter, even if two entries happen to be the same vector. Form a matrix with those vectors as columns:

$$ \mathbf{A}= \begin{bmatrix} \mathbf{v}_1&\cdots&\mathbf{v}_p \end{bmatrix} \in\mathbb{R}^{n\times p}. $$

A coefficient vector \(\mathbf{x}\) for this list has \(p\) entries, one for each column: \(\mathbf{x}=(c_1,\dots,c_p)^{\top}\). The product \(\mathbf{A}\mathbf{x}\) is therefore a vector in \(\mathbb{R}^n\). It combines the columns using precisely those coefficients.

Definition: The homogeneous system associated with \(\mathbf{A}\) is \(\mathbf{A}\mathbf{x}=\mathbf{0}\). Its trivial solution is \(\mathbf{x}=\mathbf{0}\), the coefficient vector whose entries are all zero. A list \(\mathbf{v}_1,\dots,\mathbf{v}_p\) is linearly independent if \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p=\mathbf{0}\) implies \(c_1=\cdots=c_p=0\). It is linearly dependent if there is a choice of coefficients, not all zero, for which that combination equals \(\mathbf{0}\).

The Column Combination Is the Matrix Product

The key translation follows directly from the definition of matrix multiplication. If the entries of \(\mathbf{v}_j\) are \(v_{ij}\), then the entry in row \(i\) of \(\mathbf{A}\mathbf{x}\) is \(\sum_{j=1}^{p}v_{ij}c_j\). That is also the \(i\)th entry of \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p\). This holds in every row, so the two vectors are equal.

Proposition: If \(\mathbf{A}\) has columns \(\mathbf{v}_1,\dots,\mathbf{v}_p\) and \(\mathbf{x}=(c_1,\dots,c_p)^{\top}\), then \(\mathbf{A}\mathbf{x}=c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p\).

Proof. Write the entries of column \(j\) as \(v_{1j},\dots,v_{nj}\). By the definition of matrix-vector multiplication, the \(i\)th entry of \(\mathbf{A}\mathbf{x}\) is \(v_{i1}c_1+\cdots+v_{ip}c_p\). The \(i\)th entry of \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p\) is the same sum. Since this is true for each \(i=1,\dots,n\), the vectors are equal. \(\square\)

For example, if there are three columns, the coefficient vector has three entries. The equation \(\mathbf{A}\mathbf{x}=\mathbf{0}\) then says that a particular combination of the three columns is zero. It does not say that the columns themselves are zero, nor does it ask whether a coefficient vector with \(n\) entries works: the number of coefficients is set by the number of columns.

The Independence Test

Theorem (Homogeneous-system test for independence): Let \(\mathbf{v}_1,\dots,\mathbf{v}_p\) be a list in \(\mathbb{R}^n\), and let \(\mathbf{A}=[\mathbf{v}_1\ \cdots\ \mathbf{v}_p]\). The list is linearly independent if and only if the homogeneous system \(\mathbf{A}\mathbf{x}=\mathbf{0}\) has only the trivial solution \(\mathbf{x}=\mathbf{0}\).

Proof. Suppose first that the list is linearly independent. Let \(\mathbf{x}=(c_1,\dots,c_p)^{\top}\) be any solution of \(\mathbf{A}\mathbf{x}=\mathbf{0}\). By the proposition, \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p=\mathbf{0}\). Independence means that the only coefficients giving this zero combination are \(c_1=\cdots=c_p=0\). Hence \(\mathbf{x}=\mathbf{0}\), and every solution is trivial.

Conversely, suppose that \(\mathbf{A}\mathbf{x}=\mathbf{0}\) has only the trivial solution. Consider any coefficients \(c_1,\dots,c_p\) such that \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p=\mathbf{0}\), and set \(\mathbf{x}=(c_1,\dots,c_p)^{\top}\). The proposition gives \(\mathbf{A}\mathbf{x}=\mathbf{0}\). By the assumption, \(\mathbf{x}=\mathbf{0}\), so every \(c_j=0\). This is exactly the definition of independence. Thus the list is independent if and only if the homogeneous system has only its trivial solution. \(\square\)

The two directions explain how to use the test. To establish independence, show that every solution has all coefficients zero. To establish dependence, find even one solution with at least one nonzero coefficient. The zero solution is always present, because \(\mathbf{A}\mathbf{0}=\mathbf{0}\); finding that solution alone gives no information about independence.

Worked Examples

Worked Example: A Homogeneous System with a Nontrivial Solution

Test whether \(\mathbf{v}_1=(1,2)^{\top}\) and \(\mathbf{v}_2=(2,4)^{\top}\) are linearly independent.

Place the vectors in the columns of \(\mathbf{A}\). For \(\mathbf{x}=(c_1,c_2)^{\top}\), the homogeneous system is:

$$ \mathbf{A}= \begin{bmatrix} 1&2\\ 2&4 \end{bmatrix}, \qquad \mathbf{A}\mathbf{x}=\mathbf{0} \quad\Longleftrightarrow\quad \begin{cases} c_1+2c_2=0,\\ 2c_1+4c_2=0. \end{cases} $$

The first equation gives \(c_1=-2c_2\). Substituting this into the second gives \(2(-2c_2)+4c_2=0\), so the second equation imposes no further restriction. Taking \(c_2=1\) gives \(c_1=-2\), a solution other than the trivial one.

Check: multiply the matrix by the proposed coefficient vector:

$$ \begin{bmatrix} 1&2\\ 2&4 \end{bmatrix} \begin{bmatrix}-2\\1\end{bmatrix} = \begin{bmatrix}-2+2\\-4+4\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}. $$

Thus \(\mathbf{v}_1,\mathbf{v}_2\) are dependent. In column form, the same check is \(-2\mathbf{v}_1+\mathbf{v}_2=(-2+2,-4+4)^{\top}=\mathbf{0}\).

Worked Example: A Homogeneous System with Only the Trivial Solution

Test whether \(\mathbf{u}_1=(1,0,1)^{\top}\) and \(\mathbf{u}_2=(0,1,1)^{\top}\) are linearly independent in \(\mathbb{R}^3\).

The column matrix and its homogeneous equations are:

$$ \mathbf{A}= \begin{bmatrix} 1&0\\ 0&1\\ 1&1 \end{bmatrix}, \qquad \mathbf{A} \begin{bmatrix}c_1\\c_2\end{bmatrix} = \begin{bmatrix}0\\0\\0\end{bmatrix} \quad\Longleftrightarrow\quad \begin{cases} c_1=0,\\ c_2=0,\\ c_1+c_2=0. \end{cases} $$

The first equation forces \(c_1=0\), and the second forces \(c_2=0\). These values also satisfy the third equation, since \(0+0=0\). Therefore every solution is the trivial solution. By the theorem, the list is independent.

Check: substituting the only possible coefficient vector gives

$$ \begin{bmatrix} 1&0\\ 0&1\\ 1&1 \end{bmatrix} \begin{bmatrix}0\\0\end{bmatrix} = \begin{bmatrix}0\\0\\0\end{bmatrix}. $$

This confirms that the trivial vector is a solution. The equations show that no other solution is possible.

Worked Example: Three Columns and Two Equations

Test the list \(\mathbf{w}_1=(1,0)^{\top}\), \(\mathbf{w}_2=(2,1)^{\top}\), and \(\mathbf{w}_3=(3,1)^{\top}\) for independence.

There are three coefficients because the matrix has three columns. The homogeneous system is:

$$ \begin{bmatrix} 1&2&3\\ 0&1&1 \end{bmatrix} \begin{bmatrix}c_1\\c_2\\c_3\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix} \quad\Longleftrightarrow\quad \begin{cases} c_1+2c_2+3c_3=0,\\ c_2+c_3=0. \end{cases} $$

Choose \(c_3=1\). The second equation then gives \(c_2=-1\). Substituting into the first gives \(c_1+2(-1)+3(1)=0\), so \(c_1-2+3=0\) and \(c_1=-1\). Thus \(\mathbf{x}=(-1,-1,1)^{\top}\) is a nontrivial solution.

Check:

$$ \begin{bmatrix} 1&2&3\\ 0&1&1 \end{bmatrix} \begin{bmatrix}-1\\-1\\1\end{bmatrix} = \begin{bmatrix}-1-2+3\\-1+1\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}. $$

The columns are dependent. The corresponding relation is \(-\mathbf{w}_1-\mathbf{w}_2+\mathbf{w}_3=\mathbf{0}\); indeed, \((-1,0)^{\top}+(-2,-1)^{\top}+(3,1)^{\top}=(0,0)^{\top}\).

A Common Mistake: Counting Equations Instead of Solving Them

A homogeneous system always has the trivial solution, but that does not mean it has only the trivial solution. A tempting but incorrect argument is: “The right-hand side is zero, so the only solution is the zero coefficient vector.” The first worked example disproves that claim: its right-hand side is zero, yet \((-2,1)^{\top}\) is another solution.

Another error is to conclude that a system has only the trivial solution merely because it has at least as many equations as unknowns. The number of equations alone does not settle the question. For instance, in the third example there are two equations but three unknowns, and the equations allow a nontrivial solution. In general, the test is about the actual solutions of \(\mathbf{A}\mathbf{x}=\mathbf{0}\), not just the dimensions of the displayed system.

Keep the roles of the vectors and coefficients distinct. The columns are the listed vectors in \(\mathbb{R}^n\); the unknowns form a coefficient vector in \(\mathbb{R}^p\). A nontrivial solution is a coefficient vector with at least one nonzero entry. The independence test applies to the list of columns because each such solution is exactly a nontrivial zero combination of that list.

Why This Translation Is Useful

The definition of independence quantifies over every possible choice of coefficients. The homogeneous-system formulation packages all those choices into one equation. It also makes the two possible conclusions precise: only the trivial solution means independence; any nontrivial solution supplies a dependence relation. Once a solution is found, multiplying \(\mathbf{A}\mathbf{x}\) back out is a direct check that the proposed coefficients really give zero.

For a small system, the equations may be solved by substitution, as in the examples. For larger systems, a systematic solution method is useful, but the underlying test remains the same: determine whether the homogeneous system has any solution other than zero. The matrix equation and the coefficient relation are equivalent, not competing tests.

Check Your Understanding

For each list, form the matrix whose columns are the listed vectors, then use its homogeneous system to decide independence or dependence.

  1. For \((1,0)^{\top}\) and \((0,1)^{\top}\), write the homogeneous equations and identify every solution.
  2. For \((1,2)^{\top}\) and \((3,6)^{\top}\), find a nontrivial coefficient vector and check it by matrix multiplication.
  3. For the columns \((1,0)^{\top}\), \((0,1)^{\top}\), and \((1,1)^{\top}\), find a nontrivial solution of the homogeneous system.
  4. Explain why the coefficient vector has \(p\) entries when the matrix has \(p\) columns.
  5. State both directions of the homogeneous-system test for independence in your own words.

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