Derivatives in kernel methods