Find the magnetic field at the origin O

cbse
movingcharges

#1

Equal currents I = 2 A are flowing through the infinitely long wires parallel to Y-axis located at x = + 1m, x = + 2m, x = + 4m and so on, but in opposite directions as shown in the figure. Find the magnetic field at the origin O.


#2

Magnetic field at O due to current through one infinitely long wire is

So, magnetic field at O due to all the wires is