Multivariable Calculus: Functions, Integrals, and Applications, Study notes of Calculus

Multivariable calculus. Before we tackle the very large subject of calculus of functions of several variables, ... 10 Multivariable functions and integrals.

Typology: Study notes

2021/2022

Uploaded on 09/07/2022

zaafir_ij
zaafir_ij 🇦🇪

4.4

(61)

884 documents

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Part IV
Multivariable calculus
Before we tackle the very large subject of calculus of functions of several variables,
you should know the applications that motivate this topic. Here is a list of some key
applications.
1. Totals of quantities spread out over an area.
2. Probabilities of more than one random variable: what is the probability that a
pair of random variables (X, Y ) is in a certain set of possible values?
3. Marginal cost.
4. Optimization: if I have a limit on how much I can spend on production and
advertising in total, and my profit will be some function f(p, a), then how much
should I invest in production and how much in advertising?
When dealing with these sorts of questions, the functions and their notation can start
to seem difficult and abstract. Geometric understanding of multi-variable functions
will help us think straight when doing word problems and algebraic manipulations.
84
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Multivariable Calculus: Functions, Integrals, and Applications and more Study notes Calculus in PDF only on Docsity!

Part IV

Multivariable calculus

Before we tackle the very large subject of calculus of functions of several variables, you should know the applications that motivate this topic. Here is a list of some key applications.

  1. Totals of quantities spread out over an area.
  2. Probabilities of more than one random variable: what is the probability that a pair of random variables (X, Y ) is in a certain set of possible values?
  3. Marginal cost.
  4. Optimization: if I have a limit on how much I can spend on production and advertising in total, and my profit will be some function f (p, a), then how much should I invest in production and how much in advertising?

When dealing with these sorts of questions, the functions and their notation can start to seem dicult and abstract. Geometric understanding of multi-variable functions will help us think straight when doing word problems and algebraic manipulations.

10 Multivariable functions and integrals

10.1 Plots: surface, contour, intensity

To understand functions of several variables, start by recalling the ways in which you understand a function f of one variable.

(i) As a rule, e.g., “double and add 1”

(ii) As an equation, e.g., f (x) = 2x + 1

(iii) As a table of values, e.g., x 0 1 2 5 20 -95 ⇡ f (x) 1 3 5 11 41 -189 2 ⇡ + 1

(iv) As a graph, e.g.,

Similarly, a function f of two variables is a way of associating to any pair of values for x and y (two real numbers) a real number f (x, y). The same options apply for understanding f.

(i) We can give the rule if it is easily stated, e.g., “multiply the two inputs.”

(ii) We could give an equation, such as f (x, y) = xy.

(iii) We could make a table, e.g.,

x 1 1 1 2 2 y 0 1 5 0 ⇡ f (x, y) 0 1 5 0 2 ⇡

(iv) One might graph f.

The elevation example is very important even if you don’t care about hiking. This is because the traditional way to plot f is to plot the surface z = f (x, y), which means that our brains are primed to accept f (x, y) as an elevation at the point with coordinates (x, y). However, this is far from the only use of contour plotting. The most important application of this is when f (x, y) is profit or some other kind of a utility function (e.g., the level of satisfaction when you have x dollars in the bank and a car that costs y dollars). The contour plot of f shows the indi↵erence curves. Later we can use this interpretation of contour plots along with some calculus to compute optimal allocations. The next figure shows the contour plot for f (x, y) = xy along with the height plot z = f (x, y) that you already saw for this function.

All we are doing in this first section is getting used to functions of more than one variable and their visual depictions. We’re almost done, except that we haven’t talked about functions of three or more variables. We don’t have four dimensions handy, so we can’t graph z = f (x 1 , x 2 , x 3 ). We can still think of f as a function mapping points in an abstract n-dimensional space to the real numbers, and in the case of exactly three variables, we can make a contour plot which now has contour surfaces in three dimensions; see Figure 14.8 in the book. For now, it suces to practice going back and forth between the equation for a function of two variables and its visual representations.

  1. The units of
R

