Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Part II: Static Macroeconomic Models and Comparative Statics

kapitaali.com

Connects to: Principles Parts I–II


The models of Principles Part II were presented qualitatively and graphically. The IS curve was a downward-sloping line; the LM curve an upward-sloping one; their intersection determined equilibrium — and shifts of those curves were analyzed by moving pictures in the (Y,i)(Y, i) plane. That graphical approach builds invaluable intuition, but it has limits. It cannot tell you the exact size of the fiscal multiplier as a function of the model parameters. It cannot handle the open-economy extension (Mundell–Fleming) with three markets simultaneously without becoming unwieldy. And it provides no leverage for comparative statics — the precise derivative of equilibrium output with respect to, say, the money supply.

This part strips away the geometry and replaces it with algebra. Every model from Principles Parts I–II is translated into a system of equations, solved explicitly using the linear algebra tools of Chapter 2, and subjected to systematic comparative statics. The payoffs are:

  • Exact multiplier formulas. Not “the output rises” but ΔY=h/(h+brk)ΔG\Delta Y^* = h/(h + b_r k)\cdot\Delta G, from which we can immediately read off when fiscal policy is powerful (large hh, small brkb_r k) and when it is impotent (small hh, or brkb_r k \to \infty).

  • Policy counterfactuals. Given a specific calibration (say, the U.S. economy in 2009), we can compute exactly what the model predicts about the ARRA multiplier, not merely what direction it points.

  • Transition to dynamic models. The static multipliers derived here are the limiting cases of the dynamic impulse responses we will compute in Parts V–VII. Seeing the connection makes both clearer.

The four chapters cover: the IS–LM model (Chapter 6), the Keynesian cross and multiplier algebra (Chapter 7), the AS–AD model (Chapter 8), and the full taxonomy of fiscal multipliers including the ELB formula (Chapter 9).


Chapter 6: Solving the IS–LM Model

Matrix Inversion and Cramer’s Rule for Policy Analysis

“The IS–LM model is simple enough to solve in closed form and rich enough to generate most of the qualitative results of more sophisticated models.”

Cross-reference: Principles Ch. 9 (IS–LM derivation and policy analysis); Ch. 22 (fiscal policy); Ch. 23 (monetary policy); Ch. 21 (open economy, Mundell–Fleming) [P:Ch.9, P:Ch.22, P:Ch.23, P:Ch.21]


6.1 From Curves to Equations

Principles Chapter 9 derived the IS and LM curves graphically and used them to analyze fiscal and monetary policy. Here we write those curves as explicit linear equations, stack them into a matrix system, and use the tools of Chapter 2 to solve for equilibrium and compute all policy multipliers in closed form.

The strategy has three steps. First, write the IS and LM conditions as two equations in two unknowns (Y,i)(Y, i). Second, solve the 2×22\times2 system by matrix inversion or Cramer’s rule. Third, differentiate the solution with respect to every policy variable to obtain the multipliers. Steps one and two require the algebra of Chapter 2; step three uses the implicit function theorem of Chapter 1.

6.1.1 The IS Equation

The IS curve is the goods-market equilibrium condition. In the closed economy, it requires that aggregate expenditure E\mathcal{E} equals aggregate output YY:

Y=C(YT)+I(r)+G.Y = C(Y - T) + I(r) + G.

Using a linear consumption function C(yd)=a+bYdC(y^d) = a + bY^d with marginal propensity to consume b(0,1)b \in (0,1) and autonomous consumption a>0a > 0, and the linear investment function I(r)=IˉbrrI(r) = \bar{I} - b_r r with sensitivity br>0b_r > 0:

Y=a+b(YT)+Iˉbrr+G.Y = a + b(Y - T) + \bar{I} - b_r r + G.

Rearranging, and using riπer \approx i - \pi^e with πe\pi^e exogenous (so that rr and ii differ by the constant πe\pi^e which we absorb into parameters):

YbY=abT+Iˉbri+G    Y(1b)=Aˉbri,Y - bY = a - bT + \bar{I} - b_r i + G \implies Y(1-b) = \bar{A} - b_r i,

where Aˉ=abT+Iˉ+G+brπe\bar{A} = a - bT + \bar{I} + G + b_r\pi^e collects all autonomous expenditure. The IS equation is thus:

