By M. Guo OS

Imagine selling coffee. At £2 per cup, you might sell a large number, but earn relatively little per cup. At £6, you earn much more per sale, but sell fewer cups because fewer customers are willing to buy. Can we use mathematics to find a price that balances these two factors?

To answer this question, we first need to decide what perfect means. The price that maximises revenue may not maximise profit, and neither necessarily maximises society’s wellbeing. A simple economic model illustrates why.

1. Demand and Revenue

Suppose the shop faces the hypothetical demand function

Q=140−20P,(1)Q=140-20P, \tag{1}

where PP is the price of a coffee in pounds and QQ is the number sold per day. Every £1 increase reduces sales by 20 coffees, reflecting the law of demand: as the price rises, the quantity demanded falls. At £2, demand is 100 coffees; at £7, it is zero. We restrict attention to 0≤P≤70\leq P\leq7.

Revenue is price multiplied by quantity, R(P)=PQ=P(140−20P)=140P−20P2R(P)=PQ=P(140-20P)=140P-20P^2. Differentiating, we find the price at which a small change in price no longer increases revenue, an approach known as marginal analysis:

R′(P)=140−40P=0⟹PR=£3.50.R'(P)=140-40P=0 \quad\Longrightarrow\quad \boxed{P_R=\text{£}3.50}.

Since R′′(P)=−40<0R”(P)=-40<0, this is a maximum: at £3.50 the shop sells 70 coffees, earning £245 per day.

2. Revenue is not profit

Now assume that producing each coffee costs £1, with no fixed costs. Profit is revenue minus production cost:

Π(P)=(P−1)Q=(P−1)(140−20P)=−20P2+160P−140.\Pi(P)=(P-1)Q=(P-1)(140-20P)=-20P^2+160P-140.

The stationary point occurs where

Π′(P)=160−40P=0⟹PΠ=£4.\Pi'(P)=160-40P=0 \quad\Longrightarrow\quad \boxed{P_\Pi=\text{£}4}.

Again, Π′′(P)=−40<0\Pi”(P)=-40<0. At £4 the shop sells 60 coffees and earns £180 profit, compared with £175 at the revenue-maximising price. Selling fewer coffees can be more profitable because the margin on each sale is higher (Figure 1).

Figure 1: The same demand function produces different revenue- and profit-maximising prices. Profit is plotted where price covers unit cost.

3. Can we derive a general formula?

Replace the numbers in our demand model with constants, Q=a−bPQ=a-bP with a,b>0a,b>0, and let the constant marginal cost be cc. Then

Π(P)=(P−c)(a−bP),Π′(P)=a−2bP+bc.\Pi(P)=(P-c)(a-bP),\qquad \Pi'(P)=a-2bP+bc.

Provided the optimum lies within the feasible demand range, which requires 0≤c<a/b0\leq c<a/b, setting Π′(P)=0\Pi'(P)=0 gives

P∗=a+bc2b=12(ab+c).(2)\boxed{P^*=\frac{a+bc}{2b}=\frac12\left(\frac ab+c\right)}. \tag{2}

Setting c=0c=0 in (2) gives P∗=a2b=14040=£3.50P^*=\frac{a}{2b}=\frac{140}{40}=\text{£}3.50, the revenue-maximising price from Section 1: maximising revenue is simply the special case of maximising profit when production costs nothing.

Here, a/ba/b is the choke price: the price at which demand falls to zero. Equation (2) shows that the profit-maximising price lies exactly halfway between the choke price and marginal cost. Thus, if the unit cost rises by £1, the optimal price increases by only 50p, assuming demand remains unchanged. However, this does not mean higher costs have little effect on profits. Substituting P∗P^* back into Π(P)\Pi(P), the firm’s maximum achievable profit is

Π∗=(a−bc)24b,\Pi^*=\frac{(a-bc)^2}{4b},

which still falls as cc rises. For our café, Π∗=(140−20)280=£180\Pi^*=\frac{(140-20)^2}{80}=\text{£}180, as found in Section 2.

4. A third answer: maximising welfare

What if we care about the benefits to consumers and the shop together, not simply the shop’s profit? Rearranging (1) gives inverse demand, P(Q)=7−Q20P(Q)=7-\frac{Q}{20}. We interpret this curve as consumers’ marginal willingness to pay. Since the total value of the coffees to consumers is the area under the demand curve, it is easier to work with the quantity QQ, converting back to a price at the end. The total value of QQ coffees is

V(Q)=∫0Q(7−q20)dq=7Q−Q240.V(Q)=\int_0^Q\!\left(7-\frac q{20}\right)\,dq =7Q-\frac{Q^2}{40}.

Our measure of welfare is total surplus: the consumer surplus (the value of the coffees to consumers minus what they pay) plus the café’s profit. The payments cancel out, so with a production cost of £1 per coffee, total surplus is

W(Q)=V(Q)−Q=6Q−Q240.W(Q)=V(Q)-Q=6Q-\frac{Q^2}{40}.

Hence

W′(Q)=6−Q20=P(Q)−1=0⟹QW=120.W'(Q)=6-\frac Q{20}=P(Q)-1=0 \quad\Longrightarrow\quad Q_W=120.

In other words, W′(Q)W'(Q) is the value of the last coffee to a buyer minus its cost. Because W′′(Q)=−1/20<0W”(Q)=-1/20<0, welfare is maximised at 120 coffees, which corresponds to

PW=7−12020=£1.\boxed{P_W=7-\frac{120}{20}=\text{£}1}.

This is the condition price equals marginal cost, known in economics as allocative efficiency: the value of the last coffee to a buyer equals its cost of production. Under our assumptions, this price maximises total surplus, although it does not account for how the benefits are distributed. However, it is not the price our profit-maximising café would choose.

At the profit-maximising price of £4, our café produces only 60 coffees per day. The welfare loss from producing 60 rather than 120 is

W(120)⏟£360−W(60)⏟£270=£90.\underbrace{W(120)}_{\text{£}360}-\underbrace{W(60)}_{\text{£}270} =\boxed{\text{£}90}.

As a check, at £4 consumers gain a surplus of 12×60×(7−4)=£90\frac12\times60\times(7-4)=\text{£}90 and the café makes £180 profit, giving W(60)=£270W(60)=\text{£}270. The £90 lost is called deadweight loss (Figure 2).

Figure 2: The shaded triangle is the £90 of deadweight loss when output is 60 rather than 120 coffees.

5. Conclusion: perfect for whom?

The same demand model has given us three different prices:

ObjectiveOptimal priceCoffees soldCafé profit
Maximum revenue£3.5070£175
Maximum profit£4.0060£180
Maximum total welfare£1.00120£0

All three prices can be derived directly from our assumptions. However, in reality, consumers do not necessarily follow linear demand curves, firms face competition and fixed costs, and policymakers may consider affordability and fairness as well as efficiency.

Mathematics can determine an optimal price once we specify an objective and a model. But mathematics alone cannot decide what that objective should be. Perhaps the most relevant question is not “What is the perfect price?” but “Perfect for whom?”

References

Corporate Finance Institute. “Marginal Analysis.” Corporate Finance Institute, 2021. https://corporatefinanceinstitute.com/resources/economics/marginal-analysis/.

“Law of Demand.” Khan Academy. https://www.khanacademy.org/economics-finance-domain/ap-microeconomics/ap-supply-demand-equilibrium/a/law-of-demand.

Pettinger, Tejvan. “Allocative Efficiency.” Economics Help. https://www.economicshelp.org/blog/glossary/allocative-efficiency/.


Leave a Reply

Trending