Gauss's Law
A super easy breakdown of Gauss's law using a soy-sauce-flinging analogy, electric field lines, and flux — no scary math required (well, almost).
Some original drawings have corrections. Read the notes on those drawings alongside the worked steps.
Did y’all learn Gauss’s law in high school? I don’t really remember lol..hehe

Is there anyone who’s reading this right now after searching because they were curious about Gauss’s law? First, let me try to explain the basic concept of Gauss’s law super~~ easily

Suppose some crazy person grabs a bottle of soy sauce and spins around crazy fast lol (watch out, this is an assumption) So let’s say the soy sauce that scatters out shoots off in a straight line infinitely.
Alright! If a crowd of people packed tightly blocks off that crazy person at a radius of 5m? The soy sauce would get all over the clothes of the crowd standing around, right?
Then what about when a crowd packs tightly at a radius of 50m?? Soy sauce would get on these people too, right?? What about when a crowd is packed tightly at a radius of 100m?? What about 1000m?? lol What about 103420m?? What about 1394830980340m??
In every case, since they’re all packed tight, no soy sauce leaks out. Now now now now now are ya getting it?? :3
If you think of the soy sauce as electric field lines (lol lol lol), understanding Gauss’s law is done!
This is the basic concept of Gauss’s law.

Even an elementary schooler would get it, right? Hahaha
Field lines and flux
Then now let’s drop the soy sauce analogy, and think in terms of ’the strength of the electric field’. Of course, since the electric field is a vector, we could express the strength of the electric field with the vector’s magnitude — drawing the vector’s length as loooong or short. But drawing the electric field one by one at every point in all of space is hard, right.
So we introduced the concept of ‘electric field lines’. Where the electric field is strong, we draw lots of field lines passing through some unit area (perpendicular to the field), and where the electric field is weak, we draw fewer field lines through it — that’s the convention.
Why go to all this trouble?!?
Obviously because this is more convenient!! Let’s try it.
That is, the flux of E passing through some surface S is

If I write this to look all fancy while there’s jack shit of mathematical substance to it,

(This means we added up all~~ the individual E·da’s — the E at each infinitesimal piece of surface da, dotted with da.)
Now let’s expand the dimension by one more step.

When a point charge q sits at the center of a sphere like this, let’s find the flux passing through the surface of the sphere??
(Earlier I used the analogy of the crowd being packed tightly, right?? Those crowds are those ‘surfaces’!!! Now you really get why I used that analogy above, right?!)
There will be individual electric fields passing through the sphere’s surface like this. Take the dot product with
and multiply by the patch area $da$ — then add all~~ those up. The unit normal gives the direction; $d\vec a=\hat{\mathbf n}\,da$ supplies the area too!
(Wait! On each of those surfaces,
,
,
, ….,
their directions will all be different, but the magnitudes will all be the same! Everyone agrees, right!? The reason is they’re all the same distance away from the point charge.)
And one more thing,
— the reason I bothered to put a ^ hat on it is to say the magnitude is ‘1’. This is called a unit vector, so strictly speaking, I shouldn’t call it “the infinitesimal area” at all — it’s the unit vector that points along the infinitesimal area’s direction.
“But GD park you bastard. Why aren’t you being strict?!” The reason is, if I keep using words like that, the writing will get heavy like a textbook too, so I’m trying to write as light, light as possible.. please understand^^ hehehe Without losing strictness, I’ll keep describing things as easily as possible.
Now

we have to calculate this integral. Please take just one look at this. Inside the integral, on this sphere, the directions of E and da are always the same, so please note that ‘we can compute it like a scalar’!! (You can also just think of it as ~ the dot product of E’s direction vector r-hat times da’s direction vector da-hat is 1.)

If you bash it out with the integral, this is what you get!! More easily, you can also work it out like this… (it’s the same process as above, so you can skip it.)

