I have read about the electric field in electrostatic and electric field has a property that $\nabla \times \mathbf E = 0$, and $\nabla \cdot \mathbf E = \frac{\rho}{ε}$.
But the second formula we had derive from gauss divergence theorem and where we deal with volume.
From gauss law, $$\oint \mathbf E\cdot \mathrm d\mathbf S= \frac{Q}{ε}$$
And if $$Q = \rho\iiint \mathrm dV$$ $\rho$ = volume charge density
And so from gauss divergence theorem, $$\oint\mathbf E\cdot\mathrm d\mathbf S = \iiint (\nabla\cdot \mathbf E )\mathrm dV = \iiint \frac{\rho}{ε} \mathrm dV$$
So $\nabla \cdot \mathbf E = \frac{\rho}{ε}$ Hence we get the relation.
But here we deal with volume charge density ($\rho$).
But if there is a line charge ,then we should have deal with Line charge density ($\lambda$).
My question is: Will that relation be true from line charge also? Because I can't get that relation from the electric field on any line charge, say charged circular loop.
For charge circular loop electric field at a height $z$ from its center is $$E = \frac{\lambda}{2ε} \frac{zR}{(z^2+R^2)^{3/2}}$$
{$R=$ radius}
If I calculate $\nabla \cdot \mathbf E$, I can't get $\frac{\lambda}{ε}$
So is the relation valid for line charge?