Advanced Economics‹›⌂ 0:00 studied

Module 14 · 13 min read · Free chapter

Matrices, linear programming and input-output

In short

Matrices let economists solve many equations at once. Linear programming finds the best plan under linear constraints, and its dual gives shadow prices of scarce resources. The Leontief input-output model links sectors through a technology matrix: gross output X = (I − A)⁻¹F. The Hawkins-Simon conditions ensure the economy is viable, with every sector producing positive output.

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: why tables of numbers?

A planner's problem. Steel is needed to make coal-mining machines, and coal is needed to make steel. If the government wants 100 more tractors for farmers, how much more steel, coal and electricity must every industry produce? Each industry depends on the others, so the answer is not a single sum but a web of linked equations.

Why matrices. When many variables are linked by many equations, writing them one by one becomes messy. A matrix packs all the coefficients into one table and lets us solve the whole system at once. That is why matrices power input-output analysis, linear programming, regression and the second-order tests of the previous chapter.

The plan. This chapter first covers matrix basics: inverse, determinant and rank. It then explains eigenvalues and their use, linear programming and its dual, and finally Leontief's input-output model with the Hawkins-Simon conditions.

Matrices, determinants, inverse and rank

What a matrix is. A matrix is a rectangular array with m rows and n columns, written as an m×nm \times n matrix. A matrix with one column is a column vector, such as a list of outputs, and one with one row is a row vector, such as a list of prices. Matrices of the same order can be added, and multiplication ABAB is defined when the columns of A equal the rows of B.

Systems of equations. A set of linear equations can be written compactly as

Ax=bAx = b

where A holds the coefficients, x the unknowns and b the constants. For a square A, the solution is x=A−1bx = A^{-1}b, provided the inverse A−1A^{-1} exists. The inverse satisfies AA−1=IAA^{-1} = I, the identity matrix.

The determinant. For a 2×22 \times 2 matrix with rows (a,b)(a, b) and (c,d)(c, d), the determinant is ad−bcad - bc. A square matrix has an inverse only if its determinant is non-zero, in which case it is called non-singular. Cramer's rule solves each unknown as a ratio of two determinants, which is handy for small economic models such as two-market equilibrium.

Rank. The rank of a matrix is the largest number of linearly independent rows (or columns). A square matrix of order n is non-singular exactly when its rank is n, called full rank. If one row is a combination of others, it adds no new information, the rank falls and the system has either no solution or infinitely many.

Rank in regression. In multiple regression, the matrix X of regressors must have full column rank so that X′XX'X can be inverted. If one regressor is an exact linear combination of others, there is perfect multicollinearity and the separate coefficients cannot be estimated. With a single regressor this problem cannot arise unless the regressor is constant, which is why the assumption matters mainly for multiple regression.

Eigenvalues, quadratic forms and principal components

Definition. For a square matrix A, a non-zero vector v is an eigenvector if multiplying it by A only stretches it: Av=λvAv = \lambda v. The stretch factor λ\lambda is the eigenvalue. Eigenvalues are found from the characteristic equation det⁡(A−λI)=0\det(A - \lambda I) = 0.

Useful facts. The sum of the eigenvalues equals the trace (sum of diagonal elements), and their product equals the determinant. A symmetric matrix, such as a covariance matrix or a Hessian, always has real eigenvalues, and its eigenvectors for different eigenvalues are at right angles. A matrix is singular if and only if one eigenvalue is zero.

Quadratic forms and definiteness. A quadratic form x′Axx'Ax is positive definite if all eigenvalues of the symmetric A are positive, and negative definite if all are negative. Equivalently, the leading principal minors are all positive for positive definite, and alternate in sign starting negative for negative definite. This is exactly the second-order test for minima and maxima met in the previous chapter.

Dynamics. Eigenvalues also decide the stability of linear dynamic systems. In a system xt+1=Axtx_{t+1} = Ax_t, the path converges to zero if all eigenvalues are less than one in absolute value. The next chapter uses this idea for difference equations.

Principal component analysis. Economists often face many correlated indicators, such as several measures of development. Principal component analysis (PCA) finds the eigenvectors of their covariance or correlation matrix; the first principal component is the combination with the largest eigenvalue, explaining the most variance. Composite indices of development and financial inclusion are often built this way, and PCA also helps tackle multicollinearity in regression.

Linear programming

Origins and idea. Linear programming (LP) grew in the 1940s from wartime planning; Kantorovich in the USSR and Dantzig in the USA developed it, and Koopmans linked it to economics. It chooses the values of decision variables to maximise or minimise a linear objective, such as profit or cost, subject to linear constraints like limited machine hours, and non-negativity. Unlike calculus methods, it handles inequalities and corner solutions naturally.

Formulation. A firm making two goods with profits of ₹4 and ₹3 per unit, using a machine with 8 hours where good 1 needs 1 hour and good 2 needs 2 hours, and facing sales limits of 6 and 3 units, solves:

