GLOBAL KNOWLEDGE ARK

Mathematics · Article

Vector fields, divergence and curl

Read a vector field as a value at every input, separate local expansion from rotation, and test potential claims with derivatives, domain geometry and explicit counterexamples.

Back to Mathematics

After reading, you can

  • Distinguish a field value, a trajectory, a derivative and a material acceleration.
  • Compute Cartesian divergence and curl with the correct output types, signs and units.
  • Derive local flux and circulation interpretations from opposite faces and sides of small regions.
  • Separate expansion, rotation and shear in a local linear field instead of judging them from arrows alone.
  • Construct a scalar potential where one exists and distinguish local curl conditions from global path independence.
  • Explain why missing points, singularities and topology matter in source and potential claims.
  • Prove the standard smooth gradient, divergence and curl identities by cancelling mixed partial derivatives.
  • Connect these operators to conservation of mass while stating the density, source and smoothness assumptions.
01

A vector field attaches a vector to each allowed input

A vector field F:U⊂Rⁿ→Rⁿ assigns a vector to every point of its domain U. In Cartesian three-dimensional space write F(x,y,z)=(P(x,y,z),Q(x,y,z),R(x,y,z)). A scalar temperature field has one value at each input; a velocity field has a speed and, when nonzero, a direction there. The domain is part of the definition, especially if a formula has a zero denominator or a physical boundary.

An arrow plot samples field values. Its arrows are attached at input points; the line segments used to draw them are not automatically particle paths. A trajectory r(t) of a steady velocity field v satisfies r′(t)=v(r(t)). The path follows the field as it moves, so a sequence of arrows at unrelated sample points is not itself a solved trajectory.

For v(x,y)=(−y,x), the point (1,0) has velocity (0,1). A particle starting there follows r(t)=(cos t,sin t), whose acceleration is r″(t)=−r(t). The velocity arrow points tangentially while the acceleration points inward. For a time-dependent smooth velocity v(x,t), the chain rule gives particle acceleration ∂v/∂t+(Dv)v along a trajectory; v itself is not acceleration.

Velocity is tangent while acceleration can point inwardFor v=(-y,x), the exact trajectory r(t)=(cos t,sin t) is the unit circle. Equal 80-pixel-per-input-unit xy axes are used. At t=0, r=(1,0), velocity=(0,1), and acceleration=(-1,0). Orange velocity and green acceleration arrows are attached at (1,0), each displayed at 80 pixels per corresponding dimensionless vector unit. Their physical units differ, so their equal displayed lengths do not equate velocity with acceleration. The blue circle is justified by r'=v(r), rather than by connecting sampled arrows.The path equation connects field values along motionr(0)=(1,0)r=(cos t,sin t)r′=(−sin t,cos t)r″=−rAt t=0:tangent velocity, inward aAn arrow segment is not a particle trajectory; the differential equation supplies it.
A field value is an instantaneous velocity. The steady material acceleration is (Dv)v, giving −r here; it is a different vector and a different physical quantity.

Preparation is vectors and dot/cross products 121, Jacobians 131, and multiple integrals 133. The coordinate examples below are dimensionless unless physical units are explicitly restored. Derivative formulas assume open domains and the stated regularity; a drawing cannot supply those hypotheses.

02

The Jacobian describes how neighbouring arrows differ

If F is differentiable at a, then F(a+h)=F(a)+DF(a)h+o(‖h‖). The constant vector F(a) translates a small group of particles together. The matrix DF(a) describes their first-order relative motion. Equal arrows can move material across a region while producing neither local expansion nor rotation.

Write A=DF(a). The decomposition A=S+W, where S=(A+Aᵀ)/2 and W=(A−Aᵀ)/2, separates a symmetric part from an antisymmetric part. In Euclidean Cartesian coordinates, h·Wh=0, so the antisymmetric part changes the direction of a separation without instantaneously changing its squared length. The symmetric part gives d‖h‖²/dt=2hᵀSh for the linear relative-motion equation h′=Ah.

The symmetric part still contains both average expansion and shape change. In n dimensions, S=(tr A/n)I+[S−(tr A/n)I]. The second bracket has trace zero; it can stretch one direction and compress another while preserving volume to first order. Zero divergence will therefore not mean that every distance or every shape stays unchanged.

For A=[[a,−ω,0],[ω,b,0],[0,0,c]], expansion is controlled by a+b+c, while the planar antisymmetric part rotates with angular speed ω. These are independent parameters. Only for this rigid rotation component is a single angular velocity sufficient to describe all local relative motion; a general field can also shear and strain.

Zero divergence does not preserve shape or suppress rotationThree panels start from the same centred unit square, using equal 55 pixels per coordinate unit. Grey outlines are initial squares. The strain flow (x,-y) at t=ln2 maps it by diag(2,1/2), retaining area 1 while changing lengths. Rigid rotation (-y,x) at t=π/4 rotates it 45 degrees and retains area 1. Shear (5y,0) at t=1/5 maps (x0,y0) to (x0+y0,y0), retaining area 1 while changing shape. These are exact flow maps at separately stated times, not finite Euler steps inferred from a derivative.Compare exact area-preserving flows, with different shapesStrain (x,−y)t=ln2Area scale 1curl z=0Rotation (−y,x)t=π/4Area scale 1curl z=2Shear (5y,0)t=1/5Area scale 1curl z=−5
The three divergences are zero. Their out-of-plane curls are 0,2 and −5. Symmetric strain and antisymmetric rotation supply independent local information.
03

Divergence adds the matching component derivatives

