M301 · Linear Algebra · Week 2 Recap

Applications Practice: Section 1.6

This recap is problems only. Three problems are worked in full below; four more are left for you, with solutions you can open after trying. All eight come from the exercises of Section 1.6 and none of them appeared in the lecture or in Homework 2.

The routine used in every problem
  1. Translate the story into a system of linear equations (one equation per sector, element, or junction).
  2. Write the augmented matrix of the system.
  3. Row reduce, one operation at a time.
  4. Read off the general solution, then apply the extra requirements of the problem (natural numbers, nonnegative flows, a fixed price, and so on).

Worked problems

Problem 1 (Section 1.6, Exercise 6): a precipitation reaction

When solutions of sodium phosphate and barium nitrate are mixed, the result is barium phosphate (as a precipitate) and sodium nitrate. Balance the unbalanced equation \[(x_1)\,\mathrm{Na_3PO_4}+(x_2)\,\mathrm{Ba(NO_3)_2}\ \longrightarrow\ (x_3)\,\mathrm{Ba_3(PO_4)_2}+(x_4)\,\mathrm{NaNO_3}.\]

Solution. Step 1 (equations). For each compound build a vector listing its atoms of sodium (Na), phosphorus (P), oxygen (O), barium (Ba), and nitrogen (N). Count carefully: \(\mathrm{Ba(NO_3)_2}\) has \(2\) N and \(6\) O; \(\mathrm{Ba_3(PO_4)_2}\) has \(3\) Ba, \(2\) P, \(8\) O: \[\mathrm{Na_3PO_4}:\begin{bmatrix}3\\1\\4\\0\\0\end{bmatrix},\quad \mathrm{Ba(NO_3)_2}:\begin{bmatrix}0\\0\\6\\1\\2\end{bmatrix},\quad \mathrm{Ba_3(PO_4)_2}:\begin{bmatrix}0\\2\\8\\3\\0\end{bmatrix},\quad \mathrm{NaNO_3}:\begin{bmatrix}1\\0\\3\\0\\1\end{bmatrix}.\] The balance condition is the vector equation \(x_1\mathbf v_1+x_2\mathbf v_2=x_3\mathbf v_3+x_4\mathbf v_4\). Comparing the two sides one entry at a time gives one equation per element: the first entries (sodium) give \(3x_1=x_4\), the second entries (phosphorus) give \(x_1=2x_3\), the third entries (oxygen) give \(4x_1+6x_2=8x_3+3x_4\), the fourth entries (barium) give \(x_2=3x_3\), and the fifth entries (nitrogen) give \(2x_2=x_4\). Moving every term to the left produces the homogeneous system \[\begin{aligned}3x_1-x_4&=0\\ x_1-2x_3&=0\\ 4x_1+6x_2-8x_3-3x_4&=0\\ x_2-3x_3&=0\\ 2x_2-x_4&=0\end{aligned}\]

Steps 2 and 3. Row reduce the augmented matrix. Swap \(R_1\leftrightarrow R_2\) to get a leading 1, then clear column 1 (\(R_2\to R_2-3R_1\), \(R_3\to R_3-4R_1\)): \[\left[\begin{array}{cccc|c}3&0&0&-1&0\\1&0&-2&0&0\\4&6&-8&-3&0\\0&1&-3&0&0\\0&2&0&-1&0\end{array}\right]\sim \left[\begin{array}{cccc|c}1&0&-2&0&0\\0&0&6&-1&0\\0&6&0&-3&0\\0&1&-3&0&0\\0&2&0&-1&0\end{array}\right]\] Swap \(R_2\leftrightarrow R_4\) to put a 1 in the second pivot, then clear column 2 (\(R_3\to R_3-6R_2\), \(R_5\to R_5-2R_2\)) and scale \(R_3\to\tfrac13R_3\): \[\sim\left[\begin{array}{cccc|c}1&0&-2&0&0\\0&1&-3&0&0\\0&0&18&-3&0\\0&0&6&-1&0\\0&0&6&-1&0\end{array}\right]\sim \left[\begin{array}{cccc|c}1&0&-2&0&0\\0&1&-3&0&0\\0&0&6&-1&0\\0&0&6&-1&0\\0&0&6&-1&0\end{array}\right]\] Rows 3, 4, 5 are now identical, so \(R_4\to R_4-R_3\) and \(R_5\to R_5-R_3\) produce two zero rows: \[\sim\left[\begin{array}{cccc|c}1&0&-2&0&0\\0&1&-3&0&0\\0&0&6&-1&0\\0&0&0&0&0\\0&0&0&0&0\end{array}\right]\] Five equations collapsed to three: the element balances are not independent.

