How to determine the profit-maximizing output level for a monopolist?