Tutorials › Linear Algebra › Leontief Workshop: Computing Output for Final Demand

Applications in Networks, Economics and Data · Tutorial 962 of 1000

Leontief Workshop: Computing Output for Final Demand

Learn how to arrange technical coefficients, solve the output system, verify sector balances, and interpret changes in final demand.

Intermediate 11 min read

What You'll Learn

  • Define technical coefficients and arrange them by supplying and producing sectors.
  • Translate sector balances into the matrix equation \(\mathbf{x}=\mathbf{A}\mathbf{x}+\mathbf{d}\).
  • Solve a numerical model using row reduction on an augmented matrix.
  • Verify a production plan by calculating each sector’s intermediate requirements.
  • Use a sufficient column-sum condition to guarantee a unique nonnegative plan.
  • Interpret how an increase in final demand changes required gross output.

From Sector Requirements to an Output Equation

An input-output model records how sectors rely on one another to produce goods or services. A sector’s output may be used by other sectors as an intermediate input, or it may meet final demand, such as household purchases or exports. The production plan must cover both uses. The central calculation is to find the gross output required in each sector, taking account of inputs that themselves need to be produced.

Consider \(n\) sectors. Let \(x_j\) be the gross output of sector \(j\), and let \(d_i\) be the final demand for the output of sector \(i\). The technical coefficient \(a_{ij}\) measures the amount of sector \(i\)'s output needed to produce one unit of sector \(j\)'s output. Thus the first index identifies the supplying sector and the second identifies the producing sector. Put these coefficients in \(\mathbf{A}=[a_{ij}]\), and collect outputs and final demands in columns \(\mathbf{x}\) and \(\mathbf{d}\). The total intermediate use of sector \(i\)'s output is \(\sum_{j=1}^{n}a_{ij}x_j\).

Definition: A Leontief input-output model with technical-coefficient matrix \(\mathbf{A}\in\mathbb{R}^{n\times n}\), gross-output vector \(\mathbf{x}\in\mathbb{R}^{n}\), and final-demand vector \(\mathbf{d}\in\mathbb{R}^{n}\) satisfies the sector-balance equation \(\mathbf{x}=\mathbf{A}\mathbf{x}+\mathbf{d}\). Entry \(a_{ij}\) is the amount of sector \(i\)'s output required per unit of sector \(j\)'s output.

The equation is a balance, not a claim that gross output equals final demand. For each sector, gross output must cover intermediate sales to all sectors plus final demand for that sector’s product. Rearranging gives \((\mathbf{I}_n-\mathbf{A})\mathbf{x}=\mathbf{d}\). This form is a linear system in the unknown gross outputs. When the system has a unique solution, that solution is the production plan matching the stated coefficients and demand.

The model assumes the coefficients stay fixed over the calculation: producing one unit of a sector’s output always requires the same amounts of each input. It also treats the entries and outputs as measured in compatible units. If the entries represent physical quantities, the units must be consistent; if they represent monetary amounts, they must use a consistent valuation. The calculation does not itself determine prices or choose an economically optimal plan.

Worked Solution for Two Sectors

Worked Example: Computing Output for Two Sectors

Suppose there are two sectors, and the technical coefficients and final demand are

$$ \mathbf{A}= \begin{bmatrix} \frac15&\frac1{10}\\ \frac1{10}&\frac15 \end{bmatrix}, \qquad \mathbf{d}= \begin{bmatrix} 72\\54 \end{bmatrix}. $$

For example, the entry \(a_{12}=\frac1{10}\) says that producing one unit of sector 2 requires \(\frac1{10}\) unit of sector 1’s output. Set \(\mathbf{B}=\mathbf{I}_2-\mathbf{A}\). The balance system is

$$ \begin{bmatrix} \frac45&-\frac1{10}\\ -\frac1{10}&\frac45 \end{bmatrix} \begin{bmatrix}x_1\\x_2\end{bmatrix} = \begin{bmatrix}72\\54\end{bmatrix}. $$

Multiply both equations by \(10\), then row-reduce the augmented matrix:

