Physics Ninja shows you how to evaluate the magnetic field produced by a square loop. The BiotSavart law is integrate over the segments to find the magnetic field at the center of the loop