For a C¹ field F=(P,Q,R) on an open subset of R³, div F=Pₓ+Qᵧ+R_z. In two dimensions, div(P,Q)=Pₓ+Qᵧ. More generally, div F=tr DF. The result is a scalar function. The subscript names a coordinate derivative, not a component label to be chosen by visual similarity.

For F=(xy,yz,zx), the three matching derivatives are y,z,x, so div F=x+y+z. At (1,2,−1), divergence is 2. Differentiating all components with respect to x would instead give (y,0,z), a different object: one column of the Jacobian.

The notation ∇·F is a useful operator notation for this sum. It is not an ordinary dot product of two numerical vectors: ∇ contains differentiation operations. A gradient takes a scalar to a vector, divergence takes a vector field to a scalar, and those different input/output types prevent many invalid expressions.

If F is a velocity measured in metres per second and the spatial coordinates are in metres, div F has units s⁻¹. If F is mass flux density in kg m⁻² s⁻¹, its divergence has units kg m⁻³ s⁻¹. Changing the physical meaning of F changes the meaning and units of the result even though the coordinate formula is the same.

04

Opposite faces reveal local net outward flux

Consider a small Cartesian box centred at a, with side lengths Δx,Δy,Δz. Positive x-outward flow through the right face and negative x-outward flow through the left face give a net leading contribution [P(a+(Δx/2)eₓ)−P(a−(Δx/2)eₓ)] Δy Δz. For C¹ P this is Pₓ(a) Δx Δy Δz plus a remainder small compared with the volume, after accounting for variation over the faces.

The y and z face pairs similarly contribute Qᵧ(a) and R_z(a) times the volume. Thus the net outward flux divided by box volume tends to div F(a) as the box shrinks with a fixed shape. This is a local consequence of the first-order expansion and face integration. The later divergence theorem 136 gives the corresponding integral statement for finite regular volumes.

For v=(x,y,z), the right and left faces of [−h,h]³ each have outward normal velocity h. All six face contributions are 4h³, so net flux is 24h³. The volume is 8h³, giving flux per volume 3, exactly div v. The field vanishes at the centre while its divergence there is positive: the centre’s arrow alone does not determine expansion.

Opposite face pairs reveal net outward expansionA schematic parallel projection of [−h,h]^3 illustrates v=(x,y,z). The projection has unequal oblique axis directions and must not be used to measure areas or volume. At each face, outward normal velocity is h and face area is 4h², so each of six faces contributes 4h³. Opposite face-centre arrows both point outward. Summing gives 24h³, and dividing by the exact volume 8h³ gives 3 for every h>0. The field value at the centre is zero; it does not determine its divergence.Positive flux can occur on both opposite facesEach face: h×4h²Net flux: 24h³Box volume: 8h³Flux / volume = 3The cube sketch is schematic. Its exact formulas set the geometric weights.
The face calculation supplies an exact check for this linear field. General C¹ fields give the shrinking-box limit under fixed-shape scaling; a finite extended region can have nonuniform rates.

For a smooth velocity with a differentiable local flow Φₜ, let J(t,a)=det DₐΦₜ(a) be its positive local volume scale from an initial point a. The volume-element identity is ∂ₜJ=div v(Φₜ(a),t) J, hence ∂ₜ log J=div v along the flow. Indeed, the flow derivative M satisfies M′=(Dv)M, and the determinant derivative gives J′=J tr(M⁻¹(Dv)M)=J div v. A finite material region instead has relative volume-change rate equal to the spatial average of div v over that moving region; it reduces to a pointwise value when divergence is uniform there. The constant translation v=(1,2,3) has zero divergence despite carrying material through any fixed box.

05

Curl measures signed local circulation density

For a C¹ Cartesian field F=(P,Q,R), curl F=(Rᵧ−Q_z, P_z−Rₓ, Qₓ−Pᵧ). The result is a vector field in R³. Its component along a chosen oriented axis measures local circulation around a small loop in the corresponding perpendicular plane, divided by enclosed area. Reversing the axis reverses the positive loop orientation by the right-hand rule.

For a planar field F=(P(x,y),Q(x,y),0) with no z dependence, curl F=(0,0,Qₓ−Pᵧ). The scalar Qₓ−Pᵧ is the out-of-plane curl, positive for counterclockwise circulation viewed from the positive z-axis. Calling it a scalar uses this fixed embedding and orientation; it is not the full three-dimensional vector formula with terms omitted arbitrarily.

To see the sign, traverse a tiny xy rectangle counterclockwise: bottom rightward, right upward, top leftward, left downward. The horizontal pair contributes approximately −Pᵧ Δx Δy, and the vertical pair contributes Qₓ Δx Δy. Their sum divided by area tends to Qₓ−Pᵧ. This local calculation precedes the full Green and Stokes theorems 136.

Counterclockwise circulation fixes the planar curl signIn the xy plane viewed from positive z, the square [−1,1]^2 is traversed bottom rightward, right upward, top leftward, left downward. Equal 70-pixel-per-input-unit scales are used. For v=(-y,x), the average tangential component is 1 on every side, each side length is 2, and exact total work is 8. The area is 4, giving circulation per area 2, matching Qx-Py=1-(-1). The loop arrows encode traversal direction, not field magnitude. The corresponding rigid angular velocity is 1, half the curl.Read the loop from the chosen positive axisbottom: +xtop: −x+y−yv=(−y,x)Circulation 8; area 4curl z=2Rigid angular speed 1Counterclockwise is positive when viewed from +z. The loop encloses no hole.
For a general C¹ field the shrinking-loop ratio tends to Qₓ−Pᵧ. Curl is an oriented circulation density; reversing traversal reverses the work sign.

