Matrix Algebra for Economists: Operations, Determinants, Cramer’s Rule and Leontief Input-Output Analysis

July 26, 2026
Matrix Algebra for Economists: Operations, Determinants, Cramer’s Rule and Leontief Input-Output Analysis
An economy is a web of industries feeding into one another — steel needs coal, coal needs steel, both need electricity. Wassily Leontief won a Nobel Prize for turning that tangle into a grid of numbers you can solve all at once. The tool that makes it possible is matrix algebra, and it is far more approachable than its reputation suggests.
Ask how much steel an economy must produce, and the honest answer is: it depends on how much car-making there is, and construction, and shipbuilding — but car-making needs steel, which needs coal, which needs steel to mine it, and the chain never quite ends. Every industry’s output depends on every other’s, in a loop.
You cannot solve that one equation at a time, because the equations are all tangled together. You need a way to handle a whole system of interdependent relationships simultaneously — to solve for every industry’s output at once, accounting for all the feedback. That is exactly what matrix algebra was built to do, and Leontief’s input-output model, which earned the 1973 Nobel Prize, is its most celebrated economic application.

What a matrix is

A matrix is a rectangular grid of numbers, arranged in rows and columns. Its size is described as rows by columns, so a 2 by 3 matrix has 2 rows and 3 columns. In economics, matrices organise data with two dimensions — industries by industries, goods by markets. A single column of numbers is a vector, used for lists of outputs, prices or quantities. The power comes from the operations you can perform, which let you manipulate an entire system in one move.

The operations you need

Addition and subtraction work element by element, on matrices of the same size. Scalar multiplication multiplies every element by a single number — multiply a cost matrix by 1.1 to model a 10% price rise. Matrix multiplication is trickier and more powerful, and worth getting right because it makes economic models work.
The multiplication rule. To multiply two matrices, take each row of the first and each column of the second, multiply corresponding entries, and add them. That sum becomes one entry of the result. The number of columns in the first matrix must equal the number of rows in the second — otherwise the row and column do not line up.
Worked example. Multiply a 2 by 2 by a 2 by 1 (a coefficient matrix times an output vector). Rows of the first are [2 3] and [1 5]; the column is [4, 5]. Top: (2 times 4) + (3 times 5) = 8 + 15 = 23. Bottom: (1 times 4) + (5 times 5) = 4 + 25 = 29. The result is the column [23, 29].
Common error — assuming matrix multiplication is commutative. For ordinary numbers, 3 times 4 = 4 times 3. For matrices, AB is not generally equal to BA — the order matters, and often one order is not even defined while the other is. This reflects that matrices represent transformations, and doing transformation A then B differs from B then A. Always preserve the order the problem specifies.

The identity matrix and the inverse

The identity matrix is the matrix equivalent of the number 1 — 1s down the diagonal, 0s elsewhere — and multiplying any matrix by it leaves it unchanged. The inverse of a matrix A, written A inverse, is the analogue of a reciprocal: A times A inverse equals the identity. Just as dividing by a number means multiplying by its reciprocal, dividing by a matrix means multiplying by its inverse — and that is how you solve a matrix equation.
If a system is written Ax = b, where A is the coefficient matrix, x the unknowns and b the constants, the solution is:
Ax = b, so x = A inverse times b
Multiply both sides by the inverse of A to isolate x. This solves the entire system in one operation.

The determinant: does a solution exist?

Not every matrix has an inverse — just as zero has no reciprocal. The test is a single number, the determinant. If it is non-zero, the inverse exists and the system has a unique solution. If zero, no inverse exists. For a 2 by 2 matrix with rows [a b] and [c d]:
determinant = ad minus bc
Multiply the diagonal (a times d), subtract the off-diagonal (b times c). Non-zero means invertible.
Example. For rows [3 2] and [1 4], the determinant is (3 times 4) minus (2 times 1) = 12 minus 2 = 10. Non-zero, so a unique solution exists.
What a zero determinant means economically. It signals the equations are not truly independent — one is a combination of the others, carrying no new information. In an economic model this usually means the system is under-specified: not enough genuine constraints to pin down a unique answer. The determinant is a one-number check on whether your model is well-posed before you spend effort solving it.
Matrix methods anchor input-output analysis, general equilibrium and econometrics. The Economics Made Simple bundle introduces the linear algebra economists actually use, step by step, and the Case Studies collection includes worked input-output tables drawn from real national accounts.

