Detailed derivation of kernel residuals and Jacobians.