Given a spherically symmetric charge density $\rho(r)=\begin{cases}kr^2, & r<R \\ 0, & r>R\end{cases}$ (k being a constant), the electric field for $r<R$ is (take the total charge as $Q$)
Step 1: Compute enclosed charge for $r<R$.
$\rho(r)=kr^2$. Total charge inside radius $r$ is
$\displaystyle Q_{\text{enc}}=\int_0^r \rho(r')\,4\pi r'^2\,dr'
=4\pi k\int_0^r r'^4\,dr'
= \dfrac{4\pi k r^5}{5}.$
Step 2: Compute total charge $Q$ of the sphere.
$Q = \dfrac{4\pi k R^5}{5}.$
Thus
$k = \dfrac{5Q}{4\pi R^5}.$
Step 3: Substitute $k$ into $Q_{\text{enc}}$.
$Q_{\text{enc}} = \dfrac{5Q}{4\pi R^5}\cdot \dfrac{4\pi r^5}{5} = Q\left(\dfrac{r}{R}\right)^5.$
Step 4: Apply Gauss's law.
$E(4\pi r^2)=\dfrac{Q_{\text{enc}}}{\epsilon_0}$.
Thus
$\displaystyle E = \dfrac{Q}{4\pi\epsilon_0 R^5}\,r^3.$
Step 5: Conclusion.
Electric field for $r<R$ is $\dfrac{Qr^3}{4\pi\epsilon_0 R^5}\hat{r}.$
In a coaxial cable, the radius of the inner conductor is 2 mm and that of the outer one is 5 mm. The inner conductor is at a potential of 10 V, while the outer conductor is grounded. The value of the potential at a distance of 3.5 mm from the axis is: 
A sphere of radius \( R \) has a uniform charge density \( \rho \). A sphere of smaller radius \( \frac{R}{2} \) is cut out from the original sphere, as shown in the figure. The center of the cut-out sphere lies at \( z = \frac{R}{2} \). After the smaller sphere has been cut out, the magnitude of the electric field at \( z = -\frac{R}{2} \) is \( \frac{\rho R}{n \epsilon_0} \). The value of the integer \( n \) is: 