24.4.3 Multiple Charges

Finally, consider an arbitrary Gaussian surface and a group of charges q1, q2, q3, … such as those shown in FIGURE 24.22. What is the net electric flux through the surface?

FIGURE 24.22 Charges both inside and outside a Gaussian surface.

The figure illustrates a two-dimensional cross section of an arbitrary Gaussian surface.
FIGURE 24.22 Full Alternative Text

By definition, the net flux is

Φe=∮ E⃗⋅dA⃗

From the principle of superposition, the electric field is E⃗=E⃗1+E⃗2+ E⃗3+⋯, where E⃗1, E⃗2, E⃗3, … are the fields of the individual charges. Thus the flux is

Φe=∮​ E⃗1⋅dA⃗+∮​ E⃗2⋅dA⃗+∮​ E⃗3⋅dA⃗+⋯=Φ1+Φ2+Φ3+⋯ (24.15)

where Φ1, Φ2, Φ3, … are the fluxes through the Gaussian surface due to the individual charges. That is, the net flux is the sum of the fluxes due to individual charges. But we know what those are: q/ϵ0 for the charges inside the surface and zero for the charges outside. Thus

Φe=(q1ϵ0+q2ϵ0+⋯+qiϵ0 for all charges inside the surface)+(0+0+⋯+0 for all charges outside the surface) (24.16)

We define

Qin=q1+q2+⋯+qi for all charges inside the surface (24.17)

as the total charge enclosed within the surface. With this definition, we can write our result for the net electric flux in a very neat and compact fashion. For any closed surface enclosing total charge Qin, the net electric flux through the surface is

Φe=∮ E⃗⋅dA⃗=Qinϵ0 (24.18)

This result for the electric flux is known as Gauss’s law.