Integration in polar coordinatesWorksheet by Mike May, S.J. - maymk@slu.eduRevised by Russell Blyth - blythrd@slu.edurestart:A review of plotting in polar coordinatesThe first task in computing double integrals using polar coordinates is to correctly sketch graphs of functions described in polar coordinates. On a calculator you switch to polar mode. With Maple you use the coord=polar option in the plot command. You can plot the curve either with r as a function of theta, or with both r and theta described as functions of a parameter t. When we plot in polar coordinates it is usually wise to use the scaling=CONSTRAINED option so the axes have the same scale.plot(cos(2*theta),theta=0..2*Pi, coords=polar, scaling=CONSTRAINED);
plot([2+sin(2*t),Pi*sin(t),t=0..Pi], coords=polar, scaling=CONSTRAINED);To plot several polar curves together at the same time we use set notation, just like we did in Cartesian coordinates.plot({1,2*sin(theta)}, theta=0..2*Pi, coords=polar, scaling=CONSTRAINED);Plotting several curves together allows us to plot regions made of a number of curves. The region plotted below is the portion of an annulus between two specified angles. The fifth (empty) curve is included so that Maple includes the origin in the plot (the t-range for this "curve" can be any nonempty interval).plot({[1+t,Pi/6,t=0..1],[1+t,Pi/3,t=0..1],[1,t,t=Pi/6..Pi/3],
[2,t,t=Pi/6..Pi/3],[0,0,t=0..2*Pi]},coords=polar, scaling=CONSTRAINED);Exercise1. Plot the curves NiMvJSJyRyomIiIkIiIiLSUkY29zRzYjJSZ0aGV0YUdGJw== and NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym on the same graph. Find the points of intersection. (You may want to use either your calculator or paper and pencil to find the points of intersection.)Once we can sketch curves in polar coordinates the process of setting up an integral in polar coordinates is similar to the process involved in setting up a double integral in Cartesian coordinates. The biggest challenge is finding the correct limits of integration. We will also discuss switching the order of integration.Finding the limits of integrationSetting up drdNiMlJnRoZXRhRw== integralsConsider first the case of integrals using the order of integration drdNiMlJnRoZXRhRw==. Since dr is on the inside we have a region bounded by curves NiMvJSJyRy0lImdHNiMlJnRoZXRhRw== and LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYlLUkjbWlHRiQ2KlEhRicvJSdmYW1pbHlHUStNb25vc3BhY2VkRicvJSdpdGFsaWNHUSV0cnVlRicvJStmb3JlZ3JvdW5kR1EqWzI1NSwwLDBdRicvJStiYWNrZ3JvdW5kR1EuWzI1NSwyNTUsMjU1XUYnLyUrZXhlY3V0YWJsZUdGNC8lMGZvbnRfc3R5bGVfbmFtZUdRLE1hcGxlfklucHV0RicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnLUYjNictRiw2JVEickYnRjJGQC1JI21vR0YkNjBRIj1GJy9GQVEnbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRlAvJSlzdHJldGNoeUdGUC8lKnN5bW1ldHJpY0dGUC8lKGxhcmdlb3BHRlAvJS5tb3ZhYmxlbGltaXRzR0ZQLyUnYWNjZW50R0ZQLyUlZm9ybUdRJmluZml4RicvJSdsc3BhY2VHUS90aGlja21hdGhzcGFjZUYnLyUncnNwYWNlR0Zcby8lKG1pbnNpemVHUSIxRicvJShtYXhzaXplR1EpaW5maW5pdHlGJy1GLDYlUSJoRidGMkZALUkobWZlbmNlZEdGJDYkLUYjNiMtRiw2JVEmdGhldGFGJy9GM0ZQRkxGTC1GSTYwUSIsRidGTEZOL0ZSRjRGU0ZVRldGWUZlbkZnbi9GW29RJDBlbUYnL0Zeb1EzdmVyeXRoaWNrbWF0aHNwYWNlRidGX29GYm9GKw== with the value of NiMlJnRoZXRhRw== bound by two constant angles. The integration with respect to r for a particular NiMlJnRoZXRhRw== is along a radial line. The following block of code is designed to help you visualize what the limits of integration mean. The curves NiMvJSJyRy0lImdHNiMlJnRoZXRhRw== and LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYnLUkjbWlHRiQ2JlEickYnLyUnaXRhbGljR1EldHJ1ZUYnLyUrYmFja2dyb3VuZEdRKFswLDAsMF1GJy8lLG1hdGh2YXJpYW50R1EnaXRhbGljRictSSNtb0dGJDYxUSI9RidGMi9GNlEnbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRkAvJSlzdHJldGNoeUdGQC8lKnN5bW1ldHJpY0dGQC8lKGxhcmdlb3BHRkAvJS5tb3ZhYmxlbGltaXRzR0ZALyUnYWNjZW50R0ZALyUlZm9ybUdRJmluZml4RicvJSdsc3BhY2VHUS90aGlja21hdGhzcGFjZUYnLyUncnNwYWNlR0ZSLyUobWluc2l6ZUdRIjFGJy8lKG1heHNpemVHUSlpbmZpbml0eUYnLUYsNiZRImhGJ0YvRjJGNS1JKG1mZW5jZWRHRiQ2JS1GIzYjLUYsNiZRJnRoZXRhRicvRjBGQEYyRjxGMkY8LUYsNiZRIUYnRi9GMkY1 are specified in the fourth and fifth lines as lowr and highr (the inside and outside curves, respectively).r:='r': theta := 'theta':
lowtheta := Pi/6;
hightheta := 3*Pi/2;
lowr := theta -> 1.5-sin(theta);
highr := theta -> 3 + cos(theta);
print(`Region of integration for `,
Int(Int(f(r, theta)*r,r=lowr(theta)..highr(theta)),
theta=lowtheta..hightheta));
inside := plot([lowr(theta), theta,theta=lowtheta..hightheta],
color=red, coords=polar):
outside := plot([highr(theta), theta,theta=lowtheta..hightheta],
color=green, coords=polar):
line := {}:
for i from 0 to 10 do
tval := evalf(lowtheta + i/10*(hightheta-lowtheta)):
if (abs(evalf(lowr(tval) - highr(tval)))>0) then
line := line union
{[r,tval, r=evalf(lowr(tval))..evalf(highr(tval))]};
end if
end do:
plotlines := plot(line,coords=polar, color=BLACK) :
plots[display]({inside, outside, plotlines},scaling=CONSTRAINED);Note that since we integrate with respect to r first, the r-limits are functions of theta while the theta limits are constants. We first integrate from the inside (red) curve to the outside (green) curve, along the radial lines, and then add up (integrate) over the range of values of theta.Exercises2. Find the limits of integration to integrate over the region inside the curve NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym and outside the curve r=1. Modify the code above to show that you have the correct region.3. Find the limits of integration to integrate over the region inside the curve NiMvJSJyRyomIiIkIiIiLSUkY29zRzYjJSZ0aGV0YUdGJw== and outside the curve NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym. Modify the code above to show that you have the correct region.Setting up dNiMlJnRoZXRhRw==dr integralsSimilarly we can set up integrals using the order of integration drdNiMlJnRoZXRhRw==. Now the region of integration is bounded by curves NiMvJSZ0aGV0YUctJSJnRzYjJSJyRw== and NiMvJSZ0aGV0YUctJSJoRzYjJSJyRw== with the value of r being bound by two constants. Instead of integrating first on radial lines, we start by integrating along circular arcs with a fixed values of r. The curves NiMvJSZ0aGV0YUctJSJnRzYjJSJyRw== and NiMvJSZ0aGV0YUctJSJoRzYjJSJyRw== appear in the fourth and fifth lines of the code as lowtheta and hightheta. Remember that angles increase in a counterclockwise direction, so lowtheta is the angle on the clockwise extreme of the region. You need to take care that lowtheta is a smaller angle than hightheta (sometimes this means that lowtheta will be a negative angle).r:='r': theta := 'theta':
lowr := 1;
highr := 5;
lowtheta := r -> Pi*r/6;
hightheta := r -> Pi*(2-r/12);
print(`Region of integration for `, Int(Int(f(r, theta)*r,
theta=lowtheta(r)..hightheta(r)),r=lowr..highr));
lowthetacurve := plot ([r,lowtheta(r), r=lowr..highr],
color=red, coords=polar) :
highthetacurve := plot ([r, hightheta(r), r=lowr..highr],
color=green, coords=polar) :
arcs := {} :
for i from 0 to 10 do
tempr := evalf(lowr + i/10*(highr-lowr)):
if (abs(evalf(lowtheta(tempr)-hightheta(tempr)))>0) then
arcs := arcs union {[tempr, theta,
theta=lowtheta(tempr)..hightheta(tempr)]}:
end if:
end do:
grapharcs := plot(arcs,coords=polar, color=BLACK) :
plots[display] ( {lowthetacurve, highthetacurve, grapharcs }
,scaling=CONSTRAINED) ;Exercises4. Find the limits of integration to integrate over the region inside both curves NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym and r=1. Modify the code above to show that you have the correct region. Explain why you would use dthetadr rather than drdtheta for this problem.5. Find the limits of integration to integrate over the region inside both curves NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym and r=1. Modify the code above to show that you have the correct region. Explain why you would use dthetadr rather than drdtheta for this problem.Changing order of integrationSome regions can be described to use either drdNiMlJnRoZXRhRw== or dNiMlJnRoZXRhRw==dr. When we switch the order of integration we need to change the limits as well.Exercise6. The region inside the curve r=1 and outside the curve NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym can be set up in either order. Find the limits of integration both ways. Show that you have the correct region.Integrating over a region in polar coordinatesRecall that in polar coordinates, dA is rdrdNiMlJnRoZXRhRw== or rdNiMlJnRoZXRhRw==dr. Thus, for example, to find the area of the region bounded by r=1, r=2, NiMvJSZ0aGV0YUcqJiUjUGlHIiIiIiInISIi, and NiMvJSZ0aGV0YUcqJiUjUGlHIiIiIiIkISIi, we evaluate the integral NiMtJSRJbnRHNiQtRiQ2JCUickcvRig7IiIiIiIjLyUmdGhldGFHOyomJSNQaUdGKyIiJyEiIiomRjFGKyIiJEYz.Int(Int(r,r=1..2),theta=Pi/6..Pi/3)=int(int(r,r=1..2),theta=Pi/6..Pi/3);Exercises7. Find the area inside both curves r=1 and NiMvJSJyRywmIiIiRiYtJSRjb3NHNiMlJnRoZXRhR0Ym.8. Integrate the function NiMtJSRzaW5HNiMqJCklInJHIiIjIiIi over the disk of radius 2 centered at the origin.Changing coordinate systems One of the reasons we want to know how to integrate in both Cartesian and polar coordinates is that some integrals work out nicely in one coordinate system and are ugly or impossible in another. To change an integral in Cartesian coordinates into polar coordinates, we need to do several things. First sketch the region with its boundary curves. Then convert the formulas of the boundary curves, the function to be integrated and dA into polar form. We are then ready to set up the integral and integrate.Consider the integral NiMtJSRJbnRHNiQtRiQ2JComIiIiRiksKCokKSUiYUciIiNGKUYpKiQpJSJ4R0YuRilGKSokKSUieUdGLkYpRikhIiIvRjQ7LCQtJSVzcXJ0RzYjLCYqJCklImJHRi5GKUYpRi9GNUY1RjkvRjE7LCRGP0Y1Rj8=. int(int(1/(a^2+x^2+y^2),y=-sqrt(b^2-x^2)..sqrt(b^2-x^2)),x=-b..b);Depending on the version of Maple you are using, it either chokes on this integral, or gives an answer involving functions we don't know how to evaluate. However the integral above converts to NiMtJSRJbnRHNiQtRiQ2JComJSJyRyIiIiwmKiQpJSJhRyIiI0YqRioqJClGKUYvRipGKiEiIi8lJnRoZXRhRzsiIiEqJkYvRiolI1BpR0YqL0YpO0Y2JSJiRw== in polar form, which can easily be computed by hand using the substitution NiMvJSJ1RyokKSUickciIiMiIiI=. Maple also has no problem with it, provided we tell it that a is to be regarded as a real value (ignore the ~ that appears after the a in the answer - that is Maple's way of reminding us that we have placed a restriction on a).assume(a,real);
int(int(r/(a^2+r^2),theta=0..2*Pi),r=0..b);Exercise9. Convert the integral NiMtJSRJbnRHNiQtRiQ2JComJSJ4RyIiIiUieUdGKi9GKTtGKy0lJXNxcnRHNiMsJiIiJUYqKiQpRisiIiNGKiEiIi9GKzsiIiEtRi82I0Y1 to polar form and evaluate.Extra credit At the beginning of this worksheet we plotted a region described by the parametric curve [2+sin(2*t),Pi*sin(t),t=0..Pi]. We want to find the area of the region bounded by this curve to 3 decimal places. Find the area of the region and cleanly write up your work carefully justifying your method.