# Leibniz

## 8.6.1 Shifts in demand and supply

The competitive equilibrium price and quantity lie at the point where the supply and demand curves cross. If a shock occurs that shifts one of the curves, the equilibrium price and quantity both change. In this Leibniz, we show how to model the effects of a supply or demand shock mathematically.

To find the competitive equilibrium price and quantity in a market, we need to solve a pair of simultaneous equations—the demand curve , and the supply curve —for *P* and *Q*. In competitive equilibrium the price equalizes demand and supply:

As we saw in Leibniz 8.4.2, if we know the demand and supply functions we can find the equilibrium price by solving this equation, and hence find the equilibrium quantity. But what happens when one of these functions changes?

Consider the case that we analysed in Leibniz 8.4.2, of a market in which the supply and demand functions are both linear:

where are constants. Assume as before that *a*, *b* and *d* are all positive, thereby ensuring that the demand curve slopes downward and the supply curve slopes upward; hence there is at most one equilibrium price. Provided that and , we showed before that there is a positive equilibrium price and a positive equilibrium quantity , given by:

Suppose that in this market there is a positive demand shock. The quantity demanded is now higher at any given price. We can model a demand shock as a change in the parameter *a*. The new demand curve is , where corresponds to a positive shock— would imply a negative shock in which the quantity demanded fell at each price.

To find the new equilibrium price and quantity we could solve for and again, using the new demand curve. But it is quicker and easier to focus on the solutions above for and , and work out how they change when *a* changes:

If you are not sure where these results come from, you can obtain them by writing down an intermediate step. For example, the change in is given by:

It is immediately clear from the expressions for and that an increase in demand () increases both the equilibrium price and the equilibrium quantity. Notice that if quantity demanded at any price increases by one unit () then the increase in quantity demanded and supplied in equilibrium is , which is positive but less than . Thus the increase in demand means that consumers buy more, but it also increases the price, and the consumers buy less than they would have done without the price change.

The demand shock we have analysed here is quite similar to the example of an increase in demand for quinoa shown in Figure 8.11 from the text, reproduced as Figure 1 below. The demand function for quinoa is linear, and the diagram shows that if the amount of quinoa increases at each price, the demand curve shifts to the right and the equilibrium price and quantity both rise. The only difference is that a change in the parameter *a* causes a parallel shift of the demand curve, while in Figure 1 the slope also changes.

We have not considered an example of a positive supply shock in the text. Let us examine it here, using the example of the market for bread. Suppose a technological improvement allows bakeries to produce more at a lower price. We depict this as Figure 2 below. (The supply and demand curves in this graph are not linear, but the principle is the same.) When the marginal cost of baking falls, the supply curve of bakeries shifts down, and the new market equilibrium is at point B.

Such a supply shock means that bakeries are willing to supply more bread at any given price. It may be represented in our linear example by a change in the parameter *c*. (Again, would mean that firms would supply less bread at each price.) The effect on equilibrium price and quantity of such a change is as follows:

(As before, write down the intermediate step if you are not sure how to obtain these results.)

In this case we can conclude that, since , the effect of the shock is to increase quantity and reduce price—as can be seen in Figure 2.

### The non-linear case

If the demand and supply curves are non-linear, it can be difficult to find an explicit solution for the equilibrium price and quantity. But it is still possible to model the effect of a shock that shifts one of the curves, and work out how it affects the equilibrium. We did this diagrammatically in the text for the bread market example. Here we do the same thing algebraically, but for the example of quinoa production.

We will write the demand curve for quinoa as . The quantity demanded decreases with the price *P*, as before; but it also depends on a parameter *a*, which captures consumer tastes. A high value of *a* represents a situation in which consumers have a strong liking for quinoa, so will purchase a high quantity at any given price. When *a* is low, less quinoa is demanded at each price. The dependence of demand on *P* and *a* can be described using the partial derivatives:

Then a positive demand shock can be represented as an increase in the parameter *a*. It has the effect of increasing the quantity demanded at each price. When the demand curve is drawn in space, as usual, it is drawn for a fixed value of *a*. An increase in *a* shifts the demand curve to the right. Similarly, a fall in *a* represents a negative demand shock and shifts the curve to the left.

In the same way, we will write the supply curve for quinoa as where the parameter *c* is introduced to model supply shocks. We can think of *c* as representing technology. A rise in *c* corresponds to a technological improvement, which lowers the marginal cost of producing quinoa and hence implies that producers will supply more quinoa at any given price. In terms of partial derivatives:

An improvement in technology is modelled as an increase in *c*, shifting the supply curve to the right. This is the case illustrated in Figure 2.

For any given *a* and *c*, the demand curve is downward-sloping and the supply curve is upward sloping in space. Hence there is at most one equilibrium price and corresponding equilibrium quantity But if *a* and *c* change, and will change too. So and depend on *a* and *c*, and we can express this by writing them as functions:

We want to know how and change when *a* and *c* change. In other words, we want to know the signs of the partial derivatives of and with respect to *a* and *c*. To find them, we use the technique of implicit differentiation. We will start with the partial derivatives with respect to *a*. These will tell us the effect of a demand shock on the equilibrium.

The equilibrium price satisfies the market-clearing equation:

We will differentiate both sides of this equation with respect to *a*, remembering that is a function of *a* (that is, ). We obtain:

This equation can be rearranged, to write in terms of the other partial derivatives:

The denominator of this fraction is positive, because we know that and . The numerator is positive too, from the way we specified the demand function, above. Hence we can conclude that . Thus, a positive demand shock (an increase in *a*) leads to an increase in the equilibrium price.

To find , we can use the equation for :

again remembering that is a function of *a*. Differentiating with respect to *a*:

From this expression, since and we have just shown that , we deduce that too. Thus, a positive demand shock (an increase in *a*) leads to an increase in both the equilibrium price and the equilibrium quantity, and a negative demand shock has the opposite effects.

To find the effect of a supply shock, we need to find the partial derivatives of and with respect to *c*. This can be done in just the same way. We start by differentiating the market-clearing equation with respect to *c*, to obtain an expression for that we can sign. Then we use either the equation for the supply curve or the equation for the demand curve (the latter is easier in this case) to sign . If you do this carefully, you should find that and , so a positive supply shock raises quantity and lowers price.

This analysis has demonstrated that the qualitative effects of demand and supply shocks on the equilibrium price and quantity are the same as the ones we saw diagrammatically in the text, whatever the precise form of the supply and demand functions—provided that they have the standard properties. That is, the demand curve slopes downward, and the supply curve slopes upward.

Read more: Section 15.2 and the first two paragraphs of Section 15.3 of , Malcolm Pemberton and Nicholas Rau. 2015. *Mathematics for economists: An introductory textbook*, 4th ed. Manchester: Manchester University Press.