For F=(xy,yz,zx), curl F=(−y,−z,−x), so at (1,2,−1) it is (−2,1,−1). Use the displayed component formula or expand the operator mnemonic carefully. A determinant-like arrangement containing ∂/∂x, ∂/∂y and ∂/∂z is a memory aid, not a numerical determinant to which arbitrary determinant manipulations apply.

06

A rotating field can have zero divergence

For rigid planar rotation v=(−ωy,ωx,0), divergence is zero while curl is (0,0,2ω). On a circle of radius r traversed counterclockwise, v has tangential component ωr and length element r dθ. The circulation is 2πωr², so circulation divided by the disk area πr² is 2ω. The curl is twice the rigid angular velocity vector, not the angular velocity itself.

For v=(x,−y,0), both divergence and curl are zero. Yet neighbours separate along x and approach along y. The exact planar flow is (x(t),y(t))=(eᵗx₀,e⁻ᵗy₀), whose area scale is eᵗe⁻ᵗ=1. A square becomes a rectangle of the same area. This provides a concrete strain field with neither local area expansion nor rigid rotation.

For the shear v=(ky,0,0), divergence is again zero but curl is (0,0,−k). The lower side of a small horizontal pair moves differently from the upper side. The antisymmetric part has angular velocity −k/2, while the symmetric part also deforms the group. Curl therefore describes the rotational part of local motion rather than proving every particle follows a circle.

An equilibrium F(a)=0, zero divergence, zero curl and constancy are four different conditions. They can coincide in a special example but none should be inferred from a sparse arrow plot. The examples explicitly evaluate derivatives across the domain; the diagram samples only those proven formulas.

Contrasting local behaviours
Planar fieldDivergenceOut-of-plane curlMeaning
(1,2)00Translation; nonzero field without local strain or rotation
(x,y)20Uniform expansion
(−y,x)02Rigid counterclockwise rotation
(x,−y)00Area-preserving stretch and compression
(ky,0)0−kShear with strain and rotational parts
07

A scalar potential gives a field by differentiation

A field F is conservative on U when there is a differentiable scalar φ on U with F=∇φ. With a smooth potential, work along any piecewise C¹ path in U depends only on its endpoints: the chain rule gives dφ(r(t))/dt=∇φ(r(t))·r′(t). Lesson 135 develops that integral formula and its path hypotheses. Some physical conventions write force as −∇V; this changes which scalar is called the potential, not the definition F=∇φ used here.

Take φ(x,y,z)=x²y+y³+xz. Then ∇φ=(2xy+z,x²+3y²,x). Its divergence is 2y+6y+0=8y and its curl is zero. A conservative field can have nonzero divergence: being a gradient does not imply incompressibility or harmonicity.

Conversely, suppose this field is given and a potential is sought. Integrating P=2xy+z with respect to x gives φ=x²y+xz+g(y,z). Matching φᵧ=x²+3y² gives g=y³+h(z). Matching φ_z=x gives h′=0. Thus φ=x²y+y³+xz+C. The “constant” after a partial integration initially depends on all other coordinates.

The arbitrary additive constant changes no gradient. On a connected domain, any two differentiable potentials for the same field differ by a constant; on separate connected components, the constants can be chosen independently. To justify constancy on a connected open domain, integrate the zero gradient along piecewise smooth connecting paths, rather than presuming a straight segment stays inside every domain.

08

Zero curl needs a domain condition for a global potential

If φ is C², then curl(∇φ)=0 because the paired mixed partial derivatives agree. Thus a C¹ field admitting a C² scalar potential must be curl-free. On an open simply connected domain in R³, a C¹ curl-free field has a global potential. In the plane, the corresponding condition is Qₓ−Pᵧ=0 on an open simply connected domain. Simply connected means path connected and every closed loop can be continuously contracted within the domain.

A useful constructive sufficient setting is a star-shaped open domain U with centre a: every segment from a to x stays in U. If F is C¹ and has symmetric derivative entries ∂Fᵢ/∂xⱼ=∂Fⱼ/∂xᵢ, define φ(x)=∫₀¹ F(a+t(x−a))·(x−a) dt. Differentiating in xⱼ changes the integrand into d[t Fⱼ(a+t(x−a))]/dt by that symmetry. Integrating in t gives ∂φ/∂xⱼ=Fⱼ(x), proving the potential formula.

The proof uses the C¹ field and segments inside an open domain so differentiation under this finite parameter integral is valid locally. It supplies more than a numerical curl sample. In R³, symmetry of DF is equivalent to curl F=0; in the plane it is the single cross-partial equality.

Simply connected is a sufficient condition for every field satisfying the local curl condition, not a necessary condition for a particular field to have a potential. The constant field (1,0) has potential x even on the punctured plane. When a domain has a hole, the local derivative test alone is inconclusive; it does not automatically disprove a potential either.

09

A punctured-plane field separates local curl from global circulation

Let U=R²∖{(0,0)} and V(x,y)=(−y/(x²+y²),x/(x²+y²)). The field is smooth on U. Direct differentiation gives Pₓ=2xy/(x²+y²)² and Qᵧ=−2xy/(x²+y²)², so div V=0. Also Qₓ=(y²−x²)/(x²+y²)²=Pᵧ, so its planar curl is zero at every allowed point.

Around the counterclockwise unit circle r(t)=(cos t,sin t), 0≤t≤2π, the dot product V(r(t))·r′(t) is 1. Its circulation is therefore 2π. A global single-valued potential would make every closed-path work integral zero, so no such potential exists on all of U. The domain omits the very point needed to contract this loop.

