Given:
Uniform magnetic field existing in the region of the wire = B
Let the electric current flowing through the wire be i.
Length of the wire between two points a and b = l
Magnetic force is given by
Let us consider two wires of length l, one straight and the other circular.
The circular wire is of radius a such that
Suppose the magnetic field is pointing along the z direction and both the wires are lying in the xy plane, so that the angle between the area vector and the magnetic field is .
For the straight wire of length l lying in a uniform magnetic field of strength B:
Force, F = = ilB
For the circular wire:
Length, l =
Angel between the area vector and magnetic field will again be .
Force acting on the circular wire,
F =
=
Both the forces are equal in magnitude. This implies that the magnetic force is independent of the shape of the wire and depends on the length and orientation of the wire.
Therefore, the magnetic force is independent of the shape of the wire.