Respuesta :
Let say the point is inside the cylinder
then as per Gauss' law we have
[tex]\int E.dA = \frac{q}{\epcilon_0}[/tex]
here q = charge inside the gaussian surface.
Now if our point is inside the cylinder then we can say that gaussian surface has charge less than total charge.
we will calculate the charge first which is given as
[tex] q = \int \rho dV[/tex]
[tex] q = \rho * \pi r^2 *L[/tex]
now using the equation of Gauss law we will have
[tex]\int E.dA = \frac{\rho * \pi r^2* L}{\epcilon_0}[/tex]
[tex]E. 2\pi r L = \frac{\rho * \pi r^2* L}{\epcilon_0}[/tex]
now we will have
[tex] E = \frac{\rho r}{2 \epcilon_0}[/tex]
Now if we have a situation that the point lies outside the cylinder
we will calculate the charge first which is given as it is now the total charge of the cylinder
[tex] q = \int \rho dV[/tex]
[tex] q = \rho * \pi r_0^2 *L[/tex]
now using the equation of Gauss law we will have
[tex]\int E.dA = \frac{\rho * \pi r_0^2* L}{\epcilon_0}[/tex]
[tex]E. 2\pi r L = \frac{\rho * \pi r_0^2* L}{\epcilon_0}[/tex]
now we will have
[tex] E = \frac{\rho r_0^2}{2 \epcilon_0 r}[/tex]