Step 4 (read and answer). The pivots are in columns 1, 2, 3, so \(x_4\) is free. Read the nonzero rows from the bottom up, each one as an equation, and solve each for its pivot variable. Row 3 says \(6x_3-x_4=0\); solving for \(x_3\) gives \(\boldsymbol{x_3=\tfrac16x_4}\). Row 2 says \(x_2-3x_3=0\), that is, \(x_2=3x_3\); substituting \(x_3=\tfrac16x_4\) gives \(\boldsymbol{x_2=\tfrac12x_4}\). Row 1 says \(x_1-2x_3=0\), that is, \(x_1=2x_3\); substituting \(x_3=\tfrac16x_4\) again gives \(\boldsymbol{x_1=\tfrac13x_4}\). The smallest natural numbers come from \(x_4=6\): \[2\,\mathrm{Na_3PO_4}+3\,\mathrm{Ba(NO_3)_2}\ \longrightarrow\ \mathrm{Ba_3(PO_4)_2}+6\,\mathrm{NaNO_3}.\] Check. Na: \(6=6\). P: \(2=2\). O: \(8+18=26=8+18\). Ba: \(3=3\). N: \(6=6\).

Problem 2 (Section 1.6, Exercise 11): a small network

Find the general flow pattern of the network shown in the figure. Assuming that the flows are all nonnegative, what is the largest possible value for \(x_3\)?

20 80 x₁ x₃ x₂ x₄ A B C
Figure 1. The network of Problem 3 (redrawn from the textbook figure).

Solution. Step 1 (one equation per junction, flow in = flow out).

JunctionFlow inFlow out
A\(x_1+x_3\)\(=\)\(20\)
B\(x_2\)\(=\)\(x_3+x_4\)
C\(80\)\(=\)\(x_1+x_2\)

Steps 2 and 3. Rearrange with unknowns on the left and row reduce: \(R_3\to R_3-R_1\), then \(R_3\to R_3-R_2\): \[\left[\begin{array}{cccc|c}1&0&1&0&20\\0&1&-1&-1&0\\1&1&0&0&80\end{array}\right]\sim \left[\begin{array}{cccc|c}1&0&1&0&20\\0&1&-1&-1&0\\0&1&-1&0&60\end{array}\right]\sim \left[\begin{array}{cccc|c}1&0&1&0&20\\0&1&-1&-1&0\\0&0&0&1&60\end{array}\right]\] The pivots are in columns 1, 2, 4, so \(x_3\) is free.

Step 4 (read and answer). Read the rows from the bottom up, each one as an equation. Row 3 says \(\boldsymbol{x_4=60}\). Row 2 says \(x_2-x_3-x_4=0\), that is, \(x_2=x_3+x_4\); substituting \(x_4=60\) gives \(\boldsymbol{x_2=60+x_3}\). Row 1 says \(x_1+x_3=20\), so \(\boldsymbol{x_1=20-x_3}\). The general flow pattern is \[x_1=20-x_3,\qquad x_2=60+x_3,\qquad x_4=60,\qquad x_3\text{ free}.\] Nonnegativity: \(x_1\ge0\) forces \(x_3\le20\), and \(x_3\ge0\) allows anything up to that. The largest possible value of \(x_3\) is 20 (then \(x_1=0\): all the traffic reaching A comes along the branch \(x_3\)).

Check with the whole network. Total in is \(80\); total out is \(20+x_4=80\), so \(x_4=60\), which agrees with the reduction.

