Daniel B. answered 03/28/21
A retired computer professional to teach math, physics
Given x passengers over 208, there will be 208+x passengers.
Each passenger gets a discount of $x, so each pays 310-x.
The total revenue is then the product of passengers and price:
R(x) = (208 + x)(310 - x) = 208×310 + 102x - x²
R(x) is a quadratic function with negative leading coefficient, therefore
R(x) is convex up, therefore its maximum occurs where its derivative is 0.
R'(x) = 102 - 2x = 0
x = 51
The maximum revenue is reached when there are 51 extra passengers, i.e, 259 passengers in total.
Each passenger will pay $310 - $51 = $259,
for total revenue of $259×259 = $67081
By the way, the fact that the number of passengers ended up same as the price is not a coincidence.
In general, quadratic forms like R(x) = a(x)×b(x) are maximized when a(x)=b(x).
So we could have seen the result immediately without any differentiation.