Note : If we take individual length for the purpose of calculating the magnetic field in a ` 3 - dimensional` figure then it will be difficult .
Here a smart choice is divide the loop into two loops . One loop is `ADEFA` in ` y - z `plane and the other loop will be ` ABCDA` in the ` x- y` plane .
We actually do not have any current in the segment ` AD` By choosing the loops we find that in one loop we have to take current from ` A to D` and in the other one from `D to A` . Hence these two cancel out the effect of weach other as far as creating magnetic field at the concerned point `P` is considered . The point `(a,0,a) ` is in the ` X - Z` plane.
The magnetic field due to current in ` ABCDA` will be in ` +ve Z - direction` .
NOTE: Due to symmetry the ` y - components` and x- components` will cancel out each other .
Similarly the magnetic due to current in ` ADEFA` will be in ` x- direction .
:. The resultant magnetic field will be
` vec(B) = (1)/ ( sqrt(2))( hat (i) + hat( k))` .
