the x values for which the derivative should be computed.
coeffs
the coefficient.
degree
the degree of the derivative.
ndx
number of intervals to partition the distance between the lowest and highest x-values of the utility points.
deg
degree of the B-spline basis. Determines the degree of the function to be estimated. If deg = 2, the estimated utility function will consist of quadratic functions.