A square wire loop of size 2a × 2a lies in the xy-plane with the center at the origin and the sides parallel to the x- and y-axes. The wire carries a current I running counterclockwise.
(i) Find the magnetic field on the z-axis.
(ii) Show that for z/a << 1 the field becomes that of a magnetic dipole, and find the dipole moment ~m.