Table of Contents
Multivariable Calculus
channel logo

Courses

  1. Linear Algebra
  2. Multivariable Calculus
  3. Differential Equations
  4. Miscellaneous Topics

Multivariable Calculus

  1. Double Integrals
    1. Cartesian dxdy
    2. Polar rdrdθ
  2. Vectors
    1. Fundamentals
    2. ab  Dot Product
    3. a×b  Cross Product
    4. Normal n to Plane
  3. Divergence
  4. Curl

Additional Resources

  1. WolframAlpha Examples
  2. Direction Field Plotter by Ariel Barton
  3. Phase Plane Plotter by Ariel Barton


NARROW DISPLAY WARNING


You are most likely using a tablet or mobile device in portrait orientation. This website is best viewed using a typical computer screen with the browser window maximized.

Viewing this website in portrait orientation can cause problems with equations being longer than the screen width (you can scroll to the right), images being poorly sized, and the font size of maths text being much smaller than regular text. If your only option is a tablet or mobile device, your viewing experience will be better if you view this website in landscape orientation. You might need to refresh the page to fix any problems after rotating.

Double Integrals in Polar Coordinates | youtube icon Chalkboard Video

Double integrals in polar coordinates are useful for integrating over radially symmetric regions in the xy-plane, but require a scaling factor to work correctly.

Change of Variables from (x,y) to (r,θ) for r0 | youtube icon Video Chapter

Going back to u substitution in single variable calculus where x=f(u), the dx would change to f(u)du to account for any stretching and shrinking of the x-axis. The same idea applies to a substitution of x=rcos(θ) and y=rsin(θ) from Cartesian to polar coordinates, but it's not obvious what the scaling factor for the drdθ area rectangles should be, or how to calculate it.

Part of the problem is the double integral doesn't know anything about what coordinate system is being used. The literal interpretation of every double integral is summing over little rectangles. The goal is to integrate over the region R on the left, but the integral on the right is over a rectangle with length 2 and width π4, not a wedge of a circle.

Rf(x,y) dxdyπ/83π/813f(rcos(θ),rsin(θ)) drdθ normal to plane

The method to calculate the scaling factor in general uses the Jacobian, but the scaling factor for drdθ can be derived geometrically for a Cartesian to polar substitution.

The area of one of the wedges on the left with side length Δr and arc Δθ can be calculated using the formula for the area of a circle. To put the value of r in the center of the wedge, the ring has inner radius rΔr2 and outer radius r+Δr2.

Ring area=π(r+Δr2)2π(rΔr2)2=π(r2+rΔr+Δr24)π(r2rΔr+Δr24)=2πrΔr

That's the area of the entire ring, but the wedge is only a fraction Δθ2π of a complete 2π rotation.

Wedge area=Δθ2π(Ring area)=Δθ2π2πrΔr=rΔrΔθ

Taking the limit as the wedge shrinks toward the center point (r,θ) with Δr and Δθ going to zero gives the conversion from Cartesian to polar.

limΔr,Δθ0Wedge area=rdrdθ

So the change of variables from Cartesian to polar needs a scaling factor of r in the double integral to work correctly.

Rf(x,y) dxdy=π/83π/813f(rcos(θ),rsin(θ)) rdrdθ

Interpreting the integral over the region R as the volume of a solid with height 1 and base the region R on the left.

normal to plane

The volume of the solid on the right can be calculated using geometry with the area of the trapezoid the base length times the average of the two side heights.

R1 dxdy=π/83π/813rdrdθ(wedge area)(height)=(length)(trapezoid area)3π8π82π(π32π12)(1)=(3π8π8)(31)(3+12)π=π

And the volumes are equal!

Watch out for r<0 | youtube icon Video Chapter

The previous derivation is dependent on r0. If a region is integrated over where r is interpreted as negative, then dA=rdrdθ comes out negative. The double integral can still output the correct value by picking the dr integral bounds correctly, but it's a mess. It's much easier to make sure r is always positive, if possible.

An example is the volume under a cone over a region R bounded by r=cos(θ), which is a unit circle centered at (x,y)=(0.5,0).

Rx2+y2 dxdy=Rr2 drdθ cone_over_circle_small

One choice for the dθ bounds is 0θπ, but that causes negative values of r for r(θ)=cos(θ).

r_equals_cos_theta_0_to_pi

Because of this, the double integral in polar coordinates with these bounds evaluates to zero.

Rx2+y2 dxdy0π0cos(θ)r2 drdθ=0

The volume under the cone is definitely not zero, so this is wrong. This could be fixed by being careful and using absolute values, but it's a mess and not worth the effort. Much better to change the bounds on the dθ integral

A better choice for the dθ bounds is π2θπ2 because the values of r for r(θ)=cos(θ) are all non-negative.

r_equals_cos_theta_plus_minus_half_pi Rx2+y2 dxdy=π2π20cos(θ)r2 drdθ=49

Now the volume evaluates to something reasonable.

We can compare to another volume that is easy to calculate that will be approximately equal. Instead of the volume under cone, we can calculate the volume under a plane z=x so it has the same slope as the cone in the xz-plane.

Rx dxdy=π2π20cos(θ)r2cos(θ) drdθ=π8 plane_over_circle_small

This can be calculated without an integral because we know the formula for the volume of a cylinder, and this cylinder with radius 12 and height 1 has been cut in half.

12(Volume of Cylinder)=12π(12)2(1)=π8

The two results are fairly close.

490.44440.3927π8

Example 1 | youtube icon Solution Video

Find the volume under the cone z=x2+y2 over a circle of radius 0.5 centered at (x,y)=(0.5,0).

cone_over_circle_small

This is the example from the explanation section above.

Example 2 | youtube icon Solution Video

Find the volume under the plane z=x over a circle of radius 0.5 centered at (x,y)=(0.5,0).

plane_over_circle_small

This is the example from the explanation section above.

Example 3 | youtube icon Solution Video

Find the volume of the paraboloid z=3x2y2 above the xy-plane.

paraboloid

Example 4 | youtube icon Solution Video

Find the area of one petal of the rose curve r=cos(3θ).

rose_curve

Example 5 | youtube icon Solution Video

Find the area of the cardioid r=1+sin(θ).

cardioid

Example 6 | youtube icon Solution Video

Find the area of the limacon r=12+sin(θ).

limacon