Skip to content
GATEiit

GATE EC · Engineering Mathematics

Line, surface and volume integrals

Evaluating line integrals of scalar and vector fields by parametrisation, path independence for conservative fields, flux surface integrals over planes, graphs and spheres, and volume integrals in Cartesian, cylindrical and spherical coordinates.

Before you start

This topic comes before: Cauchy’s integral formula, Cauchy’s integral theorem, Gauss's, Green's and Stokes’ theorems

Concept notes

1. Line integrals

A curve C is described by a parametrisation r(t)=(x(t),y(t),z(t)), a≤t≤b. Two kinds of line integral appear:

Scalar field (arc-length integral, e.g. mass of a wire): ∫Cf ds=∫abf(r(t)) ∣r′(t)∣ dt With f=1 it gives the arc length. It does not depend on direction.

Vector field (work, circulation): ∫CF⋅dr=∫C(F1 dx+F2 dy+F3 dz)=∫abF(r(t))⋅r′(t) dt Reversing the direction of C changes its sign. Over a closed curve it is written ∮C and called the circulation.

Method.

  1. Choose a parametrisation for each piece of C (a line segment from P to Q: r=P+t(Q−P), 0≤t≤1; a circle of radius a: (acos⁡t,asin⁡t)).
  2. Substitute x,y,z and dx=x′(t) dt, etc.
  3. Integrate in t; add the pieces.

For a curve given as y=g(x), use x itself as the parameter: dy=g′(x) dx.

Useful fact: for a closed curve C enclosing area A (counter-clockwise), 12∮C(x dy−y dx)=A.

2. Conservative fields and path independence

A field F is conservative if F=∇ϕ for some scalar potential ϕ. Then

∫ABF⋅dr=ϕ(B)−ϕ(A),∮CF⋅dr=0

for every path from A to B and every closed curve.

Test. On a simply connected region, F is conservative if and only if ∇×F=0. In 2-D, F=(P,Q) is conservative when ∂Q∂x=∂P∂y.

Finding ϕ. Integrate F1 with respect to x, then fix the unknown function of y,z by matching F2 and F3. Example: F=(2xy+z, x2, x) gives ϕ=x2y+xz.

Field Conservative?
(y,x) yes, ϕ=xy
(2x,2y,2z) yes, ϕ=x2+y2+z2
(yz,xz,xy) yes, ϕ=xyz
(−y,x) no, curl =2k^

When a GATE question says "along any path" or gives a messy path for a field like (y,x), check the curl first: the answer is then just ϕ(B)−ϕ(A).

If the curl is not zero, the result depends on the path. For F=(x2,xy) from (0,0) to (1,1), the path y=x2 gives 11/15 but the line y=x gives 2/3.

xyA (1, 0)B (0, 1)C1: quarter circleC2: straight linePath independence: if F = ∇φ,∫ over C1 = ∫ over C2 = φ(B) − φ(A)region R(inside on the left)closed curve C, counter-clockwise:positive orientation for ∮ and Green's theorem
Left: two different paths from $A$ to $B$ give the same line integral when $\mathbf{F} = \nabla\phi$. Right: the positive (counter-clockwise) orientation of a closed curve, with the enclosed region on the left.

3. Surface integrals and flux

For a surface S with unit normal n^:

  • Scalar surface integral: ∬Sf dS; with f=1 it gives the surface area.
  • Flux of a vector field: ∬SF⋅n^ dS, the amount of F passing through S. For a closed surface, n^ points outward by convention.

Standard surfaces.

Surface dS n^ (outward or upward)
Plane z=c dx dy ±k^
Graph z=g(x,y) 1+gx2+gy2 dx dy (−gx,−gy,1)1+gx2+gy2
Sphere r=a a2sin⁡θ dθ dϕ r/a
Cylinder ρ=a (side) a dϕ dz (cos⁡ϕ,sin⁡ϕ,0)

For a graph, the two square roots cancel: F⋅n^ dS=F⋅(−gx,−gy,1) dx dy over the projection R on the xy-plane.