Problem 3 (Section 1.6, Exercise 12): a freeway network

(a) Find the general traffic pattern in the freeway network shown in the figure (flow rates in cars/minute). (b) Describe the general traffic pattern when the road whose flow is \(x_4\) is closed. (c) When \(x_4=0\), what is the minimum value of \(x_1\)?

200 40 100 60 x₁ x₂ x₃ x₄ x₅ B A C D
Figure 2. The freeway network of Problem 4 (redrawn from the textbook figure).

Solution. Step 1 (one equation per junction).

JunctionFlow inFlow out
A\(x_1\)\(=\)\(40+x_3+x_4\)
B\(200\)\(=\)\(x_1+x_2\)
C\(x_2+x_3\)\(=\)\(100+x_5\)
D\(x_4+x_5\)\(=\)\(60\)

(Whole-network check: in \(=200\), out \(=40+100+60=200\); consistent.)

Steps 2 and 3. With unknowns on the left, in the order B, A, C, D, the augmented matrix reduces by \(R_2\to R_2-R_1\), then \(R_3\to R_3+R_2\), then \(R_4\to R_4+R_3\): \[\left[\begin{array}{ccccc|c}1&1&0&0&0&200\\1&0&-1&-1&0&40\\0&1&1&0&-1&100\\0&0&0&1&1&60\end{array}\right]\sim \left[\begin{array}{ccccc|c}1&1&0&0&0&200\\0&-1&-1&-1&0&-160\\0&1&1&0&-1&100\\0&0&0&1&1&60\end{array}\right]\sim \left[\begin{array}{ccccc|c}1&1&0&0&0&200\\0&-1&-1&-1&0&-160\\0&0&0&-1&-1&-60\\0&0&0&1&1&60\end{array}\right]\sim \left[\begin{array}{ccccc|c}1&1&0&0&0&200\\0&-1&-1&-1&0&-160\\0&0&0&-1&-1&-60\\0&0&0&0&0&0\end{array}\right]\] Pivots in columns 1, 2, 4; the free variables are \(x_3\) and \(x_5\).

Step 4 (read and answer).

(a) Read the nonzero rows from the bottom up, each one as an equation, and solve each for its pivot variable. Row 3 says \(-x_4-x_5=-60\), that is, \(x_4+x_5=60\); solving for the pivot variable gives \(\boldsymbol{x_4=60-x_5}\). Row 2 says \(-x_2-x_3-x_4=-160\), that is, \(x_2=160-x_3-x_4\); substituting the expression \(x_4=60-x_5\) from row 3 gives \(x_2=160-x_3-(60-x_5)\), that is, \(\boldsymbol{x_2=100-x_3+x_5}\). Row 1 says \(x_1+x_2=200\), so \(x_1=200-x_2\); substituting the expression for \(x_2\) gives \(x_1=200-(100-x_3+x_5)\), that is, \(\boldsymbol{x_1=100+x_3-x_5}\). The general traffic pattern is \[x_1=100+x_3-x_5,\qquad x_2=100-x_3+x_5,\qquad x_4=60-x_5,\qquad x_3,x_5\text{ free}.\]

(b) Closing the \(x_4\) road means \(x_4=0\). The general pattern says \(x_4=60-x_5\), so \(60-x_5=0\), that is, \(x_5=60\). Substituting \(x_5=60\) into the expressions for \(x_1\) and \(x_2\): \[x_1=40+x_3,\qquad x_2=160-x_3,\qquad x_4=0,\qquad x_5=60,\qquad x_3\text{ free}.\] All the traffic for D must now arrive along \(x_5\).

(c) With \(x_4=0\) we have \(x_1=40+x_3\) and \(x_3\ge0\), so the minimum value of \(x_1\) is 40, reached when \(x_3=0\).

Now you try

Work each problem on paper with the same four-step routine before opening the solution. The solutions show the full reduction so you can compare line by line.

Exercise A (Section 1.6, Exercise 4): a four-sector economy

