Figure shows a small loop carrying current I. The curved portion is an arc of a circle of radius R and the straight portion is a chord to the same circle subtending at an angle θ. The magnetic induction at center O is :
Magnetic field at O
due to curved portion: Bcurved=μ0i2R×θ2π is out of the plane of the paper
Magnetic
field at O due to the straight wire: Bwire=μ0i4πd×2sin(θ2) where d=Rcosθ2
⇒Bwire=μ0i4πRcosθ22sin(θ2)=μ0i2πRtanθ2
into the plane of the paper.
The net magnetic field Bnet=Bwire−Bcurved=μ0i2πR(tanθ2−θ2)
For θ>π
Bnet, is negative ie. it is out of the plane of the paper.