
(a) If we take a small strip of $dr$ at distance $r$ from centre, then number of turns in this strip would be,
$dN = \left( \frac{N}{b - a} \right)dr$
Magnetic field due to this element at the centre of the coil will be
$dB = \frac{\mu_{0}(dN)I}{2r} = \frac{\mu_{0}NI}{2(b - a)}\frac{dr}{r}$
$B = \ \int_{r = a}^{r = b}{dB} = \frac{\mu_{0}NI}{2(b - a)}\ln\left( \frac{b}{a} \right)$