An economy has four sectors: Agriculture (A), Energy (E), Manufacturing (M), and Transportation (T). Sector A sells 10% of its output to E and 25% to M, and retains the rest. Sector E sells 30% of its output to A, 35% to M, and 25% to T, and retains the rest. Sector M sells 30% of its output to A, 15% to E, and 40% to T, and retains the rest. Sector T sells 20% of its output to A, 10% to E, and 30% to M, and retains the rest.

(a) Construct the exchange table for this economy. (b) Find a set of equilibrium prices. (The numbers are not round; fractions or a calculator will help in the last steps.)

Solution

(a) Each column describes one sector's output; the diagonal entry is what the sector retains, chosen so that the column sums to 1.

from Afrom Efrom Mfrom TPurchased by
0.650.300.300.20Agriculture
0.100.100.150.10Energy
0.250.350.150.30Manufacturing
00.250.400.40Transportation

(b) Step 1. Income = expenses, one equation per row, unknowns on the left: \[\begin{aligned}0.35p_A-0.30p_E-0.30p_M-0.20p_T&=0\\-0.10p_A+0.90p_E-0.15p_M-0.10p_T&=0\\-0.25p_A-0.35p_E+0.85p_M-0.30p_T&=0\\-0.25p_E-0.40p_M+0.60p_T&=0\end{aligned}\]

Step 2. Before writing the augmented matrix, multiply every equation by 20 to clear the decimals (scaling a row is an elementary row operation): \[\left[\begin{array}{cccc|c}7&-6&-6&-4&0\\-2&18&-3&-2&0\\-5&-7&17&-6&0\\0&-5&-8&12&0\end{array}\right]\]

Step 3. There is no entry equal to 1, so create one: \(R_1\to R_1+3R_2\) gives the leading entry \(7+3(-2)=1\). Then clear column 1 with \(R_2\to R_2+2R_1\) and \(R_3\to R_3+5R_1\): \[\sim\left[\begin{array}{cccc|c}1&48&-15&-10&0\\0&114&-33&-22&0\\0&233&-58&-56&0\\0&-5&-8&12&0\end{array}\right]\] Swap \(R_2\leftrightarrow R_4\) so that the small row does the work of the second pivot. To avoid fractions, scale before adding: \(R_3\to5R_3\) then \(R_3\to R_3+233R_2\), and \(R_4\to5R_4\) then \(R_4\to R_4+114R_2\): \[\sim\left[\begin{array}{cccc|c}1&48&-15&-10&0\\0&-5&-8&12&0\\0&0&-2154&2516&0\\0&0&-2154&2516&0\end{array}\right]\sim \left[\begin{array}{cccc|c}1&48&-15&-10&0\\0&-5&-8&12&0\\0&0&-1077&1258&0\\0&0&0&0&0\end{array}\right]\] (\(R_4\to R_4-R_3\) produced the zero row, and then \(R_3\to\tfrac12R_3\); as always for an exchange economy, one equation is redundant.)

Step 4. The pivots are in columns 1, 2, 3, so \(p_T\) is free. Work upward one row at a time. Row 3 says \(-1077p_M+1258p_T=0\), so \(\boldsymbol{p_M=\tfrac{1258}{1077}p_T}\). Row 2 says \(-5p_E-8p_M+12p_T=0\), so \(p_E=\tfrac15(12p_T-8p_M)\); substituting \(p_M=\tfrac{1258}{1077}p_T\) gives \(p_E=\tfrac15\cdot\tfrac{12\cdot1077-8\cdot1258}{1077}p_T\), that is, \(\boldsymbol{p_E=\tfrac{572}{1077}p_T}\). Row 1 says \(p_A+48p_E-15p_M-10p_T=0\), so \(p_A=-48p_E+15p_M+10p_T\); substituting the two expressions just found gives \(p_A=\tfrac{-48\cdot572+15\cdot1258+10\cdot1077}{1077}p_T\), that is, \(\boldsymbol{p_A=\tfrac{2184}{1077}p_T}\). Taking \(p_T=1077\) gives the integer price vector \(\mathbf p=(2184,\ 572,\ 1258,\ 1077)\); taking \(p_T=100\) and rounding to two decimals gives \[p_A\approx202.79,\qquad p_E\approx53.11,\qquad p_M\approx116.81,\qquad p_T=100.\] Check on the last equation: \(-0.25(53.11)-0.40(116.81)+0.60(100)=-13.28-46.72+60=0\).

