Skip to content
GATEiit

GATE EC, AE, ME, CE, EE + 11 more · Vector Calculus

Gradient, Directional Derivatives, Divergence and Curl

The del operator, gradient and surface normals, unit-vector directional derivatives, divergence (solenoidal fields), curl (irrotational/conservative fields), Laplacian, and vector identities.

Before you start

This topic comes before: Continuity, momentum and energy equations and their applications, Divergence, Electric field and potential due to point, line, plane and spherical charge distributions, Line, Surface and Volume Integrals, Green's, Gauss Divergence and Stokes' Theorems

Concept notes

1. Directional derivative formula and unit-vector rule

The directional derivative of a differentiable scalar field f(x,y,z) at P0 in the direction of a vector v measures the rate of change per unit arc length along v: Du^f(P0)=∇f(P0)⋅u^,u^=v∣v∣.

Critical rule: never dot ∇f directly with a non-unit vector v, always divide by ∣v∣ first. For coordinate unit axes i^,j^,k^, the directional derivative reduces back to fx,fy,fz.

Directional derivative D_û f = ∇f · û = |∇f| cos αα∇f (steepest ascent, ⊥ level curve)û (unit direction)f = cf = c + Δc
The gradient ∇f points normal to level contours f = c; along any unit direction û at angle α, Dû f = |∇f| cos α.

2. Normals to surfaces, tangent planes and aerodynamic bodies

Because ∇F(P0) is orthogonal to every tangent curve lying inside the level surface F(x,y,z)=c:

  • Unit normal vector to F(x,y,z)=c at P0: n^=±∇F(P0)∣∇F(P0)∣.
  • Tangent plane equation: ∇F(P0)⋅(x−x0,y−y0,z−z0)=0.
  • Angle θ between two intersecting surfaces F=c1 and G=c2: equals the angle between their normal gradients: cos⁡θ=∇F⋅∇G∣∇F∣∣∇G∣.

3. Divergence

For a vector field F⃗=F1i^+F2j^+F3k^ the divergence is the scalar

∇⋅F⃗=∂F1∂x+∂F2∂y+∂F3∂z

It measures the net outward flux per unit volume at a point:

  • ∇⋅F⃗>0: a source (more flows out than in).
  • ∇⋅F⃗<0: a sink.
  • ∇⋅F⃗=0 everywhere: the field is solenoidal (incompressible). Every solenoidal field is the curl of some vector field, F⃗=∇×A⃗.

In electromagnetics, ∇⋅D⃗=ρv (charges are sources) and ∇⋅B⃗=0 (the magnetic field is solenoidal).

Useful results with the position vector r⃗=xi^+yj^+zk^ and r=∣r⃗∣:

  • ∇⋅r⃗=3
  • ∇⋅(rnr⃗)=(n+3) rn, so r⃗/r3 (inverse-square field) is solenoidal for r≠0.
  • Product rule: ∇⋅(ϕF⃗)=ϕ (∇⋅F⃗)+F⃗⋅∇ϕ.

For a purely radial field in spherical coordinates, ∇⋅F⃗=1r2ddr(r2Fr).

Source: div F > 0, curl F = 0Rotation: div F = 0, curl F ≠ 0F = rF = (−y, x, 0)
Left: a field spreading out from a point has positive divergence. Right: a field circulating around a point has non-zero curl.

4. Curl

The curl of F⃗ is the vector

Expanded: (∂F3∂y−∂F2∂z)i^+(∂F1∂z−∂F3∂x)j^+(∂F2∂x−∂F1∂y)k^.

It measures rotation (circulation per unit area). Its direction is the axis of rotation by the right-hand rule. For the rigid rotation F⃗=ω⃗×r⃗, the curl is 2ω⃗; for example F⃗=−yi^+xj^ has curl 2k^.

A field with ∇×F⃗=0 everywhere (in a simply connected region) is irrotational, and then:

  • F⃗=∇ϕ for some scalar potential ϕ (the field is conservative);
  • the line integral ∫ABF⃗⋅dr⃗ depends only on the end points, and is zero round any closed path.

To find ϕ, integrate F1 with respect to x, then add only the new terms from F2 and F3.

Field type Test Consequence
Solenoidal ∇⋅F⃗=0 F⃗=∇×A⃗
Irrotational ∇×F⃗=0 F⃗=∇ϕ
Both both zero ∇2ϕ=0 (harmonic potential)

