

## Consumer and Producer Surplus

Here are a demand and a supply curve for a product. Which is which?

The demand curve is decreasing – lower prices are associated with higher quantities demanded, higher prices are associated with lower quantities demanded. Demand curves are often shown as if they were linear, but there’s no reason they have to be.

The supply curve is increasing – lower prices are associated with lower supply, and higher prices are associated with higher quantities supplied.

The point where the demand and supply curve cross is called the equilibrium point $$(q^*, p^*)$$.

Suppose that the price is set at the equilibrium price, so that the quantity demanded equals the quantity supplied. Now think about the folks who are represented on the left of the equilibrium point. The consumers on the left would have been willing to pay a higher price than they ended up having to pay, so the equilibrium price saved them money. On the other hand, the producers represented on the left would have been willing to supply these goods for a lower price – they made more money than they expected to. Both of these groups ended up with extra cash in their pockets!

Graphically, the amount of extra money that ended up in consumers' pockets is the area between the demand curve and the horizontal line at $$p^*$$. This is the difference in price, summed up over all the consumers who spent less than they expected to – a definite integral. Notice that since the area under the horizontal line is a rectangle, we can simplify the area integral: $\int\limits_0^{q^*} \left( d(q)-p^*\right)\, dq = \int\limits_0^{q^*} d(q)\, dq - \int\limits_0^{q^*} p^*\, dq = \int\limits_0^{q^*} d(q)\, dq - p^*q^*.\nonumber$

The amount of extra money that ended up in producers' pockets is the area between the supply curve and the horizontal line at $$p^*$$. This is the difference in price, summed up over all the producers who received more than they expected to. Similar to consumer surplus, this integral can be simplified: $\int\limits_0^{q^*} \left( p^*-s(q) \right)\, dq = \int\limits_0^{q^*} p^*\, dq - \int\limits_0^{q^*} s(q)\, dq = p^*q^* - \int\limits_0^{q^*} s(q)\, dq.\nonumber$

##### Consumer and Producer Surplus

Given a demand function $$p = d(q)$$ and a supply function $$p = s(q)$$, and the equilibrium point $$(q^*, p^*)$$

• The consumer surplus is $\int\limits_0^{q^*} d(q)\, dq - p^*q^*.\nonumber$
• The producer surplus is $p^*q^* - \int\limits_0^{q^*} s(q)\, dq.\nonumber$
• The sum of the consumer surplus and producer surplus is the total gains from trade.

What are the units of consumer and producer surplus? The units are (price per item)(quantity of items) = money!

##### Example $$\PageIndex{1}$$

Suppose the demand for a product is given by $$p=d(q)=-0.8q+150$$ and the supply for the same product is given by $$p=s(q)=5.2q$$. For both functions, $$q$$ is the quantity and $$p$$ is the price, in dollars.

1. Find the equilibrium point.
2. Find the consumer surplus at the equilibrium price.
3. Find the producer surplus at the equilibrium price.

Solution

1. The equilibrium point is where the supply and demand functions are equal. \begin{align*} -0.8q+150 & = 5.2q \\ 150 & = 6.0q \\ q & = \frac{150}{6} \\ q & = 25 \end{align*} \nonumber

The equilibrium quantity is 25 items. To find the corresponding equilibrium price we can use either the demand or supply equation.

