Definitions
Scalar Field
A scalar field ϕ(r) assigns a scalar (number) to each point in space.
Examples:
- Temperature in a room: T(x,y,z)
- Pressure in the atmosphere: P(x,y,z)
- Electric potential: V(r)
Vector Field
A vector field F(r) assigns a vector to each point in space.
Examples:
- Velocity of fluid flow: v(x,y,z)
- Electric field: E(r)
- Gravitational field: g(r)
The Gradient Operator
The del or nabla operator ∇ is:
∇=i^∂x∂+j^∂y∂+k^∂z∂
Gradient of a Scalar Field
∇ϕ=∂x∂ϕi^+∂y∂ϕj^+∂z∂ϕk^
The gradient is a vector field pointing in the direction of steepest increase of ϕ.
Properties of the Gradient
Direction
∇ϕ points in the direction of maximum rate of increase of ϕ.
Magnitude
∣∇ϕ∣=rate of steepest increase

Directional Derivative
The rate of change of ϕ in direction n^:
dndϕ=∇ϕ⋅n^
This is the component of ∇ϕ in direction n^.
Level Surfaces
A level surface of ϕ is the set of points where ϕ is constant:
ϕ(x,y,z)=c

Key theorem: ∇ϕ is perpendicular to the level surface.
Proof: If r(t) lies on the surface, then ϕ(r(t))=c. Differentiating:
∇ϕ⋅dtdr=0
The tangent dr/dt to the surface is perpendicular to ∇ϕ.
Visualising Fields
Scalar Fields
- Contour plots: Level curves (2D) or level surfaces (3D)
- Colour mapping: Assign colours to different values
- Example: Weather maps with isobars (pressure contours)

Vector Fields
- Arrow plots: Draw vectors at grid points
- Streamlines: Curves everywhere tangent to the field
- Example: Weather maps showing wind velocity

The Differential of a Scalar Field
For a small displacement dr=dxi^+dyj^+dzk^:
dϕ=∇ϕ⋅dr=∂x∂ϕdx+∂y∂ϕdy+∂z∂ϕdz
This is the total differential: the change in ϕ due to a small displacement.
Special Cases
Radial Fields
Distance from origin: r=x2+y2+z2
∇r=rr=r^
For any function f(r) of distance:
∇f(r)=f′(r)r^
Example: Gravitational potential ϕ=−rGM
∇ϕ=r2GMr^
The gravitational field (force per unit mass) is g=−∇ϕ.
Why Gradient Matters
- Force fields: F=−∇V (force from potential)
- Heat flow: q=−k∇T (heat flows down temperature gradient)
- Mass transport: J=−D∇C (diffusion down concentration gradient)
The gradient encodes “downhill” directions for flow and equilibration processes.