Economics
Universitymicroeconomics

Producer Theory and Cost Minimization

The Costs of Production took a firm's cost function as a fact of nature and derived an entire apparatus from it; this topic goes one level deeper and asks where that function actually comes from. The answer turns out to be the exact same Lagrangian that solved the consumer's problem two topics ago, with capital and labor standing in for two goods — the mathematics does not notice the difference.

Before this, you should know:

Amara's bakery, in The Costs of Production, had exactly one dial to turn. The oven was fixed — she leased one, and baking more bread meant calling in more bakers to share it, which is why her marginal product diminished and her costs curved the way they did. That was a deliberate restriction, not an oversight: it is what "the short run" means, one input frozen while another moves. But it leaves an obvious question hanging. What if a firm has two dials?

Picture a bottling plant on the Harbor Falls waterfront, filling juice bottles for the region's orchards. Unlike Amara's oven, its capital is not stuck at one unit — it can rent bottling-machine time by the hour from a shared industrial kitchen, just as it hires labor by the hour. To fill a thousand bottles a day, the plant could run two machines hard with a skeleton crew, or run one machine gently with a much larger crew standing at the conveyor. Both are technically capable of producing exactly the same thousand bottles. They are not equally expensive.

That is the whole subject of this topic in one sentence: there are many technically valid ways to make a given quantity of output, and exactly one of them costs the least. Costs of Production built an entire apparatus — MCMC, ATCATC, the U-shaped average cost curve — on top of a function TC(q)TC(q) that was simply handed over, already optimized, without ever showing the optimizing. This topic goes underneath it and does that optimization in the open. And the tool for doing it is not new. Two topics ago, Consumer Choice and Utility Maximization solved a person's problem — maximize U(x,y)U(x,y) subject to a budget — with a budget line, an indifference map, and a Lagrangian. Watch closely, because the firm's problem is that exact structure with the labels swapped: an isocost line in place of the budget line, an isoquant map in place of the indifference map, and the identical multiplier trick underneath. The mathematics does not know which problem it is solving.

Two inputs, one output: the production function and its isoquants

Write KK for machine-hours rented per day and LL for labor-hours hired per day. The production function q=f(K,L)q = f(K,L) describes every combination of the two that yields a given output, and for the bottling plant, take

q=f(K,L)=KL.q = f(K,L) = \sqrt{KL}.

Fix a target, say q=40q = 40. What pairs (K,L)(K,L) produce exactly 40 bottling-batches a day? Solving KL=40\sqrt{KL} = 40 gives KL=1600KL = 1600, a hyperbola in the (L,K)(L,K) plane: (K,L)=(160,10)(K,L) = (160, 10) works, so does (80,20)(80,20), so does (40,40)(40,40), so does (20,80)(20,80). This level set — every input combination yielding the same output — is called an isoquant, and it is the exact production-side counterpart of an indifference curve. Just as every bundle on one of Nadia's indifference curves delivered the same utility, every point on the q=40q = 40 isoquant delivers the same forty batches. Higher isoquants (larger qq) sit further from the origin, the same way higher indifference curves represented more utility.

The slope of an isoquant deserves to be derived, not assumed, using exactly the technique Consumer Choice used on indifference curves. Take the defining equation of one isoquant,

f(K,L)=qˉ,f(K,L) = \bar q,

and totally differentiate both sides. The right side is a constant, so its differential is zero:

fKdK+fLdL=0.\frac{\partial f}{\partial K}\,dK + \frac{\partial f}{\partial L}\,dL = 0.

Solve for the slope:

dKdLf=qˉ=f/Lf/K.\left.\frac{dK}{dL}\right|_{f = \bar q} = -\frac{\partial f/\partial L}{\partial f/\partial K}.

The marginal rate of technical substitution is the magnitude of that slope:

  MRTS=f/Lf/K=MPLMPK  \boxed{\;MRTS = \frac{\partial f/\partial L}{\partial f/\partial K} = \frac{MP_L}{MP_K}\;}

Read it exactly the way MRSMRS was read for a consumer, with "technology" in place of "taste": MRTSMRTS is how many units of capital the firm could give up for one more unit of labor while producing exactly the same output. It is not a preference — nobody at the bottling plant likes labor more than capital — it is a fact about the machinery, and it is every bit as real a number as MRSMRS was.

