Derivation (cylindrically symmetric charge distribution)

$\v E$ also has cylindrical symmetry, so $\v E = E(r)\, \v e_r$. This satisfies $∇\times \v E=\v 0$.

For $r>R$, apply Gauss's law to a cylinder $S$ of radius $r$ and arbitrary length $L$. Then $$ \begin{align*} \frac{λ L}{ε_0} ={}& \int_{S} \v E\cdot \d \v S \\ ={}& E(r) \cdot 2πrL \end{align*} $$ since only the curved part contributes.