I am having a problem trying to check if the identity below should be positive or negative.
$$ \int\; \boldsymbol{A} \times (\boldsymbol{\nabla} a ) = \pm \int (\boldsymbol{\nabla} \times \boldsymbol{A} )a$$
where $a$ is a scalar function and the vectors are defined in 2-dimensional space.
For me the correct development should be:
First change the order of the vectorial product: $$ =- \int (\boldsymbol{\nabla} a )\times \boldsymbol{A} $$ than integrating by parts and eliminating the surface term:
$$= + \int a (\boldsymbol{\nabla} \times \boldsymbol{A} ) $$ therefore the identity is positive. But I am not sure if this is correct. I try using index notation to prove, but got confused: $$ \int A_i \epsilon_{ij}(\nabla_j a )= -\int (\nabla_jA_i \epsilon_{ij}) a = \int (\nabla_jA_i \epsilon_{ji}) a$$ again positive.