A uniformly charged and infinitely long line having a liner charge density )., is placed at a normal distance y from a point 0. Consider a sphere of radius R with O as centre and R > y. Electric flux through the surface of the sphere is
qin is the charge enclosed by the Gaussian surface which, in the present case, is the surface of given sphere. As shown, length AB of line lies inside the sphere.