I recently implemented a Tanh-Sinh quadrature integrator for a two dimensional integral, simply by integration first over the the first variable and then over the second. My question is whether or not there is a generalized formula for two (or higher) dimension of the form: $$\int{f(x)}dx\approx \sum_{k_x=-N}^N\sum_{k_y=-N}^N{f(g(k_xh,k_yh))g'(k_xh,k_yh)}$$
Where $g'$ is some (unknown) function of the partial derivatives of $g$. Note that I'm not after a specific form, I'm just looking for a generalization to 2D.