Efficient Surplus

Computing total surplus at the competitive equilibrium of linear demand and supply.

Question template

I am considering launching a new video game. In this market, the consumer demand function is given by d curve and the supply function, describing the development costs and associated expenses, is given by s curve. Here both functions give the price P as a function of the quantity Q. What would be the total surplus at the competitive equilibrium point?

Use it

from datasets import load_dataset
ds = load_dataset("narunraman/steer_me", "efficient_surplus")