For f(K,L)=KL=K1/2L1/2f(K,L) = \sqrt{KL} = K^{1/2}L^{1/2}, the partials are MPL=12K1/2L1/2MP_L = \frac{1}{2}K^{1/2}L^{-1/2} and MPK=12K1/2L1/2MP_K = \frac{1}{2}K^{-1/2}L^{1/2}, so

MRTS=MPLMPK=KL.MRTS = \frac{MP_L}{MP_K} = \frac{K}{L}.

Evaluate it along the q=40q=40 isoquant, where K=1600/LK = 1600/L, so MRTS=1600/L2MRTS = 1600/L^2:

L10204080160K=1600/L16080402010MRTS=K/L16410.250.0625\begin{array}{r|rrrrr} L & 10 & 20 & 40 & 80 & 160 \\ \hline K = 1600/L & 160 & 80 & 40 & 20 & 10 \\ MRTS = K/L & 16 & 4 & 1 & 0.25 & 0.0625 \end{array}

MRTSMRTS falls steadily moving right — diminishing MRTSMRTS, the production-side twin of diminishing MRSMRS. With ten labor-hours and a hundred sixty machine-hours, one more hour of labor is worth sixteen hours of machine time; with a hundred sixty labor-hours and only ten machine-hours, one more labor-hour is worth barely a sixteenth of a machine-hour. Whichever input is scarce is the one that matters at the margin, on the technology side exactly as on the preference side. And the same second-derivative argument applies: K(L)=1600/LK(L) = 1600/L has K=3200/L3>0K'' = 3200/L^3 > 0, so the isoquant is convex, bowed toward the origin, for the identical reason an indifference curve was — a curve lying above its own chords, meaning any combination of two equally productive input mixes is at least as productive as either extreme.

The isocost line and cost minimization

Input prices are ww per labor-hour and rr per machine-hour. The set of input bundles the firm can buy for a given total outlay CC is bounded by the isocost line,

wL+rK=CK=CrwrL,wL + rK = C \quad\Longrightarrow\quad K = \frac{C}{r} - \frac{w}{r}L,

with slope w/r-w/r — the market's rate of exchange between labor and capital, exactly as px/py-p_x/p_y was the market's rate of exchange between two goods. This is the budget line's mirror image: same algebra, an outlay in place of income, input prices in place of goods prices.

Cost minimization is the constrained-optimization problem run in reverse. A consumer maximized UU subject to a fixed budget; a firm minimizes cost subject to a fixed output:

minK,L  wL+rKsubject tof(K,L)=q.\min_{K,L} \; wL + rK \quad \text{subject to} \quad f(K,L) = q.

Geometrically the logic is identical to the consumer's tangency argument, just with the roles of objective and constraint swapped: the cheapest point on a given isoquant is the one where no cheaper isocost line still touches it, which happens exactly where the isocost line is tangent to the isoquant rather than crossing it. Formally, form the Lagrangian

L(K,L,λ)=wL+rK+λ(qf(K,L)),\mathcal{L}(K,L,\lambda) = wL + rK + \lambda\big(q - f(K,L)\big),

and set the partials to zero:

LL=wλMPL=0,LK=rλMPK=0,Lλ=qf(K,L)=0.\frac{\partial \mathcal{L}}{\partial L} = w - \lambda\,MP_L = 0, \qquad \frac{\partial \mathcal{L}}{\partial K} = r - \lambda\,MP_K = 0, \qquad \frac{\partial \mathcal{L}}{\partial \lambda} = q - f(K,L) = 0.

The first two give w=λMPLw = \lambda\,MP_L and r=λMPKr = \lambda\,MP_K. Divide them:

wr=MPLMPK=MRTS,\frac{w}{r} = \frac{MP_L}{MP_K} = MRTS,

which is the geometric tangency condition, recovered by algebra. Rearrange instead by dividing each marginal product by its own price:

  MPLw=MPKr  \boxed{\;\frac{MP_L}{w} = \frac{MP_K}{r}\;}

Say this one in words, because it is the entire idea: the last dollar spent on each input must buy the same extra output. If a dollar of labor bought more output than a dollar of capital, the firm could shift a dollar from capital to labor, hold output fixed, and spend less overall — exactly the arbitrage argument Consumer Choice ran on MUx/pxMU_x/p_x versus MUy/pyMU_y/p_y. Utility became output, prices of goods became prices of inputs, and not one step of the logic needed to change.

