Compute differentials