I'm reading a physics paper and am trying to figure out how a certain expression is derived (If interested, see Appendix of the paper, Eq. (A7), (A8)). The authors skip a lot of derivation steps and at a certain point an expression like the following is encountered. Suppose we have the following:
$$\iint_{S} \left[\nabla^{t}A \times \boldsymbol{B}^{t}\right]^{z} dxdy,$$
where $A$ is a scalar field, $\boldsymbol{B}$ is a vector field, $S$ lies completely in the xy-plane. The superscripts $t$ and $z$ denote the transverse (x, y) and longitudinal (z) components, i.e.:
$$\nabla^{t}M = \left(\frac{\partial M}{\partial x}, \frac{\partial M}{\partial y},0\right)$$
is the transverse part of the gradient, and:
$$\boldsymbol{N}^{t} = \left(N_{x}, N_{y}, 0\right);$$ $$\boldsymbol{N}^{z} = N_{z}.$$
At this point they state that they use "an integration by parts" and they somehow manage to move the nabla so that it is cross-product multiplied with $\boldsymbol{B}$, i.e. the final expression should contain something like this:
$$A(\nabla \times \boldsymbol{B})$$
together with other terms and the correct superscripts, which I have omitted here because I don't know them.
Does anyone know some integration by parts formula that can help me get from the original expression to something looking like this?
Any help and advice is much appreciated. Also, let me know if you would need more details. I've tried to keep things as abstract as I can.