Y+br1bi=Aˉ1b,or equivalentlyY=Aˉ1bbr1bi.Y + \frac{b_r}{1-b}i = \frac{\bar{A}}{1-b}, \quad \text{or equivalently} \quad Y = \frac{\bar{A}}{1-b} - \frac{b_r}{1-b}i.

Writing more compactly with κG1/(1b)\kappa_G \equiv 1/(1-b) (the Keynesian multiplier) and letting βrbr/(1b)\beta_r \equiv b_r/(1-b):

Y=κGAˉβri.\boxed{Y = \kappa_G\bar{A} - \beta_r i.}

This is the IS equation: a downward-sloping relationship in (Y,i)(Y, i) space with slope 1/βr-1/\beta_r (or equivalently, when plotted with ii on the vertical axis, slope 1/βr-1/\beta_r in ii per unit of YY).

6.1.2 The LM Equation

The LM curve is the money-market equilibrium condition. Real money demand L(Y,i)=kYhiL(Y, i) = kY - hi (where k>0k > 0 is income elasticity and h>0h > 0 is interest semi-elasticity) equals real money supply M/PM/P:

kYhi=MP.kY - hi = \frac{M}{P}.

Solving for ii:

i=khY1hMP.\boxed{i = \frac{k}{h}Y - \frac{1}{h}\frac{M}{P}.}

This is the LM equation: an upward-sloping relationship in (Y,i)(Y, i) space with slope k/hk/h.


6.2 The IS–LM System in Matrix Form

Stacking the IS and LM equations in the form Ay=bA\mathbf{y} = \mathbf{b}:

(1βrkh)A(Yi)y=(κGAˉM/P)b.\underbrace{\begin{pmatrix} 1 & \beta_r \\ k & -h \end{pmatrix}}_{A}\underbrace{\begin{pmatrix} Y \\ i \end{pmatrix}}_{\mathbf{y}} = \underbrace{\begin{pmatrix} \kappa_G\bar{A} \\ -M/P \end{pmatrix}}_{\mathbf{b}}.

Definition 6.1 (IS–LM Coefficient Matrix). The matrix A=(1βrkh)A = \begin{pmatrix} 1 & \beta_r \\ k & -h \end{pmatrix} encodes the structural parameters of the IS–LM model. It is nonsingular (invertible) when det(A)0\det(A) \neq 0.

Computing the determinant:

det(A)=(1)(h)(βr)(k)=hβrk=(h+βrk)<0.\det(A) = (1)(-h) - (\beta_r)(k) = -h - \beta_r k = -(h + \beta_r k) < 0.

Since h>0h > 0, βr>0\beta_r > 0, and k>0k > 0, the determinant is strictly negative, so AA is always invertible and the IS–LM system always has a unique solution. This is the algebraic counterpart to the graphical statement that the IS and LM curves always intersect in exactly one point (given upward-sloping LM and downward-sloping IS).

6.2.1 Direct Matrix Inversion

The inverse of the 2×22\times2 matrix AA:

A1=1det(A)(hβrk1)=1(h+βrk)(hβrk1).A^{-1} = \frac{1}{\det(A)}\begin{pmatrix} -h & -\beta_r \\ -k & 1 \end{pmatrix} = \frac{1}{-(h+\beta_r k)}\begin{pmatrix} -h & -\beta_r \\ -k & 1 \end{pmatrix}.

The solution y=A1b\mathbf{y}^* = A^{-1}\mathbf{b}:

(Yi)=1h+βrk(hβrk1)(κGAˉM/P).\begin{pmatrix} Y^* \\ i^* \end{pmatrix} = \frac{1}{h + \beta_r k}\begin{pmatrix} h & \beta_r \\ k & -1 \end{pmatrix}\begin{pmatrix} \kappa_G\bar{A} \\ -M/P \end{pmatrix}.

Working out the products:

Y=hκGAˉ+βr(M/P)h+βrk\boxed{Y^* = \frac{h\kappa_G\bar{A} + \beta_r(M/P)}{h + \beta_r k}}
i=kκGAˉ(M/P)h+βrk\boxed{i^* = \frac{k\kappa_G\bar{A} - (M/P)}{h + \beta_r k}}

These are the reduced-form equations of the IS–LM model: they express the endogenous variables (Y,i)(Y^*, i^*) entirely in terms of exogenous variables (Aˉ,M/P)(\bar{A}, M/P) and structural parameters (b,br,k,h)(b, b_r, k, h).