Locally, a continuous choice of polar angle is a potential. On a plane cut along a ray from the origin, choose one smooth angle branch θ; then ∇θ=V there. Extending that angle around the hole changes it by 2π. Treating the multivalued angle as an ordinary globally defined scalar would erase the obstruction rather than solve it.

The circulation can be nonzero around a loop even though pointwise curl vanishes along the entire loop and everywhere else in U. Applying a finite-region curl theorem to the disk would fail because V is undefined at its centre. This is a failure of hypotheses, not a contradiction of mixed partial symmetry or of the later integral theorems.

A hole makes the local curl test inconclusive, not automatically falseTwo input-plane panels use equal 70 pixels per coordinate unit and omit the origin. Left is the vortex (−y/r²,x/r²), with tangent samples on its unit circle; right is the constant field (1,0) on the same punctured domain. Field arrows share 35 pixels per field unit in both panels and do not show arbitrary equal-length normalisation across varying radii. Both planar curls are zero everywhere on their domains. Vortex closed-circle work is 2π, ruling out a global single-valued potential. The constant field has potential x and closed-circle work 0 despite the same hole.The same domain can support different potential outcomesVortex: local ∇θNo global single-valued φClosed work 2πConstant field: ∇xGlobal φ=x existsClosed work 0
Domain topology can obstruct a global potential, but a hole does not forbid every particular potential. An angle branch is local or defined on a cut domain; it is not a global single-valued angle around the puncture.
10

Zero divergence away from a missing point is not a global source statement

The planar radial field S(x,y)=(x/(x²+y²),y/(x²+y²)) is smooth away from the origin. Its divergence is zero there: the matching derivatives are (y²−x²)/(x²+y²)² and (x²−y²)/(x²+y²)². Yet on any circle of radius r>0, its outward normal component is 1/r; multiplying by the arclength element r dθ gives outward flux 2π.

The origin is outside the domain, so pointwise div S=0 on U does not establish zero flux through a curve enclosing that excluded point. Conversely, on an annulus ε≤r≤R, outward flux through the outer circle is 2π while outward flux through its inner boundary is −2π. Both boundaries together give zero, consistently with the nonsingular annular region.

In three dimensions, the inverse-square radial field x/‖x‖³ is also divergence-free away from the origin but has flux 4π through an outward sphere. These are dimension-specific formulas: x/‖x‖² is the planar flux example, while x/‖x‖³ is the spatial one. The singularity cannot be repaired merely by assigning an arbitrary value at the missing point.

The inner outward normal points into the excluded diskAn annulus with inner radius 1/2 and outer radius 1 uses equal 85 pixels per input unit. For S=(x/r²,y/r²), green field arrows point radially outward on both boundaries. They use 20 pixels per field unit, so the inner values have twice the drawn length of the outer values. Orange normals are schematic unit-direction indicators: outward from the annular material points outward radially at the outer boundary and inward radially at the inner boundary. The normal fluxes are 2π and −2π respectively. Their sum is 0 on the nonsingular annulus.Outward means away from the annular materialS=(x/r²,y/r²)Outer flux 2πInner flux −2πTotal boundary flux 0Both boundaries belong to the annulus; the central disk does not.
Pointwise divergence vanishes off the origin. That does not imply zero flux for a circle enclosing the excluded singularity. The spatial inverse-square analogue has sphere flux 4π, with a different dimension-dependent formula.

A distributional account can represent a concentrated point source, but that is a broader notion of derivative than the ordinary C¹ formulas used here. State the ordinary domain and regularity first. The phrase “source-free” should identify whether it refers to pointwise divergence on a specified domain or to a global physical model including singular sources.

11

Smooth identities follow by cancellation

For a C² scalar φ, curl grad φ=0 follows component by component: the first entry is φ_zy−φ_yz, and the others cancel similarly. For a C² field A=(P,Q,R), div curl A=(R_yx−Q_zx)+(P_zy−R_xy)+(Q_xz−P_yz)=0. The sufficient C² assumptions make the relevant mixed derivatives equal. Writing the symbols without regularity does not prove the cancellation for a nonsmooth field.

The scalar Laplacian is Δφ=div grad φ=φₓₓ+φᵧᵧ+φ_zz. It need not vanish. For φ=x²y+y³+xz, Δφ=8y. A C² potential satisfying Δφ=0 is harmonic; its gradient is both curl-free and divergence-free on the same domain. The function (x²−y²)/2 is harmonic, giving the earlier planar strain field (x,−y).

Operator types separate a zero identity from a nonzero LaplacianA schematic operator diagram starts from the C² scalar potential φ=x²y+y³+xz, takes its vector gradient F=(2xy+z,x²+3y²,x), then branches to scalar div F=8y and vector curl F=(0,0,0). Arrows represent mathematical operations rather than motion or geometric vectors and carry no length scale. This distinguishes curl grad φ=0 from div grad φ=Δφ, which can be nonzero. At (1,2,−1), the potential is 9, the gradient is (3,13,1), and divergence is 16.Name the input and output type before computingScalar φx²y+y³+xzgradVector F=∇φ(2xy+z,x²+3y²,x)divcurlScalar Δφ=8yVector (0,0,0)C² mixed partials justify the zero curl; divergence has its own scalar value.
Mixed partial symmetry proves curl grad φ=0 under C² regularity. The Laplacian is a different scalar output; a gradient field need not have zero divergence.

A useful C² Cartesian vector identity is curl curl A=grad div A−ΔA, with Δ applied componentwise. For its first component, ∂y(Qₓ−Pᵧ)−∂z(P_z−Rₓ)=∂x(Qᵧ+R_z)−Pᵧᵧ−P_zz=∂x(div A)−ΔP. Mixed partial symmetry proves the equality; the other entries follow by the same calculation.