Cramer’s Rule: solving without inverting

Inverting a matrix by hand is laborious. For small systems, Cramer’s Rule finds each unknown using only determinants. For a system Ax = b, each variable equals the determinant of A with one column replaced by b, divided by the determinant of A itself.
x_i = determinant of A_i, divided by determinant of A
A_i is A with its i-th column replaced by the constant vector b. One determinant per unknown, plus the main determinant.
Worked example. Solve: 3x + 2y = 12 and x + 4y = 14. Main determinant = (3 times 4) minus (2 times 1) = 10. For x, replace the first column with the constants: (12 times 4) minus (2 times 14) = 48 minus 28 = 20, so x = 20 over 10 = 2. For y, replace the second column: (3 times 14) minus (12 times 1) = 42 minus 12 = 30, so y = 30 over 10 = 3. Check: 3(2) + 2(3) = 12 and 2 + 4(3) = 14. Cramer’s Rule handled it with three small determinants and no inversion — a favourite for the two- and three-variable systems in exams, including supply-and-demand equilibria and IS-LM models.

The Leontief input-output model

Now the payoff — the application that won a Nobel Prize and that statistical agencies still run. The Leontief model answers our opening question: given the interdependence of industries, how much must each produce to meet a target final demand?
The key object is the technical coefficients matrix A, where each entry records how much of one industry’s output is needed to produce one unit of another’s. If making one pound of cars requires 30 pence of steel, the car-column, steel-row entry is 0.30. This matrix encodes the entire recipe of the economy.
Total output x must cover two things: what other industries consume as inputs (Ax), and what is left for final demand d — households, government, exports:
x = Ax + d
x = total output vector; Ax = inter-industry demand; d = final demand vector.
Solving for x is where the matrix algebra earns its keep. Rearrange: x minus Ax = d, factor using the identity (x = Ix), giving (I minus A)x = d, and then invert:
x = (I minus A) inverse, times d
(I minus A) inverse is the Leontief inverse — the matrix that converts any final-demand target into the total output every industry must produce.
Why the Leontief inverse is so powerful. It captures every round of knock-on effects at once. Producing more cars needs steel; that steel needs coal; that coal needs steel to mine it — an infinite chain of feedback. The Leontief inverse sums this entire infinite series into a single matrix. Each entry tells you the total output of one industry required, directly and indirectly, per unit of final demand for another. It is the mathematical form of everything depends on everything, solved.
This is not a museum piece. Statistical agencies including the US Bureau of Economic Analysis maintain detailed input-output tables, and the Leontief inverse computes economic multipliers — how much total activity a new factory or export order generates once all the supply-chain ripples are counted. Environmental economists use the same machinery to trace the total carbon embodied in a product across its entire supply chain.
Case Study — Leontief, Wartime Planning and the Birth of Big Data Economics
Leontief built the first input-output table of the US economy in the 1930s, a monumental data undertaking when calculations had to be done by hand and on early mechanical computers. The model divided the economy into industries and mapped the flows between every pair.
Its first major test was the Second World War. The government needed to know: if we ramp up aircraft and munitions to these levels, how much steel, aluminium, rubber and electricity must every supporting industry produce? These are exactly the questions the Leontief inverse answers. The model was used to plan wartime production and later to analyse the effects of demobilisation.
Leontief’s work also produced a famous puzzle. Applying his tables to US trade data in 1953, he found the US — the most capital-abundant country in the world — was exporting relatively labour-intensive goods and importing capital-intensive ones, contradicting the leading trade theory (Heckscher-Ohlin). The Leontief Paradox launched decades of research, forcing economists to refine trade theory to account for skills and technology.
He received the 1973 Nobel Prize for the input-output method. Its legacy is twofold: a practical planning tool still embedded in national accounts, and an early demonstration that large-scale data, organised into matrices and solved with linear algebra, could reveal things about an economy that no verbal reasoning could. It was, in a real sense, the beginning of data-driven macroeconomics.
Research Spotlight — Networks, Shocks and Why One Industry Can Sink an Economy
A modern revival: for decades input-output analysis was seen as a dated planning tool. Then network economics gave it a second life, using the same matrices to ask how small, localised shocks turn into economy-wide recessions.
The traditional view held that idiosyncratic shocks to individual firms — a factory fire, one company’s failure — should wash out in a large economy. Daron Acemoglu and co-authors (2012) challenged this using the structure of the input-output matrix itself. They showed that when the network of inter-industry links is concentrated — when a few key sectors supply inputs to many others — a shock to one of those hub sectors does not average away. It propagates through the network and generates aggregate fluctuations.
The mathematics is a direct extension of Leontief: the same technical-coefficients matrix that gives production requirements also describes how disturbances travel through the economy. Sectors that are hubs in the matrix are precisely those whose troubles become everyone’s troubles.
Why this matters for you: the 2020-2021 supply-chain crisis was input-output economics made vivid — a shortage of semiconductors (a hub input) cascaded into car production, electronics and appliances, exactly as the network structure of the coefficient matrix predicts. The Leontief matrix you learn for exam problems is the same object modern economists use to understand why a chip shortage can idle car factories on another continent.
AP & Cambridge A-Level Exam Technique
1. Check dimensions before multiplying. Columns of the first must equal rows of the second. State the dimensions of your result; spotting a mismatch is itself worth marks.
2. Preserve order. AB is not BA. Never silently swap the order of a matrix product.
3. Compute the determinant first. Before solving a system, find the determinant. If zero, stop — there is no unique solution, and saying so is the correct answer.
4. Use Cramer’s Rule for small systems. Usually faster than full inversion for 2 by 2 and 3 by 3 and less error-prone. One main determinant, then one modified determinant per variable.
5. For Leontief problems, set up (I minus A) carefully. Subtract the coefficient matrix from the identity, not the other way round. A frequent error is computing (A minus I).
6. Interpret the Leontief inverse entries. Each is the total (direct plus indirect) output of one industry needed per unit of final demand for another. State this meaning.
7. Always verify by substitution. Put your solution back into the original equations — matrix arithmetic has many chances for slips.

