Module 1 · 10 min read · Free chapter
Vector calculus: gradient, divergence, curl and the integral theorems
Vector calculus describes fields such as temperature, fluid velocity and electric fields. The gradient points to the steepest rise, divergence measures outflow from a point, and curl measures rotation. Gauss's theorem links a volume integral of divergence to flux through the surface, and Stokes's theorem links curl to circulation.
Start from zero: arrows that fill space
On a weather map, every city has a temperature, a single number. That is a scalar field. The same map also shows the wind, which at each city has both a speed and a direction. That is a vector field, and it is drawn as an arrow at every point.
Engineering is full of both kinds. Temperature, pressure and electric potential are scalar fields, while water velocity, heat flow, electric field and magnetic field are vector fields. Vector calculus asks how these fields change from place to place. It also connects what happens inside a region with what crosses its boundary.
Two products of vectors are needed first. The dot product is a plain number, and it is zero when the vectors are perpendicular. Work done by a force, , is a dot product.
The cross product has size and points at right angles to both, found with the right-hand rule. It is zero for parallel vectors, and . Torque, , is a cross product.
Why it matters. GATE ME, EE, EC and CE all list this topic. Fluid flow, heat conduction and Maxwell's equations of electromagnetism are written in this language.
Gradient and the directional derivative
Stand on a hillside and ask which way is steepest uphill. The answer is the gradient of the height. For a scalar field , it is the vector , where (del) is the operator .
The gradient has three properties worth remembering. It points in the direction of fastest increase, and its size is that greatest rate of increase. It is also perpendicular (normal) to the level surface through the point. So the unit normal to a surface is .
The rate of change in any other direction is the directional derivative, , where is a unit vector. It is largest along , zero along the level surface, and most negative straight downhill.
Worked example. For at , . In the direction , the directional derivative is . The greatest rate of increase is .
Why it matters. Heat flows along , from hot to cold, and the electric field is . In both cases, the gradient of a scalar gives the push that drives the flow.
Divergence and curl: spreading and spinning
Put a tiny imaginary balloon in a flowing fluid. If more fluid leaves it than enters, there is a source inside. The divergence measures this net outflow per unit volume: , which is a scalar. A field with everywhere is called solenoidal. An incompressible fluid's velocity and every magnetic field are solenoidal.
Now drop a tiny paddle wheel into the flow. If it spins, the flow has local rotation, and the curl measures it. The curl is a vector found as a determinant with rows , and , and it points along the paddle's axis. A field with is irrotational, and it can always be written as the gradient of a scalar potential, .
A flow can have straight streamlines and still have curl. In a river that is fast at the top and slow near the bed, a paddle wheel spins because its top is pushed harder than its bottom.
Identities that GATE likes.
- for any , so a gradient field never spins.
- for any , so a curl field has no sources.
- , the Laplacian.
- .
Worked example. For , . At this is , so there is a net outflow there.
Why it matters. Continuity in fluid mechanics is for incompressible flow. Laplace's equation governs steady heat conduction, seepage under dams and electrostatic potential.
Line integrals and conservative fields
Push a trolley along a winding corridor. The work done is the sum of over each small step, and that sum is the line integral along the path. To evaluate it, write the path in terms of one parameter , so that , and , and hence , depend on . Then integrate in from start to finish.
Some fields are special. If is the gradient of a potential, , the line integral depends only on where you start and end: = . Such a field is conservative. Gravity and the electrostatic field are examples, which is why lifting a load costs the same energy whichever staircase you use.
There are three equal tests for a conservative field. for some , in a simply connected region, and = 0 round every closed path. Friction is the classic non-conservative force, because walking round a loop and back still costs work.
Worked example. Take from to . Here has -component , so is conservative with . The work is , whatever the path.
Gauss, Stokes and Green: inside equals boundary
All three theorems share one idea. Whatever happens inside a region can be counted on its boundary, because inside contributions cancel in pairs.
Gauss divergence theorem. The outward flux through a closed surface equals the total divergence inside: . Think of a room full of tiny heaters; the heat leaving through the walls equals the sum of what every heater produces. In electromagnetism this becomes Gauss's law for charge.
Stokes' theorem. The circulation round a closed curve equals the total curl on any surface bounded by it: . Imagine the surface covered with tiny loops; neighbouring loops cancel along shared edges, so only the outer edge remains. In electromagnetism this gives Ampère's and Faraday's laws in integral form.
Green's theorem is Stokes' theorem flattened onto the xy-plane: , with the curve traced anticlockwise. Choosing and gives the area enclosed as . Planimeters, which measure areas on maps, work on this principle.
Worked example. For , = 3. So the outward flux through a sphere of radius is , with no surface integral needed.
Descriptive lens: how ESE and state papers ask this
Descriptive questions usually ask you to verify a theorem by working both sides, to show that a field is irrotational and find its potential, or to find a unit normal and a directional derivative together.
Our practice questions (not previous-year questions).
- Show that is irrotational, find its scalar potential, and find the work done from to .
- Verify Green's theorem for round the unit circle.
- Using the divergence theorem, find the outward flux of through the sphere .
Answer plan for question 1.
- First, compute and show that each component is zero.
- Next, find by integrating in , then fixing the missing terms with the and components, to get .
- Finally, the work is , which is independent of the path because the field is conservative.
Quick revision
- is a scalar; has size and is a vector perpendicular to both.
- points uphill fastest and is normal to ; the directional derivative is .
- is the net outflow (a scalar), and means solenoidal.
- is the local spin (a vector), and means irrotational, so .
- and always hold, and .
- A conservative field's line integral depends only on the end points.
- Gauss turns closed-surface flux into the volume integral of the divergence.
- Stokes turns circulation into the surface integral of the curl, and Green is its plane form.
- Area by Green's theorem is , and .