For f(x,y,z)=x2yz3, ∇f=(2xyz3,x2z3,3x2yz2). At (1,2,1) this is (4,1,6).
Worked example: divergence and curl of a rotating field
For F=(y,−x,0): ∇⋅F=0+0+0=0, and ∇×F=(0−0,0−0,−1−1)=(0,0,−2). Nothing flows in or out, and the field rotates about the z-axis, which is what the zero divergence and the z-directed curl say.
Worked example: a field that both spreads and turns
For F=(xy,yz,zx), find ∇⋅F and ∇×F at (1,2,3).
∇⋅F=y+z+x=6 at (1,2,3)∇×F=(0−y,0−z,0−x)=(−y,−z,−x)=(−2,−3,−1) at (1,2,3)
Worked example: the curl of a gradient
Using ∇f=(2xyz3,x2z3,3x2yz2) from above, the first component of its curl is ∂y∂(3x2yz2)−∂z∂(x2z3)=3x2z2−3x2z2=0, and the other two vanish the same way. In general ∇×(∇f)=0 for any smooth f, a quick check on a computed gradient.
Common mistakes
Writing divergence as a vector. It's a scalar; curl is the vector.
Swapping the order inside a curl component. The first component is ∂F3/∂y−∂F2/∂z, not the reverse.
Evaluating before differentiating. Substitute the point only after taking the derivatives.
Taking the gradient of a vector field. Gradient acts on a scalar function.
Where this comes up in exams
Gradient, divergence and curl are listed under Vector Analysis in the GATE 2027 EC syllabus and under Calculus in the ME syllabus; the EE syllabus lists vector identities, directional derivatives and the divergence and Stokes theorems.