Tag differentiation and integration formula