An isoquant-isocost diagram with labor-hours per day L from 0 to 45 on the horizontal axis and machine-hours per day K from 0 to 130 on the vertical axis. Three blue curves bow toward the origin: the lowest labelled q equals 20, the middle labelled q equals 40, the highest labelled q equals 60. Three amber straight lines of identical slope are isocost lines labelled C equals 400 dollars, C equals 800 dollars, and C equals 1200 dollars. Each isocost line is tangent to one isoquant, touching it at a single point marked with a black dot, and the three dots at (10,40), (20,80), and (30,120) all lie on one purple dashed line through the origin labelled the expansion path. Dashed grey guide lines run from the middle dot at 20 labor-hours and 80 machine-hours to the axis ticks 20 and 80. A note in the lower left reads: at every dot, MPL over w equals MPK over r.

Three output levels for the bottling plant, each produced at minimum cost. Every dot is a point where an isocost line merely touches its isoquant rather than crossing it, which is the geometric meaning of the tangency condition. Because the production function has constant returns to scale, the tangencies all sit on a single straight ray from the origin — the expansion path — and the plant simply scales the same input ratio up as output grows.

Solve it for the bottling plant. With w=20w = 20 and r=5r = 5, tangency requires K/L=w/r=4K/L = w/r = 4, so K=4LK = 4L at every cost-minimizing point regardless of the target output — a fact worth pausing on, since it means the ratio of inputs the firm buys does not depend on how much it is making, only on the price ratio. Substitute into the production function:

q=KL=4LL=2LL(q)=q2,K(q)=4L=2q.q = \sqrt{KL} = \sqrt{4L \cdot L} = 2L \quad\Longrightarrow\quad L^*(q) = \frac{q}{2}, \qquad K^*(q) = 4L^* = 2q.

At q=40q = 40: L=20L^* = 20, K=80K^* = 80. Check the tangency directly: MRTS(80,20)=K/L=80/20=4=w/rMRTS(80,20) = K^*/L^* = 80/20 = 4 = w/r. ✓ And check the constraint: 80×20=1600=40\sqrt{80 \times 20} = \sqrt{1600} = 40. ✓

Conditional factor demands and the cost function, in full

L(w,r,q)L^*(w,r,q) and K(w,r,q)K^*(w,r,q) — input demand as a function of prices and the output target, holding cost minimization fixed — are called conditional factor demands, "conditional" because they answer "cheapest way to hit this output" rather than "how much should the firm produce." Do the general Cobb-Douglas case, q=KaLbq = K^aL^b, because the specific bottling-plant numbers above are the case a=b=12a = b = \tfrac12, and the general result is what actually explains where TC(q)TC(q) comes from.

Take logs of the constraint — legitimate because ln\ln is strictly increasing, so it does not change which bundles satisfy f(K,L)=qf(K,L) = q, only how the equation is written:

alnK+blnL=lnq.a\ln K + b\ln L = \ln q.

(This is the identical trick Consumer Choice used, just applied to the other half of the problem. There, the objective was Cobb-Douglas and the constraint was linear, so logging the objective simplified things. Here the cost objective wL+rKwL + rK is already linear and the constraint is Cobb-Douglas, so logging the constraint is the move — same trick, mirrored across the problem.) The Lagrangian is

L=wL+rK+μ(lnqalnKblnL),\mathcal{L} = wL + rK + \mu\big(\ln q - a\ln K - b\ln L\big),

with first-order conditions

r=μaK    K=μar,w=μbL    L=μbw.r = \frac{\mu a}{K} \;\Rightarrow\; K = \frac{\mu a}{r}, \qquad\qquad w = \frac{\mu b}{L} \;\Rightarrow\; L = \frac{\mu b}{w}.

Substitute both into the logged constraint:

aln ⁣(μar)+bln ⁣(μbw)=lnq    (a+b)lnμ+alnaalnr+blnbblnw=lnq,a\ln\!\left(\frac{\mu a}{r}\right) + b\ln\!\left(\frac{\mu b}{w}\right) = \ln q \;\Longrightarrow\; (a+b)\ln\mu + a\ln a - a\ln r + b\ln b - b\ln w = \ln q,

and solving for μ\mu:

  μ=q1a+b(ra)aa+b(wb)ba+b  \boxed{\;\mu = q^{\frac{1}{a+b}}\left(\frac{r}{a}\right)^{\frac{a}{a+b}}\left(\frac{w}{b}\right)^{\frac{b}{a+b}}\;}

