The Timpson Lyceum seal

The Timpson Lyceum · Linear Algebra (2026)

Solution & Applications of Linear Systems and Linear Independence – Lecture 3 (Linear Algebra)

Overview

This lecture covers three sections (1.5, 1.7 and 1.6). The first describes the solution sets of linear systems. A homogeneous system Ax=0A\mathbf{x} = \mathbf{0} always has the trivial solution, and it has others exactly when a free variable appears. Writing those solutions in parametric vector form shows them geometrically, as a line or plane through the origin. A consistent nonhomogeneous system Ax=bA\mathbf{x} = \mathbf{b} has the same solution set shifted by one particular solution. The second section introduces linear independence: a set of vectors is independent when the only way to combine them into 0\mathbf{0} is the trivial one. It then develops fast tests for independence, including one or two vectors, more vectors than entries, and sets containing the zero vector. The last section applies homogeneous systems to two problems: balancing a chemical equation and finding equilibrium prices in a closed economy.

Key Concepts

Homogeneous systems

Parametric vector form

x=su+tv(s,t∈R)\mathbf{x} = s\mathbf{u} + t\mathbf{v} \qquad (s, t \in \mathbb{R}) x=[x1x2x3]=x2[0.310]+x3[0.201]\mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = x_2\begin{bmatrix} 0.3 \\ 1 \\ 0 \end{bmatrix} + x_3\begin{bmatrix} 0.2 \\ 0 \\ 1 \end{bmatrix}

This is a plane through the origin in R3\mathbb{R}^3. In general a single linear equation in three variables describes a plane. The one exception is the degenerate equation 0x1+0x2+0x3=00x_1 + 0x_2 + 0x_3 = 0, whose solution set is all of R3\mathbb{R}^3.

Solutions of nonhomogeneous systems

x=p+tv\mathbf{x} = \mathbf{p} + t\mathbf{v}

where tvt\mathbf{v} describes the homogeneous solutions and p\mathbf{p} is a constant vector. Geometrically, the solution set is the homogeneous solution set translated by p\mathbf{p}: a line or plane parallel to the one through the origin, now passing through p\mathbf{p}.

Theorem 6 (solutions of nonhomogeneous systems). Suppose Ax=bA\mathbf{x} = \mathbf{b} is consistent, and let p\mathbf{p} be any one solution, called a particular solution. Then the solution set of Ax=bA\mathbf{x} = \mathbf{b} is the set of all vectors w=p+vh\mathbf{w} = \mathbf{p} + \mathbf{v}_h, where vh\mathbf{v}_h is any solution of Ax=0A\mathbf{x} = \mathbf{0}. Equivalently, v\mathbf{v} solves Ax=0A\mathbf{x} = \mathbf{0} if and only if v+p\mathbf{v} + \mathbf{p} solves Ax=bA\mathbf{x} = \mathbf{b}.

Proof. Both directions use the linearity of matrix–vector multiplication.

(⇒)Av=0:A(v+p)=Av+Ap=0+b=b(⇐)A(v+p)=b:Av+Ap=b  ⇒  Av+b=b  ⇒  Av=0\begin{aligned} (\Rightarrow)\quad A\mathbf{v} = \mathbf{0}:&\qquad A(\mathbf{v} + \mathbf{p}) = A\mathbf{v} + A\mathbf{p} = \mathbf{0} + \mathbf{b} = \mathbf{b} \\ (\Leftarrow)\quad A(\mathbf{v} + \mathbf{p}) = \mathbf{b}:&\qquad A\mathbf{v} + A\mathbf{p} = \mathbf{b} \;\Rightarrow\; A\mathbf{v} + \mathbf{b} = \mathbf{b} \;\Rightarrow\; A\mathbf{v} = \mathbf{0} \end{aligned}

The theorem requires Ax=bA\mathbf{x} = \mathbf{b} to be consistent. An inconsistent system has no particular solution to shift by.

Linear independence

x1v1+x2v2+⋯+xpvp=0x_1\mathbf{v}_1 + x_2\mathbf{v}_2 + \cdots + x_p\mathbf{v}_p = \mathbf{0}

