If a wire carries a flowing bunch of charges, each magnitude q, and if the wire rests in a magnetic field B , then each charge feels a Lorentz force F = qv B . The wire is bendy and B and I could vary along its length, show that the force is now F =INT I(dlxB )