R f^ (x, y)^ dA^ are units of^ f^ times units of^ A.^ The units of^ A^ can be area, but more generally, they are whatever unit x represents times whatever unit y represents.

  1. Try to see how this is analogous to integrals in one variable. In each case you break up the (interval / region), then in each small part you evaluate f somewhere, use this as a proxy for f throughout the small part, multiply by the (length / area) of the small part, sum and take the limit.
  2. You can integrate in three variables. Just chop a 3-D region into subregions, sum their volumes times the value of f (x, y, z somewhere in the region, and take a limit. In fact, you can do this in any number of variables even though we can’t visualize space in dimensions higher than three. In Math 110, we’ll stick to two variables.

Here are some more meanings for a double integral.

Volume. If f (x, y) is the height of a surface at the point (x, y), then

R

f (x, y) dA gives the volume underneath the surface but above the xy-plane. That’s because the summands (namely the area of a little region times f (x, y) evaluated at a point in the region) is the volume of a tall skinny rectangular shard, many of which together physically approximate the region. If you can’t picture this, you have to have a look at Figure 15.3. Notice the units work: f is height (units of length) and

R

R f^ (x, y)^ dA is volume, which does indeed have units of length times area.

Area. A special case is when f (x, y) is the constant function 1. Who would have thought that integrating 1 could be at all important? But it is. If you build a surface of height 1 over a region R, then the volume of each shard is the area at the base of the shard and the integral is just the limitin sum of these, namely the total area. Notice the units work: in the example f is unitless, and

R

R f^ (x, y)^ dA^ is the area of R, which has units of area.

Averages. By definition, the average of a varying quantity f (x, y) over a region R is the total of f divided by the area of the region:

Average of f over R =

R

R f^ (x, y)^ dA Area of R

Probability. This application will get its own treatment in Section 10.4.

(ii) Computing the iterated integral: rectangular regions

Remember how it worked when you learned integration in one variable? It was defined as the limit of Riemann sums, which intuitively captures the notion of area under a curve. Then there’s a theorem saying you can figure out the value of the integral over an interval by computing an antiderivative and subtracting its values at the two endpoints. Similarly, we have already defined the integral conceptually, now we need to say something about using calculus to compute it. A lucky fact: we don’t need anything as dicult as the Fundamental Theorem of Calculus like we did for one variable integrals. That’s because we assume you already know how to compute single variable integrals and that can be harnesses to compute the double integral. Remember, for now we’re sticking to to the case where R is a rectangle.

As the textbook does, we start by assuming R is a rectangle a  x  b and c  y  d, chopped up so that each little square has width x and length y. We then add up the little bits in an organized way. First add all the tall skinny rectangles over a given x interval as y varies. In the volume interpretation this gives the volume of the slice of the solid that has width x. There is a slice for each x-value in the grid.

Here’s the thing. If you fix a value x = M , then you’re just computing x times the area under the one-variable function f (M, y). You know how to do that:

you integrate

R (^) d c f^ (M, y)dy^ and multiply by^ x. This integral of course depends on M. Call it g(M ). Summing all the slice volumes is the same as integrating g(M ) from a to b. We don’t have to use the variable M , we can just call it x. So the answer is: (^) Z

R

f (x, y) dA =

Z (^) b

a

g(x) dx, where g(M ) =

Z (^) d

c

f (M, y) dy.

This is Fubini’s Theorem (first form) on page 885 which you practiced computing in the MML problems from Section 15.1. I prefer to put parentheses into the equation given in the book: Z

R

f (x, y) dA =

Z (^) b

a

Z (^) d

c

f (x, y) dy

dx =

Z (^) d

c

Z (^) b

a

f (x, y) dx

dy. (10.1)

At this point it would be a good idea to read Examples 1 and 2 in Section 15.1. Also, you should pay attention to free and bound variables. In the so-called inner integralR d c f^ (x, y)^ dy, the variable^ y^ is bound, but^ x^ is free.^ In other words, this integral represents a quantity that depends on x (but not y). That’s why we can integrate it against dx in the outer integral, to finally get a number.

10.3 Multivariate integration: general regions

The trickiest thing about learning double integration is when R is not a rectangle. Then, when you cut into slices, the limits of integration will change with each slice. That’s OK as long as you can write them as a function of the variable you are not integrating and evaluate properly. There are four examples in the book (Section 15.2), plus I’ll give you one more here. But before diving into these, we should review how to write sets of points in the plane.

Writing sets of points in the plane

The notation {(x, y) : blah blah blah} denotes the set of points in the plane satisfying the condition I have called “blah blah blah”. For example, {(x, y) : x 2 + y 2  1 } is the unit disk. You will need to become an expert at writing sets of points in a very specific manner: the set of points where x is in some interval [a, b] and y lies between two functions of x, call them g and h. It looks like

{(x, y) : a  x  b, g(x)  y  h(x)}.

Example: can you write the unit disk in this format? For a and b you need the least and greatest x values that appear anywhere in the region. For the unit disk, that’s 1 and 1. Then, for each x, you need to figure out the least and greatest y values that can be associated with that x. For the unit disk, the least value is

p 1 x 2 and the greatest is +

p 1 x 2.

The y-value goes from

p 1 x 2 to +

p 1 x 2

So in the end, the unit disk {(x, y) : x 2 + y 2  1 } can be written in our standard form as {(x, y) : 1  x  1 ,

p 1 x 2  y 

p 1 x 2 }.

This way of writing it naturally breaks the unit disk into vertical strips where x is held constant and y varies from some least to some greatest value depending on x. I should have said this is “a standard form” not “the standard form” because it is equally useful to break into horizontal strips. These correspond to the format

{(x, y) : c  y  d, g(y)  x  h(y)}

where for each fixed y, the x values range from some minimum to some maximum value depending on y. You will be practicing a lot with these two formats!

Limits of integration for non-rectangular regions

What I am explaining here is Theorem 2 on page 889 of the textbook. When com- puting

R

R f^ (x, y)^ dA, if you can write^ R^ as a region in the form above.

There are three steps. First, specify the region of integration in terms of varying limits of integration. Second, use these as limits of integration. If x goes from z to b while y goes from g(x) to h(x) then the integral will look like

R (^) b z

R (^) h(x) g(x) f^ (x, y)^ dy dx. Third, carry out the integration with these limits.

Example: Let R be the unit disk and let f (x, y) = 1. The possible x-values in R

range from 1 to 1. So we put this on the outer integral:

R 1

1 [^ · · ·^ ]^.^ Now fix a value of x and figure out what the limits are on y. As we have seen, y goes from

p 1 x 2 to

p 1 x 2. So now we can write the whole integral as Z (^1)

1

"Z p 1 x 2

p 1 x 2

1 dy

dx.

When we do the inner integral we get the antiderivatite y, which we evaluate at

the upper and lower limits: y |

p 1 x 2 p 1 x 2 = 2

p 1 x 2. Finally, we evaluate the outer

integral, obtaining

R 1

p 1 x 2 dx. This is a tough integral if you do it honestly: integrating by parts and using #18 in the integral table will give you

⇣ x

p 1 x 2 + arcsin x

1 1

10.4 Applications: spatial totals, averages, probabilities

No new math in this section, just some applications. Two of them are pretty straight- forward: integrals to yield total amounts and integrals to compute averages. The third, probability densities in two variables, will involve a couple of new concepts.

Integrals to compute totals

This is essentially just a reminder that the integral of stu↵ per unit area over an area yields total stu↵.

Example: The population density east of a river running north-south is f (x, y) = 6000 e x^ 2 people per square mile. The county is divided into quadrants as shown in the figure. Roughly how many people are there in the east quadrant?

Quadrant

River

y = −x

y = x

East

Solution: Make coordinates in which the quadrant is the region represented in standard form by the set

{(x, y) : 0  x < 1 , x  y  x}.

We’re not going to re-do the theory of improper integrals in two variables, we’ll only deal with cases where you can just plug in 1 and get the right answer. The region is in standard form, so the total population is given by Z (^1)

0

Z (^) x

x

6000 e x^

2 dy dx.

The inner integral might look tough but it’s not (look carefully at which is the variable of integration):

Z (^) x

x

6000 e x^

2 ] dy = 6000 ye x^

