Consumer and Producer Surpluses

Economists often use demand function `D(p)`. The demand function `D(p)` is the quantity of goods that can be sold when price of 1 unit is `p`. Usually, the bigger price, the lower demand, so the demand function is a decreasing function.

Also economists use supply function `S(p)`. The supply function `S(p)` is the quantity of goods that are supplied when price of 1 unit is `p`. Usually, the bigger price, the higher supply, so the supply function is an increasing function.

When supply and demand are equalthe economy is said to be at equilibrium. At this point (point `(P^**,Q^**)`), the allocation of goods is most efficient because the amount of goods being supplied is exactly the same as the amount of goods being demanded. At the equilibrium price suppliers are selling all the goods that they have produced and consumers are getting all the goods that they are demanding.consumer and producer surplus

Consumer surplus is the amount of money saved by consumers because they are able to purchase a product for a price that is less than the highest price that they would be willing to pay.

Consumer surplus is the area under the demand curve and above the line `p=P^**`.

Producer surplus is the amount that producers benefit by selling products at price `P^**` that is higher than the least that they would be willing to sell for.

Producer surplus is area above supply curve and below the line `p=P^**`.

Example. A demand curve is given by `D=450/(p+8)` and supply curve is given by `S=p+49`. Find the consumer and producer surpluses.

We first must find equilibrium points. For this solve equation `D=S`.

So, `450/(p+8)=p+49` or `(p+49)(p+8)=450`.

From this we obtain quadratic equation `p^2+57p-58=0`. Its roots are `p=1` and `p=-58`.

Price can't be negative, so the only equlibrium price is `P^**=1`. Corresponding quantity is `Q^**=1+49=50`.

Now, consumer surplus is area under demand curve on interval `[0,P^**]` minus area of rectangle `P^***Q^**`: `CS=int_0^1 450/(x+8)dx-1*50=450ln(x+8)|_0^1-50=450(ln(9)-ln(8))-50~~3$`.

Producer surplus is area under rectangle minus area below supply curve on interval `[0,P^**]`: `PS=1*50-int_0^1 (x+49)dx=50-(1/2x^2+49x)|_0^1=1/2`.