= Solution
Choose a <magnetic vector potential> $\mathbf A$ with $\nabla\times\mathbf A=\mathbf B$, and define the total <magnetic helicity> by
$$
\boxed{H_M=\int_D\mathbf A\cdot\mathbf B\,dV.}
$$
The value is unchanged by a single-valued <gauge transformation> $\mathbf A\mapsto\mathbf A+\nabla\chi$, because
$$
\Delta H_M=\int_D\nabla\cdot(\chi\mathbf B)\,dV=\int_{\partial D}\chi\mathbf B\cdot\mathbf n\,dS=0.
$$
Here both the <solenoidal magnetic-field constraint> and the tangent boundary field are essential. In a multiply connected domain, choose the vector potential by extending the tangent field by zero to all space and fixing its decay there, or fix the equivalent circulation convention. This avoids silently varying the non-gradient harmonic ambiguity of a vector potential on the restricted domain.
The <ideal magnetohydrodynamic induction equation> permits
$$
\partial_t\mathbf A=\mathbf v\times\mathbf B+\nabla\psi,\qquad \partial_t\mathbf B=\nabla\times(\mathbf v\times\mathbf B).
$$
Differentiating $H_M$ and using <integration by parts> for <curl>,
$$
\begin{aligned}
\dot H_M&=\int_D(\mathbf v\times\mathbf B)\cdot\mathbf B\,dV+\int_D\nabla\psi\cdot\mathbf B\,dV+\int_D\mathbf A\cdot\nabla\times(\mathbf v\times\mathbf B)\,dV\\
&=2\int_D(\mathbf v\times\mathbf B)\cdot\mathbf B\,dV+\int_{\partial D}\psi\mathbf B\cdot\mathbf n\,dS+\int_{\partial D}\mathbf n\cdot[(\mathbf v\times\mathbf B)\times\mathbf A],dS=0.
\end{aligned}
$$
The volume product vanishes algebraically, the gauge flux vanishes since $\mathbf B\cdot\mathbf n=0$, and the last boundary term vanishes since $\mathbf v=0$. Thus \b[magnetic helicity is conserved even though viscosity dissipates mechanical energy].
Through <magnetic flux freezing>, <magnetic field lines> move with the fluid and retain their linkage during every smooth ideal motion. For two thin closed <flux tubes> carrying fluxes $\Phi_1,\Phi_2$, their mutual contribution is $2L\Phi_1\Phi_2$, where $L$ is their <linking number>; self-contributions measure twisting and writhing of the tubes. This explains the topological content of <magnetic helicity>. Conservation of this one scalar is a consequence of the frozen structure, not a complete description of all that structure.
Back to article page