Gradient, divergence, and curl are the three vector calculus operators students mix up most. They answer three different questions, and the first thing to settle — before any formula — is which kind of field each one acts on. Gradient takes a scalar field such as temperature T(x,y,z)T(x,y,z); divergence and curl take a vector field such as velocity F(x,y,z)\mathbf{F}(x,y,z).

When to reach for which operator

  • Gradient: which way does a scalar field rise fastest? Output is a vector.
  • Divergence: is a vector field spreading out (source) or collapsing in (sink) here? Output is a scalar.
  • Curl: would a tiny paddle wheel in the field tend to spin? Output is a vector.

That input/output table prevents most errors: gradient and curl produce vectors, divergence produces a scalar.

The steps

  1. Identify the field type — scalar or vector — because that decides which operator even makes sense.
  2. Write the components clearly in Cartesian coordinates before differentiating.
  3. Apply the matching formula with partial derivatives:
f=(fx,fy,fz),F=Px+Qy+Rz,\nabla f = \left(\tfrac{\partial f}{\partial x}, \tfrac{\partial f}{\partial y}, \tfrac{\partial f}{\partial z}\right), \qquad \nabla \cdot F = \tfrac{\partial P}{\partial x} + \tfrac{\partial Q}{\partial y} + \tfrac{\partial R}{\partial z}, ×F=(RyQz, PzRx, QxPy),\nabla \times F = \left(\tfrac{\partial R}{\partial y} - \tfrac{\partial Q}{\partial z},\ \tfrac{\partial P}{\partial z} - \tfrac{\partial R}{\partial x},\ \tfrac{\partial Q}{\partial x} - \tfrac{\partial P}{\partial y}\right),

where F=(P,Q,R)F = (P,Q,R). (In cylindrical or spherical coordinates these formulas change.)

  1. Interpret the result as a direction of fastest increase, a net outflow, or a local spin.

Intuition: a hill, a fluid, and a paddle wheel

Three physical pictures keep the operators apart. For a scalar field, the gradient points uphill: its direction is the steepest direction of increase, and its magnitude tells you how steep that increase is. For a vector field, divergence asks whether more flow is leaving a tiny region than entering it — positive divergence means net outflow, negative means net inflow, and zero divergence means no net source or sink at that point, not that the field itself is zero. Curl asks whether a tiny paddle wheel dropped into the field would tend to spin; in 3D, curl is a vector, and its direction gives the axis of that local rotation by the right-hand rule. Anchoring each formula to its picture is what makes them memorable instead of three lookalike piles of partial derivatives.

Full example: all three, kept separate

Use one scalar field and one vector field:

T(x,y,z)=x2+y2+z,F(x,y,z)=(y,x,z).T(x,y,z) = x^2 + y^2 + z, \qquad \mathbf{F}(x,y,z) = (-y, x, z).

Gradient of TT: Tx=2x\tfrac{\partial T}{\partial x} = 2x, Ty=2y\tfrac{\partial T}{\partial y} = 2y, Tz=1\tfrac{\partial T}{\partial z} = 1, so T=(2x,2y,1)\nabla T = (2x, 2y, 1). At (1,2,0)(1,2,0) this is (2,4,1)(2,4,1) — the direction of fastest increase from that point.

Divergence of F\mathbf{F} with P=yP=-y, Q=xQ=x, R=zR=z:

F=0+0+1=1,\nabla \cdot \mathbf{F} = 0 + 0 + 1 = 1,

a scalar; positive, so net outflow at each point.

Curl of F\mathbf{F}:

×F=(00, 00, 1(1))=(0,0,2),\nabla \times \mathbf{F} = (0-0,\ 0-0,\ 1-(-1)) = (0,0,2),

local rotation about the zz-axis.

That is the whole point: T\nabla T a vector of fastest increase, F\nabla\cdot\mathbf{F} a scalar of outflow, ×F\nabla\times\mathbf{F} a vector of rotation.

Where you get stuck, and how to self-check

  • Wrong operator on wrong field. Gradient needs a scalar; divergence and curl need a vector. Check the input type first.
  • Reading divergence zero as "nothing happening." A nonzero field can still have zero net outflow at a point.
  • Treating curl as "does the line look curved." Curl measures local rotational tendency, not large-scale bending.
  • Drowning in symbols. Anchor each formula to its meaning — outflow, rotation — and they stick.

Practice it

Recompute for the slightly changed fields

T(x,y,z)=x2+y2z,F(x,y,z)=(y,x,2z),T(x,y,z) = x^2 + y^2 - z, \qquad \mathbf{F}(x,y,z) = (-y, x, 2z),

then compare what changed and what stayed the same, checking each answer against its meaning rather than only the algebra.

Gradient appears in optimization, heat flow, and electric potential, telling you which direction changes fastest. Divergence appears in fluid mechanics and electromagnetism whenever you care about sources, sinks, or conservation. Curl appears in fluid rotation and Maxwell's equations, where local circulation matters. Together they give three distinct ways to measure how a quantity changes through space, which is why they are foundational tools in vector calculus rather than three unrelated formulas to memorize.

Frequently Asked Questions

What is the difference between gradient, divergence, and curl?
Gradient takes a scalar field and gives a vector pointing toward fastest increase. Divergence takes a vector field and gives a scalar measuring net outflow. Curl takes a vector field and gives a vector measuring local rotational tendency.
Can you take the curl of a scalar field?
In standard introductory vector calculus, no. The gradient acts on scalar fields, while divergence and curl act on vector fields.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →