The given loop may be obtained by the superposition of two
semicircular loops as shown in the figure.
The magnetic moment of the semicircle in the y-z plane is along
the x-axis and that in the x-z plane is along the y-axis.
`M_x=(piR^2I)/2, M_y=(piR^2I)/(2)`
The total magnetic moment is `vecM=M_xhati+M_y hatj`
or `M=(piR^2I)/2(hati+hatj)`
![image](https://learnqa.s3.ap-south-1.amazonaws.com/images/16104108794681572571610410879.png)