Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Change of variables

A disc described in x and y has curved limits of integration, y=±a2-x2, and the iterated integrals they produce are usually far harder than the question deserves.

The previous lesson built the double integral ∬RfdA as a limit of sums over small rectangles and evaluated it by Fubini's theorem as two single integrals, first over rectangles and then over regions whose limits are functions. It ended on a mismatch: a disc is a rectangle in no Cartesian sense, and its square roots leak into every inner integral. Polar coordinates describe a disc as a rectangle, and this lesson finds the price of switching to them, uses them on an integral that has no elementary antiderivative, and then generalises to any substitution in two variables. It assumes the double integral and iterated integration, and the cross product of two vectors.

Regions that are rectangles in r and θ

Polar coordinates, met in the lesson on the chain rule as a change of variables for derivatives, locate a point by its distance r from the origin and the angle θ its radius makes with the positive x axis:

x=rcosθ,y=rsinθ,r2=x2+y2

Every point other than the origin gets exactly one pair with r>0 and 0≤θ<2π; the origin, r=0 at any angle, is a single point with no area, so an integral does not notice it.

The payoff is in how regions look. The disc x2+y2≤a2 is 0≤r≤a, 0≤θ≤2π: constant limits on both variables, a rectangle in the rθ plane. The annulus between the circles of radius 1 and 3, the shape of a washer, is 1≤r≤3 with θ running all the way round. A sector, the slice of a pizza of radius 15 between the directions θ=0 and θ=π4, is 0≤r≤15, 0≤θ≤π4, and the upper half disc is the same with 0≤θ≤π. In Cartesian coordinates each of these needs square roots, and the annulus needs splitting into four pieces as well.

Polar regions with variable limits work exactly like the general regions of the previous lesson. The circle x2+y2=2x, of radius 1 centred at (1,0), becomes r2=2rcosθ, that is r=2cosθ, so the disc it bounds is 0≤r≤2cosθ for -π2≤θ≤π2. The inner limit depends on the outer variable, and the order of integration is forced: r inside, θ outside.

Rewriting the integrand is the easy half. The hard half is dA: it is tempting to write drdθ, and it is wrong.

The area of a polar rectangle

A grid of lines of constant r and constant θ cuts the plane into polar rectangles: the region r0≤r≤r0+Δr, θ0≤θ≤θ0+Δθ, a curved box bounded by two arcs and two radii. Unlike the squares of a Cartesian grid, they grow with distance from the origin, because a fixed angle sweeps a longer arc at a larger radius.

The exact area comes from the sector. A sector of radius r and angle Δθ is the fraction Δθ2π of a disc of area πr2, so its area is 12r2Δθ. The polar rectangle is the sector of radius r0+Δr with the sector of radius r0 removed, so its area is

ΔA=12((r0+Δr)2-r02)Δθ=(r0+Δr2)ΔrΔθ=r‾ΔrΔθ

where r‾ is the radius midway across the box. No approximation has been made. The box from r=2 to r=2.1 with Δθ=0.1 has area 12(4.41-4)(0.1)=0.0205, and indeed 2.05×0.1×0.1=0.0205. The box is almost a rectangle of width Δr and length r‾Δθ, the arc length, and the factor r‾ is the stretch that turns an angle into a length.

Now repeat the construction of the double integral with this grid. Cut the region into polar rectangles, sample f at the midpoint of each, and add. The sum is

∑f(r‾cosθ‾,r‾sinθ‾)r‾ΔrΔθ

which is exactly a Riemann sum, over a rectangle in the rθ plane, for the function f(rcosθ,rsinθ)r. As the grid refines it converges both to ∬RfdA and to the iterated integral of that function, so

∬Rf(x,y)dA=∫αβ∫abf(rcosθ,rsinθ)rdrdθ

The area element is dA=rdrdθ. The first check is the disc itself: ∫02π∫0ardrdθ=2π⋅a22=πa2. Forgetting the r gives 2πa, the circumference, which is not even measured in the right units.

A disc of varying density

