This may be integrated to give as

where is a dummy variable for the integration. As an example, consider a uniform current flowing inside a loop of radius , with zero current outside. Hence, we have

where is a constant. Here we have used the boundary condition . To determine the value of the constant we use continuity of at . Thus, from

and so

Therefore, the final form for is

Since the current is no longer zero everywhere and because is
not parallel to , there will be a
non-zero Lorentz force. Thus,

As mentioned earlier in this section, the Lorentz force can be expressed in terms of a magnetic pressure force and a magnetic tension force. We can now calculate each of the effects.

The magnetic tension force is, for ,

while for we get

The magnetic pressure force is, for ,

and for ,

From these results we see that the two forces add together inside the magnetic loop () but the two forces cancel outside where .

Because the Lorentz force acts towards the centre of the loop, there
must be another force inorder to keep the loop in equilibrium if
there is no flow. This must be due to a gas pressure gradient. If the
pressure is then the Lorentz force is balanced by

Thus,