That’s how we got the Flux!
The concept we just used while finding the Flux is exactly Gauss’s law!
(‘soy sauce = electric field lines’ — I’m mentioning this once more so we don’t lose the consistency of the logic.)
The Gaussian surface
That’s why we call the surface above the “Gaussian surface”.
Wait a sec!! What’s a Gaussian surface?!
Here I’ll add a bit more explanation. To compute the Fluxes emanating from some point charge, we picked some ‘spherical surface’. Who picked this?? We did. Nobody picked it for us, right??
Yes, that’s right. A Gaussian surface isn’t something where it’s fixed that you have to pick it exactly this way — you pick it however suits your taste, as long as it’s a closed surface. In some situations it’s better to pick the Gaussian surface like this, in some situations it’s better to pick the Gaussian surface like that. And in some situations it’s even better not to pick a Gaussian surface at all, I want to say the Gaussian surface is set in its own way depending on you.
And now by setting up the Gaussian surface like this we found the Flux,
But what’s the point of finding the Flux….
Actually, from here on out, what we calculate using Gauss’s law is not the Flux. Specifically, we use Gauss’s law to find the magnitude and direction of the electric field.
But in finding the magnitude and direction of that electric field, there are many cases where it’s easy to compute via the Flux, when the object or the charges are symmetric(?), harmonious(?) ugh whatever, I’ll just say it in English — when the object is Symmetric, or when the distribution of the charges is Symmetric, it’s convenient to use Gauss’s law.
(That is, if it’s not a situation like the above, it’s really hard to calculate with Gauss’s law. But the good news is… at the undergraduate level, most of the situations we consider are symmetric.)
The integral form
Now let’s take one step further. More generally, instead of saying there’s q inside the Gaussian surface, if we set it as ‘q’s’, instead of just q, I’ll write Q with the subscript in.

Like this. In case you forgot, ‘for reference’: the conclusion when not considering a charge distribution, and considering a point charge, was

this. What Qin means is the sum of the charge amounts of all the charges “inside” the Gaussian surface

This is exactly the integral form of Gauss’s law.
You have to understand the above equation well. If you take the dot product of the electric field passing through the Gaussian surface we wrapped with the infinitesimal area vector, and add up all~~~ those values, always, at any time, Always that sum is
, that’s what it is.
So what this is saying is,

when there’s a charge distribution like this,

the Gaussian surface (obviously a closed surface) — whether you pick red, whether you pick blue, whether you pick black, as long as it wraps around the same charges — at each infinitesimal area
even if you don’t know each of these values well.
If you take the dot product of the electric field passing through the Gaussian surface we wrapped with the infinitesimal area vector, and add up all~ those values, always, at any time, Always that sum
is
.
The differential form
If we take this equation and with the divergence theorem~ just manipulate it a teeny tiny bit (these kinds of manipulations keeeeeep coming, so you’ll probably need to get used to it hehe)

The conclusion at the very bottom
![]()
This is the differential form of Gauss’s law!!
A really important equation!! It’s also the first equation of Maxwell’s Equations
(The reason I pulled all this bullshit of changing the integration region via the divergence theorem was to show the differential form~~~)
If you think of the integral form as ‘at a giant Sphere~’, you can think of the differential form as ‘at a very small local infinitesimal volume~’. That is, I want to say you can think of it as a change of perspective.
A question that came in
Since a question came in, I’ll add a bit more with some edits.

The two situations are clearly different situations. Yes yes yes yes but, according to the result of the Gauss theorem above, the left figure has
simply Zero, and the right has
where the sum of the charge amounts inside is Zero.
So when through the Gauss theorem we say ’the divergence of E adds up to 0~’ (or ’the integral is 0~’), here’s what that 0 is made of:
Left side (no charge inside and, in this picture, nothing outside either, so E itself is 0 all over the surface): 0+0+0+0+0+0+0+0+0+0+0+0+0+0+ ··············· = 0
Right side: something + some-other-thing + something + some-other-thing + something + some-other-thing + something + some-other-thing + something + some-other-thing + ····· = 0
That’s what it is. That is, when we say the electric flux through that Gaussian surface we picked — all the E·da’s added up shaaaaaaaaaaaaak together — is 0, the process by which it becomes 0 is somewhat different in each case, right?? hehe (And zero total flux alone doesn’t mean E is zero at each point: with charges outside, even an empty surface gets nonzero pieces that cancel, like the right side.)
If you’re encountering electromagnetism for the first time, I think it would be weird to understand it in one go. (Speaking as someone utterly ordinary^^;;;) Even if you don’t get it right away here~~~~ as you solve problems later on, you’ll realize ‘ahh, in this kind of situation if I pick the Gaussian surface like this and count the electric fields like this, the counting is easy!!!!’^^
Study hard.
Heads-up. The figures here are the original notes, slips and all. A few things to watch for:
- In the definition of the flux through a surface $S$, the integral is $\int_S \vec E\cdot d\vec a$; the circle on $\oint$ belongs only to a closed surface, which comes next.
- In the derivation of $\nabla\cdot\vec E = \rho/\varepsilon_0$, the volume integrals should be plain $\int_V$; the circle belongs only to the closed-surface integral in the first line.
Questions or corrections?
Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.
Feedback goes to me privately by email; it is not posted as a public comment.