The diagram shows a cross-section (or, perhaps more appropriately, “end view”) of the charged cylinder (solid circle).

Consider a Gaussian surface in the form of a cylinder with radius and length l, coaxial with the charged cylinder. An “end view” of the Gaussian surface is shown as a dashed circle.
Thus, the charge enclosed by it is given using equation (ii) as:
(a)
Where is the volume of the cylinder.
If ρ is positive, the electric field lines are radially outward, normal to the Gaussian surface, and distributed uniformly along with it.
Thus, the total flux through the Gaussian cylinder is given as:
(b)
Now, comparing equation (a) with equation (b) and substituting in equation (i), we get the electric field at r < R as follows:
Hence, it can be seen that the value of the electric field in this case is .