The previous lesson computed the mass of a flat plate as the integral of its surface density, M=∬RρdA. A round plate whose density depends only on the distance from the centre is what polar coordinates were made for.

Example. A thin disc of radius 10 cm is machined thinner towards its rim, so that its surface density is ρ=3-0.1r grams per square centimetre, with r in centimetres. Find its mass.

The disc is 0≤r≤10, 0≤θ≤2π, and the density does not involve θ, so the θ integral contributes a factor 2π:

M=∫02π∫010(3-0.1r)rdrdθ=2π[3r22-r330]010=2π(150-1003)=700π3

which is about 733.04 grams. The same integral in Cartesian coordinates is ∫-1010∫-100-x2100-x2(3-0.1x2+y2)dydx, whose inner integral alone needs a logarithm; evaluated numerically, it gives 733.03. A uniform disc of density 3 would weigh 300π, about 942 grams, so the thinning removes more than a fifth of the metal, most of it near the rim where the rings are longest.

Now you. A washer occupies the annulus 1≤r≤3 and has surface density ρ=x2+y2. Find its mass, to two decimal places.

Answer

In polar form ρ=r2, so M=∫02π∫13r2⋅rdrdθ=2π[r44]13=2π⋅81-14=40π, about 125.66.

The Gaussian integral

The function e-x2 has no antiderivative that can be written with the functions of Calculus I; Joseph Liouville proved in the 1830s that no combination of powers, exponentials, logarithms and trigonometric functions will do. Yet its integral over the whole line has an exact value, and polar coordinates find it. The idea, usually credited to Siméon Denis Poisson, is to make the problem two dimensional on purpose.

Example. Evaluate I=∫-∞∞e-x2dx.

The integral converges, since e-x2≤e-|x| once |x|≥1, and it is positive. Write it twice, once with x and once with y as the dummy variable, and multiply. A product of a function of x alone and a function of y alone integrates to the product of the two integrals, which is Fubini's theorem read backwards, so

I2=∫-∞∞e-x2dx∫-∞∞e-y2dy=∬ℝ2e-(x2+y2)dA

The integrand depends only on x2+y2=r2, and the whole plane is 0≤r<∞, 0≤θ≤2π. Switching coordinates,

I2=∫02π∫0∞e-r2rdrdθ=2π[-12e-r2]0∞=2π⋅12=π

so I=π, about 1.7724539. Simpson's rule on -10≤x≤10 agrees to ten decimal places. The step that made it work is the factor r: e-r2 has no antiderivative either, but re-r2 does, by the substitution u=r2 of Calculus I.

The switch to the whole plane deserves one more line, because I2 was defined through squares and the polar integral through discs. Over the square -R≤x,y≤R the double integral is (∫-RRe-x2dx)2. That square contains the disc of radius R and sits inside the disc of radius R2, and the integrand is positive, so the square's integral lies between the two disc integrals, π(1-e-R2) and π(1-e-2R2). At R=2 the three are 3.084, 3.112 and 3.141. As R grows both bounds tend to π, and the squeeze settles it.

Now you. Use the same squaring to evaluate ∫-∞∞e-x2/2dx.

Answer

Squaring gives ∫02π∫0∞e-r2/2rdrdθ=2π[-e-r2/2]0∞=2π, so the integral is 2π, about 2.5066.

That value is why the normal distribution of Probability and Statistics carries its odd constant. The standard normal density is 12πe-x2/2, and a probability density must have total area 1; dividing by 2π is exactly what makes it so. Pierre-Simon Laplace had found π by another route in 1774, in work on probability.

The Jacobian

Polar coordinates are one substitution among many. In general, let x=x(u,v) and y=y(u,v) carry a region S of the uv plane onto the region R of the xy plane, one to one except perhaps along boundaries, with continuous partial derivatives. The question is the same as before: how large is the image of a small rectangle Δu by Δv?

