Aime F. answered 02/01/23
PhD in Physics (Yale), have taught Methods of Engineering Analysis
By symmetry, the electric field E = Eer points in the radially transverse direction and is independent of axial coordinate z and azimuthal coordinate θ, so it depends only on transverse radius E = E(r). Imagine a cylinder of length L, radius d concentric with the wire, that therefore contains a charge λL. The volume integral of div E is the surface integral 2πdLE(r=d). Now apply the Gauss Law.