Gauss's Law of Magnetism shows us that the divergence of Magnetic field is $0$, $\bigtriangledown \cdot \vec{B}=0$
Then how do you derive that statement by showing the divergence of a magnetic field upon an axis of a current carrying coil where radius is much smaller that distance so that we can use,
$$B_z=\frac{\mu_oI}{2z^3}\hat{z}$$
$\therefore$
$$ \bigtriangledown \cdot B \equiv \frac{\partial}{\partial z}\cdot \frac{u_oI}{2z^3}\hat{z} \neq0 $$
This doesn't equal zero? What am I missing?