Anybody, please help me. This is a piecewise function?

enter image source here

1 Answer
Feb 7, 2018

See below.

Explanation:

Attached a plot showing

#color(green)("Unit cost as a quantity function (not in scale)" )#
#color(blue)("Purchasing amount as a quantity function (in scale)")#
#color(red)("Your budget (in scale)")#

Note the discontinuity at #n = 30#

This behavior is not desirable since buying 34 units is cheaper than buying 30

enter image source here