{"id":1525,"date":"2025-10-17T16:50:42","date_gmt":"2025-10-17T16:50:42","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/calculus3\/?post_type=chapter&#038;p=1525"},"modified":"2025-11-10T17:10:43","modified_gmt":"2025-11-10T17:10:43","slug":"the-divergence-theorem-learn-it-2","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/calculus3\/chapter\/the-divergence-theorem-learn-it-2\/","title":{"raw":"The Divergence Theorem: Learn It 2","rendered":"The Divergence Theorem: Learn It 2"},"content":{"raw":"<h2 data-type=\"title\">Stating the Divergence Theorem<\/h2>\r\n<p class=\"whitespace-normal break-words\">The divergence theorem follows the general pattern of the other theorems we've studied. If we think of divergence as a derivative of sorts, then the divergence theorem relates a triple integral of derivative div [latex]\\mathbf{F}[\/latex] over a solid to a flux integral of [latex]\\mathbf{F}[\/latex] over the boundary of the solid.<\/p>\r\n<p class=\"whitespace-normal break-words\">More specifically, the divergence theorem relates a flux integral of vector field [latex]\\mathbf{F}[\/latex] over a closed surface [latex]S[\/latex] to a triple integral of the divergence of [latex]\\mathbf{F}[\/latex] over the solid enclosed by [latex]S[\/latex].<\/p>\r\n\r\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\r\n<h3>the divergence theorem<\/h3>\r\n<p id=\"fs-id1167794058115\">Let [latex]S[\/latex] be a piecewise, smooth closed surface that encloses solid [latex]E[\/latex] in space. Assume that [latex]S[\/latex] is oriented outward, and let [latex]{\\bf{F}}[\/latex] be a vector field with continuous partial derivatives on an open region containing [latex]E[\/latex] (Figure 1). Then:<\/p>\r\n<p style=\"text-align: center;\">[latex]\\displaystyle\\iiint_e\\text{div }{\\bf{F}}dV=\\displaystyle\\int_C{\\bf{F}}\\cdot d{\\bf{S}}[\/latex].<\/p>\r\n\r\n<\/section>[caption id=\"attachment_1536\" align=\"aligncenter\" width=\"458\"]<img class=\"size-full wp-image-1536\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d.webp\" alt=\"A diagram of a closed surface S, vector field, and solid E enclosed by the surface in three dimensions. The surface is a roughly rectangular prism with curved sides. The normal vectors stretch out and away from the surface. The arrows have negative x components and positive y and z components.\" width=\"458\" height=\"352\" \/> Figure 1. The divergence theorem relates a flux integral across a closed surface [latex]S[\/latex] to a triple integral over solid\u00a0[latex]E[\/latex] enclosed by the surface.[\/caption]<section class=\"textbox proTip\" aria-label=\"Pro Tip\">Recall that the flux form of Green\u2019s theorem states that [latex]\\displaystyle\\iint_D\\text{div }{\\bf{F}}dA=\\displaystyle\\int_C{\\bf{F}}\\cdot{\\bf{N}}ds[\/latex]. Therefore, the divergence theorem is a version of Green\u2019s theorem in one higher dimension.\r\n\r\n<\/section>The proof of the divergence theorem is beyond the scope of this text. However, we look at an informal proof that gives a general feel for why the theorem is true, but does not prove the theorem with full rigor. This explanation follows the informal explanation given for why Stokes\u2019 theorem is true.\r\n\r\n<section class=\"textbox connectIt\">\r\n<p style=\"text-align: center;\"><strong>Proof<\/strong><\/p>\r\n\r\n\r\n<hr \/>\r\n\r\n<div data-type=\"note\"><section id=\"fs-id1167794060651\" data-depth=\"2\">\r\n<p id=\"fs-id1167793269551\">Let [latex]B[\/latex] be a small box with sides parallel to the coordinate planes inside [latex]E[\/latex] (Figure 2). Let the center of [latex]B[\/latex] have coordinates [latex](x, y, z)[\/latex] and suppose the edge lengths are [latex]\\Delta x[\/latex], [latex]\\Delta y[\/latex], and [latex]\\Delta z[\/latex] (Figure 2(b)). The normal vector out of the top of the box is\u00a0[latex]{\\bf{k}}[\/latex]\u00a0and the normal vector out of the bottom of the box is [latex]-{\\bf{k}}[\/latex]. The dot product of [latex]{\\bf{F}}=\\langle P,Q,R\\rangle[\/latex] with\u00a0[latex]{\\bf{k}}[\/latex]\u00a0is [latex]R[\/latex] and the dot product with [latex]-{\\bf{k}}[\/latex] is [latex]-R[\/latex]. The area of the top of the box (and the bottom of the box) [latex]\\Delta S[\/latex] is\u00a0[latex]\\Delta x\\Delta y[\/latex].<\/p>\r\n\r\n<\/section>[caption id=\"attachment_1538\" align=\"aligncenter\" width=\"820\"]<img class=\"size-full wp-image-1538\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d.webp\" alt=\"This figure has three diagrams. The first is a surface E in three dimensions with a small box B inside it. The second just has box B. The height is labeled as delta z, the width is labeled as delta x, and the width is labeled as delta y. An arrow perpendicular to the top points up and away from the box and is labeled k. An arrow perpendicular to the bottom points down and away from the box and is labeled \u2013k. The third diagram is a side views of box B. The center is (x, y, z), the midpoint of the side below it is (x, y, z \u2013 delta z \/ 2), and the midpoint of the size above it is (x, y, z + delta z \/ 2). The height is delta z.\" width=\"820\" height=\"306\" \/> Figure 2. (a) A small box [latex]B[\/latex] inside surface\u00a0[latex]E[\/latex] has sides parallel to the coordinate planes. (b) Box\u00a0[latex]B[\/latex] has side lengths [latex]{\\Delta x}[\/latex],[latex]{\\Delta y}[\/latex], and\u00a0[latex]{\\Delta z}[\/latex] (c) If we look at the side view of [latex]B[\/latex], we see that, since [latex](x, y, z)[\/latex] is the center of the box, to get to the top of the box we must travel a vertical distance of\u00a0[latex]{\\Delta z}\/2[\/latex] up from [latex](x, y, z)[\/latex]. Similarly, to get to the bottom of the box we must travel a distance\u00a0[latex]{\\Delta z}\/2[\/latex] down from [latex](x, y, z)[\/latex].[\/caption]<\/div>\r\n<div data-type=\"note\"><\/div>\r\n<div data-type=\"note\">\r\n<p id=\"fs-id1167793257642\">The flux out of the top of the box can be approximated by [latex]R\\left(x,y,z+\\frac{\\Delta z}{2}\\right)\\Delta x\\Delta y[\/latex] (Figure 2(c)) and the flux out of the bottom of the box is [latex]-R\\left(x,y,z-\\frac{\\Delta z}{2}\\right)\\Delta x\\Delta y[\/latex]. If we denote the difference between these values as [latex]\\Delta R[\/latex], then the net flux in the vertical direction can be approximated by [latex]\\Delta R\\Delta x\\Delta y[\/latex]. However,<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\Delta R\\Delta x\\Delta y=\\left(\\frac{\\Delta R}{\\Delta z}\\right)\\Delta x\\Delta y\\Delta z\\approx\\left(\\frac{\\partial R}{\\partial z}\\right)\\Delta V}[\/latex].<\/p>\r\n<p id=\"fs-id1167793965502\">Therefore, the net flux in the vertical direction can be approximated by [latex]\\left(\\frac{\\partial R}{\\partial z}\\right)\\Delta V[\/latex]. Similarly, the net flux in the [latex]x[\/latex]-direction can be approximated by [latex]\\left(\\frac{\\partial P}{\\partial x}\\right)\\Delta V[\/latex] and the net flux in the [latex]y[\/latex]-direction can be approximated by [latex]\\left(\\frac{\\partial Q}{\\partial y}\\right)\\Delta V[\/latex]. Adding the fluxes in all three directions gives an approximation of the total flux out of the box:<\/p>\r\n<p style=\"text-align: center;\">Total flux [latex]\\approx\\left(\\frac{\\partial P}{\\partial x}+\\frac{\\partial Q}{\\partial y}+\\frac{\\partial R}{\\partial z}\\right)\\Delta V=\\text{div }{\\bf{F}}\\Delta V[\/latex].<\/p>\r\n<p id=\"fs-id1167793265472\">This approximation becomes arbitrarily close to the value of the total flux as the volume of the box shrinks to zero.<\/p>\r\n<p id=\"fs-id1167794003831\">The sum of [latex]\\text{div }{\\bf{F}}\\Delta V[\/latex] over all the small boxes approximating [latex]E[\/latex] is approximately [latex]\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV[\/latex]. On the other hand, the sum of [latex]\\text{div }{\\bf{F}}\\Delta V[\/latex] over all the small boxes approximating [latex]E[\/latex] is the sum of the fluxes over all these boxes. Just as in the informal proof of Stokes\u2019 theorem, adding these fluxes over all the boxes results in the cancelation of a lot of the terms. If an approximating box shares a face with another approximating box, then the flux over one face is the negative of the flux over the shared face of the adjacent box. These two integrals cancel out. When adding up all the fluxes, the only flux integrals that survive are the integrals over the faces approximating the boundary of [latex]E[\/latex]. As the volumes of the approximating boxes shrink to zero, this approximation becomes arbitrarily close to the flux over [latex]S[\/latex].<\/p>\r\n[latex]_\\blacksquare[\/latex]\r\n\r\n<\/div>\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">Verify the divergence theorem for vector field [latex]{\\bf{F}}=\\langle x-y,x+z, z-y\\rangle[\/latex] and surface [latex]S[\/latex] that consists of cone [latex]x^{2}+y^{2}=z^{2}[\/latex], [latex]0\\leq z\\leq1[\/latex], and the circular top of the cone (see the following figure). Assume this surface is positively oriented.[caption id=\"attachment_5429\" align=\"aligncenter\" width=\"431\"]<img class=\"size-full wp-image-5429\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/02172452\/6.891.jpg\" alt=\"This figure is a vector diagram in three dimensions. The cone x^2 + y^2 = z^2 is shown. Its point is at the origin, and it opens up. There is a cover across the top. The arrows seem to be following the shape of the cone.\" width=\"431\" height=\"507\" \/> Figure 3. The vector field [latex]{\\bf{F}}=\\langle x-y,x+z, z-y\\rangle[\/latex] and surface [latex]S[\/latex] that consists of cone [latex]x^{2}+y^{2}=z^{2}[\/latex], [latex]0\\leq z\\leq1[\/latex], and the circular top of the cone[\/caption][reveal-answer q=\"727712381\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"727712381\"]\r\n<p id=\"fs-id1167794199999\">Let [latex]E[\/latex] be the solid cone enclosed by [latex]S[\/latex]. To verify the theorem for this example, we show that [latex]\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV=\\displaystyle\\iint_s{\\bf{F}}\\cdot d{\\bf{S}}[\/latex] by calculating each integral separately.<\/p>\r\n<p id=\"fs-id1167793259115\">To compute the triple integral, note that [latex]\\text{div }{\\bf{F}}=P_x+Q_y+R_z=2[\/latex], and therefore the triple integral is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\begin{aligned}\r\n\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV&amp;=2\\displaystyle\\iiint_EdV \\\\\r\n&amp;=2\\text{(volume of E)}\r\n\\end{aligned}}[\/latex].<\/p>\r\n<p id=\"fs-id1167793367068\">The volume of a right circular cone is given by [latex]\\pi{r}^2\\frac{h}3[\/latex]. In this case, [latex]h=r=1[\/latex]. Therefore,<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV=2}\\text{(volume of E)}=\\frac{2\\pi}{3}[\/latex].<\/p>\r\n<p id=\"fs-id1167793274036\">To compute the flux integral, first note that [latex]S[\/latex] is piecewise smooth; [latex]S[\/latex] can be written as a union of smooth surfaces. Therefore, we break the flux integral into two pieces: one flux integral across the circular top of the cone and one flux integral across the remaining portion of the cone. Call the circular top [latex]S_1[\/latex] and the portion under the top [latex]S_2[\/latex]. We start by calculating the flux across the circular top of the cone. Notice that [latex]S_1[\/latex] has parameterization<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{{\\bf{r}}(u,v)=\\langle u,\\cos v,u\\sin v,1\\rangle, \\ 0\\leq u\\leq1, \\ 0\\leq v\\leq2\\pi}[\/latex].<\/p>\r\n<p id=\"fs-id1167793261519\">Then, the tangent vectors are [latex]{\\bf{t}}_u\\langle\\cos v,\\sin v, 0\\rangle[\/latex] and [latex]{\\bf{t}}_v=\\langle-u\\cos v,u\\sin v,0\\rangle[\/latex]. Therefore, the flux across [latex]S_1[\/latex] is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\begin{aligned}\r\n\\displaystyle\\iint_{S_1}{\\bf{F}}\\cdot d{\\bf{S}}&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}{\\bf{F}}({\\bf{r}}(u,v))\\cdot({\\bf{t}}_u\\times{\\bf{t}}_v)dA \\\\\r\n&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}\\langle u\\cos v-u\\sin v,u\\cos v+1,1-u\\sin v\\rangle\\cdot\\langle0,0,u\\rangle \\ dvdu \\\\\r\n&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}u-u^2\\sin v \\ dvdu=\\pi\r\n\\end{aligned}[\/latex].<\/p>\r\n<p id=\"fs-id1167793278472\">We now calculate the flux over [latex]S_2[\/latex]. A parameterization of this surface is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{{\\bf{r}}(u,v)=\\langle u,\\cos v,u\\sin v,1\\rangle, \\ 0\\leq u\\leq1, \\ 0\\leq v\\leq2\\pi}[\/latex].<\/p>\r\n<p id=\"fs-id1167793928876\">The tangent vectors are [latex]{\\bf{t}}_u\\langle\\cos v,\\sin v, 1\\rangle[\/latex] and [latex]{\\bf{t}}_v\\langle-u\\sin v,u\\cos v, 0\\rangle[\/latex], so the cross product is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{{\\bf{t}}_u\\times{\\bf{t}}_v=\\langle-u\\cos v, -\\sin v, u\\rangle}[\/latex].<\/p>\r\n<p id=\"fs-id1167793933425\">Notice that the negative signs on the [latex]x[\/latex] and [latex]y[\/latex] components induce the negative (or inward) orientation of the cone. Since the surface is positively oriented, we use vector [latex]{\\bf{t}}_u\\times{\\bf{t}}_v=\\langle u\\cos v,u\\sin v,-u\\rangle[\/latex] in the flux integral. The flux across [latex]S_2[\/latex] is then<\/p>\r\n<p style=\"text-align: center;\">[latex]\\begin{aligned}\r\n\\displaystyle\\iint_{S_2}{\\bf{F}}\\cdot d{\\bf{S}}&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}{\\bf{F}}({\\bf{r}}(u,v))\\cdot({\\bf{t}}_u\\times{\\bf{t}}_v)dA \\\\\r\n&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}\\langle u\\cos v-u\\sin v,u\\cos v+u,u-u\\sin v\\rangle\\cdot\\langle u\\cos v,u\\sin v,-u\\rangle \\\\\r\n&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}u^2\\cos^2v+2u^2\\sin v-u^2 \\ dvdu=-\\frac{\\pi}3\r\n\\end{aligned}[\/latex].<\/p>\r\nThe total flux across [latex]S[\/latex] is\r\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\iint_{S_2}{\\bf{F}}\\cdot d{\\bf{S}}=\\displaystyle\\iint_{S_1}{\\bf{F}}\\cdot d{\\bf{S}}+\\displaystyle\\iint_{S_2}{\\bf{F}}\\cdot d{\\bf{S}}=\\frac{2\\pi}3=\\displaystyle\\iiint_e\\text{div }{\\bf{F}}dV}[\/latex],<\/p>\r\n<p id=\"fs-id1167793985749\">and we have verified the divergence theorem for this example.<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/section>\r\n<div data-type=\"note\">\r\n<h3>Physical Interpretation of Divergence<\/h3>\r\nRecall that the divergence of continuous field [latex]\\mathbf{F}[\/latex] at point [latex]P[\/latex] is a measure of the \"outflowing-ness\" of the field at [latex]P[\/latex]. If [latex]\\mathbf{F}[\/latex] represents the velocity field of a fluid, then the divergence can be thought of as the rate per unit volume of the fluid flowing out less the rate per unit volume flowing in. The divergence theorem confirms this interpretation.\r\n\r\nTo see this, let [latex]P[\/latex] be a point and let [latex]B_r[\/latex] be a ball of small radius [latex]r[\/latex] centered at [latex]P[\/latex] (Figure 4). Let [latex]S_r[\/latex] be the boundary sphere of [latex]B_r[\/latex].\r\n\r\nSince the radius is small and\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is continuous, [latex]\\text{div }{\\bf{F}}(Q)\\approx\\text{div }{\\bf{F}}(P)[\/latex] for all other points [latex]Q[\/latex] in the ball. Therefore, the flux across [latex]S_r[\/latex] can be approximated using the divergence theorem:\r\n<p style=\"text-align: center;\">[latex]\\displaystyle\\iint_{S_r}{\\bf{F}}\\cdot dS=\\displaystyle\\iiint_{B_r}\\text{div }{\\bf{F}}dV\\approx\\displaystyle\\iiint_{B_r}\\text{div }{\\bf{F}}(P)dV[\/latex].<\/p>\r\n<p id=\"fs-id1167793830768\">Since [latex]\\text{div }{\\bf{F}}(P)[\/latex] is a constant,<\/p>\r\n<p style=\"text-align: center;\">[latex]\\displaystyle\\iiint_{B_r}\\text{div }{\\bf{F}}(P)dV=\\text{div }{\\bf{F}}(P)V(B_r)[\/latex].<\/p>\r\n<p id=\"fs-id1167794187720\">Therefore, flux [latex]\\displaystyle\\iint_{S_r}{\\bf{F}}\\cdot d{\\bf{S}}[\/latex] can be approximated by [latex]\\text{div }{\\bf{F}}(P)V(B_r)[\/latex]. This approximation gets better as the radius shrinks to zero, and therefore:<\/p>\r\n<p style=\"text-align: center;\">[latex]\\text{div }{\\bf{F}}(P)=\\displaystyle\\lim_{r\\to0}\\frac{1}{V(B_r)}\\displaystyle\\iint_{S_r}{\\bf{F}}\\cdot d{\\bf{S}}[\/latex].<\/p>\r\n<p id=\"fs-id1167794061898\">This equation says that the divergence at [latex]P[\/latex] is the net rate of outward flux of the fluid per unit volume.<\/p>\r\n\r\n[caption id=\"attachment_5605\" align=\"aligncenter\" width=\"291\"]<img class=\"size-full wp-image-5605\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/03043835\/6.89.jpeg\" alt=\"This figure is a diagram of ball B_r, with small radius r centered at P. Arrows are drawn pointing up and to the right across the ball.\" width=\"291\" height=\"281\" \/> Figure 4. Ball [latex]B_r[\/latex] of small radius [latex]r[\/latex] centered at [latex]P[\/latex].[\/caption]<\/div>\r\n<div data-type=\"note\"><\/div>","rendered":"<h2 data-type=\"title\">Stating the Divergence Theorem<\/h2>\n<p class=\"whitespace-normal break-words\">The divergence theorem follows the general pattern of the other theorems we&#8217;ve studied. If we think of divergence as a derivative of sorts, then the divergence theorem relates a triple integral of derivative div [latex]\\mathbf{F}[\/latex] over a solid to a flux integral of [latex]\\mathbf{F}[\/latex] over the boundary of the solid.<\/p>\n<p class=\"whitespace-normal break-words\">More specifically, the divergence theorem relates a flux integral of vector field [latex]\\mathbf{F}[\/latex] over a closed surface [latex]S[\/latex] to a triple integral of the divergence of [latex]\\mathbf{F}[\/latex] over the solid enclosed by [latex]S[\/latex].<\/p>\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\n<h3>the divergence theorem<\/h3>\n<p id=\"fs-id1167794058115\">Let [latex]S[\/latex] be a piecewise, smooth closed surface that encloses solid [latex]E[\/latex] in space. Assume that [latex]S[\/latex] is oriented outward, and let [latex]{\\bf{F}}[\/latex] be a vector field with continuous partial derivatives on an open region containing [latex]E[\/latex] (Figure 1). Then:<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle\\iiint_e\\text{div }{\\bf{F}}dV=\\displaystyle\\int_C{\\bf{F}}\\cdot d{\\bf{S}}[\/latex].<\/p>\n<\/section>\n<figure id=\"attachment_1536\" aria-describedby=\"caption-attachment-1536\" style=\"width: 458px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1536\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d.webp\" alt=\"A diagram of a closed surface S, vector field, and solid E enclosed by the surface in three dimensions. The surface is a roughly rectangular prism with curved sides. The normal vectors stretch out and away from the surface. The arrows have negative x components and positive y and z components.\" width=\"458\" height=\"352\" srcset=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d.webp 458w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d-300x231.webp 300w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d-65x50.webp 65w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d-225x173.webp 225w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165130\/16c8cc9b5583098cc6e5e8e03c9960cf22ae115d-350x269.webp 350w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><figcaption id=\"caption-attachment-1536\" class=\"wp-caption-text\">Figure 1. The divergence theorem relates a flux integral across a closed surface [latex]S[\/latex] to a triple integral over solid\u00a0[latex]E[\/latex] enclosed by the surface.<\/figcaption><\/figure>\n<section class=\"textbox proTip\" aria-label=\"Pro Tip\">Recall that the flux form of Green\u2019s theorem states that [latex]\\displaystyle\\iint_D\\text{div }{\\bf{F}}dA=\\displaystyle\\int_C{\\bf{F}}\\cdot{\\bf{N}}ds[\/latex]. Therefore, the divergence theorem is a version of Green\u2019s theorem in one higher dimension.<\/p>\n<\/section>\n<p>The proof of the divergence theorem is beyond the scope of this text. However, we look at an informal proof that gives a general feel for why the theorem is true, but does not prove the theorem with full rigor. This explanation follows the informal explanation given for why Stokes\u2019 theorem is true.<\/p>\n<section class=\"textbox connectIt\">\n<p style=\"text-align: center;\"><strong>Proof<\/strong><\/p>\n<hr \/>\n<div data-type=\"note\">\n<section id=\"fs-id1167794060651\" data-depth=\"2\">\n<p id=\"fs-id1167793269551\">Let [latex]B[\/latex] be a small box with sides parallel to the coordinate planes inside [latex]E[\/latex] (Figure 2). Let the center of [latex]B[\/latex] have coordinates [latex](x, y, z)[\/latex] and suppose the edge lengths are [latex]\\Delta x[\/latex], [latex]\\Delta y[\/latex], and [latex]\\Delta z[\/latex] (Figure 2(b)). The normal vector out of the top of the box is\u00a0[latex]{\\bf{k}}[\/latex]\u00a0and the normal vector out of the bottom of the box is [latex]-{\\bf{k}}[\/latex]. The dot product of [latex]{\\bf{F}}=\\langle P,Q,R\\rangle[\/latex] with\u00a0[latex]{\\bf{k}}[\/latex]\u00a0is [latex]R[\/latex] and the dot product with [latex]-{\\bf{k}}[\/latex] is [latex]-R[\/latex]. The area of the top of the box (and the bottom of the box) [latex]\\Delta S[\/latex] is\u00a0[latex]\\Delta x\\Delta y[\/latex].<\/p>\n<\/section>\n<figure id=\"attachment_1538\" aria-describedby=\"caption-attachment-1538\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1538\" src=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d.webp\" alt=\"This figure has three diagrams. The first is a surface E in three dimensions with a small box B inside it. The second just has box B. The height is labeled as delta z, the width is labeled as delta x, and the width is labeled as delta y. An arrow perpendicular to the top points up and away from the box and is labeled k. An arrow perpendicular to the bottom points down and away from the box and is labeled \u2013k. The third diagram is a side views of box B. The center is (x, y, z), the midpoint of the side below it is (x, y, z \u2013 delta z \/ 2), and the midpoint of the size above it is (x, y, z + delta z \/ 2). The height is delta z.\" width=\"820\" height=\"306\" srcset=\"https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d.webp 820w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d-300x112.webp 300w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d-768x287.webp 768w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d-65x24.webp 65w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d-225x84.webp 225w, https:\/\/content-cdn.one.lumenlearning.com\/wp-content\/uploads\/sites\/68\/2025\/10\/17165204\/a595c7c56ce093a816b7975f349045259c97af6d-350x131.webp 350w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><figcaption id=\"caption-attachment-1538\" class=\"wp-caption-text\">Figure 2. (a) A small box [latex]B[\/latex] inside surface\u00a0[latex]E[\/latex] has sides parallel to the coordinate planes. (b) Box\u00a0[latex]B[\/latex] has side lengths [latex]{\\Delta x}[\/latex],[latex]{\\Delta y}[\/latex], and\u00a0[latex]{\\Delta z}[\/latex] (c) If we look at the side view of [latex]B[\/latex], we see that, since [latex](x, y, z)[\/latex] is the center of the box, to get to the top of the box we must travel a vertical distance of\u00a0[latex]{\\Delta z}\/2[\/latex] up from [latex](x, y, z)[\/latex]. Similarly, to get to the bottom of the box we must travel a distance\u00a0[latex]{\\Delta z}\/2[\/latex] down from [latex](x, y, z)[\/latex].<\/figcaption><\/figure>\n<\/div>\n<div data-type=\"note\"><\/div>\n<div data-type=\"note\">\n<p id=\"fs-id1167793257642\">The flux out of the top of the box can be approximated by [latex]R\\left(x,y,z+\\frac{\\Delta z}{2}\\right)\\Delta x\\Delta y[\/latex] (Figure 2(c)) and the flux out of the bottom of the box is [latex]-R\\left(x,y,z-\\frac{\\Delta z}{2}\\right)\\Delta x\\Delta y[\/latex]. If we denote the difference between these values as [latex]\\Delta R[\/latex], then the net flux in the vertical direction can be approximated by [latex]\\Delta R\\Delta x\\Delta y[\/latex]. However,<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\Delta R\\Delta x\\Delta y=\\left(\\frac{\\Delta R}{\\Delta z}\\right)\\Delta x\\Delta y\\Delta z\\approx\\left(\\frac{\\partial R}{\\partial z}\\right)\\Delta V}[\/latex].<\/p>\n<p id=\"fs-id1167793965502\">Therefore, the net flux in the vertical direction can be approximated by [latex]\\left(\\frac{\\partial R}{\\partial z}\\right)\\Delta V[\/latex]. Similarly, the net flux in the [latex]x[\/latex]-direction can be approximated by [latex]\\left(\\frac{\\partial P}{\\partial x}\\right)\\Delta V[\/latex] and the net flux in the [latex]y[\/latex]-direction can be approximated by [latex]\\left(\\frac{\\partial Q}{\\partial y}\\right)\\Delta V[\/latex]. Adding the fluxes in all three directions gives an approximation of the total flux out of the box:<\/p>\n<p style=\"text-align: center;\">Total flux [latex]\\approx\\left(\\frac{\\partial P}{\\partial x}+\\frac{\\partial Q}{\\partial y}+\\frac{\\partial R}{\\partial z}\\right)\\Delta V=\\text{div }{\\bf{F}}\\Delta V[\/latex].<\/p>\n<p id=\"fs-id1167793265472\">This approximation becomes arbitrarily close to the value of the total flux as the volume of the box shrinks to zero.<\/p>\n<p id=\"fs-id1167794003831\">The sum of [latex]\\text{div }{\\bf{F}}\\Delta V[\/latex] over all the small boxes approximating [latex]E[\/latex] is approximately [latex]\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV[\/latex]. On the other hand, the sum of [latex]\\text{div }{\\bf{F}}\\Delta V[\/latex] over all the small boxes approximating [latex]E[\/latex] is the sum of the fluxes over all these boxes. Just as in the informal proof of Stokes\u2019 theorem, adding these fluxes over all the boxes results in the cancelation of a lot of the terms. If an approximating box shares a face with another approximating box, then the flux over one face is the negative of the flux over the shared face of the adjacent box. These two integrals cancel out. When adding up all the fluxes, the only flux integrals that survive are the integrals over the faces approximating the boundary of [latex]E[\/latex]. As the volumes of the approximating boxes shrink to zero, this approximation becomes arbitrarily close to the flux over [latex]S[\/latex].<\/p>\n<p>[latex]_\\blacksquare[\/latex]<\/p>\n<\/div>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">Verify the divergence theorem for vector field [latex]{\\bf{F}}=\\langle x-y,x+z, z-y\\rangle[\/latex] and surface [latex]S[\/latex] that consists of cone [latex]x^{2}+y^{2}=z^{2}[\/latex], [latex]0\\leq z\\leq1[\/latex], and the circular top of the cone (see the following figure). Assume this surface is positively oriented.<\/p>\n<figure id=\"attachment_5429\" aria-describedby=\"caption-attachment-5429\" style=\"width: 431px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5429\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/02172452\/6.891.jpg\" alt=\"This figure is a vector diagram in three dimensions. The cone x^2 + y^2 = z^2 is shown. Its point is at the origin, and it opens up. There is a cover across the top. The arrows seem to be following the shape of the cone.\" width=\"431\" height=\"507\" \/><figcaption id=\"caption-attachment-5429\" class=\"wp-caption-text\">Figure 3. The vector field [latex]{\\bf{F}}=\\langle x-y,x+z, z-y\\rangle[\/latex] and surface [latex]S[\/latex] that consists of cone [latex]x^{2}+y^{2}=z^{2}[\/latex], [latex]0\\leq z\\leq1[\/latex], and the circular top of the cone<\/figcaption><\/figure>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q727712381\">Show Solution<\/button><\/p>\n<div id=\"q727712381\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167794199999\">Let [latex]E[\/latex] be the solid cone enclosed by [latex]S[\/latex]. To verify the theorem for this example, we show that [latex]\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV=\\displaystyle\\iint_s{\\bf{F}}\\cdot d{\\bf{S}}[\/latex] by calculating each integral separately.<\/p>\n<p id=\"fs-id1167793259115\">To compute the triple integral, note that [latex]\\text{div }{\\bf{F}}=P_x+Q_y+R_z=2[\/latex], and therefore the triple integral is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\begin{aligned}  \\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV&=2\\displaystyle\\iiint_EdV \\\\  &=2\\text{(volume of E)}  \\end{aligned}}[\/latex].<\/p>\n<p id=\"fs-id1167793367068\">The volume of a right circular cone is given by [latex]\\pi{r}^2\\frac{h}3[\/latex]. In this case, [latex]h=r=1[\/latex]. Therefore,<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\iiint_E\\text{div }{\\bf{F}}dV=2}\\text{(volume of E)}=\\frac{2\\pi}{3}[\/latex].<\/p>\n<p id=\"fs-id1167793274036\">To compute the flux integral, first note that [latex]S[\/latex] is piecewise smooth; [latex]S[\/latex] can be written as a union of smooth surfaces. Therefore, we break the flux integral into two pieces: one flux integral across the circular top of the cone and one flux integral across the remaining portion of the cone. Call the circular top [latex]S_1[\/latex] and the portion under the top [latex]S_2[\/latex]. We start by calculating the flux across the circular top of the cone. Notice that [latex]S_1[\/latex] has parameterization<\/p>\n<p style=\"text-align: center;\">[latex]\\large{{\\bf{r}}(u,v)=\\langle u,\\cos v,u\\sin v,1\\rangle, \\ 0\\leq u\\leq1, \\ 0\\leq v\\leq2\\pi}[\/latex].<\/p>\n<p id=\"fs-id1167793261519\">Then, the tangent vectors are [latex]{\\bf{t}}_u\\langle\\cos v,\\sin v, 0\\rangle[\/latex] and [latex]{\\bf{t}}_v=\\langle-u\\cos v,u\\sin v,0\\rangle[\/latex]. Therefore, the flux across [latex]S_1[\/latex] is<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{aligned}  \\displaystyle\\iint_{S_1}{\\bf{F}}\\cdot d{\\bf{S}}&=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}{\\bf{F}}({\\bf{r}}(u,v))\\cdot({\\bf{t}}_u\\times{\\bf{t}}_v)dA \\\\  &=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}\\langle u\\cos v-u\\sin v,u\\cos v+1,1-u\\sin v\\rangle\\cdot\\langle0,0,u\\rangle \\ dvdu \\\\  &=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}u-u^2\\sin v \\ dvdu=\\pi  \\end{aligned}[\/latex].<\/p>\n<p id=\"fs-id1167793278472\">We now calculate the flux over [latex]S_2[\/latex]. A parameterization of this surface is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{{\\bf{r}}(u,v)=\\langle u,\\cos v,u\\sin v,1\\rangle, \\ 0\\leq u\\leq1, \\ 0\\leq v\\leq2\\pi}[\/latex].<\/p>\n<p id=\"fs-id1167793928876\">The tangent vectors are [latex]{\\bf{t}}_u\\langle\\cos v,\\sin v, 1\\rangle[\/latex] and [latex]{\\bf{t}}_v\\langle-u\\sin v,u\\cos v, 0\\rangle[\/latex], so the cross product is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{{\\bf{t}}_u\\times{\\bf{t}}_v=\\langle-u\\cos v, -\\sin v, u\\rangle}[\/latex].<\/p>\n<p id=\"fs-id1167793933425\">Notice that the negative signs on the [latex]x[\/latex] and [latex]y[\/latex] components induce the negative (or inward) orientation of the cone. Since the surface is positively oriented, we use vector [latex]{\\bf{t}}_u\\times{\\bf{t}}_v=\\langle u\\cos v,u\\sin v,-u\\rangle[\/latex] in the flux integral. The flux across [latex]S_2[\/latex] is then<\/p>\n<p style=\"text-align: center;\">[latex]\\begin{aligned}  \\displaystyle\\iint_{S_2}{\\bf{F}}\\cdot d{\\bf{S}}&=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}{\\bf{F}}({\\bf{r}}(u,v))\\cdot({\\bf{t}}_u\\times{\\bf{t}}_v)dA \\\\  &=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}\\langle u\\cos v-u\\sin v,u\\cos v+u,u-u\\sin v\\rangle\\cdot\\langle u\\cos v,u\\sin v,-u\\rangle \\\\  &=\\displaystyle\\int_0^1\\displaystyle\\int_0^{2\\pi}u^2\\cos^2v+2u^2\\sin v-u^2 \\ dvdu=-\\frac{\\pi}3  \\end{aligned}[\/latex].<\/p>\n<p>The total flux across [latex]S[\/latex] is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\iint_{S_2}{\\bf{F}}\\cdot d{\\bf{S}}=\\displaystyle\\iint_{S_1}{\\bf{F}}\\cdot d{\\bf{S}}+\\displaystyle\\iint_{S_2}{\\bf{F}}\\cdot d{\\bf{S}}=\\frac{2\\pi}3=\\displaystyle\\iiint_e\\text{div }{\\bf{F}}dV}[\/latex],<\/p>\n<p id=\"fs-id1167793985749\">and we have verified the divergence theorem for this example.<\/p>\n<\/div>\n<\/div>\n<\/section>\n<div data-type=\"note\">\n<h3>Physical Interpretation of Divergence<\/h3>\n<p>Recall that the divergence of continuous field [latex]\\mathbf{F}[\/latex] at point [latex]P[\/latex] is a measure of the &#8220;outflowing-ness&#8221; of the field at [latex]P[\/latex]. If [latex]\\mathbf{F}[\/latex] represents the velocity field of a fluid, then the divergence can be thought of as the rate per unit volume of the fluid flowing out less the rate per unit volume flowing in. The divergence theorem confirms this interpretation.<\/p>\n<p>To see this, let [latex]P[\/latex] be a point and let [latex]B_r[\/latex] be a ball of small radius [latex]r[\/latex] centered at [latex]P[\/latex] (Figure 4). Let [latex]S_r[\/latex] be the boundary sphere of [latex]B_r[\/latex].<\/p>\n<p>Since the radius is small and\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is continuous, [latex]\\text{div }{\\bf{F}}(Q)\\approx\\text{div }{\\bf{F}}(P)[\/latex] for all other points [latex]Q[\/latex] in the ball. Therefore, the flux across [latex]S_r[\/latex] can be approximated using the divergence theorem:<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle\\iint_{S_r}{\\bf{F}}\\cdot dS=\\displaystyle\\iiint_{B_r}\\text{div }{\\bf{F}}dV\\approx\\displaystyle\\iiint_{B_r}\\text{div }{\\bf{F}}(P)dV[\/latex].<\/p>\n<p id=\"fs-id1167793830768\">Since [latex]\\text{div }{\\bf{F}}(P)[\/latex] is a constant,<\/p>\n<p style=\"text-align: center;\">[latex]\\displaystyle\\iiint_{B_r}\\text{div }{\\bf{F}}(P)dV=\\text{div }{\\bf{F}}(P)V(B_r)[\/latex].<\/p>\n<p id=\"fs-id1167794187720\">Therefore, flux [latex]\\displaystyle\\iint_{S_r}{\\bf{F}}\\cdot d{\\bf{S}}[\/latex] can be approximated by [latex]\\text{div }{\\bf{F}}(P)V(B_r)[\/latex]. This approximation gets better as the radius shrinks to zero, and therefore:<\/p>\n<p style=\"text-align: center;\">[latex]\\text{div }{\\bf{F}}(P)=\\displaystyle\\lim_{r\\to0}\\frac{1}{V(B_r)}\\displaystyle\\iint_{S_r}{\\bf{F}}\\cdot d{\\bf{S}}[\/latex].<\/p>\n<p id=\"fs-id1167794061898\">This equation says that the divergence at [latex]P[\/latex] is the net rate of outward flux of the fluid per unit volume.<\/p>\n<figure id=\"attachment_5605\" aria-describedby=\"caption-attachment-5605\" style=\"width: 291px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5605\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/03043835\/6.89.jpeg\" alt=\"This figure is a diagram of ball B_r, with small radius r centered at P. Arrows are drawn pointing up and to the right across the ball.\" width=\"291\" height=\"281\" \/><figcaption id=\"caption-attachment-5605\" class=\"wp-caption-text\">Figure 4. Ball [latex]B_r[\/latex] of small radius [latex]r[\/latex] centered at [latex]P[\/latex].<\/figcaption><\/figure>\n<\/div>\n<div data-type=\"note\"><\/div>\n","protected":false},"author":15,"menu_order":23,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1525","chapter","type-chapter","status-publish","hentry"],"part":438,"module-header":"- Select Header -","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":5,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1525\/revisions"}],"predecessor-version":[{"id":2113,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1525\/revisions\/2113"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/parts\/438"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1525\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/media?parent=1525"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapter-type?post=1525"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/contributor?post=1525"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/license?post=1525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}