We begin by drawing a diagram:
A square wire, with distances shown.
Using our second right hand rule, we can see that the contributions of each side
will point out of the page and, due to symmetry, they must all be the same
value. Thus we simply need to calculate the field from one side, and multiply
it by four. Since we are still dealing with straight wires, we can simply
change the limits of integration of the equation we derived (like we did in the
last problem), substituting in
d /2
for
r
, and changing our limits to
d /2
and
- d /2
:
Recall that this is only for one segment. Thus the total magnetic field at the
center of the square is:
B =
Again, the direction of the field is out of the page.