$=\frac{\mu_{0} \mathrm{nI}}{2}(\cos \theta+\cos \theta)$
$=\mu_{0}$$nIcos $$\theta,$ where $\cos \theta=\frac{\ell / 2}{\sqrt{\mathrm{r}^{2}+(\ell / 2)^{2}}}, \mathrm{n}=\frac{\mathrm{N}}{\ell}$
$=\mu_{0} \frac{\mathrm{N}}{\ell} \mathrm{I} \frac{(\ell / 2)}{\sqrt{\mathrm{r}^{2}+\ell^{2} / 4}}=\mu_{0}\left(\frac{\mathrm{N}}{\ell}\right) \mathrm{I} \frac{\ell}{\sqrt{4 \mathrm{r}^{2}+\ell^{2}}}$
$=\frac{\mu_{0} \mathrm{NI}}{\sqrt{4 \mathrm{r}^{2}+\ell^{2}}}$


Statement $1$: A charged particle is moving at right angle to a static magnetic field . During the motion the kinetic energy of the charge remains unchanged.
Statement $2$: Static magnetic field exert force on a moving charge in the direction perpendicular to the magnetic field.
