Home / Learn / Exam prep / IIT JAM Physics / Lesson 4.1
All lessons

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.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

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 ∇⋅E→=ρ/ϵ0 to go from a field to its charges.

Field lines start on positive charge and end on negative charge, so the net number leaving any closed surface counts the charge inside it, and nothing else.

1. Coulomb’s law and superposition

A point charge q makes a field that points straight away from it (towards it if q<0) and weakens with the square of distance:

E→=14πϵ0qr2rˆ,14πϵ0=k≈8.99×109 N m2C−2

A test charge q0 placed there feels F→=q0E→. 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 +1 nC sit at (−1,0) and (+1,0) m. Find the field at (0,1) m.

  1. Each charge is 2 m away, so each gives kq/2=4.49 N/C.
  2. Each field points along the line from its charge, at 45∘ to the y-axis. The x-parts cancel by symmetry.
  3. The y-parts add: E=2×4.49×cos⁡45∘≈6.36 N/C, along +y.

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 ±q a small distance d apart, moment p=qd from − to +) has a field that falls as 1/r3: 2kp/r3 along p→ on its axis, and kp/r3 opposite to p→ 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:

ΦE=∫SE→⋅da→

da→ 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 A at angle θ to the field direction is just EAcos⁡θ.

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.

Field lines from point charges, with a movable Gaussian surface. The flux depends only on the charge inside: lines from charges outside enter and leave again.

3. Gauss’s law

∮SE→⋅da→=Qencϵ0

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 q at the centre of a cube sends q/(6ϵ0) through each face. A charge at a corner is shared by 8 cubes, so one cube gets q/(8ϵ0); the three faces touching the corner get nothing (the field lies along them), and the three far faces get q/(24ϵ0) 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 E is constant and perpendicular (or parallel) to it. There are only three such shapes.

Charge Gaussian surface Field
Point, shell, any ρ(r) concentric sphere E=Qenc(r)4πϵ0r2
Infinite line λ, cylinder coaxial cylinder E=λenc2πϵ0s
Infinite sheet σ pillbox through it E=σ2ϵ0, any distance

The recipe is always the same: (1) use symmetry to say which way E→ points and what it depends on; (2) choose the surface; (3) work out the flux (E× area); (4) work out Qenc; (5) solve for E.

Worked example: a uniform solid sphere (charge Q, radius R).

  1. Outside (r>R): E4πr2=Q/ϵ0, so E=kQ/r2, as if all the charge were at the centre.
  2. Inside: the enclosed charge is Q(r/R)3. So E4πr2=Qr3/(ϵ0R3) and E=kQr/R3, growing linearly from zero.
  3. The two agree at r=R. For a thin shell instead, Qenc=0 inside, so E=0 there, with a jump of σ/ϵ0 at the surface.

Worked example: two sheets. Sheets of +3 and −1 μC/m² face each other. Each gives σ/(2ϵ0), away from a positive sheet and towards a negative one. Between them both fields point the same way: (3+1)×10−6/(2ϵ0)=2.26×105 N/C. Outside, they point opposite ways: (3−1)×10−6/(2ϵ0)=1.13×105 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 ρ), E=ρs/(2ϵ0) inside; for a uniform sphere, E=ρr/(3ϵ0). A wrong option in many papers swaps them.

5. Densities that change with radius

When ρ depends on r, you cannot multiply by the volume: add up thin shells instead.

Qenc(r)=∫0rρ(r′)4πr′2dr′

Worked example. ρ=ρ0(1−r/R) inside radius R. Then Q(r)=4πρ0(r33−r44R) and E=ρ0ϵ0(r3−r24R). Setting dE/dr=0 gives the strongest field at r=2R/3, 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:

∇⋅E→=ρϵ0,∇×E→=0  (electrostatics)

Use it both ways. Given E→, the charge density is ϵ0∇⋅E→ (in spherical coordinates, ϵ0r2ddr(r2Er); 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. E→=cr3rˆ gives ρ=ϵ0r2ddr(cr5)=5ϵ0cr2. The naive ϵ0dEr/dr=3ϵ0cr2 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 ρd→/(3ϵ0), uniform, where d→ 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: ∮E→⋅da→=Qenc/ϵ0. Outside charges change E→ but not the net flux.
  • Only spherical, cylindrical and planar symmetry let Gauss’s law give E. Sphere: ρr/3ϵ0 inside; cylinder: ρs/2ϵ0; sheet: σ/2ϵ0.
  • Shell: zero field inside. Solid sphere: field grows as r inside. For ρ(r), integrate shell by shell.
  • ∇⋅E→=ρ/ϵ0 and ∇×E→=0: 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

1A closed surface surrounds a +4 nC charge. A −9 nC charge sits just outside it. What is the net flux out of the surface?
2Inside a uniformly charged solid sphere, how does the field grow with distance r from the centre?
3Gauss's law is true for any closed surface. Why can't it give the field of a finite charged rod?

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.