The observation that opposite charges attract while like charges repel, with a force proportional to the inverse square of distance, motivates the study of electrostatics. Although we often don’t solve problems in electrostatics using Coulomb’s law directly, relying instead on Gauss’s law or on techniques for solving Poisson’s equation for the electric scalar potential, there is no physical information contained in those techniques that isn’t already in Coulomb’s law. Therefore, the entire field of electrostatics, including the introduction of the electric field itself, may be viewed as an exploration of the consequences of this basic fact about stationary electric charges (and continuous distributions thereof).
At the beginning of the chapter on magnetostatics in Introduction to Electrodynamics, Griffiths notes that parallel currents attract while antiparallel currents repel. You might think that he would go on to write down a law similar to Coulomb’s law that described this force between currents directly. However, this approach is not pursued. Instead, the magnetic field and the Lorentz force law are introduced right away. In a subsequent section, the Biot–Savart law is used to compute the magnetic field of a long straight wire, which is then immediately used to find the force between two wires.
There is a good reason for this, which I’ll get to at the end. There’s just one small problem, which is that it’s not clear that magnetism actually obeys an inverse-square law and that the force that wire 1 exerts on wire 2 is equal and opposite to the force that wire 2 exerts on wire 1. Students are also confused by being asked to use the right-hand rule to assign an apparently arbitrary direction to the magnetic field. It may appear that the universe prefers one handedness over the other for some strange reason (which, for what it’s worth, is true for the weak interactions, but not the electromagnetic).
If there were an analogue to Coulomb’s law for magnetostatics, it would become clear that the magnetic force obeys an inverse-square law, obeys Newton’s third law, and does not involve an arbitrary choice of handedness. Obviously I don’t mean the Biot–Savart law; I mean a law that gives the force between currents directly. In fact, we can derive such a law using basic knowledge of vector calculus. Recall that the Biot–Savart law gives the magnetic field at a point due to some given source distribution:
The force this exerts on some other current distribution is given by applying the Lorentz force law and integrating again over
:
We can simplify this using the vector identity :
To see that the integral over the first term vanishes, we can first exchange the order of integration and pull out of the inner integral, then observe that
is the gradient of
:
This allows us to perform integration by parts on the inner integral:
where the surface integral is taken over some sufficiently large surface that completely encloses the current distribution acted on and therefore vanishes, and the volume integral vanishes because the divergence is zero for a steady current. We conclude that:
This now reads very much like Coulomb’s law:
Both laws describe inverse-square forces that act along the line joining the two elements; the difference in signs is because like charges repel while like (parallel) currents attract. It is now easy to see that the force exerted on by
is equal and opposite to the force exerted on
by
. The right-hand rule does not appear anywhere. Parallel currents attract and antiparallel currents repel, period.
We can directly use this law to compute the force between two long, straight, parallel current-carrying wires. For such a problem we would use the version of the law expressed in terms of currents, , rather than current densities,
. (I derived the law using current densities because it’s more general that way, and we can easily argue that we can go from
to
but it’s less obvious why the form involving
‘s should be true given the form involving
‘s.)
To get the force per unit length, we just compute the inner integral at . We know by symmetry that the force will be perpendicular to the wires, so we can just throw away the longitudinal component. And the two wires are everywhere parallel so
. It’s then clear that
This is basically the same calculation that we would do with the Biot–Savart law and the Lorentz force law; it’s simply a bit more direct this way.
Still, if magnetism were introduced in this way, it would be necessary to get from the inverse square law to the field abstraction somehow. With electrostatics this is easy: we just pull out and call everything else
. With the inverse-square law for the magnetic force, we can try to do something like this. It’s a little bit trickier because the force also depends on the direction of the current element
(while charge density, of course, doesn’t have a direction). To represent an arbitrary linear function of
that gives the force density
on the current element, we need to use a matrix field rather than a vector field:
where the matrix field evidently satisfies
The problem is that what we’ve done here is, in some sense, misleading. The local law
we may be tempted to conclude is not really true, in that
is not the real force density on the infinitesimal current element
. In performing an integration by parts earlier, we essentially
averaged out
the term we wanted to get rid of over the entire target distribution. But this destroyed the information about what the true distribution of force is over the target current loop, with observable consequences unless the loop is rigid. In other words, we can only compute the total force on the loop, but not the stress tending to deform the loop. The true Lorentz force law that has the correct local information also has the form , but the matrix
is antisymmetric; we also need an antisymmetrization (wedge product) in the equation for
. It’s not clear to me whether it’s possible to get from the inverse-square law to the true Lorentz force law and the true Biot–Savart law, or whether the loss of local information was irreversible. So, as I said, there is a very good reason why we don’t just postulate the inverse-square law and take that as the basis for magnetostatics: it is (probably) actually incomplete in a way that Coulomb’s law is not. Still, I feel that it contains some useful intuition.