Electricity-And-Magnetism ยท Unit 2 ยท Video 3 ยท Interactive Practice

Vector Fields, Sources, Sinks and Divergence

IKey Formulas

FormulaNameMeaning
vโƒ—(x,y,z)=vxโ€‰ฤฑ^+vyโ€‰ศท^+vzโ€‰k^\vec v(x,y,z) = v_x\,\hat\imath + v_y\,\hat\jmath + v_z\,\hat kVelocity fieldOne vector per point; each component is a scalar field
โˆ‡=ฤฑ^โ€‰โˆ‚โˆ‚x+ศท^โ€‰โˆ‚โˆ‚y+k^โ€‰โˆ‚โˆ‚z\nabla = \hat\imath\,\dfrac{\partial}{\partial x} + \hat\jmath\,\dfrac{\partial}{\partial y} + \hat k\,\dfrac{\partial}{\partial z}Del operatorA vector of partial derivatives
โˆ‡โ‹…vโƒ—=โˆ‚vxโˆ‚x+โˆ‚vyโˆ‚y+โˆ‚vzโˆ‚z\nabla\cdot\vec v = \dfrac{\partial v_x}{\partial x} + \dfrac{\partial v_y}{\partial y} + \dfrac{\partial v_z}{\partial z}DivergenceNet outflow per unit volume (a scalar)
โˆ‡โ‹…vโƒ—>0\nabla\cdot\vec v > 0, ย โˆ‡โ‹…vโƒ—<0\ \nabla\cdot\vec v < 0, ย โˆ‡โ‹…vโƒ—=0\ \nabla\cdot\vec v = 0Source, sink, neitherIncompressible flow: fluid created, removed, or neither

Key Insight: Divergence is the flux out of a tiny closed surface divided by the volume it encloses. Outward arrows alone do not make a source: vโƒ—=(xโ€‰ฤฑ^+yโ€‰ศท^)/(x2+y2)\vec v = (x\,\hat\imath + y\,\hat\jmath)/(x^2 + y^2) has โˆ‡โ‹…vโƒ—=0\nabla\cdot\vec v = 0 at every point except the origin.

IIVisualization 1 โ€” Divergence as Net Outflow from a Tiny Box

In a plane flow (vz=0v_z = 0), the net outflow through a small box's faces per unit area equals โˆ‡โ‹…vโƒ—\nabla\cdot\vec v.

IIIVisualization 2 โ€” Outward Arrows Are Not Enough

Fluid created between two circles equals the difference of the flows across them; for speed 1/r1/r that difference is zero.

IVVisualization 3 โ€” A Source in a Steady Downward Flow

A source of strength QQ in a downward stream of speed UU fills a rounded cap with its own fluid.

๐Ÿ’ก QQ is the area of fluid the source creates per second, so far downstream that fluid, moving at speed UU, fills a band of width Q/UQ/U.

VQuiz Questions

Problem 1 ยท Compute a Divergence

Given: vโƒ—=3xโ€‰ฤฑ^โˆ’yโ€‰ศท^+2zโ€‰k^\vec v = 3x\,\hat\imath - y\,\hat\jmath + 2z\,\hat k โ€” find โˆ‡โ‹…vโƒ—\nabla\cdot\vec v.

โœ… Correct! 3+(โˆ’1)+2=43 + (-1) + 2 = 4, the same at every point, so every point is a source.
โŒ Close, butโ€ฆ keep the sign: โˆ‚vy/โˆ‚y=โˆ‚(โˆ’y)/โˆ‚y=โˆ’1\partial v_y/\partial y = \partial(-y)/\partial y = -1, not +1+1.
โŒ Not quite. The divergence is a scalar: the three partial derivatives are added, not listed as a vector.
โŒ Not quite. Differentiate each component with respect to its own variable: โˆ‚vx/โˆ‚x\partial v_x/\partial x, โˆ‚vy/โˆ‚y\partial v_y/\partial y, โˆ‚vz/โˆ‚z\partial v_z/\partial z.
Show solution

With vx=3xv_x = 3x, vy=โˆ’yv_y = -y, vz=2zv_z = 2z:

โˆ‡โ‹…vโƒ—=โˆ‚(3x)โˆ‚x+โˆ‚(โˆ’y)โˆ‚y+โˆ‚(2z)โˆ‚z=3โˆ’1+2=4\nabla\cdot\vec v = \frac{\partial (3x)}{\partial x} + \frac{\partial (-y)}{\partial y} + \frac{\partial (2z)}{\partial z} = 3 - 1 + 2 = 4

The divergence is the scalar 44 everywhere: fluid is created at every point at the same rate per unit volume.

Problem 2 ยท Outward in the Plane, but a Source?

Given: vโƒ—=2xโ€‰ฤฑ^+2yโ€‰ศท^โˆ’4zโ€‰k^\vec v = 2x\,\hat\imath + 2y\,\hat\jmath - 4z\,\hat k. In the plane z=0z = 0 every arrow points straight away from the zz-axis. Classify the point (1,1,0)(1, 1, 0).

โœ… Correct! The outflow in xx and yy is exactly fed by the inflow along zz: 2+2โˆ’4=02 + 2 - 4 = 0.
โŒ Close, butโ€ฆ 2+2=42 + 2 = 4 counts only the faces perpendicular to xx and yy. Fluid also flows in along zz: โˆ‚vz/โˆ‚z=โˆ’4\partial v_z/\partial z = -4.
โŒ Not quite. โˆ’4-4 is only the zz-term. The xx- and yy-terms add 2+22 + 2.
โŒ Not quite. Adding magnitudes ignores the sign of โˆ‚vz/โˆ‚z=โˆ’4\partial v_z/\partial z = -4: inflow along zz cancels outflow.
Show solution
โˆ‡โ‹…vโƒ—=โˆ‚(2x)โˆ‚x+โˆ‚(2y)โˆ‚y+โˆ‚(โˆ’4z)โˆ‚z=2+2โˆ’4=0\nabla\cdot\vec v = \frac{\partial (2x)}{\partial x} + \frac{\partial (2y)}{\partial y} + \frac{\partial (-4z)}{\partial z} = 2 + 2 - 4 = 0

