Implemented deriveParamBy to calculate the derivative by the parameters indexed by ix
deriveParamBy
ix