Section 20.2 in Matter and Interactions (4th edition)
Since we deal with currents on a daily basis in all of electronics, it is particularly important and relevant to consider the force on a current-carrying wire. These notes will step through how get from the magnetic force on a single moving charge to the force on a current.
If we think about a long straight wire with a steady state current, we can model this simply as many moving charges in a wire. When that wire is placed in an external magnetic field (from some other source - either another wire or permanent magnet), each of the moving charges would feel a force. Collectively, this results in a net force on the wire by the magnetic field.
To calculate this magnetic force on the wire, we follow a very similar set of steps. We can start by dividing the wire into little chunks and only thinking about the amount of moving charge in that little chunk. Since we are interested in the small bit of force on the little bit of moving charge in that piece of the wire, we could write this as: d→F=dq→v×→B
However, especially for wires, it is often more useful to think about the current in that piece rather than the individual moving charges. So to rewrite this in terms of current, we start by rewriting the velocity in terms of the length and time (just like we did before) →v=d→ldt. So we get the force from the small piece of the wire to be: d→F=dqd→ldt×→B
Then, since dt represents a small amount of time, dl represents a small amount of length, and dq represents a small amount of charge, we will treat these as independent and rewrite: dq⋅d→ldt=dq⋅d→ldt=dqdt⋅d→l
This means the magnetic force on the small piece of wire can be written as: d→F=dqdtd→l×→B=Id→l×→B
This means that the small amount of force on the wire is given by: d→F=Id→l×→B
Note: that the force is still given by the cross product between the d→l and the →B, so the force on the piece of wire is still perpendicular to both the direction of the moving charges (d→l) and perpendicular to the magnetic field (→B). This means we can still use the right hand rule to figure out the direction of the d→F.
Now that we have the magnetic force on a small piece of the wire, we can find the total force on the wire from the external magnetic field by adding up the contributions from each little piece of the wire. Since we have the small bit of force from the small bit of wire, we will add these using an integral: →Fwire=∫wired→F=∫lfliId→l×→B
However, if we do make a few assumptions we can simplify this equation significantly. We will start by assuming that the current in the wire is constant and in a steady state. This allows us to pull the current out of the integral as a constant, leaving: →Fwire=I∫lflid→l×→B
Next we want to simplify the cross product in terms of the magnitude of the two vectors and the angle between them (θ); however, this will give us only the magnitude of the magnetic force, rather than the magnitude and direciton.
|→Fwire|=I∫lfliB⋅dlsin(θ)
If we assume that the wire is straight (no bends or curves), then the angle θ between the length of wire and the magnetic field will be constant, so we can pull the sin(θ) out of the integral. If we also assume the magnetic field is constant along the length of the wire, then we can also pull the B out of the integral. |→Fwire|=IBsin(θ)∫lflidl
where |→Fwire| is the magnitude of the force on the whole wire, I is the current through the wire, B is the external magnetic field, L is the length of the wire, and θ is the angle between the magnetic field and the length of the wire. Remember though that this equation is only good for straight wires with constant current that are in a constant magnetic field - because of all the assumptions that we made to get to this point.
To find the direction of the magnetic force, we will need to use the right hand rule. Just like we did with the moving charge, you point your fingers in the direction of the moving charges (or rather in the direction of the current/d→l), then curl your fingers in the direction of the external magnetic field. Your thumb then points in the direction of the force.
For example, if you have a wire with current going in the +ˆy direction that is placed in a magnetic field that points out of the page, then the force on the wire would point down (in the +ˆx direction).