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

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.

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

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.

Adding up a derivative over the inside of a region gives the same answer as adding up the field over its edge. Gauss, Stokes and Green are three versions of that one idea.

1. The idea you already know

In one dimension you have used this theorem since Class 12:

∫abdfdxdx=f(b)−f(a)

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 V its closed surface S ∭V∇⋅F→dV=∮SF→⋅da→
Stokes an open surface S its boundary curve C ∬S(∇×F→)⋅da→=∮CF→⋅dl→
Green (flat Stokes) a region R in the plane its boundary C ∬R(∂xQ−∂yP)dA=∮C(Pdx+Qdy)

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.

∭V∇⋅F→dV=∮SF→⋅da→(da→ points outward)
∇·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 F→=x2iˆ+y2jˆ+z2kˆ through the cube 0≤x,y,z≤2.

  1. Six surface integrals would work, but compute the divergence first: ∇⋅F→=2x+2y+2z.
  2. Over the cube, ∭xdV=(∫02xdx)(2)(2)=2×4=8, and the same for y and z.
  3. Flux =2(8+8+8)=48.

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 F→=xiˆ+yjˆ+zkˆ through the curved side of the cylinder x2+y2=4, 0≤z≤3.

  1. Closed cylinder: ∇⋅F→=3, volume π(2)2(3)=12π, so the total flux is 36π.
  2. Top lid z=3, outward normal +kˆ: Fz=3 over area 4π gives 12π.
  3. Bottom lid z=0, outward normal −kˆ: Fz=0 there, so 0.
  4. Curved side =36π−12π−0=24π.

Check: on the side, F→⋅nˆ is the distance from the axis, 2, and the area is 2π(2)(3)=12π: flux 24π ✓. 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.

∬S(∇×F→)⋅da→=∮CF→⋅dl→

Orientation. The direction round C 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 +kˆ. Reverse the direction and the answer changes sign; examiners love writing “clockwise as seen from the positive z-axis” to test exactly this.

The superpower. The surface can be any surface with edge C. 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 ∮C(zdx+xdy+ydz) anticlockwise round the circle x2+y2=4, z=0.

  1. F→=(z,x,y), so ∇×F→=(1,1,1), a constant.
  2. Use the flat disc, normal kˆ: (∇×F→)⋅kˆ=1.
  3. Flux of the curl =1×(area 4π)=4π.

Direct check: on z=0 only ∮xdy survives, and that is the area, 4π ✓.

4. Green’s theorem: Stokes in a flat plane

Put Stokes on a flat region of the xy-plane with F→=(P,Q,0). Then (∇×F→)⋅kˆ=∂xQ−∂yP, and for an anticlockwise boundary:

∮C(Pdx+Qdy)=∬R(∂Q∂x−∂P∂y)dA

Memory aid: “Q first, then P”, the same order as in the z-component of the curl, ∂xFy−∂yFx.

Three choices of P and Q give the area enclosed by C:

A=∮Cxdy=−∮Cydx=12∮C(xdy−ydx)

Worked example. Find ∮C[(x2−y)dx+(y2+x)dy] anticlockwise round the triangle with corners (0,0), (2,0), (0,2).

  1. ∂xQ−∂yP=1−(−1)=2.
  2. The triangle’s area is 12(2)(2)=2.
  3. Integral =2×2=4. The x2 and y2 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 F→=(−yiˆ+xjˆ)/(x2+y2) has zero curl everywhere except the origin, where it is not even defined. Round any loop that encloses the origin its circulation is 2π; 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 F→=rˆ/r2=r→/r3 has zero divergence for r>0, yet its flux through any closed surface around the origin is 4π. The whole source is packed into the origin: ∇⋅(rˆ/r2)=4πδ3(r→).

So for this field:

  • origin inside the closed surface (any shape): flux 4π;
  • 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 2π. One face of a cube centred at the origin covers one sixth: 4π/6. A disc of radius a at distance d covers Ω=2π(1−d/d2+a2).

The same symmetry trick answers the classic Gauss’s law puzzles. A charge q at the corner of a cube is shared by 8 cubes that meet there, so one cube gets q/8ε0; at the middle of an edge, 4 cubes share it (q/4ε0); at the centre of a face, 2 (q/2ε0). Try the field idea live in fibub’s Gauss’s law tool.

6. A one-minute checklist for any exam question

  1. Closed surface? Compute ∇⋅F→. Constant: multiply by the volume. Zero: answer 0 (unless there is a singular point inside).
  2. Open surface, flux of F→? Close it with flat lids, use Gauss, subtract the lids (watch the outward normal of each lid).
  3. 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.
  4. Closed line integral? Check the curl. Zero curl and no holes: answer 0. Otherwise use Stokes or Green with the flattest surface.
  5. Orientation: anticlockwise from above goes with +kˆ; flip the sign for clockwise.
  6. Singular point (a 1/r2 field or 1/s 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: ∭∇⋅F→dV=∮F→⋅da→ over a closed surface with outward normal.
  • Stokes: ∬(∇×F→)⋅da→=∮F→⋅dl→; the surface can be any surface with that edge, oriented by the right-hand rule.
  • Green: ∮(Pdx+Qdy)=∬(∂xQ−∂yP)dA anticlockwise; 12∮(xdy−ydx) 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.
  • rˆ/r2 gives 4π 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

1The field F = (y, z, x) has zero divergence. What is its outward flux through a sphere of radius 7?
2Two open surfaces share the same boundary curve C, with normals chosen by the same right-hand rule. Which flux is guaranteed to be the same through both?
3What does the anticlockwise integral ∮ (x dy − y dx) round a simple closed curve equal?

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.