Return to Magnetic Force on a Current Carrying Wire notes
Suppose you have a square loop (side length $L$) of current $I$ situated in a uniform magnetic field $\vec{B}$ so that the magnetic field is parallel to two sides of the loop. What is the magnetic force on the loop of current?
$$\left| \vec{F} \right|=IBL\sin\theta$$
In order to break down our approach into manageable chunks, we split up the loop into its four sides, and proceed. It is easy to find the magnitude of the force on each side, since $\theta$ for each side is just the angle between the magnetic field and the directed current.
This gives the following magnitudes:
\[ \left| \vec{F} \right| = \begin{cases} IBL\sin \pi = 0 & \text{top} \\ IBL\sin 0 = 0 & \text{bottom} \\ IBL\sin \frac{\pi}{2} = IBL & \text{left} \\ IBL\sin \frac{\pi}{2} = IBL & \text{right} \\ \end{cases} \]
It remains to find the direction of the force (the non-zero ones at least), for which we will use the Right Hand Rule. For the force on the left side, we would point our fingers down in the direction of current and curl them towards the right towards the B-field. Your thumb then points in the direction of the force, which is the $+\hat{z}$ direction (again for the left side of the wire). To find the force on the right side then, we would point our fingers up in the direction of the current, and curl them to the right towards the B-field. This then points our thumb in the $-\hat{z}$ direction (into the page), which tells us the direction of the force on the right side of the loop.
Since these forces point in opposite directions, this means that the net force on the loop is $0$, the loop's center of mass won't move! However, if there was an axis in the middle of the loop, the opposing forces on the opposite sides of the loop would cause the loop to spin. So there could be a torque! The diagram below shows visually what happens.
We could also calculate the torque on the loop, using the definition of torque $\vec{\tau} = \vec{r} \times \vec{F}$, where $\tau$ is the torque on the object, $r$ is the distance from the loop to the axis of rotation, and $F$ is the force.
$$\vec{\tau} = \vec{r} \times \vec{F}$$ Since we have two forces, we have to take the sum of the torques from those forces. $$\vec{\tau}=\vec{\tau}_{left}+\vec{\tau}_{right}$$ $$\vec{\tau}= \vec{r}_\text{left} \times \vec{F}_\text{left} + \vec{r}_\text{right} \times \vec{F}_\text{right}$$
If we say the axis of rotation is in the middle of the loop, then $r_{left}$ and $r_{right}$ would both be $L/2$. We can also plug in what we just for the forces on the left and right sides of the loop. This will then give us the total torque on the loop. $$\vec{\tau} = \left(-\frac{L}{2} \hat{x}\right) \times \left(IBL \hat{z}\right) + \left(\frac{L}{2} \hat{x}\right) \times \left(-IBL \hat{z}\right)$$ $$\vec{\tau} = IBL^2 \hat{y}$$ This sort of rotating loop is the basis for an electrical motor. Essentially you are transferring electric energy (by providing a current through the loop) to kinetic energy (by making the loop spin).
We can check the direction of our torques by using RHR as this is also a cross product. If we put our fingers in the direction of our separation vectors and curl towards the forces, we will find that the torques are in the same direction which would cause our loop to rotate. Another way we can evaluate our solution is by looking at our forces. By now we should be very comfortable with cross products, so we should expect there to be no force on the top or bottom wire by inspection of the problem. Also, since the magnetic field is constant, both sides of the loop have the same length and the currents flow in opposite directions, we should expect the forces to be in opposite directions as well. These evaluations all line up with our solution.