6.3 Policy Multipliers via Cramer’s Rule

Definition 6.2 (Policy Multiplier). The policy multiplier with respect to instrument zz is the partial derivative Y/z\partial Y^*/\partial z (or i/z\partial i^*/\partial z), holding all other exogenous variables fixed.

We derive every policy multiplier from the reduced-form solution. Note that Aˉ=abT+Iˉ+G+brπe\bar{A} = a - bT + \bar{I} + G + b_r\pi^e, so Aˉ/G=1\partial\bar{A}/\partial G = 1, Aˉ/T=b\partial\bar{A}/\partial T = -b, and Aˉ/Iˉ=1\partial\bar{A}/\partial\bar{I} = 1.

6.3.1 The Fiscal Multiplier

μG=YG=hκGh+βrk=h/(1b)h+brk/(1b)=hh(1b)+brk.\mu_G = \frac{\partial Y^*}{\partial G} = \frac{h\kappa_G}{h + \beta_r k} = \frac{h/(1-b)}{h + b_r k/(1-b)} = \frac{h}{h(1-b) + b_r k}.

Writing br=brb_r = b_r (not divided by 1b1-b) and κG=1/(1b)\kappa_G = 1/(1-b):

μG=hh+brk11b=hh(1b)+brk.\boxed{\mu_G = \frac{h}{h + b_r k} \cdot \frac{1}{1-b} = \frac{h}{h(1-b) + b_r k}.}

This is always strictly less than κG=1/(1b)\kappa_G = 1/(1-b), the Keynesian cross multiplier. The ratio μG/κG=h(1b)/(h(1b)+brk)<1\mu_G/\kappa_G = h(1-b)/(h(1-b)+b_r k) < 1 measures how much of the Keynesian cross multiplier survives after accounting for the interest rate feedback — the crowding-out factor.

Definition 6.3 (Crowding Out). The reduction in private investment caused by the rise in the interest rate following a fiscal expansion is called crowding out. In the IS–LM model, a fiscal expansion of ΔG\Delta G raises the interest rate by:

Δi=kh+βrkκGΔG=kh(1b)+brkΔG>0,\Delta i^* = \frac{k}{h + \beta_r k}\cdot\kappa_G\Delta G = \frac{k}{h(1-b) + b_r k}\Delta G > 0,

which reduces investment by brΔi>0b_r\Delta i^* > 0. The gross fiscal effect on output (κGΔG\kappa_G\Delta G) is partially offset by the investment crowding-out (brΔi=brkκGΔG/(h+βrk)-b_r\Delta i^* = -b_r k\kappa_G\Delta G/(h + \beta_r k)):

ΔY=κGΔGgross IS shiftbrkκGh+βrkΔGcrowding out=hh+βrkκGΔG.\Delta Y^* = \underbrace{\kappa_G\Delta G}_{\text{gross IS shift}} - \underbrace{\frac{b_r k\kappa_G}{h + \beta_r k}\Delta G}_{\text{crowding out}} = \frac{h}{h + \beta_r k}\kappa_G\Delta G.

Theorem 6.1 (Crowding-Out Formula). In the IS–LM model, the fraction of the Keynesian cross multiplier that survives crowding out is:

Crowding-out factor=1brkh+brk=hh+brk.\text{Crowding-out factor} = 1 - \frac{b_r k}{h + b_r k} = \frac{h}{h + b_r k}.

Proof. Direct substitution of the two multiplier expressions above. \square

Two limiting cases:

  1. Liquidity trap: hh \to \infty. Then μGκG\mu_G \to \kappa_G — the IS–LM multiplier equals the Keynesian cross multiplier. When money demand is perfectly elastic, the interest rate doesn’t rise in response to fiscal expansion (the LM is horizontal), so there is zero crowding out.

  2. Classical case: h0h \to 0 (money demand completely interest-inelastic). Then μG0\mu_G \to 0 — fiscal policy is completely ineffective. The LM is vertical; any income increase raises money demand, which drives up the interest rate until investment falls by exactly ΔG\Delta G. Complete crowding out.

6.3.2 The Tax Multiplier