$$ \begin{aligned} \left[ \begin{array}{cc|c} \frac45&-\frac1{10}&72\\ -\frac1{10}&\frac45&54 \end{array} \right] &\sim \left[ \begin{array}{cc|c} 8&-1&720\\ -1&8&540 \end{array} \right] \\[-2pt] &\xrightarrow{R_2\to R_2+\frac18R_1} \left[ \begin{array}{cc|c} 8&-1&720\\ 0&\frac{63}{8}&630 \end{array} \right] \sim \left[ \begin{array}{cc|c} 8&-1&720\\ 0&1&80 \end{array} \right] \\[-2pt] &\xrightarrow{R_1\to R_1+R_2} \left[ \begin{array}{cc|c} 8&0&800\\ 0&1&80 \end{array} \right] \sim \left[ \begin{array}{cc|c} 1&0&100\\ 0&1&80 \end{array} \right]. \end{aligned} $$

Therefore \(\mathbf{x}=\begin{bmatrix}100&80\end{bmatrix}^{\top}\). Check the sector balances by calculating intermediate requirements first:

$$ \mathbf{A}\mathbf{x} = \begin{bmatrix} \frac15(100)+\frac1{10}(80)\\ \frac1{10}(100)+\frac15(80) \end{bmatrix} = \begin{bmatrix}28\\26\end{bmatrix}, \qquad \mathbf{A}\mathbf{x}+\mathbf{d} = \begin{bmatrix}28+72\\26+54\end{bmatrix} = \begin{bmatrix}100\\80\end{bmatrix} =\mathbf{x}. $$

Sector 1 therefore produces \(100\) units: \(28\) go to intermediate use and \(72\) meet final demand. Sector 2 produces \(80\) units: \(26\) go to intermediate use and \(54\) meet final demand. The sum of those two uses matches gross output in each sector.

A Sufficient Condition for a Unique Nonnegative Plan

Row reduction answers a particular numerical question. A useful general guarantee is available when all technical coefficients are nonnegative and each column sum is less than \(1\). The sum of column \(j\) is the total amount of intermediate inputs required per unit of output in sector \(j\). The condition is sufficient for a unique solution and, when final demand is nonnegative, for that solution to be nonnegative. It is not necessary: a model can have a unique solution even if this particular condition fails.

Theorem: Suppose \(\mathbf{A}\in\mathbb{R}^{n\times n}\) has nonnegative entries and \(\sum_{i=1}^{n}a_{ij}<1\) for every column \(j\). Then for every \(\mathbf{d}\in\mathbb{R}^{n}\) with nonnegative entries, the equation \(\mathbf{x}=\mathbf{A}\mathbf{x}+\mathbf{d}\) has a unique solution, and that solution has nonnegative entries.

Proof. Define \(q=\max_j\sum_i a_{ij}\), so \(0\le q<1\). For a matrix \(\mathbf{M}\), write \(\|\mathbf{M}\|_1=\max_j\sum_i|m_{ij}|\). For any two compatible square matrices \(\mathbf{M},\mathbf{N}\), the triangle inequality gives \(\sum_i|(\mathbf{M}\mathbf{N})_{ij}|\le\sum_k|n_{kj}|\sum_i|m_{ik}|\le\|\mathbf{M}\|_1\sum_k|n_{kj}|\). Taking the maximum over \(j\) shows \(\|\mathbf{M}\mathbf{N}\|_1\le\|\mathbf{M}\|_1\|\mathbf{N}\|_1\). Since \(\|\mathbf{A}\|_1=q\), repeated application gives \(\|\mathbf{A}^k\|_1\le q^k\) for each positive integer \(k\).

Now form \(\mathbf{S}_N=\mathbf{I}_n+\mathbf{A}+\cdots+\mathbf{A}^N\). For \(N>M\), the norm of \(\mathbf{S}_N-\mathbf{S}_M\) is at most \(\sum_{k=M+1}^{N}q^k\), which tends to \(0\) as \(M\) increases because \(q<1\). Thus the entries of \(\mathbf{S}_N\) converge to a matrix \(\mathbf{S}\). Direct multiplication and cancellation of consecutive powers give \((\mathbf{I}_n-\mathbf{A})\mathbf{S}_N=\mathbf{S}_N(\mathbf{I}_n-\mathbf{A})=\mathbf{I}_n-\mathbf{A}^{N+1}\). The bound \(\|\mathbf{A}^{N+1}\|_1\le q^{N+1}\) shows that \(\mathbf{A}^{N+1}\) tends to the zero matrix. Taking entrywise limits in the displayed identities gives \((\mathbf{I}_n-\mathbf{A})\mathbf{S}=\mathbf{S}(\mathbf{I}_n-\mathbf{A})=\mathbf{I}_n\). Hence \(\mathbf{I}_n-\mathbf{A}\) has inverse \(\mathbf{S}\), and \(\mathbf{x}=\mathbf{S}\mathbf{d}\) is the unique solution. Each power of \(\mathbf{A}\) has nonnegative entries, as does \(\mathbf{I}_n\), so each \(\mathbf{S}_N\) and its limit \(\mathbf{S}\) have nonnegative entries. Since \(\mathbf{d}\) is nonnegative, \(\mathbf{x}=\mathbf{S}\mathbf{d}\) is nonnegative. \(\square\)