Practice Questions

Question 1 — Matrix operations (5 marks)
Given A with rows [2 1] and [3 4], and column vector b = [5, 6]. (a) State the dimensions of A and b. (b) Compute Ab. (c) Explain why bA is not defined.
(a) A is 2 by 2; b is 2 by 1. [1]
(b) Row 1: (2 times 5) + (1 times 6) = 16. Row 2: (3 times 5) + (4 times 6) = 39. Result = [16, 39]. [3]
(c) bA is (2 by 1) times (2 by 2). The columns of b (1) do not equal the rows of A (2), so the product is undefined. [1]
Question 2 — Determinant and Cramer’s Rule (7 marks)
Solve using Cramer’s Rule: 5x + 3y = 29 and 2x + 4y = 24.
Main determinant: (5 times 4) minus (3 times 2) = 20 minus 6 = 14. Non-zero, so a unique solution exists. [3]
For x: replace first column with constants: (29 times 4) minus (3 times 24) = 116 minus 72 = 44. x = 44 over 14 = 3.14. [2]
For y: replace second column: (5 times 24) minus (29 times 2) = 120 minus 58 = 62. y = 62 over 14 = 4.43. [2]
Question 3 — Leontief setup (6 marks)
A two-sector economy has technical coefficient matrix A with rows [0.2 0.3] and [0.4 0.1]. (a) Form (I minus A). (b) Find its determinant. (c) Explain what x = (I minus A) inverse times d represents.
(a) I minus A has rows [0.8, minus 0.3] and [minus 0.4, 0.9]. [2]
(b) determinant = (0.8 times 0.9) minus (minus 0.3 times minus 0.4) = 0.72 minus 0.12 = 0.60. Non-zero, so the Leontief inverse exists. [2]
(c) It gives the total output each sector must produce (x) to satisfy a given final demand (d), accounting for all inter-industry inputs each sector requires from the other, including all indirect knock-on requirements captured by the Leontief inverse. [2]
Question 4 — Application and evaluation (10 marks)
The Leontief input-output model is used by governments for planning and multiplier analysis. Evaluate its usefulness and limitations as a tool for predicting the economy-wide effects of a change in demand.
Strengths: [4] Captures interdependence — the Leontief inverse sums an infinite chain of direct and indirect requirements into one matrix. Computes true multipliers, quantifying how a demand change ripples through every supply chain (total, not just direct, effects). Empirically grounded in actual input-output tables. Versatile — the same framework now traces embodied carbon and models how sector shocks propagate through networks.

