Fix the model and ask a different question. Instead of “what is the cheapest order quantity”, ask “is there an order quantity costing at most T per unit time”. That is K·D/Q + h·Q/2 ≤ T with Q > 0, and multiplying through by the positive quantity Q turns it into a polynomial inequality:
K·D/Q + h·Q/2 ≤ T Q > 0
⟺ K·D + h·Q²/2 ≤ T·Q multiply by Q, which is positive
⟺ h·Q²/2 − T·Q + K·D ≤ 0 a quadratic in Q
leading coefficient h/2 > 0 ⟹ the parabola opens upward,
so it is at or below zero exactly BETWEEN its roots, and nowhere else
Definition · The budget discriminantFor the quadratic h·Q²/2 − T·Q + K·D the discriminant is T² − 4·(h/2)·(K·D) = T² − 2hKD. Its sign decides everything:
positive, and there is an interval of order quantities meeting the budget; zero, and there is exactly one; negative, and there is none — the parabola never reaches the axis and no quantity is that cheap.
So the budget can be walked down. Each step is a fresh quadratic with a fresh discriminant, and the interval of affordable quantities closes as the budget tightens. The panel does exactly that, on K = 100, D = 1200, h = 6, where the quadratic is 3Q² − T·Q + 120000 and 2hKD = 1440000.
budget T T² − 2hKD roots of 3Q² − T·Q + 120000 width
1920 2246400 320 ± 40√39 ≈ 70.20 … 569.80 499.600
1680 1382400 280 ± 80√6 ≈ 84.04 … 475.96 391.918
1440 633600 240 ± 40√11 ≈ 107.34 … 372.67 265.330
1320 302400 220 ± 20√21 ≈ 128.35 … 311.65 183.303
1300 250000 400/3 and 300 exactly 500/3
1260 147600 210 ± 10√41 ≈ 145.97 … 274.03 128.062
1200 0 200, twice 0
1199 −2399 none: the parabola misses the axis
The collision, and what survives it
Theorem · The economic order quantity, from a double rootT² − 2hKD = 0 exactly when T = √(2hKD). At that budget the two roots coincide at Q = T/h = √(2hKD)/h = √(2KD/h).
No smaller budget is met by any quantity, since the discriminant is then negative; and that single Q meets this one. So √(2hKD) is the least achievable cost and √(2KD/h) is the unique quantity achieving it.
That is the whole derivation. It uses the quadratic formula, the sign of a leading coefficient, and the fact that a positive variable may be multiplied through an inequality. It proves existence, uniqueness and optimality in one motion, and it never mentions a rate of change. Where a calculus treatment differentiates C(Q), sets the result to zero and then checks a second derivative to rule out a maximum, this argument has no second case to rule out: an upward parabola cannot be below zero outside its roots.
Example · A budget that is not tightSet T = 1300 on the worked instance. The discriminant is 1300² − 1440000 = 250000, a perfect square, and the roots are 400/3 and 300 exactly. Every order quantity between them costs at most 1300: the panel prices 134, 200 and 299 and all three clear the budget, while 133 and 301 do not.
Both endpoints cost exactly 1300 — they are where the cost curve crosses the budget line — so the interval is closed at both ends, which is what ≤ in the original question asked for.
Example · A budget one unit too tightT = 1199 gives 1199² − 1440000 = −2399. The parabola 3Q² − 1199Q + 120000 stays strictly above the axis, and the panel draws it in red with no shaded interval at all.
This is the informative failure. The answer is not “the arithmetic went wrong” but “no order quantity whatsoever costs as little as 1199 per unit time on this data”, and the discriminant is the proof of it.
The same quadratic, read as a tolerance
Setting the budget as a percentage of C* connects this page to the flat band of “The Economic Order Quantity”, because they are the same interval computed two ways. At T = 1260, which is 105% of 1200, the roots are 210 ± 10√41 ≈ 145.9688 … 274.0312; the flatness band at a 5% tolerance is 145.9688 … 274.0312. At 110% the roots are 220 ± 20√21 ≈ 128.3485 … 311.6515 and the 10% band is 128.3485 … 311.6515. One is a discriminant in Q, the other a discriminant in t, and they agree because they are the same question.
The panel's budget slider is a percentage of C*, and where C* is irrational that percentage is applied to a rounded decimal of it. The argument itself never touches that decimal — it runs on whatever rational T the slider produced — but it does mean that on an irrational instance the 100% row is very close to a merge rather than exactly one, and the panel says so rather than pretending the roots met. On the worked instance C* = 1200 exactly, so the merge really is a merge and the discriminant prints as exactly zero.
One consequence is worth carrying into the rest of the course. The width of the affordable interval shrinks to zero, but it shrinks slowly: at a budget 5% above the minimum the interval is still 128 units wide out of an optimum of 200. That is the flatness of the cost curve seen from underneath, and it is why the models in the rest of this course can afford to round their answers to a case size, a pallet or a whole number of units.