The nuclear charge $(Ze)$ is non-uniformly distributed within a nucleus of radius $R$. The charge density $\rho \left( r \right)$ [charge per unit volume] is dependent only on the radial distance $r$ from the center of the nucleus as shown in figure The electric field is only along the radial direction.