Richard P. answered 11/01/15
Tutor
4.9
(818)
PhD in Physics with 10+ years tutoring experience in STEM subjects
The objective function, Q, is the potential profit that could be made. From the problem statement
Q(x) = p(x) x - 1 x = (8 - ln(x)) x -x = 7x - x ln(x)
The calculus approach is to find the value of x that maximizes Q. This is done by taking the derivative of Q and setting this to zero.
Q' = 7 - ln(x) -1 = 6 - ln(x)
(To get this result, the product rule has been used)
Setting this equal to zero gives ln(x) = 6 so x = exp(6) ~ 403.
Notice that 403 lies between 5 and 500 so is valid. Plugging exp(6) into p(x)
gives p = 2, so the hot dog should be priced at $2.
It should be noted that 403 hot dogs per game might be reasonable, but 403 thousand hot dogs per game is not.