Mathematically,
$$\Phi_E = \oint \vec{E} \cdot d\vec{A} = \frac{Q_{enc}}{\epsilon_0}$$
In this case, the charge enclosed by the cylindrical surface is the charge per unit length $\lambda$ multiplied by the length $l$ of the wire within the cylinder.
$$Q_{enc} =
Show more…