In the last lesson you found the field of a charged rod, a ring and a disc by chopping the charge into pieces, writing for each piece, and adding the pieces up. It works. It is also slow, and for a solid ball of charge the integral is genuinely unpleasant.
Now picture a ball of plastic, 5 cm across, with charge spread evenly through it. You want the field 15 cm from the centre. The honest way is a triple integral over the volume. The answer, when it finally comes out, is : exactly what you would get if all the charge sat at a single point in the middle. That is too clean to be a coincidence. Something is making the details of the distribution irrelevant, and if you can find out what, you can skip the integral entirely.
Flux: counting how much field crosses a surface
Start with something simpler than a ball. Take a uniform field (every arrow the same length, all pointing the same way) and hold a flat panel of area in it. Define the electric flux through the panel as
where is the angle between the field and the normal to the panel, the direction sticking straight out of its face. If you hold the panel square-on to the field, , , and the flux is : the maximum. Turn it edge-on and , so the flux is zero: the field slides past without crossing. The units are .
The picture to keep is field lines threading a hoop. Flux counts lines through the surface. Tilting the hoop shrinks the opening the lines see, and is exactly that shrinking factor.
Real surfaces are curved and real fields are not uniform, so you cut the surface into patches small enough that each is flat and the field across it is constant, then add:
The circle on the integral means the surface is closed: it seals off a volume, like a balloon, with no edges. For a closed surface everyone agrees to point the normal outward, so flux going out counts positive and flux coming in counts negative.
Flux is a number, not a vector. It can be positive, negative or zero, and its sign on a closed surface tells you whether field is net leaving or net entering.
Where the law comes from
Put a single point charge at the origin and wrap it in a sphere of radius centred on it. Two things are true on that sphere and both matter. The field has magnitude everywhere on it, the same number at every point, because every point is the same distance from the charge. And the field points radially outward, which is exactly the direction of the outward normal, so everywhere.
That makes the integral trivial. is constant, so it comes out front, and what is left is just the total area of a sphere, :
The cancelled. The flux does not care how big you made the sphere: push it out twice as far and the field is four times weaker but the area is four times larger. Writing Coulomb's constant as , the cancels too and you are left with
This is Gauss's law. is the permittivity of free space. is the total charge sealed inside the surface: inside, nothing else.
Two extensions turn this from a statement about spheres into a general law. First, the sphere was not special: distort it into any shape you like and the field lines that left through the sphere still have to leave through the new surface, since lines from a point charge do not stop or turn around in empty space. Second, fields add, so flux adds. A collection of charges gives the sum of their individual fluxes, and any charge sitting outside the surface contributes zero: its lines go in one side and out the other, cancelling.
That last point is the one to hold on to. The flux depends only on the enclosed charge. The field in the integral is the field of everything, near and far. Those two facts live together comfortably and confuse almost everyone at first.
Quick check
A point charge sits just outside a closed surface, and no charge is inside. What is the net flux through the surface?
Worked example 1: flux with no integral in sight
A uniform field of points horizontally. A flat panel by is tilted so its normal makes with the field. Find the flux.
Area first: . Then
Now a closed-surface version. A sealed instrument housing is probed and the net outward flux through it is . What is the charge inside? Rearranging Gauss's law, :
Negative flux, negative charge. You never had to know where in the housing the charge sat, or how it was shaped.
Symmetry can hand you flux fractions for free. A point charge at the centre of a cube sends total flux out, and the six faces are identical, so each takes one sixth. For :
Put the charge at a corner instead and only an eighth of its field enters the box at all, so the box catches . The three faces touching that corner are edge-on to the charge and take nothing; the other three split the eighth equally, giving each. For that is . Half a sphere catches half: a hemispherical dome over a charge on a table passes .
Gauss's law gives you flux from enclosed charge, not the other way round. Knowing the flux through one face of a lopsided box tells you nothing about the charge unless symmetry lets you say what fraction of the total that face caught. Symmetry is what makes the fraction knowable.
The three symmetries that make it a calculation tool
Gauss's law is always true and usually useless for finding , because sits inside an integral you cannot undo. It becomes a tool only when you can choose a closed surface (a Gaussian surface, imaginary, drawn wherever you please) on which two conditions hold: has the same magnitude everywhere on it, and is either perpendicular to it (so ) or parallel to it (so the flux through that part is zero). Then and you can divide.
Exactly three charge arrangements give you that, and between them they cover almost every problem you will meet.
Spherical symmetry: a ball, a shell, or any charge density that depends only on distance from a centre. Use a concentric sphere of radius , area :
Outside everything, is the whole charge and the field is that of a point charge at the centre: the coincidence from the opening, explained.
Cylindrical symmetry: a long straight line, rod, or beam. Use a coaxial can of radius and length . The flat ends are parallel to the field so they contribute nothing, and the curved side has area :
where is charge per unit length. The cancels, as it must, since an infinite wire has no special place along it. Note the , not .
Planar symmetry: a large flat sheet. Use a pillbox: a short cylinder poking through the sheet with one flat face on each side. The curved side is parallel to the field and carries nothing; each flat face of area carries , so the total is , and the enclosed charge is where is charge per unit area:
No at all. The field of a big sheet is the same one millimetre away and one metre away. That is what a thundercloud base is: for air to break down at you need .
Quick check
Two large parallel plates carry equal and opposite surface charge densities of magnitude sigma. What is the field in the gap?
Worked example 2: inside and outside a ball of charge
A plastic ball of radius carries spread uniformly through its volume. Find the field at and at .
Outside is quick. The Gaussian sphere at encloses all :
Inside is where the thinking is. A Gaussian sphere at does not enclose all the charge, only the part within of the centre. Because the density is uniform, the enclosed charge is the total times the fraction of the volume you have grabbed:
Feed that back in:
The field inside grows linearly with : zero at the centre, maximum at the surface. Numerically, , so , and
Stronger inside than at 15 cm, even though less charge is doing the work: you are much closer. The two formulas agree at , as they must.
This linear inside-field has a famous consequence. Bore a tunnel through a diameter and drop a charge into it. The force is : proportional to displacement and pointing back to the centre. That is Hooke's law, so the charge oscillates with and frequency . The rule from springs transfers unchanged; only the meaning of the stiffness has changed.
Worked example 3: conductors, cavities and shells
A conductor in equilibrium has inside the metal. It has to: if any field survived, the free charges would still be moving, and you would not have equilibrium. Draw a Gaussian surface anywhere inside the metal and the flux is zero, so the enclosed charge is zero. Excess charge can only live on surfaces.
Now the cavity. A neutral metal block has a hole in it, and you drop inside the hole. Draw your Gaussian surface in the metal, wrapping the cavity. Flux zero, so enclosed charge zero, so the cavity wall must carry exactly . The block was neutral, so is pushed to the outer surface. It does not matter that the charge sits off-centre in the cavity; the argument never used its position.
Here is a fuller version. A ball of radius sits inside a metal shell carrying net , inner radius , outer radius . Find at . A sphere at encloses everything: . So
The shell's inner surface carries and its outer surface , but for a point outside, only the total mattered.
The same reasoning runs coaxially. A rod of radius carrying inside a grounded tube of inner radius : in the gap the field is , largest where is smallest, which is right at the rod's surface. So . Breakdown always starts at the thin conductor.
Worked example 4: when the density is not uniform
A sphere of radius has : dense at the centre, fading to nothing at the rim. The field rises from zero, peaks somewhere, then falls off as outside. Where is the peak?
Uniform-density shortcuts are gone, so build honestly. Slice the interior into thin shells of radius and thickness , each of volume :
Now Gauss's law, dividing by :
To maximise, differentiate and set to zero:
With that is : inside the sphere, not at its surface. Whenever the density falls off fast enough, the outer shells add less charge than the growing costs you, and the field turns over early.
The same integral handles any radial . Try : then , and , independent of . A constant field everywhere inside. To get you need .
When symmetry breaks: superposition rescues you
An off-centre hole in a charged ball has no symmetry at all, so no Gaussian surface helps. Superposition does. A ball with a spherical cavity is the same thing as a full ball of density plus a smaller ball of density filling the hole. Each piece is spherically symmetric about its own centre, and inside a uniform ball the field at displacement from its centre is , just rewrite using and watch cancel.
Add the two at a point in the cavity, with the vector from the big centre to the small one:
The point you chose dropped out. The field inside the cavity is uniform. For and , . Two overlapping spheres of opposite density work the identical way, giving a uniform field throughout the lens of overlap.
How to recognise a Gauss's law problem
Reach for Gauss's law when you see one of these:
The problem says flux, or gives you a closed surface and asks what is inside. That is Gauss's law used as a bookkeeping statement, and no field calculation is needed at all.
The charge has one of the three symmetries and the question asks for a field. Words like sphere, ball, shell, long straight wire, beam, coaxial, large sheet, wide slab, parallel plates are the tell. Draw the matching surface, ask what charge is inside it, and divide by the area.
The question asks for the field inside a charged object. Direct integration inside a volume is brutal; Gauss's law is one line. The phrase "at a radius smaller than " should make you reach for it immediately.
There is a conductor anywhere in the problem. inside metal plus Gauss's law determines every induced charge in the setup.
And reach for superposition instead when the symmetry is broken but the pieces are symmetric: cavities, overlapping spheres, two sheets, a wire beside a plane.
The one thing Gauss's law will not give you is the field of a finite rod or a ring off-axis. No surface has constant on it there, so you go back to the integration of the previous lesson. Knowing which tool a problem wants is most of the skill.
Next you will stop tracking the field vector and start tracking a single number per point in space, which turns most of these vector problems into arithmetic: electric potential.