# Why can charges outside be ignored in Gauss's Law?

In MIT's 8.02 course, it is shown in lecture 3 that we can derive Gauss's Law from Coulomb's to get

$$\phi = \oint \vec{E} \cdot d\vec{A} = \frac{Q_{enc}}{\epsilon_{0}}$$

However, in the lecture, it was assumed that there were no charges outside the surface. Later, Gauss's Law was used and the charges outside the sphere were ignored.

I've been thinking about it and came across Can someone give an intuitive way of understanding why Gauss's law holds?.

The first answer by user levitopher helped a bit. I think that the lecture's argument still holds when there are charges outside because $$\vec{E}$$ is added vectorially.

Suppose we have $$Q_{enc}$$ in a sphere and $$Q_{out}$$ outside the sphere. Then,

By definition, $$\phi = \oint (\vec{E_{Q_{enc}}} + \vec{E_{Q_{out}}}) \cdot d\vec{A}$$
$$= \oint \vec{E_{Q_{enc}}} \cdot \vec{dA} + \oint \vec{E_{Q_{out}}} \cdot d\vec{A}$$
$$= \oint \vec{E_{Q_{enc}}} \cdot d\vec{A} + 0$$
$$= \frac{Q_{enc}}{\epsilon_{0}}$$

This assumes that $$\oint \vec{E_{Q_{out}}} \cdot d\vec{A} = 0$$ because any field lines that go in must come out (hand wavy but I'm just going to accept it for now).

I'd just like to know if this argument is sound.

• the "coming in coming out" argument is pretty true. Of course to make this mathematically rigorous it takes some advanced math knowledge Commented Jul 13, 2014 at 4:56
• In my opinion, the essence of Gauss's Law is the "hand-wavily-justified" fact, so although you may be satisfied for now, don't stay that way forever. Commented Jul 13, 2014 at 5:16

The argument is perfectly sound. Hand waving is a diminutive term for this, since this really is the essence of Gauss' Law. Here is a succinct physical answer, without using maths, which you can use to make sense of the situation.

Field lines due to charges located outside will cross the surface first while ''going in'' and then, while ''going out'', and hence, net flux through the closed surface $S$ will be zero. The only way in which they will contribute to non-zero flux is if there is some positive or negative charge(s) located inside, since e.g. electric lines of force originate from a positive charge and terminate on the negative charge. See here for example.

Thus, with a positive charge in the surface, there is non-zero out-flux, and with a negative charge, a net non-zero in-flux. With both positive and negative charge inside, net effect depends on ''which ones are more'', which is why you have that $Q_{encl}$ on the right hand side. An illustration for each of these three cases can be seen here.

Your "conservation of field lines" argument is solid, otherwise you have basically just used Gauss's law in your work above. By the divergence theorem and Maxwell's equations, $$\int \vec{E}\cdot \vec{dA}=\int \vec{\nabla} \cdot \vec{E} dV=\int \rho /\epsilon_0 ~dV=\rho_{enc} / \epsilon_0$$ So the (flux of) electric field only depends on the enclosed charge.

But, I really think the "hand-wavy" argument is quite good. If you assume no discontinuities in the electric field, then all the field lines entering must exit the region. Fields lines can therefore only start/end with charges, but if those charges are inside the region then you have taken them into account already. I think it's one of the better hand-wavy arguments we have :-)

Other answers have already said why that should be zero physically. But maybe you are interested in mathematical proof.

You can easily prove that by considering Coulomb's law $$\vec{E}=\frac{1}{4\pi\epsilon_0} \frac{1}{r^2}$$ restricted to a single, infinitesimal solid angle $$d\omega$$.

Take a point charge from the charges outside the surface. Find out the flux due to it. In the following figure see how the flux passing through the surfaces $$d\vec{S_1}$$ and $$d\vec{S_2}$$ due to this charge(q) cancel each other.

$$\int_{d\vec{S_1}+d\vec{S_2}} \vec{E_{q}} \cdot \vec{dA}= \vec{E_{q}} \cdot {d\vec{S_1}}+ \vec{E_{q}} \cdot {d\vec{S_2}}= \frac{1}{4\pi\epsilon_0} \frac{\hat{r}\cdot {d\vec{S_1}}}{r_1^2} + \frac{1}{4\pi\epsilon_0} \frac{\hat{r}\cdot {d\vec{S_2}}}{r_2^2}=\frac{1}{4\pi\epsilon_0}(-d\omega+d\omega)=0$$ since $$\frac{\hat{r}\cdot {(-d\vec{S_1}})}{r_1^2}=d\omega$$.

similarly, by taking all such pairs of infinitesimal surfaces you can prove $$\oint \vec{E_{q}} \cdot \vec{dA}=0$$.

So, for a collection of outside charges, $$\sum_i \oint \vec{E_{q_i}} \cdot \vec{dA}=0$$ $$\oint \vec{\sum_i E_{q_i}} \cdot \vec{dA}=0$$ $$\oint \vec{E}_{Q_{out}} \cdot \vec{dA}=0$$

I think it's worth approaching your question from a bit of a different point of view. We know that the electric field is a vector field. In general, the divergence of a vector field is a measure of field sources/sinks. This is just an interpretation of a mathematical property, and applies to any vector field. We'll use the symbol rho to signify the field source.

$$\nabla\cdot \vec{E} \propto \rho$$

The constant of proportionality depends on what units you want to measure your field source in. I'll symbolize the constant as epsilon.

$$\nabla\cdot \vec{E} = \frac{\rho}{\epsilon_0}$$

Then we can integrate over an arbitrary volume.

$$\int\nabla\cdot \vec{E} dV = \int\frac{\rho}{\epsilon_0}dV=\frac{q_{encl}}{\epsilon_0}$$ where I chose the constant $q_{encl}$ to represent the volume integral of $\rho$.

Now I'll use the divergence theorem to rewrite the integral of the divergence as a surface integral.

$$\int\nabla\cdot \vec{E} dV = \oint \vec{E} \cdot d\vec{S}=\frac{q_{encl}}{\epsilon_0}$$

Now imagine a source that exists at a single point. By circular symmetry, the field must be perpendicular to a spherical surface around the point, and constant magnitude at a given distance from the point.

$$\oint \vec{E} \cdot d\vec{S} = \oint E dS = E\oint dS=4\pi r^2 E$$ $$4\pi r^2 E =\frac{q_{point}}{\epsilon_0}$$ $$E = \frac{q_{point}}{ 4\pi \epsilon_0 r^2 }$$

So that's almost coulomb's law. To finish the job, you also need to know how a force relates to the electric field. There's actually a sign ambiguity from the orientation of the surface, that I conveniently ignored. This corresponds to the arbitrary choice of which charge is positive or negative.

This is somewhat remarkable: we started with the properties of a vector field, chose arbitrary constants, chose a point source in 3 dimensions, and derived effectively coulomb's law. Gauss's law is really just a general property of vector fields, and coulomb's law follows from geometry, combined with the lorentz force. This equation, $$E = \frac{q_{point}}{ 4\pi \epsilon_0 r^2 }$$ applies to any vector field with a point source in 3 dimensions, where the constant $\epsilon_0$ defines the units, and nothing more.

In my humble opinion, the most confusing step in this whole derivation is the use of the divergence theorem. I believe your dissatisfaction stems from how the divergence theorem can ignore sources outside the volume/surface of integration. This isn't really a problem with Gauss's law though, which holds anyways.