For the two-sector example, both column sums are \(\frac15+\frac1{10}=\frac3{10}<1\). The theorem’s hypotheses hold, which guarantees uniqueness and nonnegative output for any nonnegative final-demand vector with those same technical coefficients. The row reduction above still matters: it gives the actual numerical plan for the specified demand.

A Three-Sector Calculation

Worked Example: Solving a Triangular Three-Sector Model

Suppose the technical coefficients and final demand are

$$ \mathbf{A}= \begin{bmatrix} \frac15&\frac1{10}&0\\ 0&\frac15&\frac1{10}\\ 0&0&\frac15 \end{bmatrix}, \qquad \mathbf{d}= \begin{bmatrix} 72\\58\\48 \end{bmatrix}. $$

Then \((\mathbf{I}_3-\mathbf{A})\mathbf{x}=\mathbf{d}\). Multiplying each equation by \(10\) gives the augmented system below. Use \(R_3\to\frac18R_3\), then \(R_2\to R_2+R_3\), \(R_2\to\frac18R_2\), \(R_1\to R_1+R_2\), and \(R_1\to\frac18R_1\):

$$ \begin{aligned} \left[ \begin{array}{ccc|c} 8&-1&0&720\\ 0&8&-1&580\\ 0&0&8&480 \end{array} \right] &\sim \left[ \begin{array}{ccc|c} 8&-1&0&720\\ 0&8&-1&580\\ 0&0&1&60 \end{array} \right] \sim \left[ \begin{array}{ccc|c} 8&-1&0&720\\ 0&8&0&640\\ 0&0&1&60 \end{array} \right]\\ &\sim \left[ \begin{array}{ccc|c} 8&-1&0&720\\ 0&1&0&80\\ 0&0&1&60 \end{array} \right] \sim \left[ \begin{array}{ccc|c} 8&0&0&800\\ 0&1&0&80\\ 0&0&1&60 \end{array} \right] \sim \left[ \begin{array}{ccc|c} 1&0&0&100\\ 0&1&0&80\\ 0&0&1&60 \end{array} \right]. \end{aligned} $$

The resulting plan is \(\mathbf{x}=\begin{bmatrix}100&80&60\end{bmatrix}^{\top}\). Verify all three balances:

$$ \mathbf{A}\mathbf{x} = \begin{bmatrix} 20+8+0\\ 0+16+6\\ 0+0+12 \end{bmatrix} = \begin{bmatrix}28\\22\\12\end{bmatrix}, \qquad \mathbf{A}\mathbf{x}+\mathbf{d} = \begin{bmatrix}28+72\\22+58\\12+48\end{bmatrix} = \begin{bmatrix}100\\80\\60\end{bmatrix} =\mathbf{x}. $$

For instance, sector 2’s output of \(80\) units must cover \(16\) units of intermediate use by sector 2, \(6\) units supplied to sector 3, and \(58\) units of final demand. The coefficient matrix’s column sums are \(\frac15\), \(\frac3{10}\), and \(\frac3{10}\), all less than \(1\), so the theorem also guarantees uniqueness and nonnegativity for this model with nonnegative final demand.

Interpreting a Change in Final Demand

With fixed technical coefficients, a change in final demand changes the right-hand side of the same linear system. The required change in gross output must cover the additional final demand and the intermediate inputs needed to produce that change. This is why the production increase need not equal the final-demand increase in each sector.

Worked Example: An Increase in Sector 1 Demand

Return to the two-sector model and increase sector 1 final demand by \(63\) units, leaving sector 2 demand unchanged. The change \(\Delta\mathbf{x}\) in gross output satisfies \((\mathbf{I}_2-\mathbf{A})\Delta\mathbf{x}=\begin{bmatrix}63&0\end{bmatrix}^{\top}\). Write \(\Delta\mathbf{x}=\begin{bmatrix}u&v\end{bmatrix}^{\top}\), and multiply the equations by \(10\):

