Yeah, it's a little vague.
I'm rusty on math, but I don't think there are any continuous and differentiable functions that are zero everywhere except for a specific region.
If it doesn't have to be differentiable, you could just construct a composite function with linear parts or maybe stitch together bezier curves.
If it doesn't have to be continuous except for the region between $1 and $40, you could just use something like f(x | a, b, c, d) = a*e^[-(x - b)^c / d] and solve for a, b, c, d.