max⁡π=4x1+3x2 subject to x1+2x2≤8,  x1≤6,  x2≤3,  x1,x2≥0\max \pi = 4x_1 + 3x_2 \text{ subject to } x_1 + 2x_2 \le 8,\; x_1 \le 6,\; x_2 \le 3,\; x_1, x_2 \ge 0

Writing the objective, the constraints and the non-negativity conditions clearly is half the marks in any LP question.

Key terms. A feasible solution satisfies all constraints. A basic feasible solution is a corner point of the feasible region, obtained by setting some variables (including slack variables) to zero and solving for the rest. An optimal solution is a feasible solution that gives the best value of the objective.

The graphical method. With two variables, draw each constraint as a line and shade the side that satisfies it; the overlap is the feasible region, a convex polygon. Then slide the iso-profit (or iso-cost) line outward (or inward) until it last touches the region. In the example the corners are (0,0), (6,0), (6,1), (2,3) and (0,3), giving profits 0, 24, 27, 17 and 9, so the optimum is x1=6x_1 = 6, x2=1x_2 = 1 with π=27\pi = 27.

Why corners. Because the objective is linear and the region is convex, the best point is always at a corner, or along an edge if the objective is parallel to a constraint (multiple optima). The region may be empty (no feasible solution) or unbounded (no finite maximum). The simplex method moves from one corner to a better adjacent corner until no improvement is possible, which solves problems with many variables.

Duality and shadow prices

Every LP has a twin. For each linear programme, called the primal, there is a dual built from the same numbers. If the primal maximises p′xp'x subject to Ax≤bAx \le b and x≥0x \ge 0, the dual minimises b′yb'y subject to A′y≥pA'y \ge p and y≥0y \ge 0. Each primal constraint gets one dual variable, and each primal variable gives one dual constraint.

Economic meaning. In the primal, a firm chooses outputs x to maximise revenue from prices p, given resources b and input requirements A. In the dual, an outsider wants to buy the firm's resources and chooses prices y for them to minimise the total cost b′yb'y. The dual constraints A′y≥pA'y \ge p say the imputed value of the resources used in each product must be at least that product's price, or the firm would rather produce than sell.

The duality theorem. If both problems have feasible solutions, both have optima and the optimal values are equal: maximum revenue equals the minimum imputed value of resources. So the whole value of output is exactly accounted for by the resources, much like product exhaustion in distribution theory. This links LP to the theory of competitive prices.

Shadow prices. The optimal dual variables y∗y^* are shadow prices: each shows how much the maximum profit would rise if one more unit of that resource were available. They play the same role as Lagrange multipliers in calculus optimisation, but for inequality constraints. A manager can compare a shadow price with the market price of a resource to decide whether buying more is worthwhile.

Complementary slackness. If a resource is not fully used at the optimum (it has slack), its shadow price is zero: an extra unit would add nothing. Conversely, if a product's imputed cost exceeds its price, that product is not produced. These conditions let one solve one problem from the solution of the other.

Leontief's input-output model

Why it was built. Wassily Leontief, who won the Nobel Prize in 1973, built input-output tables for the US economy in the 1930s. He wanted to trace how every industry buys from and sells to every other, so that the effect of a change in final demand could be followed through the whole economy. Indian planners used such tables from the Second Five-Year Plan, and input-output tables still underlie national accounts and supply-use tables.

The open model. Let aija_{ij} be the amount of good i needed to make one rupee (or unit) of good j; these technical coefficients form the matrix A. Gross output of each industry must cover inter-industry use plus final demand d: X=AX+dX = AX + d. So

X=(I−A)−1dX = (I - A)^{-1} d

Each column of A shows one industry's input recipe, and each row shows where one industry's output goes.

The Leontief inverse. The matrix (I−A)−1(I - A)^{-1} is the Leontief inverse. Its element in row i, column j shows the total (direct plus indirect) output of industry i needed to deliver one extra unit of final demand for good j. Its diagonal elements are at least one, all elements are non-negative in a viable system, and it can be written as the series I+A+A2+…I + A + A^2 + \dots, showing rounds of indirect demand.

Hawkins-Simon conditions. For the system to produce positive outputs for any positive final demand, the matrix I−AI - A must have all leading principal minors positive. For two industries this means 1−a11>01 - a_{11} > 0, 1−a22>01 - a_{22} > 0 and (1−a11)(1−a22)−a12a21>0(1 - a_{11})(1 - a_{22}) - a_{12}a_{21} > 0. Economically, each industry must use less than one unit of its own output per unit produced, and the economy as a whole must produce more than it uses up as inputs, leaving a surplus for final demand.

Primary inputs and employment. If ljl_j is labour needed per unit of output j, total employment is L=l′XL = l'X. A planner can then check whether the labour (or capital, or foreign exchange) required for a target final demand is available. The column sums of A plus primary input coefficients must be less than one in value terms, so that each industry covers its costs.

