Derive the consumer surplus when the demand function is equal to p = 4- q and the supply function is equal to p = 2; assume a market equilibrium. Posted on January 14, 2018 by Derive the consumer surplus when the demand function is equal to p = 4- q and the supply function is equal to p = 2; assume a market equilibrium.