The Timpson Lyceum seal

The Timpson Lyceum · Linear Algebra (2026)

1.6 Exercises

Problems with worked solutions · 20 points · 4 extra credit

Applications of Linear Systems

  1. 1. (2 pts) Balance the chemical equation by finding the smallest positive integer coefficients:

    x1 Fe+x2 O2⟶x3 Fe2O3.x_1\,\mathrm{Fe} + x_2\,\mathrm{O_2} \longrightarrow x_3\,\mathrm{Fe_2O_3}.

    Solution

    1. Match atoms on each side. Iron: x1=2x3x_1 = 2x_3. Oxygen: 2x2=3x32x_2 = 3x_3. Take x3=2x_3 = 2: then x1=4x_1 = 4 and x2=3x_2 = 3. The balanced equation is

    4 Fe+3 O2⟶2 Fe2O3.4\,\mathrm{Fe} + 3\,\mathrm{O_2} \longrightarrow 2\,\mathrm{Fe_2O_3}.

  2. 2. (3 pts) Traffic (cars per hour) flows through four one-way intersections A,B,C,DA, B, C, D. Conservation of flow (in == out) at each intersection gives

    A:x1+40=x2+30B:x2+50=x3+60C:x3+20=x4+40D:x4+30=x1+10.\begin{aligned} \text{$A$:}\quad x_1 + 40 &= x_2 + 30 \\ \text{$B$:}\quad x_2 + 50 &= x_3 + 60 \\ \text{$C$:}\quad x_3 + 20 &= x_4 + 40 \\ \text{$D$:}\quad x_4 + 30 &= x_1 + 10. \end{aligned}

    Solve the system, describe the solution set, and determine the minimum possible value of x1x_1 given that all flows are nonnegative.

    Solution

    2. Rewrite each equation as (net)\text{(net)}:

    x1−x2=−10x2−x3=10x3−x4=20x4−x1=−20.\begin{aligned} x_1 - x_2 &= -10 \\ x_2 - x_3 &= 10 \\ x_3 - x_4 &= 20 \\ x_4 - x_1 &= -20. \end{aligned}

    The four equations sum to 0=00 = 0, so one is redundant. Let x4=tx_4 = t be free. Then x3=20+tx_3 = 20 + t, x2=10+x3=30+tx_2 = 10 + x_3 = 30 + t, and x1=−10+x2=20+tx_1 = -10 + x_2 = 20 + t (this also satisfies the fourth equation: t−(20+t)=−20t - (20+t) = -20). So

    x=[2030200]+t[1111],t≥0.\mathbf{x} = \begin{bmatrix} 20 \\ 30 \\ 20 \\ 0 \end{bmatrix} + t\begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix}, \qquad t \ge 0.

    All flows are nonnegative iff t≥0t \ge 0 (the binding constraint is x4=t≥0x_4 = t \ge 0). The minimum value of x1=20+tx_1 = 20 + t is therefore 20\boxed{20}, achieved at t=0t = 0.

  3. 3. (3 pts) Balance the combustion of propane:

    x1 C3H8+x2 O2⟶x3 CO2+x4 H2O.x_1\,\mathrm{C_3H_8} + x_2\,\mathrm{O_2} \longrightarrow x_3\,\mathrm{CO_2} + x_4\,\mathrm{H_2O}.

    Solution

    3. Carbon: 3x1=x33x_1 = x_3. Hydrogen: 8x1=2x48x_1 = 2x_4, so x4=4x1x_4 = 4x_1. Oxygen: 2x2=2x3+x4=6x1+4x1=10x12x_2 = 2x_3 + x_4 = 6x_1 + 4x_1 = 10x_1, so x2=5x1x_2 = 5x_1. Take x1=1x_1 = 1: x2=5x_2 = 5, x3=3x_3 = 3, x4=4x_4 = 4:

    C3H8+5 O2⟶3 CO2+4 H2O.\mathrm{C_3H_8} + 5\,\mathrm{O_2} \longrightarrow 3\,\mathrm{CO_2} + 4\,\mathrm{H_2O}.

  4. 4. (3 pts) A nutritionist blends three foods. Per unit serving, the grams of protein, carbohydrate, and fat are:

    Food A:(2,1,0),Food B:(1,3,1),Food C:(0,1,2),\text{Food A}: (2, 1, 0), \quad \text{Food B}: (1, 3, 1), \quad \text{Food C}: (0, 1, 2),

    where each triple is (protein, carbohydrate, fat). Find the numbers of servings a,b,ca, b, c that provide exactly 77 g protein, 1212 g carbohydrate, and 55 g fat.

    Solution

    4. The constraints give the system

    2a+b=7a+3b+c=12b+2c=5.\begin{aligned} 2a + b &= 7 \\ a + 3b + c &= 12 \\ b + 2c &= 5. \end{aligned}

    From the first, b=7−2ab = 7 - 2a; from the third, c=5−b2=5−(7−2a)2=a−1c = \tfrac{5 - b}{2} = \tfrac{5 - (7 - 2a)}{2} = a - 1. Substitute into the second: a+3(7−2a)+(a−1)=12⇒a+21−6a+a−1=12⇒−4a+20=12⇒a=2a + 3(7 - 2a) + (a - 1) = 12 \Rightarrow a + 21 - 6a + a - 1 = 12 \Rightarrow -4a + 20 = 12 \Rightarrow a = 2. Then b=3b = 3 and c=1c = 1. Answer: 22 servings of A, 33 of B, 11 of C. (Check: protein 4+3=74+3 = 7, carbohydrate 2+9+1=122+9+1 = 12, fat 3+2=53+2 = 5.)

  5. 5. (3 pts) Balance the photosynthesis reaction:

    x1 CO2+x2 H2O⟶x3 C6H12O6+x4 O2.x_1\,\mathrm{CO_2} + x_2\,\mathrm{H_2O} \longrightarrow x_3\,\mathrm{C_6H_{12}O_6} + x_4\,\mathrm{O_2}.

    Solution

    5. Carbon: x1=6x3x_1 = 6x_3. Hydrogen: 2x2=12x32x_2 = 12x_3, so x2=6x3x_2 = 6x_3. Oxygen: 2x1+x2=6x3+2x42x_1 + x_2 = 6x_3 + 2x_4; substituting, 12x3+6x3=6x3+2x4⇒2x4=12x3⇒x4=6x312x_3 + 6x_3 = 6x_3 + 2x_4 \Rightarrow 2x_4 = 12x_3 \Rightarrow x_4 = 6x_3. Take x3=1x_3 = 1:

    6 CO2+6 H2O⟶C6H12O6+6 O2.6\,\mathrm{CO_2} + 6\,\mathrm{H_2O} \longrightarrow \mathrm{C_6H_{12}O_6} + 6\,\mathrm{O_2}.

  6. 6. (3 pts) State whether each of the following is true or false, and justify each answer.

    (a) The coefficients that balance a chemical equation are found by solving a homogeneous linear system.

    (b) A network-flow system always has a unique solution.

    (c) In a flow network, the equation at each node states that total flow in equals total flow out.

    Solution

    6.

    (a) True. Conservation of each element gives one equation with zero on the right (atoms in == atoms out), so the coefficients solve a homogeneous system; the balanced equation comes from a nontrivial solution scaled to smallest integers.

    (b) False. A flow network typically yields a dependent system with a free variable, so the solution is a one- (or more-) parameter family, not unique, unless enough branch flows are measured.

    (c) True. Conservation of flow at a node is exactly the statement that total inflow equals total outflow.

  7. 7. (3 pts) Explain why the node equations of a closed flow network (like Problem 2) are always dependent — their sum is 0=00 = 0 — so the system has at least one free variable. Interpret what happens to the solution when one branch flow is measured directly.

    Solution

    7. Every branch of a closed network leaves one node and enters another, so its flow appears once with a ++ sign (as an inflow) and once with a −- sign (as an outflow) across the node equations. Adding all node equations, each branch variable cancels and every measured inflow cancels against its outflow, leaving 0=00 = 0. Thus the equations are linearly dependent: one is redundant, so with nn unknown branch flows there are at most n−1n-1 independent equations, forcing at least one free variable. Measuring one branch flow directly supplies the missing equation, pinning down the free parameter and (typically) determining all remaining flows uniquely.

  8. 8. (4 pts ••) Balance the reaction

    x1 KMnO4+x2 HCl⟶x3 KCl+x4 MnCl2+x5 H2O+x6 Cl2,x_1\,\mathrm{KMnO_4} + x_2\,\mathrm{HCl} \longrightarrow x_3\,\mathrm{KCl} + x_4\,\mathrm{MnCl_2} + x_5\,\mathrm{H_2O} + x_6\,\mathrm{Cl_2},

    finding the smallest positive integer coefficients.

    Solution

    8. Balance each element:

    K: x1=x3Mn: x1=x4O: 4x1=x5H: x2=2x5Cl: x2=x3+2x4+2x6.\begin{aligned} \text{K:}\ & x_1 = x_3 & \text{Mn:}\ & x_1 = x_4 \\ \text{O:}\ & 4x_1 = x_5 & \text{H:}\ & x_2 = 2x_5 \\ \text{Cl:}\ & x_2 = x_3 + 2x_4 + 2x_6. & & \end{aligned}

    From K and Mn, x3=x4=x1x_3 = x_4 = x_1. From O, x5=4x1x_5 = 4x_1; from H, x2=2x5=8x1x_2 = 2x_5 = 8x_1. Substitute into the Cl balance: 8x1=x1+2x1+2x6⇒2x6=5x1⇒x6=52x18x_1 = x_1 + 2x_1 + 2x_6 \Rightarrow 2x_6 = 5x_1 \Rightarrow x_6 = \tfrac{5}{2}x_1. Take x1=2x_1 = 2 to clear the fraction: x2=16x_2 = 16, x3=2x_3 = 2, x4=2x_4 = 2, x5=8x_5 = 8, x6=5x_6 = 5. The balanced equation is

    2 KMnO4+16 HCl⟶2 KCl+2 MnCl2+8 H2O+5 Cl2.2\,\mathrm{KMnO_4} + 16\,\mathrm{HCl} \longrightarrow 2\,\mathrm{KCl} + 2\,\mathrm{MnCl_2} + 8\,\mathrm{H_2O} + 5\,\mathrm{Cl_2}.

    (Chlorine check: right side 2+4+10=162 + 4 + 10 = 16 = left side.) ■\blacksquare