5. Identities and the Laplacian

For smooth fields f and F⃗, two identities are always zero:

  • ∇×(∇f)=0⃗: curl of a gradient vanishes (gradient fields are irrotational).
  • ∇⋅(∇×F⃗)=0: divergence of a curl vanishes (curl fields are solenoidal).

The Laplacian of a scalar is the divergence of its gradient:

∇2f=∇⋅∇f=∂2f∂x2+∂2f∂y2+∂2f∂z2

f is harmonic if ∇2f=0 (Laplace's equation, for example the potential in a charge-free region).

Other identities GATE uses:

  • ∇×(∇×F⃗)=∇(∇⋅F⃗)−∇2F⃗ (used to derive the wave equation).
  • ∇(fg)=f∇g+g∇f.
  • ∇×(ϕF⃗)=ϕ (∇×F⃗)+∇ϕ×F⃗.

With r⃗ and r=∣r⃗∣:

Expression Value
∇r r⃗/r
∇rn n rn−2 r⃗
∇×r⃗ 0⃗
∇2(1/r) 0 for r≠0

Remember which operations give scalars (div, Laplacian of a scalar) and which give vectors (grad, curl). An expression like ∇×f for a scalar f, or ∇⋅f, is meaningless.

Formulas to remember

Gradient
∇f=∂f∂xi^+∂f∂yj^+∂f∂zk^
Directional derivativeMaximum value is ∣∇f∣, along ∇f
Da^f=∇f⋅a⃗∣a⃗∣
Unit normal to f = c
n^=∇f∣∇f∣
Divergence
∇⋅F⃗=∂F1∂x+∂F2∂y+∂F3∂z
Curl
∇×F⃗=(∂F3∂y−∂F2∂z)i^+(∂F1∂z−∂F3∂x)j^+(∂F2∂x−∂F1∂y)k^
Laplacian
∇2f=∂2f∂x2+∂2f∂y2+∂2f∂z2
Null identities
∇×∇f=0⃗,∇⋅(∇×F⃗)=0
Curl of curl
∇×(∇×F⃗)=∇(∇⋅F⃗)−∇2F⃗
Radial power fields
∇rn=n rn−2 r⃗,∇⋅(rnr⃗)=(n+3) rn
Maximum rate of increaseIn the direction of +∇f
max⁡∣u^∣=1Du^f=∣∇f∣
Direction of zero change
Du^f=0  ⟺  ∇f⋅u^=0

Common mistakes

  • Not dividing the direction vector by its length before taking the dot product with the gradient.
  • Getting the sign of the middle (j) component of the curl wrong: it is ∂F1/∂z − ∂F3/∂x.
  • Treating divergence as a vector or gradient as a scalar; grad and curl give vectors, div and the Laplacian of a scalar give scalars.
  • Concluding a field is conservative from zero divergence; conservative means zero curl.
  • Forgetting to substitute the point after differentiating, or substituting before differentiating.
  • Dotting ∇f with the raw direction vector v instead of dividing by ∣v∣ first.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Directional derivative along a non-unit vector

numerical

Find the directional derivative of f(x,y,z)=x2yz3 at (1,1,1) in the direction of v=i^−2j^+2k^.

  1. Step 1: Compute ∇f at (1, 1, 1).

    Try it on paper first.

Example 2: Divergence and curl of a given field

numerical

For F⃗=xy i^+yz j^+zx k^, find ∇⋅F⃗ and ∇×F⃗ at (1,1,1).

  1. Step 1: Differentiate each component by its own variable and add.

    Try it on paper first.

Example 3: Making a field irrotational and finding its potential

numerical

Find a, b, c so that F⃗=(2x+3y+az)i^+(bx+y−2z)j^+(5x+cy+z)k^ is irrotational, and find a scalar potential ϕ with F⃗=∇ϕ.

  1. Step 1: Set the î component of the curl to zero.

    Try it on paper first.

Example 4: Which radial field is solenoidal?

conceptual

For which n is F⃗=rnr⃗ solenoidal (for r≠0)? Is it irrotational?

  1. Step 1: Use the product rule for divergence.

    Try it on paper first.

Previous year questions

3 official GATE Engineering Mathematics questions mapped to this topic across published papers, newest first.

Topic test

10 questions: up to 3 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, CE, EE + 11 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.