Production function and firm's profit maximization