Exercise B (Section 1.6, Exercise 7): Alka-Seltzer

Alka-Seltzer contains sodium bicarbonate (\(\mathrm{NaHCO_3}\)) and citric acid (\(\mathrm{H_3C_6H_5O_7}\)). When a tablet is dissolved in water, the following reaction produces sodium citrate, water, and carbon dioxide: \[(x_1)\,\mathrm{NaHCO_3}+(x_2)\,\mathrm{H_3C_6H_5O_7}\ \longrightarrow\ (x_3)\,\mathrm{Na_3C_6H_5O_7}+(x_4)\,\mathrm{H_2O}+(x_5)\,\mathrm{CO_2}.\] Balance the equation. (Count the atoms of Na, H, C, and O in each compound; note that \(\mathrm{H_3C_6H_5O_7}\) contains \(3+5=8\) hydrogen atoms.)

Solution

Step 1. Atom vectors, in the order (Na, H, C, O): \[\mathrm{NaHCO_3}:\begin{bmatrix}1\\1\\1\\3\end{bmatrix},\quad \mathrm{H_3C_6H_5O_7}:\begin{bmatrix}0\\8\\6\\7\end{bmatrix},\quad \mathrm{Na_3C_6H_5O_7}:\begin{bmatrix}3\\5\\6\\7\end{bmatrix},\quad \mathrm{H_2O}:\begin{bmatrix}0\\2\\0\\1\end{bmatrix},\quad \mathrm{CO_2}:\begin{bmatrix}0\\0\\1\\2\end{bmatrix}.\] Comparing the entries of the vector equation \(x_1\mathbf v_1+x_2\mathbf v_2=x_3\mathbf v_3+x_4\mathbf v_4+x_5\mathbf v_5\) one at a time: the first entries (sodium) give \(x_1=3x_3\), the second entries (hydrogen) give \(x_1+8x_2=5x_3+2x_4\), the third entries (carbon) give \(x_1+6x_2=6x_3+x_5\), and the fourth entries (oxygen) give \(3x_1+7x_2=7x_3+x_4+2x_5\). Moving every term to the left produces the homogeneous system \[\begin{aligned}x_1-3x_3&=0\\ x_1+8x_2-5x_3-2x_4&=0\\ x_1+6x_2-6x_3-x_5&=0\\ 3x_1+7x_2-7x_3-x_4-2x_5&=0\end{aligned}\]

Steps 2 and 3. Clear column 1 (\(R_2\to R_2-R_1\), \(R_3\to R_3-R_1\), \(R_4\to R_4-3R_1\)), then scale \(R_2\to\tfrac12R_2\): \[\left[\begin{array}{ccccc|c}1&0&-3&0&0&0\\1&8&-5&-2&0&0\\1&6&-6&0&-1&0\\3&7&-7&-1&-2&0\end{array}\right]\sim \left[\begin{array}{ccccc|c}1&0&-3&0&0&0\\0&4&-1&-1&0&0\\0&6&-3&0&-1&0\\0&7&2&-1&-2&0\end{array}\right]\] Clear column 2 without fractions: \(R_3\to2R_3\) then \(R_3\to R_3-3R_2\); and \(R_4\to4R_4\) then \(R_4\to R_4-7R_2\): \[\sim\left[\begin{array}{ccccc|c}1&0&-3&0&0&0\\0&4&-1&-1&0&0\\0&0&-3&3&-2&0\\0&0&15&3&-8&0\end{array}\right]\] Finally \(R_4\to R_4+5R_3\), then \(R_4\to\tfrac1{18}R_4\): \[\sim\left[\begin{array}{ccccc|c}1&0&-3&0&0&0\\0&4&-1&-1&0&0\\0&0&-3&3&-2&0\\0&0&0&1&-1&0\end{array}\right]\]

Step 4. The pivots are in columns 1, 2, 3, 4, so \(x_5\) is free. Work upward row by row. Row 4 says \(x_4-x_5=0\), so \(\boldsymbol{x_4=x_5}\). Row 3 says \(-3x_3+3x_4-2x_5=0\); substituting \(x_4=x_5\) turns it into \(-3x_3+x_5=0\), so \(\boldsymbol{x_3=\tfrac13x_5}\). Row 2 says \(4x_2-x_3-x_4=0\), that is, \(4x_2=x_3+x_4\); substituting \(x_3=\tfrac13x_5\) and \(x_4=x_5\) gives \(4x_2=\tfrac43x_5\), so \(\boldsymbol{x_2=\tfrac13x_5}\). Row 1 says \(x_1-3x_3=0\), so \(x_1=3x_3\); substituting \(x_3=\tfrac13x_5\) gives \(\boldsymbol{x_1=x_5}\). The smallest natural numbers come from \(x_5=3\): \[3\,\mathrm{NaHCO_3}+\mathrm{H_3C_6H_5O_7}\ \longrightarrow\ \mathrm{Na_3C_6H_5O_7}+3\,\mathrm{H_2O}+3\,\mathrm{CO_2}.\] Check. Na: \(3=3\). H: \(3+8=11=5+6\). C: \(3+6=9=6+3\). O: \(9+7=16=7+3+6\).

Exercise C (Section 1.6, Exercise 8): permanganate and manganese sulfate

The following reaction between potassium permanganate (\(\mathrm{KMnO_4}\)) and manganese sulfate in water produces manganese dioxide, potassium sulfate, and sulfuric acid: \[(x_1)\,\mathrm{KMnO_4}+(x_2)\,\mathrm{MnSO_4}+(x_3)\,\mathrm{H_2O}\ \longrightarrow\ (x_4)\,\mathrm{MnO_2}+(x_5)\,\mathrm{K_2SO_4}+(x_6)\,\mathrm{H_2SO_4}.\] Balance the equation. For each compound, construct a vector that lists the numbers of atoms of potassium (K), manganese, oxygen, sulfur, and hydrogen.

Solution

Step 1. Atom vectors in the order (K, Mn, O, S, H): \[\mathrm{KMnO_4}:\begin{bmatrix}1\\1\\4\\0\\0\end{bmatrix},\ \mathrm{MnSO_4}:\begin{bmatrix}0\\1\\4\\1\\0\end{bmatrix},\ \mathrm{H_2O}:\begin{bmatrix}0\\0\\1\\0\\2\end{bmatrix},\ \mathrm{MnO_2}:\begin{bmatrix}0\\1\\2\\0\\0\end{bmatrix},\ \mathrm{K_2SO_4}:\begin{bmatrix}2\\0\\4\\1\\0\end{bmatrix},\ \mathrm{H_2SO_4}:\begin{bmatrix}0\\0\\4\\1\\2\end{bmatrix}\] Comparing the entries of \(x_1\mathbf v_1+x_2\mathbf v_2+x_3\mathbf v_3=x_4\mathbf v_4+x_5\mathbf v_5+x_6\mathbf v_6\): the first entries (potassium) give \(x_1=2x_5\), the second entries (manganese) give \(x_1+x_2=x_4\), the third entries (oxygen) give \(4x_1+4x_2+x_3=2x_4+4x_5+4x_6\), the fourth entries (sulfur) give \(x_2=x_5+x_6\), and the fifth entries (hydrogen) give \(2x_3=2x_6\). Moving every term to the left produces the homogeneous system \[\begin{aligned}x_1-2x_5&=0\\ x_1+x_2-x_4&=0\\ 4x_1+4x_2+x_3-2x_4-4x_5-4x_6&=0\\ x_2-x_5-x_6&=0\\ 2x_3-2x_6&=0\end{aligned}\]

