Hint: Use the formula of the magnetic field due to a bar magnet.
From P to Q, every point on the z-axis lies at the axial line of magnetic dipole of moment M. Magnetic field induction at a point at distance z from the magnetic dipole of moment M is:
|B|=μ04π2|M|z3=μ0M2πz3
Step 1:
(i) Along z-axis from P to Q:
∫QPB.dl = ∫QPB.dl cos 0° = ∫RaB dz
=∫Raμ02πMz3dz=μ0M2π(−12)(1R2−1a2)=μ0M4π(1a2−1R2)
Step 2:
(ii) Along the quarter circle QS of radius R is given in the figure below,
The point A lies on the equatorial line of the magnetic dipole of moment Msinθ. The Magnetic field at point A on the circular arc is:
B=μ04πMsi θR3; dl=Rdθ
∴ ∫B⋅dI=∫B⋅dlcosθ=∫π20μ04πMsinθR3Rdθ
=μ04πMR2(−cos θ)π/20=μ04πMR2
Step 3:
(iii) Along the x-axis over the path ST, consider the figure given ahead;
From the figure, every point lies on the equatorial line of the magnetic dipole. Magnetic field induction at a point at distance x from the dipole is,
B=μ04πMx3
∴ ∫TSB⋅dl=∫aR−μ0M4πx3⋅dl=0 [∵ angle between (-M) and dl is 90°]
Step 4:
(iv) Along with the quarter circle TP of radius a. Consider the figure given below.
From case (i), we get line integral of B along the quarter circle TP of radius a;
∫B⋅dl=∫0π/2μ04πMsinθa3adθ
=μ04πMa2∫0π/2sinθdθ=μ04πMa2[−cosθ]0π/2=−μ04πMa2
∴ ∮PQSTB⋅dl=∫QPB⋅dl+∫SQB⋅dl+∫TSB⋅dl+∫PTB⋅dl
=μ0M4π[1a2−1R2]+μ04πMR2+0+(−μ04πMa2)=0