Linear approximation answers it. Moving from (u0,v0) to (u0+Δu,v0) moves the image point by approximately ⟨xu,yu⟩Δu, and moving in v moves it by approximately ⟨xv,yv⟩Δv, with the partials taken at (u0,v0). So the small rectangle lands on an approximate parallelogram with those two edges. The cross product measures parallelograms: its length is the base times the height. Treating the edges as vectors in space with third component 0,

⟨xu,yu,0⟩×⟨xv,yv,0⟩=⟨0,0,xuyv-xvyu⟩

so the image has area approximately |J|ΔuΔv, where

J=∂x∂u∂y∂v-∂x∂v∂y∂u

This is the Jacobian determinant of the substitution, often written ∂(x,y)∂(u,v), after Carl Gustav Jacob Jacobi, who studied such determinants in an 1841 paper. It is the local area scale factor: near each point, the substitution multiplies small areas by |J|. The Riemann sum argument of the polar case then gives the change of variables formula,

∬Rf(x,y)dA=∬Sf(x(u,v),y(u,v))|J|dudv

For polar rectangles the area was exact; here the parallelogram is only approximate, and proving that its error vanishes faster than ΔuΔv belongs to analysis.

Check it against polar coordinates, with u=r and v=θ. The partials are xr=cosθ, yθ=rcosθ, xθ=-rsinθ and yr=sinθ, so J=rcos2θ+rsin2θ=r, the factor the sectors gave. In one variable, substitution x=g(u) gives dx=g′(u)du, and g′(u) is the factor by which the substitution stretches length. The Jacobian is its two dimensional version, with one difference: area is never negative, so the formula takes |J|, where one variable absorbs a negative g′ by swapping the limits.

Ellipses and parallelograms

The substitution x=au, y=bv, with a,b>0, carries the unit disc u2+v2≤1 onto the ellipse x2a2+y2b2≤1. Its Jacobian is a⋅b-0⋅0=ab, a constant, since the disc is stretched by a across and b up. So the area of the ellipse is ab times the area of the unit disc, πab, which for a=b is the disc again.

A linear substitution does the same for a parallelogram, whose sides are two pairs of parallel lines. Each pair consists of two level lines u=c1 and u=c2 of some linear function u, so two such functions turn the parallelogram into a rectangle.

Example. Let R be the parallelogram bounded by x+y=0, x+y=3, x-2y=0 and x-2y=3. Evaluate ∬R(x+y)(x-2y)dA.

Set u=x+y and v=x-2y, so that R becomes the square 0≤u≤3, 0≤v≤3. Subtracting the equations gives 3y=u-v, so y=u-v3 and x=2u+v3. Then

J=23⋅(-13)-13⋅13=-13

and |J|=13. The integral is 13∫03∫03uvdudv=13⋅92⋅92=6.75. Two checks: the area of R is 13×9=3, and the corners (0,0), (2,1), (1,-1) and (3,0) give edges ⟨2,1⟩ and ⟨1,-1⟩, whose cross product has length |-2-1|=3. In x and y the region needs splitting into three pieces. There is a shortcut, too: the Jacobian of u,v with respect to x,y is 1⋅(-2)-1⋅1=-3, and the Jacobian of the inverse substitution is its reciprocal.

Now you. Let R be bounded by y-x=0, y-x=2, y+2x=0 and y+2x=3. Find the area of R and evaluate ∬R(y-x)(y+2x)dA.

Answer

With u=y-x and v=y+2x, x=v-u3 and y=2u+v3, so J=-13⋅13-13⋅23=-13. The area is 13×2×3=2, and the integral is 13∫03∫02uvdudv=13⋅2⋅92=3.

Out of the plane

Changing variables fits the coordinates to the region: polar coordinates for discs, annuli and sectors, a stretch for an ellipse, a linear map for a parallelogram. The price is the factor |J| by which the new coordinates distort area, and for polar coordinates that price, the r in rdrdθ, is what evaluated the Gaussian integral.

Everything so far happens in the plane. Solids have volume and mass too. The next lesson repeats the construction in space: triple integrals over solids, cylindrical and spherical coordinates, and the volume elements that play the part of rdrdθ.