has only the trivial solution. It is linearly dependent if there are weights c1,…,cpc_1, \dots, c_p, not all zero, with c1v1+⋯+cpvp=0c_1\mathbf{v}_1 + \cdots + c_p\mathbf{v}_p = \mathbf{0}. Such an equation is a linear dependence relation.

Sets of one or two vectors

Theorem 7 (characterization of linearly dependent sets). An indexed set S={v1,…,vp}S = \{\mathbf{v}_1, \dots, \mathbf{v}_p\} of two or more vectors is linearly dependent if and only if at least one vector in SS is a linear combination of the others.

Proof. Suppose first that some vj\mathbf{v}_j is a combination of the others. Moving it across gives a relation whose weight on vj\mathbf{v}_j is −1-1, so the relation is nontrivial:

vj=c1v1+⋯+cj−1vj−1+cj+1vj+1+⋯+cpvp0=c1v1+⋯+(−1)vj+⋯+cpvp\begin{aligned} \mathbf{v}_j &= c_1\mathbf{v}_1 + \cdots + c_{j-1}\mathbf{v}_{j-1} + c_{j+1}\mathbf{v}_{j+1} + \cdots + c_p\mathbf{v}_p \\ \mathbf{0} &= c_1\mathbf{v}_1 + \cdots + (-1)\mathbf{v}_j + \cdots + c_p\mathbf{v}_p \end{aligned}

Conversely, suppose SS is dependent, so c1v1+⋯+cpvp=0c_1\mathbf{v}_1 + \cdots + c_p\mathbf{v}_p = \mathbf{0} with some cj≠0c_j \neq 0. Solve for vj\mathbf{v}_j by moving its term across and dividing by −cj-c_j:

vj=−c1cjv1−⋯−cj−1cjvj−1−cj+1cjvj+1−⋯−cpcjvp\mathbf{v}_j = -\frac{c_1}{c_j}\mathbf{v}_1 - \cdots - \frac{c_{j-1}}{c_j}\mathbf{v}_{j-1} - \frac{c_{j+1}}{c_j}\mathbf{v}_{j+1} - \cdots - \frac{c_p}{c_j}\mathbf{v}_p

This expresses vj\mathbf{v}_j as a linear combination of the others. The theorem does not say that every vector in a dependent set is a combination of the others.

Theorem 8 (more vectors than entries). If a set contains more vectors than there are entries in each vector (p>np > n), then the set is linearly dependent. Any set {v1,…,vp}\{\mathbf{v}_1, \dots, \mathbf{v}_p\} in Rn\mathbb{R}^n with p>np > n is dependent.

Proof. Let A=[v1⋯vp]A = \begin{bmatrix} \mathbf{v}_1 & \cdots & \mathbf{v}_p \end{bmatrix}, an n×pn \times p matrix. The equation Ax=0A\mathbf{x} = \mathbf{0} is nn equations in p>np > n unknowns. There are at most nn pivots, one per row, so some column has no pivot. That free variable gives a nontrivial solution.

Theorem 9 (the zero vector). If a set S={v1,…,vp}S = \{\mathbf{v}_1, \dots, \mathbf{v}_p\} in Rn\mathbb{R}^n contains the zero vector, then SS is linearly dependent.

Proof. If vj=0\mathbf{v}_j = \mathbf{0}, then 0v1+⋯+1vj+⋯+0vp=00\mathbf{v}_1 + \cdots + 1\mathbf{v}_j + \cdots + 0\mathbf{v}_p = \mathbf{0} is a nontrivial relation. Any nonzero weight on vj\mathbf{v}_j works just as well.

Deciding by inspection

Applications of linear systems

Worked Example

A nontrivial solution in parametric vector form. Determine whether the homogeneous system

3x1+5x2−4x3=0−3x1−2x2+4x3=06x1+x2−8x3=0\begin{aligned} 3x_1 + 5x_2 - 4x_3 &= 0 \\ -3x_1 - 2x_2 + 4x_3 &= 0 \\ 6x_1 + x_2 - 8x_3 &= 0 \end{aligned}

has a nontrivial solution, and describe its solution set. Row reduce the augmented matrix:

