Module 1: Mathematical methods · Lesson 1.6 · about 40 min
Gauss, Stokes and Green: the integral theorems
How the divergence theorem, Stokes theorem and Green theorem turn hard surface and line integrals into easy ones, why they are true, and the closing-the-surface, orientation and hidden-source traps JAM sets every year.
Module 1 · about 40 minutes. By the end you will be able to choose the right theorem in seconds, turn a six-face surface integral into one line, handle open surfaces by closing them, get the orientation signs right, and spot the hidden point source that breaks the naive answer.
1. The idea you already know
In one dimension you have used this theorem since Class 12:
Read it in words: the total of a derivative over a region equals the function on the region’s edge. The “edge” of the interval is just its two end points, with a plus sign at the end and a minus sign at the start.
The three integral theorems are the same sentence in higher dimensions. The derivative becomes divergence or curl (lesson 1.5), and the edge becomes a closed surface or a closed curve.
| Theorem | Inside | Edge | Statement |
|---|---|---|---|
| Gauss (divergence) | a volume | its closed surface | |
| Stokes | an open surface | its boundary curve | |
| Green (flat Stokes) | a region in the plane | its boundary |
Keep this table in your head and half of every JAM question on the topic is already done: you only have to decide which row you are in.
2. The divergence theorem: sources inside, flux outside
Divergence is the net outflow per unit volume from a tiny box (lesson 1.5). Stack many tiny boxes to fill a big volume. Where two boxes touch, whatever leaves one enters its neighbour, so those inner faces cancel. Only the faces on the outside survive, and their total is the flux through the outer surface.
- ∇·F dV
- how much "stuff" is created in a tiny piece of the volume
- F · da
- how much crosses a tiny patch of the surface, counted positive going out
- ∮ (circle on the integral)
- the surface is closed: it has an inside and an outside, and no edge
- Physical meaning
- Whatever is produced inside must flow out through the walls. With F = E it becomes Gauss's law: flux = charge enclosed / ε₀.
Worked example. Find the outward flux of through the cube .
- Six surface integrals would work, but compute the divergence first: .
- Over the cube, , and the same for and .
- Flux .
The habit to build: always compute the divergence before touching a surface. If it is a constant, the flux is that constant times the volume, and you are done in one line. If it is zero, the flux is zero.
Open surfaces: close them
JAM often asks for the flux through an open surface: a hemisphere, the curved side of a cylinder, a paraboloid cap. The divergence theorem needs a closed surface, so close it yourself with a flat lid, use the theorem on the closed shape, and subtract the lid.
Worked example. Find the flux of through the curved side of the cylinder , .
- Closed cylinder: , volume , so the total flux is .
- Top lid , outward normal : over area gives .
- Bottom lid , outward normal : there, so 0.
- Curved side .
Check: on the side, is the distance from the axis, 2, and the area is : flux ✓. The sign to watch is the bottom lid: its outward normal points down.
3. Stokes’ theorem: swirl inside, circulation round the edge
Now take an open surface, like a soap film on a bent wire. Chop it into tiny cells. Round each cell, the circulation (line integral) is the curl through the cell times its area. Step through what happens when you add the cells:
One cell. For a tiny cell, the line integral round its four edges is (∇×F)·n̂ times its area. That is what curl means.
Two neighbours. The edge they share is walked upward by one cell and downward by the other, so its two contributions cancel exactly.
All the cells. Every inner edge is shared, so every inner edge cancels. Adding all the cells still gives the sum of (∇×F)·n̂ dA.
Only the boundary survives. What is left is the line integral round the outer edge. So the flux of the curl through the surface equals the circulation round its boundary.
Orientation. The direction round and the side the normal points to are tied by the right-hand rule: curl the fingers of your right hand along the direction of travel, and your thumb gives the normal. Anticlockwise seen from above goes with . Reverse the direction and the answer changes sign; examiners love writing “clockwise as seen from the positive -axis” to test exactly this.
The superpower. The surface can be any surface with edge . A hemisphere and the flat disc under it share the unit circle as their edge, so the flux of a curl is the same through both. Always swap a curved surface for the flattest one you can find.
Worked example. Evaluate anticlockwise round the circle , .
- , so , a constant.
- Use the flat disc, normal : .
- Flux of the curl .
Direct check: on only survives, and that is the area, ✓.
4. Green’s theorem: Stokes in a flat plane
Put Stokes on a flat region of the -plane with . Then , and for an anticlockwise boundary:
Memory aid: “Q first, then P”, the same order as in the -component of the curl, .
Three choices of and give the area enclosed by :
Worked example. Find anticlockwise round the triangle with corners , , .
- .
- The triangle’s area is .
- Integral . The and parts are decoys: they never contribute to a closed integral.
“Zero curl means the circulation round every loop is zero.” Only if the region inside the loop has no holes. The field has zero curl everywhere except the origin, where it is not even defined. Round any loop that encloses the origin its circulation is ; round a loop that does not, it is 0. Green and Stokes need the field to be smooth on the whole surface, so check for points where it blows up before you write “zero by Stokes”.
5. Hidden sources and solid angle
The point-charge field has zero divergence for , yet its flux through any closed surface around the origin is . The whole source is packed into the origin: .
So for this field:
- origin inside the closed surface (any shape): flux ;
- origin outside: flux 0;
- an open surface: flux = the solid angle it covers as seen from the origin.
That last rule solves questions that look impossible. An infinite plane not through the origin covers half the sky: flux . One face of a cube centred at the origin covers one sixth: . A disc of radius at distance covers .
The same symmetry trick answers the classic Gauss’s law puzzles. A charge at the corner of a cube is shared by 8 cubes that meet there, so one cube gets ; at the middle of an edge, 4 cubes share it (); at the centre of a face, 2 (). Try the field idea live in fibub’s Gauss’s law tool.
6. A one-minute checklist for any exam question
- Closed surface? Compute . Constant: multiply by the volume. Zero: answer 0 (unless there is a singular point inside).
- Open surface, flux of ? Close it with flat lids, use Gauss, subtract the lids (watch the outward normal of each lid).
- Open surface, flux of a curl? Use Stokes and replace the surface by the flattest one with the same edge, or compute the line integral round the edge.
- Closed line integral? Check the curl. Zero curl and no holes: answer 0. Otherwise use Stokes or Green with the flattest surface.
- Orientation: anticlockwise from above goes with ; flip the sign for clockwise.
- Singular point (a field or around an axis)? Ask whether it is inside.
- All three theorems say: the total of a derivative over a region equals the field summed over its edge.
- Gauss: over a closed surface with outward normal.
- Stokes: ; the surface can be any surface with that edge, oriented by the right-hand rule.
- Green: anticlockwise; is the area.
- For an open surface, close it, use Gauss, and subtract the lids. The flux of a curl through any closed surface is zero.
- gives through closed surfaces around the origin, 0 otherwise, and the solid angle through open ones.
Practise: exam questions on this lesson
They start easy and climb to top-rank level. Check each answer, then read the full solution. More on the integral theorems practice page.
Before this: lesson 1.5, gradient, divergence and curl. Next: lesson 1.7, differential equations. You will use these theorems all through electromagnetism: Gauss’s law, Ampère’s law and Faraday’s law are exactly these three statements applied to E and B. Going on to GATE or CSIR NET? The GATE Physics course uses them with the Dirac delta and Green’s functions.
Check yourself
Sources
- D. J. Griffiths, Introduction to Electrodynamics, 4th ed. (2017), sections 1.3 and 1.5
- M. L. Boas, Mathematical Methods in the Physical Sciences, 3rd ed. (2006), chapter 6
- H. M. Schey, Div, Grad, Curl, and All That, 4th ed. (2005), chapters III and IV
- IIT JAM Physics syllabus (Mathematical Methods 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.