In calculus, at the maximum point, gradient is zero.

Recall that at the maximum point, this dP/dn is zero and in that case, we have:


Therefore the company will produce 85 thousand units to maximize profits
and in producing these, will make its maximum profit which is 128.5 thousand dollars