Symmetry saves time. On a sphere of radius a centred at the origin, r⋅n^=a, so the flux of F=(x,y,z) is a⋅4πa2=4πa3. A field parallel to a face contributes nothing through that face.

Shortcut for closed surfaces. The divergence theorem ∮SF⋅n^ dS=∭V∇⋅F dV often replaces six face integrals of a cube by one volume integral; Stokes' theorem turns a circulation into a flux of the curl. These are covered with Gauss's, Green's and Stokes' theorems.

4. Volume integrals and coordinate systems

A volume integral ∭Vf dV gives volume (f=1), mass (f = density) or total charge. Choose coordinates that match the shape of V:

System Coordinates Volume element dV
Cartesian x,y,z dx dy dz
Cylindrical ρ,ϕ,z ρ dρ dϕ dz
Spherical r,θ,ϕ r2sin⁡θ dr dθ dϕ

In spherical coordinates θ is measured from the z-axis (0 to π) and ϕ around it (0 to 2π).

Checks worth doing.

  • Volume of a sphere: ∫02π∫0π∫0ar2sin⁡θ dr dθ dϕ=a33⋅2⋅2π=43πa3.
  • Volume of a cylinder: ∫0h∫02π∫0aρ dρ dϕ dz=πa2h.

Separable integrands over a box. If f=g(x)h(y)k(z) and the limits are constants, the triple integral is the product of three single integrals. Example: ∭xyz dV over [0,1]×[0,2]×[0,3] is 12×2×92=4.5.

Odd symmetry. The integral of x (or any function odd in x) over a region symmetric about x=0 is zero.

Formulas to remember

Scalar line integral
∫Cf ds=∫abf(r(t)) ∣r′(t)∣ dt
Vector line integral
∫CF⋅dr=∫abF(r(t))⋅r′(t) dt
Gradient fieldValid when ∇×F=0 on a simply connected region
∫AB∇ϕ⋅dr=ϕ(B)−ϕ(A)
Area from a line integral
A=12∮C(x dy−y dx)
Flux through a graph z = g(x, y)
∬SF⋅n^ dS=∬RF⋅(−gx,−gy,1) dx dy
Surface element of a graph
dS=1+gx2+gy2 dx dy
Cylindrical volume element
dV=ρ dρ dϕ dz
Spherical volume element
dV=r2sin⁡θ dr dθ dϕ

Common mistakes

  • Forgetting the Jacobian: ρ in cylindrical and r² sin θ in spherical coordinates.
  • Dropping |r′(t)| in a scalar line integral, or adding it to a vector line integral where it does not belong.
  • Ignoring direction: reversing the path changes the sign of ∫F·dr but not of ∫f ds.
  • Assuming every line integral is path independent; check that the curl is zero before using a potential.
  • Using an inward normal for a closed surface, which flips the sign of the flux.
  • Using the projected area dx dy as the surface area of a tilted surface instead of multiplying by √(1 + g_x² + g_y²).

Worked examples

Try each step yourself, then reveal the working.

Example 1: Work along a parabola

numerical

Evaluate ∫CF⋅dr for F=x2 i^+xy j^ along the parabola y=x2 from (0,0) to (1,1).

  1. Step 1: Is the field conservative?

    Try it on paper first.

Example 2: Using a potential

numerical

Find ∫CF⋅dr for F=(2xy+z) i^+x2 j^+x k^ along any path from (0,0,0) to (1,2,3).

  1. Step 1: Check the curl.

    Try it on paper first.

Example 3: Flux through a sphere

numerical

Find the outward flux of F=x i^+y j^+z k^ through the sphere x2+y2+z2=4.

  1. Step 1: Write the outward unit normal.

    Try it on paper first.

Example 4: Volume integral in cylindrical coordinates

numerical

Evaluate ∭V(x2+y2) dV over the cylinder x2+y2≤1, 0≤z≤2.

  1. Step 1: Choose coordinates.

    Try it on paper first.

Previous year questions

2 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 2 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 EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.