x x

= 12000 xe x^

2 .

The outer integral can then be done by the substitution u = e x^ 2 , leading to Z (^1)

0

12000 xe x^

2 dx = 6000 e x

1 0

This is a good example of an integral which is not too hard one way but impossible the other. Try to integrate e x^ 2 against dx rather than dy and you will be stuck at the first step! If you come across this, you will always want to switch the order of the integrals.

If you can do this integral, you are smarter than I am. I tried it numerically with a 5 ⇥ 5 grid (I used midpoints and I used symmetry to restrict to the quadrant [0, 1000] ⇥ [0, 1000] in order to make my grid squares smaller) and got roughly $ which is pretty close to what my computer tells me is the correct numeric value of $3826.

Two-variable probability densities

It is often useful to consider a random pair of real numbers, that is, a random point in the plane. A probability density on the plane^4 is a nonnegative function f (x, y) such that

R

f (x, y)dA = 1. As before, the mean of the X variable is

R

xf (x, y) dA and the mean of the Y variable is

R

yf (x, y) dA. Here are a couple of special cases.

Example: uniform density on a region. Let R be a finite region and let f (x, y) = C on R and zero elsewhere. For this to be a probaiblity denstiy, the normalizing constant C must be the reciprocal of the area of R (that’s because the integral of 1 dA over R is just the area of R). For example, if R is the interior of the unit circle then C would be 1/⇡. If R is the recangle [a, b] ⇥ [c, d] then C = 1 /((b a)(d c)).

Example: planar standard normal distribution. Let f (x, y) = (^21) ⇡ e (x^ (^2) +y 2 )/ 2 .

This has integral equal to 1 because it is the product of (1/

p 2 ⇡)e x^ (^2) / 2 and (1/

p 2 ⇡)e y^ (^2) / 2 , which we already know integrate to 1 over the whole plane (1, 1 ) ⇥ (1, 1 ) be- cause each one is just the one-variable standard normal density. This uses the “magic product formula”.

A two-variable probability density corresponds to picking simultaneously two numbers X and Y such that the probability of finding the pair (X, Y ) in some region A is equal to the integral of the density over the region A.

Example: A probability density on the rectangle [0, 3] ⇥ [0, 2] is given by Ce x^. What is C, and what is the probability of finding the pair (X, Y ) in the unit square [0, 1] ⇥ [0, 1]?

(^4) The integral, if it is over the whole plane, is technically an improper integral, but we won’t worry about that; in all our examples either the density will be nonzero on just a finite region or it will be obvious that there is a limit as the region becomes infinite.

Solution: We are integrating over a rectangle and Ce x^ is a product of g(x) = Ce x and h(y) = 1. By the magic product formula, the integral is

✓Z (^3)

0

Ce x^ dx

✓Z 2

0

dy

= 2C ·

1 e ^3

Therefore C =

2(1 e ^3 )

which is just a shade over 1/2. Now using the product

formula again to integrate over the unit square gives a probability of

Z

[0,1]⇥[0,1]

Ce x^ dA = C(1 e ^1 ) =

1 e ^1 2(1 e ^3 )