Is there any potential associated with magnetism

Can anybody please tell me if magnetism is a conservative force or if there is a field associated with it? How to reason? One thing I know is that the work done by a magnetic force is equal to $0$.

The force $q\vec v\times \vec B$ acting on a charged particle is clearly not conservative because it depends on the velocity. Conservative forces are those that integrate to a fixed work – energy difference that is independent of the path – between two points so they may only depend on the location. We can't associate a potential with a force that is velocity-dependent.

On the other hand, the magnetic force acting e.g. on a small piece of ferromagnet deserves a special discussion. If the magnetic has magnetic moment $\vec m$, the energy of this magnet in an external magnetic field is simply $$U = -\vec m\cdot \vec B$$ One may view this term in the energy as a potential energy that depends on the orientation of the magnet. This force is trying to orient $\vec m$ in the same direction as the external $\vec B$. Note that the field $\vec B$ above may depend on the position in space, too, which is why a magnet that is already oriented to minimize the energy may be dragged to the region where the magnetic field gets stronger.

In general, whether or not $\vec B$ is the gradient of something depends on ${\rm curl}\, \vec B$ and this is governed by one of Maxwell's equations, namely $$\nabla \times \mathbf{B} = \mu_0\left(\mathbf{J} + \varepsilon_0 \frac{\partial \mathbf{E}} {\partial t} \right)$$ It's called Ampère's circuital law (with Maxwell's correction: the last term, the time derivative). You see that the curl doesn't vanish in the presence of currents and/or time-dependent electric fields. However, in the absence of currents and changing electric fields, the curl is equal to zero, and you may write $\vec B$ as the gradient of a potential in these regions.

However, this doesn't immediately translate to the conservative character of any magnetic force because the magnetic forces we have measured aren't proportional to $\vec B$ as vectors. We would have $\vec F = c\vec B$ which would be analogous to the electric force acting on charges but such a form of the force only applies to magnetic monopoles, something that may exist in Nature but only in the form of extremely heavy elementary particles that we haven't observed yet.

So because $\vec F$ isn't $c\vec B$ for any known force, the question whether $\vec B$ is a gradient of something has no impact on the question whether a known force related to magnetism is conservative or not. For this reason, it isn't even too useful to consider potentials $\Phi_B$ such that $\vec B = -\nabla \Phi_B$ even though in some cases and regions, we could find such a potential (when the curl vanishes).

Instead, it is useful to write $\vec B = {\rm curl}\,\vec A$ where $\vec A$ is called the vector potential. As long as there are no magnetic monopoles, $\vec B$ may always be written in this way because the only obstruction that could prevent us from rewriting $\vec B$ in this way would be a nonzero ${\rm div}\,\vec B$ but this divergence vanishes due to a simple Maxwell's equation.

However, the vector potential $\vec A$ can't be "immediately" interpreted as the potential energy of a unit charge etc. Instead, it appears in the Lagrangian and the Hamiltonian (with various signs) in the combination $\vec j\cdot \vec A$ where $\vec j$ is the electric current. In this sense, the vector potential is the potential energy per unit current (both of them are vectors).

This is a bit formal description because to get the actual energy, one would have to integrate over the whole paths of the currents etc. but it may be done. For example, if you have a small loop of electric current, it behaves like a magnet (electromagnet) and the contour integral $\oint \vec{d\ell}\cdot \vec A$ of $\vec A$ over this loop is nothing else than $\vec B\cdot \vec{dS}$ – by Stokes' law – where $\vec{dS}$ is the infinitesimal area of the loop with the normal direction added to turn it into a vector (a right hand rule is implicit here). So this tells you that the potential energy of the loop of current i.e. a small electromagnet is nothing else than the $-\vec m\cdot \vec B$ potential energy I mentioned at the beginning.

• Same comment to the other answer: why are you considering whether $\vec B$ is a gradient, whereas the question is whether $\vec v\times\vec B$ is a gradient? – fffred Jun 7 '13 at 16:35
• I have answered the question whether $\vec v\times \vec B$ may be a gradient in the very first sentence of my answer. Please learn how to read before you add noise to these comment threads. – Luboš Motl Jun 7 '13 at 16:36
• Ok I deleted my other answer as part of it had the same content of the beginning of yours, but I still think that your answer is not complete. It does not discuss whether the magnetic force could be considered as conservative as the work is always zero on a single charge. This is not equivalent to having the force equal to the gradient of a potential. – fffred Jun 7 '13 at 16:55
• The problem with your comment is simple: The work we must do to overcome a magnetic field (on a closed path) due to $qv\times B$ isn't always zero on a single charge. If it were zero, the force would indeed be conservative, but it's not. If you move the charge slowly in regions where $B$ is one value and quickly where it's nearly the opposite value, only the latter contributes and the two terms can't cancel. – Luboš Motl Jun 9 '13 at 6:59
• @LubošMotl What about the situation where the Lorentz force acts on a wire? $F$ = $IL$ x $B$ , is the force nonconservative? – Pupil May 22 '14 at 4:56