MATH 250 · Mathematics for Economics II

Implicit Differentiation and Comparative Statics

Find how a market's price and quantity respond to a change in income or taxes without ever solving for the equilibrium.

Key takeaways

  • Comparative statics compares two resting points of a model, before and after an outside factor changes.
  • Exogenous variables come from outside the model (income, taxes). Endogenous variables are determined inside it (price, quantity).
  • Implicit differentiation finds dy/dx from an equation F(y, x) = 0 even when you cannot solve for y.
  • The formula is dy/dx = −F_x ÷ F_y, which needs F_y to be nonzero.
  • The answer gives both the direction and the size of the effect, as a number.

The town of Millbrook has one pizza place. One year the local factory gives everyone a raise. A week later, the owner notices the price on the menu has crept up. Did the raise cause that? By how much should we expect prices to move for each extra dollar of income?

Economists answer questions like this all day. They do not guess. They write down the market's rules, hold the rules fixed, change one outside factor, and ask how the answer moves. This is called comparative statics, and the math tool behind it is implicit differentiation. It lets you find the size of the move without solving the whole market first.

Two kinds of variables

Start with a clean split. In any model, some variables are set from outside. We call them exogenous, from Greek words meaning "born outside." Income, the weather and a tax rate are typical. Others are worked out by the model itself, and we call them endogenous, "born inside." In a market, price and quantity are endogenous: they settle wherever buyers and sellers meet.

A comparative statics question asks: if one exogenous variable changes by a little, how much does an endogenous variable change at the new resting point? The word "statics" means we compare two still pictures, not the movie in between. We saw the graph version in systems of equations and market equilibrium: shift the demand curve, find the new crossing. Now we want a number for how far it shifts, using calculus.

The brute-force way first

Let's see Millbrook's market in simple numbers. Suppose, in thousands of pizzas per week and dollars:

Demand:  Qd = 40 − 2P + Y
Supply:  Qs = 3P − 10

Here P is the price and Y is average income in thousands of dollars. Income is the exogenous variable. Price and quantity are endogenous. Set Qd = Qs:

40 − 2P + Y = 3P − 10
50 + Y = 5P
P = 10 + Y/5

At Y = 20: P = 10 + 4 = $14, and Q = 3 × 14 − 10 = 32. If income rises to Y = 30, then P = 10 + 6 = $16 and Q = 3 × 16 − 10 = 38. So a rise of 10 in income lifts the price by 2, and dP/dY = 2 ÷ 10 = 0.2. Each extra $1,000 of income raises the price by 20 cents.

That worked because the model was easy to solve. Real models, with curved supply and demand and many variables, often cannot be solved for P in neat form. Then the brute-force method fails. Implicit differentiation does not need it.

A rise in income shifts demand and raises the price
Price ($) 32 $14 38 $16 Supply Demand, Y = 20 Demand, Y = 30 Old New Quantity (thousands) Price ($) 32 $14 38 $16 Supply Demand, Y = 20 Demand, Y = 30 Old New Quantity (thousands)

The new crossing is up and to the right. Comparative statics measures that move.

The implicit way

Put everything on one side so the equation reads F = 0. Here, set demand minus supply equal to zero:

F(P, Y) = (40 − 2P + Y) − (3P − 10) = 50 − 5P + Y = 0

This equation holds at every equilibrium. As income Y changes, price P adjusts so that F stays equal to zero. We say P is an implicit function of Y: it is defined by the equation but not written out as "P equals something."

Now use the total differential from the last lesson. Because F stays at zero, its total change is zero:

dF = F_P × dP + F_Y × dY = 0

Solve for the ratio:

dP/dY = − F_Y ÷ F_P

The partials are F_P = −5 and F_Y = +1. So dP/dY = −(1) ÷ (−5) = 0.2. Same as before, found without solving for P. The method is sometimes called the implicit function rule, and it works for any F with smooth partials, provided F_P is not zero. If F_P were zero, dividing by it would be impossible, and the model could not pin down how P responds.

The implicit function rule
dP/dY = − F_Y ÷ F_P dP/dY = The answer we want Price response per extra unit of income. − F_Y = Pull of the outside factor How much income disturbs the equation. F_P = Pull of the inside variable How much price changes the equation. It must not be zero. dP/dY = − F_Y ÷ F_P dP/dY = The answer we want Price response per extra unit of income. − F_Y = Pull of the outside factor How much income disturbs the equation. F_P = Pull of the inside variable How much price changes the equation. It must not be zero.

