Part of the reason that the Biot-Savart law isn’t usually stated in the way I did is that it’s really about currents, which are charges in motion. The point charge moving with velocity does give a sort of a current, but it’s so extremely localized that it doesn’t match with our usual notion of “current”. A better example is a current flowing along a curve (without boundary) with a (constant) charge density of . It’s possible to carry through the discussion with a variable charge density, but then things get more complicated.
Anyway, just like the electric field the magnetic field obeys a superposition principle, so we can add up the contributions to the magnetic field from all the tiny differential bits of a current-carrying curve by taking an integral. The differential element of charge is again . The velocity is in the direction of the curve — unit vector — and has length . Thus the term near a point is . We will take the charge density as charge per unit of distance and the speed as distance per unit of time, and combine them into the current as the charge flowing through this point on the curve per unit of time. For a curve we have the integral:
As an example, let’s take the infinite line of charge and set it in motion with a speed along the -axis. The charge density makes for a current up the line. Of course, if the current is negative then the charge is just moving in the opposite direction, down the line. The obvious parameterization is , so we have and . Plugging in we find:
where I’ve used a couple convenient substitutions to put the integral into exactly the same form as last time. We can reuse all that work to continue:
We find again that the magnetic field now falls off as the first power of the distance from the line current. As for the direction, it wraps around the line in accordance with the famous “right hand rule”; if you place the thumb of your right hand along the -axis, the field curls around the line in the same direction as your fingers.
As it happens, despite how popular the rule is it’s purely conventional, with no actual physical significance. It’s hard to explain just why that is right now, but it will become clear later. For now, I can justify that it makes no difference in the effect of currents on moving charges, since the Biot-Savart law involves a triple vector product which can be rewritten:
which formula involves no cross products and no choice of right-hand or left-hand rules.