Skip to content
GATEiit

GATE EC, AE, ME, EE, IN + 8 more · Vector Calculus

Green's, Gauss Divergence and Stokes' Theorems

Connecting boundary curves, open surfaces, and closed 3D volumes using Green's theorem in the plane, Stokes' curl theorem, and Gauss's divergence theorem.

Before you start

This topic comes before: Curl, Gauss's Law, Cauchy's Integral Theorem and Cauchy's Integral Formula

Concept notes

1. Green's theorem in the plane

Let C be a simple closed curve in the xy-plane enclosing a region R, and let M(x,y), N(x,y) have continuous first partial derivatives on and inside C. Green's theorem:

∮C(M dx+N dy)=∬R(∂N∂x−∂M∂y)dx dy

Orientation: C is traversed counter-clockwise (positive sense), so the region stays on the left. Going clockwise flips the sign.

Area as a line integral. Choosing M=−y/2, N=x/2 gives ∂N∂x−∂M∂y=1:

Area of R=12∮C(x dy−y dx)=∮Cx dy=−∮Cy dx

When to use: a line integral around a closed path made of several pieces (a square, a triangle) is often one double integral by Green's theorem. If ∂N∂x−∂M∂y is a constant k, the answer is simply k×area.

If ∂N∂x=∂M∂y throughout a simply connected region, the integral around every closed path in it is zero: M dx+N dy is an exact differential.

xyregion R∬ (∂N/∂x − ∂M/∂y) dAC (counter-clockwise,region on the left)∮ M dx + N dy along C
Green's theorem: the line integral around C (counter-clockwise) equals a double integral over the enclosed region R

2. Stokes' theorem

Let S be an open, two-sided surface bounded by a closed curve C, and F a vector field with continuous first partial derivatives. Stokes' theorem:

∮CF⋅dr=∬S(∇×F)⋅n^ dS

The circulation of F around C equals the flux of curl F through any surface spanning C.

Orientation (right-hand rule): curl the fingers of the right hand along the direction of C; the thumb gives n^. A curve counter-clockwise when seen from above pairs with an upward normal.

Consequences:

  • Any two surfaces with the same boundary and orientation give the same flux of ∇×F. Replace a hemisphere by the flat disk it sits on; it is usually easier.
  • If ∇×F=0 in a simply connected region, ∮CF⋅dr=0 for every closed curve there. Then F=∇ϕ (conservative), and a line integral depends only on its end points: ∫AB∇ϕ⋅dr=ϕ(B)−ϕ(A).
  • Green's theorem is Stokes' theorem for a flat surface in the xy-plane with n^=k^ and F=Mi^+Nj^, since (∇×F)⋅k^=∂N∂x−∂M∂y.

In electromagnetics this turns Faraday's and Ampere's laws between integral and differential (point) form.

unit normal nsurface S∬ (∇ × F) · n dSboundary curve C: ∮ F · drRight-hand rule:fingers along C,thumb gives n
Stokes' theorem: circulation around the boundary C equals the flux of curl F through any surface S spanning C

3. Gauss's divergence theorem

Let V be a volume bounded by a closed surface S with outward unit normal n^. Gauss's divergence theorem:

∮ ⁣ ⁣∮SF⋅n^ dS=∭V∇⋅F dV

The net outward flux through a closed surface equals the total divergence (source strength) inside.

When to use: flux through a closed surface made of several faces (a cube, a cylinder with its two ends, a sphere). One triple integral replaces six or three surface integrals. If ∇⋅F is a constant k, the flux is k×volume.

Useful results:

  • For r=xi^+yj^+zk^, ∇⋅r=3, so ∮ ⁣ ⁣∮Sr⋅n^ dS=3V for any closed surface.
  • ∇⋅(∇×F)=0, so the flux of a curl through any closed surface is zero.
  • If the surface is not closed (say a hemisphere without its base), add the missing face, apply the theorem, then subtract the flux through the face you added.

In electromagnetics this gives Gauss's law: ∮ ⁣ ⁣∮D⋅dS=Qenc becomes ∇⋅D=ρv.

