Computes the penalized value of a derivative by adding the derivative of the penalty to it.
Useful links