5. Vector Calculus

Divergence Theorem

Relates flux through closed surfaces to triple integrals of divergence over a volume.

The Divergence Theorem

Welcome, students! 🌟 In this lesson, we’re diving into an essential tool in multivariable calculus: the Divergence Theorem. By the end of this lesson, you’ll understand how to relate the flux of a vector field through a closed surface to the volume integral of its divergence. This powerful theorem connects surface integrals and volume integrals, helping us solve complex physics and engineering problems with ease. Ready to unlock the magic of vector fields? Let’s go!

What is the Divergence Theorem?

Before we jump into the formal statement, let’s get a feel for what the Divergence Theorem is all about. Imagine you have a balloon and you’re measuring how much air is flowing out of it through the surface. The Divergence Theorem tells us that instead of adding up all the little bits of air flow through the balloon’s surface, we can measure something inside the balloon—specifically, the divergence of the vector field inside—and integrate it over the volume. In simple terms, it connects what’s happening inside a region to what’s happening on the boundary.

The Formal Statement

The Divergence Theorem (also known as Gauss’s Theorem) states:

If $\mathbf{F}$ is a continuously differentiable vector field defined on a region $V$ in $\mathbb{R}^3$, and if $S$ is the closed surface that bounds $V$, then:

$$

$\iint_{S}$ $\mathbf{F}$ $\cdot$ $\mathbf{n}$ \, dS = $\iiint_{V}$ $\nabla$ $\cdot$ $\mathbf{F}$ \, dV

$$

Where:

  • $\mathbf{F} = \langle F_1, F_2, F_3 \rangle$ is the vector field.
  • $S$ is the closed surface bounding the volume $V$.
  • $\mathbf{n}$ is the outward-pointing unit normal vector on the surface $S$.
  • $\nabla \cdot \mathbf{F}$ is the divergence of $\mathbf{F}$.
  • $dS$ is the surface element, and $dV$ is the volume element.

In short, the Divergence Theorem tells us that the total “outflow” of the vector field through the surface is equal to the total “source strength” inside the volume.

Understanding Divergence

What is Divergence?

Divergence is a measure of how much a vector field spreads out from a point. It’s like asking, “Is this point a source or a sink of the field?” If the divergence is positive, the point acts like a source, with the field radiating outward. If it’s negative, it’s like a sink, with the field converging inward.

Mathematically, the divergence of a vector field $\mathbf{F} = \langle F_1, F_2, F_3 \rangle$ is defined as:

$$

$\nabla$ $\cdot$ $\mathbf{F}$ = \frac{\partial F_1}{\partial x} + \frac{\partial F_2}{\partial y} + \frac{\partial F_3}{\partial z}

$$

This is the sum of the partial derivatives of the vector field components with respect to their corresponding variables.

Real-World Example: Fluid Flow

Imagine a fluid flowing through a pipe. The vector field $\mathbf{F}$ could represent the velocity of the fluid at each point in space. The divergence at any point tells us whether the fluid is compressing or expanding at that point. If $\nabla \cdot \mathbf{F} > 0$, fluid is being created (like a source or a faucet). If $\nabla \cdot \mathbf{F} < 0$, fluid is being consumed (like a sink or a drain).

Fun Fact: Heat and Electricity

Divergence isn’t just about fluids. It also applies to heat flow, electric fields, and magnetic fields. For example, in electromagnetism, the divergence of the electric field relates to the charge density (Gauss’s Law). So the Divergence Theorem is a fundamental concept that pops up in physics all the time!

Surface Integrals and Flux

What is Flux?

Flux is the amount of “stuff” passing through a surface. Imagine holding a net in a stream of water. The total water flowing through the net is the flux. More formally, the flux of a vector field $\mathbf{F}$ through a surface $S$ is given by the surface integral:

$$

$\iint_{S} \mathbf{F} \cdot \mathbf{n} \, dS$

$$

Here, $\mathbf{F} \cdot \mathbf{n}$ is the dot product of the vector field with the unit normal vector to the surface. This dot product tells us how much of the field is flowing perpendicular to the surface. If the field is tangent to the surface, the flux contribution at that point is zero. If the field is perpendicular and pointing outward, the flux is positive.

Example: Flux Through a Sphere

Let’s consider a simple example. Suppose we have a vector field $\mathbf{F} = \langle x, y, z \rangle$. This field points radially outward. Now consider a sphere of radius $R$ centered at the origin. We want to find the flux through the surface of the sphere.

We know the unit normal vector on the sphere points outward and is given by $\mathbf{n} = \frac{\langle x, y, z \rangle}{R}$. The surface element $dS$ on a sphere is $R^2 \sin(\phi) \, d\phi \, d\theta$ in spherical coordinates.

Now, the dot product $\mathbf{F} \cdot \mathbf{n}$ is:

$$