with the conditional factor demands falling out immediately as K=μa/rK^* = \mu a/r and L=μb/wL^* = \mu b/w, and total cost as

C(w,r,q)=wL+rK=μb+μa=(a+b)μ.C(w,r,q) = wL^* + rK^* = \mu b + \mu a = (a+b)\,\mu.

This is the payoff the whole topic has been aiming at: a cost function derived, not assumed, built entirely out of the production technology and the two input prices. Verify it reduces to the bottling-plant numbers found geometrically above. With a=b=12a = b = \tfrac12, so a+b=1a+b=1:

μ=q(r1/2)1/2(w1/2)1/2=q2r2w=2qwr.\mu = q\left(\frac{r}{1/2}\right)^{1/2}\left(\frac{w}{1/2}\right)^{1/2} = q\sqrt{2r}\sqrt{2w} = 2q\sqrt{wr}.

At w=20w=20, r=5r=5, q=40q=40: μ=2(40)100=80×10=800\mu = 2(40)\sqrt{100} = 80 \times 10 = 800. Then C=(a+b)μ=800C = (a+b)\mu = 800, K=μa/r=800(0.5)/5=80K^* = \mu a/r = 800(0.5)/5 = 80, L=μb/w=800(0.5)/20=20L^* = \mu b/w = 800(0.5)/20 = 20. All three match the direct calculation exactly. ✓ And since a+b=1a+b=1 here, C(w,r,q)=2qwrC(w,r,q) = 2q\sqrt{wr} is linear in qq: cost per unit is the constant 2wr=202\sqrt{wr} = 20 dollars regardless of scale — so MC(q)=ATC(q)=20MC(q) = ATC(q) = 20 for every output. That flat marginal-equals-average cost is not a coincidence of arithmetic; the next section shows exactly which feature of the technology produces it.

One more structural fact is worth isolating before moving on, because it is the input-side twin of a result Consumer Choice found on the demand side. From K=μa/rK = \mu a/r and L=μb/wL = \mu b/w: rK=μarK^* = \mu a and wL=μbwL^* = \mu b, so

wLC=ba+b,rKC=aa+b,\frac{wL^*}{C} = \frac{b}{a+b}, \qquad \frac{rK^*}{C} = \frac{a}{a+b},

constant expenditure shares on inputs, fixed by the exponents alone and independent of ww, rr, and qq — exactly the constant-expenditure-share result Cobb-Douglas utility produced for a consumer's spending on goods, now showing up on a firm's spending on inputs. It is the same functional form doing the same thing on both sides of the same market.

Returns to scale and the shape of long-run average cost

The bottling plant's technology, q=K1/2L1/2q = K^{1/2}L^{1/2}, has a+b=1a + b = 1. Scale both inputs by a factor λ\lambda: f(λK,λL)=(λK)a(λL)b=λa+bf(K,L)f(\lambda K, \lambda L) = (\lambda K)^a(\lambda L)^b = \lambda^{a+b}f(K,L). So a+ba+b is exactly the answer to "if I double every input, what happens to output?" — increasing returns to scale if a+b>1a+b>1 (output more than doubles), constant returns if a+b=1a+b=1 (output exactly doubles), decreasing returns if a+b<1a+b<1 (output less than doubles).

And a+ba+b shows up again, immediately, in the cost function: from the boxed formula, C(w,r,q)q1/(a+b)C(w,r,q) \propto q^{1/(a+b)}, so long-run average cost is

LRAC(q)=C(w,r,q)q    q1a+b1.LRAC(q) = \frac{C(w,r,q)}{q} \;\propto\; q^{\frac{1}{a+b}-1}.

The exponent's sign is entirely controlled by a+ba+b versus 11. Constant returns (a+b=1a+b=1) give exponent zero — a flat LRACLRAC, exactly what the bottling plant showed above. Increasing returns (a+b>1a+b>1) give a negative exponent — LRACLRAC falls as qq grows, without bound. Decreasing returns give a positive exponent and a rising LRACLRAC.

