Module 4: Electricity and magnetism · Lesson 4.1 · about 40 min
Electric fields and Gauss's law
Coulomb fields and superposition, what flux really counts, and how to use Gauss's law for spheres, cylinders and planes in a few lines, plus the differential form and the traps JAM sets with charges outside the surface.
Module 4 · about 40 minutes. By the end you will be able to add up Coulomb fields correctly with components, say exactly what electric flux counts, choose the right Gaussian surface for spheres, cylinders and planes, handle charge densities that vary with radius, and use to go from a field to its charges.
1. Coulomb’s law and superposition
A point charge makes a field that points straight away from it (towards it if ) and weakens with the square of distance:
A test charge placed there feels . With several charges, the fields simply add as vectors (superposition). That one word, vectors, is where most marks are lost: resolve each field into components, add the components, and only then find the size.
Worked example. Charges of nC sit at and m. Find the field at m.
- Each charge is m away, so each gives N/C.
- Each field points along the line from its charge, at to the -axis. The -parts cancel by symmetry.
- The -parts add: N/C, along .
Adding the sizes (8.99 N/C) would be the classic wrong answer. A quick symmetry look before any algebra tells you which components cancel.
A dipole (charges a small distance apart, moment from to ) has a field that falls as : along on its axis, and opposite to on its perpendicular bisector.
2. Flux: counting field lines through a surface
Imagine field lines drawn so that their density shows the field’s strength. The flux through a surface counts how many cross it, with a sign:
is a tiny piece of area with its direction along the surface’s normal. For a closed surface the normal points outward, so lines going out count and lines coming in count . In a uniform field the flux through a flat area at angle to the field direction is just .
Use the figure to see the main idea. The dashed circle is a slice through a Gaussian sphere. Move it, resize it, include a charge or leave it out, and watch the flux.
3. Gauss’s law
Why is it true? Step through it:
One point charge, one sphere. On a sphere of radius r around q, E = kq/r² everywhere and points straight out. Flux = E × 4πr² = q/ε₀. The r² of the area cancels the 1/r² of the field.
Any shape around the charge. Each small patch of a lumpy surface sees the charge under some solid angle. Flux through it = (q/4πε₀) × solid angle. Solid angles round a closed surface add to 4π, so the total is still q/ε₀.
A charge outside. Its lines that enter the surface must leave it again. Every entry (−) is matched by an exit (+): net flux 0.
Many charges. Fields add, so fluxes add. Only the charges inside contribute: total flux = Qenc/ε₀.
- ∮ E · da
- net number of field lines leaving the closed surface (out minus in)
- E
- the total field from every charge, inside and outside
- Qenc
- only the charge inside the surface
- ε₀
- 8.854 × 10⁻¹² C² N⁻¹ m⁻²: converts charge to flux
- Physical meaning
- Charge is the source of electric field lines. Count the lines that escape and you have weighed the charge inside, without knowing where it sits.
“The E in Gauss’s law is the field of the enclosed charges only.” Wrong. It is the total field, and charges outside do change it at every point of the surface. They just contribute zero to the net flux. This is why Gauss’s law alone cannot give you the field unless symmetry helps.
The cube tricks. A charge at the centre of a cube sends through each face. A charge at a corner is shared by 8 cubes, so one cube gets ; the three faces touching the corner get nothing (the field lies along them), and the three far faces get each. JAM loves these: no integral, only symmetry.
4. Using Gauss’s law: three symmetries
Gauss’s law gives the field when you can pick a surface on which is constant and perpendicular (or parallel) to it. There are only three such shapes.
| Charge | Gaussian surface | Field |
|---|---|---|
| Point, shell, any | concentric sphere | |
| Infinite line , cylinder | coaxial cylinder | |
| Infinite sheet | pillbox through it | , any distance |
The recipe is always the same: (1) use symmetry to say which way points and what it depends on; (2) choose the surface; (3) work out the flux ( area); (4) work out ; (5) solve for .
Worked example: a uniform solid sphere (charge , radius ).
- Outside (): , so , as if all the charge were at the centre.
- Inside: the enclosed charge is . So and , growing linearly from zero.
- The two agree at . For a thin shell instead, inside, so there, with a jump of at the surface.
Worked example: two sheets. Sheets of and C/m² face each other. Each gives , away from a positive sheet and towards a negative one. Between them both fields point the same way: N/C. Outside, they point opposite ways: N/C. The famous “zero outside a capacitor” is only for equal and opposite charges.
Cylinders give 2, spheres give 3. For a uniformly charged solid cylinder (density ), inside; for a uniform sphere, . A wrong option in many papers swaps them.
5. Densities that change with radius
When depends on , you cannot multiply by the volume: add up thin shells instead.
Worked example. inside radius . Then and . Setting gives the strongest field at , inside the sphere: a favourite top-rank question, because students assume the maximum is at the surface.
6. The differential form
Apply the divergence theorem (lesson 1.6) to a tiny volume and Gauss’s law becomes a statement at each point:
Use it both ways. Given , the charge density is (in spherical coordinates, ; see gradient, divergence and curl). And a proposed field with non-zero curl can never be electrostatic, whatever its divergence: check the curl first when a question asks “which of these could be an electrostatic field?”.
Worked example. gives . The naive is a planted wrong option.
A superposition trick. A uniformly charged sphere with an off-centre spherical cavity: treat it as a full sphere () plus a small sphere (). Inside the cavity the field is , uniform, where joins the two centres.
Want to experiment further? The field lines tool lets you place and drag any set of charges, and the 2D electrostatics solver handles electrodes at fixed voltages.
- Fields add as vectors: resolve, add components, then take the size. Look for symmetry first.
- Flux counts net field lines out of a surface; outward normals on closed surfaces.
- Gauss: . Outside charges change but not the net flux.
- Only spherical, cylindrical and planar symmetry let Gauss’s law give . Sphere: inside; cylinder: ; sheet: .
- Shell: zero field inside. Solid sphere: field grows as inside. For , integrate shell by shell.
- and : divergence gives charge, curl tests whether a field can be electrostatic.
Practise: exam questions on this lesson
These start easy and climb to top-rank level. Check each answer, then read the full solution. More on the electric fields and Gauss’s law practice page.
Next: lesson 4.2 turns the field into a potential, a single number at each point that is far easier to add up, and works out the energy stored in charge arrangements: potential and electrostatic energy. Going on to GATE? The GATE Physics course takes this into boundary value problems, images and multipoles.
Check yourself
Sources
- D. J. Griffiths, Introduction to Electrodynamics, 4th ed. (2017), chapter 2: electrostatics
- E. M. Purcell and D. J. Morin, Electricity and Magnetism, 3rd ed. (2013), chapters 1 and 2
- H. C. Verma, Concepts of Physics, Part 2 (1993), chapters 29 and 30
- IIT JAM Physics syllabus (Electricity and Magnetism section), published by the organising IIT each year
Your ticks stay in this browser. Save them as a file on the course home.
Updated 2026-11-22. Not affiliated with IIT or the JAM organising institute. Exam pattern as published for recent years: always check the official JAM website before the exam. All questions are original.