$$s(25) = 5.2(25) = 130$$. The equilibrium price is 130. 2. The consumer surplus is \begin{align*} \int_0^{25} (-0.8q+150)\, dq - (130)(25) & = \left[-0.8 \frac{q^2}{2} + 150 q\right]_0^{25} - 3250 \\ & = \left(-0.4\left(25^2\right) + 150(25)\right) - \left(-0.4\left(0^2\right) + 150(0)\right) - 3250 \\ & = 3500 - 0 - 3250 \\ & = \250 \end{align*} \nonumber 3. The producer surplus is \begin{align*} (130)(25) - \int_0^{25} 5.2q\, dq & = 3250 - \left[5.2 \frac{q^2}{2}\right]_0^{25} \\ & = 3250 - \left(\left(2.6\left(25^2\right)\right) - \left(2.6\left(0^2\right)\right)\right) \\ & = 3250 - (1625 - 0) \\ & = \1625 \end{align*} \nonumber ##### Example $$\PageIndex{2}$$ Suppose the demand for a product is given by $$p=d(q)=300-5q$$ and the supply for the same product is given by $$p=s(q)=q^2$$. For both functions, $$q$$ is the quantity and $$p$$ is the price, in dollars. 1. Find the equilibrium point. 2. Find the consumer surplus at the equilibrium price. 3. Find the producer surplus at the equilibrium price. Solution 1. This is quadratic, so we can rearrange the equation so one side is zero: $$q^2 + 5q - 300 = 0$$. We could solve this using the quadratic equation: $$q = \frac{-5 \pm \sqrt{5^2-4(1)(-300)}}{2(1)}$$ or we could factor: $$(q+20)(q-15)=0$$, so $$q =-20$$ or $$q = 15$$. We want the positive solution. The equilibrium quantity is 15 items. The equilibrium price is $$s(15) = 15^2 = \225$$. 2. The consumer surplus is \begin{align*} \int_0^{15} (300-5q)\, dq - (225)(15) & = \left[300q - 5\frac{q^2}{2}\right]_0^{15} - 3375 \\ & = \left(300(15) - 2.5\left(15^2\right)\right) - \left(300(0) - 2.5\left(0^2\right)\right) - 3375 \\ & = 3937.5 - 0 - 3375 \\ & = \562.50 \end{align*} \nonumber 3. The producer surplus is \begin{align*} (225)(15) - \int_0^{15} q^2\, dq & = 3375 - \left[\frac{q^3}{3}\right]_0^{15}s \\ & = 3375 - \left(\left(\frac{15^3}{3}\right) - \left(\frac{0^3}{3}\right)\right) \\ & = 3375 - (1125 - 0) \\ & = \2250 \end{align*} \nonumber ##### Example $$\PageIndex{3}$$ The tables below show information about the demand and supply functions for a product. For both functions, $$q$$ is the quantity and $$p$$ is the price, in dollars.  q 0 100 200 300 400 500 600 700 p 70 61 53 46 40 35 31 28  q 0 100 200 300 400 500 600 700 p 14 21 28 33 40 47 54 61 1. Which is which? That is, which table represents demand and which represents supply? 2. What is the equilibrium price and quantity? 3. Find the consumer and producer surplus at the equilibrium price. Solution 1. The first table shows decreasing price associated with increasing quantity; that is the demand function. 2. For both functions, $$q = 400$$ is associated with $$p = 40$$; the equilibrium price is40 and the equilibrium quantity is 400 units. Notice that we were lucky here, because the equilibrium point is actually one of the points shown. In many cases with a table, we would have to estimate.
3. The consumer surplus uses the demand function, which comes from the first table. We'll have to approximate the value of the integral using rectangles. There are 4 rectangles, and let's choose to use left endpoints.

The consumer surplus is \begin{align*} \int\limits_0^{400} \text{(demand)}\, dq-(40)(400)\approx & \\ (100)(70+61+53+46)-(40)(400) & = \7000 \end{align*} \nonumber So the consumer surplus is about 7000. The producer surplus uses the supply function, which comes from the second table. Let's choose to use left endpoints for this integral also. The producer surplus is \begin{align*} (40)(400)-\int\limits_0^{400} \text{(supply)}\, dq \approx & \\ (40)(400)-(100)(14+21+28+33) & = \6400 \end{align*} \nonumber So the producer surplus is about6400.

## Continuous Income Stream

In precalculus, you learned about compound interest in that really simple situation where you made a single deposit into an interest-bearing account and let it sit undisturbed, earning interest, for some period of time. Recall:

##### Compound Interest Formulas

Let $$P$$ be the principal (initial investment), $$r$$ be the annual interest rate expressed as a decimal, and $$A(t)$$ be the amount in the account at the end of $$t$$ years.

#### Compounding $$n$$ times per year

$A(t) = P\left(1+\frac{r}{n}\right)^{nt} \nonumber$

#### Compounded continuously

$A(t)=Pe^{rt} \nonumber$

