array min, uses cubic spline to smoothly transition. derivatives with respect to array and min value. width of transition can be controlled, and chain rules for differentiation