I want to use the fact that a magnetic field can be written in the form
$$ \textbf{B} = \pmb{\nabla}u \times \pmb{\nabla}v $$
to show that if $\textbf{B}$ minimises the magnetic energy
$$ E = \int_V\mathrm{d}^3r \ \frac{B^2}{8\pi} $$
under the constraint that $u$ and $v$ are fixed on $\partial V$, then $\textbf{B}$ is force-free (i.e $\pmb{\nabla} \times \textbf{B}$ is proportional to $\textbf{B}$).
By using the variational principle, I have been able to obtain the following conditions for $u$ and $v$ so that the field is energy minimising:
$$ \pmb{\nabla}\cdot((\pmb{\nabla}u\cdot\pmb{\nabla}v)\pmb{\nabla}v) - \pmb{\nabla}\cdot((\pmb{\nabla}v\cdot\pmb{\nabla}v)\pmb{\nabla}u) = 0$$ $$ \pmb{\nabla}\cdot((\pmb{\nabla}u\cdot\pmb{\nabla}v)\pmb{\nabla}u) - \pmb{\nabla}\cdot((\pmb{\nabla}u\cdot\pmb{\nabla}u)\pmb{\nabla}v) = 0$$
but how do I use these to show that the field must be force-free?
EDIT: I had + instead of - in the above two equations before but this was a typo on my part - thanks to TEF for pointing out my sign mistake.