The divergence is zero everywhere, including at (1,1,0)(1, 1, 0), so the point is neither a source nor a sink. Fluid pours in along the zz-direction at exactly the rate it spreads out in xx and yy; the direction of the arrows in one plane cannot tell you this.

Problem 3 ยท Divergence at a Point

Given: vโƒ—=x2yโ€‰ฤฑ^+yz2โ€‰ศท^+xzโ€‰k^\vec v = x^2 y\,\hat\imath + y z^2\,\hat\jmath + x z\,\hat k โ€” find โˆ‡โ‹…vโƒ—\nabla\cdot\vec v at (1,โˆ’2,3)(1, -2, 3) and classify the point.

What is โˆ‡โ‹…vโƒ—\nabla\cdot\vec v at (1,โˆ’2,3)(1, -2, 3)?

What is the point (1,โˆ’2,3)(1, -2, 3)?

โœ… Correct! โˆ‡โ‹…vโƒ—=2xy+z2+x=โˆ’4+9+1=6>0\nabla\cdot\vec v = 2xy + z^2 + x = -4 + 9 + 1 = 6 > 0: a source.
โŒ Close, butโ€ฆ โˆ‚(x2y)/โˆ‚x=2xy\partial(x^2 y)/\partial x = 2xy, not xyxy: the factor 22 was dropped.
โŒ Not quite. That sums โˆ‚vx/โˆ‚y+โˆ‚vy/โˆ‚z+โˆ‚vz/โˆ‚x\partial v_x/\partial y + \partial v_y/\partial z + \partial v_z/\partial x. The divergence pairs each component with its own variable.
โŒ Not quite. 2xy=2(1)(โˆ’2)=โˆ’42xy = 2(1)(-2) = -4 is negative; keep its sign.
โŒ Check the divergence. Differentiate x2yx^2y in xx, yz2yz^2 in yy, xzxz in zz, then substitute.
โŒ Check the classification. The sign of โˆ‡โ‹…vโƒ—\nabla\cdot\vec v decides it: positive means fluid is created there.
Show solution

Step 1: the three partial derivatives

โˆ‚(x2y)โˆ‚x=2xy,โˆ‚(yz2)โˆ‚y=z2,โˆ‚(xz)โˆ‚z=x\frac{\partial (x^2 y)}{\partial x} = 2xy,\qquad \frac{\partial (y z^2)}{\partial y} = z^2,\qquad \frac{\partial (x z)}{\partial z} = x

Step 2: add and substitute (x,y,z)=(1,โˆ’2,3)(x, y, z) = (1, -2, 3):

โˆ‡โ‹…vโƒ—=2xy+z2+x=2(1)(โˆ’2)+32+1=โˆ’4+9+1=6\nabla\cdot\vec v = 2xy + z^2 + x = 2(1)(-2) + 3^2 + 1 = -4 + 9 + 1 = 6

Step 3: classify. 6>06 > 0, so (1,โˆ’2,3)(1, -2, 3) is a source.

Problem 4 ยท A Point Source in Three Dimensions

Given: a flow spreads from the origin in all three dimensions, vโƒ—=cโ€‰rnโ€‰r^\vec v = c\,r^n\,\hat r with c>0c > 0, where rr is the distance from the origin. Find the power nn for which โˆ‡โ‹…vโƒ—=0\nabla\cdot\vec v = 0 at every point except the origin.

โœ… Correct! Speed โˆ1/r2\propto 1/r^2 against sphere area 4ฯ€r24\pi r^2: the same flux crosses every sphere.
โŒ Close, butโ€ฆ 1/r1/r is the answer in a plane, where a circle's length grows as rr. A sphere's area grows as r2r^2.
โŒ Not quite. At constant speed the flux 4ฯ€r2c4\pi r^2 c grows with rr, so fluid is created everywhere: โˆ‡โ‹…vโƒ—=2c/r\nabla\cdot\vec v = 2c/r.
โŒ Not quite. Then the flux 4ฯ€c/r4\pi c/r shrinks with rr: fluid is removed everywhere, โˆ‡โ‹…vโƒ—=โˆ’c/r4\nabla\cdot\vec v = -c/r^4.
Show solution

The flux out through a sphere of radius rr is speed times area:

ฮฆ(r)=cโ€‰rnโ‹…4ฯ€r2=4ฯ€cโ€‰rn+2\Phi(r) = c\,r^n \cdot 4\pi r^2 = 4\pi c\, r^{n+2}

No fluid is created between two spheres exactly when ฮฆ\Phi is the same for every rr, so n+2=0n + 2 = 0, giving n=โˆ’2n = -2. In components, vโƒ—=cโ€‰(x,y,z)/r3\vec v = c\,(x, y, z)/r^3, and

โˆ‡โ‹…vโƒ—=c(3r3โˆ’3(x2+y2+z2)r5)=0(rโ‰ 0).\nabla\cdot\vec v = c\left(\frac{3}{r^3} - \frac{3(x^2 + y^2 + z^2)}{r^5}\right) = 0 \quad (r \ne 0).

All the fluid is created at the origin, which is the only source.

Solved: 0 / 4