A candy store owner has daily demand Y for a certain brand of candy sold from the bulk bins. Suppose the owner will never stock more than one crateful of this candy (so it never goes stale), and that a crate can fill 50 bins. We measure Y in terms of fractions of a crate. With these units, Y has density function

f(y)={3y if 0y1 and 0 otherwise.

The grocer can buy a bin's worth of candy for 0.3 dollars and sell a bin's worth for 0.9 dollars. What amount of candy, C, in bins, should the store owner purchase to maximize expected daily profit?

*I've tried differentiating a few ways, but nothing seems to be working. Please help!


TS Contributor
Jin - thank you. I knew something about this wasn't right, but wasn't sure......there should be a revenue and/or cost function that moderates the number of bins that the grocer can profitably obtain.....
Nope, that's all I was given. My professor made it up himself. He gave me this to go on too though, when I emailed him.

profit(c)= {(retail price)(y)-(wholesale price)(c) for y less than c
(retail price)(c)-(wholesale price)(c) for y greater than or = to c.

Then he also wrote E(profit(c))= [integral from 0 to c](retail price)(y)-(wholesale price)(c)(3y^2) dy + [integral from c to 1](retail price-wholesale price)(c)(3y^2)dy

But I still have no clue what to do with it. So I'm gonna try and plug stuff in, but if you could help me out too, I would greatly appreciate it! Thanks!