Limitations: [4] Fixed coefficients — it assumes producing cars always needs the same proportion of steel, ignoring input substitution when prices change. Constant returns to scale — output scales linearly, ruling out economies of scale and capacity limits. No prices or behaviour — the basic model is a quantity framework with no market clearing or optimisation. Data lag — tables are huge to compile and often years out of date. Static — a snapshot, not the adjustment path.

Judgement: The model is genuinely powerful for its core purpose — mapping interdependence and computing the total economy-wide effect of a demand change including all indirect ripples — making it invaluable for multiplier and supply-chain questions simpler methods cannot address. But its fixed-coefficient, constant-returns, price-free assumptions mean it is best treated as a structural map of the economy’s plumbing rather than a precise forecasting tool. It reliably answers if these flows hold, what total output is required, but is weaker at predicting how the flows themselves change when prices and technology respond. Used with awareness of these limits, often alongside models that do incorporate prices, it remains one of the most useful applications of matrix algebra in economics.

Summary

Matrix algebra is the mathematics of handling many interdependent relationships at once. A matrix is a grid of numbers; the operations let you manipulate whole systems, with the cautions that dimensions must conform and that multiplication does not commute. The determinant tells you whether a system has a unique solution, and the inverse plays the role of a reciprocal, letting you solve Ax = b as x = A inverse times b. Cramer’s Rule offers a determinant-only shortcut ideal for small systems.
The crowning application is Leontief’s input-output model, x = (I minus A) inverse times d, which solves the tangle of inter-industry dependence in one stroke — the Leontief inverse summing every round of supply-chain feedback into a single matrix. It won a Nobel Prize, planned wartime production, and lives on today in national accounts, carbon-footprint analysis, and network models that explain how a shortage in one hub industry can idle factories across the world. Matrix algebra is not abstract machinery; it is the map of how an economy hangs together.

References

  1. Acemoglu, D., Carvalho, V.M., Ozdaglar, A. and Tahbaz-Salehi, A. (2012) The network origins of aggregate fluctuations, Econometrica, 80(5), pp. 1977-2016.
  2. Chiang, A.C. and Wainwright, K. (2005) Fundamental Methods of Mathematical Economics. 4th edn. New York: McGraw-Hill.
  3. Leontief, W. (1936) Quantitative input and output relations in the economic system of the United States, Review of Economics and Statistics, 18(3), pp. 105-125.
  4. Leontief, W. (1953) Domestic production and foreign trade, Proceedings of the American Philosophical Society, 97(4), pp. 332-349.
  5. Miller, R.E. and Blair, P.D. (2009) Input-Output Analysis: Foundations and Extensions. 2nd edn. Cambridge: Cambridge University Press.

Related Posts

Elasticity Mathematics: Point vs Arc Elasticity, Cross-Price Elasticity and the Lerner Index

Elasticity is a precise number with a precise formula — and which formula you use changes the answer. A complete guide to the mathematics of elasticity: the arc (midpoint) method, point elasticity with calculus, why linear demand has changing elasticity, the revenue rule, income and cross-price elasticity, and the Lerner Index as a measure of monopoly power — with worked examples and exam technique.

Elasticity Mathematics: Point vs Arc Elasticity, Cross-Price Elasticity and the Lerner Index

Elasticity is a precise number with a precise formula — and which formula you use changes the answer. A complete guide to the mathematics of elasticity: the arc (midpoint) method, point elasticity with calculus, why linear demand has changing elasticity, the revenue rule, income and cross-price elasticity, and the Lerner Index as a measure of monopoly power — with worked examples and exam technique.