Derive Market Curve From Demand Curve