If you’re using this formula to find what an account will be worth in the future, $$t \gt 0$$ and $$A(t)$$ is called the future value.

If you're using the formula to find what you need to deposit today to have a certain value $$P$$ sometime in the future, $$t \lt 0$$ and $$A(t)$$ is called the present value.

You may also have learned somewhat more complicated annuity formulas to deal with slightly more complicated situations – where you make equal deposits equally spaced in time.

But real life is not usually so neat.

Calculus allows us to handle situations where deposits are flowing continuously into an account that earns interest. As long as we can model the flow of income with a function, we can use a definite integral to calculate the present and future value of a continuous income stream. The idea here is that each little bit of income in the future needs to be multiplied by the exponential function to bring it back to the present, and then we'll add them all up (a definite integral).

##### Continuous Income Stream

Suppose money can earn interest at an annual interest rate of $$r$$, compounded continuously. Let $$F(t)$$ be a continuous income function (in dollars per year) that applies between year 0 and year $$T$$.

Then the present value of that income stream is given by $PV = \int\limits_0^T F(t)e^{-rt}\, dt. \nonumber$

The future value can be computed by the ordinary compound interest formula $FV = PVe^{rt}. \nonumber$

This is a useful way to compare two investments – find the present value of each to see which is worth more today.

##### Example $$\PageIndex{4}$$

You have an opportunity to buy a business that will earn $75,000 per year continuously over the next eight years. Money can earn 2.8% per year, compounded continuously. Is this business worth its purchase price of$630,000?

Solution

First, please note that we still have to make some simplifying assumptions. We have to assume that the interest rates are going to remain constant for that entire eight years. We also have to assume that the $75,000 per year is coming in continuously, like a faucet dripping dollars into the business. Neither of these assumptions might be accurate. But moving on: The present value of the$630,000 is, well, $630,000. This is one investment, where we put our$630,000 in the bank and let it sit there.

To find the present value of the business, we think of it as an income stream. The function $$F(t)$$ in this case is a constant $75,000 dollars per year, so $$F(t) = 75,\!000$$. The interest rate is 2.8% and the term we're interested in is 8 years, so $$r = .028$$, and $$T = 8$$: $PV=\int\limits_0^8 75000e^{-0.028t}\, dt \approx 537,\!548.75 \nonumber$ The present value of the business is about$537,500, which is less than the $630,000 asking price, so this is not a good deal. While this integral could have been done using substitution, for many of the integrals in this section we don't have the techniques to use antiderivatives or, in some cases, no antiderivative exists. Technology will work quickly, and it will give you an answer that is good enough. ##### Example $$\PageIndex{5}$$ A company is considering purchasing a new machine for its production floor. The machine costs$65,000. The company estimates that the additional income from the machine will be a constant $7000 for the first year, then will increase by$800 each year after that. In order to buy the machine, the company needs to be convinced that it will pay for itself by the end of 8 years with this additional income. Money can earn 1.7% per year, compounded continuously. Should the company buy the machine?

Solution

We'll assume that the income will come in continuously over the 8 years. We’ll also assume that interest rates will remain constant over that 8-year time period.

We're interested in the present value of the machine, which we will compare to its $65,000 price tag. Let $$t$$ be the time, in years, since the purchase of the machine. The income from the machine is different depending on the time. From $$t = 0$$ to $$t = 1$$ (the first year), the income is constant$7000 per year. From $$t = 1$$ to $$t = 8$$, the income is increasing by \$800 each year; the income flow function $$F(t)$$ will be $$F(t)=7000+800(t-1)=6200+800t$$. To find the present value, we'll have to divide the integral into the two pieces, one for each of the functions: $PV=\int\limits_0^1 7000e^{-0.017t}\, dt + \int\limits_1^8 (6200+800t)e^{-0.017t}\, dt \approx 70166. \nonumber$

The present value is greater than the cost of the machine, so the company should buy the machine.

3.8: Applications to Business is shared under a CC BY 3.0 license and was authored, remixed, and/or curated by Shana Calaway, Dale Hoffman, & David Lippman (The OpenTextBookStore) via source content that was edited to conform to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.