Hold the whole equation at zero, then read off the response.

Read the formula as a tug of war. Income pulls the equation out of balance by F_Y. Price pulls it back by F_P per unit of price. The price has to move far enough to cancel the disturbance, so the response is the ratio of the two pulls, with a minus sign to show they oppose one another.

What happens to quantity?

You can chase the other endogenous variable too. Quantity is Q = 3P − 10 (from the supply side). So dQ/dY = 3 × dP/dY = 3 × 0.2 = 0.6. At Y = 20 to Y = 30, that is a rise of 6 thousand pizzas, from 32 to 38. It matches the graph.

Notice the signs. Both price and quantity rise when income rises. That is what we would expect of a normal good, one people buy more of when they get richer. If the model had a negative sign on income in the demand equation (a good people drop when richer, called an inferior good), the same method would tell us price and quantity fall. The method turns a vague claim into a signed number.

A second example: a tax

The mayor proposes a tax of t dollars on each pizza, paid by sellers. Sellers receive P − t per pizza, so supply becomes Qs = 3(P − t) − 10. Hold income at Y = 20. Then demand is Qd = 60 − 2P. Now:

F(P, t) = (60 − 2P) − (3(P − t) − 10)
        = 60 − 2P − 3P + 3t + 10
        = 70 − 5P + 3t = 0

The partials are F_P = −5 and F_t = +3, so dP/dt = −(3) ÷ (−5) = 0.6. Each dollar of tax raises the price buyers pay by 60 cents. Sellers absorb the other 40 cents, because the price they keep, P − t, moves by 0.6 − 1 = −0.4. Quantity falls: Q = 60 − 2P, so dQ/dt = −2 × 0.6 = −1.2 thousand pizzas for each dollar of tax.

Check with exact numbers. With t = 0: P = 14, Q = 32. With t = 1: 70 − 5P + 3 = 0, so P = 14.6 and Q = 60 − 29.2 = 30.8. The change is 0.6 in price and −1.2 in quantity. They match exactly because the model is linear.

This is the famous result about tax incidence, and the split depends on the slopes of demand and supply. Steeper demand (buyers who cannot walk away) means buyers bear more. You can see it by changing the −2 to a bigger number and rerunning the steps. The method gives you the answer for every model of that shape in one go.

Comparative statics, step by step
1 Write the model List the rules: demand, supply and the equilibrium condition. 2 Make F = 0 Move everything to one side so the equilibrium equation reads F(P, X) = 0. 3 Find the two partials Compute F_P and F_X at the starting point. 4 Divide dP/dX = −F_X ÷ F_P. Check the sign and the size. Write the model List the rules: demand, supply and the equilibrium condition. 1 Make F = 0 Move everything to one side so the equilibrium equation reads F(P, X) = 0. 2 Find the two partials Compute F_P and F_X at the starting point. 3 Divide dP/dX = −F_X ÷ F_P. Check the sign and the size. 4

When the model is not so tidy

The linear pizza market was solvable, so we could check our work. Now try a market where solving is awkward. Suppose demand is Qd = 100 ÷ P + Y, with income Y again and a price P that must be positive, and supply is Qs = 2P. (The 100 ÷ P piece is a demand curve that bends, which is common in real demand.) Equilibrium needs

F(P, Y) = 100/P + Y − 2P = 0

You could solve this for P with the quadratic formula, but that is a mess. Use the rule. The partials are F_Y = 1 and F_P = −100/P² − 2. At Y = 10, what is P? Try P = 5: 100/5 + 10 − 10 = 20, not zero. Try P = 10: 10 + 10 − 20 = 0. Yes, P = 10. Then F_P = −100/100 − 2 = −3, and

dP/dY = −1 ÷ (−3) = 1/3 ≈ 0.33

So near this equilibrium, each extra unit of income lifts the price by about 33 cents. We never solved a quadratic. We found one resting point by testing a few prices, and the rule did the rest. In research papers, economists often do exactly this: they use the rule to find the sign and rough size of an effect for a model that has no neat solution.

Quick check on the sign. Both F_Y = 1 and F_P = −3 are given, so −F_Y ÷ F_P is positive. Does that fit the story? More income raises demand, and supply slopes up, so price should rise. Yes.

