Skip to content

Matrices and determinants ​

The central question of this chapter: an economy has dozens of markets and hundreds of sectors, and equilibrium requires them all to clear at the same time — "at the same time" means simultaneity, and simultaneity means solving a system of equations. How do matrices and determinants compress the mutual dependence of many markets and sectors into a single multiplication and a single inversion?

The arc of this chapter ​

The determinant was born before the matrix: Leibniz invented the notation for determinants in 1693 to solve systems of linear equations, and Cramer (1704-1752) gave the solution formula bearing his name in 1750 — but under Cramer's rule the computational cost of a high-order determinant (the 100×100100 \times 100 size economics meets) is factorial: feasible in principle, useless in practice. The matrix as an object of its own had to wait for the nineteenth century: Sylvester (1814-1897) named it in 1850, Cayley (1821-1895) established matrix arithmetic and the theory of inverse matrices in 1858 — inventions of pure mathematics. What made the matrix a standard instrument of economics was Leontief's (1906-1999) input-output analysis of 1936: writing the economy as a matrix of transactions between sectors, and solving for equilibrium output in one line, x=(I−A)−1d\mathbf{x} = (I - A)^{-1}\mathbf{d}; he won the Nobel Prize in Economic Sciences in 1973 for it. Today, any comparative statics above two markets, any regression (chapter 11's β^=(X′X)−1X′y\hat{\beta} = (X'X)^{-1}X'y), any dynamic system (chapter 8's xt+1=Axt\mathbf{x}_{t+1} = A\mathbf{x}_t) speaks the language of matrices.

The route of the chapter: the matrix as "the algebra of a table of numbers" — addition, scalar multiplication, multiplication, transpose, inverse (multiplication and inversion are the real protagonists of the operations); the determinant as a single scalar "health check" of a square matrix — invertibility, the geometric reading in terms of volume; and then economics' three main arenas: simultaneous equilibrium (Gaussian elimination / Cramer's rule), input-output ((I−A)−1(I-A)^{-1}), and the linear approximation of general equilibrium (sign conditions in comparative statics).

Core concepts ​

Matrices and the basic operations ​

A matrix is an array of mm rows and nn columns, A=(aij)A = (a_{ij}), with aija_{ij} the element in row ii, column jj. Special types: row and column matrices, square matrices (equal numbers of rows and columns), symmetric matrices (A=ATA = A^T), skew-symmetric matrices (A=−ATA = -A^T), diagonal matrices, and the identity matrix II (ones on the diagonal). The operations: addition (A+B)ij=aij+bij(A+B)_{ij} = a_{ij} + b_{ij}, scalar multiplication (cA)ij=c aij(cA)_{ij} = c\,a_{ij}, transposition (AT)ij=aji(A^T)_{ij} = a_{ji}, and the non-trivial one, multiplication:

(AB)ij=∑kaikbkj(AB)_{ij} = \sum_{k} a_{ik} b_{kj}

— the dot product of row ii of AA with column jj of BB.

Why define multiplication this way (rather than element by element)? Because matrix multiplication is defined as the algebra of "composing transformations": apply BB's transformation first and then AA's, with the effect written ABAB. Rows and columns correspond to a pairing of "constraints × activities": in an input-output table aija_{ij} is the intermediate input that sector jj must buy from sector ii to produce one unit — multiply by xjx_j (the vector of sectoral output) and sum over jj, and you have exactly the multiplication that reads "total demand in each sector = intermediate demand + final demand". Two properties that follow from this must be remembered: multiplication does not commute (in general AB≠BAAB \neq BA — tax first and then subsidise is not the same as subsidise first and then tax) and it is associative (a chain of policies can be computed in stages).

The inverse matrix ​

If AA−1=A−1A=IAA^{-1} = A^{-1}A = I, AA is called invertible and A−1A^{-1} its inverse; only a square matrix can be invertible. The explicit formula for the second order: when A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} and det⁡A≠0\det A \neq 0, A−1=1ad−bc(d−b−ca)A^{-1} = \frac{1}{ad-bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}.