$\mathbf{F}$ $\cdot$ $\mathbf{n}$ = \langle x, y, z \rangle $\cdot$ $\frac{\langle x, y, z \rangle}{R}$ = $\frac{x^2 + y^2 + z^2}{R}$ = $\frac{R^2}{R}$ = R

$$

So, the flux integral becomes:

$$

$\iint_{S}$ $\mathbf{F}$ $\cdot$ $\mathbf{n}$ \, dS = $\iint_{S}$ R \, dS

$$

Since the surface area of a sphere is $4\pi R^2$, we get:

$$

$\iint_{S}$ $\mathbf{F}$ $\cdot$ $\mathbf{n}$ \, dS = R $\cdot 4$$\pi$ R^2 = $4\pi$ R^3

$$

Relating Surface Integrals to Volume Integrals

Now, let’s check the volume integral of the divergence. The divergence of $\mathbf{F} = \langle x, y, z \rangle$ is:

$$

$\nabla$ $\cdot$ $\mathbf{F}$ = \frac{\partial x}{\partial x} + \frac{\partial y}{\partial y} + \frac{\partial z}{\partial z} = 1 + 1 + 1 = 3

$$

The volume integral inside the sphere is:

$$

$\iiint_{V}$ $\nabla$ $\cdot$ $\mathbf{F}$ \, dV = $\iiint_{V}$ 3 \, dV

$$

The volume of a sphere is $\frac{4}{3}\pi R^3$, so:

$$

$\iiint_{V}$ 3 \, dV = $3 \cdot$ $\frac{4}{3}$$\pi$ R^3 = $4\pi$ R^3

$$

Notice that the surface integral and the volume integral are exactly the same! This is a perfect demonstration of the Divergence Theorem in action.

Applications of the Divergence Theorem

1. Fluid Flow

In fluid dynamics, the Divergence Theorem helps us understand the net flow of fluid out of a closed region. For example, if you have a tank of water with a pump, you can use the theorem to relate the total outflow through the tank walls to the sources and sinks inside the tank.

2. Electromagnetism

In electromagnetism, Gauss’s Law is a direct application of the Divergence Theorem. It states that the electric flux through a closed surface is proportional to the charge enclosed within the surface. Mathematically:

$$

$\iint_{S}$ $\mathbf{E}$ $\cdot$ $\mathbf{n}$ \, dS = $\frac${Q_{$\text{enc}$}}{\epsilon_0}

$$

Where $\mathbf{E}$ is the electric field and $Q_{\text{enc}}$ is the enclosed charge. The Divergence Theorem lets us turn this into a volume integral involving the divergence of the electric field.

3. Heat Transfer

In heat transfer, the Divergence Theorem can be used to relate the net heat flux through a surface to the heat sources inside the volume. This is crucial in engineering applications where heat distribution needs to be analyzed.

4. Gravitational Fields

The theorem also applies to gravitational fields. The flux of the gravitational field through a closed surface relates to the mass inside the surface, just like electric fields and charge.

Key Conditions for Applying the Divergence Theorem

1. Continuity and Differentiability

The vector field $\mathbf{F}$ must be continuously differentiable in the region $V$ and on its boundary $S$. If there are discontinuities or sharp changes, the theorem may not hold.

2. Closed Surfaces

The surface $S$ must be closed. That means it completely encloses a volume. Think of it like a bubble. If there’s a hole in the surface, the theorem doesn’t apply directly.

3. Outward Normal

The normal vector $\mathbf{n}$ must always point outward. This ensures that we’re measuring the flux correctly. If the normal vector points inward, the sign of the flux would be reversed.

Example Problems

Example 1: Divergence Theorem for a Cube

Let’s apply the Divergence Theorem to a simple cube. Suppose $\mathbf{F} = \langle 2x, 3y, -z \rangle$ and the cube is defined by $0 \leq x \leq 1$, $0 \leq y \leq 1$, $0 \leq z \leq 1$.

  1. Find the divergence:

$$

$\nabla$ $\cdot$ $\mathbf{F}$ = \frac{\partial (2x)}{\partial x} + \frac{\partial (3y)}{\partial y} + \frac{\partial (-z)}{\partial z} = 2 + 3 - 1 = 4

$$

  1. Compute the volume integral:

$$

$\iiint_{V}$ $\nabla$ $\cdot$ $\mathbf{F}$ \, dV = $\iiint_{V}$ 4 \, dV = $4 \cdot$ \text{Volume of the cube} = $4 \cdot 1$ = 4