Steps 2 and 3. Clear column 1 (\(R_2\to R_2-R_1\), \(R_3\to R_3-4R_1\)): \[\left[\begin{array}{cccccc|c}1&0&0&0&-2&0&0\\1&1&0&-1&0&0&0\\4&4&1&-2&-4&-4&0\\0&1&0&0&-1&-1&0\\0&0&2&0&0&-2&0\end{array}\right]\sim \left[\begin{array}{cccccc|c}1&0&0&0&-2&0&0\\0&1&0&-1&2&0&0\\0&4&1&-2&4&-4&0\\0&1&0&0&-1&-1&0\\0&0&2&0&0&-2&0\end{array}\right]\] Clear column 2 (\(R_3\to R_3-4R_2\), \(R_4\to R_4-R_2\)), and scale \(R_5\to\tfrac12R_5\): \[\sim\left[\begin{array}{cccccc|c}1&0&0&0&-2&0&0\\0&1&0&-1&2&0&0\\0&0&1&2&-4&-4&0\\0&0&0&1&-3&-1&0\\0&0&1&0&0&-1&0\end{array}\right]\] Clear column 3 (\(R_5\to R_5-R_3\)), then column 4 (\(R_5\to R_5+2R_4\)): \[\sim\left[\begin{array}{cccccc|c}1&0&0&0&-2&0&0\\0&1&0&-1&2&0&0\\0&0&1&2&-4&-4&0\\0&0&0&1&-3&-1&0\\0&0&0&-2&4&3&0\end{array}\right]\sim \left[\begin{array}{cccccc|c}1&0&0&0&-2&0&0\\0&1&0&-1&2&0&0\\0&0&1&2&-4&-4&0\\0&0&0&1&-3&-1&0\\0&0&0&0&-2&1&0\end{array}\right]\]

Step 4. There are five pivots for six unknowns, so one variable stays free. Row 5 says \(-2x_5+x_6=0\), that is, \(\boldsymbol{x_6=2x_5}\); this ties \(x_5\) and \(x_6\) together, and it is convenient to use \(x_5\) as the parameter. Now work upward. Row 4 says \(x_4-3x_5-x_6=0\), so \(x_4=3x_5+x_6\); substituting \(x_6=2x_5\) gives \(\boldsymbol{x_4=5x_5}\). Row 3 says \(x_3+2x_4-4x_5-4x_6=0\), so \(x_3=-2x_4+4x_5+4x_6\); substituting \(x_4=5x_5\) and \(x_6=2x_5\) gives \(x_3=-10x_5+4x_5+8x_5\), that is, \(\boldsymbol{x_3=2x_5}\). Row 2 says \(x_2-x_4+2x_5=0\), so \(x_2=x_4-2x_5\); substituting \(x_4=5x_5\) gives \(\boldsymbol{x_2=3x_5}\). Row 1 says \(x_1-2x_5=0\), so \(\boldsymbol{x_1=2x_5}\). Taking \(x_5=1\): \[2\,\mathrm{KMnO_4}+3\,\mathrm{MnSO_4}+2\,\mathrm{H_2O}\ \longrightarrow\ 5\,\mathrm{MnO_2}+\mathrm{K_2SO_4}+2\,\mathrm{H_2SO_4}.\] Check. K: \(2=2\). Mn: \(2+3=5\). O: \(8+12+2=22=10+4+8\). S: \(3=1+2\). H: \(4=4\).

Exercise D (Section 1.6, Exercise 13): a larger network

(a) Find the general flow pattern in the network shown in the figure. (b) Assuming that the flow must be in the directions indicated, find the minimum flows in the branches denoted by \(x_2\), \(x_3\), \(x_4\), and \(x_5\).

30 80 60 20 40 100 40 90 x₁ x₂ x₃ x₅ x₄ x₆ A B C D E
Figure 3. The network of Exercise D (redrawn from the textbook figure).
Solution

Step 1. Flow in equals flow out at each of the five junctions:

