{"id":5498,"date":"2022-06-02T18:53:52","date_gmt":"2022-06-02T18:53:52","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/calculus3\/?post_type=chapter&#038;p=5498"},"modified":"2022-11-01T05:22:35","modified_gmt":"2022-11-01T05:22:35","slug":"divergence","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/calculus3\/chapter\/divergence\/","title":{"raw":"Divergence","rendered":"Divergence"},"content":{"raw":"<div data-type=\"note\">\r\n<div class=\"textbox learning-objectives\">\r\n<h3>Learning Objectives<\/h3>\r\n<ul class=\"os-abstract\">\r\n \t<li><span class=\"os-abstract-content\">Determine divergence from the formula for a given vector field.<\/span><\/li>\r\n<\/ul>\r\n<\/div>\r\n<p id=\"fs-id1167794213418\">Divergence is an operation on a vector field that tells us how the field behaves toward or away from a point. Locally, the divergence of a vector field\u00a0[latex]{\\bf{F}}[\/latex]\u00a0in [latex]\\mathbb{R}^2[\/latex] or [latex]\\mathbb{R}^3[\/latex] at a particular point [latex]P[\/latex] is a measure of the \u201coutflowing-ness\u201d of the vector field at [latex]P[\/latex]. If\u00a0[latex]{\\bf{F}}[\/latex]\u00a0represents the velocity of a fluid, then the divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0at [latex]P[\/latex] measures the net rate of change with respect to time of the amount of fluid flowing away from [latex]P[\/latex] (the tendency of the fluid to flow \u201cout of\u201d [latex]P[\/latex]). In particular, if the amount of fluid flowing into\u00a0<em data-effect=\"italics\">P<\/em>\u00a0is the same as the amount flowing out, then the divergence at [latex]P[\/latex] is zero.<\/p>\r\n\r\n<div id=\"fs-id1167793442187\" class=\"ui-has-child-title\" data-type=\"note\">\r\n<div class=\"textbox shaded\">\r\n<h3 style=\"text-align: center;\">definition<\/h3>\r\n\r\n<hr \/>\r\n<p id=\"fs-id1167793931072\">If [latex]{\\bf{F}}\\langle{P},Q,R\\rangle[\/latex] is a vector field in [latex]\\mathbb{R}^3[\/latex] and [latex]P_x[\/latex], [latex]Q_y[\/latex], and [latex]R_z[\/latex] all exist, then the\u00a0<strong><span id=\"6f668e5d-300d-4e6c-aec3-70b59f71fe69_term265\" data-type=\"term\">divergence<\/span><\/strong>\u00a0of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is defined by<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }{\\bf{F}}=P_x+Q_y+R_z=\\frac{\\partial{P}}{\\partial{x}}+\\frac{\\partial{Q}}{\\partial{y}}+\\frac{\\partial{R}}{\\partial{z}}}[\/latex].<\/p>\r\n\r\n<\/div>\r\n<p id=\"fs-id1167793272083\">Note the divergence of a vector field is not a vector field, but a scalar function. In terms of the gradient operator [latex]\\nabla=\\left\\langle\\frac{\\partial}{\\partial{x}},\\frac{\\partial}{\\partial{y}},\\frac{\\partial}{\\partial{z}}\\right\\rangle[\/latex], divergence can be written symbolically as the dot product<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }{\\bf{F}}=\\nabla\\cdot{\\bf{F}}}[\/latex].<\/p>\r\nNote this is merely helpful notation, because the dot product of a vector of operators and a vector of functions is not meaningfully defined given our current definition of dot product.\r\n<p id=\"fs-id1167793394292\">If [latex]{\\bf{F}}\\langle{P},Q\\rangle[\/latex] is a vector field in [latex]\\mathbb{R}^2[\/latex], and [latex]P_x[\/latex] and [latex]Q_y[\/latex] both exist, then the divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is defined similarly as<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }{\\bf{F}}=P_x+Q_y=\\frac{\\partial{P}}{\\partial{x}}+\\frac{\\partial{Q}}{\\partial{y}}=\\nabla\\cdot{\\bf{F}}}[\/latex].<\/p>\r\n<p id=\"fs-id1167793938579\">To illustrate this point, consider the two vector fields in\u00a0Figure 1. At any particular point, the amount flowing in is the same as the amount flowing out, so at every point the \u201coutflowing-ness\u201d of the field is zero. Therefore, we expect the divergence of both fields to be zero, and this is indeed the case, as<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }(\\langle1,2\\rangle)=\\frac{\\partial}{\\partial{x}}(1)+\\frac{\\partial}{\\partial{y}}(2)=0\\text{ and div}(\\langle-y,x\\rangle)=\\frac{\\partial}{\\partial{x}}(-y)+\\frac{\\partial}{\\partial{y}}(x)=0}[\/latex].<\/p>\r\n\r\n<\/div>\r\n<div class=\"os-figure\">[caption id=\"attachment_5325\" align=\"aligncenter\" width=\"794\"]<img class=\"size-full wp-image-5325\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31232847\/6.50.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/52108a91d94bdbb0791e0c04baae71a55a6f9b3d&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;Two images of vector fields A and B in two dimensions. Vector field A has arrows pointing up and to the right. They do not change in size or direction. It has zero divergence. Vector field B has arrows surrounding the origin in a counterclockwise direction. The arrows are larger the closer they are to the origin. It also has zero divergence.&quot; id=&quot;3&quot;&gt;\" width=\"794\" height=\"1103\" \/> Figure 1. (a) Vector field [latex]\\langle1,2\\rangle[\/latex] has zero divergence. (b) Vector field [latex]\\langle-y,x\\rangle[\/latex] also has zero divergence.[\/caption]<\/div>\r\n<div id=\"fs-id1167793442187\" class=\"ui-has-child-title\" data-type=\"note\"><\/div>\r\n<\/div>\r\n<div data-type=\"note\">By contrast, consider radial vector field [latex]{\\bf{R}}(x,y)=\\langle-x,-y\\rangle[\/latex] in\u00a0Figure 2. At any given point, more fluid is flowing in than is flowing out, and therefore the \u201coutgoingness\u201d of the field is negative. We expect the divergence of this field to be negative, and this is indeed the case, as [latex]\\text{div }({\\bf{R}})=\\frac{\\partial}{\\partial{x}}(-x)+\\frac{\\partial}{\\partial{y}}(-y)=-2[\/latex].<\/div>\r\n<div data-type=\"note\"><\/div>\r\n<div data-type=\"note\">\r\n\r\n[caption id=\"attachment_5327\" align=\"aligncenter\" width=\"717\"]<img class=\"size-full wp-image-5327\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31233129\/6.51.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/f8745ea1aed0b6e1cf0169f5f882642308e3c174&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;A vector field in two dimensions with negative divergence. The arrows point in towards the origin in a radial pattern. The closer the arrows are to the origin, the larger they are.&quot; id=&quot;4&quot;&gt;\" width=\"717\" height=\"497\" \/> Figure 2. This vector field has negative divergence.[\/caption]\r\n\r\n<\/div>\r\n<div data-type=\"note\"><\/div>\r\n<div data-type=\"note\">To get a global sense of what divergence is telling us, suppose that a vector field in [latex]\\mathbb{R}^2[\/latex] represents the velocity of a fluid. Imagine taking an elastic circle (a circle with a shape that can be changed by the vector field) and dropping it into a fluid. If the circle maintains its exact area as it flows through the fluid, then the divergence is zero. This would occur for both vector fields in\u00a0Figure 1. On the other hand, if the circle\u2019s shape is distorted so that its area shrinks or expands, then the divergence is not zero. Imagine dropping such an elastic circle into the radial vector field in\u00a0Figure 2\u00a0so that the center of the circle lands at point [latex](3, 3)[\/latex]. The circle would flow toward the origin, and as it did so the front of the circle would travel more slowly than the back, causing the circle to \u201cscrunch\u201d and lose area. This is how you can see a negative divergence.<\/div>\r\n<div data-type=\"note\"><\/div>\r\n<div data-type=\"note\">\r\n<div class=\"textbox exercises\">\r\n<h3>Example: calculating divergence at a Point<\/h3>\r\nIf [latex]{\\bf{F}}(x,y,z)=e^x{\\bf{i}}+yz{\\bf{j}}-y^2{\\bf{k}}[\/latex], then find the divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0at [latex](0, 2, -1)[\/latex].\r\n\r\n[reveal-answer q=\"943504823\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"943504823\"]\r\n<p id=\"fs-id1167793887560\">The divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\partial}{\\partial{x}}\\left(e^x\\right)+\\frac{\\partial}{\\partial{y}}(yz)-\\frac{\\partial}{\\partial{z}}\\left(yz^2\\right)=e^x+z-2yz}[\/latex].<\/p>\r\n<p id=\"fs-id1167793642080\">Therefore, the divergence at [latex](0, 2, -1)[\/latex] is [latex]e^0-1+4=4[\/latex]. If\u00a0[latex]{\\bf{F}}[\/latex]\u00a0represents the velocity of a fluid, then more fluid is flowing out than flowing in at point [latex](0, 2, -1)[\/latex].<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nFind [latex]\\text{div }{\\bf{F}}[\/latex] for [latex]{\\bf{F}}(x,y,z)=\\langle{x}y,5-z^2y,x^2+y^2\\rangle[\/latex].\r\n\r\n[reveal-answer q=\"294776295\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"294776295\"]\r\n\r\n[latex]y-z^{2}[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n\r\n[caption]Watch the following video to see the worked solution to the above Try It[\/caption]\r\n\r\n<center><iframe src=\"\/\/plugin.3playmedia.com\/show?mf=8250323&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=uyHf_JvAiU4&amp;video_target=tpm-plugin-51knnc2v-uyHf_JvAiU4\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\"><\/iframe><\/center><center>You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Calculus+3\/Calc+3+transcripts\/CP6.40_transcript.html\">transcript for \u201cCP 6.40\u201d here (opens in new window).<\/a><\/center>One application for divergence occurs in physics, when working with magnetic fields. A magnetic field is a vector field that models the influence of electric currents and magnetic materials. Physicists use divergence in\u00a0<span id=\"6f668e5d-300d-4e6c-aec3-70b59f71fe69_term266\" class=\"no-emphasis\" data-type=\"term\">Gauss\u2019s law for magnetism<\/span>, which states that if\u00a0[latex]{\\bf{B}}[\/latex]\u00a0is a magnetic field, then [latex]\\nabla\\cdot{\\bf{B}}=0[\/latex]; in other words, the divergence of a magnetic field is zero.\r\n<div class=\"textbox exercises\">\r\n<h3>Example: determining whether a field is magnetic<\/h3>\r\nIs it possible for [latex]{\\bf{F}}(x,y)=\\langle{x}^2y,y-xy^2\\rangle[\/latex] to be a magnetic field?\r\n\r\n[reveal-answer q=\"234057932\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"234057932\"]\r\n<p id=\"fs-id1167794064443\">If\u00a0[latex]{\\bf{F}}[\/latex]\u00a0were magnetic, then its divergence would be zero. The divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\partial}{\\partial{x}}\\left(x^2y\\right)+\\frac{\\partial}{\\partial{y}}\\left(y-xy^2\\right)=2xy+1-2xy=1}[\/latex].<\/p>\r\n<p id=\"fs-id1167794059031\">and therefore\u00a0[latex]{\\bf{F}}[\/latex]\u00a0cannot model a magnetic field (Figure 3).<\/p>\r\n\r\n[caption id=\"attachment_5328\" align=\"aligncenter\" width=\"717\"]<img class=\"size-full wp-image-5328\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31233242\/6.52.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/8012ae03cada4cfa516ccb68746e2005e677e07c&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;A vector field in two dimensions with divergence equal to 1. The arrows are quite flat near the x axis and vertical near the y axis. They seem to asymptotically approach the axes in quadrants 2 and 4, pointing up and to the right in quadrant 2 and down and to the left in quadrant 4. In quadrant 1, they start by pointing up and to the right close to the y axis, but they soon shift to pointing down and to the right. In quadrant 3, they start by pointing down and to the left close to the y axis, bu they soon shift to pointing up and to the left. The closer the arrows are to the origin, the shorter they are.&quot; id=&quot;8&quot;&gt;\" width=\"717\" height=\"572\" \/> Figure 3. The divergence of vector field [latex]{\\bf{F}}(x,y)=\\langle{x}^2y,y-xy^2\\rangle[\/latex] is one, so it cannot model a magnetic field.[\/caption][\/hidden-answer]<\/div>\r\nAnother application for divergence is detecting whether a field is source free. Recall that a source-free field is a vector field that has a stream function; equivalently, a source-free field is a field with a flux that is zero along any closed curve. The next two theorems say that, under certain conditions, source-free vector fields are precisely the vector fields with zero divergence.\r\n\r\n<\/div>\r\n<div data-type=\"note\">\r\n<div class=\"textbox shaded\">\r\n<h3 style=\"text-align: center;\">theorem: divergence of a source-free vector field<\/h3>\r\n\r\n<hr \/>\r\n\r\nIf [latex]{\\bf{F}}=\\langle{P},Q\\rangle[\/latex] is a source-free continuous vector field with differentiable component functions, then [latex]\\text{div }{\\bf{F}}=0[\/latex].\r\n\r\n<\/div>\r\n<h3 data-type=\"title\">Proof<\/h3>\r\n<p id=\"fs-id1167793628157\">Since\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is source free, there is a function [latex]g(x, y)[\/latex] with [latex]g_y=P[\/latex] and [latex]-g_x=Q[\/latex]. Therefore, [latex]{\\bf{F}}=\\langle{g}_y,-g_x\\rangle[\/latex] and [latex]\\text{div }{\\bf{F}}=g_{yx}-g_{xy}=0[\/latex] by Clairaut\u2019s theorem.<\/p>\r\n[latex]_\\blacksquare[\/latex]\r\n\r\nThe converse of\u00a0Divergence of a Source-Free Vector Field Theorem\u00a0is true on simply connected regions, but the proof is too technical to include here. Thus, we have the following theorem, which can test whether a vector field in [latex]\\mathbb{R}^2[\/latex] is source free.\r\n\r\n<\/div>\r\n<div data-type=\"note\">\r\n<div class=\"textbox shaded\">\r\n<h3 style=\"text-align: center;\">Theorem: divergence test for source-free vector fields<\/h3>\r\n\r\n<hr \/>\r\n\r\nLet [latex]{\\bf{F}}=\\langle{P},Q\\rangle[\/latex] be a continuous vector field with differentiable component functions with a domain that is simply connected. Then, [latex]\\text{div }{\\bf{F}}=0[\/latex] if and only if\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is source free.\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: determining whether a field is Source free<\/h3>\r\nIs field [latex]{\\bf{F}}(x,t)=\\langle{x}^2y,5-xy^2\\rangle[\/latex] source free?\r\n\r\n[reveal-answer q=\"132854489\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"132854489\"]\r\n<p id=\"fs-id1167793895785\">Note the domain of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is [latex]\\mathbb{R}^2[\/latex], which is simply connected. Furthermore,\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is continuous with differentiable component functions. Therefore, we can use\u00a0Divergence Test for Source-Free Vector Fields Theorem\u00a0to analyze\u00a0[latex]{\\bf{F}}[\/latex]. The divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\partial}{\\partial{x}}\\left(x^2y\\right)+\\frac{\\partial}{\\partial{y}}\\left(5-xy^2\\right)=2xy-2xy=0}[\/latex].<\/p>\r\n<p id=\"fs-id1167793579555\">Therefore,\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is source free by\u00a0Divergence Test for Source-Free Vector Fields Theorem.<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nLet [latex]{\\bf{F}}(x,y)=\\langle-ay,bx\\rangle[\/latex] be a rotational field where [latex]a[\/latex] and [latex]b[\/latex] are positive constants. Is\u00a0[latex]{\\bf{F}}[\/latex]\u00a0source free?\r\n\r\n[reveal-answer q=\"927458210\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"927458210\"]\r\n\r\nYes.\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<p id=\"fs-id1167793950331\">Recall that the flux form of Green\u2019s theorem says that<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\oint_C{\\bf{F}}\\cdot{\\bf{N}}ds=\\displaystyle\\iint_DP_x+Q_ydA}[\/latex],<\/p>\r\n<p id=\"fs-id1167793618969\">where [latex]C[\/latex] is a simple closed curve and [latex]D[\/latex] is the region enclosed by [latex]C[\/latex]. Since [latex]P_x+Q_y=\\text{div }{\\bf{F}}[\/latex], Green\u2019s theorem is sometimes written as<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\oint_C{\\bf{F}}\\cdot{\\bf{N}}ds=\\displaystyle\\iint_D\\text{div }{\\bf{F}}dA}[\/latex].<\/p>\r\n<p id=\"fs-id1167794168799\">Therefore, Green\u2019s theorem can be written in terms of divergence. If we think of divergence as a derivative of sorts, then Green\u2019s theorem says the \u201cderivative\u201d of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0on a region can be translated into a line integral of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0along the boundary of the region. This is analogous to the Fundamental Theorem of Calculus, in which the derivative of a function [latex]f[\/latex] on a line segment [latex][a,b][\/latex] can be translated into a statement about [latex]f[\/latex] on the boundary of [latex][a,b][\/latex]. Using divergence, we can see that Green\u2019s theorem is a higher-dimensional analog of the Fundamental Theorem of Calculus.<\/p>\r\n<p id=\"fs-id1167793604548\">We can use all of what we have learned in the application of divergence. Let\u00a0[latex]{\\bf{v}}[\/latex] be a vector field modeling the velocity of a fluid. Since the divergence of[latex]{\\bf{v}}[\/latex] at point [latex]P[\/latex] measures the \u201coutflowing-ness\u201d of the fluid at [latex]P[\/latex], [latex]\\text{div }{\\bf{v}}(P)&gt;0[\/latex] implies that more fluid is flowing out of [latex]P[\/latex] than flowing in. Similarly, [latex]\\text{div }{\\bf{v}}(P)&lt;0[\/latex] implies the more fluid is flowing in to [latex]P[\/latex] than is flowing out, and [latex]\\text{div }{\\bf{v}}(P)=0[\/latex] implies the same amount of fluid is flowing in as flowing out.<\/p>\r\n\r\n<div id=\"fs-id1167793508391\" class=\"ui-has-child-title\" data-type=\"example\">\r\n<div class=\"textbox exercises\">\r\n<h3>Example: determining the flow of a fluid<\/h3>\r\nSuppose [latex]{\\bf{v}}(x,y)=\\langle-xy,y\\rangle[\/latex], [latex]y&gt;0[\/latex] models the flow of a fluid. Is more fluid flowing into point [latex](1, 4)[\/latex] than flowing out?\r\n\r\n[reveal-answer q=\"238742098\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"238742098\"]\r\n<p id=\"fs-id1167793912351\">To determine whether more fluid is flowing into [latex](1, 4)[\/latex] than is flowing out, we calculate the divergence of\u00a0[latex]{\\bf{v}}[\/latex]\u00a0at [latex](1, 4)[\/latex]:<\/p>\r\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }({\\bf{v}})=\\frac{\\partial}{\\partial{x}}(-xy)+\\frac{\\partial}{\\partial{y}}(y)=-y+1}[\/latex].<\/p>\r\n<p id=\"fs-id1167793424488\">To find the divergence at [latex](1, 4)[\/latex], substitute the point into the divergence: [latex]-4+1=-3[\/latex]. Since the divergence of\u00a0[latex]{\\bf{v}}[\/latex]\u00a0at [latex](1, 4)[\/latex] is negative, more fluid is flowing in than flowing out (Figure 4).<\/p>\r\n\r\n[caption id=\"attachment_5329\" align=\"aligncenter\" width=\"867\"]<img class=\"size-full wp-image-5329\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31233419\/6.53.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/c873a5e24f1beb8a62b6a931632bf9f238dc2475&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;A vector field in two dimensions with negative divergence at (1,4). The arrows are very flat but become more vertical closer to the y axis. Above the x axis, the arrows point up and towards the y axis on either side of it. Below the x axis, the arrows point down and away from the y axis on either side of it.&quot; id=&quot;14&quot;&gt;\" width=\"867\" height=\"497\" \/> Figure 4. Vector field [latex]{\\bf{v}}(x,y)=\\langle-xy,y\\rangle[\/latex] has negative divergence at [latex](1, 4)[\/latex].[\/caption][\/hidden-answer]<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nFor vector field [latex]{\\bf{v}}(x,y)=\\langle-xy,y\\rangle[\/latex], [latex]y&gt;0[\/latex] find all points [latex]P[\/latex] such that the amount of fluid flowing in to [latex]P[\/latex] equals the amount of fluid flowing out of [latex]P[\/latex].\r\n\r\n[reveal-answer q=\"468322501\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"468322501\"]\r\n\r\nAll points on line [latex]y=1[\/latex].\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<\/div>\r\n<\/div>","rendered":"<div data-type=\"note\">\n<div class=\"textbox learning-objectives\">\n<h3>Learning Objectives<\/h3>\n<ul class=\"os-abstract\">\n<li><span class=\"os-abstract-content\">Determine divergence from the formula for a given vector field.<\/span><\/li>\n<\/ul>\n<\/div>\n<p id=\"fs-id1167794213418\">Divergence is an operation on a vector field that tells us how the field behaves toward or away from a point. Locally, the divergence of a vector field\u00a0[latex]{\\bf{F}}[\/latex]\u00a0in [latex]\\mathbb{R}^2[\/latex] or [latex]\\mathbb{R}^3[\/latex] at a particular point [latex]P[\/latex] is a measure of the \u201coutflowing-ness\u201d of the vector field at [latex]P[\/latex]. If\u00a0[latex]{\\bf{F}}[\/latex]\u00a0represents the velocity of a fluid, then the divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0at [latex]P[\/latex] measures the net rate of change with respect to time of the amount of fluid flowing away from [latex]P[\/latex] (the tendency of the fluid to flow \u201cout of\u201d [latex]P[\/latex]). In particular, if the amount of fluid flowing into\u00a0<em data-effect=\"italics\">P<\/em>\u00a0is the same as the amount flowing out, then the divergence at [latex]P[\/latex] is zero.<\/p>\n<div id=\"fs-id1167793442187\" class=\"ui-has-child-title\" data-type=\"note\">\n<div class=\"textbox shaded\">\n<h3 style=\"text-align: center;\">definition<\/h3>\n<hr \/>\n<p id=\"fs-id1167793931072\">If [latex]{\\bf{F}}\\langle{P},Q,R\\rangle[\/latex] is a vector field in [latex]\\mathbb{R}^3[\/latex] and [latex]P_x[\/latex], [latex]Q_y[\/latex], and [latex]R_z[\/latex] all exist, then the\u00a0<strong><span id=\"6f668e5d-300d-4e6c-aec3-70b59f71fe69_term265\" data-type=\"term\">divergence<\/span><\/strong>\u00a0of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is defined by<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }{\\bf{F}}=P_x+Q_y+R_z=\\frac{\\partial{P}}{\\partial{x}}+\\frac{\\partial{Q}}{\\partial{y}}+\\frac{\\partial{R}}{\\partial{z}}}[\/latex].<\/p>\n<\/div>\n<p id=\"fs-id1167793272083\">Note the divergence of a vector field is not a vector field, but a scalar function. In terms of the gradient operator [latex]\\nabla=\\left\\langle\\frac{\\partial}{\\partial{x}},\\frac{\\partial}{\\partial{y}},\\frac{\\partial}{\\partial{z}}\\right\\rangle[\/latex], divergence can be written symbolically as the dot product<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }{\\bf{F}}=\\nabla\\cdot{\\bf{F}}}[\/latex].<\/p>\n<p>Note this is merely helpful notation, because the dot product of a vector of operators and a vector of functions is not meaningfully defined given our current definition of dot product.<\/p>\n<p id=\"fs-id1167793394292\">If [latex]{\\bf{F}}\\langle{P},Q\\rangle[\/latex] is a vector field in [latex]\\mathbb{R}^2[\/latex], and [latex]P_x[\/latex] and [latex]Q_y[\/latex] both exist, then the divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is defined similarly as<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }{\\bf{F}}=P_x+Q_y=\\frac{\\partial{P}}{\\partial{x}}+\\frac{\\partial{Q}}{\\partial{y}}=\\nabla\\cdot{\\bf{F}}}[\/latex].<\/p>\n<p id=\"fs-id1167793938579\">To illustrate this point, consider the two vector fields in\u00a0Figure 1. At any particular point, the amount flowing in is the same as the amount flowing out, so at every point the \u201coutflowing-ness\u201d of the field is zero. Therefore, we expect the divergence of both fields to be zero, and this is indeed the case, as<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }(\\langle1,2\\rangle)=\\frac{\\partial}{\\partial{x}}(1)+\\frac{\\partial}{\\partial{y}}(2)=0\\text{ and div}(\\langle-y,x\\rangle)=\\frac{\\partial}{\\partial{x}}(-y)+\\frac{\\partial}{\\partial{y}}(x)=0}[\/latex].<\/p>\n<\/div>\n<div class=\"os-figure\">\n<div id=\"attachment_5325\" style=\"width: 804px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5325\" class=\"size-full wp-image-5325\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31232847\/6.50.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/52108a91d94bdbb0791e0c04baae71a55a6f9b3d&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;Two images of vector fields A and B in two dimensions. Vector field A has arrows pointing up and to the right. They do not change in size or direction. It has zero divergence. Vector field B has arrows surrounding the origin in a counterclockwise direction. The arrows are larger the closer they are to the origin. It also has zero divergence.&quot; id=&quot;3&quot;&gt;\" width=\"794\" height=\"1103\" \/><\/p>\n<p id=\"caption-attachment-5325\" class=\"wp-caption-text\">Figure 1. (a) Vector field [latex]\\langle1,2\\rangle[\/latex] has zero divergence. (b) Vector field [latex]\\langle-y,x\\rangle[\/latex] also has zero divergence.<\/p>\n<\/div>\n<\/div>\n<div id=\"fs-id1167793442187\" class=\"ui-has-child-title\" data-type=\"note\"><\/div>\n<\/div>\n<div data-type=\"note\">By contrast, consider radial vector field [latex]{\\bf{R}}(x,y)=\\langle-x,-y\\rangle[\/latex] in\u00a0Figure 2. At any given point, more fluid is flowing in than is flowing out, and therefore the \u201coutgoingness\u201d of the field is negative. We expect the divergence of this field to be negative, and this is indeed the case, as [latex]\\text{div }({\\bf{R}})=\\frac{\\partial}{\\partial{x}}(-x)+\\frac{\\partial}{\\partial{y}}(-y)=-2[\/latex].<\/div>\n<div data-type=\"note\"><\/div>\n<div data-type=\"note\">\n<div id=\"attachment_5327\" style=\"width: 727px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5327\" class=\"size-full wp-image-5327\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31233129\/6.51.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/f8745ea1aed0b6e1cf0169f5f882642308e3c174&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;A vector field in two dimensions with negative divergence. The arrows point in towards the origin in a radial pattern. The closer the arrows are to the origin, the larger they are.&quot; id=&quot;4&quot;&gt;\" width=\"717\" height=\"497\" \/><\/p>\n<p id=\"caption-attachment-5327\" class=\"wp-caption-text\">Figure 2. This vector field has negative divergence.<\/p>\n<\/div>\n<\/div>\n<div data-type=\"note\"><\/div>\n<div data-type=\"note\">To get a global sense of what divergence is telling us, suppose that a vector field in [latex]\\mathbb{R}^2[\/latex] represents the velocity of a fluid. Imagine taking an elastic circle (a circle with a shape that can be changed by the vector field) and dropping it into a fluid. If the circle maintains its exact area as it flows through the fluid, then the divergence is zero. This would occur for both vector fields in\u00a0Figure 1. On the other hand, if the circle\u2019s shape is distorted so that its area shrinks or expands, then the divergence is not zero. Imagine dropping such an elastic circle into the radial vector field in\u00a0Figure 2\u00a0so that the center of the circle lands at point [latex](3, 3)[\/latex]. The circle would flow toward the origin, and as it did so the front of the circle would travel more slowly than the back, causing the circle to \u201cscrunch\u201d and lose area. This is how you can see a negative divergence.<\/div>\n<div data-type=\"note\"><\/div>\n<div data-type=\"note\">\n<div class=\"textbox exercises\">\n<h3>Example: calculating divergence at a Point<\/h3>\n<p>If [latex]{\\bf{F}}(x,y,z)=e^x{\\bf{i}}+yz{\\bf{j}}-y^2{\\bf{k}}[\/latex], then find the divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0at [latex](0, 2, -1)[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q943504823\">Show Solution<\/span><\/p>\n<div id=\"q943504823\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167793887560\">The divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\partial}{\\partial{x}}\\left(e^x\\right)+\\frac{\\partial}{\\partial{y}}(yz)-\\frac{\\partial}{\\partial{z}}\\left(yz^2\\right)=e^x+z-2yz}[\/latex].<\/p>\n<p id=\"fs-id1167793642080\">Therefore, the divergence at [latex](0, 2, -1)[\/latex] is [latex]e^0-1+4=4[\/latex]. If\u00a0[latex]{\\bf{F}}[\/latex]\u00a0represents the velocity of a fluid, then more fluid is flowing out than flowing in at point [latex](0, 2, -1)[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>Find [latex]\\text{div }{\\bf{F}}[\/latex] for [latex]{\\bf{F}}(x,y,z)=\\langle{x}y,5-z^2y,x^2+y^2\\rangle[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q294776295\">Show Solution<\/span><\/p>\n<div id=\"q294776295\" class=\"hidden-answer\" style=\"display: none\">\n<p>[latex]y-z^{2}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Watch the following video to see the worked solution to the above Try It<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/plugin.3playmedia.com\/show?mf=8250323&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=uyHf_JvAiU4&amp;video_target=tpm-plugin-51knnc2v-uyHf_JvAiU4\" width=\"800px\" height=\"450px\" frameborder=\"0\" marginwidth=\"0px\" marginheight=\"0px\"><\/iframe><\/div>\n<div style=\"text-align: center;\">You can view the <a href=\"https:\/\/course-building.s3.us-west-2.amazonaws.com\/Calculus+3\/Calc+3+transcripts\/CP6.40_transcript.html\">transcript for \u201cCP 6.40\u201d here (opens in new window).<\/a><\/div>\n<p>One application for divergence occurs in physics, when working with magnetic fields. A magnetic field is a vector field that models the influence of electric currents and magnetic materials. Physicists use divergence in\u00a0<span id=\"6f668e5d-300d-4e6c-aec3-70b59f71fe69_term266\" class=\"no-emphasis\" data-type=\"term\">Gauss\u2019s law for magnetism<\/span>, which states that if\u00a0[latex]{\\bf{B}}[\/latex]\u00a0is a magnetic field, then [latex]\\nabla\\cdot{\\bf{B}}=0[\/latex]; in other words, the divergence of a magnetic field is zero.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: determining whether a field is magnetic<\/h3>\n<p>Is it possible for [latex]{\\bf{F}}(x,y)=\\langle{x}^2y,y-xy^2\\rangle[\/latex] to be a magnetic field?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q234057932\">Show Solution<\/span><\/p>\n<div id=\"q234057932\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167794064443\">If\u00a0[latex]{\\bf{F}}[\/latex]\u00a0were magnetic, then its divergence would be zero. The divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\partial}{\\partial{x}}\\left(x^2y\\right)+\\frac{\\partial}{\\partial{y}}\\left(y-xy^2\\right)=2xy+1-2xy=1}[\/latex].<\/p>\n<p id=\"fs-id1167794059031\">and therefore\u00a0[latex]{\\bf{F}}[\/latex]\u00a0cannot model a magnetic field (Figure 3).<\/p>\n<div id=\"attachment_5328\" style=\"width: 727px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5328\" class=\"size-full wp-image-5328\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31233242\/6.52.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/8012ae03cada4cfa516ccb68746e2005e677e07c&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;A vector field in two dimensions with divergence equal to 1. The arrows are quite flat near the x axis and vertical near the y axis. They seem to asymptotically approach the axes in quadrants 2 and 4, pointing up and to the right in quadrant 2 and down and to the left in quadrant 4. In quadrant 1, they start by pointing up and to the right close to the y axis, but they soon shift to pointing down and to the right. In quadrant 3, they start by pointing down and to the left close to the y axis, bu they soon shift to pointing up and to the left. The closer the arrows are to the origin, the shorter they are.&quot; id=&quot;8&quot;&gt;\" width=\"717\" height=\"572\" \/><\/p>\n<p id=\"caption-attachment-5328\" class=\"wp-caption-text\">Figure 3. The divergence of vector field [latex]{\\bf{F}}(x,y)=\\langle{x}^2y,y-xy^2\\rangle[\/latex] is one, so it cannot model a magnetic field.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Another application for divergence is detecting whether a field is source free. Recall that a source-free field is a vector field that has a stream function; equivalently, a source-free field is a field with a flux that is zero along any closed curve. The next two theorems say that, under certain conditions, source-free vector fields are precisely the vector fields with zero divergence.<\/p>\n<\/div>\n<div data-type=\"note\">\n<div class=\"textbox shaded\">\n<h3 style=\"text-align: center;\">theorem: divergence of a source-free vector field<\/h3>\n<hr \/>\n<p>If [latex]{\\bf{F}}=\\langle{P},Q\\rangle[\/latex] is a source-free continuous vector field with differentiable component functions, then [latex]\\text{div }{\\bf{F}}=0[\/latex].<\/p>\n<\/div>\n<h3 data-type=\"title\">Proof<\/h3>\n<p id=\"fs-id1167793628157\">Since\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is source free, there is a function [latex]g(x, y)[\/latex] with [latex]g_y=P[\/latex] and [latex]-g_x=Q[\/latex]. Therefore, [latex]{\\bf{F}}=\\langle{g}_y,-g_x\\rangle[\/latex] and [latex]\\text{div }{\\bf{F}}=g_{yx}-g_{xy}=0[\/latex] by Clairaut\u2019s theorem.<\/p>\n<p>[latex]_\\blacksquare[\/latex]<\/p>\n<p>The converse of\u00a0Divergence of a Source-Free Vector Field Theorem\u00a0is true on simply connected regions, but the proof is too technical to include here. Thus, we have the following theorem, which can test whether a vector field in [latex]\\mathbb{R}^2[\/latex] is source free.<\/p>\n<\/div>\n<div data-type=\"note\">\n<div class=\"textbox shaded\">\n<h3 style=\"text-align: center;\">Theorem: divergence test for source-free vector fields<\/h3>\n<hr \/>\n<p>Let [latex]{\\bf{F}}=\\langle{P},Q\\rangle[\/latex] be a continuous vector field with differentiable component functions with a domain that is simply connected. Then, [latex]\\text{div }{\\bf{F}}=0[\/latex] if and only if\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is source free.<\/p>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: determining whether a field is Source free<\/h3>\n<p>Is field [latex]{\\bf{F}}(x,t)=\\langle{x}^2y,5-xy^2\\rangle[\/latex] source free?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q132854489\">Show Solution<\/span><\/p>\n<div id=\"q132854489\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167793895785\">Note the domain of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is [latex]\\mathbb{R}^2[\/latex], which is simply connected. Furthermore,\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is continuous with differentiable component functions. Therefore, we can use\u00a0Divergence Test for Source-Free Vector Fields Theorem\u00a0to analyze\u00a0[latex]{\\bf{F}}[\/latex]. The divergence of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\frac{\\partial}{\\partial{x}}\\left(x^2y\\right)+\\frac{\\partial}{\\partial{y}}\\left(5-xy^2\\right)=2xy-2xy=0}[\/latex].<\/p>\n<p id=\"fs-id1167793579555\">Therefore,\u00a0[latex]{\\bf{F}}[\/latex]\u00a0is source free by\u00a0Divergence Test for Source-Free Vector Fields Theorem.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>Let [latex]{\\bf{F}}(x,y)=\\langle-ay,bx\\rangle[\/latex] be a rotational field where [latex]a[\/latex] and [latex]b[\/latex] are positive constants. Is\u00a0[latex]{\\bf{F}}[\/latex]\u00a0source free?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q927458210\">Show Solution<\/span><\/p>\n<div id=\"q927458210\" class=\"hidden-answer\" style=\"display: none\">\n<p>Yes.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p id=\"fs-id1167793950331\">Recall that the flux form of Green\u2019s theorem says that<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\oint_C{\\bf{F}}\\cdot{\\bf{N}}ds=\\displaystyle\\iint_DP_x+Q_ydA}[\/latex],<\/p>\n<p id=\"fs-id1167793618969\">where [latex]C[\/latex] is a simple closed curve and [latex]D[\/latex] is the region enclosed by [latex]C[\/latex]. Since [latex]P_x+Q_y=\\text{div }{\\bf{F}}[\/latex], Green\u2019s theorem is sometimes written as<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\oint_C{\\bf{F}}\\cdot{\\bf{N}}ds=\\displaystyle\\iint_D\\text{div }{\\bf{F}}dA}[\/latex].<\/p>\n<p id=\"fs-id1167794168799\">Therefore, Green\u2019s theorem can be written in terms of divergence. If we think of divergence as a derivative of sorts, then Green\u2019s theorem says the \u201cderivative\u201d of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0on a region can be translated into a line integral of\u00a0[latex]{\\bf{F}}[\/latex]\u00a0along the boundary of the region. This is analogous to the Fundamental Theorem of Calculus, in which the derivative of a function [latex]f[\/latex] on a line segment [latex][a,b][\/latex] can be translated into a statement about [latex]f[\/latex] on the boundary of [latex][a,b][\/latex]. Using divergence, we can see that Green\u2019s theorem is a higher-dimensional analog of the Fundamental Theorem of Calculus.<\/p>\n<p id=\"fs-id1167793604548\">We can use all of what we have learned in the application of divergence. Let\u00a0[latex]{\\bf{v}}[\/latex] be a vector field modeling the velocity of a fluid. Since the divergence of[latex]{\\bf{v}}[\/latex] at point [latex]P[\/latex] measures the \u201coutflowing-ness\u201d of the fluid at [latex]P[\/latex], [latex]\\text{div }{\\bf{v}}(P)>0[\/latex] implies that more fluid is flowing out of [latex]P[\/latex] than flowing in. Similarly, [latex]\\text{div }{\\bf{v}}(P)<0[\/latex] implies the more fluid is flowing in to [latex]P[\/latex] than is flowing out, and [latex]\\text{div }{\\bf{v}}(P)=0[\/latex] implies the same amount of fluid is flowing in as flowing out.<\/p>\n<div id=\"fs-id1167793508391\" class=\"ui-has-child-title\" data-type=\"example\">\n<div class=\"textbox exercises\">\n<h3>Example: determining the flow of a fluid<\/h3>\n<p>Suppose [latex]{\\bf{v}}(x,y)=\\langle-xy,y\\rangle[\/latex], [latex]y>0[\/latex] models the flow of a fluid. Is more fluid flowing into point [latex](1, 4)[\/latex] than flowing out?<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q238742098\">Show Solution<\/span><\/p>\n<div id=\"q238742098\" class=\"hidden-answer\" style=\"display: none\">\n<p id=\"fs-id1167793912351\">To determine whether more fluid is flowing into [latex](1, 4)[\/latex] than is flowing out, we calculate the divergence of\u00a0[latex]{\\bf{v}}[\/latex]\u00a0at [latex](1, 4)[\/latex]:<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\text{div }({\\bf{v}})=\\frac{\\partial}{\\partial{x}}(-xy)+\\frac{\\partial}{\\partial{y}}(y)=-y+1}[\/latex].<\/p>\n<p id=\"fs-id1167793424488\">To find the divergence at [latex](1, 4)[\/latex], substitute the point into the divergence: [latex]-4+1=-3[\/latex]. Since the divergence of\u00a0[latex]{\\bf{v}}[\/latex]\u00a0at [latex](1, 4)[\/latex] is negative, more fluid is flowing in than flowing out (Figure 4).<\/p>\n<div id=\"attachment_5329\" style=\"width: 877px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5329\" class=\"size-full wp-image-5329\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/31233419\/6.53.jpg\" alt=\"&lt;img src=&quot;\/apps\/archive\/20220422.171947\/resources\/c873a5e24f1beb8a62b6a931632bf9f238dc2475&quot; data-media-type=&quot;image\/jpeg&quot; alt=&quot;A vector field in two dimensions with negative divergence at (1,4). The arrows are very flat but become more vertical closer to the y axis. Above the x axis, the arrows point up and towards the y axis on either side of it. Below the x axis, the arrows point down and away from the y axis on either side of it.&quot; id=&quot;14&quot;&gt;\" width=\"867\" height=\"497\" \/><\/p>\n<p id=\"caption-attachment-5329\" class=\"wp-caption-text\">Figure 4. Vector field [latex]{\\bf{v}}(x,y)=\\langle-xy,y\\rangle[\/latex] has negative divergence at [latex](1, 4)[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>For vector field [latex]{\\bf{v}}(x,y)=\\langle-xy,y\\rangle[\/latex], [latex]y>0[\/latex] find all points [latex]P[\/latex] such that the amount of fluid flowing in to [latex]P[\/latex] equals the amount of fluid flowing out of [latex]P[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q468322501\">Show Solution<\/span><\/p>\n<div id=\"q468322501\" class=\"hidden-answer\" style=\"display: none\">\n<p>All points on line [latex]y=1[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-5498\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>CP 6.40. <strong>Authored by<\/strong>: Ryan Melton. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Calculus Volume 3. <strong>Authored by<\/strong>: Gilbert Strang, Edwin (Jed) Herman. <strong>Provided by<\/strong>: OpenStax. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction\">https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">CC BY-NC-SA: Attribution-NonCommercial-ShareAlike<\/a><\/em>. <strong>License Terms<\/strong>: Access for free at https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction<\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":349141,"menu_order":21,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Calculus Volume 3\",\"author\":\"Gilbert Strang, Edwin (Jed) Herman\",\"organization\":\"OpenStax\",\"url\":\"https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction\",\"project\":\"\",\"license\":\"cc-by-nc-sa\",\"license_terms\":\"Access for free at https:\/\/openstax.org\/books\/calculus-volume-3\/pages\/1-introduction\"},{\"type\":\"original\",\"description\":\"CP 6.40\",\"author\":\"Ryan Melton\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-5498","chapter","type-chapter","status-publish","hentry"],"part":24,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/5498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/users\/349141"}],"version-history":[{"count":12,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/5498\/revisions"}],"predecessor-version":[{"id":6113,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/5498\/revisions\/6113"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/parts\/24"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/5498\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/media?parent=5498"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapter-type?post=5498"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/contributor?post=5498"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/license?post=5498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}