These identities constrain possible representations. A C² vector potential A with F=curl A forces div F=0. This implication alone does not prove that every divergence-free field has a global vector potential on every domain. Global existence depends on domain geometry and is not established by a few algebraic cancellations.

Operator types and sufficient smoothness
OperationInput and outputCartesian formula or condition
grad φScalar → vector(φₓ,φᵧ,φ_z); C¹ scalar sufficient
div FVector → scalarPₓ+Qᵧ+R_z; C¹ field sufficient
curl FVector → vector in R³(Rᵧ−Q_z,P_z−Rₓ,Qₓ−Pᵧ); C¹ field sufficient
ΔφScalar → scalardiv grad φ; C² scalar sufficient
curl grad φ=0Vector identityC² potential is a sufficient ordinary-derivative hypothesis
div curl A=0Scalar identityC² vector field is sufficient
12

Mass conservation concerns a flux density, not velocity alone

For a smooth mass density ρ(x,t) and velocity v(x,t), the mass flux density is j=ρv. With a volumetric mass source s, the local conservation equation is ∂ρ/∂t+div(ρv)=s. In the source-free case it says that a fixed region’s mass change is balanced by net outward mass flux. Its finite-volume derivation is completed with the divergence theorem 136; here it fixes the meaning and units of the fields.

The product rule gives div(ρv)=v·grad ρ+ρ div v. Thus, with s=0, the material density change is Dρ/Dt=∂ρ/∂t+v·grad ρ=−ρ div v. A positive density that stays constant along particles yields div v=0 in this smooth source-free setting. A time-independent density alone does not remove the v·grad ρ term.

For the dimensionless planar expansion v=(x,y), div v=2. The spatially uniform density ρ(t)=e⁻²ᵗ satisfies ∂ρ/∂t=−2ρ and div(ρv)=2ρ, so the source-free equation balances exactly. Particle areas expand by e²ᵗ while density falls by the reciprocal factor. A physical version restores a rate κ: v=κ(x,y), ρ=ρ₀e⁻²κᵗ, with κ measured in s⁻¹.

Expansion and density change can conserve the same material massTwo dimensionless planar material patches use equal 65 pixels per input unit. The initial unit square has density 1 and area 1. Under v=(x,y) at t=ln2, each side doubles, so its image area is 4 while uniform density falls to 1/4. Density times material area stays 1. For the uniform source-free solution, density time derivative is −2ρ and div(ρv)=2ρ, so their sum is 0. This planar rescaled example does not replace the separately stated three-dimensional physical units.Track the same material, its area and its densityt=ln2Initial patchExpanded patchArea 1; ρ=1Area 4; ρ=1/4Both masses: ρ×area=1. The source-free balance is ∂tρ+div(ρv)=0.
The velocity divergence controls instantaneous expansion, while conservation uses the mass flux ρv. A time-independent density alone would not remove a spatial advection term.

In three-dimensional units, ρ is kg m⁻³, v is m s⁻¹, ρv is kg m⁻² s⁻¹, and both ∂ρ/∂t and div(ρv) are kg m⁻³ s⁻¹. A rescaled numerical coordinate is not a metre unless its length scale has been supplied. Later curvilinear-coordinate formulas also need their metric/scale factors; the Cartesian expressions here should not be copied into polar components by renaming x as r.

13

Check the field, its derivatives and its domain together

Begin by naming U and the regularity available on it. Then state whether the input is a scalar or vector field and what output type is expected. Compute the necessary partial derivatives, compare units, and use an exact limiting or analytic argument for any identity claimed throughout the domain.

For a potential claim, check the local mixed-partial condition and then examine domain geometry or closed-loop work. For a source claim, distinguish divergence at ordinary points from flux around excluded singularities. For a flow claim, separate translation, symmetric strain and the antisymmetric rotation component. These checks prevent one appealing picture from being treated as several different theorems.

Finite-difference stencils and sampled arrows can reveal sign errors or illustrate local limits. They cannot prove smoothness, global zero curl, global potential existence or a singularity’s absence. Any plotted arrow normalisation must be labelled: equal displayed lengths can deliberately suppress actual speed variation.

The next lesson 135 turns curve and surface geometry into four distinct integrals: scalar arclength accumulation, oriented work, scalar surface accumulation and oriented flux. Lesson 136 then relates their finite-region values to divergence and curl under explicit boundary, orientation and smoothness hypotheses.

Predict expansion, rotation and strain separately

Choose a smooth polynomial field and an input. Compare its value with its derivatives before judging the arrow picture. A field can vanish at one point while its divergence is positive, or move and deform material while its divergence is zero.

A field plot samples values, not solved trajectoriesAt the fixed input z=-1, twenty-five xy input samples use equal 48 pixels per coordinate unit. Only the projected components (Fx,Fy) are drawn; Fz remains in the full exact table. Every arrow shares 5.142956348249516 pixels per field-component unit, giving the longest projected sample length 23 pixels. This common factor may change between presets, but vectors are not individually normalised. Zero projected vectors are dots. The marked selected point is (1,2); the full three-dimensional divergence and curl need the complete Jacobian.Read values on an xy slice; retain the full vector in the tablexyFixed z=-1div F=2Projected arrows: Fx,FyFull Fz=-1 at aOrange ring: selected inputOne factor for all arrows in this panel; no per-arrow length normalisation.
Arrow anchors are input points. The common display factor preserves relative projected magnitudes within this panel; a projection and a sampled grid cannot settle three-dimensional derivatives or particle paths.
Full Cartesian Jacobian DF(a)
Output rowInput xInput yInput z
x210
y0-12
z-101
Values and derivative outputs have different meanings
QuantityExact result
Input a(1, 2, -1)
Field value F(a)(2, -2, -1)
Equilibrium at this point?No
Scalar div F(a)2
Vector curl F(a)(-2, 1, -1)
Angular velocity of the skew part(-1, 1/2, -1/2)
Steady material acceleration (DF)F(2, 0, -3)
Curl identically zero on R³?No; a zero at one point would not suffice
Global scalar potential on R³?No; the polynomial curl is not identically zero
Compare symmetric strain, skew rotation and exact operator identities