JunctionFlow inFlow out
A\(30+x_2\)\(=\)\(80+x_1\)
B\(x_3+x_5\)\(=\)\(x_2+x_4\)
C\(100\)\(=\)\(40+x_5+x_6\)
D\(40+x_4+x_6\)\(=\)\(90\)
E\(60+x_1\)\(=\)\(20+x_3\)

Steps 2 and 3. With unknowns on the left (rows in the order A, B, C, D, E): \[\left[\begin{array}{cccccc|c}-1&1&0&0&0&0&50\\0&-1&1&-1&1&0&0\\0&0&0&0&1&1&60\\0&0&0&1&0&1&50\\-1&0&1&0&0&0&40\end{array}\right]\] \(R_1\to-R_1\), then \(R_5\to R_5+R_1\) (using the new \(R_1=[1,-1,0,0,0,0\mid-50]\)): \[\sim\left[\begin{array}{cccccc|c}1&-1&0&0&0&0&-50\\0&-1&1&-1&1&0&0\\0&0&0&0&1&1&60\\0&0&0&1&0&1&50\\0&-1&1&0&0&0&-10\end{array}\right]\] \(R_2\to-R_2\), then \(R_5\to R_5+R_2\) (with the new \(R_2=[0,1,-1,1,-1,0\mid0]\)): \[\sim\left[\begin{array}{cccccc|c}1&-1&0&0&0&0&-50\\0&1&-1&1&-1&0&0\\0&0&0&0&1&1&60\\0&0&0&1&0&1&50\\0&0&0&1&-1&0&-10\end{array}\right]\] Use \(R_4\), whose leading entry is in column 4, to clear \(R_5\): the operation \(R_5\to R_5-R_4\) gives \([0,0,0,0,-1,-1\mid-60]\), and then \(R_5\to R_5+R_3\) gives a zero row. Finally swap \(R_3\leftrightarrow R_4\) so the pivots step down to the right: \[\sim\left[\begin{array}{cccccc|c}1&-1&0&0&0&0&-50\\0&1&-1&1&-1&0&0\\0&0&0&1&0&1&50\\0&0&0&0&1&1&60\\0&0&0&0&0&0&0\end{array}\right]\] (rows reordered into echelon position). Pivots in columns 1, 2, 4, 5; the free variables are \(x_3\) and \(x_6\).

Step 4.

(a) Read the nonzero rows from the bottom up, each one as an equation. Row 4 says \(x_5+x_6=60\), so \(\boldsymbol{x_5=60-x_6}\). Row 3 says \(x_4+x_6=50\), so \(\boldsymbol{x_4=50-x_6}\). Row 2 says \(x_2-x_3+x_4-x_5=0\), so \(x_2=x_3-x_4+x_5\); substituting \(x_4=50-x_6\) and \(x_5=60-x_6\) gives \(x_2=x_3-(50-x_6)+(60-x_6)\), that is, \(\boldsymbol{x_2=x_3+10}\) (the \(x_6\) terms cancel). Row 1 says \(x_1-x_2=-50\), so \(x_1=x_2-50\); substituting \(x_2=x_3+10\) gives \(\boldsymbol{x_1=x_3-40}\). The general flow pattern is \[x_1=x_3-40,\qquad x_2=x_3+10,\qquad x_4=50-x_6,\qquad x_5=60-x_6,\qquad x_3,x_6\text{ free}.\]

(b) All flows must be nonnegative. \(x_1=x_3-40\ge0\) forces \(x_3\ge40\), so the minimum of \(x_3\) is \(40\); then \(x_2=x_3+10\ge50\), so the minimum of \(x_2\) is \(50\). From \(x_4=50-x_6\ge0\) we get \(x_6\le50\), and \(x_6\) can be as large as that, so the minimum of \(x_4\) is \(0\) (at \(x_6=50\)); at that point \(x_5=60-50=10\), and \(x_5\) cannot go lower because \(x_6\le50\). So the minimum of \(x_5\) is \(10\). Summary: \(x_2\ge50\), \(x_3\ge40\), \(x_4\ge0\), \(x_5\ge10\).