That falling case is worth seeing in numbers, because it is the textbook condition for a natural monopoly: if bigger is always cheaper per unit, the single firm that gets there first can underprice any rival forever, and splitting the market between two producers is strictly wasteful. Take a technology with a=b=23a=b=\tfrac23 (so a+b=43a+b = \tfrac43, increasing returns) and, to keep the arithmetic clean, equal input prices w=r=1w=r=1. Tangency gives K/L=(a/b)(w/r)=1K/L = (a/b)(w/r) = 1, so K=LK=L, and the constraint becomes q=(KK)2/3=K4/3q = (K\cdot K)^{2/3} = K^{4/3}, so K=L=q3/4K^* = L^* = q^{3/4}. Choosing q=n4q = n^4 makes this an exact integer, K=L=n3K^*=L^*=n^3, with cost C=K+L=2n3C = K^*+L^* = 2n^3 and

LRAC=2n3n4=2n.LRAC = \frac{2n^3}{n^4} = \frac{2}{n}. n234q=n41681256LRAC=2/n10.660.5\begin{array}{r|rrr} n & 2 & 3 & 4 \\ \hline q = n^4 & 16 & 81 & 256 \\ LRAC = 2/n & 1 & 0.6\overline{6} & 0.5 \end{array}

Average cost keeps falling as the operation grows, with no floor — precisely because doubling both inputs more than doubles output, so the same proportional increase in spending buys a disproportionately larger increase in output.

Now connect this back to where the whole track's cost apparatus started. Costs of Production found long-run average cost for Amara's bakery by an entirely different route — no isoquants, no Lagrangian, just replicating identical fixed-size ovens and counting — and landed on a perfectly flat $10-per-loaf curve. That flatness was not a coincidence of the bakery's particular numbers; it was constant returns to scale, arrived at by a replication argument instead of the a+ba+b condition derived here. Two completely different techniques — one counting physical ovens, one differentiating a Cobb-Douglas Lagrangian — landing on the identical shape of curve, because they are describing the identical economic fact from two directions.

Shephard's lemma: differentiating cost to get quantity

Here is a genuinely strange-looking claim, worth stating before it is proven so the proof has something to surprise you: differentiate the cost function with respect to an input's price, and what falls out is not a cost at all — it is a quantity, the conditional demand for that very input.

  C(w,r,q)w=L(w,r,q)  \boxed{\;\frac{\partial C(w,r,q)}{\partial w} = L^*(w,r,q)\;}

This is Shephard's lemma, and it deserves the envelope-theorem argument rather than a citation. Write cost at the optimum as C(w,r,q)=wL(w,r,q)+rK(w,r,q)C(w,r,q) = wL^*(w,r,q) + rK^*(w,r,q), and differentiate the whole right side with respect to ww, product rule and all — remembering that LL^* and KK^* are themselves functions of ww:

Cw=L+wLw+rKw.\frac{\partial C}{\partial w} = L^* + w\,\frac{\partial L^*}{\partial w} + r\,\frac{\partial K^*}{\partial w}.

The claim is that the last two terms cancel each other exactly. Here is why. The optimal bundle sits on the target isoquant for every value of ww, so f(K(w),L(w))=qf\big(K^*(w),L^*(w)\big) = q holds identically — differentiate both sides with respect to ww:

MPKKw+MPLLw=0.MP_K\,\frac{\partial K^*}{\partial w} + MP_L\,\frac{\partial L^*}{\partial w} = 0.

Now bring in the first-order conditions from cost minimization, MPK=r/λMP_K = r/\lambda and MPL=w/λMP_L = w/\lambda (where λ\lambda is the multiplier on the original, non-logged constraint f(K,L)=qf(K,L)=q — it is the shadow price of relaxing that constraint, which is exactly marginal cost, λ=MC(q)\lambda = MC(q)). Substitute:

rλKw+wλLw=0    rKw+wLw=0,\frac{r}{\lambda}\,\frac{\partial K^*}{\partial w} + \frac{w}{\lambda}\,\frac{\partial L^*}{\partial w} = 0 \;\Longrightarrow\; r\,\frac{\partial K^*}{\partial w} + w\,\frac{\partial L^*}{\partial w} = 0,

which is precisely the pair of terms that needed to vanish. What makes them vanish is not an accident of algebra — it is that at a cost-minimizing point, a first-order change in how the firm buys qq costs nothing at the margin, because the firm was already choosing that mix optimally. Only the direct effect of ww on the wage bill survives, leaving C/w=L\partial C/\partial w = L^*.

Check it on the bottling plant. C(w,r,q)=2qwrC(w,r,q) = 2q\sqrt{wr}, so

Cw=2qr12w=qrw.\frac{\partial C}{\partial w} = 2q\sqrt{r}\cdot\frac{1}{2\sqrt{w}} = q\sqrt{\frac{r}{w}}.