$$ \left[ \begin{array}{cc|c} 8&-1&630\\ -1&8&0 \end{array} \right] \xrightarrow{R_2\to R_2+\frac18R_1} \left[ \begin{array}{cc|c} 8&-1&630\\ 0&\frac{63}{8}&\frac{315}{4} \end{array} \right] \sim \left[ \begin{array}{cc|c} 8&-1&630\\ 0&1&10 \end{array} \right] \xrightarrow{R_1\to R_1+R_2} \left[ \begin{array}{cc|c} 8&0&640\\ 0&1&10 \end{array} \right] \sim \left[ \begin{array}{cc|c} 1&0&80\\ 0&1&10 \end{array} \right]. $$

Thus the increase in gross output is \(\Delta\mathbf{x}=\begin{bmatrix}80&10\end{bmatrix}^{\top}\). Check the change-balance equation:

$$ \mathbf{A}\Delta\mathbf{x} = \begin{bmatrix} \frac15(80)+\frac1{10}(10)\\ \frac1{10}(80)+\frac15(10) \end{bmatrix} = \begin{bmatrix}17\\10\end{bmatrix}, \qquad \mathbf{A}\Delta\mathbf{x}+ \begin{bmatrix}63\\0\end{bmatrix} = \begin{bmatrix}80\\10\end{bmatrix} =\Delta\mathbf{x}. $$

The updated final-demand vector is \(\begin{bmatrix}135&54\end{bmatrix}^{\top}\), and the updated gross-output vector is the original plan plus its change: \(\begin{bmatrix}180&90\end{bmatrix}^{\top}\). Directly checking the updated balance gives \(\mathbf{A}\begin{bmatrix}180&90\end{bmatrix}^{\top}=\begin{bmatrix}45&36\end{bmatrix}^{\top}\), and \(\begin{bmatrix}45&36\end{bmatrix}^{\top}+\begin{bmatrix}135&54\end{bmatrix}^{\top}=\begin{bmatrix}180&90\end{bmatrix}^{\top}\). The extra \(63\) units of final demand in sector 1 therefore require increases in both sectors’ gross output.

Common Pitfall: Confusing Gross Output with Final Demand

A frequent mistake is to set \(\mathbf{x}=\mathbf{d}\), as though final demand were the whole output requirement. In the two-sector example, that would give the proposed plan \(\begin{bmatrix}72&54\end{bmatrix}^{\top}\). But its intermediate use is

$$ \mathbf{A}\begin{bmatrix}72\\54\end{bmatrix} = \begin{bmatrix} \frac{72}{5}+\frac{27}{5}\\ \frac{36}{5}+\frac{54}{5} \end{bmatrix} = \begin{bmatrix}\frac{99}{5}\\18\end{bmatrix}, \qquad \mathbf{A}\begin{bmatrix}72\\54\end{bmatrix} +\begin{bmatrix}72\\54\end{bmatrix} = \begin{bmatrix}\frac{459}{5}\\72\end{bmatrix} \ne \begin{bmatrix}72\\54\end{bmatrix}. $$

The proposed vector fails the sector-balance equation, so it is not a valid production plan. The correction is to solve \((\mathbf{I}_2-\mathbf{A})\mathbf{x}=\mathbf{d}\), then substitute the result into the original balance equation. A final check should compare gross output with intermediate use plus final demand separately for every sector; checking only one sector can miss an indexing or arithmetic error.

Check Your Understanding

Use the sector-balance equation and verify each proposed output by substitution.

  1. For \(\mathbf{A}=\begin{bmatrix}\frac14&\frac14\\0&\frac14\end{bmatrix}\) and \(\mathbf{d}=\begin{bmatrix}60&45\end{bmatrix}^{\top}\), find \(\mathbf{x}\) and check both balances.
  2. In a three-sector model, what does \(a_{31}\) measure? Which sector supplies the input, and which sector uses it?
  3. For the two-sector model in the tutorial, calculate the gross-output change when final demand changes by \(\begin{bmatrix}0&63\end{bmatrix}^{\top}\).
  4. State the column-sum condition in the theorem and explain what it guarantees when final demand is nonnegative.
  5. Explain why setting gross output equal to final demand generally fails when the technical-coefficient matrix has nonzero entries.

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