Every selector matrix here uses a three-dimensional Cartesian embedding. Its mean expansion is tr(DF)/3; an intrinsic planar decomposition would divide by 2 instead. The relative separation h is fixed at (1,2,−1).

S=(DF+DFᵀ)/2
Output rowInput xInput yInput z
x21/2-1/2
y1/2-11
z-1/211
W=(DF−DFᵀ)/2
Output rowInput xInput yInput z
x01/21/2
y-1/201
z-1/2-10
Three-dimensional trace-free symmetric part S−(tr DF/3)I
Output rowInput xInput yInput z
x4/31/2-1/2
y1/2-5/31
z-1/211/3
Exact central-difference stencil, half-width 1/4
Output rowInput xInput yInput z
x210
y0-12
z-101
Exact relations for this polynomial corpus
QuantityExact result
Mean expansion tr DF/32/3
Skew action Wh(1/2, -3/2, -5/2)
(curl F/2)×h(1/2, -3/2, -5/2)
Pairing h·Wh0
Relative squared-length rate 2hᵀSh-4
div curl F0
curl curl F(1, 1, 1)
grad div F(1, 1, 1)
Componentwise ΔF(0, 0, 0)
Coefficient identity curl curl F=grad div F−ΔFExact polynomial identity
For A=(0,0,xy), curl A at a(1, -2, 0)
For that A, div curl A0

The displayed stencil agrees exactly for these supplied polynomials of degree at most 2. A numerical stencil alone would not prove smoothness, a global identity or a potential claim. Here the symbolic derivatives and mixed-partial cancellations supply the checks.

Verify a potential and compare exact closed-square work

This field has nonzero curl as a polynomial on R³, so it cannot be a smooth gradient throughout that domain. Testing only the selected point would be weaker.

Potential values and the oriented square calculation
QuantityExact result
Potential φ(a), where suppliedNo global potential for this field on R³
All gradient coefficients match F?Not applicable
Counterclockwise square area1/4
Exact side work, in CCW order7/8, -1, -9/8, 1
Total CCW square work-1/4
Work divided by area-1
Planar curl at the centre-1
Constructive radial formula for (2x,2y,2z): φ(a)6
Its gradient at a(2, 4, -2)

The four sides are integrated exactly from the supplied polynomials. Their finite centred-square ratio equals the central planar curl for these presets; the general C¹ theorem is a shrinking-loop limit. The separate radial-potential row uses the field (2x,2y,2z), not the current selector field.

Rigid rotation trajectory: position, velocity and acceleration at quarter turns
tPositionVelocityAcceleration
0(1, 0, 0)(0, 1, 0)(-1, 0, 0)
π/2(0, 1, 0)(-1, 0, 0)(0, -1, 0)
π(-1, 0, 0)(0, -1, 0)(1, 0, 0)
3π/2(0, -1, 0)(1, 0, 0)(0, 1, 0)

Check the six faces before reading the divergence

All six outward face contributions for the expansion field
Axis/signUnit outward normalNormal velocityFace areaFlux
x negative face(-1, 0, 0)1/211/2
x positive face(1, 0, 0)1/211/2
y negative face(0, -1, 0)1/211/2
y positive face(0, 1, 0)1/211/2
z negative face(0, 0, -1)1/211/2
z positive face(0, 0, 1)1/211/2
Exact total flux compared with volume
QuantityExact result
Net outward flux3
Box volume1
Flux per volume3
div v3
Field value at the centre(0, 0, 0)

Keep a missing point and a chosen normal in the problem

These two fields are smooth on R² except the origin. Reverse path traversal and predict which signed quantity changes. The outward normal used for the flux stays fixed.

Retain the excluded origin and the chosen orientationThe circle radius is 1, with equal 95 input pixels per unit. The origin is excluded. Four field arrows use a common 23 pixels per field unit; all samples here lie on the same radius. The path traversal is ccw. Only work changes sign when the traversal reverses; the stated outward normal stays outward. The selected field has zero ordinary divergence and planar curl on the punctured domain. Its full-circle work and outward flux are computed analytically in the table, not inferred from the drawing.A punctured domain retains its missing pointR=1Tangent vortexCCW traversalOutward normal fixedGreen arrows are field values; orange encodes path traversal direction.
A loop surrounding the missing point cannot be filled by a nonsingular disk within the domain. Keep tangential traversal separate from the outward normal used for flux.
Planar Jacobian at (R,0), within the punctured domain
Output rowInput xInput y
x0-1
y-10
Local derivatives, global circle values and annulus boundary conventions
QuantityExact result
Point (R,0)(1, 0)
Field value there(0, 1)
Ordinary divergence on the domain0
Ordinary planar curl on the domain0
Work on this oriented circle2π
Flux with outward normal0
Annulus outer-boundary outward flux0
Annulus inner-boundary outward flux0
Total annular boundary flux0
Annulus outer CCW work2π
Annulus inner CW work−2π
Different 3D field x/‖x‖³: outward sphere flux4π

