4.4.24 · D4Multivariable Calculus

Exercises — Divergence — definition, physical meaning (flux density)

2,033 words9 min readBack to topic

Throughout, remember the one formula we compute with:

Here means the vector field whose three components are , each a function of position . The symbol means "how fast changes as we step in the -direction, holding fixed" — a partial derivative. We only ever add the three matching (diagonal) terms.

Figure — Divergence — definition, physical meaning (flux density)

The picture above is your visual dictionary for the whole page: red arrows spraying outward = positive divergence (a source/tap), blue arrows sucking inward = negative divergence (a sink/drain), and yellow arrows going in a circle = zero divergence (pure swirl, nothing created).


Level 1 — Recognition

L1.1

State whether is a scalar or a vector, and why.

Recall Solution

A scalar (one number at each point). The dot in multiplies matching components and adds them: . Adding numbers gives a number, not an arrow.

L1.2

Compute for the radial field .

Recall Solution

Each component depends only on its own variable, so each derivative is . Positive and constant → uniform outward spreading everywhere (an expanding gas).

L1.3

Compute for .

Recall Solution

Negative everywhere → arrows point inward → a sink (a drain).

L1.4

Compute for the constant field .

Recall Solution

All three components are constant, so every partial derivative is : Big arrows, but nothing changes across the box: whatever enters the left leaves the right. Size spreading.


Level 2 — Application

L2.1

Compute for .

Recall Solution

Take each diagonal partial (treat the other two variables as constants):

  • (the rides along as a constant),
  • ,
  • .

L2.2

Compute for , then evaluate at the origin .

Recall Solution
  • ,
  • ,
  • (chain rule: derivative of the inside is , over the inside). At :

L2.3

For (the swirl about the -axis), compute and say in words what this proves about circulation vs spreading.

Recall Solution

contains no , so its -derivative is ; contains no , so its -derivative is . The field is a pure rotation: fluid circles the axis but is neither created nor destroyed. (Its curl, not its divergence, is nonzero — see Curl — rotation density.)


Level 3 — Analysis

L3.1

The field has . Verify the geometric definition directly by computing the outward flux through the box centred at the origin, dividing by its volume, and taking .

Recall Solution

Only is nonzero, so only the two faces perpendicular to carry flux.

  • Right face : outward normal , so flux .
  • Left face : outward normal , so ; flux . The top/bottom/front/back faces have normal , and , so they contribute . Divide by volume : flux density for every , so the limit is . This matches . ✓ (Because is symmetric, equal outflow leaves both -faces — no net source at the origin.)

L3.2

Show that for any two smooth vector fields, (divergence is linear). Then use it to find without recomputing from scratch.

Recall Solution

Each partial derivative is itself linear: . Sum the three diagonal terms and regroup: Now with (div from L1.2) and (div from L2.3): The swirl adds rotation but no spreading, so the total spreading rate is unchanged.

L3.3

Compute for the inverse-square field at any point away from the origin. (This is the electric field of a point charge.)

Recall Solution

Write , so . We need . First, (from , differentiate: ). Product + chain rule: By symmetry the - and -terms give and . Add: Meaning: away from the charge the field spreads out geometrically, but its magnitude drops exactly fast enough () that outflow inflow across any tiny box — zero divergence. All the "source" is concentrated at the origin, where the formula blows up (a job for the Divergence Theorem (Gauss)).


Level 4 — Synthesis

L4.1

Find a scalar function whose gradient field has constant divergence everywhere. (The quantity is the Laplacian.)

Recall Solution

We want . Try :

  • , and likewise , . So works. Its gradient is , whose divergence is — matching. (Any also works.)

L4.2

Build a vector field on the plane with everywhere but that is not the zero field and not a pure rotation. (Hint: make outflow in exactly cancel inflow in .)

Recall Solution

We need . Choose so ; then we need , e.g. . Thus Check: . This is a saddle/stretch flow — it stretches along and squeezes along , so the fluid is stretched into an ellipse but its area (volume) is preserved. It is not zero and not the circular swirl ; incompressible yet non-trivial. This "area-preserving stretch" is exactly the kind of flow that keeps the Continuity equation satisfied for an incompressible fluid.

L4.3

For (a field pointing only along , of size ), find every making equal to the constant . Interpret.

Recall Solution

Here , , so . Setting and integrating: So . The slope of the speed profile is the divergence: a linearly speeding-up flow () creates fluid at a constant rate; the additive constant is a uniform drift that contributes nothing (as in L1.4).


Level 5 — Mastery

L5.1

Prove the product rule , where is a scalar field. Then apply it to and .

Recall Solution

Proof. The -th diagonal term is . By the ordinary product rule for one derivative: Sum over : Application. With , , , and : Direct check: , and ; summing the three gives . ✓

L5.2

A gas has density and velocity . The Continuity equation says . Suppose (constant) and . Is mass conserved (is the flow consistent with constant density)? Show your reasoning.

Recall Solution

Constant density means , so the equation demands . Since is constant, . Compute So . ✓ Yes — the flow is divergence-free (incompressible), so constant density is perfectly consistent: mass is conserved. The stretch-and-squeeze motion preserves volume, so density never changes.

L5.3

Using the Divergence Theorem (Gauss) , compute the outward flux of through the sphere of radius without doing any surface integral.

Recall Solution

The theorem lets us swap a hard surface integral for an easy volume integral of the divergence. Here (L1.2), a constant, so Sanity check by direct surface reasoning: on the sphere , so , constant; times the sphere's area gives . ✓ Both routes agree — the divergence is the flux density, integrated up.


Connections