All three standard applications turn a word problem into a linear system, then solve it with the recipe above. Typically the answer has a free variable, and you then pick a convenient value (or use a “nonnegative” condition).
Economic equilibrium (Leontief exchange model)
An economy is split into sectors; each sector’s output is shared among the sectors (an exchange table, whose columns sum to 1). We look for equilibrium prices where each sector’s income equals its expenditure.
Mini-example (Lay §1.6, Exercise 1 setup): Goods sells 80% of its output to Services and keeps 20%; Services sells 70% to Goods and keeps 30%. With prices pG,pS, Goods’ expenditure is what it buys: 0.2pG+0.7pS. Setting this equal to its income pG:
pG=0.2pG+0.7pS⟹0.8pG−0.7pS=0⟹pG=0.875pS
(The Services equation pS=0.8pG+0.3pS gives the same relation.) This is a homogeneous system with a free variable: e.g. pS=80, pG=70. Only the ratio of prices is determined.
Balancing chemical equations
Write one vector per compound listing the number of atoms of each element. The equation x1(reactant1)+⋯=xk(product1)+⋯ becomes a homogeneous system (move everything to the left side, flipping the signs of the product vectors). Solve, then choose the free variable to make all coefficients the smallest positive integers.
Network flow
A network consists of nodes (junctions) joined by branches carrying flows. The basic rule is conservation of flow:
at each node:flow in=flow out
and also total flow into the network = total flow out of the network. Each node gives one linear equation. The general solution usually has free variables; a flow against the drawn arrow would be negative, so if the streets are one-way, the conditions xi≥0 bound the free variables.
For network problems, the best way to present the answer is the ”xi=…, xk is free” list (Lay §1.2 style), not the parametric vector form — it makes the nonnegativity constraints easy to read.
Solved Examples (Textbook Questions)
Exercise 1
(Adapted from Lay §1.6, Exercise 5)
Boron sulfide reacts with water to form boric acid and hydrogen sulfide gas. Balance the equation
B2S3+H2O→H3BO3+H2S
using the vector equation approach. [For each compound, construct a vector listing the numbers of atoms of boron, sulfur, hydrogen, and oxygen.]
x4 is free. Continue to RREF: R3←31R3; R2←R2+3R3; R1←R1+R3, R1←21R1:
∼100001000010−31−2−3200000
General solution: x1=31x4, x2=2x4, x3=32x4, x4 free. Choose x4=3 (clears the fractions): x1=1, x2=6, x3=2, x4=3.
B2S3+6H2O→2H3BO3+3H2S
Check: B: 2=2; S: 3=3; H: 12=6+6; O: 6=6 ✓.
Exercise 2
(Adapted from Lay §1.6, Exercise 14)
Intersections in England are often built as one-way “roundabouts”. Traffic must travel in the directions shown. Around the circle, the branches are Ax2Bx3Cx4Dx5Ex6Fx1A. The external roads are:
Intersection
External flow
A
100 out
B
50 in
C
120 out
D
150 in
E
80 out
F
100 in
Find the general solution of the network flow. Find the smallest possible value for x6.
Show solution ↓Hide solution ↑
Solution
Check totals first: in =50+150+100=300, out =100+120+80=300 ✓.
Flow in = flow out at each intersection:
Intersection
Flow in
Flow out
Equation
A
x1
=
x2+100
x1−x2=100
B
x2+50
=
x3
x2−x3=−50
C
x3
=
x4+120
x3−x4=120
D
x4+150
=
x5
x4−x5=−150
E
x5
=
x6+80
x5−x6=80
F
x6+100
=
x1
−x1+x6=−100
Row reduce. Adding rows 1–5 to row 6 makes it [000000∣0] (the sum of all node equations is the “total flow” identity). Then back-substitute upward (R4←R4+R5, R3←R3+R4, …):
⎩⎨⎧x1=100+x6x2=x6x3=50+x6x4=−70+x6x5=80+x6x6 is free
Smallest x6: traffic must follow the arrows, so every xi≥0. The binding constraint is x4=x6−70≥0, so x6≥70. The minimum value of x6 is 70 (then x4=0, x1=170, x2=70, x3=120, x5=150).