The vortex has no global single-valued potential because its closed-circle work is nonzero. On the same punctured domain, the constant field (1,0)=grad x does have a global potential. A hole makes the local curl test inconclusive for a general field. For radial flux, the excluded point and both annulus boundaries must be retained; assigning one point a value cannot repair the singularity.

Balance density against material expansion

Dimensionless planar uniform-density solution, initially ρ₀=1
QuantityExact result
Rate κ1
Time relationκt=ln(2)
Flow stretch per coordinate2
Material area scale4
Positive uniform density1/4
div v=2κ2
∂tρ-1/2
div(ρv)1/2
Source-free sum0
Density × material area scale1

This exact family uses spatially uniform density, so its spatial advection term is zero. A steady but spatially varying density would still require v·grad ρ in the product rule. Restoring physical units gives κ inverse-time units, while density and mass-flux units follow the dimension of the physical model.

Worked examples

Read a trajectory rather than an isolated arrow

For v=(−y,x), check the unit-circle particle path and compare velocity with acceleration at t=0.

  1. Use r(t)=(cos t,sin t). Then r′=(−sin t,cos t)=v(r(t)), so it satisfies the trajectory equation.
  2. At t=0, r=(1,0), velocity is (0,1) and acceleration r″=(−1,0).
  3. The velocity is tangent and the acceleration inward. Neither is the radius arrow (1,0).

The path is a circle; the initial velocity is (0,1), while the initial acceleration is (−1,0).

Compute both operators from the same Jacobian

Find divergence and curl of F=(xy,yz,zx) at a=(1,2,−1).

  1. DF=[[y,x,0],[0,z,y],[z,0,x]]. Its trace is x+y+z.
  2. The curl is (Rᵧ−Q_z,P_z−Rₓ,Qₓ−Pᵧ)=(−y,−z,−x).
  3. At a the trace is 2 and the curl is (−2,1,−1).

div F(a)=2; curl F(a)=(−2,1,−1).

Recover divergence from exact box flux

For v=(x,y,z), compute outward flux per volume for [−h,h]³, h>0.

  1. On each face the outward normal component is h. Each face has area 4h².
  2. Six faces give total 24h³. The box volume is 8h³.
  3. The ratio is 3 for every h>0, agreeing with 1+1+1.

Flux per volume is 3, including in the shrinking-box limit.

Separate expansion and rotation parameters

For F=(2x−3y,3x−y,4z), identify divergence and curl.

  1. The Jacobian is [[2,−3,0],[3,−1,0],[0,0,4]].
  2. The trace is 2−1+4=5. The antisymmetric xy part has ω=3.
  3. The curl is (0,0,6), twice the rigid rotational component’s angular velocity.

div F=5 and curl F=(0,0,6); expansion and rotation coexist.

Zero divergence does not preserve every length

Solve x′=x, y′=−y and find the area scale of the resulting map.

  1. The solution is x=eᵗx₀, y=e⁻ᵗy₀.
  2. Its flow Jacobian is diag(eᵗ,e⁻ᵗ), with determinant 1.
  3. Lengths in the coordinate directions change by reciprocal factors while area stays unchanged.

The flow preserves area but generally changes shapes and lengths.

Recover a potential and retain its free functions

Find a potential for F=(2xy+z,x²+3y²,x) on R³.

  1. Integrate the first component in x: φ=x²y+xz+g(y,z).
  2. The second component requires gᵧ=3y², hence g=y³+h(z).
  3. The third requires h′(z)=0. Differentiate the result in all three coordinates to verify it.

φ=x²y+y³+xz+C. Its Laplacian and the field’s divergence are 8y.

A local test fails to settle the global question

Why does V=(−y/r²,x/r²), r²=x²+y², lack a global potential on the punctured plane?

  1. Differentiate on r>0: Qₓ=Pᵧ=(y²−x²)/r⁴, so the planar curl vanishes.
  2. On r(t)=(cos t,sin t), V(r(t))·r′(t)=1.
  3. The closed-circle work is 2π. A single-valued potential would give zero endpoint change.

The nonzero closed-loop work rules out a global potential despite zero pointwise curl.

A missing source survives a pointwise calculation

Compute outward flux of S=(x/r²,y/r²) through a circle of radius R>0 and compare the annulus boundaries.

  1. On the circle S=e_r/R and ds=R dθ, so S·n ds=dθ.
  2. The outer-circle flux is 2π. For the inner annular boundary, the outward normal of the annulus points inward radially.
  3. Its flux is −2π, making total annular boundary flux zero.

A circle enclosing the excluded origin has flux 2π; the two oriented annulus boundaries cancel.

Verify a vector-potential identity directly

For A=(0,0,xy), compute curl A and its divergence.

  1. curl A=(∂y(xy),−∂x(xy),0)=(x,−y,0).
  2. Its divergence is ∂x x+∂y(−y)=1−1=0.
  3. The result illustrates div curl A=0 and the earlier strain field, with smoothness available everywhere.

curl A=(x,−y,0) and div curl A=0.

Balance density against expansion

For v=κ(x,y), κ constant, find a spatially uniform positive density with zero mass source.

  1. The planar divergence is 2κ, so the continuity equation becomes ρ′+2κρ=0.
  2. With initial density ρ₀>0, solve ρ(t)=ρ₀e⁻²κᵗ.
  3. The planar flow area factor is e²κᵗ; density times that factor stays ρ₀.

ρ(t)=ρ₀e⁻²κᵗ conserves mass in the expanding material area.

Use the constructive potential formula

Apply the star-shaped radial formula at a=0 to F=(2x,2y,2z) on R³.

  1. Along tx, F(tx)·x=2t‖x‖².
  2. Integrate in t from 0 to 1: φ(x)=‖x‖².
  3. Its gradient is exactly (2x,2y,2z).

