
The graph above shows price per unit. Say they are cupcakes. When you buy a higher quantity, you get a lower price per unit. Say it levels off like this graph. Obviously, buying 2 nets a nice discount. You can buy one for a friend or save one for tomorrow. But, the marginal discount decreases with each additional unit. At some quantity (about 9), you're paying $4 each, regardless of how many more you buy.
What concept will help to determine the "optimal" number of units to buy? Where you're minimizing the diminishing utility of incremental discount. You want to maximize the discount, while minimizing the additional number of units you need to buy. (B/c you don't really want to have so many cupcakes lying around, but you can't bring yourself to pay $9 for just 1)
Informally, by eyeballing the graph, it seems like you might as well buy about 3 or 4. You've gotten the best deal while minimizing the number of additional units needing to be purchased. It's not exactly inflection point, but something similar, right?
What's the more formal approach? If you had an equation for this curve, you could take the derivative. The first derivative would be very negative and slowly start approaching zero. How can I identify where it starts to flatten out, and it's not worth buying additional units, since the savings are relatively low?
I want to know where the rate of change of the rate of change is dropping, right? Or goes under some threshold? Does the 2nd derivative come into play? Am I on the right track? What is the methodology to arrive at a conclusion like "You should buy 4, b/c that's where most of the savings, per unit, have been realized already"


"Optimal number of units to buy" is a vague term in this context. All of my post is from a Calculus perspective. To get an economic perspective (possibly where this post belongs) you need someone who knows more about stackexchange than me, but possibly repost in economics. We could assume
is what you're looking for. So let's use that as a working assumption. So yes, you want to know where the rate of change levels off. This is determined by the second derivative.
The goal is to minimize f', not minimize f. However, since we don't have an equation, perhaps drawing a graph of the derivative and maybe even a graph of the 2nd derivative. It appears to be a piecewise linear function, meaning it's portions of lines. So maybe draw a first derivative graph by estimating the slope between each pair of consecutive points? If that doesn't work out well, how else might you create a graph of the derivative?
I suspect since the original graph has no obvious points of inflection it, you'll find that there is no point one can definitively point to where the first derivative levels off. Unfortunately without a more mathematical definition of utility, "where it starts to flatten out", "not worth buying additional units", "savings are relatively low" or relationship between utility to cost a definitive mathematical answer may not be possible.