Reading the answer like an economist

A number such as 0.2 or 0.6 is not the end of the job. You still ask whether it is plausible, and what it means in plain words. A pizza price that rises 20 cents for every $1,000 of extra income is believable. A price that rose $20 for the same raise would make you suspect an arithmetic slip.

It also helps to turn the answer into a proportional change. At Y = 20 and P = 14, the elasticity of price with respect to income is (dP/dY) × (Y/P) = 0.2 × (20 ÷ 14) = 0.286. A 1% rise in income raises the price by about 0.29%. Elasticities strip away the units, so you can compare pizza with houses or with haircuts. You saw this move in elasticity with calculus.

Last, think about what the method assumes. It assumes the market moves from one resting point to another, with nothing else shifting at the same time. In the real Millbrook, the factory raises might also bring new residents, and new residents change both demand and supply. A good comparative statics claim says "all else equal" and means it.

A common mistake

The classic slip is the minus sign. Students find dP/dY = F_Y ÷ F_P = 1 ÷ (−5) = −0.2 and conclude that richer people make prices fall, which contradicts the graph. The formula has a minus in front. Always check your sign against a quick sketch of the shifting curve. If demand shifts right and supply slopes up, price must rise.

Another mistake is treating the exogenous variable as if it were endogenous. In the tax example, t is chosen by the mayor and is not decided by the market. P and Q are decided by the market. If you mix them up, you will differentiate the wrong thing.

A third slip is forgetting that the result is local. The number 0.2 holds near Y = 20. In a curved model, dP/dY changes from place to place, and it is only a good guide for small moves, just as with any differential.

Finally, do not trust a sign you cannot explain. A good economist always asks: why? Here, more income raises demand, a higher demand curve crosses the upward-sloping supply at a higher price. If the story and the sign disagree, one of them is wrong.

Words to know

Exogenous variable a variable set outside the model, such as income or a tax rate.

Endogenous variable a variable the model itself determines, such as price and quantity.

Comparative statics comparing the resting points of a model before and after an outside factor changes.

Implicit function a function defined by an equation, such as F(P, Y) = 0, without a formula that solves for P.

Implicit differentiation finding a derivative of an implicit function using dy/dx = −F_x ÷ F_y.

Tax incidence how the burden of a tax is split between buyers and sellers.

Check yourself

  1. In the model with demand Qd = 40 − 2P + Y and supply Qs = 3P − 10, which variables are exogenous?
  2. Write F(P, Y) for that model and state F_P and F_Y.
  3. Using the implicit rule, find dP/dY. Then find the price change if Y rises by 5.
  4. With the tax model F = 70 − 5P + 3t, find dP/dt and the share of a one-dollar tax that buyers pay.
  5. Why must F_P be nonzero for the implicit rule to work?
  6. A student says "demand rose, so price must fall." Explain what is wrong, using a supply and demand picture in words.
Show the answers
  1. Only income Y is exogenous here; price P and quantity Q are endogenous.
  2. F = 50 − 5P + Y, so F_P = −5 and F_Y = +1.
  3. dP/dY = −1 ÷ (−5) = 0.2, so a rise of 5 in Y lifts the price by 5 × 0.2 = $1.
  4. dP/dt = −3 ÷ (−5) = 0.6, so buyers pay 60 cents of each tax dollar (60%).
  5. The rule divides by F_P; if it were zero, the division is impossible and the equation does not tell us how P responds to the outside change.
  6. When demand shifts right, it crosses the upward-sloping supply curve farther up, so price and quantity both rise; a fall in price would need supply to shift, not demand.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Several variables

  1. Functions of Several Variables and Level CurvesLearn how a payoff that depends on two or more things is described, and how level curves turn a 3D hill into a flat map.11 min
  2. Partial DerivativesFreeze every input but one and take an ordinary derivative: that is how economists measure one-at-a-time marginal effects.10 min
  3. Total Differentials and the Chain RuleAdd up each input's marginal effect to estimate the full change in output, then follow that change through time.11 min
  4. Implicit Differentiation and Comparative StaticsFind how a market's price and quantity respond to a change in income or taxes without ever solving for the equilibrium.11 min
  5. Homogeneous Functions and Euler's TheoremSee what happens to output when every input is scaled up together, and why paying inputs their marginal products can use up all output.11 min

In the news