{"id":1062,"date":"2021-11-01T19:11:16","date_gmt":"2021-11-01T19:11:16","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/calculus3\/?post_type=chapter&#038;p=1062"},"modified":"2022-11-01T04:14:47","modified_gmt":"2022-11-01T04:14:47","slug":"iterated-integrals","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/calculus3\/chapter\/iterated-integrals\/","title":{"raw":"Iterated Integrals","rendered":"Iterated Integrals"},"content":{"raw":"<div class=\"textbox learning-objectives\">\r\n<h3>Learning Objectives<\/h3>\r\n<ul>\r\n \t<li><span class=\"os-abstract-content\">Evaluate a double integral over a rectangular region by writing it as an iterated integral.<\/span><\/li>\r\n<\/ul>\r\n<\/div>\r\n<p id=\"fs-id1167793495499\">So far, we have seen how to set up a double integral and how to obtain an approximate value for it. We can also imagine that evaluating double integrals by using the definition can be a very lengthy process if we choose larger values for [latex]m[\/latex] and [latex]n[\/latex]. Therefore, we need a practical and convenient technique for computing double integrals. In other words, we need to learn how to compute double integrals without employing the definition that uses limits and double sums.<\/p>\r\n<p id=\"fs-id1167793636376\">The basic idea is that the evaluation becomes easier if we can break a double integral into single integrals by integrating first with respect to one variable and then with respect to the other. The key tool we need is called an iterated integral.<\/p>\r\n\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-id1167793636387\">Assume [latex]a[\/latex], [latex]b[\/latex], [latex]c[\/latex], and [latex]d[\/latex] are real numbers. We define an\u00a0<strong><span id=\"d9da6d44-3ba3-4a90-adbc-dec26572e480_term207\" data-type=\"term\">iterated integral<\/span><\/strong>\u00a0for a function [latex](f(x, y)[\/latex] over the rectangular region [latex]R = [a,b] \\times [c,d][\/latex] as<\/p>\r\n\r\n<ol id=\"fs-id1167793432459\" type=\"a\">\r\n \t<li style=\"text-align: center;\">[latex]\\large{\\displaystyle\\int_a^b\\int_c^d{f(x,y)dydx} = \\displaystyle\\int_a^b\\left[\\displaystyle\\int_c^d{f(x,y)dy}\\right] dx}[\/latex]<\/li>\r\n \t<li style=\"text-align: center;\">[latex]\\large{\\displaystyle\\int_c^d\\int_a^b{f(x,y)dxdy} = \\displaystyle\\int_c^d\\left[\\displaystyle\\int_a^b{f(x,y)dx}\\right] dy}[\/latex]<\/li>\r\n<\/ol>\r\n<\/div>\r\nThe notation [latex]\\displaystyle\\int_a^b\\left[\\displaystyle\\int_c^d{f(x,y)dy}\\right] dx[\/latex] means that we integrate [latex]f(x,y)[\/latex] with respect to [latex]y[\/latex] while holding [latex]x[\/latex] constant. Similarly, the notation [latex]\\displaystyle\\int_c^d\\left[\\displaystyle\\int_a^b{f(x,y)dx}\\right] dy[\/latex] means that we integrate [latex]f(x,y)[\/latex] with respect to [latex]x[\/latex] while holding [latex]y[\/latex] constant. The fact that double integrals can be split into iterated integrals is expressed in Fubini\u2019s theorem. Think of this theorem as an essential tool for evaluating double integrals.\r\n<div class=\"textbox shaded\">\r\n<h3 style=\"text-align: center;\">Theorem: fubini's Theorem<\/h3>\r\n\r\n<hr \/>\r\n<p id=\"fs-id1167793423566\">Suppose that [latex]f(x,y)[\/latex] is a function of two variables that is continuous over a rectangular region [latex]{R} = {\\left \\{ (x,y)\\in \\mathbb{R}^2 \\mid a \\leq x \\leq b,c \\leq y \\leq d \\right \\}}[\/latex]. Then we see from\u00a0Figure 1\u00a0that the double integral of [latex]f[\/latex] over the region equals an iterated integral,<\/p>\r\n<p style=\"text-align: center;\"><span style=\"text-align: center; white-space: nowrap; word-spacing: normal;\">[latex]\\large{\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}=\\underset{R}{\\displaystyle\\iint}{f(x,y)dxdy}=\\displaystyle\\int_a^b\\displaystyle\\int_c^d{f(x,y)dydx}=\\displaystyle\\int_c^d\\displaystyle\\int_a^b{f(x,y)dxdy}}[\/latex].<\/span><\/p>\r\n<span style=\"font-size: 1rem; text-align: initial;\">More generally,\u00a0<\/span><strong style=\"font-size: 1rem; text-align: initial;\"><span id=\"d9da6d44-3ba3-4a90-adbc-dec26572e480_term208\" data-type=\"term\">Fubini\u2019s theorem<\/span><\/strong><span style=\"font-size: 1rem; text-align: initial;\">\u00a0is true if [latex]f[\/latex] is bounded on [latex]R[\/latex] and [latex]f[\/latex] is discontinuous only on a finite number of continuous curves. In other words, [latex]f[\/latex] has to be integrable over [latex]R[\/latex].<\/span>\r\n\r\n<\/div>\r\n[caption id=\"attachment_1307\" align=\"aligncenter\" width=\"940\"]<img class=\"wp-image-1307 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/23142311\/5-1-51.jpeg\" alt=\"This figure consists of two figures marked a and b. In figure a, in xyz space, a surface is shown that is given by the function f(x, y). A point x is chosen on the x axis, and at this point, it it written fix x. From this point, a plane is projected perpendicular to the xy plane along the line with value x. This plane is marked Area A(x), and the entire space under the surface is marked V. Similarly, in figure b, in xyz space, a surface is shown that is given by the function f(x, y). A point y is chosen on the y axis, and at this point, it it written fix y. From this point, a plane is projected perpendicular to the xy plane along the line with value y. This plane is marked Area A(y), and the entire space under the surface is marked V.\" width=\"940\" height=\"511\" \/> Figure 1.\u00a0(a) Integrating first with respect to [latex]y[\/latex] and then with respect to [latex]x[\/latex]\u00a0to find the area\u00a0[latex]A(x)[\/latex]\u00a0and then the volume\u00a0[latex]V[\/latex]; (b) integrating first with respect to\u00a0[latex]x[\/latex] and then with respect to [latex]y[\/latex]\u00a0to find the area\u00a0[latex]A(y)[\/latex] and then the volume\u00a0[latex]V[\/latex].[\/caption]\r\n<div class=\"textbox exercises\">\r\n<h3>Example: using fubini's theorem<\/h3>\r\nUse Fubini\u2019s theorem to compute the double integral [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}[\/latex] where [latex]f(x,y) = x[\/latex] and\u00a0[latex]R = [0,2] \\times [0,1][\/latex].\r\n\r\n[reveal-answer q=\"229222\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"229222\"]\r\n\r\nFubini\u2019s theorem offers an easier way to evaluate the double integral by the use of an iterated integral. Note how the boundary values of the region [latex]R[\/latex] become the upper and lower limits of integration.\r\n\r\n[latex]\\hspace{5cm}\\begin{align}\r\n\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}&amp;=\\underset{R}{\\displaystyle\\iint}{f(x,y)dxdy} \\\\\r\n&amp;=\\displaystyle\\int_{y=0}^{y=1}\\displaystyle\\int_{x=0}^{x=2}xdxdy \\\\\r\n&amp;=\\displaystyle\\int_{y=0}^{y=1}\\left[\\frac{x^2}{2}\\Bigg|_{x=0}^{x=2}\\right]dy \\\\\r\n&amp;=\\displaystyle\\int_{y=0}^{y=1}2dy=2y\\big|_{y=0}^{y=1}=2.\r\n\\end{align}[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nThe double integration in this example is simple enough to use Fubini\u2019s theorem directly, allowing us to convert a double integral into an iterated integral. Consequently, we are now ready to convert all double integrals to iterated integrals and demonstrate how the properties listed earlier can help us evaluate double integrals when the function [latex]f(x, y)[\/latex] is more complex. Note that the order of integration can be changed (see Example \"Switching the Order of Integration\").\r\n<div class=\"textbox exercises\">\r\n<h3>Example: illustrating properties of i and ii<\/h3>\r\nEvaluate the double integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}{(xy-3xy^2)dA}[\/latex] where\u00a0[latex]{R} = {\\left \\{ (x,y) \\mid 0 \\leq x \\leq 2,1 \\leq y \\leq 2 \\right \\}}[\/latex].\r\n\r\n[reveal-answer q=\"200827253\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"200827253\"]\r\n\r\nThis function has two pieces: one piece is [latex]xy[\/latex] and the other is [latex]3xy^{2}[\/latex] Also, the second piece has a constant[latex]3[\/latex]. Notice how we use properties i and ii to help evaluate the double integral.\r\n\r\n[latex]\\begin{align}\r\n&amp;\\,\\,\\,\\,\\,\\,\\,\\,\\underset{R}{\\displaystyle\\iint}{(xy-3xy^2)dA} \\\\\r\n&amp;=\\underset{R}{\\displaystyle\\iint}{(xy)dA+\\underset{R}{\\displaystyle\\iint}{(-3y^2)dA}} &amp;\\quad &amp;\\text{Property i: Integral of a sum is the sum of the integrals.} \\\\\r\n&amp;=\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=2}xydxdy-\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=2}3xy^2dxdy &amp;\\quad &amp;\\text{Convert double integrals to iterated integrals.} \\\\\r\n&amp;=\\displaystyle\\int_{y=1}^{y=2}(\\frac{x^2}{2}y)\\Bigg|_{x=0}^{x=2}dy-3\\displaystyle\\int_{y=1}^{y=2}(\\frac{x^2}{2}y^2)\\Bigg|_{x=0}^{x=2}dy &amp;\\quad &amp;\\text{Integrat with respect to }x,\\text{ holding }y\\text{ constant}. \\\\\r\n\r\n&amp;=\\displaystyle\\int_{y=1}^{y=2}2ydy-\\displaystyle\\int_{y=1}^{y=2}6y^2dy &amp;\\quad &amp;\\text{Property ii: Placing the constant before the integral.} \\\\\r\n\r\n&amp;=2\\displaystyle\\int_1^2ydy-6\\displaystyle\\int_1^2y^2dy &amp;\\quad &amp;\\text{Integrate with respect to }y. \\\\\r\n\r\n&amp;=2\\frac{y^2}{2}\\bigg|_1^2-6\\frac{y^3}{3}\\bigg|_1^2 \\\\\r\n\r\n&amp;=y^2\\bigg|_1^2-2y^3\\bigg|_1^2 \\\\\r\n\r\n&amp;=(4-1)-2(8-1) \\\\\r\n\r\n&amp;=3-2(7)=3-14=-11\r\n\\end{align}[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Illustrating property v<\/h3>\r\nOver the region\u00a0[latex]{R} = {\\left \\{ (x,y) \\mid 1 \\leq x \\leq 3,1 \\leq y \\leq 2 \\right \\}}[\/latex], we have\u00a0[latex]2 \\leq x^2 \\leq y^2 \\leq 13[\/latex]. Find a lower and upper bound for the integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}{(x^2+y^2)dA}[\/latex].\r\n\r\n[reveal-answer q=\"6745231908\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"6745231908\"]\r\n\r\nFor a lower bound, integrate the constant function 2 over the region [latex]R[\/latex]. For an upper bound, integrate the constant function 13 over the region [latex]R[\/latex].\r\n<p style=\"text-align: left;\">[latex]\\large{\\displaystyle\\int_1^2\\displaystyle\\int_1^32dxdy=\\displaystyle\\int_1^2\\left[2x\\bigg|_1^3\\right]dy=\\displaystyle\\int_1^22(2)dy=4y\\bigg|_1^2=4(2-1)=4}[\/latex]<\/p>\r\n<p style=\"text-align: left;\">[latex]\\large{\\displaystyle\\int_1^2\\displaystyle\\int_1^313dxdy=\\displaystyle\\int_1^2\\left[13x\\bigg|_1^3\\right]dy=\\displaystyle\\int_1^213(2)dy=26y\\bigg|_1^2=26(2-1)=26}[\/latex]<\/p>\r\nHence, we obtain\u00a0[latex]4 \\leq \\underset{R}{\\displaystyle\\iint}{(x^2+y^2)dA} \\leq 26[\/latex].\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox exercises\">\r\n<h3>Example: Illustrating property vi<\/h3>\r\nEvaluate the integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}{e^y\\cos xdA}[\/latex] over the region\u00a0[latex]{R} = {\\left \\{ (x,y) \\mid 0 \\leq x \\leq {\\dfrac{\\pi}{2},0} \\leq y \\leq 1 \\right \\}}[\/latex].\r\n\r\n[reveal-answer q=\"611274593\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"611274593\"]\r\n\r\nThis is a great example for property vi because the function [latex]f(x,y)[\/latex] is clearly the product of two single-variable functions [latex]e^y[\/latex] and [latex]cos \\ x[\/latex]. Thus we can split the integral into two parts and then integrate each one as a single-variable integration problem.\r\n\r\n[latex]\\hspace{3cm}\\begin{align}\r\n\r\n\\underset{R}{\\displaystyle\\iint}{e^y\\cos xdA}&amp;=\\displaystyle\\int_0^1\\displaystyle\\int_0^{\\pi\/2}e^y\\cos x \\ dx \\ dy \\\\\r\n\r\n&amp;=\\left(\\displaystyle\\int_0^1e^ydy\\right)\\left(\\displaystyle\\int_0^{\\pi\/2}\\cos xdx\\right) \\\\\r\n\r\n&amp;=\\left(e^y\\bigg|_0^1\\right)\\left(\\sin x\\bigg|_0^{\\pi\/2}\\right) \\\\\r\n\r\n&amp;=e-1\r\n\r\n\\end{align}[\/latex]\r\n\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>Try it<\/h3>\r\na. Use the properties of the double integral and Fubini\u2019s theorem to evaluate the integral\r\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\int_0^1\\int_{-1}^3(3-x+4y) dy\\ dx}[\/latex].<\/p>\r\nb. Show that [latex]0 \\leq \\underset{R}{\\displaystyle\\iint}\\sin \\pi x\\cos\\pi y\\ dA \\leq \\frac{1}{32}[\/latex] where [latex]R = \\left (0,\\frac{1}{4} \\right ) \\left (\\frac{1}{4}, \\frac{1}{2} \\right )[\/latex].\r\n\r\n[reveal-answer q=\"870681\"]Show Solution[\/reveal-answer]\r\n\r\n[hidden-answer a=\"870681\"]\r\n\r\n<span style=\"font-size: 1rem; text-align: initial;\">a. 26 <\/span>\r\n\r\n<span style=\"font-size: 1rem; text-align: initial;\">b. Answers may vary.<\/span>\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=8197096&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=wf1Iv3IhDGI&amp;video_target=tpm-plugin-9dqvee1r-wf1Iv3IhDGI\" 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\/CP5.2_transcript.html\">transcript for \u201cCP 5.2\u201d here (opens in new window).<\/a><\/center>As we mentioned before, when we are using rectangular coordinates, the double integral over a region [latex]R[\/latex] denoted by [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}[\/latex] can be written as [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)\\ dx\\ dy}[\/latex] or [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)\\ dy\\ dx}[\/latex]. The next example shows that the results are the same regardless of which order of integration we choose.\r\n<div class=\"textbox exercises\">\r\n<h3>Example: evaluating an iterated integral in two ways<\/h3>\r\n<p id=\"fs-id1167793290980\">Let\u2019s return to the function [latex]f(x,y) = 3x^2 - y[\/latex] from\u00a0Example \"Setting up a Double Integral and Approximating It by Double Sums\"\u00a0this time over the rectangular region [latex]R = [0,2] \\times [0,3][\/latex]. Use Fubini\u2019s theorem to evaluate [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}[\/latex] in two different ways:<\/p>\r\n\r\n<ol id=\"fs-id1167793465184\" type=\"a\">\r\n \t<li>First integrate with respect to\u00a0<em data-effect=\"italics\">y<\/em>\u00a0and then with respect to\u00a0<em data-effect=\"italics\">x.<\/em><\/li>\r\n \t<li>First integrate with respect to\u00a0<em data-effect=\"italics\">x<\/em>\u00a0and then with respect to\u00a0<em data-effect=\"italics\">y<\/em>.<\/li>\r\n<\/ol>\r\n[reveal-answer q=\"557836110\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"557836110\"]\r\n<div id=\"fs-id1167793465219\" class=\" ui-solution-visible\" data-type=\"solution\" aria-label=\"hide solution\" aria-expanded=\"true\"><section class=\"ui-body\" role=\"alert\">\r\n<h2 data-type=\"solution-title\"><span class=\"os-title-label\">Solution<\/span><\/h2>\r\n<div class=\"os-solution-container\">\r\n<p id=\"fs-id1167793465221\">Figure 1\u00a0shows how the calculation works in two different ways.<\/p>\r\na. First integrate with respect to\u00a0<em data-effect=\"italics\">y<\/em>\u00a0and then integrate with respect to\u00a0<em data-effect=\"italics\">x<\/em>:\r\n\r\n[latex]\\hspace{2cm}\\begin{align}\r\n\r\n\\underset{R}{\\displaystyle\\iint}f(x,y)dA&amp;=\\displaystyle\\int_{x=0}^{x=2}\\displaystyle\\int_{y=0}^{y=3}(3x^2-y)dy \\ dx \\\\\r\n\r\n&amp;=\\displaystyle\\int_{x=0}^{x=2}\\left(\\displaystyle\\int_{y=0}^{y=3}(3x^2-y)dy\\right)dx=\\displaystyle\\int_{x=0}^{x=2}\\left[3x^2y-\\frac{y^2}{2}\\Bigg|_{y=0}^{y=3}\\right]dx \\\\\r\n\r\n&amp;=\\displaystyle\\int_{x=0}^{x=2}\\left(9x^2-\\frac92\\right)dx=3x^3-\\frac92x\\bigg|_{x=0}^{x=2}=15.\r\n\r\n\\end{align}[\/latex]\r\n\r\n&nbsp;\r\n\r\nb. First integrate with respect to\u00a0<em data-effect=\"italics\">x<\/em>\u00a0and then integrate with respect to\u00a0<em data-effect=\"italics\">y<\/em>:\r\n\r\n[latex]\\hspace{2cm}\\begin{align}\r\n\r\n\\underset{R}{\\displaystyle\\iint}f(x,y)dA&amp;=\\displaystyle\\int_{y=0}^{y=3}\\displaystyle\\int_{x=0}^{x=2}(3x^2-y)dx \\ dy \\\\\r\n\r\n&amp;=\\displaystyle\\int_{y=0}^{y=3}\\left(\\displaystyle\\int_{x=0}^{x=2}(3x^2-y)dx\\right)dy=\\displaystyle\\int_{y=0}^{y=3}\\left[x^3-xy\\Bigg|_{x=0}^{x=2}\\right]dy \\\\\r\n\r\n&amp;=\\displaystyle\\int_{y=0}^{y=3}(8-2y)dy=8y-y^2\\bigg|_{x=0}^{x=2}=15.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\n<\/section><\/div>\r\n<div id=\"fs-id1167793633941\" data-type=\"commentary\">\r\n<h2 id=\"21\" data-type=\"commentary-title\"><span class=\"os-title-label\">Analysis<\/span><\/h2>\r\n<p id=\"fs-id1167793633947\">With either order of integration, the double integral gives us an answer of 15. We might wish to interpret this answer as a volume in cubic units of the solid [latex]S[\/latex] below the function [latex]f(x,y)=3x^2-y[\/latex] over the region [latex]R = [0,2] \\times [0,3][\/latex]. However, remember that the interpretation of a double integral as a (non-signed) volume works only when the integrand [latex]f[\/latex] is a nonnegative function over the base region [latex]R[\/latex].<\/p>\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nEvaluate\u00a0[latex]\\displaystyle\\int_{y=-3}^{y=2}\\displaystyle\\int_{x=3}^{x=5}(2-3x^2+y^2)dx\\ dy[\/latex].\r\n\r\n[reveal-answer q=\"241684052\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"241684052\"]\r\n<p style=\"text-align: center;\">[latex]\\large{-\\frac{1,340}3}[\/latex]<\/p>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\nIn the next example we see that it can actually be beneficial to switch the order of integration to make the computation easier. We will come back to this idea several times in this chapter.\r\n<div class=\"textbox exercises\">\r\n<h3>Example: switching the order of integration<\/h3>\r\n<p id=\"fs-id1167793451026\">Consider the double integral [latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA[\/latex] over the region [latex]{R} = {\\left \\{ (x,y) \\mid 0 \\leq x \\leq 3,0 \\leq y \\leq 2 \\right \\}}[\/latex] (Figure 2).<\/p>\r\n\r\n<ol id=\"fs-id1167793382907\" type=\"a\">\r\n \t<li>Express the double integral in two different ways.<\/li>\r\n \t<li>Analyze whether evaluating the double integral in one way is easier than the other and why.<\/li>\r\n \t<li>Evaluate the integral.<span data-type=\"newline\">\r\n<\/span><\/li>\r\n<\/ol>\r\n[caption id=\"attachment_1309\" align=\"aligncenter\" width=\"669\"]<img class=\"size-full wp-image-1309\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/23143046\/5-1-6.jpeg\" alt=\"The function z = f(x, y) = x sin(xy) is shown, which starts with z = 0 along the x axis. Then, the function increases roughly as a normal sin function would, but then skews a bit and decreases as x increases after pi\/2.\" width=\"669\" height=\"530\" \/> Figure 2.\u00a0The function [latex]\\small{z=f(x,y)=x\\sin(xy)}[\/latex] over the rectangular region [latex]\\small{R=[0,\\pi ]\\times[1,2]}[\/latex].[\/caption][reveal-answer q=\"671234037\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"671234037\"]\r\n<div class=\"os-solution-container\">\r\n\r\na. We can express [latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA[\/latex] in the following two ways: first by integrating with respect to [latex]y[\/latex] and then with respect to [latex]x[\/latex]; second by integrating with respect to [latex]x[\/latex] and then with respect to [latex]y[\/latex].\r\n\r\n[latex]\\hspace{3cm}\\begin{align}\r\n\r\n&amp;\\,\\,\\,\\,\\,\\,\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA \\\\\r\n\r\n&amp;=\\displaystyle\\int_{x=0}^{x=\\pi}\\displaystyle\\int_{y=1}^{y=2}x\\sin(xy)dy \\ dx &amp;\\quad &amp;\\text{Integrate first with respect to }y. \\\\\r\n\r\n&amp;=\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=\\pi}x\\sin(xy)dx \\ dy &amp;\\quad &amp;\\text{Integrate first with respect to }x.\r\n\r\n\\end{align}[\/latex]\r\n\r\n&nbsp;\r\n\r\n<span style=\"font-size: 1rem; text-align: initial;\">b. If we want to integrate with respect to [latex]y[\/latex] first and then integrate with respect to [latex]x[\/latex], we see that we can use the substitution [latex]u = xy[\/latex], which gives [latex]du = x\\ dy[\/latex]. Hence the inner integral is simply [latex]\\displaystyle\\int\\sin u\\ du[\/latex] and we can change the limits to be functions of [latex]x,[\/latex]<\/span>\r\n<p style=\"text-align: center;\">[latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA=\\displaystyle\\int_{x=0}^{x=\\pi}\\displaystyle\\int_{y=1}^{y=2}x\\sin(xy)dy \\ dx=\\displaystyle\\int_{x=0}^{x=\\pi}\\left[\\displaystyle\\int_{u=x}^{u=2x}\\sin(u)du\\right]dx.[\/latex]<\/p>\r\nHowever, integrating with respect to [latex]x[\/latex] first and then integrating with respect to [latex]y[\/latex] requires integration by parts for the inner integral, with [latex]u = x[\/latex] and [latex]dv = \\sin(xy)dx[\/latex].Then [latex]du = dx[\/latex] and [latex]v =-\\frac{\\cos(xy)}{y}[\/latex], so\r\n<p style=\"text-align: center;\">[latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA=\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=\\pi}x\\sin(xy)dx \\ dy=\\displaystyle\\int_{y=1}^{y=2}\\left[-\\frac{x\\cos(xy)}{y}\\Bigg|+{x=0}^{x=\\pi}+\\frac1y\\displaystyle\\int_{x=0}^{x=\\pi}\\cos(xy)dx\\right]dy.[\/latex]<\/p>\r\nSince the evaluation is getting complicated, we will only do the computation that is easier to do, which is clearly the first method.\r\n\r\n&nbsp;\r\n\r\nc. Evaluate the double integral using the easier way.\r\n\r\n[latex]\\hspace{2cm}\\begin{align}\r\n\r\n\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA&amp;=\\displaystyle\\int_{x=0}^{x=\\pi}\\displaystyle\\int_{y=1}^{y=2}x\\sin(xy)dy \\ dx \\\\\r\n\r\n&amp;=\\displaystyle\\int_{x=0}^{x=\\pi}\\left[\\displaystyle\\int_{u=x}^{u=2x}\\sin(u)du\\right]dx=\\displaystyle\\int_{x=0}^{x=\\pi}\\left[-\\cos u\\bigg|_{u=x}^{u=2x}\\right]dx=\\displaystyle\\int_{x0}^{x=\\pi}(-\\cos2x+\\cos x) \\ dx \\\\\r\n\r\n&amp;=-\\frac12\\sin2x+\\sin x\\bigg|_{x=0}^{x=\\pi} = 0.\r\n\r\n\\end{align}[\/latex]\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n<\/div>\r\n<div class=\"textbox key-takeaways\">\r\n<h3>try it<\/h3>\r\nEvaluate the integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}xe^{xy}dA[\/latex] where\u00a0[latex]R = {[0,1]}{\\times}{[0,\\ln5]}[\/latex].\r\n\r\n[reveal-answer q=\"254888390\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"254888390\"]\r\n<p style=\"text-align: center;\">[latex]\\large{\\frac{4-\\ln5}{\\ln5}}[\/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\n[ohm_question]6108[\/ohm_question]\r\n\r\n<\/div>","rendered":"<div class=\"textbox learning-objectives\">\n<h3>Learning Objectives<\/h3>\n<ul>\n<li><span class=\"os-abstract-content\">Evaluate a double integral over a rectangular region by writing it as an iterated integral.<\/span><\/li>\n<\/ul>\n<\/div>\n<p id=\"fs-id1167793495499\">So far, we have seen how to set up a double integral and how to obtain an approximate value for it. We can also imagine that evaluating double integrals by using the definition can be a very lengthy process if we choose larger values for [latex]m[\/latex] and [latex]n[\/latex]. Therefore, we need a practical and convenient technique for computing double integrals. In other words, we need to learn how to compute double integrals without employing the definition that uses limits and double sums.<\/p>\n<p id=\"fs-id1167793636376\">The basic idea is that the evaluation becomes easier if we can break a double integral into single integrals by integrating first with respect to one variable and then with respect to the other. The key tool we need is called an iterated integral.<\/p>\n<div class=\"textbox shaded\">\n<h3 style=\"text-align: center;\">Definition<\/h3>\n<hr \/>\n<p id=\"fs-id1167793636387\">Assume [latex]a[\/latex], [latex]b[\/latex], [latex]c[\/latex], and [latex]d[\/latex] are real numbers. We define an\u00a0<strong><span id=\"d9da6d44-3ba3-4a90-adbc-dec26572e480_term207\" data-type=\"term\">iterated integral<\/span><\/strong>\u00a0for a function [latex](f(x, y)[\/latex] over the rectangular region [latex]R = [a,b] \\times [c,d][\/latex] as<\/p>\n<ol id=\"fs-id1167793432459\" type=\"a\">\n<li style=\"text-align: center;\">[latex]\\large{\\displaystyle\\int_a^b\\int_c^d{f(x,y)dydx} = \\displaystyle\\int_a^b\\left[\\displaystyle\\int_c^d{f(x,y)dy}\\right] dx}[\/latex]<\/li>\n<li style=\"text-align: center;\">[latex]\\large{\\displaystyle\\int_c^d\\int_a^b{f(x,y)dxdy} = \\displaystyle\\int_c^d\\left[\\displaystyle\\int_a^b{f(x,y)dx}\\right] dy}[\/latex]<\/li>\n<\/ol>\n<\/div>\n<p>The notation [latex]\\displaystyle\\int_a^b\\left[\\displaystyle\\int_c^d{f(x,y)dy}\\right] dx[\/latex] means that we integrate [latex]f(x,y)[\/latex] with respect to [latex]y[\/latex] while holding [latex]x[\/latex] constant. Similarly, the notation [latex]\\displaystyle\\int_c^d\\left[\\displaystyle\\int_a^b{f(x,y)dx}\\right] dy[\/latex] means that we integrate [latex]f(x,y)[\/latex] with respect to [latex]x[\/latex] while holding [latex]y[\/latex] constant. The fact that double integrals can be split into iterated integrals is expressed in Fubini\u2019s theorem. Think of this theorem as an essential tool for evaluating double integrals.<\/p>\n<div class=\"textbox shaded\">\n<h3 style=\"text-align: center;\">Theorem: fubini&#8217;s Theorem<\/h3>\n<hr \/>\n<p id=\"fs-id1167793423566\">Suppose that [latex]f(x,y)[\/latex] is a function of two variables that is continuous over a rectangular region [latex]{R} = {\\left \\{ (x,y)\\in \\mathbb{R}^2 \\mid a \\leq x \\leq b,c \\leq y \\leq d \\right \\}}[\/latex]. Then we see from\u00a0Figure 1\u00a0that the double integral of [latex]f[\/latex] over the region equals an iterated integral,<\/p>\n<p style=\"text-align: center;\"><span style=\"text-align: center; white-space: nowrap; word-spacing: normal;\">[latex]\\large{\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}=\\underset{R}{\\displaystyle\\iint}{f(x,y)dxdy}=\\displaystyle\\int_a^b\\displaystyle\\int_c^d{f(x,y)dydx}=\\displaystyle\\int_c^d\\displaystyle\\int_a^b{f(x,y)dxdy}}[\/latex].<\/span><\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">More generally,\u00a0<\/span><strong style=\"font-size: 1rem; text-align: initial;\"><span id=\"d9da6d44-3ba3-4a90-adbc-dec26572e480_term208\" data-type=\"term\">Fubini\u2019s theorem<\/span><\/strong><span style=\"font-size: 1rem; text-align: initial;\">\u00a0is true if [latex]f[\/latex] is bounded on [latex]R[\/latex] and [latex]f[\/latex] is discontinuous only on a finite number of continuous curves. In other words, [latex]f[\/latex] has to be integrable over [latex]R[\/latex].<\/span><\/p>\n<\/div>\n<div id=\"attachment_1307\" style=\"width: 950px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1307\" class=\"wp-image-1307 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/23142311\/5-1-51.jpeg\" alt=\"This figure consists of two figures marked a and b. In figure a, in xyz space, a surface is shown that is given by the function f(x, y). A point x is chosen on the x axis, and at this point, it it written fix x. From this point, a plane is projected perpendicular to the xy plane along the line with value x. This plane is marked Area A(x), and the entire space under the surface is marked V. Similarly, in figure b, in xyz space, a surface is shown that is given by the function f(x, y). A point y is chosen on the y axis, and at this point, it it written fix y. From this point, a plane is projected perpendicular to the xy plane along the line with value y. This plane is marked Area A(y), and the entire space under the surface is marked V.\" width=\"940\" height=\"511\" \/><\/p>\n<p id=\"caption-attachment-1307\" class=\"wp-caption-text\">Figure 1.\u00a0(a) Integrating first with respect to [latex]y[\/latex] and then with respect to [latex]x[\/latex]\u00a0to find the area\u00a0[latex]A(x)[\/latex]\u00a0and then the volume\u00a0[latex]V[\/latex]; (b) integrating first with respect to\u00a0[latex]x[\/latex] and then with respect to [latex]y[\/latex]\u00a0to find the area\u00a0[latex]A(y)[\/latex] and then the volume\u00a0[latex]V[\/latex].<\/p>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: using fubini&#8217;s theorem<\/h3>\n<p>Use Fubini\u2019s theorem to compute the double integral [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}[\/latex] where [latex]f(x,y) = x[\/latex] and\u00a0[latex]R = [0,2] \\times [0,1][\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q229222\">Show Solution<\/span><\/p>\n<div id=\"q229222\" class=\"hidden-answer\" style=\"display: none\">\n<p>Fubini\u2019s theorem offers an easier way to evaluate the double integral by the use of an iterated integral. Note how the boundary values of the region [latex]R[\/latex] become the upper and lower limits of integration.<\/p>\n<p>[latex]\\hspace{5cm}\\begin{align}  \\underset{R}{\\displaystyle\\iint}{f(x,y)dA}&=\\underset{R}{\\displaystyle\\iint}{f(x,y)dxdy} \\\\  &=\\displaystyle\\int_{y=0}^{y=1}\\displaystyle\\int_{x=0}^{x=2}xdxdy \\\\  &=\\displaystyle\\int_{y=0}^{y=1}\\left[\\frac{x^2}{2}\\Bigg|_{x=0}^{x=2}\\right]dy \\\\  &=\\displaystyle\\int_{y=0}^{y=1}2dy=2y\\big|_{y=0}^{y=1}=2.  \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>The double integration in this example is simple enough to use Fubini\u2019s theorem directly, allowing us to convert a double integral into an iterated integral. Consequently, we are now ready to convert all double integrals to iterated integrals and demonstrate how the properties listed earlier can help us evaluate double integrals when the function [latex]f(x, y)[\/latex] is more complex. Note that the order of integration can be changed (see Example &#8220;Switching the Order of Integration&#8221;).<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: illustrating properties of i and ii<\/h3>\n<p>Evaluate the double integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}{(xy-3xy^2)dA}[\/latex] where\u00a0[latex]{R} = {\\left \\{ (x,y) \\mid 0 \\leq x \\leq 2,1 \\leq y \\leq 2 \\right \\}}[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q200827253\">Show Solution<\/span><\/p>\n<div id=\"q200827253\" class=\"hidden-answer\" style=\"display: none\">\n<p>This function has two pieces: one piece is [latex]xy[\/latex] and the other is [latex]3xy^{2}[\/latex] Also, the second piece has a constant[latex]3[\/latex]. Notice how we use properties i and ii to help evaluate the double integral.<\/p>\n<p>[latex]\\begin{align}  &\\,\\,\\,\\,\\,\\,\\,\\,\\underset{R}{\\displaystyle\\iint}{(xy-3xy^2)dA} \\\\  &=\\underset{R}{\\displaystyle\\iint}{(xy)dA+\\underset{R}{\\displaystyle\\iint}{(-3y^2)dA}} &\\quad &\\text{Property i: Integral of a sum is the sum of the integrals.} \\\\  &=\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=2}xydxdy-\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=2}3xy^2dxdy &\\quad &\\text{Convert double integrals to iterated integrals.} \\\\  &=\\displaystyle\\int_{y=1}^{y=2}(\\frac{x^2}{2}y)\\Bigg|_{x=0}^{x=2}dy-3\\displaystyle\\int_{y=1}^{y=2}(\\frac{x^2}{2}y^2)\\Bigg|_{x=0}^{x=2}dy &\\quad &\\text{Integrat with respect to }x,\\text{ holding }y\\text{ constant}. \\\\    &=\\displaystyle\\int_{y=1}^{y=2}2ydy-\\displaystyle\\int_{y=1}^{y=2}6y^2dy &\\quad &\\text{Property ii: Placing the constant before the integral.} \\\\    &=2\\displaystyle\\int_1^2ydy-6\\displaystyle\\int_1^2y^2dy &\\quad &\\text{Integrate with respect to }y. \\\\    &=2\\frac{y^2}{2}\\bigg|_1^2-6\\frac{y^3}{3}\\bigg|_1^2 \\\\    &=y^2\\bigg|_1^2-2y^3\\bigg|_1^2 \\\\    &=(4-1)-2(8-1) \\\\    &=3-2(7)=3-14=-11  \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: Illustrating property v<\/h3>\n<p>Over the region\u00a0[latex]{R} = {\\left \\{ (x,y) \\mid 1 \\leq x \\leq 3,1 \\leq y \\leq 2 \\right \\}}[\/latex], we have\u00a0[latex]2 \\leq x^2 \\leq y^2 \\leq 13[\/latex]. Find a lower and upper bound for the integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}{(x^2+y^2)dA}[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q6745231908\">Show Solution<\/span><\/p>\n<div id=\"q6745231908\" class=\"hidden-answer\" style=\"display: none\">\n<p>For a lower bound, integrate the constant function 2 over the region [latex]R[\/latex]. For an upper bound, integrate the constant function 13 over the region [latex]R[\/latex].<\/p>\n<p style=\"text-align: left;\">[latex]\\large{\\displaystyle\\int_1^2\\displaystyle\\int_1^32dxdy=\\displaystyle\\int_1^2\\left[2x\\bigg|_1^3\\right]dy=\\displaystyle\\int_1^22(2)dy=4y\\bigg|_1^2=4(2-1)=4}[\/latex]<\/p>\n<p style=\"text-align: left;\">[latex]\\large{\\displaystyle\\int_1^2\\displaystyle\\int_1^313dxdy=\\displaystyle\\int_1^2\\left[13x\\bigg|_1^3\\right]dy=\\displaystyle\\int_1^213(2)dy=26y\\bigg|_1^2=26(2-1)=26}[\/latex]<\/p>\n<p>Hence, we obtain\u00a0[latex]4 \\leq \\underset{R}{\\displaystyle\\iint}{(x^2+y^2)dA} \\leq 26[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox exercises\">\n<h3>Example: Illustrating property vi<\/h3>\n<p>Evaluate the integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}{e^y\\cos xdA}[\/latex] over the region\u00a0[latex]{R} = {\\left \\{ (x,y) \\mid 0 \\leq x \\leq {\\dfrac{\\pi}{2},0} \\leq y \\leq 1 \\right \\}}[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q611274593\">Show Solution<\/span><\/p>\n<div id=\"q611274593\" class=\"hidden-answer\" style=\"display: none\">\n<p>This is a great example for property vi because the function [latex]f(x,y)[\/latex] is clearly the product of two single-variable functions [latex]e^y[\/latex] and [latex]cos \\ x[\/latex]. Thus we can split the integral into two parts and then integrate each one as a single-variable integration problem.<\/p>\n<p>[latex]\\hspace{3cm}\\begin{align}    \\underset{R}{\\displaystyle\\iint}{e^y\\cos xdA}&=\\displaystyle\\int_0^1\\displaystyle\\int_0^{\\pi\/2}e^y\\cos x \\ dx \\ dy \\\\    &=\\left(\\displaystyle\\int_0^1e^ydy\\right)\\left(\\displaystyle\\int_0^{\\pi\/2}\\cos xdx\\right) \\\\    &=\\left(e^y\\bigg|_0^1\\right)\\left(\\sin x\\bigg|_0^{\\pi\/2}\\right) \\\\    &=e-1    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try it<\/h3>\n<p>a. Use the properties of the double integral and Fubini\u2019s theorem to evaluate the integral<\/p>\n<p style=\"text-align: center;\">[latex]\\large{\\displaystyle\\int_0^1\\int_{-1}^3(3-x+4y) dy\\ dx}[\/latex].<\/p>\n<p>b. Show that [latex]0 \\leq \\underset{R}{\\displaystyle\\iint}\\sin \\pi x\\cos\\pi y\\ dA \\leq \\frac{1}{32}[\/latex] where [latex]R = \\left (0,\\frac{1}{4} \\right ) \\left (\\frac{1}{4}, \\frac{1}{2} \\right )[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q870681\">Show Solution<\/span><\/p>\n<div id=\"q870681\" class=\"hidden-answer\" style=\"display: none\">\n<p><span style=\"font-size: 1rem; text-align: initial;\">a. 26 <\/span><\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">b. Answers may vary.<\/span><\/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=8197096&amp;p3sdk_version=1.10.1&amp;p=20361&amp;pt=375&amp;video_id=wf1Iv3IhDGI&amp;video_target=tpm-plugin-9dqvee1r-wf1Iv3IhDGI\" 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\/CP5.2_transcript.html\">transcript for \u201cCP 5.2\u201d here (opens in new window).<\/a><\/div>\n<p>As we mentioned before, when we are using rectangular coordinates, the double integral over a region [latex]R[\/latex] denoted by [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}[\/latex] can be written as [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)\\ dx\\ dy}[\/latex] or [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)\\ dy\\ dx}[\/latex]. The next example shows that the results are the same regardless of which order of integration we choose.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: evaluating an iterated integral in two ways<\/h3>\n<p id=\"fs-id1167793290980\">Let\u2019s return to the function [latex]f(x,y) = 3x^2 - y[\/latex] from\u00a0Example &#8220;Setting up a Double Integral and Approximating It by Double Sums&#8221;\u00a0this time over the rectangular region [latex]R = [0,2] \\times [0,3][\/latex]. Use Fubini\u2019s theorem to evaluate [latex]\\underset{R}{\\displaystyle\\iint}{f(x,y)dA}[\/latex] in two different ways:<\/p>\n<ol id=\"fs-id1167793465184\" type=\"a\">\n<li>First integrate with respect to\u00a0<em data-effect=\"italics\">y<\/em>\u00a0and then with respect to\u00a0<em data-effect=\"italics\">x.<\/em><\/li>\n<li>First integrate with respect to\u00a0<em data-effect=\"italics\">x<\/em>\u00a0and then with respect to\u00a0<em data-effect=\"italics\">y<\/em>.<\/li>\n<\/ol>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q557836110\">Show Solution<\/span><\/p>\n<div id=\"q557836110\" class=\"hidden-answer\" style=\"display: none\">\n<div id=\"fs-id1167793465219\" class=\"ui-solution-visible\" data-type=\"solution\" aria-label=\"hide solution\" aria-expanded=\"true\">\n<section class=\"ui-body\" role=\"alert\">\n<h2 data-type=\"solution-title\"><span class=\"os-title-label\">Solution<\/span><\/h2>\n<div class=\"os-solution-container\">\n<p id=\"fs-id1167793465221\">Figure 1\u00a0shows how the calculation works in two different ways.<\/p>\n<p>a. First integrate with respect to\u00a0<em data-effect=\"italics\">y<\/em>\u00a0and then integrate with respect to\u00a0<em data-effect=\"italics\">x<\/em>:<\/p>\n<p>[latex]\\hspace{2cm}\\begin{align}    \\underset{R}{\\displaystyle\\iint}f(x,y)dA&=\\displaystyle\\int_{x=0}^{x=2}\\displaystyle\\int_{y=0}^{y=3}(3x^2-y)dy \\ dx \\\\    &=\\displaystyle\\int_{x=0}^{x=2}\\left(\\displaystyle\\int_{y=0}^{y=3}(3x^2-y)dy\\right)dx=\\displaystyle\\int_{x=0}^{x=2}\\left[3x^2y-\\frac{y^2}{2}\\Bigg|_{y=0}^{y=3}\\right]dx \\\\    &=\\displaystyle\\int_{x=0}^{x=2}\\left(9x^2-\\frac92\\right)dx=3x^3-\\frac92x\\bigg|_{x=0}^{x=2}=15.    \\end{align}[\/latex]<\/p>\n<p>&nbsp;<\/p>\n<p>b. First integrate with respect to\u00a0<em data-effect=\"italics\">x<\/em>\u00a0and then integrate with respect to\u00a0<em data-effect=\"italics\">y<\/em>:<\/p>\n<p>[latex]\\hspace{2cm}\\begin{align}    \\underset{R}{\\displaystyle\\iint}f(x,y)dA&=\\displaystyle\\int_{y=0}^{y=3}\\displaystyle\\int_{x=0}^{x=2}(3x^2-y)dx \\ dy \\\\    &=\\displaystyle\\int_{y=0}^{y=3}\\left(\\displaystyle\\int_{x=0}^{x=2}(3x^2-y)dx\\right)dy=\\displaystyle\\int_{y=0}^{y=3}\\left[x^3-xy\\Bigg|_{x=0}^{x=2}\\right]dy \\\\    &=\\displaystyle\\int_{y=0}^{y=3}(8-2y)dy=8y-y^2\\bigg|_{x=0}^{x=2}=15.    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/section>\n<\/div>\n<div id=\"fs-id1167793633941\" data-type=\"commentary\">\n<h2 id=\"21\" data-type=\"commentary-title\"><span class=\"os-title-label\">Analysis<\/span><\/h2>\n<p id=\"fs-id1167793633947\">With either order of integration, the double integral gives us an answer of 15. We might wish to interpret this answer as a volume in cubic units of the solid [latex]S[\/latex] below the function [latex]f(x,y)=3x^2-y[\/latex] over the region [latex]R = [0,2] \\times [0,3][\/latex]. However, remember that the interpretation of a double integral as a (non-signed) volume works only when the integrand [latex]f[\/latex] is a nonnegative function over the base region [latex]R[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>Evaluate\u00a0[latex]\\displaystyle\\int_{y=-3}^{y=2}\\displaystyle\\int_{x=3}^{x=5}(2-3x^2+y^2)dx\\ dy[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q241684052\">Show Solution<\/span><\/p>\n<div id=\"q241684052\" class=\"hidden-answer\" style=\"display: none\">\n<p style=\"text-align: center;\">[latex]\\large{-\\frac{1,340}3}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In the next example we see that it can actually be beneficial to switch the order of integration to make the computation easier. We will come back to this idea several times in this chapter.<\/p>\n<div class=\"textbox exercises\">\n<h3>Example: switching the order of integration<\/h3>\n<p id=\"fs-id1167793451026\">Consider the double integral [latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA[\/latex] over the region [latex]{R} = {\\left \\{ (x,y) \\mid 0 \\leq x \\leq 3,0 \\leq y \\leq 2 \\right \\}}[\/latex] (Figure 2).<\/p>\n<ol id=\"fs-id1167793382907\" type=\"a\">\n<li>Express the double integral in two different ways.<\/li>\n<li>Analyze whether evaluating the double integral in one way is easier than the other and why.<\/li>\n<li>Evaluate the integral.<span data-type=\"newline\"><br \/>\n<\/span><\/li>\n<\/ol>\n<div id=\"attachment_1309\" style=\"width: 679px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1309\" class=\"size-full wp-image-1309\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5667\/2021\/11\/23143046\/5-1-6.jpeg\" alt=\"The function z = f(x, y) = x sin(xy) is shown, which starts with z = 0 along the x axis. Then, the function increases roughly as a normal sin function would, but then skews a bit and decreases as x increases after pi\/2.\" width=\"669\" height=\"530\" \/><\/p>\n<p id=\"caption-attachment-1309\" class=\"wp-caption-text\">Figure 2.\u00a0The function [latex]\\small{z=f(x,y)=x\\sin(xy)}[\/latex] over the rectangular region [latex]\\small{R=[0,\\pi ]\\times[1,2]}[\/latex].<\/p>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q671234037\">Show Solution<\/span><\/p>\n<div id=\"q671234037\" class=\"hidden-answer\" style=\"display: none\">\n<div class=\"os-solution-container\">\n<p>a. We can express [latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA[\/latex] in the following two ways: first by integrating with respect to [latex]y[\/latex] and then with respect to [latex]x[\/latex]; second by integrating with respect to [latex]x[\/latex] and then with respect to [latex]y[\/latex].<\/p>\n<p>[latex]\\hspace{3cm}\\begin{align}    &\\,\\,\\,\\,\\,\\,\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA \\\\    &=\\displaystyle\\int_{x=0}^{x=\\pi}\\displaystyle\\int_{y=1}^{y=2}x\\sin(xy)dy \\ dx &\\quad &\\text{Integrate first with respect to }y. \\\\    &=\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=\\pi}x\\sin(xy)dx \\ dy &\\quad &\\text{Integrate first with respect to }x.    \\end{align}[\/latex]<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 1rem; text-align: initial;\">b. If we want to integrate with respect to [latex]y[\/latex] first and then integrate with respect to [latex]x[\/latex], we see that we can use the substitution [latex]u = xy[\/latex], which gives [latex]du = x\\ dy[\/latex]. Hence the inner integral is simply [latex]\\displaystyle\\int\\sin u\\ du[\/latex] and we can change the limits to be functions of [latex]x,[\/latex]<\/span><\/p>\n<p style=\"text-align: center;\">[latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA=\\displaystyle\\int_{x=0}^{x=\\pi}\\displaystyle\\int_{y=1}^{y=2}x\\sin(xy)dy \\ dx=\\displaystyle\\int_{x=0}^{x=\\pi}\\left[\\displaystyle\\int_{u=x}^{u=2x}\\sin(u)du\\right]dx.[\/latex]<\/p>\n<p>However, integrating with respect to [latex]x[\/latex] first and then integrating with respect to [latex]y[\/latex] requires integration by parts for the inner integral, with [latex]u = x[\/latex] and [latex]dv = \\sin(xy)dx[\/latex].Then [latex]du = dx[\/latex] and [latex]v =-\\frac{\\cos(xy)}{y}[\/latex], so<\/p>\n<p style=\"text-align: center;\">[latex]\\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA=\\displaystyle\\int_{y=1}^{y=2}\\displaystyle\\int_{x=0}^{x=\\pi}x\\sin(xy)dx \\ dy=\\displaystyle\\int_{y=1}^{y=2}\\left[-\\frac{x\\cos(xy)}{y}\\Bigg|+{x=0}^{x=\\pi}+\\frac1y\\displaystyle\\int_{x=0}^{x=\\pi}\\cos(xy)dx\\right]dy.[\/latex]<\/p>\n<p>Since the evaluation is getting complicated, we will only do the computation that is easier to do, which is clearly the first method.<\/p>\n<p>&nbsp;<\/p>\n<p>c. Evaluate the double integral using the easier way.<\/p>\n<p>[latex]\\hspace{2cm}\\begin{align}    \\underset{R}{\\displaystyle\\iint}x\\sin(xy)dA&=\\displaystyle\\int_{x=0}^{x=\\pi}\\displaystyle\\int_{y=1}^{y=2}x\\sin(xy)dy \\ dx \\\\    &=\\displaystyle\\int_{x=0}^{x=\\pi}\\left[\\displaystyle\\int_{u=x}^{u=2x}\\sin(u)du\\right]dx=\\displaystyle\\int_{x=0}^{x=\\pi}\\left[-\\cos u\\bigg|_{u=x}^{u=2x}\\right]dx=\\displaystyle\\int_{x0}^{x=\\pi}(-\\cos2x+\\cos x) \\ dx \\\\    &=-\\frac12\\sin2x+\\sin x\\bigg|_{x=0}^{x=\\pi} = 0.    \\end{align}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>try it<\/h3>\n<p>Evaluate the integral\u00a0[latex]\\underset{R}{\\displaystyle\\iint}xe^{xy}dA[\/latex] where\u00a0[latex]R = {[0,1]}{\\times}{[0,\\ln5]}[\/latex].<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><span class=\"show-answer collapsed\" style=\"cursor: pointer\" data-target=\"q254888390\">Show Solution<\/span><\/p>\n<div id=\"q254888390\" class=\"hidden-answer\" style=\"display: none\">\n<p style=\"text-align: center;\">[latex]\\large{\\frac{4-\\ln5}{\\ln5}}[\/latex]<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Try It<\/h3>\n<p><iframe loading=\"lazy\" id=\"ohm6108\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=6108&theme=oea&iframe_resize_id=ohm6108&show_question_numbers\" width=\"100%\" height=\"150\"><\/iframe><\/p>\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-1062\">\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 5.2. <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":428269,"menu_order":4,"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 5.2\",\"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-1062","chapter","type-chapter","status-publish","hentry"],"part":23,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1062","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\/428269"}],"version-history":[{"count":228,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1062\/revisions"}],"predecessor-version":[{"id":6212,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1062\/revisions\/6212"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/parts\/23"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapters\/1062\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/media?parent=1062"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/pressbooks\/v2\/chapter-type?post=1062"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/contributor?post=1062"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/calculus3\/wp-json\/wp\/v2\/license?post=1062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}