A simple monopoly model
When x units are made, suppose Product A sells at a unit price of
P(x) = a − bx yen.The cost of producing the x units is
C(x) = F + cx yen.The revenue is
R(x) = x·P(x).The profit is
I(x) = R(x) − C(x).Hover or drag on a chart to move x. Profit is the vertical gap R(x) − C(x); the shaded band is where profit is positive.
The profit curve is a downward parabola; its vertex is the maximum profit.
With P(x) = 1000 − 0.2x and C(x) = 500 + 100x (press the first preset button above):
Revenue is quantity × unit price:
Complete the square (or use the vertex formula x = −B/2A for Ax2 + Bx + C):
The coefficient of x2 is negative, so the parabola opens downward and the vertex is the maximum: producing 2250 units gives the maximum profit of 1,012,000 yen. Check it on the profit chart above — the marked vertex sits exactly there.
Press the second preset button and watch the vertex move. Now
The maximum profit is 799,500 yen, attained at x = 2000 units. A higher unit cost shifts the best quantity down (from 2250 to 2000) and cuts the peak profit.
In general, for P(x) = a − bx and C(x) = F + cx with a > c, the profit I(x) = −bx2 + (a − c)x − F is maximized at x* = (a − c)/(2b) with I(x*) = (a − c)2/(4b) − F. Since x counts units, if x* is not a whole number the best integer quantity is one of the neighbors of x* — the demo checks both.
https://sites.duke.edu/collardwexler/files/2015/01/Monopoly_1.pdf
https://openstax.org/books/principles-microeconomics-3e/pages/9-2-how-a-profit-maximizing-monopoly-chooses-output-and-price