The closed model. In the closed model, households are treated as one more industry: their "output" is labour and their "inputs" are consumption goods. There is then no exogenous final demand, the system (I−A)X=0(I - A)X = 0 determines only relative outputs, and a non-trivial solution needs det⁡(I−A)=0\det(I - A) = 0. The open model suits planning and impact studies; the closed model suits the study of balanced proportions and growth.

Descriptive lens: how papers ask this, and how to answer

Questions on this chapter take these forms: rank and the full-rank assumption in regression; eigenvalues and principal components; defining feasible, basic feasible and optimal solutions; graphical LP for maximisation and minimisation, often a word problem to formulate first; the dual and its shadow-price meaning; and input-output numericals (Leontief inverse, required outputs, employment) with the Hawkins-Simon conditions and the open versus closed model.

Answer plan for an input-output numerical.

  • Write X=AX+dX = AX + d and hence X=(I−A)−1dX = (I - A)^{-1}d.
  • Form I−AI - A, check the Hawkins-Simon conditions, and find its inverse (cofactors over determinant).
  • Multiply by d to get outputs; multiply by labour coefficients to get employment.
  • Interpret one row, one column and one element of the inverse in words.

Answer plan for "Give the economic interpretation of the dual." State the primal (maximise revenue subject to resources) and write the dual (minimise imputed resource value subject to covering each product's price). Explain shadow prices, the equality of optimal values and complementary slackness, and link dual variables to Lagrange multipliers.

Our practice questions (written by us for practice, not previous-year questions):

  1. Find the rank of a 3 × 3 matrix whose third row is the sum of the first two, and explain the implication for solving Ax=bAx = b. (8 marks)
  2. Minimise C=3x+2yC = 3x + 2y subject to x+y≥4x + y \ge 4, x+3y≥6x + 3y \ge 6, x,y≥0x, y \ge 0 graphically. (10 marks)
  3. Write the dual of a firm's two-product, three-resource LP and interpret its variables. (15 marks)
  4. For AA with rows (0.2, 0.3) and (0.4, 0.1), check the Hawkins-Simon conditions and find the Leontief inverse. (15 marks)
  5. "Eigenvalues tell us both about the shape of a function and about stability." Explain. (10 marks)

Keywords: matrix, vector, order, identity matrix, inverse, determinant, non-singular, Cramer's rule, rank, full rank, perfect multicollinearity, eigenvalue, eigenvector, characteristic equation, trace, symmetric matrix, quadratic form, positive and negative definite, principal minors, principal component analysis, linear programming, objective function, constraints, non-negativity, feasible region, feasible solution, basic feasible solution, optimal solution, iso-profit line, corner point, simplex, unbounded, infeasible, primal, dual, duality theorem, shadow price, complementary slackness, Leontief, technical coefficients, open model, closed model, Leontief inverse, Hawkins-Simon conditions, viability, primary inputs, employment.

Quick revision

  • Ax=bAx = b has the unique solution x=A−1bx = A^{-1}b if det⁡A≠0\det A \ne 0 (full rank). Rank = number of independent rows; full column rank of X is needed for OLS in multiple regression.
  • Av=λvAv = \lambda v; eigenvalues from det⁡(A−λI)=0\det(A - \lambda I) = 0; sum = trace, product = determinant; symmetric matrices have real eigenvalues. All positive: positive definite; all negative: negative definite. PCA uses eigenvectors of the covariance matrix.
  • LP: linear objective, linear constraints, non-negativity. Feasible, basic feasible (corner), optimal solutions. Graphical method: shade the feasible region, slide the iso-profit line; the optimum is at a corner. Simplex moves corner to corner.
  • Dual: max p′xp'x s.t. Ax≤bAx \le b ↔ min b′yb'y s.t. A′y≥pA'y \ge p; optimal values equal; dual variables are shadow prices; slack resource has zero shadow price.
  • Input-output: X=(I−A)−1dX = (I - A)^{-1}d; Leontief inverse = direct plus indirect requirements; Hawkins-Simon: leading principal minors of I−AI - A positive; employment =l′X= l'X; closed model includes households and needs det⁡(I−A)=0\det(I - A) = 0.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. A square matrix has an inverse if and only if:

  2. If one regressor is an exact linear combination of the others, the X matrix:

  3. The product of the eigenvalues of a square matrix equals its:

  4. In principal component analysis, the first principal component is:

  5. In a linear programming problem, an optimal solution, if it exists, lies:

  6. Maximise π = 4x₁ + 3x₂ subject to x₁ + 2x₂ ≤ 8, x₁ ≤ 6, x₂ ≤ 3, x ≥ 0. The maximum profit is:

  7. A basic feasible solution of an LP corresponds to:

  8. If a resource is not fully used at the LP optimum, its shadow price is:

  9. By the duality theorem, at the optimum:

  10. In the open input-output model, gross output is given by:

  11. The Hawkins-Simon conditions require that:

  12. In Leontief's closed model:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Quantitative methods