[35−40−3−24061−80]∼[35−4003000−900]R2→R2+R1,  R3→R3−2R1∼[35−4001000000]R3→R3+3R2,  R2→13R2∼[10−43001000000]R1→13(R1−5R2)\begin{aligned} \left[\begin{array}{ccc|c} 3 & 5 & -4 & 0 \\ -3 & -2 & 4 & 0 \\ 6 & 1 & -8 & 0 \end{array}\right] &\sim \left[\begin{array}{ccc|c} 3 & 5 & -4 & 0 \\ 0 & 3 & 0 & 0 \\ 0 & -9 & 0 & 0 \end{array}\right] && R_2 \to R_2 + R_1,\; R_3 \to R_3 - 2R_1 \\ &\sim \left[\begin{array}{ccc|c} 3 & 5 & -4 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right] && R_3 \to R_3 + 3R_2,\; R_2 \to \tfrac{1}{3}R_2 \\ &\sim \left[\begin{array}{ccc|c} 1 & 0 & -\tfrac{4}{3} & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right] && R_1 \to \tfrac{1}{3}(R_1 - 5R_2) \end{aligned}

Column 3 has no pivot, so x3x_3 is free and a nontrivial solution exists. The system reads x1=43x3x_1 = \tfrac{4}{3}x_3, x2=0x_2 = 0, so

x=[x1x2x3]=[43x30x3]=x3[4301]=x3v\mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} \tfrac{4}{3}x_3 \\ 0 \\ x_3 \end{bmatrix} = x_3\begin{bmatrix} \tfrac{4}{3} \\ 0 \\ 1 \end{bmatrix} = x_3\mathbf{v}

The solution set is Span⁡{v}\operatorname{Span}\{\mathbf{v}\}, a line through the origin. Taking x3=1x_3 = 1 gives the nontrivial solution (43,0,1)(\tfrac{4}{3}, 0, 1).

The same matrix with a nonzero right-hand side. For Ax=bA\mathbf{x} = \mathbf{b} with b=(7,−1,−4)\mathbf{b} = (7, -1, -4), the same row operations give

[10−43−101020000]\left[\begin{array}{ccc|c} 1 & 0 & -\tfrac{4}{3} & -1 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 0 & 0 \end{array}\right]

so x1=−1+43x3x_1 = -1 + \tfrac{4}{3}x_3, x2=2x_2 = 2, and x3x_3 is free:

x=[−120]+x3[4301]=p+x3v\mathbf{x} = \begin{bmatrix} -1 \\ 2 \\ 0 \end{bmatrix} + x_3\begin{bmatrix} \tfrac{4}{3} \\ 0 \\ 1 \end{bmatrix} = \mathbf{p} + x_3\mathbf{v}

This is the homogeneous line shifted to pass through the particular solution p=(−1,2,0)\mathbf{p} = (-1, 2, 0), as Theorem 6 predicts.

Testing a set for independence. Are v1=(1,2,3)\mathbf{v}_1 = (1, 2, 3), v2=(4,5,6)\mathbf{v}_2 = (4, 5, 6), v3=(2,1,0)\mathbf{v}_3 = (2, 1, 0) linearly independent?

[142025103600]∼[14200−3−300000](echelon form)∼[10−2001100000](reduced echelon form)\begin{aligned} \left[\begin{array}{ccc|c} 1 & 4 & 2 & 0 \\ 2 & 5 & 1 & 0 \\ 3 & 6 & 0 & 0 \end{array}\right] &\sim \left[\begin{array}{ccc|c} 1 & 4 & 2 & 0 \\ 0 & -3 & -3 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right] && \text{(echelon form)} \\ &\sim \left[\begin{array}{ccc|c} 1 & 0 & -2 & 0 \\ 0 & 1 & 1 & 0 \\ 0 & 0 & 0 & 0 \end{array}\right] && \text{(reduced echelon form)} \end{aligned}

Once the echelon form shows that column 3 has no pivot, the set is known to be dependent. The reduced form gives x1=2x3x_1 = 2x_3, x2=−x3x_2 = -x_3. Taking x3=1x_3 = 1 gives the dependence relation