μT=YT=hκG(b)h+βrk=bhh(1b)+brk.\mu_T = \frac{\partial Y^*}{\partial T} = \frac{h\kappa_G(-b)}{h + \beta_r k} = -\frac{bh}{h(1-b) + b_r k}.
μT=bhh(1b)+brk=bμG/hh=b1bhh+brk/(1b)\boxed{\mu_T = -\frac{bh}{h(1-b) + b_r k} = -b\cdot\mu_G/h \cdot h = -\frac{b}{1-b}\cdot\frac{h}{h+b_rk/(1-b)}}

More cleanly: μT=b/(1b)(h/(h+brk))(1b)=bh/[h(1b)+brk]\mu_T = -b/(1-b) \cdot (h/(h+b_r k)) \cdot (1-b) = -bh/[h(1-b)+b_rk]. Since μT=bμG/(1b)(1b)<μG|\mu_T| = b\cdot|\mu_G/(1-b)| \cdot (1-b) < |\mu_G|, we confirm μT<μG|\mu_T| < \mu_G: tax cuts are less stimulative than equivalent spending increases (each dollar of spending creates a full dollar of first-round demand; each dollar of tax cut is only partially spent).

6.3.3 The Monetary Policy Multiplier

A monetary expansion increases the real money supply M/PM/P:

μM=Y(M/P)=βrh+βrk=br/(1b)h+brk/(1b).\mu_M = \frac{\partial Y^*}{\partial(M/P)} = \frac{\beta_r}{h + \beta_r k} = \frac{b_r/(1-b)}{h + b_r k/(1-b)}.
μM=brh(1b)+brk.\boxed{\mu_M = \frac{b_r}{h(1-b) + b_r k}.}

Monetary policy works by reducing the interest rate (i/(M/P)=1/(h+βrk)<0\partial i^*/\partial(M/P) = -1/(h+\beta_rk) < 0), which stimulates investment, which raises income through the multiplier. The monetary multiplier is zero when br=0b_r = 0 (investment insensitive to interest rates — the IS is vertical) or when hh \to \infty (liquidity trap).

Summary table of IS–LM multipliers:

InstrumentMultiplier on YY^*SignVanishes when
GG (spending)hh(1b)+brk\frac{h}{h(1-b)+b_r k}++h0h\to 0 (classical LM)
TT (taxes)bhh(1b)+brk\frac{-bh}{h(1-b)+b_r k}-h0h\to 0 or b=0b=0
M/PM/P (money)brh(1b)+brk\frac{b_r}{h(1-b)+b_r k}++br=0b_r=0 (vertical IS) or hh\to\infty (trap)
Iˉ\bar{I} (invest.)hh(1b)+brk\frac{h}{h(1-b)+b_r k}++Same as GG

6.4 Comparative Statics via the Implicit Function Theorem

The multiplier formulas above were derived from the explicit reduced form. An alternative, more general method uses the IFT [M:Ch.1.5] directly on the equilibrium conditions without first solving for YY^* explicitly.

The equilibrium conditions define an implicit function F(Y,i;G,T,M/P)=0F(Y, i; G, T, M/P) = \mathbf{0} where:

F1=YκGAˉ+βri=0(IS)F_1 = Y - \kappa_G\bar{A} + \beta_r i = 0 \quad \text{(IS)}
F2=kYhiM/P=0(LM)F_2 = kY - hi - M/P = 0 \quad \text{(LM)}

The Jacobian with respect to endogenous variables:

F(Y,i)=(1βrkh)=A.\frac{\partial\mathbf{F}}{\partial(Y,i)} = \begin{pmatrix} 1 & \beta_r \\ k & -h \end{pmatrix} = A.

By the IFT (Theorem 1.8, multivariate version):

d(Y,i)dz=A1Fz,\frac{d(Y^*, i^*)}{d\mathbf{z}} = -A^{-1}\frac{\partial\mathbf{F}}{\partial\mathbf{z}},

where z\mathbf{z} is any exogenous variable vector. For z=Gz = G:

FG=(κG0).\frac{\partial\mathbf{F}}{\partial G} = \begin{pmatrix} -\kappa_G \\ 0 \end{pmatrix}.

Therefore:

(Y/Gi/G)=A1(κG0)=1h+βrk(hκGkκG),\begin{pmatrix}\partial Y^*/\partial G \\ \partial i^*/\partial G\end{pmatrix} = -A^{-1}\begin{pmatrix}-\kappa_G \\ 0\end{pmatrix} = \frac{1}{h+\beta_r k}\begin{pmatrix}h\kappa_G \\ k\kappa_G\end{pmatrix},

