Revenue changes both units and the price of units sold
The original native example uses inverse demand P=100-q and variable cost 20q. If the same price applies to all units, total revenue is (100-q)q, not 100q. Increasing output lowers the price on all sold units in this model. Marginal revenue is therefore 100-2q, while marginal cost is 20. Equating price with marginal cost would ignore the lost revenue on earlier units.
For a connected Harbor product file, add a committed fixed cost of 500. Period profit is 80q-q²-500 over 0≤q≤100. Completing the square gives 1,100-(q-40)², proving an unconstrained maximum at q=40, P=60 and profit 1,100. The second derivative is -2, consistent with strict concavity. This is a model of a single-price seller facing the stipulated demand, not a price-taking firm or a claim of monopoly power in a real market.
The native example without the added 500 retains its original profit expression and maximum quantity. Adding a constant fixed cost changes the level of profit but not the interior first-order quantity under this defined short-run operating choice. Whether to operate or exit requires knowing which costs remain under the alternatives.
Constraints can make an interior formula infeasible
If usable capacity is only thirty units, the unconstrained forty-unit solution is unavailable. Profit rises through q=30 on the feasible interval, so the constrained maximum is q=30, price 70 and profit 1,000. Evaluate the boundary instead of clipping a formula without checking the direction and competing alternatives.
Increasing capacity from thirty to forty permits a profit improvement of 100 before paying for expansion. An incremental capacity fee of 120 would leave the expanded proposal 20 worse than keeping capacity thirty; a fee of 80 would improve profit by 20. The relevant benefit is the additional achievable profit, not ten units multiplied by the old price or the old margin.
At q=30, the local derivative of profit is 20 per additional unit. That is a marginal value at the boundary, not the average value of a ten-unit expansion; the derivative declines as output rises. Integrating or directly comparing total profit gives the 100 total benefit. For discrete units, evaluate feasible integers rather than pretending that every fractional quantity can be produced.
Keep market structure and the stopping option explicit
For a price-taking seller, the firm's perceived price is constant over its feasible small output range, so marginal revenue equals that given price. With downward-sloping single-price demand, marginal revenue differs from price. Both models require their own assumptions about rivals, substitutes and scope. Observing a profitable business is insufficient evidence for either structure.
If the committed 500 remains even when output is zero, the no-output short-run payoff is -500. Operating at the constrained q=30 gives 1,000 and adds 1,500 relative to that no-output alternative. If closing allows all 500 to be avoided, the comparison changes and may involve other closure or restart effects. State which stopping option is actually feasible and what its payoff contains.
An interior stationary point is not universally a maximum. Nonconcave costs, quantity discounts, minimum orders and multiple products can create corners or several local candidates. Evaluate relevant boundaries, discontinuities and feasible alternatives using the full objective. A solver's successful termination does not establish that its input model captures the real choice.
Separate efficient computation from persuasive evidence
The laboratory enumerates all integer outputs as an independent check on the analytic solution. That check can catch a derivative, sign or boundary error; it cannot validate the demand curve, actual capacity or relevant costs. Preserve the units, time period and evidence version so another analyst can reproduce both the arithmetic and the assumptions.
Perform sensitivity before making a commitment. A lower demand intercept, a variable cost increase or a costly capacity step can change quantity, price and total profit together. Recompute all of them; keeping the original selling price while changing quantity would no longer follow the stipulated inverse demand. Consider whether a demand shock also changes feasible service or cost, and label isolated sensitivities as such.
Use the complete current on-site competitive and monopoly explanations together. They describe contrasting decision settings, not a license to apply a monopoly formula to every business. Optional practice changes capacity, expansion cost and the meaning of a committed cost. The recommendation should identify the feasible action, the counterfactual, the supporting evidence and the assumption that could reverse it.
Worked example: The boundary beats an infeasible optimum
With capacity thirty, P=70 and profit=70(30)-20(30)-500=1,000. The q=40 value is 1,100 but cannot be selected without changing capacity.
Worked example: Capacity is worth the total improvement it permits
Moving from q=30 to q=40 improves pre-expansion-fee profit by 100. Paying 120 produces 980, below the original 1,000; paying 80 produces 1,020.