$$

  1. Now, let’s verify by computing the flux through each face of the cube.
  • On the face $x = 1$, $\mathbf{n} = \langle 1, 0, 0 \rangle$. $\mathbf{F} = \langle 2, 3y, -z \rangle$. So $\mathbf{F} \cdot \mathbf{n} = 2$. The area of this face is 1. Thus, the flux through this face is $2 \cdot 1 = 2$.
  • On the face $x = 0$, $\mathbf{n} = \langle -1, 0, 0 \rangle$. $\mathbf{F} = \langle 0, 3y, -z \rangle$. So $\mathbf{F} \cdot \mathbf{n} = 0$. The flux through this face is 0.
  • On the face $y = 1$, $\mathbf{n} = \langle 0, 1, 0 \rangle$. $\mathbf{F} = \langle 2x, 3, -z \rangle$. So $\mathbf{F} \cdot \mathbf{n} = 3$. The area of this face is 1. The flux is $3 \cdot 1 = 3$.
  • On the face $y = 0$, $\mathbf{n} = \langle 0, -1, 0 \rangle$. $\mathbf{F} = \langle 2x, 0, -z \rangle$. So $\mathbf{F} \cdot \mathbf{n} = 0$. The flux here is 0.
  • On the face $z = 1$, $\mathbf{n} = \langle 0, 0, 1 \rangle$. $\mathbf{F} = \langle 2x, 3y, -1 \rangle$. So $\mathbf{F} \cdot \mathbf{n} = -1$. The area is 1. The flux is $-1 \cdot 1 = -1$.
  • On the face $z = 0$, $\mathbf{n} = \langle 0, 0, -1 \rangle$. $\mathbf{F} = \langle 2x, 3y, 0 \rangle$. So $\mathbf{F} \cdot \mathbf{n} = 0$. The flux is 0.

Adding all the fluxes: $2 + 0 + 3 + 0 - 1 + 0 = 4$, which matches the volume integral!

Example 2: Using the Divergence Theorem to Find a Volume Integral

Suppose we want to evaluate the integral $\iiint_{V} \nabla \cdot \mathbf{F} \, dV$ where $\mathbf{F} = \langle y, z, x \rangle$. Let $V$ be the unit sphere $x^2 + y^2 + z^2 \leq 1$.

  1. Find the divergence:

$$

$\nabla$ $\cdot$ $\mathbf{F}$ = \frac{\partial y}{\partial x} + \frac{\partial z}{\partial y} + \frac{\partial x}{\partial z} = 0 + 0 + 0 = 0

$$

  1. Since the divergence is zero everywhere, the volume integral is:

$$

$\iiint_{V} 0 \, dV = 0$

$$

So, the flux through the surface of the unit sphere is zero, meaning there’s no net outflow of the vector field from the volume. This makes sense because the vector field $\mathbf{F} = \langle y, z, x \rangle$ is a rotation of the coordinates, and it doesn’t have any sources or sinks.

Conclusion

Congratulations, students! 🎉 You’ve unlocked the power of the Divergence Theorem. We’ve seen how it connects surface integrals (flux) to volume integrals (divergence), and we’ve explored its applications in fluid flow, electromagnetism, heat transfer, and more. Remember, the key idea is that what happens inside a volume (divergence) determines what happens on the boundary (flux). With this tool in your calculus toolkit, you’ll be ready to tackle complex problems in physics, engineering, and beyond.

Study Notes

  • The Divergence Theorem relates the flux through a closed surface to the volume integral of the divergence inside that surface.

$$

$\iint_{S}$ $\mathbf{F}$ $\cdot$ $\mathbf{n}$ \, dS = $\iiint_{V}$ $\nabla$ $\cdot$ $\mathbf{F}$ \, dV

$$

  • $\mathbf{F} = \langle F_1, F_2, F_3 \rangle$: Vector field.
  • $\nabla \cdot \mathbf{F} = \frac{\partial F_1}{\partial x} + \frac{\partial F_2}{\partial y} + \frac{\partial F_3}{\partial z}$: Divergence of $\mathbf{F}$.
  • $\mathbf{n}$: Outward unit normal vector on the surface.
  • The theorem requires $\mathbf{F}$ to be continuously differentiable.
  • The surface $S$ must be closed, enclosing a volume $V$.
  • Flux: Amount of vector field passing through a surface.

$$

$ \iint_{S} \mathbf{F} \cdot \mathbf{n} \, dS$

$$

  • Volume integral of divergence:

$$

$ \iiint_{V} \nabla \cdot \mathbf{F} \, dV$

$$

  • Divergence measures how much a vector field spreads out from a point.
  • Applications:
  • Fluid flow: Net outflow of fluid from a closed region.
  • Electromagnetism: Gauss’s Law relates electric flux to enclosed charge.
  • Heat transfer: Net heat flux through a surface relates to internal sources.
  • Gravitational fields: Flux relates to enclosed mass.
  • Example: For $\mathbf{F} = \langle x, y, z \rangle$, $\nabla \cdot \mathbf{F} = 3$.
  • For the unit sphere, surface area $= 4\pi R^2$ and volume $= \frac{4}{3}\pi R^3$.
  • Always check conditions: continuous differentiability, closed surface, outward normal.

Happy studying, students! 🚀 You’re doing great!

Practice Quiz

5 questions to test your understanding

Divergence Theorem — Calculus 3 | A-Warded