A firm is in equilibrium when it produces that amount of output at which the difference between total revenue (TR) and total cost (TC), i.e., total profit is maximum. A producer can earn maximum profits when difference between TR and TC is maximum. By fixing different prices, a producer tries to find out the level of output where the difference between TR and TC is maximum. The level of output where producer earns maximum profits is called the equilibrium situation.