recovering μG=hκG/(h+βrk)\mu_G = h\kappa_G/(h+\beta_r k) and i/G=kκG/(h+βrk)>0\partial i^*/\partial G = k\kappa_G/(h+\beta_r k) > 0. The IFT method is particularly convenient when the system has many variables and one does not want to invert the full matrix algebraically.


6.5 The Mundell–Fleming Model: A 3×3 System

The open economy adds the foreign exchange market (BP curve) to the IS–LM system, yielding a 3×3 linear system determining (Y,i,e)(Y^*, i^*, e^*) where ee is the exchange rate (or the current-account balance, depending on the exchange rate regime).

6.5.1 The Three Equations

IS (open economy): Aggregate demand includes net exports NX(Y,Y,e)=X(Y,e)Mimports(Y,e)NX(Y, Y^*, e) = X(Y^*, e) - M^{imports}(Y, e):

Y=κopenAˉopenβri+βee,Y = \kappa^{open}\bar{A}^{open} - \beta_r i + \beta_e e,

where κopen=1/(1b+mY)\kappa^{open} = 1/(1-b+m_Y) (with mYm_Y the marginal propensity to import) and βe>0\beta_e > 0 captures the expenditure-switching effect: a higher ee (weaker domestic currency) improves net exports.

LM (same as closed):

kYhi=M/P.kY - hi = M/P.

BP (balance of payments): For the capital account KA=κi(ii)KA = \kappa_i(i - i^*) where ii^* is the world interest rate, and trade balance TB=TB0+θeemYYTB = TB_0 + \theta_e e - m_Y Y, the BP equilibrium TB+KA=0TB + KA = 0:

mYY+θee+κi(ii)=0    mYY+κii+θee=κii.-m_Y Y + \theta_e e + \kappa_i(i - i^*) = 0 \implies -m_Y Y + \kappa_i i + \theta_e e = \kappa_i i^*.

The 3×3 system Ay=bA\mathbf{y} = \mathbf{b} with y=(Y,i,e)\mathbf{y} = (Y, i, e)':

(1βrβekh0mYκiθe)A(Yie)=(κopenAˉopenM/Pκii)b.\underbrace{\begin{pmatrix} 1 & \beta_r & -\beta_e \\ k & -h & 0 \\ -m_Y & \kappa_i & \theta_e \end{pmatrix}}_{A}\begin{pmatrix} Y \\ i \\ e \end{pmatrix} = \underbrace{\begin{pmatrix} \kappa^{open}\bar{A}^{open} \\ M/P \\ \kappa_i i^* \end{pmatrix}}_{\mathbf{b}}.

The solution y=A1b\mathbf{y}^* = A^{-1}\mathbf{b} requires inverting this 3×33\times3 matrix — straightforward with APL’s but algebraically complex by hand.

6.5.2 Exchange Rate Regimes and the Trilemma

The Mundell–Fleming model takes its most elegant form under the two polar exchange rate regimes, because each regime eliminates one endogenous variable.

Fixed exchange rate (e=eˉe = \bar{e} fixed, M/PM/P endogenous): The exchange rate is no longer a variable; the BP equation pins down the money supply required to maintain eˉ\bar{e}. The system reduces to a 2×22\times2 problem in (Y,i)(Y, i) with e=eˉe = \bar{e} substituted. The fiscal multiplier under fixed rates with perfect capital mobility (κi\kappa_i \to\infty):

μGfixed,perfect=κopen=11b+mY.\mu_G^{fixed,\, perfect} = \kappa^{open} = \frac{1}{1-b+m_Y}.

There is no crowding out under a fixed exchange rate with perfect capital mobility! The BP curve forces i=ii = i^*; any tendency for the domestic interest rate to rise above ii^* immediately attracts capital inflows, expanding the money supply and keeping i=ii = i^*. The fiscal expansion faces no interest-rate headwind.

Flexible exchange rate (ee endogenous, M/PM/P fixed): Under perfect capital mobility, the capital inflows triggered by a fiscal expansion appreciate the exchange rate (ee falls, domestic currency strengthens), crowding out net exports until ΔY=0\Delta Y^* = 0. Fiscal policy is completely ineffective. But monetary policy — which works through the exchange rate — is fully potent.

Theorem 6.2 (Mundell–Fleming Trilemma, Algebraic Form). Under perfect capital mobility (κi\kappa_i \to\infty), the fiscal multiplier satisfies:

μGfixed=κopen>0,μGflexible=0.\mu_G^{fixed} = \kappa^{open} > 0, \quad \mu_G^{flexible} = 0.

Proof sketch. Under perfect capital mobility, i=ii = i^* at all times. Under a fixed exchange rate, this constraint is satisfied by adjusting MM, so the LM curve accommodates the fiscal expansion. Under a flexible exchange rate, MM is fixed, so the LM curve cannot shift — the only way to maintain i=ii = i^* is through exchange rate appreciation which eliminates the net-export stimulus exactly. \square


6.6 Worked Example: Full Solution Under Fixed and Flexible Rates

Cross-reference: Principles Ch. 21 (exchange rates, UIP, trilemma) [P:Ch.21]

Calibration:

  • b=0.75b = 0.75 (MPC), mY=0.15m_Y = 0.15 (marginal propensity to import), br=2b_r = 2 (investment-interest sensitivity)

  • h=4h = 4 (interest semi-elasticity of money demand), k=0.5k = 0.5 (income elasticity of money demand)

  • βe=1.5\beta_e = 1.5 (exchange rate effect on net exports), θe=0.8\theta_e = 0.8, κi=10\kappa_i = 10 (capital mobility)

  • Aˉopen=400\bar{A}^{open} = 400, M/P=500M/P = 500, i=0.04i^* = 0.04

IS–LM solution (closed economy, for reference):

κG=1/(10.75)=4\kappa_G = 1/(1-0.75) = 4, βr=2/0.25=8\beta_r = 2/0.25 = 8

Y=(4×400×h+8×500)/(h+8×0.5)=(6400+4000)/8=10400/8=1300Y^* = (4 \times 400 \times h + 8 \times 500)/(h + 8 \times 0.5) = (6400 + 4000)/8 = 10400/8 = 1300

i=(0.5×4×400500)/(4+8×0.5)=(800500)/8=37.5i^* = (0.5 \times 4 \times 400 - 500)/(4 + 8 \times 0.5) = (800 - 500)/8 = 37.5

(Note: ii^* in these units is not a realistic interest rate — the calibration is illustrative.)

Fiscal multipliers:

μGclosed=h/(h(1b)+brk)=4/(4×0.25+2×0.5)=4/(1+1)=2.0\mu_G^{closed} = h/(h(1-b)+b_r k) = 4/(4\times0.25 + 2\times0.5) = 4/(1+1) = 2.0

μGopen,fixedκopen=1/(10.75+0.15)=1/0.40=2.5\mu_G^{open,\,fixed} \approx \kappa^{open} = 1/(1-0.75+0.15) = 1/0.40 = 2.5

μGopen,flexible0\mu_G^{open,\,flexible} \approx 0 (complete crowding out via exchange rate appreciation)

Interpretation: Moving from a closed economy to a fixed-exchange-rate open economy raises the fiscal multiplier from 2.0 to 2.5, because the fixed rate prevents the interest rate from rising (capital inflows finance the deficit), eliminating crowding out. Under flexible rates, the multiplier collapses to zero — consistent with Principles Ch. 21 [P:Ch.21.4].

⎕IO←0 ⋄ ⎕ML←1

⍝ 1. Parameters
b ← 0.75  ⋄ b_r ← 2   ⋄ k ← 0.5  ⋄ h ← 4
Abar ← 400 ⋄ MP ← 500 

kg ← ÷ 1 - b                 ⍝ Keynesian multiplier (4.0)
beta_r ← b_r × kg            ⍝ IS slope coefficient (8.0)

⍝ 2. Solve Equilibrium [Y*, i*]
⍝ IS: Y + beta_r*i = kg*Abar
⍝ LM: k*Y - h*i = MP
A ← 2 2 ⍴ 1 beta_r k (-h)
b_vec ← (kg × Abar) MP
eq ← b_vec ⌹ A

'Equilibrium [Y, i]:' (4 ⍕ eq)

⍝ 3. Multipliers (Fixed Precedence)
⍝ Formula: h / (h(1-b) + b_r*k)
⍝ We write it R-to-L friendly: h ÷ (b_r×k) + h×1-b
denom ← (b_r × k) + h × 1 - b
mu_G ← h ÷ denom
mu_T ← (¯1 × b × h) ÷ denom
mu_M ← b_r ÷ denom

'Multipliers [G, T, M]:' (4 ⍕ mu_G mu_T mu_M)

⍝ 4. Sensitivity Grid (Fixed ∞ and Precedence)
H ← 0.5 1 2 4 8 1e6          ⍝ Use 1e6 for "Infinity"
BR ← 0.5 1 2 4
⍝ Logic: ⍺ is h, ⍵ is b_r
grid ← H ∘.{⍺ ÷ (⍵ × k) + ⍺ × 1 - b} BR

'Spending Multiplier Grid (Rows=h, Cols=br):'
⍪ ⍕ 2 ⍕ grid
Loading...
Loading...
Loading...
Loading...
# Python — IS-LM system: solve and compute all multipliers
import numpy as np
from sympy import symbols, Matrix, simplify, latex

# Numeric solution
b, b_r, k, h = 0.75, 2.0, 0.5, 4.0
kg = 1/(1-b); beta_r = b_r*kg
Abar, MP = 400, 500

A = np.array([[1, beta_r], [k, -h]])
rhs = np.array([kg*Abar, -MP])
Y_star, i_star = np.linalg.solve(A, rhs)
print(f"Y* = {Y_star:.2f},  i* = {i_star:.4f}")

denom = h*(1-b) + b_r*k
mu_G = h/denom; mu_T = -b*h/denom; mu_M = b_r/denom
print(f"μ_G = {mu_G:.3f},  μ_T = {mu_T:.3f},  μ_M = {mu_M:.3f}")

# Symbolic multipliers via sympy
b_s, br_s, k_s, h_s = symbols('b b_r k h', positive=True)
denom_s = h_s*(1-b_s) + br_s*k_s
print("Symbolic μ_G =", simplify(h_s/denom_s))
# Julia — IS-LM with parameter sweep
b, b_r, k, h = 0.75, 2.0, 0.5, 4.0
kg = 1/(1-b); beta_r = b_r*kg

A = [1 beta_r; k -h]
rhs = [kg*400.0, -500.0]
Y_star, i_star = A \ rhs
println("Y* = $(round(Y_star,digits=2)), i* = $(round(i_star,digits=4))")

# Sensitivity: multiplier grid over h and b_r
h_vals = [0.5, 1, 2, 4, 8, 100]
br_vals = [0.5, 1, 2, 4]
println("\nFiscal multiplier grid (rows=h, cols=b_r):")
grid = [h_v / (h_v*(1-b) + br_v*k) for h_v in h_vals, br_v in br_vals]
display(round.(grid, digits=3))
# R — IS-LM with symbolic Cramer's rule via Ryacas
library(Ryacas)

# Define symbolic variables
b_s <- ysym("b"); br_s <- ysym("b_r"); k_s <- ysym("k"); h_s <- ysym("h")
Ag_s <- ysym("A_bar"); MP_s <- ysym("M_P")

# IS-LM matrix (symbolic)
A_sym <- ysym("{{1, b_r/(1-b)}, {k, -h}}")
b_sym <- ysym("{A_bar/(1-b), -M_P}")
sol   <- yac_str(paste0("Inverse(", as.character(A_sym), ") . ", as.character(b_sym)))
cat("Symbolic solution:\n", sol, "\n")

# Numeric
b <- 0.75; b_r <- 2; k <- 0.5; h <- 4
A_num <- matrix(c(1, k, b_r/(1-b), -h), 2, 2)
b_num <- c(400/(1-b), -500)
solution <- solve(A_num, b_num)
cat(sprintf("Y* = %.2f, i* = %.4f\n", solution[1], solution[2]))

6.7 Programming Exercises

Exercise 6.1 (APL — Multiplier Sensitivity)

Write a dfn islm_grid ← {b b_r k h ← ⍵ ⋄ ...} that returns a 4×14\times1 vector of multipliers (μG,μT,μM,i/G)(\mu_G, \mu_T, \mu_M, \partial i^*/\partial G) for parameter vector input. Then generate the full 10×1010\times10 fiscal multiplier grid over (h,br){0.5,1,2,4,8,16,32,64,128,}×{0.1,0.5,1,2,4,8,16,32,64,128}(h, b_r) \in \{0.5, 1, 2, 4, 8, 16, 32, 64, 128, \infty\} \times \{0.1, 0.5, 1, 2, 4, 8, 16, 32, 64, 128\} using ∘.f outer product syntax. What is the fiscal multiplier when both hh \to\infty and br0b_r \to 0?

