at angle theta from centre i take an element such that it has only one loop .
dM = di * pi d^2/4 = i/N * pi d^2/4
current per loop/turn = i/N
i take components and only sintheta ka contribution hoga
so M = integration dM sin theta
whats wrong besides the fact theres no dtheta