
Physics 181 Notes on Multivariable Calculus Overview The first year course in calculus typically treats only situations in which there is a single variable. This means that applications are limited, in effect, to one dimension. But the world we live in is three dimensional, and even if we limit our attention to things happening on the surface of the earth, two dimensional. Besides, if we want to analyze situations involving both space and time, even a one dimensional situation requires consideration of two variables. In mathematical terms, this means that we must consider functions of more than one variable. An example is the function y(x,t) that describes the transverse displacement of a particular point (at location x) on a stretched string that is supporting a traveling wave. This displacement varies from place to place (i.e., with x) and from time to time (i.e., with t). We need a description that distinguishes between those two types of variation. This description is given in terms of partial derivatives. Integral calculus, which concerns the summation of infinite numbers of infinitesimal quantities, is generalized in two dimensions to the summation of infinitesimal bits of area, and in three dimensions the summation of infinitesimal bits of volume. These techniques allow us to calculate (among other things) the areas bounded by closed curves in a plane, or surfaces in space, and the volumes of regions in space. The integrals to carry out these calculations are often called multiple integrals. Partial Derivatives The idea of a partial derivative is simple: let only the variable of interest change, keeping all the others constant. The notation for this kind of derivative uses a “curly” symbol. Thus, if f is a function of both x and t, then the partial derivative with respect to x is denoted by f / x , and that with respect to t by f / t . ! ! ! ! For example, suppose f (x,t) 3x t2 . Then f / x 3 and f / t 2t . If = + ! ! = ! ! = f (x,t) cos(kx t) , where k and are constants, then f / x ksin(kx t) and = ! " ω ! ! = " " # f / t sin(kx t) . ! ! = " # " Higher order derivatives are calculated similarly. In the second example given, we have !2 f /!x2 = "k2 cos(kx " #t), !2 f /!t2 = "# 2 cos(kx " #t), and for the “mixed” 2 2 second derivative we have ! f /!x!y = ! f /!y!x = k" cos(kx # "t) . [Note that 2 f / x2 (k/ )2 2 f / t2 ! ! = " # ! ! , which is the equation defining a wave of speed v = ! /k . This shows that f (x,t) = cos(kx ! "t) describes such a wave.] 1 Total Derivative Suppose we have a property f (x, y) of a particle that depends on its location in the x-y plane, but that location changes with time as the particle moves. What is the rate of change of this property with time? It is given by the total derivative with respect to time: df !f dx !f dy = " + " . dt !x dt !y dt Here and dy/dt represent the components of the velocity of the particle. This dx/dt formula is a generalization of the chain rule in one-variable calculus. Assuming f to be a scalar quantity, the two objects f / x and f / y are the ! ! ! ! components of the gradient: f ( f / x, f / y) i( f / x) j( f / y) . Then the total ! = " " " " = " " + " " derivative is simply a scalar product: df = !f " v , dt where v is the velocity. (Of course, all this could be done in three dimensions.) Maxima and Minima For a function f (x) in one variable, the maxima and minima occur at values of x for which df /dx 0 . What about a function f (x, y) of two variables? If both f / x 0 and = ! ! = f / y 0, then we have one of three cases: ! ! = 1. The point is a maximum in both variables. 2. The point is a minimum in both variables. 3. The point is a maximum in one variable and a minimum in the other. In the last case we have a saddle point. Multiple Integrals in 2-D Suppose we have a quantity f (x, y) which has a value for each point in a certain region of the x-y plane. The integral of this quantity over the area of the region involves integrating over both variables, and is often called a double integral. We write it as f (x, y)dxdy , !! where the limits on the integrals depend on the boundary of the region involved. Unless that boundary is simple in terms of the variables, the limits for the first integral are likely to be functions of the second variable. 2 Examples. Our examples involve the area electric charge density ! on a flat surface. First let the region concerned be a square of side a with its bottom left corner at the origin and let the density be y a (x, y) K xy , where K is a constant. We seek the total charge ! = " Q in the square. In this case the boundary is simple in that it a consists of lines with one of the variable constant, so the integral breaks into two independent parts: x a a Q = K ydy " xdx = 1 Ka4 . !0 !0 4 To make it a bit more complicated, let the region be a 45° right triangle of side a with the right angle at the origin. Then the boundaries are the lines at y x 0 and y 0 , plus the line described by . y = a ! x = = y = a ! x Start with the simple case where the density is constant: !(x, y) = ! . Then we have 0 a a$ y a x Q = ! dy # dx = ! (a $ y)dy = 1 ! a2 . 0 "0 "0 0 "0 2 0 (As expected, this is just !0 times the area of the triangle.) Now let !(x, y) = K " xy again. We find a a# y a Q = K ydy " xdx = 1 K y(a # y)2 dy = 1 Ka4 . !0 !0 2 !0 24 Exercise: Consider the triangle which, when added to this one, will complete the square in the first 4 example. Show by integration that the charge in this triangle is 5Ka / 24 . Next let the region be a circle of radius a centered at the origin, and let the charge density be !(x, y) = C " x2 + y2 . The boundary is given by x2 + y2 = a2 , so we have a x Q = C ! dy ! + x2 + y2 dx , #"a #x y " where x = ± a2 ! y2 . With sufficient patience and a good ± table of integrals, this pair of integrals can be carried out. But x this case shows why one should look at the symmetry of the situation before starting a calculation. We note that r = x2 + y2 is the radial distance from the origin to a point in the plane, so the density depends only on r and is the same in all directions. Instead of using cartesian coordinates (x,y) we use polar coordinates defined by x = r cos! , y = r sin! . 3 Here r is the magnitude of the vector r from the origin to the point in question, and θ is the angle that vector makes with the x-axis. The charge density is ! = Cr . To integrate over the circular region, instead of the element of area dA = dxdy we use dA = r dr d! . dr This infinitesimal area is shown in the diagram. Then we have a 2$ a 2$ r Q = r dr " d# %(r,#) = C r2 dr " d# , !0 !0 !0 !0 rdθ θ which is easily integrated to give Q = 2 !Ca3 . 3 Multiple Integrals in 3-D Now we consider a function f (x, y,z) and an integral over a volume in space; f (x, y,z)dxdydz . ! ! ! The region of integration is the space within a closed surface. The procedure is like that in 2-D, but with one more integration to do. Examples. We consider the electric volume charge density (x, y,z) and ask for the total charge ! within a given volume. y First we choose for the volume a tetrahedron as shown. The sides in the coordinate planes are 45° triangles of side a. The other side is the equilateral triangle shown, which is in the plane described by x y z a . We will assume the charge + + = density is a constant: !(x, y,z) = !0 . The total charge is then x ! times the volume of the tetrahedron. 0 z The integrals will be done in the order x, y, z. We have a a$z a$ y$z Q = ! " dz " dy " dx 0 #0 #0 #0 a a$z = !0 " dz " (a $ y $ z)dy #0 #0 a = ! " 1 (a $ z)2 dz 0 #0 2 = 1 ! a3. 6 0 The tetrahedron has volume 1/6th that of a cube of side a. 4 The next example is an ellipsoid of revolution, with surface described by x2 y2 z2 + + = 1. 2 2 2 a a b The radius of the cross-section circle shown is a and half the length of the ellipse is b. We start again with constant x charge density and calculate in effect the volume of the ellipsoid. The first thing to notice is the symmetry with respect to z rotation around the z-axis. If we use cylindrical coordinates , where , y r sin , the y (r,!,z) x = r cos! = ! equation of the ellipsoid reduces to r2 z2 + = 1 . 2 2 a b In these coordinates the element of volume is dV r dr d dz (the area element r dr d = ! " ! ! " in the x-y plane times the length element dz) so we have b r 2% Q = ! dz 1 r dr d$ , 0 #"b #0 #0 where r = (a/b) b2 ! z2 .
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages6 Page
-
File Size-