Exercise 6.2 (Python — Mundell–Fleming 3×3)

Implement the full Mundell–Fleming system as a 3×33\times3 linear system. For the calibration in Section 6.6, compute equilibrium (Y,i,e)(Y^*, i^*, e^*) under both fixed and flexible exchange rates. Verify the theoretical prediction that μGflexible0\mu_G^{flexible} \approx 0 and μGfixedκopen\mu_G^{fixed} \approx \kappa^{open} as κi\kappa_i \to\infty.

Exercise 6.3 (Julia — Liquidity Trap Limit)

Demonstrate the liquidity trap numerically: compute μG\mu_G and μM\mu_M as functions of hh over h[103,103]h \in [10^{-3}, 10^3] on a log scale. Plot both multipliers and verify: as hh \to\infty, μGκG=1/(1b)\mu_G \to \kappa_G = 1/(1-b) and μM0\mu_M \to 0. As h0h \to 0, μG0\mu_G \to 0 and μMbr/[brk]=1/k\mu_M \to b_r/[b_r k] = 1/k. Label the liquidity trap and the classical case on the plot.

Exercise 6.4 — General Comparative Statics (\star)

Using the IFT approach from Section 6.4, derive the effect of a change in expected inflation πe\pi^e on equilibrium output YY^* and the interest rate ii^*. Show that Y/πe=μGbr>0\partial Y^*/\partial\pi^e = \mu_G b_r > 0: higher expected inflation reduces the real interest rate for a given nominal rate, stimulating investment and output. Verify numerically using the calibration of Section 6.6.

Exercise 6.5 — IS–LM Welfare Analysis (\star\star)

Define a social loss function L=λY(YY)2+λπ(ππ)2\mathcal{L} = \lambda_Y(Y - Y^*)^2 + \lambda_\pi(\pi - \pi^*)^2 where YY^* is potential output and π\pi^* the inflation target. In the static IS–LM framework, price level changes from the AD curve translate deviations of YY from Yˉ\bar{Y} into inflation deviations. Derive the optimal fiscal and monetary policy mix — the (G,M)(G^*, M^*) combination that minimizes L\mathcal{L} subject to the IS–LM equilibrium conditions. Show that the optimal policy targets Y=YˉY = \bar{Y} when λπ=0\lambda_\pi = 0, and compare with the AD–AS result in Chapter 8.


6.8 Chapter Summary

Key results:

  • The IS–LM model is a 2×22\times2 linear system Ay=bA\mathbf{y} = \mathbf{b} with coefficient matrix A=(1βrkh)A = \begin{pmatrix}1 & \beta_r \\ k & -h\end{pmatrix} and det(A)=(h+βrk)<0\det(A) = -(h+\beta_r k) < 0, guaranteeing a unique solution.

  • The fiscal multiplier μG=h/[h(1b)+brk]\mu_G = h/[h(1-b)+b_r k] lies between 0 (classical LM) and κG=1/(1b)\kappa_G = 1/(1-b) (liquidity trap), with crowding out being the source of the gap.

  • The tax multiplier μT=bh/[h(1b)+brk]=bμT\mu_T = -bh/[h(1-b)+b_r k] = b\mu_T is smaller in absolute value than μG\mu_G: tax cuts are less potent than spending increases.

  • The monetary multiplier μM=br/[h(1b)+brk]\mu_M = b_r/[h(1-b)+b_r k] vanishes in the liquidity trap (hh\to\infty) and when investment is interest-insensitive (br0b_r \to 0).

  • In the Mundell–Fleming model: under fixed exchange rates with perfect capital mobility, μGκopen\mu_G \to \kappa^{open} (no crowding out); under flexible rates, μG0\mu_G \to 0 (complete crowding out via exchange rate appreciation).

  • In APL: the entire IS–LM solution is b_vec ⌹ A; the multiplier grid is generated via ∘.f outer product in a single expression.

Connections forward: Chapter 7 derives the Keynesian cross multiplier as the hh\to\infty limit of the IS–LM fiscal multiplier. Chapter 8 embeds IS–LM inside the AD–AS framework, adding price level determination. Chapter 9 derives the ELB multiplier — the hh\to\infty analogue for the dynamic NK model.


Next: Chapter 7 — The Multiplier Effect in Closed and Open Economies