Using linear current density per unit angle: dθdI=πI
Using magnetic field of an infinitely long straight filament at distance R:
dB=2πRμ0dI=2π2Rμ0Idθ
Resolving components symmetrically about the central axis:
B=∫−π/2π/2dBcosθ=∫−π/2π/22π2Rμ0Icosθdθ
B=2π2Rμ0I[sinθ]−π/2π/2=2π2Rμ0I(1−(−1))=π2Rμ0I