At w=20w=20, r=5r=5, q=40q=40: C/w=405/20=40(0.5)=20\partial C/\partial w = 40\sqrt{5/20} = 40(0.5) = 20 — and LL^* computed directly, earlier, was also 2020. ✓ Differentiating a dollar figure with respect to another dollar figure produced a headcount, and it was the right headcount.

Short run versus long run: the envelope

Every conditional factor demand above assumed both KK and LL are free to adjust. In the short run, capital is stuck — leased, installed, not renegotiable before next quarter — at whatever level Kˉ\bar K the firm committed to. Producing qq then means finding whatever LL makes f(Kˉ,L)=qf(\bar K, L) = q, with no freedom to also move KK, so short-run cost is cost minimization with one fewer degree of freedom:

SC(q;Kˉ)  =  wL(q;Kˉ)+rKˉ    C(w,r,q),SC(q;\bar K) \;=\; wL(q;\bar K) + r\bar K \;\ge\; C(w,r,q),

with equality only at the one output q0q_0 for which Kˉ\bar K happens to equal the true optimum K(w,r,q0)K^*(w,r,q_0). Off that output, the firm is stuck paying for either too much or too little capital relative to what it would freely choose, so it can only be worse off — it is minimizing over a smaller choice set than the long run allows, and a constrained minimum can never beat an unconstrained one over the same objective.

Suppose the bottling plant commits to Kˉ=80\bar K = 80 machine-hours a day — the capital level that was exactly optimal for q=40q=40. For any other output, solve 80L=q\sqrt{80\,L} = q for L=q2/80L = q^2/80, giving

SC(q)=wL+rKˉ=20(q280)+5(80)=q24+400.SC(q) = wL + r\bar K = 20\left(\frac{q^2}{80}\right) + 5(80) = \frac{q^2}{4} + 400.

At q=40q=40: SC(40)=1600/4+400=800SC(40) = 1600/4 + 400 = 800, matching the long-run C(40)=800C(40) = 800 exactly — equality, as it must be, since Kˉ=80\bar K=80 is K(40)K^*(40). At q=60q=60, off that output: SC(60)=3600/4+400=1,300SC(60) = 3600/4 + 400 = 1{,}300, while the long-run minimum is C(60)=20(60)=1,200C(60) = 20(60) = 1{,}200. The plant pays 100 dollars a day more than it would if it could also resize its machine fleet — the cost of being stuck at yesterday's capital plan.

The relationship is not just equal levels at q=40q=40; it is a genuine tangency. Differentiate: SC(q)=q/2SC'(q) = q/2, so SC(40)=20SC'(40) = 20, and the long-run MC=20MC = 20 at every output (constant returns, flat curve). Same slope, same level, at exactly q=40q=40 — the short-run curve touches the long-run curve there and lies strictly above it everywhere else. Run this same construction for every possible Kˉ\bar K — one short-run curve per capital commitment, each one minimized at the output for which that particular Kˉ\bar K happens to be optimal — and the long-run average cost curve is the lower envelope of all of them, not a curve drawn separately and asserted to sit underneath, but the literal boundary traced by the best available short-run plan at every output. When the technology has constant returns, as here, that envelope degenerates to a flat line, and every short-run UU-shaped curve dips down to kiss it and rises away again — which is exactly the shape Costs of Production drew, from the ovens-and-replication side, when its own long-run curve sat flat at $10 while each individual oven's short-run ATCATC was a proper UU.

Worked example

Ridgeline Furniture Co. builds chairs with q=K2/3L1/3q = K^{2/3}L^{1/3}, where KK is machine-hours and LL is carpenter-hours. Machine time rents for r=2r = 2 dollars an hour and carpenters earn w=8w = 8 dollars an hour. (a) Derive the conditional factor demands from the Lagrangian for a target output of q=32q = 32 chairs. (b) Find the cost function C(w,r,q)C(w,r,q) and the cost of producing 32 chairs. (c) Verify Shephard's lemma directly: hold r=2r=2 and q=32q=32 fixed, treat CC as a function of ww alone, and check that dC/dwdC/dw equals LL^*. (d) The shop's machine capacity is fixed at K=64K = 64 this quarter — a lease it cannot unwind. Find the short-run cost of building 40 chairs, compare it to the long-run cost of 40 chairs, and confirm the short-run cost curve is tangent to the long-run curve at q=32q=32. (click to reveal the solution)

