Example
Suppose the demand and cost functions are given by
Q = 21 - 0.1P and C = 200 + 10Q
Where,
Q - Quantity sold
P - Price per unit sold
C - Cost of production.
We can compute the revenue and profit as: