(iii) In the situation when the surface is so chosen that there are some
charges inside and some outside, the electric field [whose flux appears
on the left side of Eq (1 31)] is due to all the charges, both inside and
outside S The term q on the right side of Gauss’s law, however,
represents only the total charge inside S