Setting up (a) — the Lagrangian. Here a=23a = \tfrac23 (the exponent on KK) and b=13b = \tfrac13 (the exponent on LL). Tangency requires

KL=abwr=282=8K=8L.\frac{K}{L} = \frac{a}{b}\cdot\frac{w}{r} = 2 \cdot \frac{8}{2} = 8 \quad\Longrightarrow\quad K = 8L.

Substitute into the production function:

q=K2/3L1/3=(8L)2/3L1/3=82/3L2/3+1/3=4L,q = K^{2/3}L^{1/3} = (8L)^{2/3}L^{1/3} = 8^{2/3}\,L^{2/3+1/3} = 4L,

using 82/3=(23)2/3=22=48^{2/3} = (2^3)^{2/3} = 2^2 = 4. So L(q)=q/4L^*(q) = q/4 and K(q)=8L=2qK^*(q) = 8L^* = 2q. At q=32q = 32: L=8L^* = 8 and K=64K^* = 64. Check: 642/3×81/3=16×2=3264^{2/3}\times 8^{1/3} = 16 \times 2 = 32. ✓

Step (b) — the cost function. C=wL+rK=8(q/4)+2(2q)=2q+4q=6qC = wL^* + rK^* = 8(q/4) + 2(2q) = 2q + 4q = 6q. At q=32q=32: C(32)=192C(32) = 192 dollars. Confirm against the general cost-share result: since a=23,b=13a=\tfrac23, b=\tfrac13, labor's share of cost should be b/(a+b)=1/3b/(a+b) = 1/3 and capital's should be 2/32/3. Check: wL=8(8)=64wL^* = 8(8) = 64, and 64/192=1/364/192 = 1/3. ✓ rK=2(64)=128rK^* = 2(64) = 128, and 128/192=2/3128/192 = 2/3. ✓ Note also a+b=1a+b = 1: constant returns to scale, so CC is exactly linear in qq and MC=ATC=6MC = ATC = 6 dollars a chair at every output — the same flat shape the bottling plant produced, now from asymmetric exponents.

Step (c) — Shephard's lemma. Hold r=2r=2, q=32q=32 fixed and write cost purely as a function of ww. Redo the tangency ratio symbolically: K/L=2(w/2)=wK/L = 2(w/2) = w, so K=wLK = wL. Substituting into q=K2/3L1/3=(wL)2/3L1/3=w2/3Lq = K^{2/3}L^{1/3} = (wL)^{2/3}L^{1/3} = w^{2/3}L, so L(w)=32/w2/3L(w) = 32/w^{2/3}. Then

C(w)=wL(w)+2K(w)=wL(w)+2wL(w)=3wL(w)=3w32w2/3=96w1/3.C(w) = wL(w) + 2K(w) = wL(w) + 2wL(w) = 3wL(w) = 3w\cdot\frac{32}{w^{2/3}} = 96\,w^{1/3}.

Check at w=8w=8: 96(8)1/3=96(2)=19296(8)^{1/3} = 96(2) = 192. ✓ matches (b). Now differentiate:

dCdw=9613w2/3=32w2/3.\frac{dC}{dw} = 96\cdot\frac{1}{3}w^{-2/3} = 32\,w^{-2/3}.

At w=8w=8: 32(8)2/3=32/4=832(8)^{-2/3} = 32/4 = 8. And LL^* from part (a) was exactly 88. ✓ Differentiating the cost function with respect to the wage handed back the exact headcount of carpenters, precisely as Shephard's lemma claims.

Step (d) — short run versus long run. With Kˉ=64\bar K = 64 fixed (the level optimal for q=32q=32, from part (a)), solve for LL at q=40q=40: q=642/3L1/3=16L1/3q = 64^{2/3}L^{1/3} = 16L^{1/3}, so L1/3=40/16=2.5L^{1/3} = 40/16 = 2.5, giving L=2.53=15.625L = 2.5^3 = 15.625. Short-run cost:

SC(40)=wL+rKˉ=8(15.625)+2(64)=125+128=253 dollars.SC(40) = wL + r\bar K = 8(15.625) + 2(64) = 125 + 128 = 253 \text{ dollars.}