volume V∭ ∇ · F dVoutward normal nclosed surface S: ∯ F · n dS
Divergence theorem: the outward flux through the closed surface S equals the volume integral of div F over V

4. Choosing the right theorem

Given Closed? Theorem Converts to
∮(M dx+N dy) in a plane closed curve Green ∬R(Nx−My) dA
∮F⋅dr in space closed curve Stokes ∬S(∇×F)⋅n^ dS
∮ ⁣ ⁣∮F⋅n^ dS closed surface Gauss ∭V∇⋅F dV

Quick checks before integrating:

  1. Is ∇×F=0? Then every closed line integral is zero.
  2. Is ∇⋅F constant? Then the closed-surface flux is that constant times the volume.
  3. Is the curl constant? Then a Stokes flux is (curl ⋅ n^) times the area of a flat surface spanning C.
  4. Is the field the curl of something, integrated over a closed surface? The answer is zero.

Conditions: the fields need continuous first partial derivatives in the region, and the region must not contain a singular point. For example, F=−y i^+x j^x2+y2 has zero curl away from the origin, yet its circulation around the unit circle is 2π, because the origin inside is a singular point.

Sign conventions to state in every answer: counter-clockwise for Green, right-hand rule for Stokes, outward normal for Gauss.

Formulas to remember

Green's theoremC counter-clockwise
∮C(M dx+N dy)=∬R(∂N∂x−∂M∂y)dA
Area by a line integral
A=12∮C(x dy−y dx)
Stokes' theoremRight-hand rule links C and n
∮CF⋅dr=∬S(∇×F)⋅n^ dS
Gauss's divergence theoremClosed S, outward normal
∮ ⁣ ⁣∮SF⋅n^ dS=∭V∇⋅F dV
Position vector
∇⋅r=3,∇×r=0
Identities behind the zero results
∇⋅(∇×F)=0,∇×(∇ϕ)=0
Conservative field
∫AB∇ϕ⋅dr=ϕ(B)−ϕ(A)
Area via boundary loop
Area(R)=12∮C(x dy−y dx)
Volume via position flux
∯Sr⋅n^ dS=3 Vol(V)

Common mistakes

  • Forgetting the orientation: Green's theorem needs the counter-clockwise sense, and going clockwise flips the sign.
  • Applying the divergence theorem to an open surface such as a hemisphere without its base; close it first and subtract the added face.
  • Writing the Green's integrand as dM/dy minus dN/dx; it is the partial of N with respect to x minus the partial of M with respect to y.
  • Taking the Stokes normal in the wrong direction; use the right-hand rule with the direction of the boundary curve.
  • Concluding a closed line integral is zero from zero curl when a singular point lies inside the curve.
  • Computing a hard surface integral over a curved surface when a flat surface with the same boundary gives the same Stokes flux.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Green's theorem on a unit square

numerical

Evaluate ∮C(xy dx+x2 dy), where C is the boundary of the square 0≤x≤1, 0≤y≤1, traversed counter-clockwise.

  1. Step 1: Identify M and N and form the integrand.

    Try it on paper first.

Example 2: Area of an ellipse by a line integral

numerical

Use A=12∮C(x dy−y dx) to find the area enclosed by x29+y24=1.

  1. Step 1: Parametrise the ellipse counter-clockwise.

    Try it on paper first.

Example 3: Stokes' theorem: swap a hemisphere for a disk

numerical

For F=−y i^+x j^+z k^, evaluate ∬S(∇×F)⋅n^ dS over the upper hemisphere x2+y2+z2=4, z≥0, with upward normal.

  1. Step 1: Compute the curl.

    Try it on paper first.

Example 4: Gauss with a missing bottom lid on an open paraboloid

numerical

Let F=(x,y,z2) and let S be the open paraboloid z=4−x2−y2 for z≥0 (no bottom disk), with upward-outward normal. Find ∬SF⋅n^ dS.

  1. Step 1: Close S with bottom disk D (x²+y² ≤ 4 at z=0, outward normal −k̂).

    Try it on paper first.

Previous year questions

1 official GATE Engineering Mathematics question mapped to this topic across published papers, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE Engineering Mathematics (EC, AE, ME, EE, IN + 8 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.