Oh wait -- you don't have the derivative in this function. Nonetheless, can't you just provide the function (e.g. `f`) and have the values at xlist be computed?