Find the gradient of the function given the differential.