The Solution.
The given profit function is
To maximize the factory's profit, we have to differentiate the given function with respect to n, and then equate to zero.
Solving for x, we get
Dividing both sides by -0.04, we get
So, the number of cookies to be sold to maximize profit is 150 thousands of cookies.
To get the maximum profit that can be expected, we shall substitute 150 for n in the given profit function. That is,
Thus, the maximum profit to be expected is 429 thousands of dollars.