φ=x²+y²+z², up to an additive constant.

Try it yourself

  1. Is (−y/(x²+y²),x/(x²+y²)) a smooth field on all of R²?

    Show the answer and reasoning

    No; it is smooth on the punctured plane.

    The denominator vanishes at the origin; that point cannot be silently included in derivative or potential claims.

  2. Does the segment used to draw v(a) automatically give the particle trajectory through a?

    Show the answer and reasoning

    No.

    A trajectory solves r′=v(r,t); the field value supplies only its instantaneous velocity at that input and time.

  3. Find div(1,2,3) and curl(1,2,3).

    Show the answer and reasoning

    Both are zero.

    All spatial component derivatives vanish; the nonzero field still translates particles.

  4. Find div(x²,y²,z²).

    Show the answer and reasoning

    2x+2y+2z.

    Take the matching partial derivative of each component and add.

  5. Find the out-of-plane curl of (−2y,2x).

    Show the answer and reasoning

    4.

    Qₓ−Pᵧ=2−(−2)=4, positive for the stated counterclockwise orientation.

  6. For v=(5y,0,0), what is the curl and local rigid rotational angular velocity vector?

    Show the answer and reasoning

    curl v=(0,0,−5); the angular velocity of the antisymmetric part is (0,0,−5/2).

    Curl is twice that rigid rotational component; shear also contains symmetric strain.

  7. Does div v=0 force a square to keep its shape under a smooth flow?

    Show the answer and reasoning

    No.

    v=(x,−y) has zero divergence but turns squares into rectangles of the same area.

  8. At the origin, v=(x,y,z) is zero. What is its divergence there?

    Show the answer and reasoning

    3.

    Divergence measures neighbouring variation, not the magnitude of the single value v(0).

  9. Does F=grad φ imply div F=0?

    Show the answer and reasoning

    No.

    Its divergence is Δφ. For φ=x²+y²+z² the result is 6.

  10. After integrating P=2xy+z with respect to x, may the integration term depend on y and z?

    Show the answer and reasoning

    Yes: φ=x²y+xz+g(y,z).

    Partial differentiation in x eliminates every function independent of x; later components determine g.

  11. Does zero planar curl on the punctured plane guarantee a global scalar potential?

    Show the answer and reasoning

    No.

    The angle-gradient vortex has zero curl on its domain but closed-circle work 2π.

  12. Can a field on a domain with a hole still have a potential?

    Show the answer and reasoning

    Yes.

    F=(1,0)=grad x is conservative on the punctured plane; the topology condition is a sufficient general test, not a necessary condition for each particular field.

  13. What is the outward flux of (x/r²,y/r²) through a circle of radius 3?

    Show the answer and reasoning

    2π.

    Normal field magnitude 1/3 multiplied by circumference 6π gives 2π.

  14. Which radial direction is outward at the inner boundary of an annulus?

    Show the answer and reasoning

    Toward the excluded central disk.

    Outward means away from the annular material; it is the negative radial direction there.

  15. Give sufficient ordinary-derivative regularity for div curl A=0.

    Show the answer and reasoning

    A is C² on the open domain being considered.

    Continuous second derivatives guarantee equality of the paired mixed derivatives used in cancellation.

  16. For φ=x²y+y³+xz, compute Δφ at y=−1.

    Show the answer and reasoning

    −8.

    Δφ=2y+6y+0=8y.

  17. If density is kg m⁻³ and velocity m s⁻¹, what are the units of div(ρv)?

    Show the answer and reasoning

    kg m⁻³ s⁻¹.

    ρv is kg m⁻² s⁻¹; one spatial derivative adds a factor m⁻¹.

  18. For time-independent nonuniform ρ, may one replace div(ρv) by ρ div v without further conditions?

    Show the answer and reasoning

    No.

    The product rule also contains v·grad ρ, which need not vanish.

What to carry forward

  • A field assigns vectors at allowed points; a trajectory follows a differential equation through those points.
  • The local affine approximation separates common translation F(a) from the Jacobian’s symmetric strain and antisymmetric rotation. Divergence is tr DF.
  • Cartesian divergence is a scalar local flux density; Cartesian curl is an oriented vector local circulation density.
  • Zero divergence, zero curl, zero field value and rigid motion are different claims.
  • A smooth gradient has zero curl, while its divergence is the Laplacian and can be nonzero.
  • Curl-free fields have local potentials; global potentials require appropriate domain or path information.
  • Excluded singularities invalidate arguments that fill in the missing region. Pointwise zero divergence on a punctured domain does not eliminate singular flux.
  • Smooth vector identities are consequences of equal mixed partial derivatives, with explicit regularity and coordinate assumptions.
  • Mass conservation uses the flux density ρv and the full product rule; physical units and source assumptions matter.
  • Sampled arrows and finite differences illustrate formulas but do not certify global topology or smoothness.

References

Sources for the concepts and teaching approaches in this article.

  1. Calculus Volume 3OpenStaxOpen textbook · §§6.1 and 6.5Vector fields · §6.1Divergence and curl · §6.5openstax.org
  2. Basic Analysis II · Potentials and path independenceJiří LeblAuthor’s open analysis textbook · §9.3jirka.orgRead source
  3. Fluid Mechanics · Convective time derivativeRichard FitzpatrickAuthor’s university notes · material derivative and volume changefarside.ph.utexas.eduRead source
  4. Marine Hydrodynamics · Conservation and continuityMIT Marine HydrodynamicsUniversity lecture notes · 13.021, Lecture 3web.mit.eduRead source