Long-run cost at q=40q=40, from the flat C(q)=6qC(q)=6q found in (b): C(40)=240C(40) = 240 dollars. So SC(40)=253>240=C(40)SC(40) = 253 > 240 = C(40) — the shop pays 13 dollars a day more than it would if it could also resize its machine fleet for 40 chairs, because Kˉ=64\bar K=64 is more capital than 40 chairs actually needs at the tangent ratio, forcing carpenters to work around underused machines.

Now confirm the tangency at q=32q=32, both level and slope. In general, with Kˉ=64\bar K=64 fixed, q=16L1/3L(q)=(q/16)3q = 16L^{1/3} \Rightarrow L(q) = (q/16)^3, so

SC(q)=wL(q)+rKˉ=8(q16)3+128=q3512+128.SC(q) = wL(q) + r\bar K = 8\left(\frac{q}{16}\right)^{3} + 128 = \frac{q^3}{512} + 128.

At q=32q=32: SC(32)=323/512+128=32,768/512+128=64+128=192SC(32) = 32^3/512 + 128 = 32{,}768/512 + 128 = 64 + 128 = 192, matching C(32)=192C(32) = 192 exactly — equality, as it must be. ✓ Differentiate: SC(q)=3q2/512SC'(q) = 3q^2/512, so SC(32)=3(1024)/512=6SC'(32) = 3(1024)/512 = 6, exactly the constant long-run MC=6MC = 6 found in (b). ✓ Same level, same slope, at precisely the output the fixed capital was sized for — the defining signature of tangency between a short-run curve and the long-run envelope.

Where this leads

Start from a two-input production function, apply the same Lagrangian that solved a consumer's problem two topics ago, and everything Costs of Production took as given falls out with a derivation behind it: the tangency condition MPL/w=MPK/rMP_L/w = MP_K/r, conditional factor demands built in full on Cobb-Douglas, a cost function C(w,r,q)C(w,r,q) that explains where TC(q)TC(q) actually comes from, returns to scale mapping directly onto whether long-run average cost falls, sits flat, or rises, Shephard's lemma turning a cost derivative into a headcount, and a short-run cost curve proven — not drawn and asserted — to sit tangent to the long-run envelope at exactly one output. The bakery's flat $10 curve and the natural-monopoly case of ever-falling average cost are now the same equation, LRACq1/(a+b)1LRAC \propto q^{1/(a+b)-1}, evaluated at two different values of a+ba+b.

But notice everything this topic held fixed. ww and rr sat on the page as data throughout — numbers the firm reacts to, never numbers it explains. What happens to a firm's whole cost structure, and therefore to its position in Firms in Competitive Markets, when the wage it faces actually changes — a citywide raise, a new machine-rental market opening up two counties over? Shephard's lemma already contains half the answer, since it says exactly how conditional demand for each input responds to its own price, but nothing here has asked where ww and rr themselves settle.

That question turns out to be the same one left standing at the end of Consumer Choice. Both halves of every market in this track have now been solved — Nadia optimizing against prices px,pyp_x, p_y she cannot move, this bottling plant optimizing against prices w,rw, r it cannot move — and both solutions treated their prices as arriving from outside, on a sign, unexplained. But every one of those prices is itself the outcome of some other market clearing: the labor market that sets ww is made of firms like this one demanding labor and people like Nadia supplying it, simultaneously. Solve every market at once, consumers and firms and all, and the prices stop being data and become unknowns to be found — along with two theorems about whether what comes out the other end is any good. That is General Equilibrium and the Welfare Theorems.

Check yourself

4 questions

  1. A firm with q=K1/2L1/2q = K^{1/2}L^{1/2} faces w=20w = 20 dollars per labor-hour and r=5r = 5 dollars per machine-hour, and is currently at (K,L)=(40,40)(K, L) = (40, 40), which does produce q=40q = 40. What should it do?

  2. A firm with q=K1/2L1/2q = K^{1/2}L^{1/2} faces w=8w = 8 and r=2r = 2, and wants to produce q=60q = 60 units. How much capital does the cost-minimizing plan use?

  3. A firm's cost function is C(w,r,q)=4qwrC(w,r,q) = 4q\sqrt{wr}. By Shephard's lemma, what is its conditional demand for capital, K(w,r,q)K^*(w,r,q)?

  4. A firm's long-run cost is C(q)=20qC(q) = 20q. Its capital is fixed at the level that was optimal for q=40q = 40, and at that fixed capital its short-run cost is SC(q)=q2/4+400SC(q) = q^2/4 + 400. Producing q=60q = 60 in the short run costs how much more than the long-run minimum for 60 units?