Finally, consider an arbitrary Gaussian surface and a group of charges such as those shown in FIGURE 24.22. What is the net electric flux through the surface?
By definition, the net flux is
From the principle of superposition, the electric field is , where are the fields of the individual charges. Thus the flux is
where 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: for the charges inside the surface and zero for the charges outside. Thus
We define
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 , the net electric flux through the surface is
This result for the electric flux is known as Gauss’s law.