Verify Ampere's law for the magnetic field of a point dipole of dipole moment m = mk^. Take C as the closed curve running clockwise along:

(i) the z-axis from z = a > 0 to z = R,
(ii) along the quarter circle of radius R and center at the origin in the first quadrant of xz-plane,
(iii) along the x-axis from x = R to x = a, and
(iv) along the quarter circle of radius a and center at the origin in the first quadrant of xz-plane

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:
PQB.dl = PQB.dl cos 0° = aRB dz
=aRμ02πMz3dz=μ0M2π(12)(1R21a2)=μ0M4π(1a21R2)
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θ
    BdI=Bdlcosθ=0π2μ04πMsinθR3Rdθ
=μ04πMR2(cos θ)0π/2=μ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
       STBdl=Raμ0M4πx3dl=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;
Bdl=π/20μ04πMsinθa3adθ
=μ04πMa2π/20sinθdθ=μ04πMa2[cosθ]π/20=μ04πMa2
    PQSTBdl=PQBdl+QSBdl+STBdl+TPBdl
=μ0M4π[1a21R2]+μ04πMR2+0+(μ04πMa2)=0