Return to Enclosed Charge notes
Suppose you have a line of charge with a uniform linear charge density of $\lambda=15\mu\text{C/m}$. What is the electric flux through a cylinder with radius $R=0.5 \text{ m}$, and length $l=3 \text{ m}$ that is placed so that its axis is aligned with the line of charge? Feel free to use the electric field due to an infinite uniform line of charge: $\vec{E} = \frac{\lambda}{2\pi r\epsilon_0}\hat{r}$ (where $\hat{r}$ points away from line, and $r$ is the distance from the line).
$$\Phi_e=\int\vec{E}\bullet \text{d}\vec{A}$$
$$\vec{E} = \frac{\lambda}{2\pi r\epsilon_0}\hat{r}$$
There are a few approximations and assumptions we should make in order to simplify our model.
First, we evaluate the situation qualitatively. Consider the electric field vectors from the charged line near the surface of the cylinder:
It's a little tough to demonstrate the electric field vectors with only two dimensions to draw on, but you can imagine that the thicker arrows point out of the page more, and the thinner arrows point into the page more (but the magnitude of the arrows are all the same). In essence, each vector points directly away from and perpendicular to the line of charge, as indicated in the formula for electric field from a line charge.
The electric field vectors are parallel to the bases of the cylinder, so $\vec{E}\bullet\text{d}\vec{A}=0$ on the bases. So the flux through the bases should be $0$. For the wall of the cylinder, the electric field vectors are perpendicular to the surface, which means they are parallel to the area-vectors. These facts will greatly simplify our integral calculation of the flux. \begin{align*} \Phi_{\text{total}} &= \Phi_{\text{bases}}+\Phi_{\text{wall}} \\ &= 0 + \int_{\text{wall}}\vec{E}\bullet \text{d}\vec{A} \\ &= \int_{\text{wall}}E\hat{r}\bullet \text{d}A\hat{r} \\ &= E\int_{\text{wall}}\text{d}A \\ &= EA_{\text{wall}} \\ &= \frac{\lambda}{2\pi R \epsilon_0}\cdot 2\pi R l \\ &= \frac{\lambda l}{\epsilon_0} \end{align*} When we plug in values for $\lambda$, $l$, and $\epsilon_0$, we get $\Phi_{\text{cylinder}}=5.08\cdot 10^6\text{ Vm}$.
Notice that in the next section of notes, we define “Gauss' Law”, which states that the total flux through a close surface is the amount of charge enclosed divided by $\epsilon_0$. A quick check for this example shows us that the charge enclosed by the cylinder covers a length of $l$, which means the charge is $\lambda l$. If we had used Gauss' Law, we would have quickly found that $$\Phi_{\text{cylinder}}=\frac{Q_{\text{enclosed}}}{\epsilon_0}=\frac{\lambda l}{\epsilon_0}$$ This is the same result! An alternative question for this example could have been: What is the electric field due to a uniformly charged line? If we were not given the electric field at the beginning, we could have used symmetry arguments and Gauss' Law to work backwards, starting with the charge enclosed, and then using the integral formula for electric flux to solve for the electric field. There are sometimes electric fields that we do not know off-hand, and Gauss' Law is often the best tool to find them.