Why invent a "division"? Because solving a system of equations is division: if AA is invertible, the solution of Ax=bA\mathbf{x} = \mathbf{b} is x=A−1b\mathbf{x} = A^{-1}\mathbf{b}. Every case in economics of "structure known, find the equilibrium" is this one step: setting the two lines of IS-LM simultaneously is a 2×22 \times 2 inversion, input-output is an n×nn \times n inversion, and the regression coefficients are the inversion of (X′X)(X'X). The economics of a non-existent inverse is equally deep: a singular structural matrix means the equations are not independent — two "different" curves actually coincide or run parallel, and the equilibrium is not unique or does not exist. The mathematical condition for "does an equilibrium exist" in general equilibrium theory (the Jacobian being non-singular) is this chapter's language.

The determinant ​

The determinant is a scalar associated with a square matrix, det⁡(A)\det(A) (or ∣A∣|A|); geometrically it is the scaling rate of area or volume under a linear transformation, and algebraically it is the criterion for invertibility: AA is invertible if and only if det⁡(A)≠0\det(A) \neq 0. Low-order computation:

det⁡(abcd)=ad−bc,det⁡(abcdefghi)=a(ei−fh)−b(di−fg)+c(dh−eg)\det \begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc, \qquad \det \begin{pmatrix} a & b & c \\ d & e & f \\ g & h & i \end{pmatrix} = a(ei - fh) - b(di - fg) + c(dh - eg)

For higher orders use Laplace expansion (along row ii): det⁡(A)=∑j(−1)i+jaijdet⁡(Aij)\det(A) = \sum_{j} (-1)^{i+j} a_{ij} \det(A_{ij}), where AijA_{ij} is the submatrix with row ii and column jj removed. Useful properties: det⁡(AB)=det⁡(A)det⁡(B)\det(AB) = \det(A)\det(B), det⁡(AT)=det⁡(A)\det(A^T) = \det(A), and det⁡(A−1)=1/det⁡(A)\det(A^{-1}) = 1/\det(A).

Why does a single number settle the question of invertibility? The determinant quantifies "has the matrix flattened the space": det⁡=0\det = 0 means the volume after transformation is zero — information has been lost, the preimage is not unique, and the system cannot be solved backwards. The economics of it: det⁡(I−A)≠0\det(I - A) \neq 0 guarantees that the input-output system has a unique solution for any final demand; and the key criterion in comparative statics (the sign conditions on elasticities in chapter 4, in static comparison) is often delivered by the sign of some 2×22\times 2 determinant — in the linear demand-supply model, the condition for a unique equilibrium is precisely that the two lines have different slopes, which algebraically is a non-zero determinant.

Cramer's rule and Gaussian elimination ​

The solution of an nn-equation linear system Ax=bA\mathbf{x} = \mathbf{b}: Cramer's rule writes xj=det⁡(Aj)/det⁡(A)x_j = \det(A_j)/\det(A) (with AjA_j the matrix AA with its jj-th column replaced by b\mathbf{b}); computationally one uses Gaussian elimination (row operations to echelon form).

Why give both methods? Because they divide the work differently. Gaussian elimination is a numerical algorithm (of order n3n^3), used by computers and by hand alike. Cramer's rule is a symbolic machine — it expresses the solution as a ratio of determinants, and what comparative statics wants is the explicit expression of "how the parameters enter the solution" (how the xjx_j change when bb changes, as characterised by the expansion of det⁡(Aj)\det(A_j)). The comparative-statics tradition of general equilibrium economics — Samuelson's correspondence principle, the derivation of the Stolper-Samuelson theorem — runs exactly on this symbolic explicitness. The examples in this chapter solve the same system both ways precisely to contrast these two roles.

Problems and analysis ​

Why is one line of matrices enough for the input-output model? ​

Let there be nn sectors, with the direct-consumption matrix A=(aij)A = (a_{ij}) (aija_{ij} being the consumption of sector ii's product per unit of total output produced by sector jj), x\mathbf{x} the vector of total output and d\mathbf{d} the vector of final demand. The sectoral balance "total output = intermediate use + final use" becomes:

x=Ax+d⟹x=(I−A)−1d\mathbf{x} = A\mathbf{x} + \mathbf{d} \quad\Longrightarrow\quad \mathbf{x} = (I - A)^{-1}\mathbf{d}

(I−A)−1(I-A)^{-1} is called the Leontief inverse matrix and can be expanded as I+A+A2+⋯I + A + A^2 + \cdots — the (i,j)(i,j) entry of AkA^k reads as "the kk-round indirect consumption": when sector jj expands final demand by one unit, its total pull on sector ii equals the sum of the round-by-round transmission (structurally identical to the geometric series of the multiplier in chapter 3). One line of matrices compresses the whole transaction table: the policy question "how much does an extra 10 billion yuan of exports pull out of each sector" becomes a single multiplication. That is why the statistical offices of every country maintain input-output tables (China compiles one every five years, the latest being the 2020 table, as published by the National Bureau of Statistics).

When is a simultaneous market equilibrium not unique? ​

Set two linear markets simultaneously: the equilibrium is the intersection of two straight lines (or hyperplanes in higher dimensions). With nn equations and nn unknowns, the intersection is unique if and only if det⁡(A)≠0\det(A) \neq 0; when det⁡=0\det = 0 there is either no solution (parallel lines) or infinitely many (coincident lines) — the economics is that there is redundancy among the structural equations (one curve can be derived from the others, as under Walras' law where nn markets have only n−1n-1 independent equations), and then supplementary conditions (normalisation, choosing a numéraire) are needed before relative prices can be pinned down. The whole technical apparatus of the general equilibrium existence theorem (Kakutani's fixed point theorem) is what handles these "over-determined / under-determined" edge cases.

Derivations and worked examples ​

Example: two ways of solving a system of equations ​

{x+2y=53x+4y=6A=(1234), b=(56)\begin{cases} x + 2y = 5 \\ 3x + 4y = 6 \end{cases} \qquad A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix},\ \mathbf{b} = \begin{pmatrix} 5 \\ 6 \end{pmatrix}

Gaussian elimination: subtract three times the first row from the second: x+2y=5x + 2y = 5, −2y=−9⇒y=4.5-2y = -9 \Rightarrow y = 4.5, and back-substituting, x=5−9=−4x = 5 - 9 = -4.

Cramer's rule: det⁡A=1⋅4−2⋅3=−2\det A = 1\cdot 4 - 2 \cdot 3 = -2; det⁡(Ax)=det⁡(5264)=20−12=8⇒x=8−2=−4\det(A_x) = \det\begin{pmatrix} 5 & 2 \\ 6 & 4 \end{pmatrix} = 20 - 12 = 8 \Rightarrow x = \frac{8}{-2} = -4; and det⁡(Ay)=det⁡(1536)=6−15=−9⇒y=−9−2=4.5\det(A_y) = \det\begin{pmatrix} 1 & 5 \\ 3 & 6 \end{pmatrix} = 6 - 15 = -9 \Rightarrow y = \frac{-9}{-2} = 4.5. ✓

The solution is (x,y)=(−4,4.5)(x, y) = (-4, 4.5). The negative values themselves are a warning that the economic reading must be cautious: if xx is an output level, then under these parameters there is no "interior equilibrium" — the existence of a mathematical solution does not make it an economically usable one; the structural parameters must place the solution in the non-negative quadrant (positive output, positive prices) before it counts as an equilibrium. That is exactly the motivation for the inequality constraints handled by linear programming (chapter 12).

Checking that the inverse matrix exists ​

Here det⁡A=−2≠0\det A = -2 \neq 0, and A−1=−12(4−2−31)=(−211.5−0.5)A^{-1} = -\frac{1}{2}\begin{pmatrix} 4 & -2 \\ -3 & 1 \end{pmatrix} = \begin{pmatrix} -2 & 1 \\ 1.5 & -0.5 \end{pmatrix}. Check A−1bA^{-1}\mathbf{b}: first row −2×5+1×6=−4-2 \times 5 + 1 \times 6 = -4; second row 1.5×5−0.5×6=4.51.5 \times 5 - 0.5 \times 6 = 4.5 — matching the Gaussian elimination result ✓.

Limits and what comes next ​

First, nonlinearity and linearisation: real economic structures are nonlinear (utility functions, production functions, tax functions), and the matrix tools apply only after linearising near the equilibrium through the Jacobian matrix JJ (the square matrix of partial derivatives) — the sign conditions of comparative statics are all decided by det⁡J\det J and its subdeterminants; move too far from the equilibrium and the linear approximation breaks. Second, ill-conditioning and scale: when nn is large (national input-output tables readily run to hundreds of sectors), a "near-singular" matrix with a very small but non-zero determinant makes the inverse matrix blow up numerically — extreme sensitivity to perturbations of the parameters, which appears in econometrics under the name of multicollinearity (a near-singular X′XX'X makes the variance of β^\hat\beta explode). Third, what economics did afterwards: the eigenvalues and eigenvectors of the matrix (the next chapter) upgrade "static solution-finding" to "dynamic stability"; after Leontief, the social accounting matrix (SAM) extended input-output to income distribution and institutional accounts; and the Arrow-Debreu existence proof of general equilibrium (chapter 9) pushed matrix techniques up to the level of topological fixed point theorems.

References ​