2v1−v2+v3=[2−4+24−5+16−6+0]=02\mathbf{v}_1 - \mathbf{v}_2 + \mathbf{v}_3 = \begin{bmatrix} 2 - 4 + 2 \\ 4 - 5 + 1 \\ 6 - 6 + 0 \end{bmatrix} = \mathbf{0}

Balancing the combustion of propane. Balance x1 C3H8+x2 O2→x3 CO2+x4 H2Ox_1\,\text{C}_3\text{H}_8 + x_2\,\text{O}_2 \to x_3\,\text{CO}_2 + x_4\,\text{H}_2\text{O}. Record each molecule as a vector of (carbon, hydrogen, oxygen) counts, then move everything to one side:

x1[380]+x2[002]−x3[102]−x4[021]=0x_1\begin{bmatrix} 3 \\ 8 \\ 0 \end{bmatrix} + x_2\begin{bmatrix} 0 \\ 0 \\ 2 \end{bmatrix} - x_3\begin{bmatrix} 1 \\ 0 \\ 2 \end{bmatrix} - x_4\begin{bmatrix} 0 \\ 2 \\ 1 \end{bmatrix} = \mathbf{0}

Row reducing the coefficient matrix gives

[30−10800−202−2−1]∼[100−14010−54001−34]\begin{aligned} \begin{bmatrix} 3 & 0 & -1 & 0 \\ 8 & 0 & 0 & -2 \\ 0 & 2 & -2 & -1 \end{bmatrix} &\sim \begin{bmatrix} 1 & 0 & 0 & -\tfrac{1}{4} \\ 0 & 1 & 0 & -\tfrac{5}{4} \\ 0 & 0 & 1 & -\tfrac{3}{4} \end{bmatrix} \end{aligned}

so x1=14x4x_1 = \tfrac{1}{4}x_4, x2=54x4x_2 = \tfrac{5}{4}x_4, x3=34x4x_3 = \tfrac{3}{4}x_4, with x4x_4 free. Choosing x4=4x_4 = 4 clears the fractions:

C3H8+5 O2→3 CO2+4 H2O\text{C}_3\text{H}_8 + 5\,\text{O}_2 \to 3\,\text{CO}_2 + 4\,\text{H}_2\text{O}

Check: carbon 3=33 = 3, hydrogen 8=88 = 8, oxygen 10=6+410 = 6 + 4. Doubling every coefficient, giving 2, 10, 6 and 8, is also balanced.

Equilibrium prices. An economy has three sectors (coal, electric and steel), and each sector's output is split among the three as follows:

Output of →CoalElectricSteel
purchased by Coal0.00.40.6
purchased by Electric0.60.10.2
purchased by Steel0.40.50.2

At equilibrium each sector's income equals its expenses. Setting up those equations and moving everything to one side gives the homogeneous system:

pC=0.4pE+0.6pSpE=0.6pC+0.1pE+0.2pSpS=0.4pC+0.5pE+0.2pS⟹[1−0.4−0.60−0.60.9−0.20−0.4−0.50.80]\begin{aligned} p_C &= 0.4p_E + 0.6p_S \\ p_E &= 0.6p_C + 0.1p_E + 0.2p_S \\ p_S &= 0.4p_C + 0.5p_E + 0.2p_S \end{aligned} \quad\Longrightarrow\quad \left[\begin{array}{ccc|c} 1 & -0.4 & -0.6 & 0 \\ -0.6 & 0.9 & -0.2 & 0 \\ -0.4 & -0.5 & 0.8 & 0 \end{array}\right]

Row reduction leaves pSp_S free, with pC=3133pS≈0.94 pSp_C = \tfrac{31}{33}p_S \approx 0.94\,p_S and pE=2833pS≈0.85 pSp_E = \tfrac{28}{33}p_S \approx 0.85\,p_S:

p=[pCpEpS]≈pS[0.940.851]\mathbf{p} = \begin{bmatrix} p_C \\ p_E \\ p_S \end{bmatrix} \approx p_S\begin{bmatrix} 0.94 \\ 0.85 \\ 1 \end{bmatrix}

Only the ratios are determined. For example, if steel's output is priced at $100 million, coal's is about $94 million and electric's about $85 million. Ordering the variables differently would leave a different price free, giving an equivalent answer.

Summary