Deriving firm's supply curve from its MC curve