Section 1.1. Introduction to R n
|
|
|
- Garey Arnold
- 10 years ago
- Views:
Transcription
1 The Calculus of Functions of Several Variables Section. Introduction to R n Calculus is the study of functional relationships and how related quantities change with each other. In your first exposure to calculus, the primary focus of your attention was on functions involving a single independent variable and a single dependent variable. For such a function f, a single real number input x determines a unique single output value f(x). However, many of the functions of importance both within mathematics itself as well as in the application of mathematics to the rest of the world involve many variables simultaneously. For example, frequently in physics the function which describes the force acting on an object moving in space depends on three variables, the three coordinates which describe the location of the object. If the force function also varies with time, then the force depends on four variables. Moreover, the output of the force function will itself involve three variables, the three coordinate components of the force. Hence the force function is such that it takes three, or four, variables for input and outputs three variables. Far more complicated functions are easy to imagine: the gross national product of a country is a function of thousands of variables with a single variable as output, an airline schedule is a function with thousands of inputs (cities, planes, and people to be scheduled, as well as other variables like fuel costs and the schedules of competing airlines) and perhaps hundreds of outputs (the particular routes flown, along with their times). Although such functions may at first appear to be far more difficult to work with than the functions of single variable calculus, we shall see that we will often be able to reduce problems involving functions of several variables to related problems involving only single variable functions, problems which we may then handle using already familiar techniques. By definition, a function takes a single input value and associates it with a single output value. Hence, even though in this book the inputs to our functions will often involve several variables, as will the outputs, we will nevertheless want to regard the input and output of a function as single points in some multidimensional space. This is natural in the case of, for example, the force function described above, where the input is a point in three dimensional space, four if we need to use time, but requires some mathematical abstraction if we want to consider the input to the gross national product function as a point in some space of many thousands of dimensions. Because even the geometry of twoand three-dimensional space may be in some respects new to you, we will use this chapter to study the geometry of multidimensional space before proceeding to the study of calculus proper in Chapter. Throughout the book we will let R denote the set of real numbers. Definition By n-dimensional Euclidean space we mean the set R n = {(x, x,..., x n ) : x i R, i =,,..., n}. (..) Copyright c by Dan Sloughter
2 Introduction to R n Section. x ( x, x, x 3 ) x x 3 Figure.. A point in R 3 That is, R n is the space of all ordered n-tuples of real numbers. We will denote a point in this space by x = (x, x,..., x n ), (..) and, for i =,,..., n, we call x i the ith coordinate of x. Example When n =, we have R = {(x, x ) : x, x R}, which is our familiar representation for points in the Cartesian plane. As usual, we will in this case frequently label the coordinates as x and y, or something similar, instead of numbering them as x and x. Example When n = 3, we have R 3 = {(x, x, x 3 ) : x, x, x 3 R}. Just as we can think of R as a way of assigning coordinates to points in the Euclidean plane, we can think of R 3 as assigning coordinates to three-dimensional Euclidean space. To picture this space, we must imagine three mutually perpendicular axes with the coordinates marked off along the axes as in Figure... Again, we will frequently label the coordinates of a point in R 3 as, for example, x, y, and z, or u, v, and w, rather than using numbered coordinates. Example If an object moves through space, its location may be specified with four coordinates, three spatial coordinate, say, x, y, and z, and one time coordinate, say t. Thus its location is specified by a point p = (x, y, z, t) in R 4. Of course, we cannot draw a picture of such a point. Before beginning our geometric study of R n, we first need a few basic algebraic definitions.
3 Section. Introduction to R n 3 Definition Let x = (x, x,..., x n ) and y = (y, y,..., y n ) be points in R n and let a be a real number. Then we define x + y = (x + y, x + y,..., x n + y n ), (..3) and Example x y = (x y, x y,..., x n y n ), (..4) ax = (ax, ax,..., ax n ). (..5) If x = (, 3, ) and y = ( 4,, ) are two points in R 3, then x + y = (,, ), and x y = (6, 4, 3), y x = ( 6, 4, 3), 3x = (6, 9, 3), y = (8,, 4). Notice that we defined addition and subtraction for points in R n, but we did not define multiplication. In general there is no form of multiplication for such points that is useful for our purpose. Of course, multiplication is defined in the special case n = and for the special case n = if we consider the points in R as points in the complex plane. We shall see in Section.3 that there is also an interesting and useful type of multiplication in R 3. Also note that (..5) does provide a method for multiplying a point in R n by a a real number, the result being another point in R n. In such cases we often refer to the real number as a scalar and this multiplication as scalar multiplication. We shall provide a geometric interpretation of this form of multiplication shortly. Geometry of R n Recall that if x = (x, x ) and y = (y, y ) are two points in R, then, using the Pythagorean theorem, the distance from x to y is (y x ) + (y x ). (..6) This formula is easily generalized to R 3 : Suppose x = (x, x, x 3 ) and y = (y, y, y 3 ) are two points in R 3. Let z = (y, y, x 3 ). Since the first two coordinates of y and z are the same, y and z lie on the same vertical line, and so the distance between them is simply y 3 x 3. (..7) Moreover, x and z have the same third coordinate, and so lie in the same horizontal plane. Hence the distance between x and z is the same as the distance between (x, x ) and (y, y ) in R, that is, (y x ) + (y x ). (..8)
4 4 Introduction to R n Section. (, y, y ) y 3 ( y, y, x ) 3 ( x, x, x ) 3 Figure.. Distance from x = (x, x, x 3 ) and y = (y, y, y 3 ) Finally, the points x, y, and z form a right triangle with right angle at z. Hence, using the Pythagorean theorem again, the distance from x to y is ( (y x ) + (y x ) ) + y3 x 3 = (y x ) + (y x ) + (y 3 x 3 ). In particular, if we let x denote the distance from x = (x, x, x 3 ) to the origin (,, ) in R 3, then x = x + x + x 3. (..9) With this notation, the distance from x to y is y x = (y x, y x, y 3 x 3 ) = (y x ) + (y x ) + (y 3 x 3 ). (..) Example If x = (,, 3) and y = (3,, ), then the distance from x to the origin is and the distance from x to y is given by x = + + ( 3) = 4 y x = (, 4, 4) = = 6. Although we do not have any physical analogies to work with when n > 3, nevertheless we may generalize (..9) in order to define distance in R n. Definition x, by If x = (x, x,..., x n ) is a point in R n, we define the norm of x, denoted x = x + x + + x n. (..) For two points x and y in R n, we define the distance between x and y, denoted d(x, y), by d(x, y) = y x. (..)
5 Section. Introduction to R n 5 We will let = (,,..., ) denote the origin in R n. Then we have x = d(x, ); that is, the norm of x is the distance from x to the origin. Example If x = (, 3,, 5), a point in R 4, then the distance from x to the origin is x = = 39. If y = (3,,, 4), then the distance from x to y is d(x, y) = y x = (,,, ) = 7. Note that if x = (x, x,..., x n ) is a point in R n and a is a scalar, then ax = (ax, ax,..., ax n ) = a x + a x + + x n = a x + x + + x n = a x. (..3) That is, the norm of a scalar multiple of x is just the absolute value of the scalar times the norm of x. In particular, if x, then x x = x =. x That is, is a unit distance from the origin. x x Definition Let p = (p, p,..., p n ) be a point in R n and let r > be a real number. The set of all points (x, x,..., x n ) in R n which satisfy the equation (x p ) + (x p ) + + (x n p n ) = r (..4) is called an (n )-dimensional sphere with radius r and center p, which we denote S n (p, r). The set of all points (x, x,..., x n ) in R n which satisfy the inequality (x p ) + (x p ) + + (x n p n ) < r (..5) is called an open n-dimensional ball with radius r and center p, which we denote B n (p, r). The set of all points (x, x,..., x n ) in R n which satisfy the inequality (x p ) + (x p ) + + (x n p n ) r (..6) is called a closed n-dimensional ball with radius r and center p, which we denote B n (p, r).
6 6 Introduction to R n Section. p r Figure..3 A closed ball in R A sphere S n (p, r) is the set of all points which lie a fixed distance r from a fixed point p in R n. Note that for n =, S (p, r) consists of only two points, namely, the point p r that lies a distance r to the left of p and the point p + r that lies a distance r to the right of p; B (p, r) is the open interval (p r, p + r); and B (p, r) is the closed interval [p r, p + r]. In this sense open and closed balls are natural analogs of open and closed intervals on the real line. For n =, a sphere is a circle, an open ball is a disk without its enclosing circle, and a closed ball is a disk along with its enclosing circle. Vectors Many of the quantities of interest in physics, such as velocities, accelerations, and forces, involve both a magnitude and a direction. For example, we might speak of a force of magnitude newtons acting on an object at the origin in a plane at an angle of π 4 with the horizontal. It is common to picture such a quantity as an arrow, with length given by the magnitude and with the tip pointing in the specified direction, and to refer to it as a vector. Now any point x = (x, x ), x, in R specifies a vector in the plane, namely the vector starting at the origin and ending at x. The magnitude, or length, of such a vector is x and its direction is specified by the angle α that it makes with the horizontal axis or by the angle β that it makes with the vertical axis. Note that cos(α) = x x and cos(β) = x x and that, although neither cos(α) nor cos(β) uniquely determines the direction of the vector by itself, together they completely determine the direction. See Figure..4. In general, we may think of x = (x, x,..., x n ) either as a point in R n or as a vector in R n, starting at the origin with length x. If x, we say, in analogy with the case in
7 Section. Introduction to R n 7 x = ( x, x ) x β α x Figure..4 A vector viewed as an arrow from = (, ) to x = (x, x ) R, that the direction of x is the vector ( x u = x, x x,..., x ) n x (..7) The coordinates of this vector u are called the direction cosines of x because we may think of u k = x k x as the cosine of the angle between the vector x and the kth axis for k =,,..., n, an interpretation that will become clearer after our discussion of angles in R n in the next section. Alternatively, we may think of u as a vector of unit length that points in the same direction as x. Any vector of length, such as u, is called a unit vector. We call the zero-vector since it has length. Note that does not have a direction. Example The vector x = (,,, 3) in R 4 has length x = 8 and direction ( u =,, ) 3, = (,,, 3) It is now possible to give geometric meanings to our definitions of scalar multiplication, vector addition, and vector subtraction. First note that if x and a >, then so ax has direction ax = a x, ax ax = x x, the same as x. Hence ax points in the same direction as x, but with length a times the length of x. If a <, then ax = a x = a x,
8 8 Introduction to R n Section. x x x Figure..5 Examples of scalar multiplication of a vector in R so ax has direction ax ax = x x. Hence, in this case, ax has the opposite direction of x with length a times the length of x. See Figure..5 for examples in R. Next consider two vectors x = (x, x ) and y = (y, y ) in R and their sum z = x + y = (x + y, x + y ). Note that the tip of z is located x units horizontally and x units vertically from the tip of y. Geometrically, the tip of z is located at the tip of x if x were first translated parallel to itself so that its tail now coincided with the tip of y. Equivalently, we can view z as the diagonal of the parallelogram which has x and y for its sides. See Figure..6 for an example. x x + y y x x Figure..6 Example of vector addition in R Finally, consider two vectors x = (x, x ) and y = (y, y ) in R and their difference z = x y = (x y, x y ).
9 Section. Introduction to R n 9 x - y x y x y x - y Figure..7 Example of vector subtraction in R Note that since the coordinates of z are just the differences in the coordinates of x and y, z has the magnitude and direction of an arrow pointing from the tip of y to the tip of x, as illustrated in Figure..7. In other words, we may picture z geometrically by translating an arrow drawn from the tip of y to the tip of z parallel to itself until its tail is at the origin. In the previous discussion it is tempting to think of the arrow from the tip of y to the tip of x as really being x y, not just a parallel translate of x y. In fact, it is convenient and useful to think of parallel translates of a given vector, that is, vectors which have the same direction and magnitude, but with their tails not at the origin, as all being the same vector, just drawn in different places in space. We shall see many instances where viewing vectors in this way significantly helps our understanding. Before closing this section, we need to call attention to some special vectors. Definition The vectors in R n are called the standard basis vectors. e = (,,,..., ) e = (,,,..., ). e n = (,,,..., ) (..8) Example In R the standard basis vectors are e = (, ) and e = (, ). Note that if x = (x, y) is any vector in R, then For example, (, 5) = e + 5e. x = (x, ) + (, y) = x(, ) + y(, ) = xe + ye. Example In R 3 the standard basis vectors are e = (,, ), e = (,, ), and e 3 = (,, ). Note that if x = (x, y, z) is any vector in R 3, then x = (x,, ) + (, y, ) + (,, z) = x(,, ) + y(,, ) + z(,, ) = xe + ye + ze 3. For example, (,, 4) = e + e 4e 3.
10 Introduction to R n Section. The previous two examples are easily generalized to show that any vector in R n may be written as a sum of scalar multiples of the standard basis vectors. Specifically, if x = (x, x,..., x n ), then we may write x as x = x e + x e + + x n e n. (..9) We say that x is a linear combination of the standard basis vectors e, e,..., e n. It is also important to note that there is only one choice for the scalars in this linear combination. That is, for any vector x in R n there is one and only one way to write x as a linear combination of the standard basis vectors. Notes on notation In this text, we will denote vectors using a plain bold font. This is a common convention, but not the only one used for denoting vectors. Another frequently used convention is to place arrows above a variable which denotes a vector. For example, one might write x for what we have been denoting x. It is also worth noting that in many books the standard basis vectors in R are denoted by i and j (or i and j ), and the standard basis vectors in R 3 by i, j, and k (or i, j, and k ). Since this notation is not easy to extend to higher dimensions, we will not make much use of it. Problems. Let x = (, ), y = (, 3), and z = (, 4). For each of the following, plot the points x, y, z, and the indicated point w. (a) w = x + y (c) w = z x (b) w = x y (d) w = 3x + y z. Let x = (, 3, ), y = (3,, ), and z = (, 4, ). Compute each of the following. (a) x + y (c) 3z y (b) x z + 3y (d) 3x + 4z 3. Let x = (,,, 3), y = (, 3,, ), and z = (,, 3, 4). Compute each of the following. (a) x z (c) 3y x + 4z (b) y + x 3z (d) x + 3z 4y 4. Let x = (, ) and y = (, 3). Compute each of the following. (a) x (c) 3x (b) x y (d) 4y 5. Let x = (, 3, ), y = (,, 5), and z = (3,, ). Compute each of the following. (a) x (b) x + y
11 Section. Introduction to R n (c) 5x (d) x + y + z 6. Find the distances between the following pairs of points. (a) x = (3, ), y = (, 3) (b) x = (,, ), y = (,, 3) (c) x = (4,,, ), y = (, 3,, ) (d) z = (3, 3, ), y = (,, 5) (e) w = (,, 4,, 3, ), u = (3,,, 3,, ) 7. Draw a picture of the following sets of points in R. (a) S ((, ), ) (b) B ((, ), ) (c) B ((, ), ) 8. Draw a picture of the following sets of points in R. (a) S (, 3) (b) B (, 3) (c) B (, 3) 9. Describe the differences between S ((,, ), ), B 3 ((,, ), ), and B 3 ((,, ), ) in R 3.. Is the point (, 4, 5) in the the open ball B 3 ((,, 3), 4)?. Is the point (3,,, 4, ) in the open ball B 5 ((,, 4,, 3), 3)?. Find the length and direction of the following vectors. (a) x = (, ) (b) z = (,, ) (c) x = (,, 3) (d) w = (,,, 3) 3. Let x = (, 3), y = (4, ), and z = (, ). Plot x, y, and z. Also, show how to obtain each of the following geometrically. (a) w = x + y (c) w = 3z (e) w = z (g) w = x + 3z (b) w = y x (d) w = z (f) w = x + y + z (h) w = x 4 y 4. Suppose x = (x, x,..., x n ), y = (y, y,..., y n ), and z = (z, z,..., z n ) are vectors in R n and a, b, and c are scalars. Verify the following. (a) x + y = y + x (c) a(x + y) = ax + ay (e) a(bx) = (ab)x (g) x = x (b) x + (y + z) = (x + y) + z (d) (a + b)x = ax + bx (f) x + = x (h) x + ( x) =, where x = x 5. Let u = (, ) and v = (, ) be vectors in R. (a) Let x = (, ). Find scalars a and b such that x = au + bv. Are a and b unique? (b) Let x = (x, y) be an arbitrary vector in R. Show that there exist unique scalars a and b such that x = au + bv.
12 Introduction to R n Section. (c) The result in (b) shows that u and v form a basis for R which is different from the standard basis of e and e. Show that the vectors u = (, ) and w = (, ) do not form a basis for R. (Hint: Show that there do not exist scalars a and b such that x = au + w when x = (, ).)
13 The Calculus of Functions of Several Variables Section. Angles and the Dot Product Suppose x = (x, x ) and y = (y, y ) are two vectors in R, neither of which is the zero vector. Let α and β be the angles between x and y and the positive horizontal axis, respectively, measured in the counterclockwise direction. Supposing α β, let θ = α β. Then θ is the angle between x and y measured in the counterclockwise direction, as shown in Figure... From the subtraction formula for cosine we have cos(θ) = cos(α β) = cos(α) cos(β) + sin(α) sin(β). (..) Now cos(α) = x x, cos(β) = y y, and Thus, we have sin(α) = x x, sin(β) = y y. cos(θ) = x y x y + x y x y = x y + x y x y. (..) x α θ β y Figure.. The angle between two vectors Copyright c by Dan Sloughter
14 Angles and the Dot Product Section. y θ x Figure.. The angle between x = (, ) and y = (, 3) Example Let θ be the smallest angle between x = (, ) and y = (, 3), measured in the counterclockwise direction. Then, by (..), we must have cos(θ) = ()() + ()(3) x y = 5 =. 5 Hence θ = cos ( ) = π 4. See Figure... With more work it is possible to show that if x = (x, x, x 3 ) and y = (y, y, y 3 ) are two vectors in R 3, neither of which is the zero vector, and θ is the smallest positive angle between x and y, then cos(θ) = x y + x y + x 3 y 3 (..3) x y The term which appears in the numerators in both (..) and (..3) arises frequently, so we will give it a name. Definition If x = (x, x,..., x n ) and y = (y, y,..., y n ) are vectors in R n, then the dot product of x and y, denoted x y, is given by x y = x y + x y + + x n y n. (..4) Note that the dot product of two vectors is a scalar, not another vector. Because of this, the dot product is also called the scalar product. It is also an example of what is called an inner product and is often denoted by x, y.
15 Section. Angles and the Dot Product 3 Example If x = (,, 3, ) and y = (,, 3, 5), then x y = ()( ) + ()() + ( 3)(3) + ( )(5) = = 6. The next proposition lists some useful properties of the dot product. Proposition For any vectors x, y, and z in R n and scalar α, x y = y x, (..5) and x (y + z) = x y + x z, (..6) (αx) y = α(x y), (..7) x =, (..8) x x, (..9) x x = only if x =, (..) x x = x. (..) These properties are all easily verifiable using the properties of real numbers and the definition of the dot product and will be left to Problem 9 for you to check. At this point we can say that if x and y are two nonzero vectors in either R or R 3 and θ is the smallest positive angle between x and y, then cos(θ) = x y x y. (..) We would like to be able to make the same statement about the angle between two vectors in any dimension, but we would first have to define what we mean by the angle between two vectors in R n for n > 3. The simplest way to do this is to turn things around and use (..) to define the angle. However, in order for this to work we must first know that x y x y, since this is the range of values for the cosine function. This fact follows from the following inequality. Cauchy-Schwarz Inequality For all x and y in R n, x y x y. (..3) To see why this is so, first note that both sides of (..3) are when y =, and hence are equal in this case. Assuming x and y are fixed vectors in R n, with y, let t be a real number and consider the function f(t) = (x + ty) (x + ty). (..4)
16 4 Angles and the Dot Product Section. By (..9), f(t) for all t, while from (..6), (..7), and (..), we see that f(t) = x x + x ty + ty x + ty ty = x + (x y)t + y t. (..5) Hence f is a quadratic polynomial with at most one root. Since the roots of f are, as given by the quadratic formula, it follows that we must have Thus and so (x y) ± 4(x y) 4 x y y, 4(x y) 4 x y. (..6) (x y) x y, (..7) x y x y. (..8) Note that x y = x y if and only if there is some value of t for which f(t) =, which, by (..8) and (..), happens if and only if x + ty =, that is, x = ty, for some value of t. Moreover, if y =, then y = x for any x in R n. Hence, in either case, the Cauchy-Schwarz inequality becomes an equality if and only if either x is a scalar multiple of y or y is a scalar multiple of x. With the Cauchy-Schwarz inequality we have x y x y (..9) for any nonzero vectors x and y in R n. Thus we may now state the following definition. Definition the angle between x and y. If x and y are nonzero vectors in R n, then we call ( ) x y θ = cos x y (..) Example Suppose x = (,, 3) and y = (,, ). Then x y = 4+6 = 3, x = 4, and y = 3, so if θ is the angle between x and y, we have Hence, rounding to four decimal places, cos(θ) = = 4. θ = cos ( 4 ) =.3.
17 Section. Angles and the Dot Product 5 Example Suppose x = (,, 3, ) and y = (, 3,, 4). Then x y = 8, x = 5, and y = 3, so if θ is the angle between x and y, we have, rounding to four decimal places, ( ) 8 θ = cos = Example Let x be a vector in R n and let α k, k =,,..., n, be the angle between x and the kth axis. Then α k is the angle between x and the standard basis vector e k. Thus cos(α k ) = x e k x e k = x k x. That is, cos(α ), cos(α ),..., cos(α n ) are the direction cosines of x as defined in Section.. For example, if x = (3,, )in R 3, then x = 4 and the direction cosines of x are cos(α ) = 3 4, cos(α ) = 4, and giving us, to four decimal places, and cos(α 3 ) = 4, α =.645, α =.3, α 3 =.69. Note that if x and y are nonzero vectors in R n with x y =, then the angle between x and y is cos () = π. This is the motivation behind our next definition. Definition Vectors x and y in R n are said to be orthogonal (or perpendicular), denoted x y, if x y =. It is a convenient convention of mathematics not to restrict the definition of orthogonality to nonzero vectors. Hence it follows from the definition, and (..8), that is orthogonal to every vector in R n. Moreover, is the only vector in R n which has this property, a fact you will be asked to verify in Problem. Example The vectors x = (, ) and y = (, ) are both orthogonal to z = (, ) in R. Note that y = x and, in fact, any scalar multiple of x is orthogonal to z.
18 6 Angles and the Dot Product Section. Example In R 4, x = (,,, ) is orthogonal to y = (,,, ). As in the previous example, any scalar multiple of x is orthogonal to y. Definition We say vectors x and y are parallel if x = αy for some scalar α. This definition says that vectors are parallel when one is a nonzero scalar multiple of the other. From our proof of the Cauchy-Schwarz inequality we know that it follows that if x and y are parallel, then x y = x y. Thus if θ is the angle between x and y, cos(θ) = x y x y = ±. That is, θ = or θ = π. Put another way, x and y either point in the same direction or they point in opposite directions. Example The vectors x = (, 3) and y = (, 6) are parallel since x = y. Note that x y = and x y = 4 =, so x y = x y. It follows that the angle between x and y is π. Two basic results about triangles in R and R 3 are the triangle inequality (the sum of the lengths of two sides of a triangle is greater than or equal to the length of the third side) and the Pythagorean theorem (the sum of the squares of the lengths of the legs of a right triangle is equal to the square of the length of the other side). In terms of vectors in R n, if we picture a vector x with its tail at the origin and a vector y with its tail at the tip of x as two sides of a triangle, then the remaining side is given by the vector x + y. Thus the triangle inequality may be stated as follows. Triangle inequality If x and y are vectors in R n, then x + y x + y. (..) The first step in verifying (..) is to note that, using (..) and (..6), x + y = (x + y) (x + y) = x x + (x y) + y y = x + (x y) + y. (..) Since x y x y by the Cauchy-Schwarz inequality, it follows that x + y x + x y + y = ( x + y ), from which we obtain the triangle inequality by taking square roots. Note that in (..) we have x + y = x + y if and only if x y =, that is, if and only if x y. Hence we have the following famous result.
19 Section. Angles and the Dot Product 7 Pythagorean theorem Vectors x and y in R n are orthogonal if and only if x + y = x + y. (..3) Perhaps the most important application of the dot product is in finding the orthogonal projection of one vector onto another. This is illustrated in Figure..3, where w represents the projection of x onto y. The result of the projection is to break x into the sum of two components, w, which is parallel to y, and x w, which is orthogonal to y, a procedure which is frequently very useful. To compute w, note that if θ is the angle between x and y, then x y w = x cos(θ) = x x y = x y y = x u, (..4) where u = is the direction of y. Hence w = x u u when θ π, which is when x u >, and w = x u u when π < θ π, which is when x u <. Thus, in either case, w = (x u)u. y y x x w θ w y Figure..3 Orthogonal projection Definition Given vectors x and y, y, in R n, the vector w = (x u)u, (..5) where u is the direction of y, is called the orthogonal projection, or simply projection, of x onto y. We also call w the component of x in the direction of y and x u the coordinate of x in the direction of y. In the special case where y = e k, the kth standard basic vector, k =,,..., n, we see that the coordinate of x = (x, x,..., x n ) in the direction of y is just x e k = x k, the kth coordinate of x.
20 8 Angles and the Dot Product Section. Example Suppose x = (,, 3) and y = (, 4, ). Then the direction of y is u = 7 (, 4, ), so the coordinate of x in the direction of y is x u = 7 ( ) = 9 7. Thus the projection of x onto y is w = 9 u = 9 (, 4, ) = 7 7 ( 9 7, 36 ) 7,. Problems. Let x = (3, ), y = (, 5), and z = (4, ). Compute each of the following. (a) x y (b) x y (c) x (3y z) (d) z (x + 5y). Let x = (3,, ), y = (, 3, 5), and z = (, 4, ). Compute each of the following. (a) x y (b) x y (c) x (3y z) (d) z (x + 5y) 3. Let x = (3,,, ), y = (, 3, 4, 5), and z = (, 4,, ). Compute each of the following. (a) x y (b) x y (c) x (3y z) (d) z (x + 5y) 4. Find the angles between the following pairs of vectors. First find your answers in radians and then convert to degrees. (a) x = (, ), y = (, ) (b) z = (3, ), w = ( 3, ) (c) x = (,, ), y = (,, ) (d) y = (,, 4), z = (, 3, ) (e) x = (,,, ), y = (,,, ) (f) x = (,, 3, 4, 5), z = (5, 4, 3,, ) 5. The three points (, ), (, ), and (, ) determine a triangle in R. Find the measure of its three angles and verify that their sum is π. 6. Given three points p, q, and r in R n, the vectors q p, r p, and q r describe the sides of the triangle with vertices at p, q, and r. For each of the following, find the measure of the three angles of the triangle with vertices at the given points. (a) p = (,, ), q = (,, ), r = (, 3, ) (b) p = (,,, ), q = (,,, 3), r = (, 3,, )
21 Section. Angles and the Dot Product 9 7. For each of the following, find the angles between the given vector and the coordinate axes. (a) x = (, 3) (b) w = (,, ) (c) y = (, 3,, ) (d) x = (,, 3, 4, 5) 8. For each of the following, find the coordinate of x in the direction of y and the projection w of x onto y. In each case verify that y (x w). (a) x = (, 4), y = (4, ) (b) x = (4,, 4), y = (, 3, ) (c) x = ( 4, 3, ), y = (,, 6) (d) x = (,, 4, ), y = (,,, 3) 9. Verify properties (..5) through (..) of the dot product.. If w is the projection of x onto y, verify that y is orthogonal to x w.. Write x = (,, 3) as the sum of two vectors, one parallel to y = (, 3, ) and the other orthogonal to y.. Suppose x is a vector with the property that x y = for all vectors y in R n, y x. Show that it follows that x =.
22 The Calculus of Functions of Several Variables Section.3 The Cross Product As we noted in Section., there is no general way to define multiplication for vectors in R n, with the product also being a vector of the same dimension, which is useful for our purposes in this book. However, in the special case of R 3 there is a product which we will find useful. One motivation for this product is to consider the following problem: Given two vectors x = (x, x, x 3 ) and y = (y, y, y 3 ) in R 3, not parallel to one another, find a third vector w = (w, w, w 3 ) which is orthogonal to both x and y. Thus we want w x = and w y =, which means we need to solve the equations x w + x w + x 3 w 3 = y w + y w + y 3 w 3 = (.3.) for w, w, and w 3. Multiplying the first equation by y 3 and the second by x 3 gives us x y 3 w + x y 3 w + x 3 y 3 w 3 = x 3 y w + x 3 y w + x 3 y 3 w 3 =. (.3.) Subtracting the second equation from the first, we have One solution of (.3.3) is given by setting (x y 3 x 3 y )w + (x y 3 x 3 y )w =. (.3.3) w = x y 3 x 3 y w = (x y 3 x 3 y ) = x 3 y x y 3. (.3.4) Finally, from the first equation in (.3.), we now have x 3 w 3 = x (x y 3 x 3 y ) x (x 3 y x y 3 ) = x x 3 y x x 3 y, (.3.5) from which we obtain the solution w 3 = x y x y. (.3.6) The choices made in arriving at (.3.4) and (.3.6) are not unique, but they are the standard choices which define w as the cross or vector product of x and y. Definition Given vectors x = (x, x, x 3 ) and y = (y, y, y 3 ) in R 3, the vector x y = (x y 3 x 3 y, x 3 y x y 3, x y x y ) (.3.7) is called the cross product, or vector product, of x and y. Copyright c by Dan Sloughter
23 The Cross Product Section.3 Example If x = (,, 3) and y = (,, ), then x y = ( + 3, 3, ) = (5,, 3). Note that and x (x y) = = y (x y) = 5 3 =, showing that x (x y) and y (x y) as claimed. It is also interesting to note that y x = ( 3, 3, + ) = ( 5,, 3) = (x y). This last calculation holds in general for all vectors x and y in R 3. Proposition Suppose x, y, and z are vectors in R 3 and α is any real number. Then x y = (y x), (.3.8) x (y + z) = (x y) + (x z), (.3.9) (x + y) z = (x z) + (y z), (.3.) α(x y) = (αx) y = x (αy), (.3.) and x =. (.3.) Verification of these properties is straightforward and will be left to Problem. Also, notice that e e = e 3, (.3.3) e e 3 = e, (.3.4) and e 3 e = e ; (.3.5) that is, the cross product of two standard basis vectors is either the other standard basis vector or its negative. Moreover, note that in these cases the cross product points in the direction your thumb would point if you were to wrap the fingers of your right hand from the first vector to the second. This is in fact always true and results in what is known as the right-hand rule for the orientation of the cross product, as shown in Figure.3.. Hence given two vectors x and y, we can always determine the direction of x y; to
24 Section.3 The Cross Product 3 x y y x Figure.3. The right-hand rule completely identify x y geometrically, we need only to know its length. Now if θ is the angle between x and y, then x y = (x y 3 x 3 y ) + (x 3 y x y 3 ) + (x y x y ) = x y 3 x x 3 y y 3 + x 3y + x 3y x x 3 y y 3 + x y 3 + x y x x y y + x y = (x + x + x 3)(y + y + y 3) (x y + x y + x 3y 3) (x x 3 y y 3 + x x 3 y y 3 + x x y y ) = (x + x + x 3)(y + y + y 3) (x y + x y + x 3 y 3 ) = x y (x y) = x y ( x y cos(θ)) = x y ( cos (θ)) = x y sin (θ). (.3.6) Taking square roots, and noting that sin(θ) since, by the definition of the angle between two vectors, θ π, we have the following result. Proposition If θ is the angle between two vectors x and y in R 3, then x y = x y sin(θ). (.3.7) y h θ x Figure.3. Height of the parallelogram is h = y sin(θ)
25 4 The Cross Product Section.3 3 y 4 x Figure.3.3 Parallelogram with vertices at (,, ), (6,, ), (8, 5, ), and (, 4, ) The last theorem has several interesting consequences. One of these comes from recognizing that if we draw a parallelogram with x and y as adjacent sides, as in Figure.3., then the height of the parallelogram is y sin(θ), where θ is the angle between x and y. Hence the area of the parallelogram is x y sin(θ), which by (.3.7) is x y. Proposition Suppose x and y are two vectors in R 3. Then the area of the parallelogram which has x and y for adjacent sides is x y. Example Consider the parallelogram P with vertices at (,, ), (6,, ), (8, 5, ), and (, 4, ). Two adjacent sides are specified by the vectors x = (6,, ) and y = (, 4, ) (see Figure.3.3), so the area of P is x y = ( 4, 6, 4 ) = ( 3, 4, ) = 59. See Figure.3.4 to see the relationship between x y and P. Example Consider the parallelogram P in the plane with vertices at (,, ), (3, ), (4, 4), and (, 3). Two adjacent sides are given by the vectors from (, ) to (3, ), that is and from (, ) to (, 3), that is, x = (3, ) (, ) = (, ), y = (, 3) (, ) = (, ). See Figure.3.5. However, since these vectors are in R, not in R 3, we cannot compute their cross product. To get around this, we consider the vectors w = (,, ) and v = (,, ) which are adjacent sides of the same parallelogram viewed as lying in R 3. Then the area of P is given by w v = (,, 4 ) = (,, 3) = 3.
26 Section.3 The Cross Product x y 5 5 y x Figure.3.4 Parallelogram with adjacent sides x = (6,, ) and y = (, 4, ) 4 3 y x 3 4 Figure.3.5 Parallelogram with vertices at (, ), (3, ), (4, 4), and (, 3) It is easy to extend the result of the previous theorem to computing the volume of a parallelepiped in R 3. Suppose x, y, and z are adjacent edges of parallelepiped P, as shown in Figure.3.6. Then the volume V of P is x y, which is the area of the base, multiplied by the height of P, which is the length of the projection of z onto x y. Since the latter is equal to z x y x y,
27 6 The Cross Product Section.3 x y z y Figure.3.6 Parallelepiped with adjacent edges x, y, and z x we have V = x y z x y x y = z (x y). (.3.8) Proposition The volume of a parallelepiped with adjacent edges x, y, and z is z (x y). Definition Given three vectors x, y, and z in R 3, the quantity z (x y) is called the scalar triple product of x, y, and x. Example Let x = (, 4, ), y = ( 3,, ), and z = (,, 5) be adjacent edges of parallelepiped P (see Figure.3.7). Then so Hence the volume of P is 6. x y = (4, 3, + ) = (3, 4, 3), z (x y) = = 6. The final result of this section follows from (.3.7) and the fact that the angle between parallel vectors is either or π. Proposition Vectors x and y in R 3 are parallel if and only if x y =. Note that, in particular, for any vector x in R 3, x x =
28 Section.3 The Cross Product z y x -4 - Figure.3.7 Parallelepiped with adjacent edges x = (, 4, ), y = ( 3,, ), z = (,, 5) Problems. For each of the following pairs of vectors x and y, find x y and verify that x (x y) and y (x y). (a) x = (,, ), y = (, 3, ) (b) x = (,, 4), y = (3,, ) (c) x = (, 3, ), y = (3, 9, 6) (d) x = (, 4, ), y = (3,, ). Find the area of the parallelogram in R 3 that has the vectors x = (, 3, ) and y = ( 3, 3, ) for adjacent sides. 3. Find the area of the parallelogram in R that has the vectors x = (3, ) and y = (, 4) for adjacent sides. 4. Find the area of the parallelogram in R 3 that has vertices at (,, ), (, 3, ), (, 4, 4), and ( 3,, 3). 5. Find the area of the parallelogram in R that has vertices at (, ), (4, ), (3, ), and (, ). 6. Find the area of the triangle in R 3 that has vertices at (,,, (, 3, ), and (, 3, ). 7. Find the area of the triangle in R that has vertices at (, ), (, ), and (, 3). 8. Find the volume of the parallelepiped that has the vectors x = (,, ), y = (,, ), and z = (,, 6) for adjacent sides. 9. A parallelepiped has base vertices at (,, ), (, 3, ), (, 4, 4), and ( 3,, 3) and top vertices at (,, 6), (3, 4, 7), (, 5, 9), and (, 3, 8). Find its volume.
29 8 The Cross Product Section.3. Verify the properties of the cross product stated in (.3.8) through (.3.).. Since z (x y), y (z x), and x (y z) are all equal to the volume of a parallelepiped with adjacent edges x, y, and z, they should all have the same value. Show that in fact z (x y) = y (z x) = x (y z). How do these compare with z (y z), y (z x), and x (z y)?. Suppose x and y are parallel vectors in R 3. Show directly from the definition of the cross product that x y =. 3. Show by example that the cross product is not associative. That is, find vectors x, y, and z such that x (y z) (x y) z.
30 The Calculus of Functions of Several Variables Section.4 Lines, Planes, and Hyperplanes In this section we will add to our basic geometric understanding of R n by studying lines and planes. If we do this carefully, we shall see that working with lines and planes in R n is no more difficult than working with them in R or R 3. Lines in R n We will start with lines. Recall from Section. that if v is a nonzero vector in R n, then, for any scalar t, tv has the same direction as v when t > and the opposite direction when t <. Hence the set of points {tv : < t < } forms a line through the origin. If we now add a vector p to each of these points, we obtain the set of points {tv + p : < t < }, which is a line through p in the direction of v, as illustrated in Figure.4. for R. p v Figure.4. A line in R through p in the direction of v Definition Given a vector p and a nonzero vector v in R n, the set of all points y in R n such that y = tv + p, (.4.) where < t <, is called the line through p in the direction of v. Copyright c by Dan Sloughter
31 Lines, Planes, and Hyperplanes Section p v - -4 Figure.4. The line through p = (, ) in the direction of v = (, 3) Equation (.4.) is called a vector equation for the line. If we write y = (y, y,..., y n ), v = (v, v,..., v n ), and p = (p, p,..., p n ), then (.4.) may be written as which holds if and only if (y, y,..., y n ) = t(v, v,..., v n ) + (p, p,..., p n ), (.4.) y = tv + p, y = tv + p,.. y n = tv n + p n. The equations in (.4.3) are called parametric equations for the line. (.4.3) Example Suppose L is the line in R through p = (, ) in the direction of v = (, 3) (see Figure.4.). Then y = t(, 3) + (, ) = (t +, 3t + ) is a vector equation for L and, if we let y = (x, y), x = t +, y = 3t +
32 Section.4 Lines, Planes, and Hyperplanes 3 y 5 q 5 p z x Figure.4.3 The line through p = (, 3, ) and q = (,, 4) are parametric equations for L. Note that if we solve for t in both of these equations, we have t = x, t = y 3. Thus x = y 3, and so y = 3x + 5. Of course, the latter is just the standard slope-intercept form for the equation of a line in R. Example Now suppose we wish to find an equation for the line L in R 3 which passes through the points p = (, 3, ) and q = (,, 4) (see Figure.4.3). We first note that the vector p q = (,, 3) gives the direction of the line, so y = t(,, 3) + (, 3, )
33 4 Lines, Planes, and Hyperplanes Section.4 q - p (q - p) - w w p Figure.4.4 Distance from a point q to a line is a vector equation for L; if we let y = (x, y, z), are parametric equations for L. x = t +, y = t + 3, z = 3t + As an application of these ideas, consider the problem of finding the shortest distance from a point q in R n to a line L with equation y = tv + p. If we let w be the projection of q p onto v, then, as we saw in Section., the vector (q p) w is orthogonal to v and may be pictured with its tail on L and its tip at q. Hence the shortest distance from q to L is (q p) w. See Figure.4.4. Example To find the distance from the point q = (,, 4) to the line L through the points p = (,, ) and r = (,, ), we must first find an equation for L. Since the direction of L is given by v = r p = (,, ), a vector equation for L is If we let y = t(,, ) + (,, ). u = then the projection of q p onto v is w = ((q p) u)u = ( (,, 4) v v = (,, ), (,, ))) (,, ) = (,, ).
34 Section.4 Lines, Planes, and Hyperplanes 5 y N L M z x Figure.4.5 Parallel (L and M) and perpendicular (L and N) lines Thus the distance from q to L is ( (q p) w = 3, 3 ), 4 = 8 4 =.5. Definition Suppose L and M are lines in R n with equations y = tv +p and y = tw +q, respectively. We say L and M are parallel if v and w are parallel. We say L and M are perpendicular, or orthogonal, if they intersect and v and w are orthogonal. Note that, by definition, a line is parallel to itself. Example and The lines L and M in R 3 with equations y = t(,, ) + (4,, ) y = t(, 4, ) + (5, 6, ), respectively, are parallel since (, 4, ) = (,, ), that is, the vectors (,, ) and (, 4, ) are parallel. See Figure.4.5. Example and The lines L and N in R 3 with equations y = t(,, ) + (4,, ) y = t(3,, ) + (, 5, ), respectively, are perpendicular since they intersect at (5, 3, ) (when t = for the first line and t = for the second line) and (,, ) and (3,, ) are orthogonal since See Figure.4.5. (,, ) (3,, ) = 3 =.
35 6 Lines, Planes, and Hyperplanes Section.4 Planes in R n The following definition is the first step in defining a plane. Definition Two vectors x and y in R n are said to be linearly independent if neither one is a scalar multiple of the other. Geometrically, x and y are linearly independent if they do not lie on the same line through the origin. Notice that for any vector x, and x are not linearly independent, that is, they are linearly dependent, since = x. Definition Given a vector p along with linearly independent vectors v and w, all in R n, the set of all points y such that where < t < and < s <, is called a plane. y = tv + sw + p, (.4.4) The intuition here is that a plane should be a two dimensional object, which is guaranteed because of the requirement that v and w are linearly independent. Also note that if we let y = (y, y,..., y n ), v = (v, v,..., v n ), w = (w, w,..., w n ), and p = (p, p,..., p n ), then (.4.4) implies that y = tv + sw + p, y = tv + sw + p,.... y n = tv n + sw n + p n. (.4.5) As with lines, (.4.4) is a vector equation for the plane and the equations in (.4.5) are parametric equations for the plane. Example Suppose we wish to find an equation for the plane P in R 3 which contains the three points p = (,, ), q = (, 3, ), and r = (, 3, ). The first step is to find two linearly independent vectors v and w which lie in the plane. Since P must contain the line segments from p to q and from p to r, we can take and v = q p = (,, ) w = r p = (,, ). Note that v and w are linearly independent, a consequence of p, q, and r not all lying on the same line. See Figure.4.6. We may now write a vector equation for P as y = t(,, ) + s(,, ) + (,, ). Note that y = p when t = and s =, y = q when t = and s =, and y = r when t = and s =. If we write y = (x, y, z), then, expanding the vector equation, (x, y, z) = t(,, ) + s(,, ) + (,, ) = ( t + s +, t + s +, t s + ),
36 Section.4 Lines, Planes, and Hyperplanes 7 y z v w -5 - x Figure.4.6 The plane y = tv + sw + p, with v = (,, ), w = (,, ), p = (,, ) giving us for parametric equations for P. x = t + s +, y = t + s +, z = t s + To find the shortest distance from a point q to a plane P, we first need to consider the problem of finding the projection of a vector onto a plane. To begin, consider the plane P through the origin with equation y = ta + sb where a =, b =, and a b. Given a vector q not in P, let r = (q a)a + (q b)b, the sum of the projections of q onto a and onto b. Then (q r) a = q a r a = q a (q a)(a a) (q b)(b a) = q a q a =, since a a = a = and b a =, and, similarly, (q r) b = q b r b = q b (q a)(a b) (q b)(b b) = q b q b =.
37 8 Lines, Planes, and Hyperplanes Section.4 (q - p) - r q - p r Figure.4.7 Distance from a point q to a plane It follows that for any y = ta + sb in the plane P, (q r) y = (q r) (ta + sb) = t(q r) a + s(q r) b =. That is, q r is orthogonal to every vector in the plane P. For this reason, we call r the projection of q onto the plane P, and we note that the shortest distance from q to P is q r. In the general case, given a point q and a plane P with equation y = tv + sw + p, we need only find vectors a and b such that a b, a =, b =, and the equation y = ta + sb + p describes the same plane P. You are asked in Problem 9 to verify that if we let c be the projection of w onto v, then we may take and b = a = v v (w c). w c If r is the sum of the projections of q p onto a and b, then r is the projection of q p onto P and (q p) r is the shortest distance from q to P. See Figure.4.7. Example equation To compute the distance from the point q = (, 3, 3) to the plane P with y = t(,, ) + s(,, ) + (,, ), let v = (,, ), w = (,, ), and p = (,, ). Then, using the above notation, we have a = 5 (,, ), c = (w a)a = 3 (,, ), 5
38 Section.4 Lines, Planes, and Hyperplanes 9 w c = (,, 5), 5 and b = 3 (,, 5). Since q p = (3,, ), the projection of q p onto P is r = ((3,, ) a)a + ((3,, ) b)b = (,, ) + 6 (,, 5) = (, 8, 5) 6 and (q p) r = (7, 4, 7). 6 Hence the distance from q to P is (q p) r = 94 6 = 7 6. More generally, we say vectors v, v,..., v k in R n are linearly independent if no one of them can be written as a sum of scalar multiples of the others. Given a vector p and linearly independent vectors v, v,..., v k, we call the set of all points y such that y = t v + t v + + t k v k + p, where < t j <, j =,,..., k, a k-dimensional affine subspace of R n. In this terminology, a line is a -dimensional affine subspace and a plane is a -dimensional affine subspace. In the following, we will be interested primarily in lines and planes and so will not develop the details of the more general situation at this time. Hyperplanes Consider the set L of all points y = (x, y) in R which satisfy the equation ax + by + d =, (.4.6) where a, b, and d are scalars with at least one of a and b not being. If, for example, b, then we can solve for y, obtaining y = a b x d b. (.4.7) If we set x = t, < t <, then the solutions to (.4.6) are y = (x, y) = ( t, a b t d ) ( = t, a ) ( +, d ). (.4.8) b b b
39 Lines, Planes, and Hyperplanes Section.4 L y y - p n p Figure.4.8 L is the set of points y for which y p is orthogonal to n Thus L is a line through (, d b ) in the direction of (, a b ). A similar calculation shows that if a, then we can describe L as the line through ( d a, ) in the direction of ( b a, ). Hence in either case L is a line in R. Now let n = (a, b) and note that (.4.6) is equivalent to Moreover, if p = (p, p ) is a point on L, then which implies that d = n p. Thus we may write (.4.9) as n y + d =. (.4.9) n p + d =, (.4.) n y n p =, and so we see that (.4.6) is equivalent to the equation n (y p) =. (.4.) Equation (.4.) is a normal equation for the line L and n is a normal vector for L. In words, (.4.) says that the line L consists of all points in R whose difference with p is orthogonal to n. See Figure.4.8. Example Suppose L is a line in R with equation x + 3y =.
40 Section.4 Lines, Planes, and Hyperplanes Then a normal vector for L is n = (, 3); to find a point on L, we note that when x =, y =, so p = (, ) is a point on L. Thus or, equivalently, is a normal equation for L. q p = ( 3, ). Thus is a vector equation for L. Note that so n is orthogonal to q p. (, 3) ((x, y) (, )) =, (, 3) (x, y + ) =, Since q = (, ) is also a point on L, L has direction y = t( 3, ) + (, ) n (q p) = (, 3) ( 3, ) =, Example If L is a line in R through p = (, 3) in the direction of v = (, ), then n = (, ) is a normal vector for L since v n =. Thus (, ) (x, y 3) = is a normal equation for L. Multiplying this out, we have (x ) + (y 3) = ; that is, L consists of all points (x, y) in R which satisfy x + y = 7. Now consider the case where P is the set of all points y = (x, y, z) in R 3 that satisfy the equation ax + by + cz + d =, (.4.) where a, b, c, and d are scalars with at least one of a, b, and c not being. If for example, a, then we may solve for x to obtain x = b a y c a z d a. (.4.3) If we set y = t, < t <, and z = s, < s <, the solutions to (.4.) are y = (x, y, z) = ( ba t ca s da ), t, s = t ( ba ),, + s ( c ) a,, + ( da ),,. (.4.4)
41 Lines, Planes, and Hyperplanes Section.4 n P y - p Figure.4.9 P is the set of points y for which y p is orthogonal to n Thus we see that P is a plane in R 3. In analogy with the case of lines in R, if we let n = (a, b, c) and let p = (p, p, p 3 ) be a point on P, then we have n p + d = ax + by + cz + d =, from which we see that n p = d, and so we may write (.4.) as n (y p) =. (.4.5) We call (.4.5) a normal equation for P and we call n a normal vector for P. In words, (.4.5) says that the plane P consists of all points in R 3 whose difference with p is orthogonal to n. See Figure.4.9. Example Let P be the plane in R 3 with vector equation y = t(,, ) + s(,, ) + (,, ). If we let v = (,, ) and w = (,, ), then n = v w = (4,, 6) is orthogonal to both v and w. Now if y is on P, then y = tv + sw + p for some scalars t and s, from which we see that n (y p) = n (tv + sw) = t(n v) + s(n w) = + =. That is, n is a normal vector for P. So, letting y = (x, y, z), (4,, 6) (x, y, z ) = (.4.6)
42 Section.4 Lines, Planes, and Hyperplanes 3 is a normal equation for P. Multiplying (.4.6) out, we see that P consists of all points (x, y, z) in R 3 which satisfy 4x y + 6z = 5. Example Suppose p = (,, ), q = (,, 3), and r = (, 3, ) are three points on a plane P in R 3. Then v = q p = ( 3, 3, ) and are vectors lying on P. Thus is a normal vector for P. Hence w = r p = (, 5, ) n = v w = (6, 4, 8) (6, 4, 8) (x, y, z ) = is a normal equation for P. Thus P is the set of all points (x, y, z) in R 3 satisfying 6x 4y + 8y = 6. The following definition generalizes the ideas in the previous examples. Definition Suppose n and p are vectors in R n with n. The set of all vectors y in R n which satisfy the equation n (y p) = (.4.7) is called a hyperplane through the point p. We call n a normal vector for the hyperplane and we call (.4.7) a normal equation for the hyperplane. In this terminology, a line in R is a hyperplane and a plane in R 3 is a hyperplane. In general, a hyperplane in R n is an (n )-dimensional affine subspace of R n. Also, note that if we let n = (a, a,..., a n ), p = (p, p,..., p n ), and y = (y, y,..., y n ), then we may write (.4.7) as or where d = n p. Example a (y p ) + a (y p ) + + a n (y n p n ) =, (.4.8) a y + a y + + a n y n + d = (.4.9) The set of all points (w, x, y, z) in R 4 which satisfy 3w x + 4y + z = 5 is a 3-dimensional hyperplane with normal vector n = (3,, 4, ).
43 4 Lines, Planes, and Hyperplanes Section.4 H q q - p n. (q - p) u p Figure.4. Distance from a point q to a hyperplane H The normal equation description of a hyperplane simplifies a number of geometric calculations. For example, given a hyperplane H through p with normal vector n and a point q in R n, the distance from q to H is simply the length of the projection of q p onto n. Thus if u is the direction of n, then the distance from q to H is (q p) u. See Figure.4.. Moreover, if we let d = p n as in (.4.9), then we have (q p) u = q u p u = q n p n n = q n + d. (.4.) n Note that, in particular, (.4.) may be used to find the distance from a point to a line in R and from a point to a plane in R 3. Example equation To find the distance from the point q = (, 3, 3) to the plane P in R 3 with x + y + z = 4, we first note that n = (,, ) is a normal vector for P. Using (.4.) with d = 4, we see that the distance from q to P is q n + d n = (, 3, 3) (,, ) 4 6 = 7 6. Note that this agrees with an earlier example. We will close this section with a few words about angles between hyperplanes. Note that a hyperplane does not have a unique normal vector. In particular, if n is a normal vector for a hyperplane H, then n is also a normal vector for H. Hence it is always possible to choose the normal vectors required in the following definition. Definition Let G and H be hyperplanes in R n with normal equations m (y p) =
44 Section.4 Lines, Planes, and Hyperplanes 5 and n (y q) =, respectively, chosen so that m n. Then the angle between G and H is the angle between m and n. Moreover, we will say that G and H are orthogonal if m and n are orthogonal and we will say G and H are parallel if m and n are parallel. The effect of the choice of normal vectors in the definition is to make the angle between the two hyperplanes be between and π. Example To find the angle θ between the two planes in R 3 with equations and x + y z = 3 x 3y z = 5, we first note that the corresponding normal vectors are m = (,, ) and n = (, 3, ). Since m n = 4, we will compute the angle between m and n. Hence Thus, rounding to four decimal places, cos(θ) = m ( n) m n = 4 6 = θ = cos ( 4 66 ) =.56. See Figure.4.. Example and The planes in R 3 with equations 3x + y z = 3 6x + y 4z = 3 are parallel since their normal vectors are m = (3,, ) and n = (6,, 4) and n = m. Problems. Find vector and parametric equations for the line in R through p = (, 3) in the direction of v = (, ).. Find vector and parametric equations for the line in R 4 through p = (,,, 3) in the direction of v = (, 3, 4, ). 3. Find vector and parametric equations for the lines passing through the following pairs of points.
45 6 Lines, Planes, and Hyperplanes Section.4 y - - z -5 x Figure.4. The planes x + y z = 3 and x 3y z = 5 (a) p = (, 3), q = (4, ) (b) p = (,, 3), q = (,, ) (c) p = (3,,, 4), q = (,, 4, ) (d) p = (4, 3, ), q = (,, 4) 4. Find the distance from the point q = (, 3) to the line with vector equation y = t(, ) + (3, ).
46 Section.4 Lines, Planes, and Hyperplanes 7 5. Find the distance from the point q = (, 3, ) to the line with vector equation y = t(,, 4) + (,, ). 6. Find the distance from the point r = (,, 3) to the line through the points p = (,, ) and q = (,, ). 7. Find the distance from the point r = (,,, 4) to the line through the points p = (,,, ) and q = (,, 4, 3). 8. Find vector and parametric equations for the plane in R 3 which contains the points p = (, 3, ), q = (,, ), and r = (, 3, ). 9. Find vector and parametric equations for the plane in R 4 which contains the points p = (, 3, 4, ), q = (, 3,, 4), and r = (,,, ).. Let P be the plane in R 3 with vector equation y = t(,, ) + s(,, 3) + (,, ). Find the distance from the point q = (, 3, ) to P.. Let P be the plane in R 4 with vector equation y = t(,,, 4)+s(,,, 3)+(,,, ). Find the distance from the point q = (, 3,, 3) to P.. Find a normal vector and a normal equation for the line in R with vector equation y = t(, ) + (, ). 3. Find a normal vector and a normal equation for the line in R with vector equation y = t(, ) + (, ). 4. Find a normal vector and a normal equation for the plane in R 3 with vector equation y = t(,, ) + s(3,, ) + (,, ). 5. Find a normal vector and a normal equation for the line in R which passes through the points p = (3, ) and q = (, 3). 6. Find a normal vector and a normal equation for the plane in R 3 which passes through the points p = (,, ), q = (, 3, ), and r = (,, ). 7. Find the distance from the point q = (3, ) in R to the line with equation x+y 3 =. 8. Find the distance from the point q = (,, ) in R 3 to the plane with equation x + y 3x = Find the distance from the point q = (3,,, ) in R 4 to the hyperplane with equation 3x + y z + 3w = 5.. Find the angle between the lines in R with equations 3x + y = 4 and x y = 5.. Find the angle between the planes in R 3 with equations 3x y+z = 5 and x y+z = 4.. Find the angle between the hyperplanes in R 4 with equations w + x + y z = 3 and w x + y + z = Find an equation for a plane in R 3 orthogonal to the plane with equation x+y 3z = 4 and passing through the point p = (,, ).
47 8 Lines, Planes, and Hyperplanes Section.4 4. Find an equation for the plane in R 3 which is parallel to the plane x y + z = 6 and passes through the point p = (,, ). 5. Show that if x, y, and z are vectors in R n with x y and x z, then x (ay + bz) for any scalars a and b. 6. Find parametric equations for the line of intersection of the planes in R 3 with equations x + y 6z = 4 and x y + z =. 7. Find parametric equations for the plane of intersection of the hyperplanes in R 4 with equations w x + y + z = 3 and w + 4x y + z = Let L be the line in R 3 with vector equation y = t(,, ) + (3,, ) and let P be the plane in R 3 with equation x + y 3z = 8. Find the point where L intersects P. 9. Let P be the plane in R n with vector equation y = tv+sw+p. Let c be the projection of w onto v, a = v v, and b = (w c). w c Show that y = ta + sb + p is also a vector equation for P.
48 The Calculus of Functions of Several Variables Section.5 Linear and Affine Functions One of the central themes of calculus is the approximation of nonlinear functions by linear functions, with the fundamental concept being the derivative of a function. This section will introduce the linear and affine functions which will be key to understanding derivatives in the chapters ahead. Linear functions In the following, we will use the notation f : R m R n to indicate a function whose domain is a subset of R m and whose range is a subset of R n. In other words, f takes a vector with m coordinates for input and returns a vector with n coordinates. For example, the function f(x, y, z) = (sin(x + y), x + z) is a function from R 3 to R. Definition R m, We say a function L : R m R m is linear if () for any vectors x and y in and () for any vector x in R m and scalar a, L(x + y) = L(x) + L(y), (.5.) L(ax) = al(x). (.5.) Example Suppose f : R R is defined by f(x) = 3x. Then for any x and y in R, and for any scalar a, Thus f is linear. Example f(x + y) = 3(x + y) = 3x + 3y = f(x) + f(y), f(ax) = 3ax = af(x). Suppose L : R R 3 is defined by L(x, x ) = (x + 3x, x x, 4x ). Then if x = (x, x ) and y = (y, y ) are vectors in R, L(x + y) = L(x + y, x + y ) = ((x + y ) + 3(x + y ), x + y (x + y ), 4(x + y )) = (x + 3x, x x, 4x ) + (y + 3y, y y, 4y ) = L(x, x ) + L(y, y ) = L(x) + L(y). Copyright c by Dan Sloughter
49 Linear and Affine Functions Section.5 Also, for x = (x, x ) and any scalar a, we have Thus L is linear. L(ax) = L(ax, ax ) = (ax + 3ax, ax ax, 4ax ) = a(x + 3x, x x, 4x ) = al(x). Now suppose L : R R is a linear function and let a = L(). Then for any real number x, L(x) = L(x) = xl() = ax. (.5.3) Since any function L : R R defined by L(x) = ax, where a is a scalar, is linear (see Problem ), it follows that the only functions L : R R which are linear are those of the form L(x) = ax for some real number a. For example, f(x) = 5x is a linear function, but g(x) = sin(x) is not. Next, suppose L : R m R is linear and let a = L(e ), a = L(e ),..., a m = L(e m ). If x = (x, x,..., x m ) is a vector in R m, then we know that x = x e + x e + + x m e m. Thus L(x) = L(x e + x e + + x m e m ) = L(x e ) + L(x e ) + + L(x m e m ) = x L(e + x L(e ) + + x m L(e m ) = x a + x a + + x m a m = a x, (.5.4) where a = (a, a,..., a m ). Since for any vector a in R m, the function L(x) = a x is linear (see Problem ), it follows that the only functions L : R m R which are linear are those of the form L(x) = a x for some fixed vector a in R m. For example, f(x, y) = (, 3) (x, y) = x 3y is a linear function from R to R, but f(x, y, z) = x y + sin(z) is not a linear function from R 3 to R. Now consider the general case where L : R m R n is a linear function. Given a vector x in R m, let L k (x) be the kth coordinate of L(x), k =,,..., n. That is, L(x) = (L (x), L (x),..., L n (x)).
50 Section.5 Linear and Affine Functions 3 Since L is linear, for any x and y in R m we have or, in terms of the coordinate functions, L(x + y) = L(x) + L(y), (L (x + y), L (x + y),..., L n (x + y)) = (L (x), L (x),..., L n (x)) = (L (x) + L (y), L (x) + L (y), + (L (y), L (y),..., L n (y))..., L n (x) + L n (y)). Hence L k (x + y) = L k (x) + L k (y) for k =,,..., n. Similarly, if x is in R m and a is a scalar, then L(ax) = al(x), so (L (ax), L (ax),..., L n (ax) = a(l (x), L (x),..., L n (x)) = (al (x), al (x),..., al n (x)). Hence L k (ax) = al k (x) for k =,,..., n. Thus for each k =,,..., n, L k : R m R is a linear function. It follows from our work above that, for each k =,,..., n, there is a fixed vector a k in R m such that L k (x) = a k x for all x in R m. Hence we have L(x) = (a x, a x,..., a n x) (.5.5) for all x in R m. Since any function defined as in (.5.5) is linear (see Problem again), it follows that the only linear functions from R m to R n must be of this form. Theorem that for all x in R m. Example If L : R m R n is linear, then there exist vectors a, a,..., a n in R m such L(x) = (a x, a x,..., a n x) (.5.6) In a previous example, we showed that the function L : R R 3 defined by L(x, x ) = (x + 3x, x x, 4x ) is linear. We can see this more easily now by noting that L(x, x ) = ((, 3) (x, x ), (, ) (x, x ), (, 4) (x, x )). Example The function f(x, y, z) = (x + y, sin(x + y + z)) is not linear since it cannot be written in the form of (.5.6). In particular, the function f (x, y, z) = sin(x+y +z) is not linear; from our work above, it follows that f is not linear.
51 4 Linear and Affine Functions Section.5 Matrix notation We will now develop some notation to simplify working with expressions such as (.5.6). First, we define an n m matrix to be to be an array of real numbers with n rows and m columns. For example, M = 3 4 is a 3 matrix. Next, we will identify a vector x = (x, x,..., x m ) in R m with the m matrix x x x =.., which is called a column vector. Now define the product Mx of an n m matrix M with an m column vector x to be the n column vector whose kth entry, k =,,..., n, is the dot product of the kth row of M with x. For example, 3 [ ] 4 In fact, for any vector x = (x, x ) in R, In other words, if we let x m = = [ ] x = x + 3x x x x. 4 4x L(x, x ) = (x + 3x, x x, 4x ), as in a previous example, then, using column vectors, we could write L(x, x ) = 3 4 [ x x In general, consider a linear function L : R m R n defined by ]. L(x) = (a x, a x,..., a n x) (.5.7) for some vectors a, a,..., a n in R m. If we let M be the n m matrix whose kth row is a k, k =,,..., n, then L(x) = Mx (.5.8)
52 Section.5 Linear and Affine Functions 5 for any x in R m. Now, from our work above, which means that the jth column of M is a k = (L k (e ), L k (e ),..., L k (e m ), (.5.9) L (e j ) L (e j ).. L n (e j ), (.5.) j =,,..., m. But (.5.) is just L(e j ) written as a column vector. Hence M is the matrix whose columns are given by the column vectors L(e ), L(e ),..., L(e m ). Theorem Suppose L : R m R n is a linear function and M is the n m matrix whose jth column is L(e j ), j =,,..., m. Then for any vector x in R m, L(x) = Mx. (.5.) Example Suppose L : R 3 R is defined by L(x, y, z) = (3x y + z, 4x + y). Then L(e ) = L(,, ) = (3, 4), L(e ) = L(,, ) = (, ), and So if we let then For example, L(,, 3) = L(e 3 ) = L(,, ) = (, ). M = L(x, y, z) = [ 3 4 [ ] 3, 4 [ ] 3 x y. 4 z ] = 3 [ ] = 4 + [ ] 8. 3
53 6 Linear and Affine Functions Section.5 R ( ) θ x θ x Figure.5. Rotating a vector in the plane Example Let R θ : R R be the function that rotates a vector x in R counterclockwise through an angle θ, as shown in Figure.5.. Geometrically, it seems reasonable that R θ is a linear function; that is, rotating the vector x + y through an angle θ should give the same result as first rotating x and y separately through an angle θ and then adding, and rotating a vector ax through an angle θ should give the same result as first rotating x through an angle θ and then multiplying by a. Now, from the definition of cos(θ) and sin(θ), R θ (e ) = R θ (, ) = (cos(θ), sin(θ)) (see Figure.5.), and, since e is e rotated, counterclockwise, through an angle π, ( ( R θ (e ) = R θ+ π (e ) = cos θ + π ) (, sin θ + π )) = ( sin(θ), cos(θ)). Hence [ ] [ ] cos(θ) sin(θ) x R θ (x, y) =. (.5.) sin(θ) cos(θ) y You are asked in Problem 9 to verify that the linear function defined in (.5.) does in fact rotate vectors through an angle θ in the counterclockwise direction. Note that, for example, when θ = π, we have [ ] [ ] R π x (x, y) =. y In particular, note that R π (, ) = (, ) and R π (, ) = (, ); that is, R π takes e to e and e to e. For another example, if θ = π 6, then R π (x, y) = 6 3 [ ] x. 3 y
54 Section.5 Linear and Affine Functions 7 R θ ( e ) = (cos( θ), sin( θ)) sin( θ) θ cos( θ ) e Figure.5. Rotating e through an angle θ In particular, R π (, ) = [ ] = = Affine functions Definition We say a function A : R m R n is affine if there is a linear function L : R m R n and a vector b in R n such that for all x in R m. A(x) = L(x) + b (.5.3) An affine function is just a linear function plus a translation. From our knowledge of linear functions, it follows that if A : R m R n is affine, then there is an n m matrix M and a vector b in R n such that A(x) = Mx + b (.5.4) for all x in R m. In particular, if f : R R is affine, then there are real numbers m and b such that f(x) = mx + b (.5.5) for all real numbers x. Example The function A(x, y) = (x + 3, y 4x + )
55 8 Linear and Affine Functions Section.5 is an affine function from R to R since we may write it in the form where L is the linear function A(x, y) = L(x, y) + (3, ), L(x, y) = (x, y 4x). Note that L(, ) = (, 4) and L(, ) = (, ), so we may also write A in the form A(x, y) = [ 4 ] [ ] x + y [ ] 3. Example The affine function A(x, y) = [ ] x + y [ ] first rotates a vector, counterclockwise, in R through an angle of π 4 by the vector (, ). and then translates it Problems. Let a, a,..., a n be vectors in R m and define L : R m R n by L(x) = (a x, a x,..., a n x). Show that L is linear. What does L look like in the special cases (a) m = n =? (b) n =? (c) m =?. For each of the following functions f, find the dimension of the domain space, the dimension of the range space, and state whether the function is linear, affine, or neither. (a) f(x, y) = (3x y, 4x, x + y) (b) f(x, y) = (4x + 7y, 5xy) (c) f(x, y, z) = (3x + z, y z, y x) (d) f(x, y, z) = (3x 4z, x + y + z) ( ) (e) f(x, y, z) = 3x + 5, y + z, (f) f(x, y) = 3x + y x + y + z (g) f(x) = (x, 3x) (h) f(w, x, y, z) = (3x, w + x y + z 5) (i) f(x, y) = (sin(x + y), x + y) (j) f(x, y) = (x + y, x y, x y ) (k) f(x, y, z) = (3x + 5, y + z, 3x z + 6, z )
56 Section.5 Linear and Affine Functions 9 3. For each of the following linear functions L, find a matrix M such that L(x) = Mx. (a) L(x, y) = (x + y, x 3y) (b) L(w, x, y, z) = (x, y, z, w) (c) L(x) = (3x, x, 4x) (d) L(x) = 5x (e) L(x, y, z) = 4x 3y + z (f) L(x, y, z) = (x + y + z, 3x y, y + z) (g) L(x, y) = (x, 3y, x + y, x y, x 3y) (h) L(x, y) = (x, y) (i) L(w, x, y, z) = (w + x y + 3z, w + x 3z) 4. For each of the following affine functions A, find a matrix M and a vector b such that A(x) = Mx + b. (a) A(x, y) = (3x + 4y 6, x + y 3) (b) A(x) = 3x 4 (c) A(x, y, z) = (3x + y 4, y z +, 5) (d) A(w, x, y, z) = (,, 3, 4) (e) A(x, y, z) = 3x 4y + z (f) A(x) = (3x, x, ) (g) A(x, x, x 3 ) = (x x +, x x 3 +, x + x 3 ) 5. Multiply the following. [ ] 3 (a) 3 3 (c) [ 3 3 ] (b) (d) [ ] Let L : R R be the linear function that maps a vector x = (x, y) to its reflection across the horizontal axis. Find the matrix M such that L(x) = Mx for all x in R. 7. Let L : R R be the linear function that maps a vector x = (x, y) to its reflection across the line y = x. Find the matrix M such that L(x) = Mx for all x in R. 8. Let L : R R be the linear function that maps a vector x = (x, y) to its reflection across the line y = x. Find the matrix M such that L(x) = Mx for all x in R. 9. Let R θ be defined as in (.5.). (a) Show that for any x in R, R θ (x) = x. (b) For any x in R, let α be the angle between x and R θ (x). Show that cos(α) = cos(θ). Together with (a), this verifies that R θ (x) is the rotation of x through an angle θ.. Let S θ : R R be the linear function that rotates a vector x clockwise through an angle θ. Find the matrix M such that S θ (x) = Mx for all x in R.. Given a function f : R m R n, we call the set the image, or range, of f. {y : y = f(x) for some x in R m }
57 Linear and Affine Functions Section.5 (a) Suppose L : R R n is linear with L(). Show that the image of L is a line in R n which passes through. (b) Suppose L : R R n is linear and L(e ) and L(e ) are linearly independent. Show that the image of L is a plane in R n which passes through.. Given a function f : R m R, we call the set {(x, x,..., x m, x m+ ) : x m+ = f(x, x,..., x m )} the graph of f. Show that if L : R m R is linear, then the graph of L is a hyperplane in R m+.
58 The Calculus of Functions of Several Variables Section.6 Operations with Matrices In the previous section we saw the important connection between linear functions and matrices. In this section we will discuss various operations on matrices which we will find useful in our later work with linear functions. The algebra of matrices If M is an n m matrix with a ij in the ith row and jth column, i =,,..., n, j =,,..., m, then we will write M = [a ij ]. With this notation the definitions of addition, subtraction, and scalar multiplication for matrices are straightforward. Definition Suppose M = [a ij ] and N = [b ij ] are n m matrices and c is a real number. Then we define M + N = [a ij + b ij ], (.6.) and M N = [a ij b ij ], (.6.) cm = [ca ij ]. (.6.3) In other words, we define addition, subtraction, and scalar multiplication for matrices by performing these operations on the individual elements of the matrices, in a manner similar to the way we perform these operations on vectors. Example and If then, for example, and M + N = M N = M = N = [ ] [ ] 3 4, 3 [ ] = [ ] = [ 3M = ]. [ ] 4 3 7, 4 [ ], Copyright c by Dan Sloughter
59 Operations with Matrices Section.6 These operations have natural interpretations in terms of linear functions. Suppose L : R m R n and K : R m R n are linear with L(x) = Mx and K(x) = Nx for n m matrices M and N. If we define L + K : R n R m by (L + K)(x) = L(x) + K(x), (.6.4) then (L + K)(e j ) = L(e j ) + K(e j ) (.6.5) for j =,,..., m. Hence the jth column of the matrix which represents L + K is the sum of the jth columns of M and N. In other words, for all x in R m. Similarly, if we define L K : R m R n by (L + K)(x) = (M + N)x (.6.6) (L K)(x) = L(x) K(x), (.6.7) then (L K)(x) = (M N)x. (.6.8) If, for any scalar c, we define cl : R m R n by cl(x) = c(l(x)), (.6.9) then cl(e j ) = c(l(e j )) (.6.) for j =,,..., m. Hence the jth column of the matrix which represents cl is the scalar c times the jth column of M. That is, cl(x) = (cm)x (.6.) for all x in R m. In short, the operations of addition, subtraction, and scalar multiplication for matrices corresponds in a natural way with the operations of addition, subtraction, and scalar multiplication for linear functions. Now consider the case where L : R m R p and K : R p R n are linear functions. Let M be the p m matrix such that L(x) = Mx for all x in R m and let N be the n p matrix such that K(x) = Nx for all x in R p. Since for any x in R m, L(x) is in R p, we can form K L : R m R n, the composition of K with L, defined by K L(x) = K(L(x)). (.6.) Now K(L(x)) = N(Mx), (.6.3)
60 Section.6 Operations with Matrices 3 so it would be natural to define NM, the product of the matrices N and M, to be the matrix of K L, in which case we would have Thus we want the jth column of NM, j =,,..., m, to be N(Mx) = (NM)x. (.6.4) K L(e j ) = N(L(e j )), (.6.5) which is just the dot product of L(e j ) with the rows of N. But L(e j ) is the jth column of M, so the jth column of NM is formed by taking the dot product of the jth column of M with the rows of N. In other words, the entry in the ith row and jth column of NM is the dot product of the ith row of N with the jth column of M. We write this out explicitly in the following definition. Definition If N = [a ij ] is an n p matrix and M = [b ij ] is a p m matrix, then we define the product of N and M to be the n m matrix NM = [c ij ], where i =,,..., n and j =,,..., m. c ij = p a ik b kj, (.6.6) k= Note that NM is an n m matrix since K L : R m R n. Moreover, the product NM of two matrices N and M is defined only when the number of columns of N is equal to the number of rows of M. Example and then If M = N = 3 [ ] 3, NM = [ ] 3 3 = =
61 4 Operations with Matrices Section.6 Note that N is 3, M is 4, and NM is 3 4. Also, note that it is not possible to form the product in the other order. Example Let L : R R 3 be the linear function defined by L(x, y) = (3x y, x + y, 4y) and let K : R 3 R be the linear function defined by K(x, y, z) = (x y + z, x y z). Then the matrix for L is the matrix for K is M = 3, 4 N = [ ], and the matrix for K L : R R is [ ] NM = 3 = In other words, 4 K L(x, y) = [ ] = [ ] [ ] [ ] 5 x 5x y =. 7 y x 7y [ ] 5. 7 Note that it in this case it is possible to form the composition in the other order. The matrix for L K : R 3 R 3 is MN = 3 [ ] = = 4 5 3, and so L K(x, y, z) = x 4x y + 5z y = 3x y z 4x 4y 4z In particular, note that not only is NM MN, but in fact NM and MN are not even the same size. Determinants The notion of the determinant of a matrix is closely related to the idea of area and volume. To begin our definition, consider the matrix [ ] a a M = b b
62 Section.6 Operations with Matrices 5 b = (, ) b b a = ( a, a ) Figure.6. A parallelogram in R with adjacent sides a and b and let a = (a, a ) and b = (b, b ). If P is the parallelogram which has a and b for adjacent sides and A is the area of P (see Figure.6.), then we saw in Section.3 that A = (a, a, ) (b, b, ) = (,, a b a b = a b a b. (.6.7) This motivates the following definition. Definition Given a matrix the determinant of M, denoted det(m), is [ a a M = b b ], det(m) = a b a b. (.6.8) Hence we have A = det(m). In words, for a matrix M, the absolute value of the determinant of M equals the area of the parallelogram which has the rows of M for adjacent sides. Example We have det [ ] 3 = ()(5) (3)( 4) = 5 + = Now consider a 3 3 matrix M = a a a 3 b b b 3 c c c 3
63 6 Operations with Matrices Section.6 and let a = (a, a, a 3 ), b = (b, b, b 3 ), and c = (c, c, c 3 ). If V is the volume of the parallelepiped P with adjacent edges a, b, and c, then, again from Section.3, V = a (b c) = a (b c 3 b 3 c ) + a (b 3 c b c 3 ) + a 3 (b c b c ) [ ] [ ] [ ] = a b b det 3 b b a c c det 3 b b + a 3 c c 3 det. 3 c c (.6.9) Definition Given a 3 3 matrix M = a a a 3 b b b 3 c c c 3, the determinant of M, denoted det(m), is [ ] [ ] [ ] b b det(m) = a det 3 b b a c c det 3 b b + a 3 c c 3 det. (.6.) 3 c c Similar to the case, we have V = det(m). Example We have det 3 9 [ ] 4 4 = det 5 3 det = ( + 4) 3( + ) + 9( 5) = = 75. [ ] [ ] det 5 5 Given an n n matrix M = [a ij ], let M ij be the (n ) (n ) matrix obtained by deleting the ith row and jth column of M. If for n = we first define det(m) = a (that is, the determinant of a matrix is just the value of its single entry), then we could express, for n =, the definition of a the determinant of a matrix given in (.6.8) in the form det(m) = a det(m ) a det(m ) = a a a a. (.6.) Similarly, with n = 3, we could express the definition of the determinant of M given in (.6.) in the form det(m) = a det(m ) a det(m ) + a 3 det(m 3 ). (.6.) Following this pattern, we may form a recursive definition for the determinant of an n n matrix.
64 Section.6 Operations with Matrices 7 Definition Suppose M = [a ij ] is an n n matrix and let M ij be the (n ) (n ) matrix obtained by deleting the ith row and jth column of M, i =,,..., n and j =,,..., n. For n =, we define the determinant of M, denoted det(m), by det(m) = a. (.6.3) For n >, we define the determinant of M, denoted det(m), by det(m) = a det(m ) a det(m ) + + ( ) +n a n det(m n ) n = ( ) +j a j det(m j ). j= (.6.4) We call the definition recursive because we have defined the determinant of an n n matrix in terms of the determinants of (n ) (n ) matrices, which in turn are defined in terms of the determinants of (n ) (n ) matrices, and so on, until we have reduced the problem to computing the determinants of matrices. Example For an example of the determinant of a 4 4 matrix, we have 3 4 det = det 4 3 det det 3 det 4 3 = (( ) 4(3 4) + (3 + )) (( ) 4( ) + ( + )) + 3((3 4) ( ) + ( 4 3)) ((3 + ) ( + ) + 4( 4 3)) = ( ) ( ) + 3( + 4 7) ( + 8) = =. The next theorem states that there is nothing special about using the first row of the matrix in the expansion of the determinant specified in (.6.4), nor is there anything special about expanding along a row instead of a column. The practical effect is that we may compute the determinant of a given matrix expanding along whichever row or column is most convenient. The proof of this theorem would take us too far afield at this point, so we will omit it (but you will be asked to verify the theorem for the special cases n = and n = 3 in Problem ).
65 8 Operations with Matrices Section.6 Theorem Let M = [a ij ] be an n n matrix and let M ij be the (n ) (n ) matrix obtained by deleting the ith row and jth column of M. Then for any i =,,..., n, det(m) = and for any j =,,..., n, n ( ) i+j a ij det(m ij ), (.6.5) j= det(m) = n ( ) i+j a ij det(m ij ), (.6.6) i= Example The simplest way to compute the determinant of the matrix M = is to expand along the second column. Namely, [ ] [ ] det(m) = ( ) + () det + ( ) (3) det 3 3 [ ] + ( ) () det = 3( 8 + 9) = 3. You should verify that expanding along the first row, as we did in the definition of the determinant, gives the same result. In order to return to the problem of computing volumes, we need to define a parallelepiped in R n. First note that if P is a parallelogram in R with adjacent sides given by the vectors a and b, then P = {y : y = ta + sb, t, s }. (.6.7) That is, for t, ta is a point between and a, and for s, sb is a point between and b; hence ta + sb is a point in the parallelogram P. Moreover, every point in P may be expressed in this form. See Figure.6.. The following definition generalizes this characterization of parallelograms. Definition Let a, a,..., a n be linearly independent vectors in R n. We call P = {y : y = t a + t a + + t n a n, t i, i =,,..., n} (.6.8) an n-dimensional parallelepiped with adjacent edges a, a,..., a n.
66 Section.6 Operations with Matrices 9 a + b b ta + sb sb ta a Figure.6. A parallelogram in R with adjacent sides a and b Definition Let P be an n-dimensional parallelepiped with adjacent edges a, a,..., a n and let M be the n n matrix which has a, a,..., a n for its rows. Then the volume of P is defined to be det(m). It may be shown, using (.6.6) and induction, that if N is the matrix obtained by interchanging the rows and columns of an n n matrix M, then det(n) = det(m) (see Problem ). Thus we could have defined M in the previous definition using a, a,..., a n for columns rather than rows. Now suppose L : R n R n is linear and let M be the n n matrix such that L(x) = Mx for all x in R n. Let C be the n-dimensional parallelepiped with adjacent edges e, e,..., e n, the standard basis vectors for R n. Then C is a square when n = and a cube when n = 3. In general, we may think of C as an n-dimensional unit cube. Note that the volume of C is, by definition, det =. Suppose L(e ), L(e ),..., L(e n ) are linearly independent and let P be the n-dimensional parallelepiped with adjacent edges L(e ), L(e ),..., L(e n ). Note that if x = t e + t e + + t n e n, where t k for k =,,..., n, is a point in C, then L(x) = t L(e ) + t L(e ) + + t n L(e n )
67 Operations with Matrices Section.6 is a point in P. In fact, L maps the n-dimensional unit cube C exactly onto the n- dimensional parallelepiped P. Since L(e ), L(e ),..., L(e n ) are the columns of M, it follows that the volume of P equals det(m). In other words, det(m) measures how much L stretches or shrinks the volume of a unit cube. Theorem Suppose L : R n R n is linear and M is the n n matrix such that L(x) = Mx. If L(e ), L(e ),..., L(e n ) are linear independent and P is the n-dimensional parallelepiped with adjacent edges L(e ), L(e ),..., L(e n ), then the volume of P is equal to det(m). Problems. Let M = 3 and N = 3. Evaluate the following. 4 5 (a) 3M (c) M + N. Evaluate the following matrix products. [ ] [ ] 3 (a) 3 (c) [ 3 3 (b) M N (d) N 6M [ ] [ ] 3 4 (b) 4 ] (d) [ 3 ] 3. Suppose L : R 3 R 3 and K : R 3 R 3 are defined by and L(x, y, z) = (x + 3y, y x + z, x + y z) K(x, y, z) = (x + 4y 3z, x + y + z, 3x y + 4z). Find the matrices for the following linear functions. (a) 3L (c) L K (e) K L (b) L + K (d) K + L (f) L K Let R θ : R R be the linear function which rotates a vector in R counterclockwise through an angle θ. In Section.5 we saw that [ ] [ ] cos(θ) sin(θ) x R θ (x, y) =. sin(θ) cos(θ) y Show that the matrix for R θ R α is the same as the matrix for R θ+α. In other words, show that R θ R α = R θ+α.
68 Section.6 Operations with Matrices 5. Compute the determinants of the following matrices. [ ] [ ] 3 3 (a) (b) 4 (c) 3 9 (d) (e) (f) Find the area of the parallelogram in R with vertices at (, ), (3, ), (4, ), and (, ). 7. Find the volume of the parallelepiped in R 3 with bottom vertices at (,, ), (, 3, ), (, 4, 3), and (,, ) and top vertices at (,, 5), (,, 6), (, 3, 7), and (,, 6). 8. Let P be the 4-dimensional parallelepiped with adjacent edges a = (,,, ), a = (,,, ), a 3 = (,, 3, 6), and a 4 = ( 3,, 5, ). Find the volume of P. 9. Find matrices A and B for which AB BA.. Verify that (.6.5) and (.6.6) hold for all and 3 3 matrices.. An n n matrix M = [a ij ] is called a diagonal matrix if a ij = for all i j. Show that if M is a diagonal matrix, then det(m) = a a a nn.. If M is an n m matrix, then the m n matrix M T whose columns are the rows of M is called the transpose of M. For example, if M = 3 4, 5 6 then M T = [ ] (a) Show that for a matrix M, det(m T ) = det(m). (b) Show that for a 3 3 matrix M, det(m T ) = det(m). (Hint: Using (.6.6), expand det(m) along the first row and det(m T ) along the first column.) (c) Use induction to show that for any n n matrix M, det(m T ) = det(m). (Hint: Note that (M T ) ij = (M ji ) T.) 3. Let x = (x, x, x 3 ) and y = (y, y, y 3 ) be vectors in R 3 and let e, e, and e 3 be the standard basis vectors for R 3. Show that applying (.6.) to the array e e e 3 x x x 3 y y y 3
69 Operations with Matrices Section.6 yields x y. Discuss what is correct and what is incorrect about the statement x y = det e e e 3 x x x 3 y y y Show that the set of all points x = (x, y, z) in R 3 which satisfy the equation det x y z = 3 is a plane passing through the points (,, ), (,, ), and (3,, ). 5. Verify directly that if L : R m R p and K : R p R n are linear functions, then K L : R m R n is also a linear function.
70 The Calculus of Functions of Several Variables Section. Curves Now that we have a basic understanding of the geometry of R n, we are in a position to start the study of calculus of more than one variable. We will break our study into three pieces. In this chapter we will consider functions f : R R n, in Chapter 3 we will study functions f : R n R, and finally in Chapter 4 we will consider the general case of functions f : R m R n. Parametrizations of curves We begin with some terminology and notation. Given a function f : R R n, let f k (t) = kth coordinate of f(t) (..) for k =,,..., n. We call f k : R R the kth coordinate function of f. Note that f k has the same domain as f and that, for any point t in the domain of f, f(t) = (f (t), f (t),..., f n (t). (..) If the domain of f is an interval I, then the range of f, that is, the set C = {x : x = f(t) for some t in I}, (..3) is called a curve with parametrization f. The equation x = f(t), where x is in R n, is a vector equation for C and, writing x = (x, x,..., x n ), the equations x = f (t), x = f (t),.. x n = f n (t), (..4) are parametric equations for C. Example Consider f : R R defined by f(t) = (cos(t), sin(t)) for t π. Then for every value of t, f(t) is a point on the circle C of radius with center at (, ). Note that f() = (, ), f ( ) ( π = (, ), f(π) = (, ), f 3π ) = (, ), Copyright c by Dan Sloughter
71 Curves Section Figure.. f(t) = (cos(t), sin(t) and f(π) = (, ) = f(). In fact, as t goes from to π, f(t) traverses C exactly once in the counterclockwise direction. Thus f is a parametrization of the unit circle C. If we denote a point in R by (x, y), then x = cos(t), y = sin(t), are parametric equations for C. See Figure... The coordinate functions are f (t) = cos(t), f (t) = sin(t), although we frequently write these as simply x(t) = cos(t), y(t) = sin(t). Example Consider g : R R defined by g(t) = (sin(πt), cos(πt)) for t. Then g also parametrizes the unit circle C centered at the origin, the same as f in the previous example. However, there is a difference: g() = (, ), g ( 4) = (, ),
72 Section. Curves 3 b -a a -b Figure.. The ellipse x a + y b = g ( ) = (, ), g ( 3 4) = (, ), and g() = (, ) = g(), at which point g starts to repeat its values. Hence g(t), starting at (, ), traverses C twice in the clockwise direction as t goes from to. Example More generally, suppose a, b, and α are real numbers, with a >, b >, and α, and let x(t) = a cos(αt), Then (x(t)) a y(t) = b sin(αt). + (y(t)) b = cos (αt) + sin (αt) =, so (x(t), y(t)) is a point on the ellipse E with equation shown in Figure... Thus the function x a + y b =, f(t) = (a cos(αt), b cos(αt)) parametrizes the ellipse E, traversing the complete ellipse as t goes from to π α. Example Define f : R R by f(t) = (t cos(t), t sin(t)) for < t <. Then for negative values of t, f(t) spirals into the origin as t increases, while for positive values of t, f(t) spirals away from the origin. Part of this curve parametrized by f is shown in Figure..3.
73 4 Curves Section Figure..3 The spiral f(t) = (t cos(t), t sin(t)) for 4π t 4π Example Define f : R R by f(t) = (3 4t, + 3t) for < t <. Then f(t) = t( 4, 3) + (3, ), so f is a parametrization of the line through the point (3, ) in the direction of ( 4, 3). In general, a function f : R R n defined by f(t) = tv + p, where v and p are vectors in R n, parametrizes a line in R n. Example Suppose g : R R 3 is defined by g(t) = (4 cos(t), 4 sin(t), t) for < t <. If we denote the coordinate functions by x(t) = 4 cos(t), y(t) = 4 sin(t), z(t) = t, then (x(t)) + (y(t)) = 6 cos (t) + 6 sin (t) = 6. Hence g(t) always lies on a cylinder of radius centered about the z-axis. As t increases, g(t) rises steadily as it winds around this cylinder, completing one trip around the cylinder
74 Section. Curves 5 x y z -5 Figure..4 The helix f(t) = (4 cos(t), 4 sin(t), t), π t π over every interval of length π. In other words, g parametrizes a helix, part of which is shown in Figure..4. Limits in R n As was the case in one-variable calculus, limits are fundamental for understanding ideas such as continuity and differentiability. We begin with the definition of the limit of a sequence of points in R m. Definition Let {x n } be a sequence of points in R m. We say that the limit of {x n } as n approaches infinity is a, written lim x n = a, if for every ɛ > there is a positive integer n N such that x n a < ɛ (..5) whenever n > N. Notice that this definition involves only a slight modification of the definition for the limit of a sequence of real numbers, namely, the use of the norm of a vector instead of the
75 6 Curves Section Figure..5 Points ( n, n) approaching (, ) absolute value of a real number in (..5). In words, lim n x n = a if, given any ɛ >, we can always find a point in the sequence beyond which all terms of the sequence lie within B n (a, ɛ), the open ball of radius ɛ centered at a. Example Suppose for n =,, 3,.... Since and we should have To verify this, we first note that x n = ( n, ) n ( lim ) = n n lim n n =, lim x n = (, ). n ( x n (, ) = n n), = n + 4 n = Hence x n (, ) < ɛ whenever n > 5 ɛ. That is, if we let N be any integer greater than or equal to 5 ɛ, then x n (, ) < ɛ whenever n > N, verifying that See Figure..5. lim x n = (, ). n Put another way, the definition of the limit of a sequence in R m says that a sequence {x n } in R m converges to a in R m if and only if the sequence of real numbers { x n a } 5 n.
76 Section. Curves 7 converges to. That is, lim x n = a if and only if lim x n a =. Moreover, if we let n n x n = (x n, x n,..., x nm ) and a = (a, a,..., a m ), then x n a = (x n a ) + (x n a ) + + (x nm a m ), (..6) so lim n x n a = if and only if lim (xn a ) + (x n a ) + + (x nm a m ) =. (..7) n But (..7) can occur only when lim (x nk a k ) = for k =,,..., m. Hence lim x n = n n a if and only if lim x nk = a k for k =,,..., m. n Proposition Suppose {x n } is a sequence in R m, x n = (x n, x n,..., x nm ), and a = (a, a,..., a m ). Then lim x n = a if and only if lim x nk = a k for k =,,..., m. n n This proposition tells us that to compute the limit of a sequence in R m, we need only compute the limit of each coordinate separately, thus reducing the problem of computing limits in R m to the problem of finding limits of sequences of real numbers. Example If n =,, 3,..., then lim x n = n ( ( n x n =, sin lim n n n n, lim sin n ( ), cos n ( )) 3, n ( ), lim n cos n ( )) 3 = (,, ). n We may now define the limit of a function f : R R m at a real number c. Notice that the definition is identical to the definition of a limit for a real-valued function f : R R. Definition Let c be a real number, let I be an open interval containing c, and let J = {t : t is in I, t c}. Suppose f : R R m is defined for all t in J. Then we say that the limit of f(t) as t approaches c is a, denoted lim f(t) = a, if for every sequence of real t c numbers {t n } in J, lim f(t n) = a (..8) n whenever lim n t n = c. As in one-variable calculus, we may define the limit of f(t) as t approaches c from the right, denoted lim t c + f(t), by restricting to sequences {t n } with t n > c for n =,, 3,..., and the limit of f(t) as t approaches c from the left, denoted lim f(t), t c
77 8 Curves Section. by restricting to sequences {t n } with t n < c for n =,, 3,.... Moreover, the following useful proposition follows immediately from our definition and the previous proposition. Proposition Suppose f : R R m with f(t) = (f (t), f (t),..., f m (t)). The for any real number c, lim f(t) = (lim f (t), lim f (t),..., lim f m (t)). (..9) t c t c t c t c Hence the problem of computing limits for functions f : R R m reduces to the problem of computing limits of the coordinate functions f k : R R, k =,,..., m, a familiar problem from one-variable calculus. The analogous statements for limits from the right and left also hold. Example If f(t) = (t, sin(t), cos(t)) is a function from R to R 3, then, for example, ( ) lim f(t) = lim t π t π (t ), lim sin(t), lim cos(t) = (π,, ). t π t π Definitions for continuity also follow the pattern of the related definitions in onevariable calculus. Definition Suppose f : R R m. We say f is continuous at a point c if We say f is continuous from the right at c if and continuous from the left at c if lim f(t) = f(c). (..) t c lim f(t) = f(c) (..) t c + lim f(t) = f(c). (..) t c We say f is continuous on an open interval (a, b) if f is continuous at every point c in (a, b) and we say f is continuous on a closed interval [a, b] if f is continuous on the open interval (a, b), continuous from the right at a, and continuous from the left at b. If f(t) = (f (t), f (t),..., f m (t)), then f is continuous at a point c if and only if lim f(t) = (lim f (t), lim f (t),..., lim f m (t) = f(c) = (f (c), f (c),..., f m (c)), t c t c t c t c which is true if and only if lim t c f k (t) = f k (c) for k =,,..., m. In other words, we have the following useful proposition.
78 Section. Curves 9 Proposition A function f : R R m with f(t) = (f (t), f (t),..., f m (t)) is continuous at a point c if and only if the coordinate functions f, f,..., f m are each continuous at c. Similar statements hold for continuity from the right and from the left. Example The function f : R R 3 defined by f(t) = (sin(t ), t 3 + 4, cos(t)) is continuous on the interval (, ) since each of its coordinate functions is continuous on (, ). Problems. Plot the curves parametrized by the following functions over the specified intervals I. (a) f(t) = (3t +, t ), I = [ 5, 5] (b) g(t) = (t, t ), I = [ 3, 3] (c) f(t) = (3 cos(t), 3 sin(t)), I = [, π] (d) h(t) = (3 cos(t), 3 sin(t)), I = [, π] (e) f(t) = (4 cos(t), sin(t), I = [, π] (f) g(t) = ( 4 cos(t), sin(t)), I = [, π] (g) h(t) = (t sin(3t), t cos(3t)), I = [ π, π]. Plot the curves parametrized by the following functions over the specified intervals I. (a) f(t) = (t +, t, 3t), I = [ 4, 4] (b) g(t) = (cos(t), t, sin(t)), I = [, 4π] (c) f(t) = (t cos(t), t sin(t), t), I = [, ] (d) h(t) = (cos(t), sin(t), t), I = [, 9] 3. Plot the curves parametrized by the following functions over the specified intervals I. (a) f(t) = (cos(4πt), sin(5πt)), I = [.5,.5] (b) f(t) = (cos(6πt), sin(7πt)), I = [.5,.5] (c) h(t) = (cos 3 (t), sin 3 (t)), I = [, π] (d) g(t) = (cos(πt), sin(πt), sin(4πt)), I = [, ] (e) f(t) = (sin(4t) cos(t), sin(4t) sin(t)), I = [, π] (f) h(t) = (( + cos(t)) cos(t), ( + cos(t)) sin(t)), I = [, π] 4. Suppose g : R R and we define f : R R by f(t) = (t, g(t)). Describe the curve parametrized by f. 5. For each of the following, compute lim x n. n ( n + (a) x n = n + 3, 3 ) (b) x n = n ( sin ( n n ), cos ( n n ), n ) n
79 Curves Section. ( n (c) x n = n +, 3n + 4 n +, 4 6 n, 6n + ) n Let f : R R 3 be defined by Evaluate the following. (a) lim f(t) t π (c) lim f(t) t ( ) sin(t) f(t) =, cos(t), 3t. t (b) lim t f(t) 7. Discuss the continuity of each of the following functions. (a) f(t) = (t +, cos(t), sin(3t) ( (c) f(t) = t, t, ) t 8. Let f : R R 3 be defined by f(t) = (t, 3t, t + ). Find lim h (b) g(t) = ( t +, tan(t)) (d) g(t) = (cos(4t), 3t +, sin(5t), sec(t)) f(t + h) f(t). h
80 The Calculus of Functions of Several Variables Section. Best Affine Approximations In this section we will generalize the basic ideas of the differential calculus of functions f : R R to functions f : R R n. Recall that given a function f : R R, we say f is differentiable at a point c if there exists an affine function A : R R, A(x) = m(x c) + f(c), such that f(c + h) A(c + h) lim h h =. (..) We call A the best affine approximation to f at c and m the derivative of f at c, denoted f (c). Moreover, we call the the graph of A, that is, the line with equation y = f (c)(x c) + f(c), (..) the tangent line to the graph of f at (c, f(c)). The condition (..) says that the function ϕ(h) = f(c + h) A(c + h) is o(h). In general, we say a function ϕ : R R is o(h) if ϕ(h) lim h h =. (..3) Best affine approximations Generalizing the idea of the best affine approximation to the case of a function f : R R n requires only a slight modification of the requirement that f(c + h) A(c + h) be o(h). Namely, since f(c+h) A(c+h) is a vector in R n, we will require that f(c+h) A(c+h), instead of f(c+h) A(c+h), be o(h). If n =, this will reduce to the one-variable definition since, in that case, f(c + h) A(c + h) = f(c + h) A(c + h) and a function ϕ : R R is o(h) if and only if ϕ(h) is o(h). Definition Suppose f : R R n and c is a point in the domain of f. We call an affine function A : R R n the best affine approximation to f at c if () A(c) = f(c) and () R(h) is o(h), where R(h) = f(c + h) A(c + h). (..4) Suppose f : R R n and A : R R n is an affine function for which A(c) = f(c). Since A is affine, there exists a linear function L : R R n and a vector b in R n such that A(t) = L(t) + b for all t in R. Since we have f(c) = A(c) = L(c) + b, (..5) Copyright c by Dan Sloughter
81 Best Affine Approximations Section. it follows that b = f(c) L(c). Hence, for all t in R, A(t) = L(t) + f(c) L(c) = L(c t) + f(c). (..6) Moreover, if a = L(), then, from our results in Section.5, A(t) = a(t c) + f(c). (..7) Hence R(h) = f(c + h) A(c + h) = f(c + h) f(c) ah, (..8) from which it follows that R(h) lim h + h f(c + h) f(c) ah = lim h + h = lim f(c + h) f(c) ah h + h = lim f(c + h) f(c) a h + h (..9) Thus if and only if R(h) lim h + h = f(c + h) f(c) lim h + h A similar calculation from the left shows that if and only if Hence if and only if R(h) lim h h = f(c + h) f(c) lim h h R(h) lim h h f(c + h) f(c) lim h h = a. = a. = (..) = a. (..) That is, A is the best affine approximation to f at c if and only if, for all t in R, A(t) = a(t c) + f(c), (..)
82 Section. Best Affine Approximations 3 where Definition f(c + h) f(c) a = lim. (..3) h h Suppose f : R R n. If f(c + h) f(c) lim h h (..4) exists, then we say f is differentiable at c and we call Df(c) = lim h f(c + h) f(c) h (..5) the derivative of f at c. Note that (..5) is the same as the formula for the derivative in one-variable calculus. In fact, in the case n =, (..5) is just the derivative from one-variable calculus. However, if n >, then Df(c) will be a vector, not a scalar. The following theorem summarizes our work above. Theorem Suppose f : R R n and c is a point in the domain of f. Then f has a best affine approximation A : R R n at c if and only if f is differentiable at c, in which case A(t) = Df(c)(t c) + f(c). (..6) We saw in Section. that a limit of a vector-valued function f may be computed by evaluating the limit of each coordinate function separately. This result has an important consequence for computing derivatives. Suppose f : R R n is differentiable at c. If we write f(t) = (f (t), f (t),..., f n (t), then Df(c) = lim h f(c + h) f(c) h = lim h ((f (c + h), f (c + h),..., f n (c + h) (f (c), f (c ),..., f n (c)) ( f (c + h) f (c) = lim, f (c + h) f (c),..., f ) n(c + h) f n (c) h h h h ( ) f (c + h) f (c) f (c + h) f (c) f n (c + h) f n (c) = lim, lim,..., lim h h h h h h h = (f (c), f (c),..., f n(c)). In words, the derivative of f is the vector whose coordinates are the derivatives of the coordinate functions of f, reducing the problem of differentiating vector-valued functions to the problem of differentiation in single-variable calculus.
83 4 Best Affine Approximations Section. Proposition If f is differentiable at c and f(t) = (f (t), f (t),..., f n (t )), then each coordinate function f k, k =,,..., n, is differentiable at c and Df(c) = (f (c), f (c),..., f n(c)). (..7) For an arbitrary point t at which f is differentiable, we will write, Df(t) = lim h f(t + h) f(t) h = (f (t), f (t),..., f n(t)). (..8) That is, we may think of Df as a vector-valued function itself, with domain being the set of points at which f is differentiable. Now suppose f : R R n parametrizes a curve C and is differentiable at c. If Df(c), then the best affine approximation A(t) = Df(c)(t c) + f(c) parametrizes a line, a line which best approximates the curve C for points near f(c). On the other hand, if Df(c) =, then A is a constant function with range consisting of the single point f(c). These considerations motivate, in part, the following definitions. Definition Suppose f : R R n is differentiable on (a, b) and x = f(t) is a parametrization of a curve C for a < t < b. If Df(t) is continuous and Df(t) for all t in (a, b), then we call f a smooth parametrization of C. Definition Suppose f : R R n parametrizes a curve C in R n and let A be the best affine approximation to f at c. If f is smooth on some open interval containing c, then we call the line in R n parametrized by A the tangent line to C at f(c). Example Define f : R R n by f(t) = (cos(t), sin(t)) for < t <. Then, as we saw in Section., f parametrizes the unit circle C centered at the origin. Now Df(t) = ( sin(t), cos(t)), so Df(t) is continuous and Df(t) = for all t. Thus f is a smooth parametrization of C. For example, ( ( π ) Df = ) 3 6, and ( π ) f = 6 so the best affine approximation to f at t = π 6 is ( A(t) = 3, ( ) 3,, ) ( t π ) + 6 ( ) 3,. Figure.. shows C along with the tangent line to C at t = π 6.
84 Section. Best Affine Approximations Figure.. Unit circle with tangent line at ( 3, ) Example Suppose we define g : R R by g(t) = (sin(πt), cos(πt)), < t <. Then, as we saw in Section., g parametrizes the same circle C as f in the previous example. Moreover, Dg(t) = (π cos(πt), π sin(πt)) and Dg(t) = for all t, so g is a smooth parametrization of C. However, ( ) ( ) 3 g = 6, ( π ) = f ; 6 ( 3 ) ( 3 ) that is, g(t) is at, when t = 6, whereas f(t) is at, when t = π 6. Moreover, ( ) Dg = (π, π 3), 6 so the best affine approximation to g at t = 6 is B(t) = (π, π ( 3) t ) + 6 ( ) 3,. Note that although A, the best affine approximation to f at t = π 6, and B, the best affine approximation to g at t = 6, are different functions, they parametrize the same line since (π, π ( 3) = π ) 3,.
85 6 Best Affine Approximations Section y.5 5 z x 5 Figure.. Helix with tangent line at (, ), π 4 Example Consider the helix C parametrized by f : R R 3 defined by Then Since Df is continuous and Df(t) = f(t) = (4 cos(t), 4 sin(t), t). Df(t) = ( 4 sin(t), 4 cos(t), ). 6 sin (t) + 6 cos (t) + = 7 for all t, f is a smooth parametrization of C. Now, for example, ( π ) ( Df = 4 ) 4,, = (,, ) 4 and ( π ) f 4 ( 4 =, 4, π ) ( =,, π ), 4 4 so the best affine approximation to f at t = π 4 is A(t) = (, (, ) t π ) ( +,, π ). 4 4 The helix C and the line parametrized by A, namely, the tangent line to C at t = π 4, are shown in Figure...
86 Section. Best Affine Approximations Figure..3 h(t) = (cos 3 (t), sin 3 (t)) with tangent line at ( ), Example Let C be the curve in R parametrized by Then h(t) = (cos 3 (t), sin 3 (t)). Dh(t) = ( 3 cos (t) sin(t), 3 sin (t) cos(t)). Hence Dh is continuous for all t, but h is not a smooth parametrization of C since Dh(t) = whenever t is an integer multiple of π. These points correspond to the sharp corners of C at (, ), (, ), (,, and (, ), as shown in Figure..3. However, h is a smooth parametrization of the four arcs of C which are parametrized by restricting h to the open intervals ( ) (, π, π, π), ( ) ( π, 3π, and 3π, π). Hence, for example, noting that ( ) ( 3π Dh = 3 4, 3 ) and h ( ) ( 3π = ) 4,, we find that the best affine approximation to h at t = 3π 4 is ( A(t) = 3, 3 ) ( t 3π ) ( + ) 4,. The tangent line parametrized by A is shown in Figure..3.
87 8 Best Affine Approximations Section. Proposition Then and Suppose f : R R n, g : R R n, and ϕ : R R are all differentiable. D(f(t) + g(t)) = Df(t) + Dg(t), (..9) D(f(t) g(t)) = Df(t) Dg(t), (..) D(ϕ(t)f(t)) = ϕ(t)df(t) + ϕ (t)f(t), (..) d (f(t) g(t)) = f(t) Dg(t) + Df(t) g(t), (..) dt D(f(ϕ(t)) = Df(ϕ(t))ϕ (t)). (..3) Note that all of the statements in this proposition reduce to familiar results from one-variable calculus when n =. To verify these results, let f(t) = (f (t), f (t),..., f n (t)) and Then g(t) = (g (t), g (t),..., g n (t)). D(f(t) + g(t)) = D(f (t) + g (t), f (t) + g (t),..., f n (t) + g n (t)) = (f (t) + g (t), f (t) + g (t),..., f n(t) + g n(t)) = (f (t), f (t),..., f n(t)) + (g (t), g (t),..., g n(t)) = Df(t) + Dg(t), (..4) verifying (..9). The verification of (..) is similar. The demonstrations of (..) and (..), both of which are generalizations of the product rule from one-variable calculus, follow easily from that result; we will check (..) here and leave (..) for Problem 3. Using the product rule, we have d dt (f(t) g(t)) = d dt (f (t)g (t) + f (t)g (t) + + f n (t)g n (t)) = f (t)g (t) + f (t)g (t) + f (t)g (t) + f (t)g (t) + + f n (t)g n(t) + f n(t)g n (t) = f(t) Dg(t) + Df(t) g(t). (..5) Finally, (..3), a generalization of the chain rule from one-variable calculus, follows directly from that result: D(f(ϕ(t))) = D(f (ϕ(t)), f (ϕ(t)),..., f n (ϕ(t))) = (f (ϕ(t))ϕ (t), f (ϕ(t))ϕ (t),..., f n(ϕ(t))ϕ (t)) = Df(ϕ(t))ϕ (t). (..6)
88 Section. Best Affine Approximations 9 Reparametrizations We have seen above that the parametrization of a curve C in R n is not unique. For example, we saw that both f(t) = (cos(t), sin(t)) and g(t) = (sin(πt), cos(πt)) parametrize the unit circle centered at the origin. However, we also noted that the best affine approximations for the two parametrizations, ( 3 ) although distinct functions, nevertheless parametrize the same line at, the line we have been calling the tangent line. We should suspect, that this will be the case in general, that is, the tangent line to a curve C at a particular point should not depend on the particular parametrization of C used in the computation. While avoiding some technicalities, we will provide some justification for these ideas. Definition Suppose x = f(t), a < t < b, is a smooth parametrization of a curve C in R n. Suppose ϕ : R R has domain (c, d), range (a, b), and ϕ exists and is continuous on (c, d). If ϕ (t) for all t in (c, d), then we call g(t) = f(ϕ(t)) a reparametrization of f. Example Let f(t) = (cos(t), sin(t)) and g(t) = (sin(πt), cos(πt)). Since ( π ) sin(t) = cos t and if follows that where ( π ) cos(t) = sin t, ( π ) g(t) = f πt = f(ϕ(t)), ϕ(t) = π πt. That is, g is a reparametrization of f. Now if x = f(t), a < t < b, is a smooth parametrization of a curve C in R n and g(t) = f(ϕ(t)), c < t < d, is a reparametrization of f, then for any α in (c, d), Dg(α) = D(f(ϕ(α)) = Df(ϕ(α))ϕ (α). (..7) Hence Dg(α) and Df(ϕ(α)) are parallel, the former being the latter multiplied by the scalar ϕ (α). In other words, the lines parametrized by the best affine approximation to g at t = α and the best affine approximation to f at t = ϕ(α) are the same. Example In our previous example, we have so, for any α, we should have ϕ (t) = π, Dg(α) = πdf(ϕ(α)). This agrees with our previous calculation using α = 6.
89 Best Affine Approximations Section. Tangent and normal vectors If f : R R n is a smooth parametrization of a curve C, then, for any t, Df(t) is the direction of the tangent line to C at f(t). Moreover, from our discussion above, if g is a reparametrization of f, say, g(t) = f(ϕ(t)), then Dg(t) and Df(ϕ(t)) will have the same or opposite direction. In other words, the direction of the tangent line either remains the same or is reversed under reparametrization. On the other hand, Dg(t) = Df(ϕ(t)) ϕ (t). (..8) As we should expect, although both Dg(t) and Df(ϕ(T )) are tangent to the curve at g(t), their lengths do not have to be the same. In Section.3 we will discuss how we may think of this in terms of the speed of a particle moving along the curve C, with its position on C at time t given by either g(t) or f(t). For these and other considerations, it is useful to define a standard tangent vector, unique up to a change in sign. Definition If f : R R n is a smooth parametrization of a curve C, then we call T (t) = Df(t) Df(t) (..9) the unit tangent vector to C at f(t). From the preceding, we must keep in mind that the unit tangent vector T (t) is always in reference to some parametrization f of the curve C. Essentially, this is a choice of an orientation for the curve, that is, the direction of motion for a particle whose position at time t is given by f(t). If x = f(t), a < t < b, is a smooth parametrization of a curve C in R n, then, by definition, T (t) = for all t in (a, b). Hence for all t in (a, b). Differentiating (..3), we have and so, using (..), we have T (t) T (t) = (..3) d dt (T (t) T (t)) = d =, (..3) dt = d (T (t) T (t)) = T (t) DT (t) + DT (t) T (t) = DT (t) T (t) (..3) dt for all t in (a, b). Thus T (t) DT (t) = for a < t < b. In other words, DT (t) is orthogonal to T (t) for all t in (a, b).
90 Section. Best Affine Approximations Definition If f : R R n is a smooth parametrization of a curve C, T (t) is the unit tangent vector to C at f(t), and DT (t), then we call N(t) = DT (t) DT (t) (..33) the principal unit normal vector to C at f(t). Example Consider the parametrization of the circle in R with radius and center at the origin given by f(t) = ( cos(4t), sin(4t)). Then and Df(t) = Df(t) = ( 8 sin(4t), 8 cos(4t)) 64 sin (4t) + 64 cos (4t) = 8. Thus the unit tangent vector is T (t) = Df(t) Df(t) = ( sin(4t), cos(4t)). Moreover, so DT (t) = ( 4 cos(t), 4 sin(4t)), DT (t) = 6 cos (4t) + 6 sin (4) = 4, and the principal unit normal vector is N(t) = DT (t) DT (t) = ( cos(4t), sin(4t)). For example, when t = π 4 we have ( π f = ( 4) 3, ), ( ( π T = 4) ) 3,, and ( ( ) π 3 N = 4),.
91 Best Affine Approximations Section Figure..4 A circle with unit tangent and normal vectors Note that, for any value of t, f(t) T (t), T (t) N(t) (as is always the case), and N(t) = f(t). See Figure..4. Example Then so Consider the elliptical helix H parametrized by g(t) = (cos(t), sin(t), t). Dg(t) = ( sin(t), cos(t), ), Dg(t) = sin (t) + 4 cos (t) + = sin (t) + cos (t) + 3 cos (t) + = + 3 cos (t) = + 3 ( + cos(t)) cos(t) =. Hence the unit tangent vector is T (t) = ( sin(t), cos(t), ) cos(t)
92 Section. Best Affine Approximations 3 x y z - Figure..5 An elliptical helix with unit tangent and normal vectors Differentiating using (..), we have DT (t) = ( cos(t), sin(t), ) cos(t) + ( ) ( ) sin(t) cos(t) (7 + 3 cos(t)) ( sin(t), cos(t), ) 3 sin(t) = ( cos(t), sin(t), ) + ( sin(t), cos(t), ) cos(t) (7 + 3 cos(t)) 3 For example, at t = π 4 we have ( π ) ( g = 4,, π ), 4 ( π ) T = (,, ), 4 7 and ( π ) DT 4 = 7 (,, ) (,, ) = 7 7 (, 8, 3 ).
93 4 Best Affine Approximations Section. Thus ( π ) DT = so the principal unit normal vector at t = π 4 is See Figure = 6 7, ( π ) N = DT ( ) π ( 4 4 DT π ) = (, 8, 3 ). 4 8 As the last example shows, the computations involved in finding the unit tangent vector and the principal unit normal vector can become involved. In fact, that is why we computed the principal unit normal vector only in the particular case t = π 4 instead of writing out the general formula for N(t). In general these computations can become involved enough that it is often wise to make use of a computer algebra system. Problems. Find the derivative of each of the following functions. (a) f(t) = (t 3, t, t + 4) (b) g(t) = (3t cos(t), 4t sin(t)) (c) h(t) = (4t 3 3, sin(t), e t ) (d) f(t) = (e t sin(3t), e t cos(3t), te t ). For each of the following, find the best affine approximation to f at the given point. (a) f(t) = (t, t 3 ), t = (b) f(t) = (3 sin(t), 4 cos(t)), t = π 6 (c) f(t) = (cos(t), sin(t), cos(t)), t = π 3 (d) f(t) = ( cos(t), 3 sin(t), 3t), t = 3. Let f(t) = ( cos(πt), 3 sin(πt)) parametrize an ellipse E in R. Plot E along with the tangent line at f ( 3). 4. Let f(t) = (( + cos(t)) cos(t), ( + cos(t)) sin(t)) parametrize a curve C in R. Plot C along with the tangent line at f ( π 6 ). 5. Let h(t) = ( sin(πt), cos(πt), t ) parametrize a circular helix H in R 3. Plot H along with the tangent line at h ( 3 ). 6. Let g(t) = (cos(πt), t, sin(πt)) parametrize a curve C in R 3. Plot C along with the tangent line at g ( 4). 7. Suppose f : R R is defined by f(t) = (t, ϕ(t)), where ϕ : R R is differentiable, and let C be the curve in R parametrized by f. Show that the tangent line to C at f(c) is the same as the line tangent to the graph of ϕ at (c, ϕ(c). 8. Let C be the curve in R parametrized by f(t) = (t 3, t 6 ), < t <. Is f a smooth parametrization of C? If not, can you find a smooth parametrization of C?
94 Section. Best Affine Approximations 5 9. Let C be the curve in R parametrized by f(t) = (t, t ), < t <. Show that f is not a smooth parametrization of C. Where is the problem? Plot C and identify the location of the problem.. Let v and p be vectors in R n and let C be the curve in R n parametrized by f(t) = tv + p. What is the best affine approximation to f at t = t?. For each of the following, find the unit tangent vector and the principal unit normal vector at the indicated point. (a) f(t) = (t, t ), t = (b) g(t) = (3 sin(t), 3 cos(t)), t = π 3 (c) f(t) = ( cos(t), 4 sin(t)), t = π 4 (e) g(t) = (cos(t), sin(t), t), t = π 3 (d) h(t) = (cos(πt), sin(πt)), t = 3 4 (f) f(t) = ( sin(t), 3 cos(t), t), t = π 4 (g) f(t) = (sin(πt), cos(πt), 3t), t = (i) f(t) = (t, t, t 3 ), t = (h) g(t) = (cos(πt ), sin(πt ), t ), t =. Use the fact that f(t) = (b cos(t), b sin(t)) parametrizes a circle of radius b to show that a radius of a circle is always perpendicular to the tangent line at the point where the radius touches the circle. 3. Verify (..); that is, show that if f : R R n and ϕ : R R are both differentiable, then D(ϕ(t)f(t)) = ϕ(t)df(t) + ϕ (t)f(t). 4. Suppose f : R R 3 and g : R R 3 are both differentiable. Show that yet another version of the product rule. D(f(t) g(t)) = f(t) Dg(t) + Df(t) g(t), 5. The following figure illustrates a curve in R parametrized by some function f : R R. If T is the unit tangent vector at the indicated point on the curve, then either M or N is the principal unit normal vector at that point. Which one is it? N T M
95 The Calculus of Functions of Several Variables Section.3 Motion Along a Curve Velocity and acceleration Consider a particle moving in space so that its position at time t is given by x(t). We think of x(t) as moving along a curve C parametrized by a function f, where f : R R n. Hence we have x(t) = f(t), or, more simply, x = f(t). For us, n will always be or 3, but there are physical situations in which it is reasonable to have larger values of n, and most of what we do in this section will apply to those cases equally well. This is also a good time to introduce the Leibniz notation for a derivative, thus writing dx dt = Df(t). (.3.) At a given time t, the vector x(t + h) x(t ) represents the magnitude and direction of the change of position of the particle along C from time t to time t + h, as shown in Figure.3.. Dividing by h, we obtain a vector, x(t + h) x(t ), (.3.) h with the same direction, but with length approximating the average speed of the particle over the time interval from t to t + h. Assuming differentiability and taking the limit as h approaches, we have the following definition. x( ) t x ( t + h) t x( t + h) - x( ) Figure.3. Motion along a curve C Copyright c by Dan Sloughter
96 Motion Along a Curve Section.3 Definition Suppose x(t) is the position of a particle at time t moving along a curve C in R n. We call the velocity of the partial at time t and we call the speed of the particle at time t. Moreover, we call v(t) = d x(t) (.3.3) dt s(t) = v(t) (.3.4) a(t) = d v(t) (.3.5) dt the acceleration of the particle at time t. Example is Consider a particle moving along an ellipse so that its position at any time t x = ( cos(t), sin(t)). Then its velocity is its speed is and its acceleration is For example, at t = π 4 s = we have v = ( sin(t), cos(t)), 4 sin (t) + cos (t) = 3 sin (t) +, a = ( cos(t), sin(t)). x t= π 4 v t= π 4 ( ), =, = s t= π 4 ( ),, = 5, and a t= π 4 = (, ). See Figure.3.. Notice that, in this examples, a = x for all values of t.
97 Section.3 Motion Along a Curve 3 v.5 a x Figure.3. Position, velocity, and acceleration vectors for motion on an ellipse Curvature Suppose x is the position, v is the velocity, s is the speed, and a is the acceleration, at time t, of a particle moving along a curve C. Let T (t) be the unit tangent vector and N(t) be the principal unit normal vector at x. Now T (t) = dx dt dx dt = v v = v s, (.3.6) so v = s T (t). (.3.7) Thus Since we have a = dv dt = d dt a = ds dt st (t) = ds dt N(t) = T (t) + sdt (t) (.3.8) DT (t) DT (t), (.3.9) T (t) + s DT (t) N(t). (.3.) Note that (.3.) expresses the acceleration of a particle as the sum of scalar multiples of the unit tangent vector and the principal unit normal vector. That is, a = a T T (t) + a N N(t), (.3.) where and a T = ds dt (.3.) a N = s DT (t). (.3.3)
98 4 Motion Along a Curve Section.3 However, since T (t) and N(t) are orthogonal unit vectors, we also have a T (t) = (a T T (t) + a N N(t)) T (t) = a T (T (t) T (t)) + a N (T (t) N(t)) (.3.4) = a T and a N(t) = (a T T (t) + a N N(t)) N(t) = a T (T (t) N(t)) + a N (N(t) N(t)) = a N. (.3.5) Hence a T is the coordinate of a in the direction of T (t) and a N is the coordinate of a in the direction of N(t). Thus (.3.) writes the acceleration as a sum of its component in the direction of the unit tangent vector and its component in the direction of the principal unit normal vector. In particular, this shows that the acceleration lies in the plane determined by T (t) and N(t). Moreover, a T is the rate of change of speed, while a N is the product of the speed s and DT (t), the magnitude of the rate of change of the unit tangent vector. Since T (t) = for all t, DT (t) reflects only the rate at which the direction of T (t) is changing; in other words, DT (t) is a measurement of how fast the direction of the particle moving along the curve C is changing at time t. If we divide this by the speed of the particle, we obtain a standard measurement of the rate of change of direction of C itself. Definition Given a curve C with smooth parametrization x = f(t), we call κ = DT (t) s(t) (.3.6) the curvature of C at f(t). Using (.3.6), we can rewrite (.3.) as a = ds dt T (t) + s κn(t). (.3.7) Hence the coordinate of acceleration in the direction of the tangent vector is the rate of change of the speed and the coordinate of acceleration in the direction of the principal normal vector is the square of the speed times the curvature. Thus the greater the speed or the tighter the curve, the larger the size of the normal component of acceleration; the greater the rate at which speed is increasing, the greater the tangential component of acceleration. This is why drivers are advised to slow down while approaching a curve, and then to accelerate while driving through the curve. Example is given by Suppose a particle moves along a line in R n so that its position at any time t x = tw + p,
99 Section.3 Motion Along a Curve 5 where w and p are vectors in R n. Then the particle has velocity v = dx dt = w and speed s = w, so the unit tangent vector is T (t) = v s = Hence T (t) is a constant vector, so DT (t) = and w w. κ = DT (t) s = for all t. In other words, a line has zero curvature, as we should expect since the tangent vector never changes direction. Example Consider a particle moving along a circle C in R of radius r > and center (a, b), with its position at time given by x = (r cos(t) + a, r sin(t) + b). Then its velocity, speed, and acceleration are s = v = ( r sin(t), r cos(t)), r sin ( t) + r cos (t) = r and a = ( r cos(t), r sin(t)), respectively. Hence the unit tangent vector is T (t) = v s = ( sin(t), cos(t)). Thus and DT (t) = ( cos(t), sin(t)) DT (t) = cos (t) + sin (t) =. Hence the curvature of C is, for all t, κ = DT (t) s = r.
100 6 Motion Along a Curve Section.3 Thus a circle has constant curvature, namely, the reciprocal of the radius of the circle. In particular, the larger the radius of a circle, the smaller the curvature. Also, note that so, from (.3.), we have ds dt = d dt r =, a = rn(t), which we can verify directly. That is, the acceleration has a normal component, but no tangential component. Example time t is Now consider a particle moving along an ellipse E so that its position at any x = ( cos(t), sin(t)). Then, as we saw above, the velocity and speed of the particle are and v = ( sin(t), cos(t)) s = 3 sin( ) +, respectively. For purposes of differentiation, it will be helpful to rewrite s as cos(t) s = ( cos(t)) + =. Then the unit tangent vector is T (t) = ( sin(t), cos(t)). 5 3 cos(t) Thus DT (t) = 5 3 cos(t) So, for example, at t = π 4, we have 3 sin(t) ( cos(t), sin(t)) ( sin(t), cos(t)). (5 3 cos(t)) 3 x t= π 4 v t= π 4 (, = ( =, s t= π 4 = 5, ), ),
101 Section.3 Motion Along a Curve 7 ( π ) T = (, ), 4 5 ( π ) DT 4 = 5 (4, 8), 5 and ( DT π ) = = 5 5. (, ) Hence the curvature of E at is κ t= π 4 = = =.56, where the final numerical value has been rounded to four decimal places. Although the general expression for κ is complicated, it is easily computed and plotted using a computer algebra system, as shown in Figure.3.3. Comparing this with the plot of this ellipse in Figure.3., we can see why the curvature is greatest around (, ) and (, ), corresponding to t =, t = π, and t = π, and smallest at (, ) and (, ), corresponding to t = π and t = 3π. Finally, as we saw above, the acceleration of the particle is so Now if we write a = ( cos(t), sin(t)), a t= π 4 a t= π 4 then we may either compute, using (.3.7), and a T = ds dt t= π 4 = (, ). = a T T (t) + a N N(t), = (5 3 cos(t)) (3 sin(t) t= π 4 a N = s t= π k 4 t= π 4 = = = 4, 5 or, using (.3.4) and (.3.5), a T = a ( π ) t= π T = (, ) 4 4 = 3 (, ) = 3 5 and a N = a t= π 4 ( π ) N = (, ) ( 4, 8) = 4.
102 8 Motion Along a Curve Section Figure.3.3 Curvature of an ellipse Hence, in either case, a t= π 4 = 3 ( π ) T + 4 ( π ) N. 4 4 Arc length Suppose a particle moves along a curve C in R n so that its position at time t is given by x = f(t) and let D be the distance traveled by the particle from time t = a to t = b. We will suppose that s(t) = v(t) is continuous on [a, b]. To approximate D, we divide [a, b] into n subintervals, each of length t = b a n, and label the endpoints of the subintervals a = t, t,..., t n = b. If t is small, then the distance the particle travels during the jth subinterval, j =,,..., n, should be, approximately, s t, an approximation which improves as t decreases. Hence, for sufficiently small t (equivalently, sufficiently large n), n s(t j ) t (.3.8) j= will provide an approximation as close to D as desired. That is, we should define D = lim n j= n s(t j ) t. (.3.9) But (.3.8) is a Riemann sum (in particular, a left-hand rule sum) which approximates the definite integral b a s(t)dt. (.3.)
103 Section.3 Motion Along a Curve 9 Hence the limit in (.3.9) is the value of the definite integral (.3.), and so we have the following definition. Definition Suppose a particle moves along a curve C in R n so that its position at time t is given by x = f(t). Suppose the velocity v(t) is continuous on the interval [a, b]. Then we define the distance traveled by the particle from time t = a to time t = b to be b a v(t) dt. (.3.) Note that the distance traveled is the length of the curve C if the particle traverses C exactly once. In that case, we call (.3.) the length of C. In general, for any t such that the interval [a, t] is in the domain of f, we may calculate σ(t) = which we call the arc length function for C. Example t Consider the helix H parametrized by a f(t) = (cos(t), sin(t), t). v(u) du, (.3.) If we let L denote the length of one complete loop of the helix, then a particle traveling along H according to x = f(t) will traverse this distance as t goes from to π. Since we have Hence Example by v(t) = v(t) = ( sin(t), cos(t), ), L = sin (t) + cos (t) + =. π dt = π. Suppose a particle moves along a curve C so that its position at time t is given x = (( + cos(t)) cos(t), ( + cos(t)) sin(t)). Then C is the curve in Figure.3.4, which is called a limaçon. The particle will traverse this curve once as t goes from to π. Now so v = ( ( + cos(t)) sin(t) sin(t) cos(t), ( + cos(t)) cos(t) sin (t)), v = v v = ( + cos(t)) sin (t) + 4( + cos(t)) sin (t) cos(t) + 4 sin (t) cos (t) + ( + cos(t)) cos (t) 4( + cos(t)) sin (t) cos(t) + 4 sin 4 (t) = ( + cos(t)) (sin (t) + cos (t)) + 4 sin (t) cos (t) + 4 sin 4 (t) = ( + cos(t)) + 4 sin (t) cos (t) + 4 sin 4 (t),
104 Motion Along a Curve Section Figure.3.4 A limaçon Hence the length of C is π ( + cos(t)) + 4 sin (t) cos (t) + 4 sin 4 (t) dt = , where the integration was performed with a computer and the final result rounded to four decimal places. Note that integrating from to 4π would find the distance the particle travels in going around C twice, namely, 4π ( + cos(t)) + 4 sin (t) cos (t) + 4 sin 4 (t) dt = Problems. For each of the following, suppose a particle is moving along a curve so that its position at time t is given by x = f(t). Find the velocity and acceleration of the particle. (a) f(t) = (t + 3, sin(t)) (b) f(t) = (t e t, t 3 e t, 3t) (c) f(t) = (cos(3t ), sin(3t )) (d) f(t) = (t cos(t ), t sin(t ), 3t cos(t )). Find the curvature of the following curves at the given point. (a) f(t) = (t, t ), t = (b) f(t) = (3 cos(t), sin(t)), t = π 4
105 Section.3 Motion Along a Curve (c) f(t) = (cos(t), sin(t), t), t = π 3 (d) f(t) = (cos(t), sin(t), e t ), t = 3. Plot the curvature for each of the following curves over the given interval I. (a) f(t) = (t, t ), I = [, ] (b) f(t) = (cos(t), 3 sin(t)), I = [, π] (c) g(t) = (( + cos(t)) cos(t), ( + cos(t)) sin(t)), I = [, π] (d) h(t) = ( cos(t), sin(t), t), I = [, π] (e) f(t) = (4 cos(t) + sin(4t), 4 sin(t) + sin(4t)), I = [, π] 4. For each of the following, suppose a particle is moving along a curve so that its position at time t is given by x = f(t). Find the coordinates of acceleration in the direction of the unit tangent vector and in the direction of the principal unit normal vector at the specified point. Write the acceleration as a sum of scalar multiples of the unit tangent vector and the principal unit normal vector. (a) f(t) = (sin(t), cos(t)), t = π 3 (b) f(t) = (cos(t), 3 sin(t)), t = π 4 (c) f(t) = (t, t ), t = (d) f(t) = (sin(t), cos(t), t), t = π 3 5. Suppose a particle moves along a curve C in R 3 so that its position at time t is given by x = f(t). Let v, s, and a denote the velocity, speed, and acceleration of the particle, respectively, and let κ be the curvature of C. (a) Using the facts v = st (t) and a = ds dt T (t) + s κn(t), show that v a = s 3 κ(t (t) N(t)). (b) Use the result of part (a) to show that κ = v a v Let H be the helix in R 3 parametrized by f(t) = (cos(t), sin(t), t). Use the result from Problem 5 to compute the curvature κ of H for any time t. 7. Let C be the elliptical helix in R 3 parametrized by f(t) = (4 cos(t), sin(t), t). Use the result from Problem 5 to compute the curvature κ of C at t = π Let C be the curve in R which is the graph of the function ϕ : R R. Use the result from Problem 5 to show that the curvature of C at the point (t, ϕ(t)) is κ = ϕ (t). ( + (ϕ (t)) ) 3
106 Motion Along a Curve Section.3 9. Let P be the graph of f(t) = t. Use the result from Problem 8 to find the curvature of P at (, ) and (, 4).. Let C be the graph of f(t) = t 3. Use the result from Problem 8 to find the curvature of C at (, ) and (, 8).. Let C be the graph of g(t) = sin(t). Use the result from Problem 8 to find the curvature of C at ( ( π, ) π and 4, ).. For each of the following, suppose a particle is moving along a curve so that its position at time t is given by x = f(t). Find the distance traveled by the particle over the given time interval. (a) f(t) = (sin(t), 3 cos(t)), I = [, π] (b) f(t) = (cos(πt), sin(πt), t), I = [, 4] (c) f(t) = (t, t ), I = [, ] (d) f(t) = (t cos(t), t sin(t)), I = [, π] (e) f(t) = (cos(πt), sin(πt), 3t, t), I = [, ] (f) f(t) = (e t cos(πt), e t sin(πt)), I = [, ] (g) f(t) = (4 cos(t) + sin(4t), 4 sin(t) + sin(4t)), I = [, π] 3. Verify that the circumference of a circle of radius r is πr. 4. The curve parametrized by f(t) = (sin(t) cos(t), sin(t) sin(t)) has four petals. Find the length of one of these petals. 5. The curve C parametrized by h(t) = (cos 3 (t), sin 3 (t)) is called a hypocycloid (see Figure..3 in Section.3). Find the length of C. 6. Suppose ϕ : R R is continuously differentiable and let C be the part of the graph of ϕ over the interval [a, b]. Show that the length of C is b a + (ϕ (t)) dt. 7. Use the result from Problem 6 to find the length of one arch of the graph of f(t) = sin(t). 8. Let h : R R n parametrize a curve C. We say C is parametrized by arc length if Dh(t) = for all t. (a) Let σ be the arc length function for C using the parametrization f and let σ be its inverse function. Show that the function g : R R n defined by g(u) = f(σ (u)) parametrizes C by arc length.
107 Section.3 Motion Along a Curve 3 (b) Let C be the circular helix in R 3 with parametrization f(t) = (cos(t), sin(t), t). Find a function g : R R n which parametrizes C by arc length. 9. Suppose f : R R n is continuous on the closed interval [a, b] and has coordinate functions f, f,..., f n. We define the definite integral of f over the interval [a, b] to be ( b b b ) b f(t)dt = f (t)dt, f (t)dt,..., f n (t)dt. a a a a Show that if a particle moves so its velocity at time t is v(t), then, assuming v is a continuous function on an interval [a, b], the position of the particle for any time t in [a, b] is given by x(t) = t a v(s)ds + x(a).. Suppose a particle moves along a curve in R 3 so that its velocity at any time t is v(t) = (cos(t), sin(t), 3t). If the particle is at (,, ) when t =, use Problem 9 to determine its position for any other time t.. Suppose a particle moves along a curve in R 3 so that its acceleration at any time t is a(t) = (cos(t), sin(t), ). If the particle is at (,, ) with velocity (,, ) at time t =, use Problem 9 to determine its position for any other time t.. Suppose a projectile is fired from the ground at an angle α with an initial speed v, as shown in Figure.3.5. Let x(t), v(t), and a(t) be the position, velocity, and acceleration, respectively, of the projectile at time t. v() α Figure.3.5 The path of a projectile
108 4 Motion Along a Curve Section.3 (a) Explain why x() = (, ), v() = (v cos(α), v sin(α)), and a(t) = (, g) for all t, where g = 9.8 meters per second per second is the acceleration due to gravity. (b) Use Problem 9 to find v(t). (c) Use Problem 9 to find x(t). (d) Show that the curve parametrized by x(t) is a parabola. That is, let x(t) = (x, y) and show that y = ax + bx + c for some constants a, b, and c. (e) Show that the range of the projectile, that is, the horizontal distance traveled, is R = v sin(α) g and conclude that the range is maximized when α = π 4. (f) When does the projectile hit the ground? (g) What is the maximum height reached by the projectile? When does it reach this height? 3. Suppose a, a,..., a m are unit vectors in R n, m n, which are mutually orthogonal (that is, a i a j when i j). If x is a vector in R n with show that x i = x a i, i =,,..., m. x = x a + x a + + x m a m,
109 The Calculus of Functions of Several Variables Section 3. Geometry, Limits, and Continuity In this chapter we will study functions f : R n R, functions which take vectors for inputs and give scalars for outputs. For example, the function that takes a point in space for input and gives back the temperature at that point is such a function; the function that reports the gross national product of a country is another such function. Note that the domain space of the first example is three-dimensional, while the domain of the latter has, for most countries, thousands of dimensions. As usual, whenever possible we will state our results for an arbitrary n-dimensional space, although most of our examples will deal with only two or three dimensions. Level sets and graphs We begin by considering some geometrical methods for picturing functions of the form f : R n R. Definition Given a function f : R n R and a real number c, we call the set L = {(x, x,..., x n ) : f(x, x,..., x n ) = c} (3..) a level set of f at level c. We also call L a contour of f. When n =, we call L a level curve of f and when n = 3 we call L a level surface of f. A plot displaying level sets for several different levels is called a contour plot. Example Suppose f : R R is defined by f(x, y) = x + y. Given a real number c, the set of all points satisfying x + y = c is a level set of f. For c <, this set is empty; for c =, it consists of only the point (, ); for any c >, the level set is an ellipse with center at (, ). Hence a contour plot of f, as shown in Figure 3.., consists of concentric ellipses. Example Suppose f : R R is defined by f(x, y) = sin( x + y ) x + y. Copyright c by Dan Sloughter
110 Geometry, Limits, and Continuity Section 3. 3 c = 9 c = 7 c = 5 c = 3 c = Figure 3.. Level curves x + y = c For any point (x, y) on the circle of radius r > centered at the origin, f(x, y) has the constant value sin(r). r Hence a contour plot of f, like that shown in Figure 3.., consists of concentric circles centered at the origin. Example Suppose f : R 3 R is defined by The level surface of f with equation f(x, y, z) = x + y + 3z. x + y + 3z = is shown in Figure Note that, for example, fixing a value z of z yields the equation x + y = 3z,
111 Section 3. Geometry, Limits, and Continuity 3 4 c = -. c = -. c = -. c =.3 c =.9 c = Figure 3.. Level curves sin( x + y ) x + y = c the equation of an ellipse. This explains why a slice of the level surface shown in Figure 3..3 parallel to the xy-plane is an ellipse. Similarly, slices parallel to the xz-plane and the yz-plane are ellipses, which is why this surface is an example of an ellipsoid..5.5 z x y Figure 3..3 The level surface x + y + 3z =
112 4 Geometry, Limits, and Continuity Section 3. x y z 5 Figure 3..4 The paraboloid z = x + y Definition Given a function f : R n R, we call the set the graph of f. G = {(x, x,..., x n, x n+ ) : x n+ = f(x, x,..., x n )} (3..) Note that the graph G of a function f : R n R is in R n+. As a consequence, we can picture G only if n =, in which case G is a curve as studied in single-variable calculus, or n =, in which case G is a surface in R 3.
113 Section 3. Geometry, Limits, and Continuity 5 Example Consider the function f : R R defined by f(x, y) = x + y. The graph of f is then the set of all points (x, y, z) in R 3 which satisfy the equation z = x + y. One way to picture the graph of f is to imagine raising the level curves in Figure 3.. to their respective heights above the xy-plane, creating the surface in R 3 shown in Figure Another way to picture the graph is to consider slices of the graph lying above a grid of lines parallel to the axes in the xy-plane. For example, for a fixed value of x, say x, the set of points satisfying the equation z = x + y is a parabola lying above the line x = x. Similarly, fixing a value y of y yields the parabola z = x + y lying above the line y = y. If we draw these parabolas for numerous lines of the form x = x and y = y, we obtain a wire-frame of the graph. The graph shown in Figure 3..4 was obtained by filling in the surface patches of a wire-frame mesh, the outline of which is visible on the surface. This surface is an example of a paraboloid Figure 3..5 Graph of f(x, y) = sin( x + y ) x + y Example Although the graphs of many functions may be sketched reasonably well by hand using the ideas of the previous example, for most functions a good picture of its graph requires either computer graphics or considerable artistic skill. For example, consider the graph of f(x, y) = sin( x + y ). x + y Using the contour plot, we can imagine how the graph of f oscillates as we move away from the origin, the level circles of the contour plot rising and falling with the oscillations
114 6 Geometry, Limits, and Continuity Section 3. of sin(r), r where r = x + y. Equivalently, the slice of the graph above any line through the origin will be the graph of z = sin(r). r This should give you a good idea what the graph of f looks like, but, nevertheless, most of us could not produce the picture of Figure 3..5 without the aid of a computer. Notice that although f is not defined at (, ), it appears that f(x, y) approaches as (x, y) approaches. This is in fact true, a consequence of the fact that sin(r) lim r r =. We will return to this example after we have introduced limits and continuity. Limits and continuity By now the following two definitions should look familiar. Definition Let a be a point in R n and let O be the set of all points in the open ball of radius r > centered at c except c itself. That is, O = {x : x is in B n (c, r), x c}. (3..3) Suppose f : R n R is defined for all x in O. We say the limit of f(x) as x approaches c is L, written lim x c f(x) = L, if for every sequence of points {x m } in O, whenever lim x m = c. m lim f(x m) = L (3..4) m Definition Suppose f : R n R is defined for all x in some open ball B n (c, r), r >. We say f is continuous at c if lim f(x) = f(c). (3..5) x c The following basic properties of limits follow immediately from the analogous properties for limits of sequences. Proposition Suppose f : R n R and g : R n R with lim f(x) = L x c and lim g(x) = M. x c
115 Section 3. Geometry, Limits, and Continuity 7 Then and for any scalar k. Now suppose f : R n R, h : R R, lim (f(x) + g(x)) = L + M, (3..6) x c lim (f(x) g(x)) = L M, (3..7) x c lim f(x)g(x) = LM, (3..8) x c f(x) lim x c g(x) = L M, (3..9) lim kf(x) = kl (3..) x c lim f(x) = L, (3..) x c and h is continuous at L. Then for any sequence {x m } in R n with we have and so by the continuity of h at L. functions. Proposition If f : R n R, h : R R, and h is continuous at L, then lim x m = c, (3..) m lim f(x m) = L, (3..3) m lim h(f(x m)) = h(l) (3..4) m Thus we have the following result about compositions of lim f(x) = L, x c lim h f(x) = lim h(f(x)) = h(l). (3..5) x c x c Example Suppose we define f : R n R by f(x, x,..., x n ) = x k, where k is a fixed integer between and n. If a = (a, a,..., a n ) is a point in R n and lim x m = a, then m lim f(x m) = lim x mk = a k, m m
116 8 Geometry, Limits, and Continuity Section 3. where x mk is the kth coordinate of x m. Thus lim f(x) = a k. x a This result is a basic building block for the examples that follow. For a particular example, if f(x, y) = x, then lim f(x, y) = lim x =. (x,y) (,3) (x,y) (,3) Example If we define f : R 3 R by f(x, y, z) = xyz, then, using (3..8) in combination with the previous example, lim f(x, y, z) = lim (x,y,z) (a,b,c) xyz (x,y,z) (a,b,c) = ( lim x)( lim y)( lim z) (x,y,z) (a,b,c) (x,y,z) (a,b,c) (x,y,z) (a,b,c) = abc. for any point (a, b, c) in R 3. For example, lim f(x, y, z) = lim xyz = (3)()() = 6. (x,y,z) (3,,) (x,y,z) (3,,) Example Combining the previous examples with (3..6), (3..7), (3..8), and (3..), we have lim (x,y,z) (,,3) (xy + 3xyz 6xz) = ( lim x)( lim y)( lim y) (x,y,z) (,,3) (x,y,z) (,,3) (x,y,z) (,,3) + 3( lim x)( lim y)( lim z) (x,y,z) (,,3) (x,y,z) (,,3) (x,y,z) (,,3) 6( lim x)( lim z) (x,y,z) (,,3) (x,y,z) (,,3) = ()()() + (3)()()(3) (6)()(3) = 6. The last three examples are all examples of polynomials in several variables. In general, a function f : R n R of the form f(x, x,..., x n ) = ax i x i x i n n, where a is a scalar and i, i,..., i n are nonnegative integers, is called a monomial. A function which is a sum of monomials is called a polynomial. The following proposition is a consequence of the previous examples and (3..6), (3..7), (3..8), and (3..).
117 Section 3. Geometry, Limits, and Continuity 9 Proposition If f : R n R is a polynomial, then for any point c in R n, In other words, f is continuous at every point c in R n. If g and h are both polynomials, then we call the function lim f(x) = f(c). (3..6) x c f(x) = g(x) h(x) (3..7) a rational function. The next proposition is a consequence of the previous theorem and (3..9). Proposition If is a rational function defined at c, then In other words, f is continuous at every point c in its domain. Example Since f(x, y, z) = x y + 3xyz 4x + 3z is a rational function, we have, for example, lim f(x) = f(c). (3..8) x c lim f(x, y, z) = lim x y + 3xyz (x,y,z) (,,3) (x,y,z) (,,3) 4x + 3z = = Example Combining (3..8) with (3..5), we have ( ) ( lim log (x,y,z) (,,) x + y + z = log ( ) = log 6 = log(6). lim (x,y,z) (,,) ) x + y + z From the continuity of the square root function and our result above about the continuity of polynomials, we may conclude that the function f : R n R defined by f(x, x,..., x n ) = (x, x,..., x n ) = x + x + + x n is a continuous function. This fact is useful in computing some limits, particularly in combination with the fact that for any point x = (x, x,..., x n ) in R n, x = x + x + + x n x k = x k (3..9) for any k =,,..., n.
118 Geometry, Limits, and Continuity Section 3..5 z x - - y Figure 3..6 Graph of f(x, y) = x y x + y Example Suppose f : R R is defined by f(x, y) = x y x + y. Although f is a rational function, we cannot use (3..8) to compute lim f(x, y) (x,y) (,) since f is not defined at (, ). However, if we let x = (x, y), then, using (3..9), f(x, y) = x y x + y = x y x + y = x y x x x x = x. Now so Hence See Figure lim x =, (x,y) (,) lim f(x, y) =. (x,y) (,) lim f(x, y) = lim (x,y) (,) (x,y) (,) x y x + y =.
119 Section 3. Geometry, Limits, and Continuity Recall that for a function ϕ : R R, if and only if both and lim ϕ(t) = L t c lim t c ϕ(t) = L lim ϕ(t) = L. t c + In particular, if the one-sided limits do not agree, we may conclude that the limit does not exist. Similar reasoning may be applied to a function f : R n R, the difference being that there are infinitely many different curves along which the variable x might approach a given point c in R n, as opposed to only the two directions of approach in R. As a consequence, it is not possible to establish the existence of a limit with this type of argument. Nevertheless, finding two ways to approach c which yield different limiting values is sufficient to show that the limit does not exist. Example Suppose g : R R is defined by g(x, y) = If we define α : R R by α(t) = (t, ), then and lim t xy x + y. α(t) = lim(t, ) = (, ) t lim g(α(t)) = lim f(t, ) = lim t t t t =. Now α is a parametrization of the x-axis, so the previous limit computation says that g(x, y) approaches as (x, y) approaches (, ) along the x-axis. However, if we define β : R R by β(t) = (t, t), then β parametrizes the line x = y, and lim t β(t) = lim(t, t) = (, ), t t lim g(β(t)) = lim f(t, t) = lim t t t t =. Hence g(x, y) approaches as (x, y) approaches (, ) along the line x = y. Since these two limits are different, we may conclude that g(x, y) does not have a limit as (x, y) approaches (, ). Note that g in this example and f in the previous example are very similar functions, although our limit calculations show that their behavior around (, ) differs significantly. In particular, f has a limit as (x, y) approaches (, ), whereas g does not. This may be
120 Geometry, Limits, and Continuity Section 3..5 z x Figure 3..7 Graph of g(x, y) = - - xy x + y y seen by comparing the graph of g in Figure 3..7, which has a tear at the origin, with that of f in Figure The next proposition lists some basic properties of continuous functions, all of which follow immediately from the similar list of properties of limits. Proposition Suppose f : R n R and g : R n R are both continuous at c. Then the functions with values at x given by f(x) + g(x), (3..) f(x) g(x), (3..) f(x)g(x), (3..) f(x) g(x) (3..3) (provided g(c) ), and kf(x), (3..4) where k is any scalar, are all continuous at c. From the result above about the limit of a composition of two functions, we have the following proposition. Proposition If f : R n R is continuous at c and ϕ : R R is continuous at f(c), then ϕ f is continuous at c.
121 Section 3. Geometry, Limits, and Continuity 3 Example Since the function ϕ(t) = sin(t) is continuous for all t and the function f(x, y, z) = x + y + z is continuous at all points (x, y, z) in R 3, the function is continuous at all points (x, y, z) in R 3. Example Since the function g(x, y, z) = sin( x + y + z ) h(x, y) = sin( x + y ) is continuous for all (x, y) in R (same argument as in the previous example) and the function g(x, y) = x + y is continuous for all (x, y) in R, the function f(x, y) = sin( x + y ) x + y is, using (3..3), continuous at every point (x, y) (, ) in R. x = (x, y), then Moreover, if we let lim f(x, y) = lim sin( x + y ) sin( x ) = lim (x,y) (,) (x,y) (,) x + y (x,y) (,) x Hence the discontinuity at (, ) is removable. That is, if we define then g is continuous for all (x, y) in R. Open and closed sets sin( x + y ), if (x, y) (, ), g(x, y) = x + y, if (x, y) = (, ), = lim r sin(r) r In single-variable calculus we talk about a function being continuous not just at a point, but on an open interval, meaning that the function is continuous at every point in the open interval. Similarly, we need to generalize the definition of continuity of a function f : R n R from that of continuity at a point in R n to the idea of a function being continuous on a set in R n. Now the condition for a function f to be continuous at a point c requires that f be defined on some open ball containing c. Hence, in order to say that f is continuous at every point in some set U, it is necessary that, given any point u in U, f =.
122 4 Geometry, Limits, and Continuity Section 3. be defined on some open ball containing u. This provides the motivation for the following definition. Definition We say a set of points U in R n is open if whenever u is a point in U, there exists a real number r > such that the open ball B n (u, r) lies entirely within U. We say a set of points C in R n is closed if the set of all points in R n which do not lie in C form an open set. Example R n is itself an open set. Example Any open ball in R n is an open set. In particular, any open interval in R is an open set. To see why, consider an open ball B n (a, r) in R n. Given a point y in B n (a, r), let s be the smaller of y a (the distance from y to the center of the ball) and r y a (the distance from y to the edge of the ball). Then B n (y, s) is an open ball which lies entirely within B n (a, r). Hence B n (a, r) is an open set. Example Any closed ball in R n is a closed set. In particular, any closed interval in R is a closed set. To see why, consider a closed ball Bn (a, r). Given a point y not in B n (a, r), let s = y a r, the distance from y to the edge of B n (a, r). Then B n (y, s) is an open ball which lies entirely outside of B n (x, r). Hence B n (x, r) is a closed set. Example Given real numbers a < b, a < b,..., a n < b n, we call the set an open rectangle in R n and the set U = {(x, x,..., x n ) : a i < x i < b i, i =,,..., n} C = {(x, x,..., x n ) : a i x i b i, i =,,..., n} a closed rectangle in R n. An argument similar to that in the previous example shows that U is an open set and C is a closed set. Definition We say a function f : R n R is continuous on an open set U if f is continuous at every point u in U. Example The function is continuous on R 3. Example and f(x, y, z) = 3xyz 6x x + y + z + The functions x y f(x, y) = x, if (x, y) (, ), + y, if (x, y) = (, ), sin( x + y ), if (x, y) (, ), g(x, y) = x + y, if (x, y) = (, ), are, from our work in previous examples, continuous on R.
123 Section 3. Geometry, Limits, and Continuity 5 Example The function is continuous on the open set g(x, y) = xy x + y U = {(x, y) : (x, y) (, )}. Note that in this case it is not possible to define g at (, ) in such a way that the resulting function is continuous at (, ), a consequence of our work above showing that g does not have a limit as (x, y) approaches (, ). Example The function f(x, y) = log(xy) is continuous on the open set U = {(x, y) : x > and y > }. Problems. Plot the graph and a contour plot for each of the following functions. Do your plots over regions large enough to illustrate the behavior of the function. (a) f(x, y) = x + 4y (b) f(x, y) = x y (c) f(x, y) = 4y x (d) h(x, y) = sin(x) cos(y) (e) f(x, y) = sin(x + y) (f) g(x, y) = sin(x + y ) (g) g(x, y) = sin(x y ) (h) h(x, y) = xe x +y (i) f(x, y) = π e π (x +y ) (j) f(x, y) = sin(π sin(x) + y) (k) h(x, y) = sin(x + y ) x + y (l) g(x, y) = log( x + y ). For each of the following, plot the contour surface f(x, y, z) = c for the specified value of c. (a) f(x, y, z) = x + y + z, c = 4 (b) f(x, y, z) = x + 4y + z, c = 7 (c) f(x, y, z) = x + y z, c = (d) f(x, y, z) = x y + z, c = 3. Evaluate the following limits. (a) lim (3xy + 3xyz (x,y) (,) x y + 4y) (b) lim (x,y,z) (,,) xy + 4z (c) cos(3xy) lim (x,y) (,) x + (d) lim (x,y,z) (,,3) yex 3y+z
124 6 Geometry, Limits, and Continuity Section For each of the following, either find the specified limit or explain why the limit does not exist. xy x (a) lim (x,y) (,) x + y (b) lim (x,y) (,) x + y x xy (c) lim (x,y) (,) x + y (d) lim (x,y) (,) x + y (e) e (x +y ) x 4 y 4 lim (x,y) (,) x + y (f) lim (x,y) (,) x + y 5. Let f(x, y) = x y x 4 + 4y. (a) Define α : R R by α(t) = (t, ). Show that lim t f(α(t)) =. (b) Define β : R R by β(t) = (, t). Show that lim t f(β(t)) =. (c) Show that for any real number m, if we define γ : R R by γ(t) = (t, mt), then f(γ(t)) =. lim t (d) Define δ : R R by δ(t) = (t, t ). Show that lim t f(δ(t)) = 5. (e) What can you conclude about lim (x,y) (,) x y x 4 + 4y? (f) Plot the graph of f and explain your results in terms of the graph. 6. Discuss the continuity of the function e x +y, if (x, y) (, ), f(x, y) = x + y, if (x, y) = (, ). 7. Discuss the continuity of the function x y g(x, y) = x 4, if (x, y) (, ), + y4, if (x, y) = (, ). 8. For each of the following, decide whether the given set is open, closed, neither open nor closed, or both open and closed. (a) (3, ) in R (b) [, 5] in R (c) {(x, y) : x + y < 4} in R (d) {(x, y) : x + y > 4} in R
125 Section 3. Geometry, Limits, and Continuity 7 (e) {(x, y) : x + y 4} in R (f) {(x, y) : x + y = 4} in R (g) {(x, y, z) : < x <, < y < 3, < z < 5} in R 3 (h) {(x, y) : 3 < x 4, y < } in R 9. Give an example of a subset of R which is neither open nor closed.. Is it possible for a subset of R to be both open and closed? Explain.
126 The Calculus of Functions of Several Variables Section 3. Directional Derivatives and the Gradient For a function ϕ : R R, the derivative at a point c, that is, ϕ ϕ(c + h) ϕ(c) (c) = lim, (3..) h h is the slope of the best affine approximation to ϕ at c. We may also regard it as the slope of the graph of ϕ at (c, ϕ(c)), or as the instantaneous rate of change of ϕ(x) with respect to x when x = c. As a prelude to finding the best affine approximations for a function f : R n R, we will first discuss how to generalize (3..) to this setting using the ideas of slopes and rates of change for our motivation. Directional derivatives Example Consider the function f : R R defined by f(x, y) = 4 x y, the graph of which is pictured in Figure 3... If we imagine a bug moving along this surface, then the slope of the path encountered by the bug will depend both on the bug s position and the direction in which it is moving. For example, if the bug is above the point (, ) in the xy-plane, moving in the direction of the vector v = (, ) will cause it to head directly towards the top of the graph, and thus have a steep rate of ascent, whereas moving in the direction of v = (, ) would cause it to descend at a fast rate. These two possibilities are illustrated by the red curve on the surface in Figure 3... For another example, heading around the surface above the ellipse x + y = 3 in the xy-plane, which from (, ) means heading initially in the direction of the vector w = (, ), would lead the bug around the side of the hill with no change in elevation, and hence a slope of. This possibility is illustrated by the green curve on the surface in Figure 3... Thus in order to talk about the slope of the graph of f at a point, we must specify a direction as well. For example, suppose the bug moves in the direction of v. If we let u = (, ), the direction of v, then, letting c = (, ), f(c + hu) f(c) h Copyright c by Dan Sloughter
127 Directional Derivatives and the Gradient Section 3. y z x Figure 3.. Graph of f(x) = 4 x y would, for any h >, represent an approximation to the slope of the graph of f at (, ) in the direction of u. As in single-variable calculus, we should expect that taking the limit as h approaches should give us the exact slope at (, ) in the direction of u. Now f(c + hu) f(c) = f ( h, h ) f(, ) ( = 4 h ) ( h ) = 3 3 ( ) h + h = 3 h 3h ( = h 3 3h ), so ( f(c + hu) f(c) lim = lim 3 3h h h h ) = 3. Hence the graph of f has a slope of 3 if we start above (, ) and head in the direction of u; similar computations would show that the slope in the direction of u is 3 and the slope in the direction of
128 Section 3. Directional Derivatives and the Gradient 3 is. w w = (, ) 5 Definition Suppose f : R n R is defined on an open ball about a point c. Given a unit vector u, we call f(c + hu) f(c) D u f(c) = lim, (3..) h h provided the limit exists, the directional derivative of f in the direction of u at c. Example From our work above, if f(x, y) = 4 x y and u = (, ), then D u f(, ) = 3. Directional derivatives in the direction of the standard basis vectors will be of special importance. Definition Suppose f : R n R is defined on an open ball about a point c. If we consider f as a function of x = (x, x,..., x n ) and let e k be the kth standard basis vector, k =,,..., n, then we call D ek f(c), if it exists, the partial derivative of f with respect to x k at c. Notations for the partial derivative of f with respect to x k at an arbitrary point x = (x, x,..., x n ) include D xk f(x, x,..., x n ), f xk (x, x,..., x n ), and Then x k f(x, x,..., x n ). Now suppose f : R n R and, for fixed x = (x, x,..., x n ), define g : R R by g(t) = f(t, x,..., x n ). f x (x, x,..., x n ) = lim h f((x, x,..., x n ) + he ) f(x, x,..., x n ) h = lim h f((x, x,..., x n ) + (h,,..., )) f(x, x,..., x n ) h = lim h f(x + h, x,..., x n ) f(x, x,..., x n ) h = lim h g(x + h) g(x ) h = g (x ). (3..3)
129 4 Directional Derivatives and the Gradient Section 3. In other words, we may compute the partial derivative f x (x, x,..., x n ) by treating x, x 3,..., x n as constants and differentiating with respect to x as we would in singlevariable calculus. The same statement holds for any coordinate: To find the partial derivative with respect to x k, treat the other coordinates as constants and differentiate as if the function depended only on x k. Example If f : R R is defined by f(x, y) = 3x 4xy, then, treating y as a constant and differentiating with respect to x, f x (x, y) = 6x 4y and, treating x as a constant and differentiating with respect to y, f y (x, y) = 8xy. Example If f : R 4 R is defined by f(w, x, y, z) = log(w + x + y + z ), then and Example w f(w, z, y, z) = w w + x + y + z, x f(w, z, y, z) = x w + x + y + z, y f(w, z, y, z) = y w + x + y + z, z f(w, z, y, z) = z w + x + y + z. Suppose g : R R is defined by xy g(x, y) = x, if (x, y) (, ), + y, if (x, y) = (, ). We saw in Section 3. that at (, ). However, lim g(x, y) does not exist; in particular, g is not continuous (x,y) (,) g((, ) + h(, )) g(, ) g(h, ) g(, ) = lim = lim = lim x h h h h h h =
130 Section 3. Directional Derivatives and the Gradient 5 and g((, ) + h(, )) g(, ) g(, h) g(, ) = lim = lim = lim y h h h h h h =. This shows that it is possible for a function to have partial derivatives at a point without being continuous at that point. However, we shall see in Section 3.3 that this function is not differentiable at (, ); that is, f does not have a best affine approximation at (, ). The gradient Definition Suppose f : R n R is defined on an open ball containing the point c and f(c) exists for k =,,..., n. We call the vector x k the gradient of f at c. f(c) = ( x f(c), x f(c),..., ) f(c) x n (3..4) Example If f : R R is defined by f(x, y) = 3x 4xy, then f(x, y) = (6x 4y, 8xy). Thus, for example, f(, ) = (8, 6). Example If f : R 4 R is defined by f(w, x, y, z) = log(w + x + y + z ), then Thus, for example, f(w, x, y, z) = w + x + y (w, x, y, z). + z f(,,, ) = (,,, ). 5 Notice that if f : R n R, then f : R n R n ; that is, we may view the gradient as a function which takes an n-dimensional vector for input and returns another n-dimensional vector. We call a function of this type a vector field. Definition We say a function f : R n R is C on an open set U if f is continuous on f U and, for k =,,..., n, x k is continuous on U.
131 6 Directional Derivatives and the Gradient Section 3. Now suppose f : R R is C on some open ball containing the point c = (c, c ). Let u = (u, u ) be a unit vector and suppose we wish to compute the directional derivative D u f(c). From the definition, we have D u f(c) = lim h f(c + hu) f(c) h = lim h f(c + hu, c + hu ) f(c, c ) h f(c + hu, c + hu ) f(c + hu, c ) + f(c + hu, c ) f(c, c ) = lim h h ( f(c + hu, c + hu ) f(c + hu, c ) = lim h h For a fixed value of h, define ϕ : R R by Note that ϕ is differentiable with + f(c + hu, c ) f(c, c ) h ). ϕ(t) = f(c + hu, c + t). (3..5) ϕ (t) = lim s ϕ(t + s) ϕ(t) s = lim s f(c + hu, c + t + s) f(c + hu, c + t) s = y f(c + hu, c + t). (3..6) Hence if we define α : R R by then α is differentiable with α(t) = ϕ(u t) = f(c + hu, c + tu ), (3..7) α (t) = u ϕ (u t) = u y f(c + hu, c + tu ). (3..8) By the Mean Value Theorem from single-variable calculus, there exists a number a between and h such that α(h) α() = α (a). (3..9) h Putting (3..7) and (3..8) into (3..9), we have f(c + hu, c + hu ) f(c + hu, c ) h = u y f(c + hu, c + au ). (3..) Similarly, if we define β : R R by β(t) = f(c + tu, c ), (3..)
132 Section 3. Directional Derivatives and the Gradient 7 then β is differentiable, β (t) = u x f(c + tu, c ), (3..) and, using the Mean Value Theorem again, there exists a number b between and h such that f(c + hu, c ) f(c, c ) h = β(h) β() h = β (b) = u x f(c + bu, c ). (3..3) Putting (3..) and (3..3) into our expression for D u f(c) above, we have ( ) D u f(c) = lim u h y f(c + hu, c + au ) + u x f(c + bu, c ). (3..4) Now both a and b approach as h approaches and both f x continuous, so evaluating the limit in (3..4) gives us and f y are assumed to be D u f(c) = u y f(c, c ) + u x f(c, c ) = f(c) u. (3..5) A straightforward generalization of (3..5) to the case of a function f : R n R gives us the following theorem. Theorem Suppose f : R n R is C on an open ball containing the point c. Then for any unit vector u, D u f(c) exists and D u f(c) = f(c) u. (3..6) Example If f : R R is defined by f(x, y) = 4 x y, then If then f(x, y) = ( 4x, y). u = (, ), ( D u f(, ) = f(, ) u = ( 4, ) ) (, ) = 6 = 3, as we saw in this first example of this section. Note also that ( ) D u f(, ) = f(, ) ( u) = ( 4, ) (, ) = 6 = 3
133 8 Directional Derivatives and the Gradient Section 3. and, if w = 5 (, ), as claimed earlier. ( ) D w f(, ) = f(, ) (w) = ( 4, ) 5 (, ) =, Example Suppose the temperature at a point in a metal cube is given by T (x, y, z) = 8 xe (x +y +z ), where the center of the cube is taken to be at (,, ). Then we have x T (x, y, z) = x e (x +y +z ) e (x +y +z ), and so y T (x, y, z) = xye (x +y +z ), z T (x, y, z) = xze (x +y +z ), T (x, y, z) = e (x +y +z ) (x, xy, xz). Hence, for example, the rate of change of temperature at the origin in the direction of the unit vector u = (,, ) 3 is ( ) D u T (,, ) = T (,, ) u = (,, ) 3 (,, ) =. 3 An application of the Cauchy-Schwarz inequality to (3..6) shows us that D u f(c) = f(c) u f(c) u = f(c). (3..7) Thus the magnitude of the rate of change of f in any direction at a given point never exceeds the length of the gradient vector at that point. Moreover, in our discussion of the Cauchy-Schwarz inequality we saw that we have equality in (3..7) if and only if u is parallel to f(c). Indeed, supposing f(c), when u = f(c) f(c),
134 Section 3. Directional Derivatives and the Gradient 9 we have D u f(c) = f(c) u = f(c) f(c) f(c) = f(c) f(c) = f(c) (3..8) and Hence we have the following result. D u f(c) = f(c). (3..9) Proposition Suppose f : R n R is C on an open ball containing the point c. Then D u f(c) has a maximum value of f(c) when u is the direction of f(c) and a minimum value of f(c) when u is the direction of f(c). In other words, the gradient vector points in the direction of the maximum rate of increase of the function and the negative of the gradient vector points in the direction of the maximum rate of decrease of the function. Moreover, the length of the gradient vector tells us the rate of increase in the direction of maximum increase and its negative tells us the rate of decrease in the direction of maximum decrease. Example then As we saw above, if f : R R is defined by f(x, y) = 4 x y, f(x, y, ) = ( 4x, y). Thus f(, ) = ( 4, ). Hence if a bug standing above (, ) on the graph of f wants to head in the direction of most rapid ascent, it should move in the direction of the unit vector f(, ) u = f(, ) = (, ). 5 If the bug wants to head in the direction of most rapid descent, it should move in the direction of the unit vector u = (, ). 5 Moreover, and D u f(, ) = f(, ) = D u f(, ) = f(, ) =. Figure 3.. shows scaled values of f(x, y) plotted for a grid of points (x, y). The vectors are scaled so that they fit in the plot, without overlap, yet still show their relative magnitudes. This is another good geometric way to view the behavior of the function. Supposing our bug were placed on the side of the graph above (, ) and that it headed up the hill in such a manner that it always chose the direction of steepest ascent, we can see that it would head more quickly toward the y-axis than toward the x-axis. More explicitly,
135 Directional Derivatives and the Gradient Section Figure 3.. Scaled gradient vectors for f(x, y) = 4 x y if C is the shadow of the path of the bug in the xy-plane, then the slope of C at any point (x, y) would be dy dx = y 4x = y x. Hence dy y dx = x. If we integrate both sides of this equality, we have dy y dx dx = x dx. Thus for some constant c, from which we have It follows that log y = log x + c e log y = e log x +c. y = k x, where k = ±e c. Since y = when x =, k = and we see that C is the graph of y = x. Figure 3.. shows C along with the plot of the gradient vectors of f, while Figure 3..3 shows the actual path of the bug on the graph of f.
136 Section 3. Directional Derivatives and the Gradient y z x Figure 3..3 Graph f(x, y) = 4 x y with path of most rapid ascent from (,, ) Example For a two-dimensional version of the temperature example discussed above, consider a metal plate heated so that its temperature at (x, y) is given by Then so, for example, T (x, y) = 8 xe (x +y ). T (x, y) = e (x +y ) (x, xy), T (, ) = (, ). Thus at the origin the temperature is increasing most rapidly in the direction of u = (, ) and decreasing most rapidly in the direction of (, ). Moreover, D u T (, ) = f(, ) = and Note that and D u T (, ) = f(, ) =. D u T (, ) = T (, ) x D u T (, ) = T (, ). x
137 Directional Derivatives and the Gradient Section Figure 3..4 Scaled gradient vectors for T (x, y) = 8 xe (x +y ) Figure 3..4 is a plot of scaled gradient vectors for this temperature function. From the plot it is easy to see which direction a bug placed on this metal plate would have to choose in order to warm up as rapidly as possible. It should also be clear that the temperature has a relative maximum around ( 3, ) and a relative minimum around (3, ); these points are, in fact, exactly (, ) and (, ), the points where T (x, y) = (, ). We will consider the problem of finding maximum and minimum values of functions of more than one variable in Section 3.5. Problems. Suppose f : R R is defined by f(x, y) = 3x + y. Let u = 5 (, ). Find D u f(3, ) directly from the definition (3..).. For each of the following functions, find the partial derivatives with respect to each variable.
138 Section 3. Directional Derivatives and the Gradient 3 (a) f(x, y) = 4x x + y (b) g(x, y) = 4xy e y (c) f(x, y, z) = 3x y 3 z 4 3x y (d) h(x, y, z) = 4xze x +y +z (e) g(w, x, y, z) = sin( w + x + y + 3z ) 3. Find the gradient of each of the following functions. (a) f(x, y, z) = x + y + z (b) g(x, y, z) = (c) f(w, x, y, z) = tan (4w + 3x + 5y + z) 4. Find D u f(c) for each of the following. (a) f(x, y) = 3x + 5y, u = 3 (3, ), c = (, ) (b) f(x, y) = x y, u = 5 (, ), c = (, 3) (c) f(x, y, z) = x + y + z, u = (,, ), c = (,, ) 6 x + y + z 5. For each of the following, find the directional derivative of f at the point c in the direction of the specified vector w. (a) f(x, y) = 3x y, w = (, 3), c = (, ) (b) f(x, y, z) = log(x + y + z ), w = (,, 3), c = (,, ) (c) f(t, x, y, z) = tx yz, w = (,,, 3), c = (,,, ) 6. A metal plate is heated so that its temperature at a point (x, y) is A bug is placed at the point (, ). T (x, y) = 5y e 5 (x +y ). (a) The bug heads toward the point (, ). What is the rate of change of temperature in this direction? (b) In what direction should the bug head in order to warm up at the fastest rate? What is the rate of change of temperature in this direction? (c) In what direction should the bug head in order to cool off at the fastest rate? What is the rate of change of temperature in this direction? (d) Make a plot of the gradient vectors and discuss what it tells you about the temperatures on the plate. 7. A heat-seeking bug is a bug that always moves in the direction of the greatest increase in heat. Discuss the behavior of a heat seeking bug placed on a metal plate heated so that the temperature at (x, y) is given by T (x, y) = 4xye (x +y ).
139 4 Directional Derivatives and the Gradient Section Suppose g : R R is defined by xy g(x, y) = x, if (x, y) (, ), + y, if (x, y) = (, ). We saw above that both partial derivatives of g exist at (, ), although g is not continuous at (, ). (a) Show that neither g x (b) Let nor g y is continuous at (, ). u = (, ). Show that D u g(, ) does not exist. In particular, D u g(, ) g(, ) u. 9. Suppose the price of a certain commodity, call it commodity A, is x dollars per unit and the price of another commodity, B, is y dollars per unit. Moreover, suppose that d A (x, y) represents the number of units of A that will be sold at these prices and d B (x, y) represents the number of units of B that will be sold at these prices. These functions are known as the demand functions for A and B. (a) Explain why it is reasonable to assume that and for all (x, y). x d A(x, y) < y d B(x, y) < (b) Suppose the two commodities are competitive. For example, they might be two different brands of the same product. In this case, what would be reasonable assumptions for the signs of y d A(x, y) and x d B(x, y)? (c) Suppose the two commodities complement each other. For example, commodity A might be a computer and commodity B a type of software. In this case, what would be reasonable assumptions for the signs of and y d A(x, y) x d B(x, y)?
140 Section 3. Directional Derivatives and the Gradient 5. Suppose P (x, x,..., x n ) represents the total production per week of a certain factory as a function of x, the number of workers, and other variables, such as the size of the supply inventory, the number of hours the assembly lines run per week, and so on. Show that average productivity increases as x increases if and only if P (x, x,..., x n ) x P (x, x,..., x n ) > P (x, x,..., x n ). x x. Suppose f : R n R is C on an open ball about the point c. (a) Given a unit vector u, what is the relationship between D u f(c) and D u f(c)? (b) Is it possible that D u f(c) > for every unit vector u?
141 The Calculus of Functions of Several Variables Section 3.3 Best Affine Approximations Best affine approximations Given a function f : R n R and a point c, we wish to find the affine function A : R n R which best approximates f for points close to c. As before, best will mean that the remainder function, R(h) = f(c + h) A(c + h), (3.3.) approaches at a sufficiently fast rate. In this context, since R(h) is a scalar and h is a vector, sufficiently fast will mean that R(h) lim h h =. (3.3.) Generalizing our previous notation, we will say that a function R : R n R satisfying (3.3.) is o(h). Note that if n = this extended definition of o(h) is equivalent to the definition given in Section.. Definition Suppose f : R n R is defined on an open ball containing the point c. We call an affine function A : R n R the best affine approximation to f at c if () A(c) = f(c) and () R(h) is o(h), where R(h) = f(c + h) A(c + h). (3.3.3) Suppose f : R n R and suppose A : R n R is the best affine approximation to f at c. Since A is affine, there exists a linear function L : R n R and a scalar b such that for all x in R n. Since A(c) = f(c), we have A(x) = L(x) + b (3.3.4) f(c) = L(c) + b, (3.3.5) which implies that Hence b = f(c) L(c). (3.3.6) A(x) = L(x) + f(c) L(c) = L(x c) + f(c) (3.3.7) Copyright c by Dan Sloughter
142 Best Affine Approximations Section 3.3 for all x in R n. Moreover, if we let a = (L(e ), L(e ),..., L(e n )), (3.3.8) where e, e,..., e n are, as usual, the standard basis vectors for R n, then, from our results in Section.5, L(x) = a x (3.3.9) for all x in R n. Hence A(x) = a (x c) + f(c), (3.3.) for all x in R n, and we see that A is completely determined by the vector a Definition Suppose f : R n R is defined on an open ball containing the point c. If f has a best affine approximation at c, then we say f is differentiable at c. Moreover, if the best affine approximation to f at c is given by then we call a the derivative of f at c and write Df(c) = a. A(x) = a (x c) + f(c), (3.3.) Now suppose f : R n R is differentiable at c with best affine approximation A and let a = (a, a,..., a n ) = Df(c). Since is o(h), we must have R(h) = f(c + h) A(c + h) = f(c + h) a h f(c) (3.3.) R(h) lim h h =. (3.3.3) In particular, for k =,,..., n, if we let h = te k, then h approaches as t approaches, so R(te k ) = lim t te k = lim f(c + te k ) t(a e k ) f(c) t t First considering t >, we have = lim t + f(c + te k ) ta k f(c) t implying that With t <, we have = lim t f(c + te k ) ta k f(c) t = lim t f(c + te k ) ta k f(c) t ( ) f(c + tek ) f(c) = lim a k, (3.3.4) t + t f(c + te k ) f(c) a k = lim. (3.3.5) t + t ( ) f(c + tek ) f(c) = lim a k, (3.3.6) t t
143 Section 3.3 Best Affine Approximations 3 implying that Hence Thus we have shown that a = f(c + te k ) f(c) a k = lim. (3.3.7) t t a k = lim t f(c + te k ) f(c) t ( x f(c), x f(c),..., = x k f(c). (3.3.8) ) f(c) = f(c). (3.3.9) x n Theorem If f : R n R is differentiable at c, then Df(c) = f(c) (3.3.) It now follows that if f : R n R is differentiable at c, then the best affine approximation to f at c is A(x) = f(c) (x c) f(c). (3.3.) However, the converse does not hold: it is possible for f(c) to exist even when f is not differentiable at c. Before looking at an example, note that if f is differentiable at c and A is the best affine approximation to f at c, then, since R(h) = f(c + h) A(c + h) is o(h), lim (f(c + h) A(c + h)) = lim h h Now A is continuous at c, so it follows that In other words, f is continuous at c. R(h) h = =. (3.3.) h lim f(c + h) = lim A(c + h) = A(c) = f(c). (3.3.3) h h Theorem If f : R n R is differentiable at c, then f is continuous at c. Example Consider the function xy g(x, y) = x, if (x, y) (, ), + y, if (x, y) = (, ). In Section 3. we showed that g is not continuous at (, ) and in Section 3. we saw that g(, ) = (, ). Since g is not continuous at (, ), it now follows, from the previous theorem, that g is not differentiable at (, ), even though the gradient exists at that point. From the graph of g in Figure 3.3. (originally seen in Figure 3..7), we can see
144 4 Best Affine Approximations Section z x - - y Figure 3.3. The graph of a nondifferentiable function that the fact that g is not differentiable, in fact, not even continuous, at the origin shows up geometrically as a tear in the surface. From this example we see that the differentiability of a function f : R n R at a point c requires more than just the existence of the gradient of f at c. It turns out that continuity of the partial derivatives of f on an open ball containing c suffices to show that f is differentiable at c. Note that the partial derivatives of g in the previous example are not continuous (see Problem 8 of Section 3.). So we will now assume that f : R n R is C on some open ball containing c. If we define an affine function A : R n R by then the remainder function is A(x) = f(c) (x c) + f(c), (3.3.4) R(h) = f(c + h) A(c + h) = f(c + h) f(c) f(c) h. (3.3.5) We need to show that R(h) is o(h). Toward that end, for a fixed h, define ϕ : R R by ϕ(t) = f(c + th). (3.3.6) We first note that ϕ is differentiable with ϕ ϕ(t + s) ϕ(t) (t) = lim s s f(c + (t + s)h) f(c + th) = lim s s
145 Section 3.3 Best Affine Approximations 5 ( ) f c + th + s h h h f(c + th) = h lim s s h = h D h f(c + th) h ( ) h = h f(c + th) h = f(c + th) h. (3.3.7) From the Mean Value Theorem of single-variable calculus, it follows that there exists a number s between and such that Hence we may write ϕ (s) = ϕ() ϕ() = f(c + h) f(c). (3.3.8) R(h) = f(c + sh) h f(c) h = ( f(c + sh) f(c)) h. (3.3.9) Applying the Cauchy-Schwarz inequality to (3.3.9), and so R(h) f(c + sh) f(c) h, (3.3.3) R(h) h Now the partial derivatives of f are continuous, so f(c + sh) f(c). (3.3.3) lim f(c + sh) f(c) = f(c + s) f(c) h = f(c) f(c) =. (3.3.3) Hence R(h) lim h h =. (3.3.33) That is, R(h) is o(h) and A is the best affine approximation to f at c. Thus we have the following fundamental theorem. Theorem If f : R n R is C on an open ball containing the point c, then f is differentiable at c. Example Suppose f : R R is defined by f(x, y) = 4 x y. To find the best affine approximation to f at (, ), we first compute f(x, y) = ( 4x, y).
146 6 Best Affine Approximations Section 3.3 Thus f(, ) = ( 4, ) and f(, ) =, so the best affine approximation is A(x, y) = ( 4, ) (x, y ) +. Simplifying, we have A(x, y) = 4x y + 7. Example Suppose f : R 3 R is defined by f(x, y, z) = x + y + z. Then f(x, y, z) = (x, y, z). x + y + z Thus, for example, the best affine approximation to f at (,, ) is A(x, y, z) = f(,, ) (x, y, z ) + f(,, ) = (,, ) (x, y, z ) = 3 (x ) + 3 (y ) + (z ) = 3 x + 3 y + 3 z. Now suppose we let (x, y, z) be the lengths of the three sides of a solid block, in which case f(x, y, z) represents the length of the diagonal of the box. Moreover, suppose we measure the sides of the block and find them to have lengths x = + ɛ x, y = + ɛ y, and z = + ɛ z, where ɛ x h, ɛ y h, and ɛ z h for some positive number h representing the limit of the accuracy of our measuring device. We now estimate the diagonal of the box to be with an error of f(,, ) = 3 f( + ɛ x, + ɛ y, + ɛ z ) f(,, ) A( + ɛ x, + ɛ y, + ɛ z ) 3 = 3 ɛ x + 3 ɛ y + 3 ɛ z 3 ɛ x + 3 ɛ y + 3 ɛ z ( h ) 3 = 5 3 h.
147 Section 3.3 Best Affine Approximations 7 That is, we expect our error in estimating the diagonal of the block to be no more that 5 3 times the maximum error in our measurements of the sides of the block. For example, if the error in our length measurements is off by no more than ±. centimeters, then our estimate of the diagonal of the box is off by no more than ±.7 centimeters. Note that if A : R n R is the best affine approximation to f : R n R at c = (c, c,..., c n ), then the graph of A is the set of all points (x, x,..., x n, z) in R n+ satisfying z = f(c) (x c, x c,..., x n c n ) + f(c). (3.3.34) Letting n = ( x f(c), x f(c),..., ) f(c),, (3.3.35) x n we may describe the graph of A as the set of all points in R n+ satisfying n (x c, x c,..., x n c n, z f(c)) =. (3.3.36) Thus the graph of A is a hyperplane in R n+ passing through the point (c, c,..., c n, f(c)) (a point on the graph of f) with normal vector n. Definition If A : R n R is the best affine approximation to f : R n R at c = (c, c,..., c n ), then we call the graph of A the tangent hyperplane to the graph of f at (c, c,..., c n, f(c)). Example We saw above that the best affine approximation to f(x, y) = 4 x y at (, ) is A(x, y) = 7 4x y. Hence the equation of the tangent plane to the graph of f at is z = 7 4x y, or 4x + y + z = 7. Note that the vector n = (4,, ) is normal to the tangent plane, and hence normal to the graph of f at (,, ). The graph of f along with the tangent plane at (,, ) is shown in Figure The chain rule Suppose ϕ : R R n is differentiable at a point c and f : R n R is differentiable at the point ϕ(c). Then the composition of f and ϕ is a function f ϕ : R R. To compute the derivative of f ϕ at c, we must evaluate (f ϕ) (c) = lim h f ϕ(c + h) f ϕ(c) h f(ϕ(c + h)) f(ϕ(c)) = lim. (3.3.37) h h
148 8 Best Affine Approximations Section Figure 3.3. A plane tangent to the graph of f(x, y) = 4 x y Let A be the best affine approximation to f at a = ϕ(c) and let k = ϕ(c + h) ϕ(c). Then f(ϕ(c + h)) = f(a + k) = A(a + k) + R(k), (3.3.38) where R(k) is o(k). Now so A(a + k) = f(a) k + f(a), (3.3.39) f(ϕ(c + h)) f(ϕ(c)) = f(a + k) f(a) Substituting (3.3.4) into (3.3.37),we have = f(a) k + R(k) = f(a) (ϕ(c + h) ϕ(c)) + R(k). (3.3.4) (f ϕ) f(a) (ϕ(c + h) ϕ(c)) + R(k) (c) = lim h h ϕ(c + h) ϕ(c) R(k) = lim f(a) + lim h h h h R(k) = f(a) Dϕ(c) + lim h h. (3.3.4)
149 Section 3.3 Best Affine Approximations 9 Now R(k) is o(k), so R(k) lim k k =, from which it follows that, for any given ɛ >, we have for sufficiently small k. Since R() =, it follows that R(k) k < ɛ (3.3.4) R(k) < ɛ k (3.3.43) for all k sufficiently small. enough to guarantee that Moreover, ϕ is continuous at c, so we may choose h small k = ϕ(c + h) ϕ(h) is small enough for (3.3.43) to hold. Hence for sufficiently small h, R(k) h < ɛ k h. (3.3.44) Now k lim h h = lim ϕ(c + h) ϕ(c) h h and the choice of ɛ was arbitrary, so it follows that R(k) lim h h = Dϕ(c) (3.3.45) =. (3.3.46) Hence (f ϕ) (c) = f(a) Dϕ(c). (3.3.47) This is a version of the chain rule. Theorem ϕ(c). Then Suppose ϕ : R R n is differentiable at c and f : R n R is differentiable at (f ϕ) (c) = f(ϕ(c)) Dϕ(c). (3.3.48) If we imagine a particle moving along the curve C parametrized by ϕ, with velocity v(t) and unit tangent vector T (t) at time t, then (3.3.48) says that the rate of change of f along C at ϕ(c) is f(ϕ(c)) v(c) = v(c) f(ϕ(c)) T (c) = v(c) D T (c) f(ϕ(c)). (3.3.49) In other words, the rate of change of f along C is the rate of change of f in the direction of T (t) multiplied by the speed of the particle moving along the curve.
150 Best Affine Approximations Section 3.3 Example Suppose that the temperature at a point (x, y, z) inside a cubical region of space is given by T (x, y, z) = 8 xe (x +y +z ). Moreover, suppose a bug flies through this region along the elliptical helix parametrized by ϕ(t) = (cos(πt), sin(πt), t). Then and T (x, y, z) = e (x +y +z ) (x, xy, xz) Dϕ(t) = ( π sin(πt), π cos(πt), ). Hence, for example, if we want to know the rate of change of temperature for the bug at t = 3, we would evaluate ( ) ( ) 3π Dϕ = 3, π, and so T ( ( )) ( ϕ = T 3, 3, ) ( = e , 3, ), 3 (T ϕ) ( 3 ) ( = e 7 39, 3, ) ( 3π 3 ) = e 7 = 49.73, ( 39π 3 + 3π + 4 3, π, ) where the final value has been rounded to two decimal places. Hence at that moment the temperature for the bug is increasing at rate of per second. We could also express this as dt dt t= 3 = For an alternative formulation of the chain rule, suppose f : R n R and x i : R R, i =,,..., n, are all differentiable and let w = f(x, x,..., x n ). If x, x,..., x n are all functions of t, then, by the chain rule, ( dw w dt =, w,..., w ) ( dx x x x n dt, dx dt,..., dx ) n dt = w x dx dt + w x dx dt + + w x n dx n dt. (3.3.5)
151 Section 3.3 Best Affine Approximations Example Suppose the dimensions of a box are increasing so that its length, width, and height at time t are, in centimeters, x = 3t, and respectively. Since the volume of the box is the rate of change of the volume is dv dt = V dx x dt + V y y = t, z = t 3, V = xyz, dy dt + V z dz dt = 3yz + xzt + 3xyt. Hence, for example, at t = we have x = 6, y = 4, and z = 8, so dv dt = = 576 cm 3 /sec. t= The gradient and level sets Now consider a differentiable function f : R n R and a point a on the level set S specified by f(x) = c for some scalar c. Suppose ϕ : R R n is a smooth parametrization of a curve C which lies entirely on S and passes through a. Let ϕ(b) = a. Then the composition of f and ϕ is a constant function; that is, for all values of t. Thus, using the chain rule, Hence g(t) = f ϕ(t) = f(ϕ(t)) = c (3.3.5) = g (b) = f(ϕ(b)) Dϕ(b) = f(a) Dϕ(b). (3.3.5) f(a) Dϕ(b). (3.3.53) Now Dϕ(b) is tangent to C at a; moreover, since (3.3.53) holds for any curve in S passing through a, f(a) is orthogonal to every vector tangent to S. In other words, f(a) is normal to the hyperplane tangent to S at a. Thus we have the following theorem. Theorem Suppose f : R n R is differentiable on an open ball containing the point a, and let S be the set of all points in R n such that f(x) = f(a). If f(a), then the hyperplane with equation f(a) (x a) = (3.3.54) is tangent to S at a.
152 Best Affine Approximations Section 3.3 y - z - - x Figure Sphere with tangent plane For n =, the hyperplane described by (3.3.54) will be a tangent line to a curve; for n = 3, it will be a tangent plane to a surface. Example The set of all points S in R 3 satisfying x + y + z = 9 is a sphere with radius 3 centered at the origin. We will find an equation for the plane tangent to S at (,, ). First note that S is a level surface for the function Now so Thus an equation for the tangent plane is f(x, y, z) = x + y + z. f(x, y, z) = (x, y, z), f(,, ) = (4,, 4). (4,, 4) (x, y +, z ) =, or See Figure x y + 4z = 8.
153 Section 3.3 Best Affine Approximations 3 Problems. For each of the following, find the best affine approximation to the given function at the specified point c. (a) f(x, y) = 3x + 4y, c = (, ) (b) g(x, y) = y x, c = (, ) (c) g(x, y) = y x, c = (, ) (d) f(x, y, z) = log(x + y + z ), c = (,, ) (e) h(w, x, y, z) = w + x + 3y = z, c = (,,, ). For each of the following, find the equation of the plane tangent to the graph of f for the given point c. Plot the graph and the tangent plane together. (a) f(x, y) = 4x + y, c = (, ) (b) f(x, y) = 9 x y, c = (, ) (c) f(x, y) = 9 x y, c = (, ) (d) f(x, y) = 3y x, c = (, ) 3. Suppose A : R n R is the best affine approximation to f : R n R at c. Explain why f(c) h is a good approximation for f(c + h) f(c) when h is small. That is, explain why f(c) h is a good approximation for the error in approximating f(c+h) by f(c). 4. Suppose f : R 3 R is defined by f(x, y, z) = xyz. (a) Find the best affine approximation to f at (3,, 4). (b) Suppose x, y, and z represent the length, width, and height of a box. Suppose you measure the length to be 3 ± h centimeters, the width to be ± h centimeters, and the height to be 4 ± h centimeters. Use the best affine approximation from (a) to approximate the maximum error you would make in computing the volume of the box from these measurements. 5. A metal plate is heated so that its temperature at a point (x, y) is T (x, y) = 5y e 5 (x +y ). A bug moves along the ellipse parametrized by α(t) = (cos(t), sin(t)). Find the rate of change of temperature for the bug at times t =, t = π 4, and t = π. 6. Let x, y, and z be the length, width, and height, respectively, of a box. Suppose the box is increasing in size so that when x = 3 centimeters, y = centimeters, and z = 5 centimeters, the length is increasing at rate of centimeters per second, the width at a rate of 4 centimeters per second, and the height at a rate of 3 centimeters per second. (a) Find the rate of change of the volume of the box at this time. (b) Find the rate of change of the length of the diagonal of the box at this time.
154 4 Best Affine Approximations Section Suppose w = log(x + y + z ) and (x, y, z) = (4t, sin(t), cos(t). Find dw dt 8. The kinetic energy K of an object of mass m moving in a straight line with velocity v is K = mv. t= π 3 If, at time t = t, m = kilograms, v = 5 meters per second, m is decreasing at a rate of kilograms per second, and v is increasing at a rate of.5 meters per second per second, find dk. dt t=t 9. Each of the following equations specifies some curve in R. In each case, find an equation for the line tangent to the curve at the given point a. (a) x + y = 5, a = (, ) (b) x + 4y = 8, a = (, ) (c) y x =, a = (4, ) (d) y x = 5, a = (, 3). Each of the following equations specifies some surface in R 3. In each case, find an equation for the plane tangent to the surface at the given point a. (a) x + y + z = 4, a = (,, 3) (b) x + 3y + z = 9, a = (,, ) (c) x + y z =, a = (,, ) (d) xyz = 6, a = (,, 3). Suppose f : R R is differentiable at (a, b), f(a, b) = c, and y f(a, b). Let C be the level curve of f with equation f(x, y) = c. Show that f(a, b) y = x (x a) + b y f(a, b) is an equation for the line tangent to C at (a, b)..
155 The Calculus of Functions of Several Variables Section 3.4 Second-Order Approximations In one-variable calculus, Taylor polynomials provide a natural way to extend best affine approximations to higher-order polynomial approximations. It is possible to generalize these ideas to scalar-valued functions of two or more variables, but the theory rapidly becomes involved and technical. In this section we will be content merely to point the way with a discussion of second-degree Taylor polynomials. Even at this level, it is best to leave full explanations for a course in advanced calculus. Higher-order derivatives The first step is to introduce higher order derivatives. If f : R n R has partial derivatives which exist on an open set U, then, for any i =,, 3,..., n, f x i is itself a function from R n to R. The partial derivatives of f x i, if they exist, are called second-order partial derivatives f of f. We may denote the partial derivative of x i with respect to x j, j =,, 3,..., evaluated at a point x, by either x j x i f(x), or f xi x j (x), or D xi x j f(x). Note the order in which the variables are written; it is possible that differentiating first with respect to x i and second with respect x j will yield a different result than if the order were reversed. If j = i, we will write f(x) for x x i i x i f(x). It is, of course, possible to extend this notation to third, fourth, and higher-order derivatives. Example and so and Suppose f(x, y) = x y 3x sin(y). Then f x (x, y) = xy 3 sin(y) f y (x, y) = x 6x cos(y), f xx (x, y) = y, f xy (x, y) = x 6 cos(y), f yy (x, y) = x sin(y), f yx (x, y) = x 6 cos(y). Note that, in this example, f xy (x, y) = f yx (x, y). For an example of a third-order derivative, f yxy (x, y) = sin(y). Copyright c by Dan Sloughter
156 Second-Order Approximations Section 3.4 Example and Also, and so Suppose w = xy z 3 4xy log(z). Then, for example, w y x = ( ) w = y x y (y z 3 4y log(z)) = yz 3 4 log(z) w z = z w x y = x ( ) w = ( 3xy z 4xy ) = 6xy z + 4xy z z z z. ( ) w = y x (xyz3 4x log(z)) = yz 3 4 log(z), w y x = w x y. In both of our examples we have seen instances where mixed second partial derivatives, that is, second-order partial derivatives with respect to two different variables, taken in different orders are equal. This is not always the case, but does follow if we assume that both of the mixed partial derivatives in question are continuous. Definition We say a function f : R n R is C on an open set U if f xj x i is continuous on U for each i =,,..., n and j =,,..., n. Theorem If f is C on an open ball containing a point c, then for i =,,..., n and j =,,..., n. x j x i f(c) = x i x j f(c) Although we have the tools to verify this result, we will leave the justification for a more advanced course. We shall see that it is convenient to use a matrix to arrange the second partial derivatives of a function f. If f : R n R, there are n second partial derivatives and this matrix will be n n. Definition Suppose the second-order partial derivatives of f : R n R all exist at the point c. We call the n n matrix x f(c) f(c) f(c) f(c) x x x 3 x x n x f(c) x x x f(c) f(c) f(c) x 3 x x n x Hf(c) = f(c) f(c) x x 3 x x 3 x f(c) f(c) (3.4.) 3 x n x f(c) f(c) f(c) f(c) x x n x x n x 3 x n the Hessian of f at c. x n
157 Section 3.4 Second-Order Approximations 3 Put another way, the Hessian of f at c is the n n matrix whose ith row is f xi (c). Example Suppose f(x, y) = x y 3x sin(y). Then, using our results from above, [ ] [ ] fxx (x, y) f Hf(x, y) = xy (x, y) y x 6 cos(y) =. f yx (x, y) f yy (x, y) x 6 cos(y) x sin(y) Thus, for example, Hf(, ) = [ ]. Suppose f : R n R is C on an open ball B (c, r) and let h = (h, h ) be a point with h < r. If we define ϕ : R R by ϕ(t) = f(c + th), then ϕ() = f(c) and ϕ() = f(c+h). From the one-variable calculus version of Taylor s theorem, we know that ϕ() = ϕ() + ϕ () + ϕ (s), (3.4.) where s is a real number between and. Using the chain rule, we have ϕ (t) = f(c + th) d dt (c + th) = f(c + th) h = f x(c + th)h + f y (c + th)h (3.4.3) and where we have used the notation and ϕ (t) = h f x (c + th) h + h f y (c + th) h = (h f x (c + th) + h f y (c + th) h [ ] [ ] fxx (c = th) f = [ h h ] xy (c + th) h f yx (c + th) f yy (c + th) = h T Hf(c + th)h, (3.4.4) h = [ h h ] h T = [ h h ], the latter being called the transpose of h (see Problem of Section.6). Hence ϕ () = f(c) h (3.4.5) h and ϕ (s) = ht Hf(c + sh)h, (3.4.6) so, substituting into (3.4.), we have f(c + h) = ϕ() = f(c) + f(c) h + ht Hf(c + sh)h. (3.4.7) This result, a version of Taylor s theorem, is easily generalized to higher dimensions.
158 4 Second-Order Approximations Section 3.4 Theorem Suppose f : R n R is C on an open ball B n (c, r) and let h be a point with h < r. Then there exists a real number s between and such that f(c + h) = f(c) + f(c) h + ht Hf(c + sh)h. (3.4.8) If we let x = c + h and evaluate the Hessian at c, (3.4.8) becomes a polynomial approximation for f. Definition If f : R n R is C on an open ball about the point c, then we call P (x) = f(c) + f(c) (x c) + (x c)t Hf(c)(x c) (3.4.9) the second-order Taylor polynomial for f at c. Example compute and To find the second-order Taylor polynomial for f(x, y) = e x+y at (, ), we from which it follows that and Then f(x, y) = ( e x+y, e x+y ) [ 4e x+y e Hf(x, y) = x+y e x+y f(, ) = (, ) Hf(, ) = e x+y [ ] 4. P (x, y) = f(, ) + f(, ) (x, y) + [ ] x [ x y ] Hf(, ) y = + (, ) (x, y) + [ ] [ ] 4 x [ x y ] y = x + y = [ ] 4x y [ x y ] x + y = x + y + (4x xy xy + y ) = x + y + x xy + y. ], Symmetric matrices Note that if f : R R is C on an open ball about the point c, then the entry in the ith row and jth column of Hf(c) is equal to the entry in the jth row and ith column of Hf(c) since x j x i f(c) = x i x j f(c).
159 Section 3.4 Second-Order Approximations 5 Definition We call a matrix M = [a ij ] with the property that a ij = a ji for all i j a symmetric matrix. Example The matrices [ ] 5 and are both symmetric, while the matrices and are not symmetric. [ ] Example The Hessian of any C scalar valued function is a symmetric matrix. For example, the Hessian of f(x, y) = e x+y, namely, is symmetric for any value of (x, y). [ 4e x+y e Hf(x, y) = x+y e x+y e x+y Given an n n symmetric matrix M, the function q : R n R defined by q(x) = x T Mx is a quadratic polynomial. When M is the Hessian of some function f, this is the form of the quadratic term in the second-order Taylor polynomial for f. In the next section it will be important to be able to determine when this term is positive for all x or negative for all x. ], Definition Let M be an n n symmetric matrix and define q : R n R by q(x) = x T Mx. We say M is positive definite if q(x) > for all x in R n, negative definite if q(x) < for all x in R n, and indefinite if there exists an x for which q(x) > and an x for which q(x) <. Otherwise, we say M is nondefinite.
160 6 Second-Order Approximations Section 3.4 In general it is not easy to determine to which of these categories a given symmetric matrix belongs. However, the important special case of matrices is straightforward. Consider [ ] a b M = b c and let q(x, y) = [ x y ] M If a, then we may complete the square in (3.4.) to obtain ( q(x, y) = a x + b ) a xy + cy ( ( = a x + b ) ) a y b a y + cy ( = a x + b ) a y + = a (x + ba ) y + ( = a [ ] x = ax + bxy + cy. (3.4.) y ( c b a ac b y a ) y x + b ) a y + det(m) y (3.4.). a Now suppose det(m) >. Then from (3.4.) we see that q(x, y) > for all (x, y) (, ) if a > and q(x, y) < for all (x, y) (, ) if a <. That is, M is positive definite if a > and negative definite if a <. If det(m) <, then q(, ) and q ( b a, ) will have opposite signs, and so M is indefinite. Finally, suppose det(m) =. Then ( q(x, y) = a x + b ) a y, so q(x, y) = when x = b ay. Moreover, q(x, y) has the same sign as a for all other values of (x, y). Hence in this case M is nondefinite. Similar analyses for the case a = give us the following result. Theorem Suppose [ ] a b M =. b c If det(m) >, then M is positive definite if a > and negative definite if a <. det(m) <, then M is indefinite. If det(m) =, then M is nondefinite. Example The matrix M = [ ] 3 is positive definite since det(m) = 5 > and >. If
161 Section 3.4 Second-Order Approximations 7 Example The matrix M = [ ] 4 is negative definite since det(m) = 7 > and <. Example The matrix M = [ ] 3 is indefinite since det(m) = 7 <. Example The matrix M = [ ] 4 is nondefinite since det(m) =. In the next section we will see how these ideas help us identify local extreme values for scalar valued functions of two variables. Problems. Let f(x, y) = x 3 y 4x e 3y. Find the following. (a) x y f(x, y) (b) f(x, y) y x (c) x f(x, y) (d) 3 f(x, y) x y x (e) 3 x y f(x, y) (f) 3 f(x, y) y3 (g) f yy (x, y) (h) f yxy (x, y) xy. Let f(x, y, z) = x + y. Find the following. + z (a) z x f(x, y, z) (b) f(x, y, z) y z (c) z f(x, y, z) (d) 3 f(x, y, z) x y z (e) f zyx (x, y, z) (f) f yyy (x, y, z) 3. Find the Hessian of each of the following functions. (a) f(x, y) = 3x y 4xy 3 (b) g(x, y) = 4e x cos(3y) (c) g(x, y, z) = 4xy z 3 (d) f(x, y, z) = log(x + y + z ) 4. Find the second-order Taylor polynomial for each of the following at the point c. (a) f(x, y) = xe y, c = (, ) (b) g(x, y) = x sin(x + y), c = (, )
162 8 Second-Order Approximations Section 3.4 (c) f(x, y) = x + y, c = (, ) (d) g(x, y, z) = ex y+3z, c = (,, ) 5. Classify each of the following symmetric matrices as either positive definite, negative definite, indefinite, or nondefinite. [ ] [ ] 3 (a) (b) 4 [ ] [ ] 3 (c) (d) 3 5 [ ] [ ] 8 4 (e) (f) 4 6. Let M be an n n symmetric nondefinite matrix and define q : R n R by q(x) = x T Mx. Explain why () there exists a vector a such that q(a) = and () either q(x) for all x in R n or q(x) for all x in R n. 7. Suppose f : R n R is C on an open ball B n (c, r), f(c) =, and Hf(x) is positive definite for all x in B n (c, r). Show that f(c) < f(x) for all x in B n (c, r). What would happen if Hf(x) were negative definite for all x in B n (c, r)? What does this say in the case n =? 8. Let (a) Show that f x (, y) = y for all y. (b) Show that f y (x, ) = x for all x. (c) Show that f yx (, ) f xy (, ). (d) Is f C? xy(x y ) f(x, y) = x + y, if (x, y) (, ),, if (x, y) = (, ).
163 The Calculus of Functions of Several Variables Section 3.5 Extreme Values After a few preliminary results and definitions, we will apply our work from the previous sections to the problem of finding maximum and minimum values of scalar-valued functions of several variables. The story here parallels to a great extent the story from one-variable calculus, with the inevitable twists and turns due to the presence of additional variables. We will begin with a definition very similar to the analogous definition for functions of a single variable. The Extreme Value Theorem Definition Suppose f : R n R is defined on a set S. We say f has a maximum value of M at c if f(c) = M and M f(x) for all x in S. We say f has a minimum value of m at c if f(c) = m and m f(x) for all x in S. The maximum and minimum values of the previous definition are sometimes referred to as global maximum and minimum values in order to distinguish them from the local maximum and minimum values of the next definition. Definition Suppose f : R n R is defined on a open set U. We say f has a local maximum value of M at c if f(c) = M and M f(x) for all x in B n (c, r) for some r >. We say f has a local minimum value of m at c if f(c) = m and m f(x) for all x in B n (c, r) for some r >. We will say extreme value, or global extreme value, when referring to a value of f which is either a global maximum or a global minimum value, and local extreme value when referring to a value which is either a local maximum or a local minimum value. In one-variable calculus, the Extreme Value Theorem, the statement that every continuous function on a finite closed interval has a maximum and a minimum value, was extremely useful in searching for extreme values. There is a similar result for our current situation, but first we need the following definition. Definition We say a set S in R n is bounded if there exists an r > such that S is contained in the open ball B n (, r). Equivalently, a set S is bounded as long as there is a fixed distance r such that no point in S is farther away from the origin than r. Example Example is not bounded. Any open or closed ball in R n is a bounded set. The infinite rectangle {(x, y) : < x < 3, < y < } Copyright c by Dan Sloughter
164 Extreme Values Section 3.5 Extreme Value Theorem Suppose f : R n R is continuous on an open set U. If S is a closed and bounded subset of U, than f has a maximum value and a minimum value on S. We leave the justification of this theorem for a more advanced course. Our work now is to find criteria for locating candidates for points where local extreme values might occur, and then to classify these points once we have found them. To begin, suppose we know f : R n R is differentiable on an open set U and that it has a local extreme value at c. Then for any unit vector u, the function g : R R defined by g(t) = f(c + tu) must have an extreme value at t =. Hence, from a result in one-variable calculus, we must have = g () = D u f(c) = f(c) u. Since u was an arbitrary unit vector in R n, we have, in particular, = f(c) e k = x i f(c) for i =,,, n. That is, we must have f(c) =. Note that, by itself, f(c) = only says that the slope of the graph of f is in the direction of the standard basis vectors, but this in fact implies that the slope is in all directions because D u f(c) = f(c) u for any unit vector u. Theorem If f : R n R is differentiable on an open set U and has a local extreme value at c, then f(c) =. Definition If f : R n R is differentiable at c and f(c) =, then we call c a critical point of f. We call a point c at which f is not differentiable a singular point of f. Recall that to find the extreme values of a continuous function f : R R on a closed interval, we need only to evaluate f at all critical and singular points inside the interval as well as at the endpoints of the interval, and then inspect these values to identify the largest and smallest. The story is similar in the situation of a function f : R n R which is defined on a closed and bounded set S and is continuous on some open set containing S, except instead of having endpoints to consider, we have the entire boundary of S to consider. Definition Let S be a set in R n. We call a point a in R n a boundary point of S if for every r >, the open ball B n (a, r) contains both points in S and points outside of S. We call the set of all boundary points of S the boundary of S. Example The boundary of the closed set B ((, ), 3) = {(x, y) : x + y 9} is the circle Example S ((, ), 3) = {(x, y) : x + y = 9}. In general, the boundary of the closed ball Bn (a, r) is the sphere S n (a, r).
165 Section 3.5 Extreme Values 3 Example The boundary of the closed rectangle R = {(x, y) : x 3, y 5} consists of the line segments from (, ) to (3, ), (3, ) to (3, 5), (3, 5) to (, 5), and (, 5) to (, ). Example Suppose we wish to find the global extreme values for the function f(x, y) = x + y on the closed set D = {(x, y) : x + 4y 4}. We first find all the critical and singular points. Now so if and only if f(x, y) = (x, y), f(x, y) = (, ) x =, y =. Hence the only critical point is (, ). There are no singular points, but we must consider the boundary of S, the ellipse Now we may use B = {(x, y) : x + 4y = 4}. ϕ(t) = ( cos(t), sin(t)), t π, to parametrize B. It follows that any extreme value of f occurring on B will also be an extreme value of on the closed interval [, π]. Now g(t) = f(ϕ(t)) = f( cos(t), sin(t)) = 4 cos (t) + sin (t) = 4 cos (t) + ( cos (t)) = 3 cos (t) + g (t) = 6 cos(t) sin(t), so the critical points of g occur at points t in (, π) where either cos(t) = or sin(t) =. Hence the critical points of g are t = π, t = π, and t = 3π. Moreover, we need to consider the endpoints t = and t = π. Hence we have four more candidates for the location
166 4 Extreme Values Section 3.5 y x 4 3 z Figure 3.5. Graph of f(x, y) = x + y on D = {(x, y) : x + 4y 4} of extreme values, namely, ϕ() = ϕ(π) = (, ), ϕ ( ) π = (, ), ϕ(π) = (, ), and ϕ ( ) 3π = (, ). Evaluating f at these five points, we have and f(, ) =, f(, ) = 4, f(, ) =, f(, ) = 4, f(, ) =. Comparing these values, we see that f has a maximum value of 4 at (, ) and (, ) and a minimum value of at (, ). See Figure 3.5. for the graph of f on the set D. As the previous example shows, dealing with the boundary of a region can require a significant amount of work. In this example we were helped by the fact that the boundary was one-dimensional and was easily parametrized. This is not always the case. For example, the boundary of the closed ball B3 ((,, ), ) in R 3 is the sphere S ((,, ), ) with equation x + y + z =, a two-dimensional surface. We shall see in Chapter 4 that it is possible to parametrize such surfaces, but that would still leave us with a two-dimensional problem. We will return to
167 Section 3.5 Extreme Values 5 this problem later in this section when we present a much more elegant solution based on our knowledge of level sets and gradient vectors. Finding local extrema For now we will turn our attention to identifying local extreme values. Recall from onevariable calculus that one of the most useful ways to identify a local extreme value is through the second derivative test. That is, if c is a critical point of ϕ : R R, then ϕ (c) > implies that ϕ has a local minimum at c and ϕ (c) < implies ϕ has a local maximum at c. Taylor s theorem provides an easy way to see why this is so. For example, suppose c is a critical point of ϕ, ϕ is continuous on an open interval containing c, and ϕ (c) >. Then there is an interval I = (c r, c + r), r >, such that ϕ is continuous on I and ϕ (t) > for all t in I. By Taylor s theorem, for any h with h < r, there is a number s between c and c + h such that ϕ(c + h) = ϕ(c) + ϕ (c)h + ϕ (s)h = ϕ(c) + ϕ (c)h > ϕ(c), (3.5.) where we have used the fact that ϕ (c) = since c is a critical point of ϕ. Hence ϕ(c) is a local minimum value of ϕ. Similar considerations lead to a second derivative test for a function f : R n R. Suppose c is a critical point of f, f is C on an open set containing c, and Hf(c) is positive definite. Let B n (c, r), r >, be an open ball on which f is C and Hf(c) is positive definite. Then, by the version of Taylor s theorem in Section 3.4, for any h with h < r, there is a number s between and such that f(c+h) = f(c)+ f(c) h+ ht Hf(c+sh)h = f(c)+ ht Hf(c+sh)h > f(c), (3.5.) where f(c) = since c is a critical point of f, and the final inequality follows from the assumption that Hf(x) is positive definite for x in B n (c, r). Hence f(c) is a local minimum value of f. The same argument shows that if Hf(c) is negative definite, then f(c) is a local maximum value of f. If Hf(c) is indefinite, then there will be arbitrarily small h for which ht Hf(c + sh)h > and arbitrarily small h for which ht Hf(c + sh)h <. Hence there will be arbitrarily small h for which f(c + h) > f(c) and arbitrarily small h for which f(c + h) < f(c). In this case, f(c) is neither a local minimum nor a local maximum. In this case, we call c a saddle point. Finally, if Hf(c) is nondefinite, then we do not have enough information to classify the critical point. We may now state the second derivative test.
168 6 Extreme Values Section 3.5 Second derivative test Suppose f : R n R is C on an open set U. If c is a critical point of f in U, then f(c)is a local minimum value of f if Hf(c) is positive definite, f(c) is a local maximum value of f if Hf(c) is negative definite, and c is a saddle point if Hf(c) is indefinite. If Hf(c) is nondefinite, then more information is needed in order to classify c. The next example gives an indication for the source of the term saddle point. Example To find the local extreme values of f(x, y) = x y, we begin by finding f(x, y) = (x, y). Now if and only if f(x, y) = (, ) x =, y =, which occurs if and only if x = and y =. Thus f has the single critical point (, ). Now [ ] Hf(x, y) =, so Hf(, ) = [ ]. Thus det(hf(, )) = ()( ) = 4 <. Hence Hf(, ) is indefinite and so, by the second derivative test, (, ) is a saddle point. Looking at the graph of f in Figure 3.5., we can see the reason for this: since f(x, ) = x and f(, y) = y, the slice of the graph of f above the x-axis is a parabola opening upward while the slice of the graph of f above the y-axis is a parabola opening downward. Example Consider f(x, y) = xye (x +y ). Then Hence, since e (x +y ) > for all (x, y), f(x, y) = e (x +y ) (y x y, x xy ). f(x, y) = (, ) if and only if y x y =, x xy =,
169 Section 3.5 Extreme Values y - - x z - -4 Figure 3.5. Graph of f(x, y) = x y which occurs if and only if y( x ) =, x( y ) =. Now the first equation is satisfied if either y = or x =. If y =, then the second equation becomes x =, so (, ) is a critical point. If x =, then either x = or x =. For either of these values of x, the second equation is satisfied if and only if y =, that is, y = or y =. Hence we have four more critical points: ( ( ( (, ),, ),, ), and, ). Now [ Hf(x, y) = e (x +y ) 4x 3 y 6xy 4x y x y + 4x y x y + 4y 3 x 6xy ], so Hf Hf(, ) = (, ) ( = Hf, [ ], ) [ = e ],
170 8 Extreme Values Section 3.5. z x - - y Figure Graph of f(x, y) = xye (x +y ) and Since and Hf ( ) (, = Hf, ) [ ] = e. [ ] det = <, [ ] e det e = 4e >, [ e det e are negative defi- we see that Hf(, ) is indefinite, Hf ( ) nite, and Hf, and Hf ] = 4e >, ( ), and Hf ( ), ( ), are positive definite. Thus (, ) is a saddle ( ) ( point of f, f has local maximums of e at both, and, ), and local ( ) ( minimums of e at, and, ).See Figure Finding global extrema The graph of f(x, y) = xye (x +y ) in Figure suggests that local extreme values found in the previous example are in fact global extreme values for f on all of R. We may verify that this in fact the case as follows. First note that, since lim r r e r =,
171 Section 3.5 Extreme Values 9 we may choose R large enough so that r e r < e whenever r R. Now for any point (x, y) with (x, y) = r R we have f(x, y) = xye (x +y ) = x y e (x +y ) r e r < e. Hence f(x, y) is between e and e for all points (x, y) outside of the closed disk D = B ((, ), R). Moreover, since f(x, y) is between e and e for all points (x, y) on the boundary of D, f has a minimum value of e and a maximum value of e on D. Hence these values are actually the global extreme values of f on all of R. Example A farmer wishes to build a rectangular storage bin, without a top, with a volume of 5 cubic meters using the least amount of material possible. If we let x and y be the dimensions of the base of the bin and z be the height, all measured in meters, then the farmer wishes to minimize the surface area of the bin, given by subject to the constraint on the volume, namely, S = xy + xz + yz, (3.5.3) 5 = xyz. Solving for z in the latter expression and substituting in to (3.5.3), we have S = xy + x ( ) 5 + y xy ( ) 5 = xy + + xy y x. This is the function we need to minimize on the infinite open rectangle Now and R = {(x, y) : x >, y > }. S x = y x S y = x y so to find the critical points of S we need to solve y x =, x y =.
172 Extreme Values Section 3.5 Solving for y in the first of these, we have y = x, which, when substituted into the second, gives us Hence we want x x4 =. ) x ( x3 =, from which it follows that either x = or x =. Since the first of these will not give us a point in R, we have x = and Thus the only critical point is (, ). Now so Thus y = =. HS(x, y) = x 3 HS(, ) = y 3 [ ]. det(hs(, )) = 3, and so HS(, ) is positive definite. This shows that S has a local minimum of, S x=,y= = ()() + + = 3 at (x, y) = (, ). To show that this is actually the global minimum value of S, we proceed as follows. Let D be the closed rectangle D = {(x, y) : x 4, y 4}. Now if < x, then x, and so S > 3. Similarly, if < y, then S > 3. Moreover, if x 4 and y, then xy 4, and so S > 3. Similarly, if y 4 and x, then S > 3. Hence S > 3 for all (x, y) outside of D and for all (x, y) on the boundary of D. Hence S has a
173 Section 3.5 Extreme Values 5 y z 5 35 x 5 3 Figure Graph of S = xy + x + y global minimum of 3 on D, which, from the preceding observations, must in fact be the global minimum of S on all of R. See the graph of S in Figure Finally, when x = and y =, we have z = 5 ()() = 5, so the farmer should build her bin to have a base of meters by meters and a height of 5 meters. Lagrange multipliers This last example has much in common with our first example in that they both involve finding extreme values of a function restricted to a lower-dimensional subset. In our first example, we had to find the extreme values of f(x, y) = x + y restricted to the onedimensional ellipse with equation x + 4y = 4; in the example we just finished, we had to find the minimum value of S = xy + xz + yz, a function of three variables, restricted to the two-dimensional surface defined by the equation xyz = 5. Although they were
174 Extreme Values Section 3.5 similar, we approached these problems somewhat differently. In the first, we parametrized the ellipse and then maximized the composition of f with this parametrization; in the latter, we solved for z in terms of x and y and then substituted into the formula for S to make S effectively a function of two variables. Now we will describe a general approach which applies to both situations. Often, but not always, this method is easier to apply then the other two techniques. In practice, one tries to select the method that will yield an answer with the least resistance. For the general case, consider two differentiable functions, f : R n R and g : R n R, and suppose we wish to find the extreme values of f on the level set S of g determined by the constraint g(x) =. If f has an extreme value at a point c on S, then f(c) must be an extreme value of f along any curve passing through c. Thus if ϕ : R R n parametrizes a curve in S with ϕ(b) = c, then the function h(t) = f(ϕ(t)) has an extreme value at b. Hence = h (b) = f(ϕ(b)) Dϕ(b) = f(c) Dϕ(b). (3.5.4) Since (3.5.4) holds for any curve in S through c and Dϕ(b) is tangent to the given curve at c, it follows that f(c) is orthogonal to the tangent hyperplane to S at c. But S is a level set of g, so we know from our work in Section 3.3 that the vector g(c), provided it is nonzero, is a normal vector for the tangent hyperplane to S at c. Hence f(c) and g(c) must be parallel. That is, there must exist a scalar λ such that f(c) = λ f(c). (3.5.5) The idea now is that in looking for extreme values, we need only consider points c for which both g(c) = and f(c) = λ g(c) for some scalar λ. The scalar λ is known as a Lagrange multiplier, and this method for finding extreme values subject to a constraining equation is known as the method of Lagrange multipliers. Example Suppose that the temperature at a point (x, y, z) on the unit sphere S = S ((,, ), ) is given by T (x, y, z) = 3 + 5(x + z). To find the extreme values of T, we first define g(x, y, z) = x + y + z, thus making S the level surface of g specified by g(x, y, z) =. Now f(x, y, z) = (5,, 5) and g(x, y, z) = (x, y, z). The candidates for the locations of extreme values will be solutions of the equations f(x, y, z) = λg(x, y, z), g(x, y, z) =,
175 Section 3.5 Extreme Values 3 that is, (5,, 5) = λ(x, y, z), x + y + z =. Hence we need to solve the following system of four equation in four unknowns: 5 = λx, = λy, 5 = λz, x + y + z =. Now 5 = λx implies that λ, and so = λy implies that y =. Moreover, 5 = λx and 5 = λz imply that λx = λz, from which it follows, since λ, that x = z. Substituting these results into the final equation, we have = x + y + z = x + + x = x. Thus x = or x =, and we have two solutions for our equations, (,, ) and ( ),, At this point, since T is continuous and S is closed and bounded, we need only evaluate T at these points and compare their values. Now ( T,, ) = 3 5 =.93 and T ( ),, = = 37.7, where the final values have been rounded ( to) two decimal places, so the maximum temperature on the sphere is 37.7 at,, and the minimum temperature is.93 at (,, ). Example Suppose the farmer in our earlier example is faced with the opposite problem: Given 3 square meters of material, what are the dimensions of the rectangular bin, without a top, that holds the largest volume? If we again let x and y be the dimensions of the base of the bin and z be its height, then we want to maximize V = xyz
176 4 Extreme Values Section 3.5 on the region where x >, y >, and z >, subject to the constraint that xy + xz + yz = 3. If we let g(x, y, z) = xy + xz + yz 3, then our problem is to maximize V subject to the constraint g(x, y, z) =. Now V = (yz, xz, xy) and g(x, y, z) = (y + z, x + z, x + y), so the system of equations V = λ g(x, y, z), g(x, y, z) =, becomes the system Equations (3.5.6) and (3.5.7) imply that yz = λ(y + z), (3.5.6) xz = λ(x + z), (3.5.7) xy = λ(x + y), (3.5.8) xy+xz + yz = 3. (3.5.9) λ = yx y + z and so that is, Hence λ = yz y + z = y y + z = xz x + z, xz x + z, x x + z. xy + yz = xy + xz. Thus yz = xz, so x = y. Substituting this result into (3.5.8) gives us x = 4λx, from which it follows that x = 4λ. Substituting into (3.5.7), we have 4λz = λ(4λ + z) = 4λ + λz.
177 Section 3.5 Extreme Values 5 Hence λz = 4λ, so z = λ. Putting x = 4λ, y = 4λ, and z = λ into (3.5.9) yields the equation 6λ + 6λ + 6λ = 3. Thus 48λ = 3, so 3 5 λ = ± 48 = ± 4 = ±5. Now x, y, and z are all positive, so we must have λ = 5, giving us x =, y =, and z = 5. To show that we have the location of the maximum value of V, let S = {(x, y, z) : g(x, y, z) =, x >, y >, z > } and let D be that part of S for which x 5, y 5, and z 5. Note that if (x, y, z) lies on S, then 3 = xy + xz + yz and so xy 3, xz 5, and yz 5. Moreover, z = 3 xy x + y. Now if either x 5 or y 5, then so If x, and, similarly, if y, z 3 3, V = xyz (3)() = 3. V = xyz ()(5) = 5 V = yxz ()(5) = 5. Thus if (x, y, z) is either on the boundary of D or outside of D, then V 3. Since V (x,y,z)=(,,5) = 5, it follows that the global maximum of V on S must occur inside D. In fact, this maximum value must be 5 cubic meters, occurring when x = meters, y = meters, and z = 5 meters. Problems. Find the maximum and minimum values of f(x, y) = xy on the set D = {(x, y) : x + y }.
178 6 Extreme Values Section 3.5. Find the maximum and minimum values of f(x, y) = 8 x y on the set D = {(x, y) : x + 9y 9}. 3. Find the maximum and minimum values of f(x, y) = x + 3xy + y on the set D = {(x, y) : x + y 4}. 4. Find all local extreme values of f(x, y) = xe (x +y ). 5. Find all local extreme values of g(x, y) = x e (x +y ). 6. Find all local extreme values of g(x, y) = + x + y. 7. Find all local extreme values of f(x, y) = 4xy x y Find all local extreme values of h(x, y) = x 4 + y 4 x y. 9. Find all local extreme values of f(x, y, z) = x + y + z.. Find all local extreme values of g(x, y, z) = x + y z.. A farmer wishes to build a rectangular bin, with a top, to hold a volume of cubic meters. Find the dimensions of the bin that will minimize the amount of material needed in its construction.. A farmer wishes to build a rectangular bin, with a top, using 6 square meters of material. Find the dimensions of the bin that will maximize the volume. 3. Find the extreme values of f(x, y, z) = x + y + z on the sphere with equation x + y + z =. 4. Find the minimum distance in R from the origin to the line with equation 3x+y = Find the minimum distance in R 3 from the origin to the plane with equation x + 4y + z = Find the minimum distance in R from the origin to the curve with equation xy =. 7. The ellipsoid with equation x + y + z = 4 is heated so that its temperature at (x, y, z) is given by T (x, y, z) = 7 + (x z). Find the hottest and coldest points on the ellipsoid. 8. Suppose an airline requires that the sum of the length, width, and height of carry-on luggage cannot exceed 45 inches (assuming the luggage is in the shape of a rectangular box). Find the dimensions of a piece of carry-on luggage that has the maximum volume. 9. Let f(x, y) = (y 4x )(y x ). (a) Verify that (, ) is a critical point of f. (b) Show that Hf(, ) is nondefinite. (c) Show that along any line through the origin, f has a local minimum at (, ). (d) Find a curve through the origin such that, along the curve, f has a local maximum at (, ). Note that this shows that (, ) is a saddle point.
179 Section 3.5 Extreme Values 7. Let f(x, y) = (x y). Find all critical points of f and categorize them according as they are either saddle points or the location of local extreme values. Is the second derivative test useful in this case?. Let g(x, y) = sin(x + y ). Find all critical points of g. Which critical points are the location of local maximums? Local minimums? Are there any saddle points?. What does a plot of the gradient vectors look like around a saddle point of a function f : R R? You might look at some examples, like f(x, y) = x y, f(x, y) = xy, or even f(x, y) = xye (x +y ). 3. Given n points (x, y ), (x, y ),..., (x n, y n ) in R, the line with equation y = mx + b which minimizes n L(m, b) = (y (mx i + b)) is called the least squares line. i= (a) Give a geometric interpretation for L(m, b). (b) Show that the parameters of the least squares line are m = n ( n n ) ( n ) x i y i x i y i i= n i= i= ( n n ) x i x i i= i= and b = ȳ m x, where and ȳ = n x = n n i= y i n x i. i= 4. The following table is taken from a report prepared in the 96 s to study the effect of leaks of radioactive waste from storage bins at the nuclear facilities at Hanford, Washington, on the cancer rates in nine Oregon counties which border the Columbia River. The table gives an index of exposure, which takes into account such things as distance from the Hanford facilities and the distance of the population from the river, along with the cancer mortality rate per, people.
180 8 Extreme Values Section 3.5 County Index of Exposure Cancer Mortality Rate Umatilla Morrow Gilliam Sherman Wasco Hood River Portland Columbia Clatsop Using Problem, find the least squares line for this data (let the index of exposure be the x data). Plot the points along with the line.
181 The Calculus of Functions of Several Variables Section 3.6 Definite Integrals We will first define the definite integral for a function f : R R and later indicate how the definition may be extended to functions of three or more variables. Cartesian products We will find the following notation useful. Given two sets of real numbers A and B, we define the Cartesian product of A and B to be the set For example, if A = {,, 3} and B = {5, 6}, then A B = {(x, y) : x A, y B}. (3.6.) A B = {(, 5), (, 6), (, 5), (, 6), (3, 5), (3, 6)}. In particular, if a < b, c < d, A = [a, b], and B = [c, d], then A B = [a, b] [c, d] is the closed rectangle {(x, y) : a x b, c y d}, as shown in Figure d c a b Figure 3.6. The closed rectangle [a, b] [c, d] More generally, given real numbers a i < b i, i =,, 3,..., n, we may write [a, b ] [a, b ] [a n, b n ] Copyright c by Dan Sloughter
182 Definite Integrals Section 3.6 for the closed rectangle and for the open rectangle Definite integrals on rectangles Given a < b and c < d, let {(x, x,..., x n ) : a i x i b i, i =,,..., n} (a, b ) (a, b ) (a n, b n ) {(x, x,..., x n ) : a i < x i < b i, i =,,..., n}. D = [a, b] [c, d] and suppose f : R R is defined on all of D. Moreover, we suppose f is bounded on D, that is, there exist constants m and M such that m f(x, y) M for all (x, y) in D. In particular, the Extreme Value Theorem implies that f is bounded on D if f is continuous on D. Our definition of the definite integral of f over the rectangle D will follow the definition from one-variable calculus. Given positive integers m and n, we let P be a partition of [a, b] into m intervals, that is, a set P = {x, x,..., x m } where a = x < x < < x m = b, (3.6.) and we let Q be a partition of [c, d] into n intervals, that is, a set Q = {y, y,..., y n } where a = y < y < < y n = b. (3.6.3) We will let P Q denote the partition of D into mn rectangles D ij = [x i, x i ] [y j, y j ], (3.6.4) where i =,,..., m and j =,,..., n. Note that D ij has area x i y j, where and An example is shown in Figure x i = x i x i (3.6.5) y j = y j y j. (3.6.6) d D 4 c a b Figure 3.6. A partition of a rectangle [a, b] [c, d]
183 Section 3.6 Definite Integrals 3 Now let m ij be the largest real number with the property that m ij f(x, y) for all (x, y) in D ij and M ij be the smallest real number with the property that f(x, y) M ij for all (x, y) in D ij. Note that if f is continuous on D, then m ij is simply the minimum value of f on D ij and M ij is the maximum value of f on D ij, both of which are guaranteed to exist by the Extreme Value Theorem. If f is not continuous, our assumption that f is bounded nevertheless guarantees the existence of the m ij and M ij, although the justification for this statement lies beyond the scope of this book. We may now define the lower sum, L(f, P Q), for f with respect to the partition P Q by m n L(f, P Q) = m ij x i y j (3.6.7) i= j= and the upper sum, U(f, P Q), for f with respect to the partition P Q by U(f, P Q) = m i= j= n M ij x i y j. (3.6.8) Geometrically, if f(x, y) for all (x, y) in D and V is the volume of the region which lies beneath the graph of f and above the rectangle D, then L(f, P Q) and U(f, P Q) represent lower and upper bounds, respectively, for V. (See Figure for an example of one term of a lower sum). Moreover, we should expect that these bounds can be made arbitrarily close to V using sufficiently fine partitions P and Q. In part this implies that we may characterize V as the only real number which lies between L(f, P Q) and U(f, P Q) for all choices of partitions P and Q. This is the basis for the following definition. Definition Suppose f : R R is bounded on the rectangle D = [a, b] [c, d]. With the notation as above, we say f is integrable on D if there exists a unique real number I such that L(f, P Q) I U(f, P Q) (3.6.9) for all partitions P of [a, b] and Q of [c, d]. If f is integrable on D, we call I the definite integral of f on D, which we denote I = D f(x, y)dxdy. (3.6.) Geometrically, if f(x, y) for all (x, y) in D, we may think of the definite integral of f on D as the volume of the region in R 3 which lies beneath the graph of f and above the rectangle D. Other interpretations include total mass of the rectangle D (if f(x, y) represents the density of mass at the point (x, y)) and total electric charge of the rectangle D (if f(x, y) represents the charge density at the point (x, y)). Example Suppose f(x, y) = x + y and D = [, ] [, 3]. If we let P = {,, }
184 4 Definite Integrals Section 3.6 y 3 x 7.5 z 5.5 Figure Graph of f(x, y) = x + y showing one term of a lower sum and Q = {,,, 3}, then the minimum value of f on each rectangle of the partition P Q occurs at the lower left-hand corner of the rectangle and the maximum value of f occurs at the upper righthand corner of the rectangle. See Figure for a picture of one term of the lower sum. Hence L(f, P Q) = f(, ) ( ) + f, + f(, ) ( ) + f, + f(, ) ( ) + f, = = 43 8 = and U(f, P Q) = f ( ), + f(, ) ( ) + f, + f(, ) + f (, 3 ) + f(, 3)
185 Section 3.6 Definite Integrals 5 = = 7 8 = We will see below that the continuity of f implies that f is integrable on D, so we may conclude that (x + y )dxdy Example Suppose k is a constant and f(x, y) = k for all (x, y) in the rectangle D = [a, b] [c, d]. The for any partitions P = {x, x,..., x m } of [a, b] and Q = {y, y,..., y n } of [c, d], m ij = k = M ij for i =,,..., m and j =,,..., n. Hence L(f, P Q) = U(f, P Q) m n = k x i y j = k Hence f is integrable and f(x, y)dxdy = D i= j= m i= j= n x i y j = k (area of D) = k(b a)(d c). D kdxdy = k(b a)(d c). Of course, geometrically this result is saying that the volume of a box with height k and base D is k times the area of D. In particular, if k = we see that dxdy = area of D. D Example If D = [, ] [, 3], then 5dxdy = 5( )(3 + ) =. D The properties of the definite integral stated in the following proposition follow easily from the definition, although we will omit the somewhat technical details. Proposition Suppose f : R R and g : R R are both integrable on the rectangle D = [a, b] [c, d] and k is a scalar constant. Then (f(x, y) + g(x, y))dxdy = f(x, y)dxdy + g(x, y)dxdy, (3.6.) D D D
186 6 Definite Integrals Section 3.6 kf(x, y)dxdy = k f(x, y)dxdy, (3.6.) and, if f(x, y) g(x, y) for all (x, y) in D, D D f(x, y)dxdy D D g(x, y)dxdy. (3.6.3) Our definition does not provide a practical method for determining whether a given function is integrable or not. A complete characterization of integrability is beyond the scope of this text, but we shall find one simple condition very useful: if f is continuous on an open set containing the rectangle D, then f is integrable on D. Although we will not attempt a full proof of this result, the outline is as follows. If f is continuous on D = [a, b] [c, d] and we are given any ɛ >, then it is possible to find partitions P of [a, b] and Q of [c, d] sufficiently fine to guarantee that if (x, y) and (u, v) are points in the same rectangle D ij of the partition P Q of D, then f(x, y) f(u, v) < ɛ (b a)(d c). (3.6.4) (Note that this is not a direct consequence of the continuity of f, but follows from a slightly deeper property of continuous functions on closed bounded sets known as uniform continuity.) It follows that if m ij is the minimum value and M ij is the maximum value of f on D ij, then U(f, P Q) L(f, P Q) = = < = = = ɛ. m i= j= m i= j= m i= j= n M ij x i y j m i= j= n (M ij m ij ) x i y j n ɛ (b a)(d c) ɛ (b a)(d c) x i y j m i= j= n x i y j ɛ (b a)(d c) (b a)(d c) n m ij x i y j (3.6.5) It now follows that we may find upper and lower sums which are arbitrarily close, from which follows the integrability of f. Theorem If f is continuous on an open set containing the rectangle D, then f is integrable on D.
187 Section 3.6 Definite Integrals 7 y 3 x 7.5 z 5.5 Figure A slice of the region beneath f(x, y) = x + y with area α() Example If f(x, y) = x + y, then f is continuous on all of R. Hence f is integrable on D = [, ] [, 3]. Iterated integrals Now suppose we have a rectangle D = [a, b] [c, d] and a continuous function f : R R such that f(x, y) for all (x, y) in D. Let B = {(x, y, z) : (x, y) D, z f(x, y)}. (3.6.6) Then B is the region in R 3 bounded below by D and above by the graph of f. If we let V be the volume of B, then V = f(x, y)dxdy. (3.6.7) However, there is another approach to finding V. If, for every c y d, we let α(y) = D b a f(x, y)dx, (3.6.8) then α(y) is the area of a slice of B cut by a plane orthogonal to both the xy-plane and the yz-plane and passing through the point (, y, ) on the y-axis (see Figure for an example). If we let the partition Q = {y, y,..., y n } divide [c, d] into n intervals of equal length y, then we may approximate V by n α(y i ) y. (3.6.9) j=
188 8 Definite Integrals Section 3.6 That is, we may approximate V by slicing B into slabs of thickness y perpendicular to the yz-plane, and then summing approximations to the volume of each slab. As n increases, this approximation should converge to V ; at the same time, since (3.6.9) is a right-hand rule approximation to the definite integral of α over [c, d], the sum should converge to d c α(y)dy as n increases. That is, we should have V = lim n j= n α(y i ) y = d α(y)dy = d c c a ( ) b f(x, y)dx dy. (3.6.) Note that the expression on the right-hand side of (3.6.) is not the definite integral of f over D, but rather two successive integrals of one variable. Also, we could have reversed our order and first integrated with respect to y and then integrated the result with respect to x. Definition Suppose f : R R is defined on a rectangle D = [a, b] [c, d]. The iterated integrals of f over D are d b c a f(x, y)dxdy = d c ( ) b f(x, y)dx dy (3.6.) a and b d f(x, y)dydx = b a c a c ( ) d f(x, y)dy dx. (3.6.) In the situation of the preceding paragraph, we should expect the iterated integrals in (3.6.) and (3.6.) to be equal since they should both equal V, the volume of the region B. Moreover, since we also know that V = D f(x, y)dxdy, the iterated integrals should both be equal to the definite integral of f over D. These statements may in fact be verified as long as f is integrable on D and the iterated integrals exist. In this case, iterated integrals provide a method of evaluating double integrals in terms of integrals of a single variable (for which we may use the Fundamental Theorem of Calculus).
189 Section 3.6 Definite Integrals 9 y 3 x 7.5 z 5.5 Figure Region beneath f(x, y) = x + y over the rectangle [, ] [, 3] Fubini s Theorem (for rectangles) Suppose f is integrable over the rectangle D = [a, b] [c, d]. If exists, then If exists, then D D d b c a f(x, y)dxdy = b d a c f(x, y)dxdy = f(x, y)dxdy d b c a f(x, y)dydx b d a c f(x, y)dxdy. (3.6.3) f(x, y)dxdy. (3.6.4) Example To find the volume V of the region beneath the graph of f(x, y) = x + y and over the rectangle D = [, ] [, 3] (as shown in Figure 3.6.5), we compute V = = D 3 (x + y )dxdy (x + y )dxdy
190 Definite Integrals Section ( ) x 3 = 3 + xy dy 3 ( ) = 3 + y dy ( ) y = 3 + y3 3 3 = + 9 =. We could also compute the iterated integral in the other order: V = = = = D 3 (x + y )dxdy (x + y )dydx (x y + y3 3 (3x + 9)dx = (x 3 + 9y) = + 9 =. ) 3 dx Example D If D = [, ] [, ], then x ydxdy = x ydydx = x y dx = x dx = x3 6 = = 7 6. Definite integrals on other regions Integrals over intervals suffice for most applications of functions of a single variable. However, for functions of two variables it is important to consider integrals on regions other than rectangles. To extend our definition, consider a function f : R R defined on a bounded region D. Let D be a rectangle containing D and, for any (x, y) in D, define f (x, y) = { f(x, y), if (x, y) D,, if (x, y) / D. (3.6.5) In other words, f is identical to f on D and at all points of D outside of D. Now if f is integrable on D, and since the the region where f is should contribute nothing
191 Section 3.6 Definite Integrals y = β( x) d D x = γ( y) D x = δ( y) y = α( x) c a b Figure Regions of Type I and Type II to the value of the integral, it is reasonable to define the integral of f over D to be equal to the integral of f over D. Definition Suppose f is defined on a bounded region D of R and let D be any rectangle containing D. Define f as in (3.6.5). We say f is integrable on D if f is integrable on D, in which case we define f(x, y)dxdy = D f (x, y)dxdy. D (3.6.6) Note that the integrability of f on a region D depends not only on the nature of f, but on the region D as well. In particular, even if f is continuous on an open set containing D, it may still turn out that f is not integrable on D because of the complicated nature of the boundary of D. Fortunately, there are two basic types of regions which occur frequently and to which our previous theorems generalize. Definition We say a region D in R is of Type I if there exist real numbers a < b and continuous functions α : R R and β : R R such that α(x) β(x) for all x in [a, b] and D = {(x, y) : a x b, α(x) y β(x)}. (3.6.7) We say a region D in R is of Type II if there exist real numbers c < d and continuous functions γ : R R and δ : R R such that γ(y) δ(y) for all y in [c, d] and D = {(x, y) : c y d, γ(y) x δ(y)}. (3.6.8) Figure shows typical examples of regions of Type I and Type II. Example If D is the triangle with vertices at (, ), (, ), and (, ), then D = {(x, y) : x, y x}. Hence D is a Type I region with α(x) = and β(x) = x. Note that we also have D = {(x, y) : y, y x }, so D is also a Type II region with γ(y) = y and δ(y) =. See Figure
192 Definite Integrals Section Figure Two regions which are of both Type I and Type II Example The closed disk D = {(x, y) : x + y } is both a region of Type I, with D = {(x, y) : x, x y x }, and a region of Type II, with D = {(x, y) : y, y x x }. See Figure Example Let D be the region which lies beneath the graph of y = x and above the interval [, ] on the x-axis. Then D = {(x, y) : x, y x }, so D is a region of Type I. However, D is not a region of Type II. See Figure Theorem If D is a region of Type I or a region of Type II and f : R R is continuous on an open set containing D, then f is integrable on D. Fubini s Theorem (for regions of Type I and Type II) Suppose f : R R is integrable on the region D. If D is a region of Type I with D = {(x, y) : a x b, α(x) y β(x)} and the iterated integral b β(x) a α(x) f(x, y)dydx
193 Section 3.6 Definite Integrals Figure A region which is of Type I but not of Type II exists, then If D is a region of Type II with and the iterated integral exists, then D f(x, y)dxdy = b β(x) a α(x) D = {(x, y) : c y d, γ(y) x δ(y)} D d δ(y) c γ(y) f(x, y)dxdy = f(x, y)dxdy d δ(y) c γ(y) f(x, y)dydx. (3.6.9) f(x, y)dydx. (3.6.3) Example Let D be the triangle with vertices at (, ), (, ), and (, ), as in the example above. Expressing D as a region of Type I, we have D xydxdy = x xydydx = xy x dx = x 3 dx = x4 8 = 8. Since D is also a region of Type II, we may evaluate the integral in the other order as well, obtaining D xydxdy = y xydxdy = x y dy = y ( ) ( ) y y3 y dy = 4 y4 = 8 8.
194 4 Definite Integrals Section Figure The region D = {(x, y) : x, x y } In the last example the choice of integration was not too important, with the first order being perhaps slightly easier than the second. However, there are times when the choice of the order of integration has a significant effect on the ease of integration. Example Let D = {(x, y) : x, x y } (see Figure 3.6.9). Since D is both of Type I and of Type II, we may evaluate e y3 dxdy either as or as D y x e y3 dydx e y3 dxdy. The first of these two iterated integrals requires integrating g(y) = e y3 ; however, we may evaluate the second easily: y e y3 dxdy = e y3 dxdy D = = xe y3 y dy y e y3 dy = 3 e y3 = 3 ( e ).
195 Section 3.6 Definite Integrals y 3 z - - x Figure 3.6. Region bounded by z = 4 x y and the xy-plane Example Let V be the volume of the region lying below the paraboloid P with equation z = 4 x y and above the xy-plane (see Figure 3.6.). Since the surface P intersects the xy-plane when 4 x y =, that is, when x + y = 4, V is the volume of the region bounded above by the graph of f(x, y) = 4 x y and below by the region D = {(x, y) : x + y 4}. If we describe D as a Type I region, namely, then we may compute V = D = {(x, y) : x, 4 x y 4 x }, = = (4 x y )dxdy D 4 x (4 x y )dydx 4 x ) (4y x y y3 4 x 3 4 x dx
196 6 Definite Integrals Section 3.6 = = = 4 3 ( 8 4 x x 4 x ) 3 (4 x ) 3 dx ( (4 x ) 4 x ) 3 (4 x ) 3 dx (4 x ) 3 dx. Using the substitution x = sin(θ), we have dx = cos(θ)dθ, and so V = 4 3 = 4 3 = 64 3 = 64 3 = 6 3 = 6 3 = 6 3 = 6 3 = 8π. π π π π π π π ( π (4 x ) 3 dx (4 4 sin (θ)) 3 cos(θ)dθ θ π π ( cos 4 (θ)dθ ( ) + cos(θ) dθ ( + cos(θ) + cos (θ))dθ π + θ ( π + π ) + sin(θ) π π π π π sin(4θ) π π π + cos(4θ) ) dθ ) Integrals of functions of three or more variables We will now sketch how to extend the definition of the definite integral to higher dimensions. Suppose f : R n R is bounded on an n-dimensional closed rectangle D = [a, b ] [a, b ] [a n, b n ]. Let P, P,..., P n partition the intervals [a, b ], [a, b ],..., [a n, b n ] into m, m,..., m n, respectively, intervals, and let P P P n represent the corresponding partition of D into m m m n n-dimensional closed rectangles D i i i n. If m i i i n is the largest real number such that m i i i n f(x) for all x in D i i i n and M i i i n is the smallest
197 Section 3.6 Definite Integrals 7 real number such that f(x) M i i i n sum for all x in D i i i n, then we may define the lower L(f, P P P n ) = and the upper sum U(f, P P P n ) = m m i = i m m i = i m n i n = m n i n = m i i i n x i x i x nin (3.6.3) M i i i n x i x i x nin, (3.6.3) where x jk is the length of the kth interval of the partition P j. We then say f is integrable on D if there exists a unique real number I with the property that L(f, P P P n ) I U(f, P P P n ) (3.6.33) for all choices of partitions P, P,..., P n and we write I = f(x, x,..., x n )dx dx dx n, (3.6.34) D or I = f(x)dx, (3.6.35) D for the definite integral of f on D. We may now generalize the definition of the integral to more general regions in the same manner as above. Moreover, our integrability theorem and Fubini s theorem, with appropriate changes, hold as well. When n = 3, we may interpret f(x, y, z)dxdydz (3.6.36) D to be the total mass of D if f(x, y, z) represents the density of mass at (x, y, z), or the total electric charge of D if f(x, y, z) represents the electric charge density at (x, y, z). For any value of n we may interpret dx dx dx n (3.6.37) D to be the n-dimensional volume of D. We will not go into further details, preferring to illustrate with examples. Example Suppose D is the closed rectangle D = {(x, y, z, t) : x, y, z, t } = [, ] [, ] [, ] [, ].
198 8 Definite Integrals Section 3.6 Then D (x + y + z t )dxdydzdt = = = = = = = ( 6x 3 = 3 = 3 3. (x + y + z t )dtdzdydx ( x t + y t + z t t3 3 ) dzdydx ( x + y + z 8 ) dzdxdy 3 ) (x z + y z + z3 3 8z 3 ( 8x + 8y ) (8x y + 8y 3 ( 6x x ) 3 ) dx dx ) dydx dydx Example Let D be the region in R 3 bounded by the the three coordinate planes and the plane P with equation z = x y (see Figure 3.6.). Suppose we wish to evaluate D xyzdxdydz. Note that the side of D which lies in the xy-plane, that is, the plane z =, is a triangle with vertices at (,, ), (,, ), and (,, ). Or, strictly in terms of x and y coordinates, we may describe this face as the triangle in the first quadrant bounded by the line y = x (see Figure 3.6.). Hence x varies from to, and, for each value of x, y varies from to x. Finally, once we have fixed a values for x and y, z varies from up to P, that is, to x y. Hence we have D xyzdxdydz = = = x x y x x xyz xyzdzdydx x y dydx xy( x y) dydx
199 Section 3.6 Definite Integrals 9 z y (, ) (,, ) z = x y y = x (,, ) y (, ) x x (,, ) Figure 3.6. Region bounded by the coordinate planes and the plane z = x y = = = = = x = 7. (xy x y + x 3 y + x y + xy 3 )dydx ( xy x y + x3 y + x y 3 ) + xy4 x dx 3 4 ( ) 3x 4 x + 9x3 3 x4 + x5 dx ( ) 3x 8 x3 + 9x4 9 8 x5 5 + x6 7 ( ) 7 Example Let V be the volume of the region D in R 3 bounded by the paraboloids with equations z = x y and z = x + y 8 (see Figure 3.6.). We will find V by evaluating V = dxdydz. To set up an iterated integral, we first note that the paraboloid z = x y opens downward about the z-axis and the paraboloid z = x + y 8 opens upward about the z axis. The two paraboloids intersect when D x y = x + y 8,
200 Definite Integrals Section 3.6 y - x - 5 z -5 Figure 3.6. Region bounded by z = x y and z = x + y 8 that is, when x + y = 9. Now we may describe the region in the xy-plane described by x + y 9 as the set of points (x, y) for which 3 x 3 and, for every such fixed x, 3 x y 3 x. Moreover, once we have fixed x and y so that (x, y) is inside the circle x + y = 9, then (x, y, z) is in D provided x + y 8 z x y. Hence we have
201 Section 3.6 Definite Integrals V = = = = = = = dxdydz D 3 9 x x y = x 3 9 x x x +y 8 y dzdydx z x x +y 8 dydx 9 x (8 x y )dydx 9 x ) (8y x y y3 9 x 3 ( 36 9 x 4x 9 x 4 3 (9 x ) 3 9 x 3 (9 x ) 3 dx. 9 x dx ( 36 4x 4 ) 3 (9 x ) dx Using the substitution x = 3 sin(θ), we have dx = 3 cos(θ)dθ, and so ) dx V = 8 3 = 8 3 = 6 = 6 = 54 = π π π π π π π ( π (9 x ) 3 dx (9 9 sin (x)) 3 (3 cos(θ))dθ θ π π cos 4 (θ)dθ = 54π + 7θ π π = 8π. ( ) + cos(θ) dθ ( + cos(θ) + cos (θ))dθ + sin(θ) π π π + π sin(4θ) π π + cos(4θ) dθ )
202 Definite Integrals Section 3.6 Problems. Evaluate each of the following iterated integrals. (a) (c) 3 3xy dydx (b) (4 x y )dxdy (d) π π 4x sin(x + y)dydx e x+y dxdy. Evaluate the following definite integrals over the given rectangles. (a) (y xy)dxdy, D = [, ] [, ] (b) dxdy, D = [, ] [, 3] D D (x + y) (c) ye x dxdy, D = [, ] [, ] (d) dxdy, D = [, ] [, ] x + y D 3. For each of the following, evaluate the iterated integrals and sketch the region of integration. (a) (c) y 4 x (xy x )dxdy (b) (4 x y )dydx (d) D x x 4 y (x + y )dydx xye x y dxdy 4. Find the volume of the region beneath the graph of f(x, y) = + x + y and above the rectangle D = [, ] [, ]. 5. Find the volume of the region beneath the graph of f(x, y) = 4 x + y and above the region D = {(x, y) : x, x y x}. Sketch the region D. 6. Evaluate xydxdy, where D is the region bounded by the x-axis, the y-axis, and D the line y = x. 7. Evaluate e x dxdy where D = {(x, y) : y, y x }. D 8. Find the volume of the region in R 3 described by x, y, and z 4 y 4x. 9. Find the volume of the region in R 3 lying above the xy-plane and below the surface with equation z = 6 x y.. Find the volume of the region in R 3 lying above the xy-plane and below the surface with equation z = 4 x y.. Evaluate each of the following iterated integrals. (a) (c) 3 4 x x+y (4 x z )dydxdz (b) (x yz)dzdydx (d) 3 3xyzdxdydz x x+y x+y+z wdwdzdydx
203 Section 3.6 Definite Integrals 3 D. Find the volume of the region in R 3 bounded by the paraboloids with equations z = 3 x y and z = x + y Evaluate xydxdydz, where D is the region bounded by the xy-plane, the yzplane, the xz-plane, and the plane with equation z = 4 x y. 4. If f(x, y, z) represents the density of mass at the point (x, y, z) of an object occupying a region D in R 3, then f(x, y, z)dxdydz is the total mass of the object and the point ( x, ȳ, z), where and x = m ȳ = m z = m D D D D xf(x, y, z)dxdydz, yf(x, y, z)dxdydz, zf(x, y, z)dxdydz, is called the center of mass of the object. Suppose D is the region bounded by the planes x =, y =, z =, and z = 4 x y. (a) Find the total mass and center of mass for an object occupying the region D with mass density given by f(x, y, z) =. (b) Find the total mass and center of mass for an object occupying the region D with mass density given by f(x, y, z) = z. 5. If X and Y are points chosen at random from the interval [, ], then the probability that (X, Y ) lies in a subset D of the unit square [, ] [, ] is dxdy. (a) Find the probability that X Y. (b) Find the probability that X + Y. (c) Find the probability that XY. 6. If X, Y, and Z are points chosen at random from the interval [, ], then the probability that (X, Y, Z) lies in a subset D of the unit cube [, ] [, ] [, ] is dxdydz. (a) Find the probability that X Y Z. (b) Find the probability that X + Y + Z. D D
204 The Calculus of Functions of Several Variables Section 3.7 Change of Variables in Integrals One of the basic techniques for evaluating an integral in one-variable calculus is substitution, replacing one variable with another in such a way that the resulting integral is of a simpler form. Although slightly more subtle in the case of two or more variables, a similar idea provides a powerful technique for evaluating definite integrals. Linear change of variables We will present the main idea through an example. Let D = {(x, y) : 9x + 4y 36}, the region inside the ellipse which intersects the x-axis at (, ) and (, ) and the y-axis at (, 3) and (, 3). To find the area of D, we evaluate D dxdy = 3 4 x 3 4 x dydx = 3 4 x dx = 6π, where the final integral may be evaluated using the substitution x = sin(θ) or by noting that 4 x dx is one-half of the area of a circle of radius. Alternatively, suppose we write the equation of the ellipse as x 4 + y 9 = and make the substitution x = u and y = 3v. Then u = x point in D, then u + v = x 4 + y 9. That is, if (x, y) is a point in D, then (u, v) is a point in the unit disk Conversely, if (u, v) is a point in E, then E = {(u, v) : u + v }. x 4 + y 9 = 4u 4 + 9v 9 = u + v, and v = y 3, so if (x, y) is a Copyright c by Dan Sloughter
205 Change of Variables in Integrals Section 3.7 F 3 y v.5.5 E u D x Figure 3.7. F maps E onto D 3 so (x, y) is a point in D. Thus the function F (u, v) = (u, 3v) takes the region E, a closed disk of radius, and stretches it onto the region D (as shown in Figure 3.7.). However, note that even though every point in E corresponds to exactly one point in D, and, conversely, every point in D corresponds to exactly on point in E, nevertheless E and D do not have the same area. To see how F changes area, consider what it does to the unit square S with sides e = (, ) and e = (, ). The area of S is, but F maps S onto a rectangle R with sides F (, ) = (, ) and F (, ) = (, 3) and area 6. This a special case of a general fact we saw in Section.6: the linear function F, with associated matrix [ ] M =, 3 maps the unit square S onto a parallelogram R with area det(m) = 6. The important fact for us here is that unit of area in the uv-plane corresponds to 6 units of area in the xy-plane. Hence the area of D will be 6 times the area of E. That is, dxdy = det(m) dudv = 6dudv = 6 dudv = 6π, D E where the final integral is simply the area inside a circle of radius. E E
206 Section 3.7 Change of Variables in Integrals 3 x - - z y Figure 3.7. The ellipsoid x 4 + y 6 + z 9 = These ideas provide the background for a proof of the following theorem. Theorem Suppose f : R n R is continuous on a an open set U containing the closed bounded set D. Suppose F : R n R n is a linear function, M is an n n matrix such that F (u) = Mu, and det(m). If F maps the region E onto the region D and we define the change of variables x x. x n = M u u. u n, 4 then D f(x,x,..., x n )dx dx dx n = f(f (u, u,..., u n )) det(m) du du du n. E (3.7.) Example Let D be the region in R 3 bounded by the ellipsoid with equation x 4 + y 6 + z 9 =. See Figure If we make the change of variables x = u, y = 4v, and z = 3w, that is, x y = 4 u v, z 3 w
207 4 Change of Variables in Integrals Section 3.7 then, for any (x, y, z) in D, we have u + v + w = x 4 + y 6 + z 9. That is, if (x, y, z) lies in D, then the corresponding (u, v, w) lies in the closed unit ball E = B 3 ((,, ), ). Conversely, if (u, v, w) lies in E, then x 4 + y 6 + z 9 = 4u 4 + 6v 6 + 9w 9 = u + v + w, so (x, y, z) lies in D. Hence, the change of variables F (u, v, w) = (u, 4v, 3w) maps E onto D. Now det 4 = 4, 3 so if V is the volume of D, then V = D dxdydz = E ( ) 4π 4dudvdw = 4 dudvdw = 4 = 3π, E 3 where we have used the fact that the volume of a sphere of radius is 4π 3 final integral. to evaluate the Nonlinear change of variables Without going into the technical details, we will indicate how to proceed when the change of variables is not linear. Suppose f : R n R is continuous on a an open set U containing the closed bounded set D and F : R n R n maps a closed bounded region E of R n onto D so that every point of D corresponds to exactly one point of E. Writing F (u) = (F (u), F (u),..., F n (u)), we will assume that F, F,..., and F n are all differentiable on an open set W containing E. Although we will not study this type of function until Chapter 4, the natural candidate for the derivative of F is the matrix whose ith row is F i (u). Letting x i = F i (u, u,..., u n ), i =,,..., n, we denote this matrix, called the Jacobian matrix of F, (x, x,..., x n ) (u, u,..., u n ). (3.7.) Explicitly, F (u) u (x, x,..., x n ) (u, u,..., u n ) = F (u) u. F n (u) u F (u) F (u) u u n F (u) F (u) u u n. (3.7.3)..... F n (u) F n (u) u u n
208 Section 3.7 Change of Variables in Integrals 5 y P r θ x Figure Polar and Cartesian coordinates for a point P We shall see in Chapter 4 that (x, x,..., x n ) (u, u,..., u n ) is the matrix for the linear part of the best affine approximation to F at (u, u,..., u n ). Hence, for sufficiently small rectangles, the factor by which F changes the area of a rectangle when it maps it to a region will be approximately det (x, x,..., x n ) (u, u,..., u n ). (3.7.4) One may then show that, analogous to (3.7.), we have f(x, x,..., x n )dx dx dx n D = f(f (u, u,..., u n )) det (x, x,..., x n ) (u, u,..., u n ) dx dx dx n. E (3.7.5) Note that (3.7.5) is just (3.7.) with the matrix M replaced by the Jacobian of F. We will now look at two very useful special cases of the preceding result. See Problems and 3 for a third special case. Polar coordinates As an alternative to describing the location of a point P in the plane using its Cartesian coordinates (x, y), we may locate the point using r, the distance from P to the origin, and θ, the angle between the vector from (, ) to P and the positive x-axis, measured in the counterclockwise direction from to π (see Figure 3.7.3). That is, if P has Cartesian coordinates (x, y), with x, we may define its polar coordinates (r, θ) by specifying that r = x + y (3.7.6)
209 6 Change of Variables in Integrals Section 3.7 and tan(θ) = y x, (3.7.7) where we take θ π if y and π < θ < π if y <. If x =, we let θ = π if y > and θ = 3π if y <. For (x, y) = (, ), r = and θ could have any value, and so is undefined. Conversely, if a point P has polar coordinates (r, θ), then and x = r cos(θ) (3.7.8) y = r sin(θ). (3.7.9) Note that the choice of the interval [, π) for the values of θ is not unique, with any interval of length π working as well. Although [, π) is the most common choice for values of θ, it is sometimes useful to use ( π, π) instead. ( Example ) If a point P has Cartesian coordinates (, ), then its polar coordinates are, 3π 4. Example A point with polar coordinates ( ) ( 3, π 6 has Cartesian coordinates 3 ) 3, 3. In our current context, we want to think of the polar coordinate mapping (x, y) = F (r, θ) = (r cos(θ), r sin(θ)) (3.7.) as a change of variables between the rθ-plane and the xy-plane. This mapping is particularly useful for us because it maps rectangular regions in the rθ-plane onto circular regions in the xy-plane. For example, for any a >, F maps the rectangular region in the rθ-plane onto the closed disk E = {(r, θ) : r a, θ < π} D = B ((, ), a) = {(x, y) : x + y a} in the xy-plane (see Figure below for an example). More generally, for any α < β < π, F maps the rectangular region E = {(r, θ) : r a, α θ < β} in the rθ-plane onto a region D in the xy-plane which is the sector of the closed disk B ((, ), a) which lies between radii of angles α and β (see Figure 3.7.4). Another basic example is an annulus: for any < a < b, F maps the rectangular region in the rθ-plane onto the annulus E = {(r, θ) : a r b, θ < π} D = {(x, y) : a x + y b} in the xy-plane. Figure illustrates this mapping for the upper half of an annulus.
210 Section 3.7 Change of Variables in Integrals 7 F θ y β a E β D α a r α a x Figure Polar coordinate change of variables Example Let V be the volume of the region which lies beneath the paraboloid with equation z = 4 x y and above the xy-plane. In Section 3.6, we saw that V = (4 x y )dxdy = 8π, where D D = {(x, y) : x + y 4}. The use of polar coordinates greatly simplifies the evaluation of this integral. With the polar coordinate change of variables and x = r cos(θ) y = r sin(θ), the closed disk D in the xy-plane corresponds to the closed rectangle E = {(r, θ) : r, θ π} in the rθ-plane (see Figure 3.7.5). Note that in describing E we have allowed θ = π, but this has no affect on our outcome since a line has no area in R. Moreover, if we let f(x, y) = 4 x y, then f(f (r, θ)) = f(r cos(θ), r sin(θ)) = 4 r cos (θ) r sin(θ) = 4 r (cos (θ) + sin (θ) = 4 r,
211 8 Change of Variables in Integrals Section 3.7 θ 6 5 F 3 y 4 D 3 E x r Figure Polar coordinate change of variables maps [, ] [, π] to B ((, ), ) which also follows from the fact that r = x + y. Now (x, y) (r, θ) = r r cos(θ) θ r cos(θ) [ cos(θ) r sin(θ) = sin(θ) r cos(θ) so det r r sin(θ) θ r sin(θ) ], (3.7.) (x, y) (r, θ) = r cos (θ) + r sin (θ) = r(cos (θ) + sin (θ)) = r. (3.7.) Hence, using (3.7.5), we have (4 x y )dxdy = D = = E π (4 r ) (x, y) det (r, θ) drdθ (4 r )rdθdr π(4r r 3 )dr ) = π (r r4 4 = π(8 4) = 8π. Example Suppose D is the part of the region between the circles with equations x +y = and x + y = 9 which lies above the x-axis. That is, D = {(x, y) : x + y 9, x }.
212 Section 3.7 Change of Variables in Integrals 9 θ E r F y Figure Polar coordinates map [, 3] [, π] to top half of an annulus D x We wish to evaluate Under the polar coordinate change of variables and D e (x +y ) dxdy. x = r cos(θ) y = r sin(θ), the annular region D corresponds to the closed rectangle as illustrated in Figure example, Hence E = {(r, θ) : r 3, θ π}, D Moreover, x + y = r and, as we saw in the previous (x, y) det (r, θ) = r. e (x +y ) dxdy = = = E 3 π 3 re r drdθ re r dθdr πre r dr = π e r 3 = π (e e 9 ). Note that in this case the change of variables not only simplified the region of integration, but also put the function being integrated into a form to which we could apply the Fundamental Theorem of Calculus.
213 Change of Variables in Integrals Section 3.7 z ρ cos( ϕ) ϕ ρ P y x θ ρsin( ϕ) Figure Spherical and Cartesian coordinates for a point P Spherical coordinates Next consider the following extension of polar coordinates to three space: given a point P with Cartesian coordinates (x, y, z), let ρ be the distance from P to the origin, θ be the angle coordinate for the polar coordinates of (x, y, ) (the projection of P onto the xy-plane), and let ϕ be the angle between the vector from the origin to P and the positive z-axis, measured from to π. If x, we have ρ = x + y + z, (3.7.3) tan(θ) = y x, (3.7.4) and cos(ϕ) = z x + y + z, (3.7.5) where θ < π and ϕ π. As with polar coordinates, if x = we let θ = π if y >, θ = 3π if y <, and θ is undefined if y =. See Figure Conversely, given a point P with spherical coordinates (ρ, θ, ϕ), the projection of P onto the xy-plane will have polar coordinate r = ρ sin(ϕ). Hence the Cartesian coordinates of P are x = ρ cos(θ) sin(ϕ), (3.7.6) and Example satisfy y = ρ sin(θ) sin(ϕ), (3.7.7) z = ρ cos(ϕ). (3.7.8) If a point P has Cartesian coordinates (,, ), then its spherical coordinates ρ = = 3,
214 Section 3.7 Change of Variables in Integrals and tan(θ) = =, cos(ϕ) = = 3. Hence we have θ = 7π 4 and ( ) ϕ = cos =.3, 3 where we have rounded the value of ϕ to four decimal places. Hence P has spherical coordinates ( 3, 7π 4,.3). Example If a point P has spherical coordinates ( 4, π 3, ) 3π 4, then its Cartesian coordinates are ( π ) ( ) ( ) ( ) 3π x = 4 cos sin = 4 =, 3 4 ( π ) ( ) ( ) ( ) 3π 3 y = 4 sin sin = 4 = 6, 3 4 and z = 4 cos ( ) ( 3π = 4 ) =. 4 Analogous to our work with polar coordinates, we think of the spherical coordinate mapping (x, y, z) = F (ρ, θ, ϕ) = (ρ cos(θ) sin(ϕ), ρ sin(θ) sin(ϕ), ρ cos(ϕ)) (3.7.9) as a change of variables between ρθϕ-space and xyz-space. This mapping is particularly useful for evaluating triple integrals because it maps rectangular regions in ρθϕ-space onto spherical regions in xyz-space. For the most basic example, for any a >, F maps the rectangular region in ρθϕ-space onto the closed ball E = {(ρ, θ, ϕ) : ρ a, θ < π, ϕ π} D = B 3 ((,, ), a) = {(x, y, z) : x + y + z a} in xyz-space. More generally, for any < a < b, α < β < π, and γ < δ π, F maps the rectangular region E = {(ρ, θ, ϕ) : a ρ b, α θ < β, γ ϕ δ}
215 Change of Variables in Integrals Section 3.7 onto a region D in xyz-space which lies between the concentric spheres S ((,, ), a) and S ((,, ), b), and for which the angle θ lies between α and β and the angle ϕ between γ and δ. For example, if α =, β = π, γ =, and δ = π, then D is one-half of the region lying between two concentric hemispheres with radii a and b. Before using the spherical coordinate change of variable in (3.7.9) to evaluate an integral using (3.7.5), we need to compute the determinate of the Jacobian of F. Now ρ cos(θ) sin(ϕ) ρ cos(θ) sin(ϕ) ρ cos(θ) sin(ϕ) ρ θ ϕ (x, y, z) (ρ, θ, ϕ) = ρ sin(θ) sin(ϕ) ρ sin(θ) sin(ϕ) ρ sin(θ) sin(ϕ) ρ θ ϕ ρ ρ cos(ϕ) θ ρ cos(ϕ) ϕ ρ cos(ϕ) cos(θ) sin(ϕ) ρ sin(θ) sin(ϕ) ρ cos(θ) cos(ϕ) = sin(θ) sin(ϕ) ρ cos(θ) sin(ϕ) ρ sin(θ) cos(ϕ), (3.7.) so, expanding along the third row, det cos(ϕ) ρ sin(ϕ) (x, y, z) (ρ, θ, ϕ) = cos(ϕ)( ρ sin (θ) sin(ϕ) cos(ϕ) ρ cos (θ) sin(ϕ) cos(ϕ)) ρ sin(ϕ)(ρ cos (θ) sin (ϕ) + ρ sin (θ) sin (ϕ) = ρ sin(ϕ) cos (ϕ)(sin (θ) + cos (θ)) ρ sin 3 (ϕ)(sin (θ) + cos (θ)) = ρ sin(ϕ) cos (ϕ) ρ sin 3 (ϕ) = ρ sin(ϕ)(cos (ϕ) + sin (ϕ)) = ρ sin(ϕ). (3.7.) Now ρ and, since ϕ π, sin(ϕ), so (x, y, z) (ρ, θ, ϕ) = ρ sin(ϕ). (3.7.) Example In an earlier example we used the fact that the volume of a sphere of radius is 4π 3. In this example we will verify that the volume of a sphere of radius a is 4 3 πa3. Let V be the volume of D = B 3 ((,, ), a), the closed ball of radius a centered at the origin in R 3. Then V = D dxdydz.
216 Section 3.7 Change of Variables in Integrals 3 Although we may evaluate this integral using Cartesian coordinates, we will find it significantly easier to use spherical coordinates. Using the spherical coordinate change of variables x = ρ cos(θ) sin(ϕ), y = ρ sin(θ) sin(ϕ), and z = ρ cos(ϕ), the region D in xyz-space corresponds to the region E = {(ρ, θ, ϕ) : ρ a, θ π, ϕ π} in ρθϕ-space. Using (3.7.) in the change of variables formula (3.7.5), we have V = dxdydz D = (x, y, z) det (ρ, θ, ϕ) dρdθdϕ = = = = E π π a π a π = 4π a π a = 4π 3 ρ3 a = 4 3 πa3. ρ sin(ϕ)dϕdθdρ ( ρ cos(ϕ)) π dθdρ ( ρ ( ))dθdρ ρ dρ ρ dθdρ Example Suppose we wish to evaluate log x + y + z dxdydz, D where D is the region in R 3 which lies between the two spheres with equations x +y +z = and x + y + z = 4 and above the xy-plane. Under the spherical coordinate change of variables x = ρ cos(θ) sin(ϕ),
217 4 Change of Variables in Integrals Section 3.7 y = ρ sin(θ) sin(ϕ), and z = ρ cos(ϕ), the region D in xyz-space corresponds to the region E = { (ρ, θ, ϕ) : ρ, θ π, ϕ π } in ρθϕ-space. Using (3.7.) in the change of variables formula (3.7.5), we have D log x + y + z dxdydz = = = = = E π π π π = π log(ρ) (x, y, z) (ρ, θ, ϕ) dρdθdϕ π ρ log(ρ) sin(ϕ)dϕdθdρ ( ρ log(ρ) cos(ϕ)) π dθdρ ( ρ log(ρ))( )dθdρ ρ log(ρ)dθdρ ρ log(ρ)dρ. We use integration by parts to evaluate this final integral: letting u = log(ρ) du = ρ dρ dv = ρ dρ v = ρ3 3, we have D log ( x + y + z dxdydz = π 3 ρ3 log(ρ) 3 = 6 πρ3 π log() 3 9 = 6 4π π log() 3 9 = π ( 8 log() 7 ). 3 3 ρ dρ )
218 Section 3.7 Change of Variables in Integrals 5 Problems. Find the area of the region enclosed by the ellipse with equation x + 4y = 4.. Given a > and b >, show that the area enclosed by the ellipse with equation is πab. x a + y b = 3. Find the volume of the region enclosed by the ellipsoid with equation x 5 + y + z 4 =. 4. Given a >, b >, and c >, show that the volume of the region enclosed by the ellipsoid x a + y b + z c = is 4 3 πabc. 5. Find the polar coordinates for each of the following points given in Cartesian coordinates. (a) (, ) (b) (, 3) (c) (, 3) (d) (4, 4) 6. Find the Cartesian coordinates for each of the following points given in polar coordinates. ( (a) (3, ) (b), 5π ) 6 ( (c) (5, π) (d) 4, 4π ) 3 7. Evaluate (x + y )dxdy, D where D is the disk in R of radius centered at the origin. 8. Evaluate D sin(x + y )dxdy, where D is the disk in R of radius centered at the origin. 9. Evaluate D x + y dxdy, where D is the region in the first quadrant of R which lies between the circle with equation x + y = and the circle with equation x + y = 6.
219 6 Change of Variables in Integrals Section 3.7. Evaluate D log(x + y )dxdy, where D is the region in R which lies between the circle with equation x + y = and the circle with equation x + y = 4.. Using polar coordinates, verify that the area of a circle of radius r is πr.. Let I = e x dx. (a) Show that (b) Show that (c) Show that I = I = π e (x +y ) dxdy. re r dθdr. e x dx = π. 3. Find the spherical coordinates of the point with Cartesian coordinates (,, ). 4. Find the spherical coordinates of the point with Cartesian coordinates (3,, ). 5. Find the Cartesian coordinates of the point with spherical coordinates (, 3π 4, ) π Find the Cartesian coordinates of the point with spherical coordinates ( 5, 5π 3, ) π Evaluate (x + y + z )dxdydz, where D is the closed ball in R 3 of radius centered at the origin. 8. Evaluate D x + y + z dxdydz, where D is the region in R 3 between the two spheres with equations x + y + z = 4 and x + y + z = Evaluate D sin( x + y + z )dxdydz, where D is the region in R 3 described by x, y, z, and x + y + z.
220 Section 3.7 Change of Variables in Integrals 7. Evaluate D e (x +y +z ) dxdydz, where D is the closed ball in R 3 of radius 3 centered at the origin.. Let D be the region in R 3 described by x + y + z and z x + y. (a) Explain why the spherical coordinate change of variables maps the region onto D. E = (b) Find the volume of D. { (ρ, θ, ϕ) : ρ, θ π, ϕ π } 4. If a point P has Cartesian coordinates (x, y, z), then the cylindrical coordinates of P are (r, θ, z), where r and θ are the polar coordinates of (x, y). Show that (x, y, z) det (r, θ, z) = r. 3. Use cylindrical coordinates to evaluate D x + y dxdydz, where D is the region in R 3 described by x + y 4 and z A drill with a bit with a radius of centimeter is used to drill a hole through the center of a solid ball of radius 3 centimeters. What is the volume of the remaining solid? 5. Let D be the set of all points in the intersection of the two solid cylinders in R 3 described by x + y and x + z. Find the volume of D.
221 The Calculus of Functions of Several Variables Section 4. Geometry, Limits, and Continuity In this chapter we will treat the general case of a function mapping R m to R n. Since the cases m = and n = have been handled in previous chapters, our emphasis will be on the higher dimensional cases, most importantly when m and n are or 3. We will begin in this section with some basic terminology and definitions. Parametrized surfaces If f : R m R n has domain D, we call the set S of all points y in R n for which y = f(x) for some x in D the image of f. That is, S = {f(x) : x D}, (4..) which is the same as what we have previously called the range of f. If m =, S is a curve as defined in Section.. If m > and n > m, then we call S an m-dimensional surface in R n. If we let x = (x, x,..., x m ) and (y, y,..., y n ) = f(x, x,..., x n ), then, for k =,,..., n, we call the function f k : R n R defined by f k (x, x,..., x m ) = y k the k-th coordinate function of f. We call the system of equations y = f (x, x,..., x m ), y = f (x, x,..., x m ),. =. y n = f n (x, x,..., x m ), (4..) a parametrization of the surface S. Note that f k is the type of function we studied in Chapter 3. On the other hand, if we fix values of x i for all i k, then the function ϕ k : R R n defined by ϕ k (t) = f(x, x,..., x k, t, x k+,..., x m ) (4..3) is of the type we studied we Chapter. In particular, for each k =,,..., n, ϕ k parametrizes a curve which lies on the surface S. The following examples illustrate how the latter remark is useful when trying to picture a parametrized surface S. Example Consider f : R R 3 defined by f(s, t) = (t cos(s), t sin(s), t) Copyright c by Dan Sloughter
222 Geometry, Limits, and Continuity Section z y x Figure 4.. Cone parametrized by f(s, t) = (t cos(s), t sin(s), t) for s π and < t <. The image of f is the surface S in R 3 parametrized by the equations x = t cos(s), y = t sin(s), z = t. Note that for a fixed value of t, the function ϕ (s) = (t cos(s), t sin(s), t) parametrizes a circle of radius t on the plane z = t with center at (,, t). On the other hand, for a fixed value of s, the function ϕ (t) = (t cos(s), t sin(s), t) = t(cos(s), sin(s), ) parametrizes a line through the origin in the direction of the vector (cos(s), sin(s),. Hence the surface S is a cone in R 3, part of which is shown in Figure 4... Notice how the surface was drawn by plotting the curves corresponding to fixed values of s and t (that is, the curves parametrized by ϕ and ϕ ), and then filling in the resulting curvilinear rectangles. Example For a fixed a >, consider the function f : R R 3 defined by f(s, t) = (a cos(s) sin(t), a sin(s) sin(t), a cos(t))
223 Section 4. Geometry, Limits, and Continuity 3 y z x.5 Figure 4.. Unit sphere parametrized by f(s, t) = (cos(s) sin(t), sin(s) sin(t), cos(t)) for s π and t π. The image of f is the surface S in R 3 parametrized by the equations x = a cos(s) sin(t), y = a sin(s) sin(t), z = a cos(t). (4..4) Note that these are the equations for the spherical coordinate change of variables discussed in Section 3.7, with ρ = a, θ = s, and ϕ = t. Since a is fixed while s varies from to π and t varies from to π, it follows that S is a sphere of radius a with center (,, ). Figure 4.. displays S when a =. If we had not previously studied spherical coordinates, we could reach this conclusion about S as follows. First note that x + y + z = a cos (s) sin (t) + a sin (s) sin (t) + a cos (t) = a sin (t)(cos (s) + sin (s)) + a cos (t) = a (sin (t) + cos (t)) = a, from which it follows that every point of S lies on the sphere of radius a centered at the origin. Now for a fixed value of t, ϕ (s) = (a cos(s) sin(t), a sin(s) sin(t), a cos(t)) parametrizes a circle in the plane z = a cos(t) with center (,, a cos(t)) and radius a sin(t). As t varies from to π, these circles vary from a circle in the z = a plane with center
224 4 Geometry, Limits, and Continuity Section 4. (,, a) and radius (when t = ) to a circle in the xy-plane with center (,, ) and radius a (when t = π ) to a circle in the z = a plane with center (,, a) and radius (when t = π). In other words, the circles fill in all the lines of latitude of the sphere from the North Pole to the South Pole, and hence S is all of the sphere. One may also show that the functions ϕ (t) = (a cos(s) sin(t), a sin(s) sin(t), a cos(t)) parametrize the lines of longitude of S as s varies from to π. latitude and longitude are visible in Figure 4... Both the lines of Example Suppose < b < a and define f : R R 3 by f(s, t) = ((a + b cos(t)) cos(s), (a + b cos(t)) sin(s), b sin(t)) for s π and t π. The image of f is the surface T parametrized by the equations x = (a + b cos(t)) cos(s), Note that for a fixed value of t, y = (a + b cos(t)) sin(s), z = b sin(t). ϕ (s) = ((a + b cos(t)) cos(s), (a + b cos(t)) sin(s), b sin(t)) parametrizes a circle in the plane z = b sin(t) with center (,, b sin(t) and radius a+b cos(t). In particular, when t =, we have a circle in the xy-plane with center (,, ) and radius a + b; when t = π, we have a circle on the plane z = b with center (,, b) and radius a; when t = π, we have a circle on the xy-plane with center (,, ) and radius a b; when t = 3π, we have a circle on the z = b plane with center (,, b) and radius a; and when t = π, we are back to a circle in the xy-plane with center (,, ) and radius a + b. For fixed values of s, the curves parametrized by ϕ (t) = ((a + b cos(t)) cos(s), (a + b cos(t)) sin(s), b sin(t)) are not identified as easily. However, some particular cases are illuminating. When s =, we have a circle in the xz-plane with center (a,, ) and radius b; when s = π, we have a circle in the yz-plane with center (, a, ) and radius b; when s = π, we have a circle in the xz-plane with center ( a,, ) and radius b; when s = 3π, we have a circle in the yz-plane with center (, a, ) and radius b; and when t = π, we are back to a circle in the xz-plane with center (a,, ) and radius b. Putting all this together, we see that T is a torus, the surface of a doughnut shaped object. Figure 4..3 shows one such torus, the case a = 3 and b =.
225 Section 4. Geometry, Limits, and Continuity 5 z x y 4 Figure 4..3 A torus: f(s, t) = (3 + cos(t)) cos(s), (3 + cos(t)) sin(s), sin(t)) Vector fields We call a function f : R n R n, that is, a function for which the domain and range space have the same dimension, a vector field. We have seen a few examples of such functions already. For example, the change of variable functions in Section 3.7 were of this type. Also, given a function g : R n R, the gradient of g, g(x) = ( x g(x), x g(x),..., ) g(x), x n is a function from R n to R n. As we saw in our discussion of gradient vector fields in Section 3., a plot showing the vectors f(x) at each point in a rectangular grid provides a useful geometric view of a vector field f. Example Consider the vector field f : R n R n defined by f(x) = x x for all x. Note that f(x) is a vector of length x x = x x = x pointing in the direction opposite that of x. If n =, the coordinate functions of f are f (x, x ) = x x + x and f (x, x ) = x x +. x
226 6 Geometry, Limits, and Continuity Section y Figure 4..4 Vector field f(x) = z - - x x for n = and n = 3 x Figure 4..4 shows a plot of the vectors f(x) for this case, drawn on a grid over the rectangle [ 3, 3] [ 3, 3], and for the case n = 3, using the cube [ 3, 3] [ 3, 3] [ 3, 3]. Note that these plots do not show the vectors f(x) themselves, but vectors which have been scaled proportionately so they do not overlap one another. Limits and continuity The definitions of limits and continuity for functions f : R m R n follow the familiar pattern. Definition Let a be a point in R m and let O be the set of all points in the open ball of radius r > centered at a except a. That is, O = {x : x B n (a, r), x a}. Suppose f : R m R n is defined for all x in O. We say the limit of f(x) as x approaches a is L, written lim x a f(x) = L, if for every sequence of points {x k } in O, lim f(x k) = L (4..5) k whenever lim x k = a. k In Section. we saw that a sequence of points in R n has a limit if and only if the individual coordinates of the points in the sequence each have a limit. The following proposition is an immediate consequence.
227 Section 4. Geometry, Limits, and Continuity 7 Proposition R n, then if and only if for k =,,..., n. If f k : R m R, k =,,..., n, is the kth coordinate function of f : R m lim f(x) = (L, L,..., L n ) x a lim x a f k(x) = L k In other words, the computation of limits for functions f : R m R n reduces to the familiar problem of computing limits of real-valued functions, as we discussed in Section 3.. Example If f(x, y, z) = (x 3yz, 4xz), a function from R 3 to R, then, for example, ( ) lim f(x, y, z) = lim (x,y,z) (,,3) (x,y,z) (,,3) (x 3yz), lim 4xz = (9, ). (x,y,z) (,,3) Definition Suppose f : R m R n is defined for all x in some open ball B n (a, r), r >. We say f is continuous at a if lim x a f(x) = f(a). The following result is an immediate consequence of the previous proposition. Proposition If f k : R m R, k =,,..., n, is the kth coordinate function of f : R m R n, then f is continuous at a point a if and only if f k is continuous at a for k =,,..., n. In other words, checking for continuity for a function f : R m R n reduces to checking the continuity of real-valued functions, a familiar problem from Section 3.. Example The function has coordinate functions and f(x, y) = (3 sin(x + y), 4x y) f (x, y) = 3 sin(x + y) f (x, y) = 4x y. Since, from our results in Section 3., both f and f are continuous at every point in R, it follows that f is continuous at every point in R. Definition We say a function f : R m R n is continuous on an open set U if f is continuous at every point u in U. Example is continuous on R. We may restate the conclusion of the previous example by saying that f(x, y) = (3 sin(x + y), 4x y)
228 8 Geometry, Limits, and Continuity Section 4. Problems. For each of the following, plot the surface parametrized by the given function. (a) f(s, t) = (t cos(s), t sin(s), t ), s π, t 3 (b) f(u, v) = (3 cos(u) sin(v), sin(u) sin(v), cos(v)), u π, v π (c) g(s, t) = ((4 + cos(t)) cos(s), (4 + cos(t)) sin(s), sin(t)), s π, t π (d) f(s, t) = ((5 + cos(t)) cos(s), (5 + cos(t)) sin(s), sin(t)), s π, t π (e) h(u, v) = (sin(v), (3 + cos(v)) cos(u), (3 + cos(v)) sin(u)), u π, v π (f) g(s, t) = (s, s + t, t), s, t (g) f(x, y) = (y cos(x), y, y sin(x)), x π, 5 y 5. Suppose f : R R and we define F : R R 3 by F (s, t) = (s, t, f(s, t)). Describe the surface parametrized by F. 3. Find a parametrization for the surface that is the graph of the function f(x, y) = x + y. 4. Make plots like those in Figure 4..4 for each of the following vector fields. Experiment with the rectangle used for the grid, as well as with the number of vectors drawn. (a) f(x, y) = (y, x) (b) g(x, y) = (y, sin(x)) (c) f(u, v) = (v, u u 3 v) (d) f(x, y) = (x( y ) y, x) (e) f(x, y, z) = ((y x), 8x y xz, 83 ) z + xy (f) f(x, y, z) = (x, y, z) x + y + z (g) g(u, v, w) = (u ) + (v ) (u, v, w ) + (w ) 5. Find the set of points in R for which the vector field is continuous. f(x, y) = 6. For which points in R n is the vector field a continuous function? ( 4x sin(x y), f(x) = x log( x ) ) 4x + 3y x y
229 The Calculus of Functions of Several Variables Section 4. Best Affine Approximations Best affine approximations The following definitions should look very familiar. Definition Suppose f : R m R n is defined on an open ball containing the point c. We call an affine function A : R m R n the best affine approximation to f at c if () A(c) = f(c) and () R(h) is o(h), where R(h) = f(c + h) A(c + h). (4..) Suppose A : R n R n is the best affine approximation to f at c. Then, from our work in Section.5, there exists an n m matrix M and a vector b in R n such that A(x) = Mx + b (4..) for all x in R m. Moreover, the condition A(c) = f(c) implies f(c) = Mc + b, and so b = f(c) Mc. Hence we have A(x) = Mx + f(c) Mc = M(x c) + f(c) (4..3) for all x in R m. Thus to find the best affine approximation we need only identify the matrix M in (4..3). Definition Suppose f : R m R n is defined on an open ball containing the point c. If f has a best affine approximation at c, then we say f is differentiable at c. Moreover, if the best affine approximation to f at c is given by A(x) = M(x c) + f(c), (4..4) then we call M the derivative of f at c and write Df(c) = M. Now suppose f : R m R n and A is an affine function with A(c) = f(c). Let f k and A k be the kth coordinate functions of f and A, respectively, for k =,,..., n, and let R be the remainder function R(h) = f(c + h) A(c + h) = (f (c + h) A (c + h), f (c + h) A (c + h),..., f n (c + h) A n (c + h)). Copyright c by Dan Sloughter
230 Best Affine Approximations Section 4. Then R(h) h = and so ( f (c + h) A (c + h) h ), f (c + h) A (c + h),..., f ) n(c + h) A n (c + h), h h R(h lim =, (4..5) h h that is, A is the best affine approximation to f at c, if and only if f k (c + h) A k (c + h) lim = (4..6) h h for k =,,..., n. But (4..6) is the statement that A k is the best affine approximation to f k at c. In other words, A is the best affine approximation to f at c if and only if A k is the best affine approximation to f k at c for k =,,..., n. This result has many interesting consequences. Proposition If f k : R m R is the kth coordinate function of f : R m R n, then f is differentiable at a point c if and only if f k is differentiable at c for k =,,..., n. Definition If f k : R m R is the kth coordinate function of f : R m R n, then we say f is C on an open set U if f k is C on U for k =,,..., n. Putting our results in Section 3.3 together with the previous proposition and definition, we have the following basic result. Theorem If f : R m R n is C on an open ball containing the point c, then f is differentiable at c. Suppose f : R m R n is differentiable at c = (c, c,..., c m ) with best affine approximation A and f k : R m R and A k : R m R are the coordinate functions of f and A, respectively, for k =,,..., n. Since A k is the best affine approximation to f k at c, we know from Section 3.3 that A k (x) = f k (c) (x c) + f k (c) (4..7) for all x in R m. Hence, writing the vectors as column vectors, we have A (x) A (x) A(x) =. A n (x) f (c) (x c) + f (c) = f (c) (x c) + f (c). f n (c) (x c) + f n (c)
231 Section 4. Best Affine Approximations 3 f (c) x = f (c) x. f n (c) x f (c) f (c) x x m f (c) f (c) x x m..... f n (c) f n (c) x x m x c x c. x m c m It follows that the n m matrix in (4..8) is the derivative of f. Theorem given by + f (c) f (c). f m (c). (4..8) If f : R m R n is differentiable at a point c, then the derivative of f at c is f (c) x Df(c) = f (c) x. f n (c) x f (c) f (c) x x m f (c) f (c) x x m. (4..9)..... f n (c) f n (c) x x m We call the matrix in (4..9) the Jacobian matrix of f, after the German mathematician Carl Gustav Jacob Jacobi (84-85). Note that we have seen this matrix before in our discussion of change of variables in integrals in Section 3.7. Example Consider the function f : R 3 R defined by The coordinate functions of f are f(x, y, z) = (xyz, 3x yz). f (x, y, z) = xyz and Now and so the Jacobian of f is Hence, for example, f (x, y, z) = 3x yz. f (x, y, z) = (yz, xz, xy) f (x, y, z) = (3, z, y), Df(x, y, z) = Df(,, ) = [ ] yz xz xy. 3 z y [ ]. 3 4
232 4 Best Affine Approximations Section 4. Since f(,, ) = (, 7), the best affine approximation to f at (,, ) is [ ] A(x, y, z) = x [ ] y z + [ ] (x ) (y ) + (z + ) = 3(x ) + (y ) 4(z + ) + 7 [ ] x y + z + 4 =. 3x + y 4z 4 Tangent planes Suppose f : R R 3 parametrizes a surface S in R 3. If f, f, and f 3 are the coordinate functions of f, then the best affine approximation to f at a point (s, t ) is given by s f (t, s ) t f (t, s ) [ ] A(s, t) = s f (t, s ) t f (t, s ) s s + f (s, t ) f t t (s, t ) s f f 3 (s, t ) 3(t, s ) t f 3(t, s ) s f (s, t ) t f (s, t ) = s f (s, t ) (s s ) + t f (s, t ) (t t ) + f (s, t ) f (s, t ).(4..) s f f 3 (s, t ) 3(s, t ) t f 3(s, t ) If the vectors and v = w = s f (s, t ) s f (s, t ) s f 3(s, t ) t f (s, t ) t f (s, t ) t f 3(s, t ) (4..) (4..) are linearly independent, then (4..) implies that the image of A is a plane in R 3 which passes through the point f(s, t ) on the surface S. Moreover, if we let C be the curve
233 Section 4. Best Affine Approximations 5 on S through the point f(s, t ) parametrized by ϕ (s) = f(s, t ) and C be the curve on S through the point f(s, t ) parametrized by ϕ (t) = f(s, t), then v is tangent to C at f(s, t ) and w is tangent to C at f(s, t ). Hence we call the image of A the tangent plane to the surface S at the point f(s, t ). Example Let T be the torus parametrized by f(s, t) = ((3 + cos(t)) cos(s), (3 + cos(t)) sin(s), sin(t)) for s π and t π. Then (3 + cos(t)) sin(s) sin(t) cos(s) Df(s, t) = (3 + cos(t)) cos(s) sin(t) sin(s). cos(t) Thus, for example, Since ( π Df, π ) = 4 ( π f, π ) = 4 ( 3 + ) (, 3 +, ),. the best affine approximation to f at ( π, ) π 4 is ( 3 + ) A(s, t) = s π t π ( 3 + ) ( = s π ) ( + t π ) Hence ( x = 3 + ) ( s π ), y = ( t π ) + 3 +, 4 z = ( t π ) +, 4
234 6 Best Affine Approximations Section 4. 4 x - -4 z y Figure 4.. Torus with a tangent plane are parametric equations for the plane P tangent to T at 4... Chain rule 4 (, 3 +, ). See Figure We are now in a position to state the chain rule in its most general form. Consider functions g : R m R q and f : R q R n and suppose g is differentiable at c and f is differentiable at g(c). Let h : R m R n be the composition h(x) = f(g(x)) and denote the coordinate functions of f, g, and h by f i, i =,,..., n, g j, j =,..., q, and h k, k =,,..., n, respectively. Then, for k =,,..., n, h k (x, x,..., x m ) = f k (g (x, x,..., x m ), g (x, x,..., x m ),..., g q (x, x,..., x m )). Now if we fix m of the variables x, x,..., x m, say, all but x j, then h k is the composition of a function from R to R q with a function from R q to R. Thus we may use the chain rule from Section 3.3 to compute x j h k (c), namely, ( h k (c) = f k (g(c)) g (c), g (c),..., ) g q (c) x j x j x j x j = f k (g(c)) g (c) + f k (g(c)) g (c)+ x x j x x j + x q f k (g(c)) x j g q (c). (4..3) Hence x j h k (c) is equal to the dot product of the kth row of Df(g(c)) with the jth column of Dg(c). Moreover, if g is C on an open ball about c and f is C on an open ball about g(c), then (4..3) shows that x j h k is continuous on an open ball about c. It follows from our results in Section 3.3 that h is differentiable at c. Since x j h k is the entry in the kth row and jth column of Dh(c), (4..3) implies Dh(c) = Df(g(c))Dg(c). This result, the chain rule, may be proven without assuming that f and g are both C, and so we state the more general result in the following theorem.
235 Section 4. Best Affine Approximations 7 Chain Rule If g : R m R q is differentiable at c and f : R q R n is differentiable at g(c), then f g is differentiable at c and D(f g)(c) = Df(g(c))Dg(c). (4..4) Equivalently, the chain rule says that if A is the best affine approximation to g at c and B is the best affine approximation to f at g(c), then B A is the best affine approximation to f g at c. That is, the best affine approximation to a composition of functions is the composition of the individual best affine approximations. Example Suppose g : R R 3 is defined by and f : R 3 R is defined by g(s, t) = (cos(s) sin(t), sin(s) sin(t), cos(t)) f(x, y, z) = (xyz, x yz). Then and sin(s) sin(t) cos(s) cos(t) Dg(s, t) = cos(s) sin(t) sin(s) cos(t) sin(t) Df(x, y, z) = [ ] yz xz xy. x z y Let h(s, t) = f(g(s, t)). To find Dh ( π 4, π 4 ), we first note that ( π g 4, π ) ( = 4, ),, ( π Dg 4, π ) = 4 and Df ( ( π g 4, π )) ( = Df 4, ), =
236 8 Best Affine Approximations Section 4. Thus ( π Dh 4, π ) ( ( π = Df g 4 4, π )) ( π Dg 4 4, π ) 4 = = + 5. Problems. Find the best affine approximation for each of the following functions at the specified point c. (a) f(x, y) = (x + y, 3xy), c = (, ) (b) g(x, y, z) = (sin(x + y + z), xy cos(z)), c = (, π 4, π 4 (c) h(s, t) = (3s + t, s t, 4st, 4t s), c = (, 3). Each of the following functions parametrizes a surface S in R 3. In each case, find parametric equations for the tangent plane P passing through the point f(s, t ). Plot S and P together. (a) f(s, t) = (t cos(s), t sin(s), t), (s, t ) = ( π, ) (b) f(s, t) = (t cos(s), t, t sin(s)), (s, t ) = (, ) (c) f(s, t) = (cos(s) sin(t), sin(s) sin(t), cos(t)), (s, t ) = ( π, π 4 (d) f(s, t) = (3 cos(s) sin(t), sin(s) sin(t), cos(t)), (s, t ) = ( π 4, ) π 4 (e) f(s, t) = ((4 + cos(t)) cos(s), (4 + cos(t)) sin(s), sin(t)), (s, t ) = ( 3π 4, ) π 4 3. Let S be the graph of a function f : R R. Define the function F : R R 3 by F (s, t) = (s, t, f(s, t)). We may find an equation for the plane tangent to S at (s, t, f(s, t )) using either the techniques of Section 3.3 (looking at S as the graph of f) or the techniques of this section (looking at S as a surface parametrized by F ). Verify that these two approaches yield equations for the same plane, both in the special case when f(s, t) = s + t and (s, t ) = (, ), and in the general case. 4. Use the chain rule to find the derivative of f g at the point c for each of the following. (a) f(x, y) = (x y, x y), g(s, t) = (3st, s 4t), c = (, ) ( (b) f(x, y, z) = (4xy, 3xz), g(s, t) = st 4t, s, 4 ), c = (, 3) st (c) f(x, y) = (3x + 4y, x y, x y), g(s, t, u) = (4s 3t + u, 5st ), c = (,, 3) ) )
237 Section 4. Best Affine Approximations 9 5. Suppose and x = f(u, v), y = g(u, v), u = h(s, t), v = k(s, t). (a) Show that and (b) Find similar expressions for y s x s = x u u s + x v v s x t = x u u t + x v v t. and y t. 6. Use your results in Problem 5 to find x s, x and t, y s x = u v, 7. Suppose T is a function of x and y where y = 3u v, u = 4t s, v = 4t s. x = r cos(θ), y = r sin(θ)., and y t when Show that and T r = T T cos(θ) + x y sin(θ) T θ = T T r sin(θ) + x y r cos(θ). 8. Suppose the temperature at a point (x, y) in the plane is given by T = + x + y. (a) If (r, θ) represents the polar coordinates of (x, y), use Problem 7 to find T r and T θ when r = 4 and θ = π 6. (b) Show that T θ = for all values of r and θ. Can you explain this result geometrically?
238 Best Affine Approximations Section Let T be the torus parametrized by for s π and t π. x = (4 + cos(t)) cos(s), y = (4 + cos(t)) sin(s), z = sin(t), (a) If U is a function of x, y, and z, find general expressions for U s (b) Suppose U = 8 4e (x +y +z ) U and t. gives the temperature at a point (x, y, z) on T. Find expressions for U s this case. What is the geometrical interpretation of these quantities? (c) Evaluate U s and U t in the particular case s = π 4 and t = π 4. U and t in
239 The Calculus of Functions of Several Variables Section 4.3 Line Integrals We will motivate the mathematical concept of a line integral through an initial discussion of the physical concept of work. Work If a force of constant magnitude F is acting in the direction of motion of an object along a line, and the object moves a distance d along this line, then we call the quantity F d the work done by the force on the object. More generally, if the vector F represents a constant force acting on a object as it moves along a displacement vector d, then F d d (4.3.) is the magnitude of F in the direction of motion (see Figure 4.3.) and we define ( ) d F d = F d (4.3.) d to be the work done by F on the object when it is displaced by d. F F. u Figure 4.3. Magnitude of F in the direction of d is F u, where u = d d d We now generalize the formulation of work in (4.3.) to the situation where an object P moves along some curve C subject to a force which depends continuously on position (but does not depend on time). Specifically, we represent the force by a continuous vector field, say, F : R n R n, and we suppose P moves along a curve C which has a smooth Copyright c by Dan Sloughter
240 Line Integrals Section 4.3 F (ϕ( t)) D ϕ( ) t P ϕ( ) t C Figure 4.3. Object P moving along a curve C subject to a force F parametrization ϕ : I R n, where I = [a, b]. See Figure To approximate the work done by F as P moves from ϕ(a) to ϕ(b) along C, we first divide I into m equal subintervals of length t = b a m with endpoints t = a < t < t < < t m = b. Now at time t k, k =,,..., m, P is moving in the direction of Dϕ(t k ) at a speed of Dϕ(t k ), and so will move a distance of approximately Dϕ(t k ) t over the time interval [t k, t k+ ]. Thus we may approximate the work done by F as P moves from ϕ(t k ) to ϕ(t k+ ) by the work done by the force F (ϕ(t k )) in moving P along the displacement vector Dϕ(t k ) t, which is a vector of length Dϕ(t k ) t in the direction of Dϕ(t k ). That is, if we let W k denote the work done by F as P moves from ϕ(t k ) to ϕ(t k ), then W k F (ϕ(t k )) Dϕ(t k ) t. (4.3.3) If we let W denote the total work done by F as P moves along C, then we have W = m k= W k = m k= F (ϕ(t k )) Dϕ(t k ) t. (4.3.4) As m increases, we should expect the approximation in (4.3.4) to approach W. Moreover, since F (ϕ(t)) Dϕ(t) is a continuous function of t and the sum in (4.3.4) is a left-hand rule approximation for the definite integral of F (ϕ(t)) Dϕ(t) over the interval [a, b], we should have m b W = lim F (ϕ(t k )) Dϕ(t k ) t = F (ϕ(t)) Dϕ(t)dt. (4.3.5) m k= a
241 Section 4.3 Line Integrals 3 Example Suppose an object moves along the curve C parametrized by ϕ(t) = (t, t ), t, subject to the force F (x, y) = (y, x). Then the work done by F as the object moves from ϕ( ) = (, ) to ϕ() = (, ) is W = = = = = t 3 =. F (ϕ(t)) Dϕ(t)dt F (t, t ) (, t)dt (t, t) (, t)dt 3t dt ( ) t Example The function ψ(t) =, t 4, t, is also a smooth parametrization of the curve C in the previous example. Using the same force function F, we have F (ψ(t)) Dψ(t)dt = = = t3 8 =. ( t 4, t 3t 8 dt ) (, t ) dt This is the result we should expect: as long as the curve is traversed only once, the work done by a force when an object moves along the curve should depend only on the curve and not on any particular parametrization of the curve. We need to verify the previous statement in general before we can state our definition of the line integral. Note that in these two examples, ψ(t) = ϕ ( t ). In other words, ψ(t) = ϕ(g(t)), where g(t) = t for t. In general, if ϕ(t), for t in an interval [a, b], and ψ(t), for t in an interval [c, d], are both smooth parametrizations of a curve C such that every point on C corresponds to exactly one point in I and exactly one point in J, then there exists a differentiable function g which maps J onto I such that ψ(t) = ϕ(g(t)). Defining such a g is straightforward: given any t in [c, d], find the unique value s in [a, b] such that ϕ(s) = ψ(t) (such a value s has to exist since C is the image of both ψ and ϕ). Then g(t) = s. Proving that g is differentiable is not as easy, and we will not provide a proof here. However, assuming that g is differentiable, it follows that for any continuous
242 4 Line Integrals Section 4.3 vector field F, Now if we let in (4.3.6), then d c F (ψ(t)) Dψ(t)dt = d c = d c d c u = g(t), du = g (t)dt, F (ψ(t)) Dψ(t)dt = F (ϕ(g(t)) D(ϕ g)(t))dt if g(c) = a and g(d) = b (that is, ϕ(a) = ψ(c) and ϕ(b) = ψ(d), and d c F (ψ(t)) Dψ(t)dt = a b F (ϕ(g(t)) Dϕ(g(t))g (t)dt. (4.3.6) b F (ϕ(u)) Dϕ(u)dt = a F (ϕ(u)) Dϕ(u)dt (4.3.7) a b F (ϕ(u)) Dϕ(u)dt (4.3.8) if g(c) = b and g(d) = a (that is, ϕ(a) = ψ(d) and ϕ(b) = ψ(c). Note that the second case occurs only if ψ parametrizes C in the reverse direction of ϕ, in which case we say ψ is an orientation reversing reparametrization of ϕ. In the first case, that is, when ϕ(a) = ψ(c) and ϕ(b) = ψ(d), we say ψ is an orientation preserving reparametrization of ϕ. Our results in (4.3.7) and (4.3.8) then correspond to the physical notion that the work done by a force in moving an object along a curve is the negative of the work done by the force in moving the object along the curve in the opposite direction. From now on, when referring to a curve C, we will assume some orientation, or direction, has been specified. We will then use C to refer to the curve consisting of the same set of points as C, but with the reverse orientation. Line integrals Now that we know that, except for direction, the value of the integral involved in computing work does not depend on the particular parametrization of the curve, we may state a formal mathematical definition. Definition Suppose C is a curve in R n with smooth parametrization ϕ : I R n, where I = [a, b] is an interval in R. If F : R n R n is a continuous vector field, then we define the line integral of F along C, denoted F ds, C by F ds = b C a F (ϕ(t)) Dϕ(t)dt. (4.3.9)
243 Section 4.3 Line Integrals 5 As a consequence of our previous remarks, we have the following result. Proposition Using the notation of the definition, F ds C depends only on the curve C and its orientation, not on the parametrization ϕ. Moreover, F ds = F ds. (4.3.) C Example Let C be the unit circle centered at the origin in R, oriented in the counterclockwise direction, and let ( F (x, y) = y ) x + y, x x + y = x ( y, x). + y To compute the line integral of F along C, we first need to find a smooth parametrization of C. One such parametrization is for t π. Then F ds = C = = = π π π π = π. C ϕ(t) = (cos(t), sin(t)) F (cos(t), sin(t)) ( sin(t), cos(t))dt cos (t) + sin ( sin(t), cos(t)) ( sin(t), cos(t))dt (t) (sin (t) + cos (t))dt dt Note that ψ(t) = (sin(t), cos(t)), t π, parametrizes C, from which we can calculate π F ds = F (sin(t), cos(t)) (cos(t), sin(t))dt C = = π π = π = π, sin ( cos(t), sin(t)) (cos(t), sin(t))dt (t) + cos (t) ( cos (t) sin (t))dt in agreement with the previous proposition. dt
244 6 Line Integrals Section C 3 C C C Figure Rectangle with counterclockwise orientation A piecewise smooth curve is one which may be decomposed into a finite number of curves, each of which has a smooth parametrization. If C is a piecewise smooth curve composed of the union of the curves C, C,..., C m, then we may extend the definition of the line integral to C by defining C F ds = F ds + C F ds + + C F ds. C m (4.3.) The next example illustrates this procedure. Example Let C be the rectangle in R with vertices at (, ), (, ), (, ), and (, ), oriented in the counterclockwise direction, and let F (x, y) = (y, xy). If we let C, C, C 3, and C 4 be the four sides of C, as labeled in Figure 4.3.3, then we may parametrize C by α(t) = (t, ), t, C by t, C 3 by t, and C 4 by β(t) = (, t), γ(t) = ( t, ), δ(t) = (, t), t. Then F ds = C F ds + C F ds + C F ds + C 3 F ds C 4 = F (t, ) (, )dt + F (, t) (, )dt + F ( t, ) (, )dt
245 Section 4.3 Line Integrals 7 = = + (, ) (, )dt + + dt + F (, t) (, )dt (t, 4t) (, )dt + (( t), ) (, )dt 4tdt + ( )dt + dt (, 4 t) (, )dt = t = =. Note that it would be slightly simpler to parametrize C 3 and C 4, using ϕ(t) = (, t), t, and ψ(t) = (t, ), t, respectively, than to parametrize C 3 and C 4 directly. We would then evaluate F ds = F ds + F ds F ds F ds. C C C C 3 C 4 A note on notation Suppose C is a smooth curve in R n, parametrized by ϕ : I R n, where I = [a, b], and let F : R n R n be a continuous vector field. Our notation for the line integral of F along C comes from letting s = ϕ(t), from which we have which we may write, symbolically, as ds dt = Dϕ(t), ds = Dϕ(t)dt. Now suppose ϕ, ϕ,..., ϕ n and F, F,..., F n are the component functions of ϕ and F, respectively. If we let x = ϕ (t), x = ϕ (t),. x n = ϕ n (t),
246 8 Line Integrals Section 4.3 then we may write b F ds = F (ϕ(t)) Dϕ(t)dt C = = = a b a b a b a F (x (t), x (t),..., x n (t)) (ϕ (t), ϕ (t),..., ϕ n(t))dt (F (x (t), x (t),..., x n (t))ϕ (t) + F (x (t), x (t),..., x n (t))ϕ (t)) + + F n (x (t), x (t),..., x n (t))ϕ n(t))dt F (x (t), x (t),..., x n (t))ϕ (t)dt b a b a F (x (t), x (t),..., x n (t))ϕ (t)dt F n (x (t), x (t),..., x n (t))ϕ n(t)dt. (4.3.) Suppressing the dependence on t, writing dx k for ϕ k (t)dt, k =,,..., n, and using only a single integral sign, we may rewrite (4.3.) as F (x, x,..., x n )dx + F (x, x,..., x n )dx + + F n (x, x,..., x n )dx n. (4.3.3) C This is a common, and useful, notation for a line integral. Example We will evaluate C ydx + xdy + z dz, where C is the part of a helix in R 3 with parametric equations x = cos(t), y = sin(t), z = t, t π. Note that this is equivalent to evaluating F ds, where F : R 3 R 3 is the vector field F (x, y, z) = (y, x, z ). We have π ydx + xdy + z dz = (sin(t)( sin(t)) + cos(t) cos(t) + t )dt C = = π π C (cos (t) sin (t) + t )dt (cos(t) + t )dt = π sin(t) + π 3 t3 = 8π3 3.
247 Section 4.3 Line Integrals 9 Gradient fields Recall that if f : R n R is C, then f is a continuous vector field on R n. Suppose ϕ : I R n, I = [a, b], is a smooth parametrization of a curve C. Then, using the chain rule and the Fundamental Theorem of Calculus, C f ds = = b a b a f(ϕ(t)) Dϕ(t)dt d dt f(ϕ(t))dt = f(ϕ(t)) b a = f(ϕ(b)) f(ϕ(a)). Theorem If f : R n R is C and ϕ : I R n, I = [a, b], is a smooth parametrization of a curve C, then f ds = f(ϕ(b)) f(ϕ(a)). (4.3.4) C Note that (4.3.4) shows that the value of a line integral of a gradient vector field depends only on the starting and ending points of the curve, not on which particular path is taken between these two points. Moreover, (4.3.4) provides a simple means for evaluating a line integral if the given vector field can be identified as the gradient of a scalar valued function. Another interesting consequence is that if the beginning and ending points of C are the same, that is, if v = ϕ(a) = ϕ(b), then f ds = f(ϕ(b)) f(ϕ(b)) = f(v) f(v) =. (4.3.5) C We call such curves closed curves. In words, the line integral of a gradient vector field is along any closed curve. Example If F (x, y) = (y, x), then F (x, y) = f(x, y), where f(x, y) = xy. Hence, for example, for any smooth curve C starting at (, ) and ending at (, ) we have F ds = f(, ) f(, ) = + =. C Note that this agrees with the result in our first example above, where C was the part of the parabola y = x extending from (, ) to (, ). Example If f(x, y) = xy, then f(x, y) = (y, xy).
248 Line Integrals Section 4.3 If C is the rectangle in R with vertices at (, ), (, ), (, ), and (, ), then, since C is a closed curve, y dx + xydy =, C in agreement with an earlier example. Similarly, if E is the unit circle in R centered at the origin, then we know that y dx + xydy =, with no need for further computations. E In physics, a force field F is said to be conservative if the work done by F in moving an object between any two points depends only on the points, and not on the path used between the two points. In particular, we have shown that if F is the gradient of some scalar function f, then F is a conservative force field. Under certain conditions on the domain of F, the converse is true as well. That is, under certain conditions, if F is a conservative force field, then there exists a scalar function f such that F = f. Problem 9 explores one such situation in which this is true. The function f is then known as a potential function. Problems. For each of the following, compute the line integral F and curve C parametrized by ϕ. (a) F (x, y) = (xy, 3x), ϕ(t) = (t, t), t ( ) y (b) F (x, y) = x + y, x x + y, ϕ(t) = (cos(t), sin(t)), t π (c) F (x, y) = (3x y, 4x y), ϕ(t) = (t 3, t ), t (d) F (x, y, z) = (xyz, 3xy, 4z), ϕ(t) = (3t, t, 4t 3 ), t 4 C F ds for the given vector field. Let C be the circle of radius centered at the origin in R, with counterclockwise orientation. Evaluate the following line integrals. (a) 3xdx + 4ydy (b) 8xydx + 4x dy C 3. Let C be the part of a helix in R 3 parametrized by ϕ(t) = (cos(t), sin(t), t), t π. Evaluate the following line integrals. (a) 3xdx + 4ydy + zdz (b) yzdx + xzdy + xydz C 4. Let C be the rectangle in R with vertices at (, ), (, ), (, 3), and (, 3), with counterclockwise orientation. Evaluate the following line integrals. (a) x ydx + (3y + x)dy (b) xydx + x dy C C C C
249 Section 4.3 Line Integrals 5. Let C be the ellipse in R with equation x 4 + y 9 =, with counterclockwise orientation. Evaluate F ds for F (x, y) = (4y, 3x). 6. Let C be the upper half of the circle of radius 3 centered at the origin in R, with counterclockwise orientation. Evaluate the following line integrals. (a) 3ydx (b) 4xdy C 7. Evaluate C x x + y dx + y x + y dy, where C is any curve which starts at (, ) and ends at (, 3). 8. (a) Suppose F : R n R n is a C vector field which is the gradient of a scalar function f : R n R. If F k is the kth coordinate function of F, k =,,..., n, show that x j F i (x, x,..., x n ) = for i =,,..., n and j =,,..., n. (b) Show that although C C C x i F j (x, x,..., x n ) xdx + xydy = for every circle C in R with center at the origin, nevertheless F (x, y) = (x, xy) is not the gradient of any scalar function f : R n R. (c) Let ( F (x, y) = y ) x + y, x x + y for all (x, y) in the set S = {(x, y) : (x, y) (, )}. Let F and F be the coordinate functions of F. Show that y F (x, y) = x F (x, y) for all (x, y) in S, even though F is not the gradient of any scalar function. (Hint: For the last part, show that F ds = π, where C is the unit circle centered at the origin.) C
250 Line Integrals Section Suppose F : R R is a continuous vector field with the property that for any curve C, C F ds depends only on the endpoints of C. That is, if C and C are any two curves with the same endpoints P and Q, then (a) Show that for any closed curve C. F ds = F ds. C C C F ds = (b) Let F and F be the coordinate functions of F. Define f : R R by f(x, y) = C F ds, where C is any curve which starts at (, ) and ends at (x, y). Show that y f(x, y) = F (x, y). (Hint: In evaluating f(x, y), consider the curve C from (, ) to (x, y) which consists of the horizontal line from (, ) to (x, ) followed by the vertical line from (x, ) to (x, y).) (c) Show that f = F.
251 The Calculus of Functions of Several Variables Section 4.4 Green s Theorem Green s theorem is an example from a family of theorems which connect line integrals (and their higher-dimensional analogues) with the definite integrals we studied in Section 3.6. We will first look at Green s theorem for rectangles, and then generalize to more complex curves and regions in R. Green s theorem for rectangles Suppose F : R R is C on an open set containing the closed rectangle D = [a, b] [c, d], and let F and F be the coordinate functions of F. If C denotes the boundary of D, oriented in the clockwise direction, then we may decompose C into the four curves C, C, C 3, and C 4 shown in Figure Then d C 3 C 4 C c C a b Figure 4.4. The boundary of a rectangle decomposed into four smooth curves α(t) = (t, c), a t b, is a smooth parametrization of C, β(t) = (b, t), Copyright c by Dan Sloughter
252 Green s Theorem Section 4.4 c t d, is a smooth parametrization of C, γ(t) = (t, d), a t b, is a smooth parametrization of C 3, and δ(t) = (a, t), c t d, is a smooth parametrization of C 4. Now and and C F ds = F ds + F ds + F ds + F ds C C C 3 C 4 = F ds + F ds F ds F ds, (4.4.) C C C 3 C 4 F ds = C F ds = C F ds = C 3 C 4 F ds = b a d c b a d c ((F (t, c), F (t, c)) (, )dt = ((F (b, t), F (b, t)) (, )dt = ((F (t, d), F (t, d)) (, )dt = ((F (a, t), F (a, t)) (, )dt = Hence, inserting (4.4.) through (4.4.5) into (4.4.), C F ds = = b a d c F (t, c)dt + d c F (b, t)dt (F (b, t) F (a, t))dt b a b a c c b a c c F (t, d)dt Now, by the Fundamental Theorem of Calculus, for a fixed value of t, b a b a F (t, c)dt, (4.4.) F (b, t)dt, (4.4.3) F (t, d)dt, (4.4.4) F (a, t)dt, (4.4.5) d c F (a, t)dt (F (t, d) F (t, c))dt. (4.4.6) x F (x, t)dx = F (b, t) F (a, t) (4.4.7) and d c y F (t, y)dy = F (t, d) F (t, c). (4.4.8)
253 Section 4.4 Green s Theorem 3 Thus, combining (4.4.7) and (4.4.8) with (4.4.6), we have C F ds = = = d b c a d b c a d b c a x F (x, t)dxdt b d a c b d x F (x, y)dxdy a c ( x F (x, y) y F (x, y) y F (t, y)dydt y F (x, y)dydx ) dxdy. (4.4.9) If we let p = F (x, y), q = F (x, y), and D = C (a common notation for the boundary of D), then we may rewrite (4.4.9) as D pdx + qdy = This is Green s theorem for a rectangle. Example If D = [, 3] [, 5], then D xydx + xdy = = = D D ( q x p ) dxdy. (4.4.) y ( x x ) y xy dxdy ( x)dydx 3( x)dx = 3x 3 3 x 3 = 6. Clearly, this is simpler than evaluating the line integral directly. Green s theorem for regions of Type III Green s theorem holds for more general regions than rectangles. We will confine ourselves here to discussing regions known as regions of Type III, but it is not hard to generalize to regions which may be subdivided into regions of this type (for an example, see Problem ). Recall from Section 3.6 that we say a region D in R is of Type I if there exist real numbers a < b and continuous functions α : R R and β : R R such that D = {(x, y) : a x b, α(x) y β(x)}. (4.4.) We say a region D in R is of Type II if there exist real numbers c and d and continuous functions γ : R R and δ : R R such that D = {(x, y) : c y d, γ(y) x δ(y)}. (4.4.)
254 4 Green s Theorem Section 4.4 C 3 C 4 D C C a b Figure 4.4. Decomposing the boundary of a region of Type I Definition Type III. We call a region D in R which is both of Type I and of Type II a region of Example In Section 3.6, we saw that the triangle T with vertices at (, ), (, ), and (, ) and the closed disk D = B ((, ), ) = {(x, y) : x + y } are of both Type I and Type II. Thus T and D are regions of Type III. We also saw that the region E beneath the graph of y = x and above the interval [, ] is of Type I, but not of Type II. Hence E is not of Type III. Example Any closed rectangle in R is a region of Type III, as is any closed region bounded by an ellipse. Now suppose D is a region of Type III and D is the boundary of D, that is, the curve enclosing D, oriented counterclockwise. Let F : R R be a C vector field, with coordinate functions p = F (x, y) and q = F (x, y). We will first prove that D pdx = D p dxdy. (4.4.3) y Since D is, in particular, a region of Type I, there exist continuous functions α and β such that D = {(x, y) : a x b, α(x) y β(x)}. (4.4.4) In addition, we will assume that α and β are both differentiable (without this assumption the line integral of F along D would not be defined). As with the rectangle in the previous proof, we may decompose D into four curves, C, C, C 3, and C 4, as shown in Figure Then ϕ (t) = (t, α(t)),
255 Section 4.4 Green s Theorem 5 a t b, is a smooth parametrization of C, ϕ (t) = (b, t), α(b) t β(b), is a smooth parametrization of C, ϕ 3 (t) = (t, β(t)), a t b, is a smooth parametrization of C 3, and ϕ 4 (t) = (a, t), α(a) t β(a), is a smooth parametrization of C 4. Now pdx = pdx + pdx pdx pdx, (4.4.5) D C C C 3 C 4 where pdx = C pdx = C 3 and b a C pdx = b (F (t, α(t)), ) (, α (t))dt = β(b) α(b) pdx = C 4 Hence pdx = b (F (b, t), ) (, )dt = (F (t, β(t)), ) (, β (t))dt = a a D β(a) α(a) b = F (t, α(t))dt, (4.4.6) a β(b) b (F (a, t), ) (, )dt = a b F (t, α(t))dt Now, by the Fundamental Theorem of Calculus, a b a α(b) dt =, (4.4.7) F (t, β(t))dt, (4.4.8) β(a) α(a) F (t, β(t))dt dt =. (4.4.9) (F (t, β(t)) F (t, α(t)))dt. (4.4.) and so β(t) α(t) D y F (t, y)dy = F (t, β(t)) F (t, α(t)), (4.4.) pdx = = b β(t) a α(t) b β(x) a = D α(x) p y y F (t, y)dydt y F (x, y)dydx dxdy. (4.4.)
256 6 Green s Theorem Section 4.4 A similar calculation, treating D as a region of Type II, shows that D qdy = D q x dxdy. (4.4.3) (You are asked to verify this in Problem 7.) Putting (4.4.) and (4.4.3) together, we have p F ds = pdx + qdy = D D D y dxdy + q D x dxdy ( q = x p ) dxdy. (4.4.4) y Green s Theorem Suppose D is a region of Type III, D is the boundary of D with counterclockwise orientation, and the curves describing D are differentiable. Let F : R R be a C vector field, with coordinate functions p = F (x, y) and q = F (x, y). Then ( q pdx + qdy = x p ) dxdy. (4.4.5) y D Example Let D be the region bounded by the triangle with vertices at (, ), (, ), and (, 3), as shown in Figure If we orient D in the counterclockwise direction, then D D D ( (3x + y)dx + 5xdy = D x (5x) ) y (3x + y) dxdy = (5 )dxdy D = 4 dxdy = (4)(3) =, where we have used the fact that the area of D is 3 to evaluate the double integral. The line integral in the previous example reduced to finding the area of the region D. This can be exploited in the reverse direction to compute the area of a region. For example, given a region D with area A and boundary D, it follows from Green s theorem that A = dxdy = pdx + qdy (4.4.6) for any choice of p and q which have the property that D D q x p y D =. (4.4.7)
257 Section 4.4 Green s Theorem Figure A triangle with counterclockwise orientation For example, letting p = and q = x, we have and, letting p = y and q =, we have A = D xdy (4.4.8) A = ydx. (4.4.9) D The next example illustrates using the average of (4.4.8) and (4.4.9) to find A: A = ( D ) xdy ydx = xdy ydx. (4.4.3) D D Example Let A be the area of the region D bounded by the ellipse with equation x a + y b =, where a > and b >, as shown in Figure Since we may parametrize D, with counterclockwise orientation, by ϕ(t) = (a cos(t), b sin(t)),
258 8 Green s Theorem Section 4.4 b a a Figure The ellipse x a + y = with counterclockwise orientation b t π, we have Problems A = = = = ab = D π π ( ab = πab. π xdy ydx b ( b sin(t), a cos(t)) ( a sin(t), b cos(t)dt (ab sin (t) + ab cos (t))dt dt ) (π). Let D be the closed rectangle in R with vertices at (, ), (, ), (, 4), and (, 4), with boundary D oriented counterclockwise. Use Green s theorem to evaluate the following line integrals. (a) xydx + 3x dy (b) ydx + xdy D. Let D be the triangle in R with vertices at (, ), (, ), and (, 4), with boundary D oriented counterclockwise. Use Green s theorem to evaluate the following line integrals. (a) xy dx + 4xdy (b) ydx + xdy D D (c) ydx xdy D D
259 Section 4.4 Green s Theorem 9 3. Use Green s theorem to find the area of a circle of radius r. 4. Use Green s theorem to find the area of the region D enclosed by the hypocycloid x 3 + y 3 = a 3, where a >. Note that we may parametrize this curve using t π. ϕ(t) = (a cos 3 (t), a sin 3 (t)), 5. Use Green s theorem to find the area of the region enclosed by one petal of the curve parametrized by ϕ(t) = (sin(t) cos(t), sin(t) sin(t)). 6. Find the area of the region enclosed by the cardioid parametrized by t π. ϕ(t) = (( + cos(t)) cos(t), ( + cos(t)) sin(t)), 7. Verify (4.4.3), thus completing the proof of Green s theorem. 8. Suppose the vector field F : R R with coordinate functions p = F (x, y) and q = F (x, y) is C on an open set containing the Type III region D. Moreover, suppose F is the gradient of a scalar function f : R R. (a) Show that q x p y = for all points (x, y) in D. (b) Use Green s theorem to show that pdx + qdy =, D where D is the boundary of D with counterclockwise orientation. 9. How many ways do you know to calculate the area of a circle?. Who was George Green?. Explain how Green s theorem is a generalization of the Fundamental Theorem of Integral Calculus.. Let b > a, let C be the circle of radius b centered at the origin, and let C be the circle of radius a centered at the origin. If D is the annular region between C and C and F is a C vector field with coordinate functions p = F (x, y) and q = F (x, y), show that ( q D x p ) dxdy = pdx + qdy + pdx + qdy, y C C where C is oriented in the counterclockwise direction and C is oriented in the clockwise direction. (Hint: Decompose D into Type III regions D, D, D 3, and D 4, each with boundary oriented counterclockwise, as shown in Figure )
260 Green s Theorem Section 4.4 b D a D a b D 3 D 4 Figure Decomposition of an annulus into regions of Type III
Section 1.4. Lines, Planes, and Hyperplanes. The Calculus of Functions of Several Variables
The Calculus of Functions of Several Variables Section 1.4 Lines, Planes, Hyperplanes In this section we will add to our basic geometric understing of R n by studying lines planes. If we do this carefully,
11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space
11 Vectors and the Geometry of Space 11.1 Vectors in the Plane Copyright Cengage Learning. All rights reserved. Copyright Cengage Learning. All rights reserved. 2 Objectives! Write the component form of
13.4 THE CROSS PRODUCT
710 Chapter Thirteen A FUNDAMENTAL TOOL: VECTORS 62. Use the following steps and the results of Problems 59 60 to show (without trigonometry) that the geometric and algebraic definitions of the dot product
Geometry of Vectors. 1 Cartesian Coordinates. Carlo Tomasi
Geometry of Vectors Carlo Tomasi This note explores the geometric meaning of norm, inner product, orthogonality, and projection for vectors. For vectors in three-dimensional space, we also examine the
Figure 1.1 Vector A and Vector F
CHAPTER I VECTOR QUANTITIES Quantities are anything which can be measured, and stated with number. Quantities in physics are divided into two types; scalar and vector quantities. Scalar quantities have
1.3. DOT PRODUCT 19. 6. If θ is the angle (between 0 and π) between two non-zero vectors u and v,
1.3. DOT PRODUCT 19 1.3 Dot Product 1.3.1 Definitions and Properties The dot product is the first way to multiply two vectors. The definition we will give below may appear arbitrary. But it is not. It
Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors
1 Chapter 13. VECTORS IN THREE DIMENSIONAL SPACE Let s begin with some names and notation for things: R is the set (collection) of real numbers. We write x R to mean that x is a real number. A real number
9 Multiplication of Vectors: The Scalar or Dot Product
Arkansas Tech University MATH 934: Calculus III Dr. Marcel B Finan 9 Multiplication of Vectors: The Scalar or Dot Product Up to this point we have defined what vectors are and discussed basic notation
MAT 1341: REVIEW II SANGHOON BAEK
MAT 1341: REVIEW II SANGHOON BAEK 1. Projections and Cross Product 1.1. Projections. Definition 1.1. Given a vector u, the rectangular (or perpendicular or orthogonal) components are two vectors u 1 and
Equations Involving Lines and Planes Standard equations for lines in space
Equations Involving Lines and Planes In this section we will collect various important formulas regarding equations of lines and planes in three dimensional space Reminder regarding notation: any quantity
Math 241, Exam 1 Information.
Math 241, Exam 1 Information. 9/24/12, LC 310, 11:15-12:05. Exam 1 will be based on: Sections 12.1-12.5, 14.1-14.3. The corresponding assigned homework problems (see http://www.math.sc.edu/ boylan/sccourses/241fa12/241.html)
THREE DIMENSIONAL GEOMETRY
Chapter 8 THREE DIMENSIONAL GEOMETRY 8.1 Introduction In this chapter we present a vector algebra approach to three dimensional geometry. The aim is to present standard properties of lines and planes,
Linear Algebra Notes for Marsden and Tromba Vector Calculus
Linear Algebra Notes for Marsden and Tromba Vector Calculus n-dimensional Euclidean Space and Matrices Definition of n space As was learned in Math b, a point in Euclidean three space can be thought of
Numerical Analysis Lecture Notes
Numerical Analysis Lecture Notes Peter J. Olver 5. Inner Products and Norms The norm of a vector is a measure of its size. Besides the familiar Euclidean norm based on the dot product, there are a number
x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0.
Cross product 1 Chapter 7 Cross product We are getting ready to study integration in several variables. Until now we have been doing only differential calculus. One outcome of this study will be our ability
Two vectors are equal if they have the same length and direction. They do not
Vectors define vectors Some physical quantities, such as temperature, length, and mass, can be specified by a single number called a scalar. Other physical quantities, such as force and velocity, must
Vector Spaces; the Space R n
Vector Spaces; the Space R n Vector Spaces A vector space (over the real numbers) is a set V of mathematical entities, called vectors, U, V, W, etc, in which an addition operation + is defined and in which
Solutions to old Exam 1 problems
Solutions to old Exam 1 problems Hi students! I am putting this old version of my review for the first midterm review, place and time to be announced. Check for updates on the web site as to which sections
A vector is a directed line segment used to represent a vector quantity.
Chapters and 6 Introduction to Vectors A vector quantity has direction and magnitude. There are many examples of vector quantities in the natural world, such as force, velocity, and acceleration. A vector
28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z
28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE 1.4 Cross Product 1.4.1 Definitions The cross product is the second multiplication operation between vectors we will study. The goal behind the definition
Exam 1 Sample Question SOLUTIONS. y = 2x
Exam Sample Question SOLUTIONS. Eliminate the parameter to find a Cartesian equation for the curve: x e t, y e t. SOLUTION: You might look at the coordinates and notice that If you don t see it, we can
L 2 : x = s + 1, y = s, z = 4s + 4. 3. Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has
The line L through the points A and B is parallel to the vector AB = 3, 2, and has parametric equations x = 3t + 2, y = 2t +, z = t Therefore, the intersection point of the line with the plane should satisfy:
5.3 The Cross Product in R 3
53 The Cross Product in R 3 Definition 531 Let u = [u 1, u 2, u 3 ] and v = [v 1, v 2, v 3 ] Then the vector given by [u 2 v 3 u 3 v 2, u 3 v 1 u 1 v 3, u 1 v 2 u 2 v 1 ] is called the cross product (or
Math 215 HW #6 Solutions
Math 5 HW #6 Solutions Problem 34 Show that x y is orthogonal to x + y if and only if x = y Proof First, suppose x y is orthogonal to x + y Then since x, y = y, x In other words, = x y, x + y = (x y) T
Vector Algebra CHAPTER 13. Ü13.1. Basic Concepts
CHAPTER 13 ector Algebra Ü13.1. Basic Concepts A vector in the plane or in space is an arrow: it is determined by its length, denoted and its direction. Two arrows represent the same vector if they have
Solving Simultaneous Equations and Matrices
Solving Simultaneous Equations and Matrices The following represents a systematic investigation for the steps used to solve two simultaneous linear equations in two unknowns. The motivation for considering
discuss how to describe points, lines and planes in 3 space.
Chapter 2 3 Space: lines and planes In this chapter we discuss how to describe points, lines and planes in 3 space. introduce the language of vectors. discuss various matters concerning the relative position
Lecture L3 - Vectors, Matrices and Coordinate Transformations
S. Widnall 16.07 Dynamics Fall 2009 Lecture notes based on J. Peraire Version 2.0 Lecture L3 - Vectors, Matrices and Coordinate Transformations By using vectors and defining appropriate operations between
Dot product and vector projections (Sect. 12.3) There are two main ways to introduce the dot product
Dot product and vector projections (Sect. 12.3) Two definitions for the dot product. Geometric definition of dot product. Orthogonal vectors. Dot product and orthogonal projections. Properties of the dot
3. INNER PRODUCT SPACES
. INNER PRODUCT SPACES.. Definition So far we have studied abstract vector spaces. These are a generalisation of the geometric spaces R and R. But these have more structure than just that of a vector space.
Unified Lecture # 4 Vectors
Fall 2005 Unified Lecture # 4 Vectors These notes were written by J. Peraire as a review of vectors for Dynamics 16.07. They have been adapted for Unified Engineering by R. Radovitzky. References [1] Feynmann,
6. Vectors. 1 2009-2016 Scott Surgent ([email protected])
6. Vectors For purposes of applications in calculus and physics, a vector has both a direction and a magnitude (length), and is usually represented as an arrow. The start of the arrow is the vector s foot,
Mathematics Course 111: Algebra I Part IV: Vector Spaces
Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are
Inner Product Spaces and Orthogonality
Inner Product Spaces and Orthogonality week 3-4 Fall 2006 Dot product of R n The inner product or dot product of R n is a function, defined by u, v a b + a 2 b 2 + + a n b n for u a, a 2,, a n T, v b,
Vectors Math 122 Calculus III D Joyce, Fall 2012
Vectors Math 122 Calculus III D Joyce, Fall 2012 Vectors in the plane R 2. A vector v can be interpreted as an arro in the plane R 2 ith a certain length and a certain direction. The same vector can be
LINEAR ALGEBRA W W L CHEN
LINEAR ALGEBRA W W L CHEN c W W L Chen, 1982, 2008. This chapter originates from material used by author at Imperial College, University of London, between 1981 and 1990. It is available free to all individuals,
One advantage of this algebraic approach is that we can write down
. Vectors and the dot product A vector v in R 3 is an arrow. It has a direction and a length (aka the magnitude), but the position is not important. Given a coordinate axis, where the x-axis points out
LINES AND PLANES CHRIS JOHNSON
LINES AND PLANES CHRIS JOHNSON Abstract. In this lecture we derive the equations for lines and planes living in 3-space, as well as define the angle between two non-parallel planes, and determine the distance
Recall that two vectors in are perpendicular or orthogonal provided that their dot
Orthogonal Complements and Projections Recall that two vectors in are perpendicular or orthogonal provided that their dot product vanishes That is, if and only if Example 1 The vectors in are orthogonal
ISOMETRIES OF R n KEITH CONRAD
ISOMETRIES OF R n KEITH CONRAD 1. Introduction An isometry of R n is a function h: R n R n that preserves the distance between vectors: h(v) h(w) = v w for all v and w in R n, where (x 1,..., x n ) = x
Vector Math Computer Graphics Scott D. Anderson
Vector Math Computer Graphics Scott D. Anderson 1 Dot Product The notation v w means the dot product or scalar product or inner product of two vectors, v and w. In abstract mathematics, we can talk about
Example SECTION 13-1. X-AXIS - the horizontal number line. Y-AXIS - the vertical number line ORIGIN - the point where the x-axis and y-axis cross
CHAPTER 13 SECTION 13-1 Geometry and Algebra The Distance Formula COORDINATE PLANE consists of two perpendicular number lines, dividing the plane into four regions called quadrants X-AXIS - the horizontal
Solutions to Exercises, Section 5.1
Instructor s Solutions Manual, Section 5.1 Exercise 1 Solutions to Exercises, Section 5.1 1. Find all numbers t such that ( 1 3,t) is a point on the unit circle. For ( 1 3,t)to be a point on the unit circle
Lecture 14: Section 3.3
Lecture 14: Section 3.3 Shuanglin Shao October 23, 2013 Definition. Two nonzero vectors u and v in R n are said to be orthogonal (or perpendicular) if u v = 0. We will also agree that the zero vector in
FURTHER VECTORS (MEI)
Mathematics Revision Guides Further Vectors (MEI) (column notation) Page of MK HOME TUITION Mathematics Revision Guides Level: AS / A Level - MEI OCR MEI: C FURTHER VECTORS (MEI) Version : Date: -9-7 Mathematics
Linear Algebra: Vectors
A Linear Algebra: Vectors A Appendix A: LINEAR ALGEBRA: VECTORS TABLE OF CONTENTS Page A Motivation A 3 A2 Vectors A 3 A2 Notational Conventions A 4 A22 Visualization A 5 A23 Special Vectors A 5 A3 Vector
1.5 Equations of Lines and Planes in 3-D
40 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE Figure 1.16: Line through P 0 parallel to v 1.5 Equations of Lines and Planes in 3-D Recall that given a point P = (a, b, c), one can draw a vector from
Geometric description of the cross product of the vectors u and v. The cross product of two vectors is a vector! u x v is perpendicular to u and v
12.4 Cross Product Geometric description of the cross product of the vectors u and v The cross product of two vectors is a vector! u x v is perpendicular to u and v The length of u x v is uv u v sin The
Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point.
6.1 Vectors in the Plane PreCalculus 6.1 VECTORS IN THE PLANE Learning Targets: 1. Find the component form and the magnitude of a vector.. Perform addition and scalar multiplication of two vectors. 3.
Concepts in Calculus III
Concepts in Calculus III Beta Version UNIVERSITY PRESS OF FLORIDA Florida A&M University, Tallahassee Florida Atlantic University, Boca Raton Florida Gulf Coast University, Ft. Myers Florida International
Vector Algebra II: Scalar and Vector Products
Chapter 2 Vector Algebra II: Scalar and Vector Products We saw in the previous chapter how vector quantities may be added and subtracted. In this chapter we consider the products of vectors and define
v 1 v 3 u v = (( 1)4 (3)2, [1(4) ( 2)2], 1(3) ( 2)( 1)) = ( 10, 8, 1) (d) u (v w) = (u w)v (u v)w (Relationship between dot and cross product)
0.1 Cross Product The dot product of two vectors is a scalar, a number in R. Next we will define the cross product of two vectors in 3-space. This time the outcome will be a vector in 3-space. Definition
Vectors 2. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.
Vectors 2 The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996. Launch Mathematica. Type
Mechanics 1: Vectors
Mechanics 1: Vectors roadly speaking, mechanical systems will be described by a combination of scalar and vector quantities. scalar is just a (real) number. For example, mass or weight is characterized
12.5 Equations of Lines and Planes
Instructor: Longfei Li Math 43 Lecture Notes.5 Equations of Lines and Planes What do we need to determine a line? D: a point on the line: P 0 (x 0, y 0 ) direction (slope): k 3D: a point on the line: P
Section 9.5: Equations of Lines and Planes
Lines in 3D Space Section 9.5: Equations of Lines and Planes Practice HW from Stewart Textbook (not to hand in) p. 673 # 3-5 odd, 2-37 odd, 4, 47 Consider the line L through the point P = ( x, y, ) that
Linear algebra and the geometry of quadratic equations. Similarity transformations and orthogonal matrices
MATH 30 Differential Equations Spring 006 Linear algebra and the geometry of quadratic equations Similarity transformations and orthogonal matrices First, some things to recall from linear algebra Two
3. KINEMATICS IN TWO DIMENSIONS; VECTORS.
3. KINEMATICS IN TWO DIMENSIONS; VECTORS. Key words: Motion in Two Dimensions, Scalars, Vectors, Addition of Vectors by Graphical Methods, Tail to Tip Method, Parallelogram Method, Negative Vector, Vector
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS
December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation
JUST THE MATHS UNIT NUMBER 8.5. VECTORS 5 (Vector equations of straight lines) A.J.Hobson
JUST THE MATHS UNIT NUMBER 8.5 VECTORS 5 (Vector equations of straight lines) by A.J.Hobson 8.5.1 Introduction 8.5. The straight line passing through a given point and parallel to a given vector 8.5.3
Cross product and determinants (Sect. 12.4) Two main ways to introduce the cross product
Cross product and determinants (Sect. 12.4) Two main ways to introduce the cross product Geometrical definition Properties Expression in components. Definition in components Properties Geometrical expression.
A QUICK GUIDE TO THE FORMULAS OF MULTIVARIABLE CALCULUS
A QUIK GUIDE TO THE FOMULAS OF MULTIVAIABLE ALULUS ontents 1. Analytic Geometry 2 1.1. Definition of a Vector 2 1.2. Scalar Product 2 1.3. Properties of the Scalar Product 2 1.4. Length and Unit Vectors
Algebra and Geometry Review (61 topics, no due date)
Course Name: Math 112 Credit Exam LA Tech University Course Code: ALEKS Course: Trigonometry Instructor: Course Dates: Course Content: 159 topics Algebra and Geometry Review (61 topics, no due date) Properties
LINES AND PLANES IN R 3
LINES AND PLANES IN R 3 In this handout we will summarize the properties of the dot product and cross product and use them to present arious descriptions of lines and planes in three dimensional space.
South Carolina College- and Career-Ready (SCCCR) Pre-Calculus
South Carolina College- and Career-Ready (SCCCR) Pre-Calculus Key Concepts Arithmetic with Polynomials and Rational Expressions PC.AAPR.2 PC.AAPR.3 PC.AAPR.4 PC.AAPR.5 PC.AAPR.6 PC.AAPR.7 Standards Know
x R 2 x = (x 1, x 2 ) or p = (x, y) R 3
Euclidean space 1 Chapter 1 Euclidean space A. The basic vector space We shall denote by R the field of real numbers. Then we shall use the Cartesian product R n = R R... R of ordered n-tuples of real
MATH 275: Calculus III. Lecture Notes by Angel V. Kumchev
MATH 275: Calculus III Lecture Notes by Angel V. Kumchev Contents Preface.............................................. iii Lecture 1. Three-Dimensional Coordinate Systems..................... 1 Lecture
Lectures notes on orthogonal matrices (with exercises) 92.222 - Linear Algebra II - Spring 2004 by D. Klain
Lectures notes on orthogonal matrices (with exercises) 92.222 - Linear Algebra II - Spring 2004 by D. Klain 1. Orthogonal matrices and orthonormal sets An n n real-valued matrix A is said to be an orthogonal
Math 0980 Chapter Objectives. Chapter 1: Introduction to Algebra: The Integers.
Math 0980 Chapter Objectives Chapter 1: Introduction to Algebra: The Integers. 1. Identify the place value of a digit. 2. Write a number in words or digits. 3. Write positive and negative numbers used
α = u v. In other words, Orthogonal Projection
Orthogonal Projection Given any nonzero vector v, it is possible to decompose an arbitrary vector u into a component that points in the direction of v and one that points in a direction orthogonal to v
Orthogonal Projections
Orthogonal Projections and Reflections (with exercises) by D. Klain Version.. Corrections and comments are welcome! Orthogonal Projections Let X,..., X k be a family of linearly independent (column) vectors
The Dot and Cross Products
The Dot and Cross Products Two common operations involving vectors are the dot product and the cross product. Let two vectors =,, and =,, be given. The Dot Product The dot product of and is written and
Inner product. Definition of inner product
Math 20F Linear Algebra Lecture 25 1 Inner product Review: Definition of inner product. Slide 1 Norm and distance. Orthogonal vectors. Orthogonal complement. Orthogonal basis. Definition of inner product
Review of Vector Analysis in Cartesian Coordinates
R. evicky, CBE 6333 Review of Vector Analysis in Cartesian Coordinates Scalar: A quantity that has magnitude, but no direction. Examples are mass, temperature, pressure, time, distance, and real numbers.
1 VECTOR SPACES AND SUBSPACES
1 VECTOR SPACES AND SUBSPACES What is a vector? Many are familiar with the concept of a vector as: Something which has magnitude and direction. an ordered pair or triple. a description for quantities such
7.2 Quadratic Equations
476 CHAPTER 7 Graphs, Equations, and Inequalities 7. Quadratic Equations Now Work the Are You Prepared? problems on page 48. OBJECTIVES 1 Solve Quadratic Equations by Factoring (p. 476) Solve Quadratic
AP Physics - Vector Algrebra Tutorial
AP Physics - Vector Algrebra Tutorial Thomas Jefferson High School for Science and Technology AP Physics Team Summer 2013 1 CONTENTS CONTENTS Contents 1 Scalars and Vectors 3 2 Rectangular and Polar Form
Review Sheet for Test 1
Review Sheet for Test 1 Math 261-00 2 6 2004 These problems are provided to help you study. The presence of a problem on this handout does not imply that there will be a similar problem on the test. And
Higher Education Math Placement
Higher Education Math Placement Placement Assessment Problem Types 1. Whole Numbers, Fractions, and Decimals 1.1 Operations with Whole Numbers Addition with carry Subtraction with borrowing Multiplication
Review A: Vector Analysis
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Review A: Vector Analysis A... A-0 A.1 Vectors A-2 A.1.1 Introduction A-2 A.1.2 Properties of a Vector A-2 A.1.3 Application of Vectors
Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors
Chapter 9. General Matrices An n m matrix is an array a a a m a a a m... = [a ij]. a n a n a nm The matrix A has n row vectors and m column vectors row i (A) = [a i, a i,..., a im ] R m a j a j a nj col
... ... . (2,4,5).. ...
12 Three Dimensions ½¾º½ Ì ÓÓÖ Ò Ø ËÝ Ø Ñ So far wehave been investigatingfunctions ofthe form y = f(x), withone independent and one dependent variable Such functions can be represented in two dimensions,
Vector has a magnitude and a direction. Scalar has a magnitude
Vector has a magnitude and a direction Scalar has a magnitude Vector has a magnitude and a direction Scalar has a magnitude a brick on a table Vector has a magnitude and a direction Scalar has a magnitude
Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress
Biggar High School Mathematics Department National 5 Learning Intentions & Success Criteria: Assessing My Progress Expressions & Formulae Topic Learning Intention Success Criteria I understand this Approximation
Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks
Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks Welcome to Thinkwell s Homeschool Precalculus! We re thrilled that you ve decided to make us part of your homeschool curriculum. This lesson
C relative to O being abc,, respectively, then b a c.
2 EP-Program - Strisuksa School - Roi-et Math : Vectors Dr.Wattana Toutip - Department of Mathematics Khon Kaen University 200 :Wattana Toutip [email protected] http://home.kku.ac.th/wattou 2. Vectors A
Metric Spaces. Chapter 7. 7.1. Metrics
Chapter 7 Metric Spaces A metric space is a set X that has a notion of the distance d(x, y) between every pair of points x, y X. The purpose of this chapter is to introduce metric spaces and give some
MATH 095, College Prep Mathematics: Unit Coverage Pre-algebra topics (arithmetic skills) offered through BSE (Basic Skills Education)
MATH 095, College Prep Mathematics: Unit Coverage Pre-algebra topics (arithmetic skills) offered through BSE (Basic Skills Education) Accurately add, subtract, multiply, and divide whole numbers, integers,
Basic Linear Algebra
Basic Linear Algebra by: Dan Sunday, softsurfer.com Table of Contents Coordinate Systems 1 Points and Vectors Basic Definitions Vector Addition Scalar Multiplication 3 Affine Addition 3 Vector Length 4
Mathematics Notes for Class 12 chapter 10. Vector Algebra
1 P a g e Mathematics Notes for Class 12 chapter 10. Vector Algebra A vector has direction and magnitude both but scalar has only magnitude. Magnitude of a vector a is denoted by a or a. It is non-negative
Bedford, Fowler: Statics. Chapter 4: System of Forces and Moments, Examples via TK Solver
System of Forces and Moments Introduction The moment vector of a force vector,, with respect to a point has a magnitude equal to the product of the force magnitude, F, and the perpendicular distance from
Problem set on Cross Product
1 Calculate the vector product of a and b given that a= 2i + j + k and b = i j k (Ans 3 j - 3 k ) 2 Calculate the vector product of i - j and i + j (Ans ) 3 Find the unit vectors that are perpendicular
9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes
The Scalar Product 9.4 Introduction There are two kinds of multiplication involving vectors. The first is known as the scalar product or dot product. This is so-called because when the scalar product of
Chapter 17. Orthogonal Matrices and Symmetries of Space
Chapter 17. Orthogonal Matrices and Symmetries of Space Take a random matrix, say 1 3 A = 4 5 6, 7 8 9 and compare the lengths of e 1 and Ae 1. The vector e 1 has length 1, while Ae 1 = (1, 4, 7) has length
Inner Product Spaces
Math 571 Inner Product Spaces 1. Preliminaries An inner product space is a vector space V along with a function, called an inner product which associates each pair of vectors u, v with a scalar u, v, and
Name Class. Date Section. Test Form A Chapter 11. Chapter 11 Test Bank 155
Chapter Test Bank 55 Test Form A Chapter Name Class Date Section. Find a unit vector in the direction of v if v is the vector from P,, 3 to Q,, 0. (a) 3i 3j 3k (b) i j k 3 i 3 j 3 k 3 i 3 j 3 k. Calculate
VECTOR ALGEBRA. 10.1.1 A quantity that has magnitude as well as direction is called a vector. is given by a and is represented by a.
VECTOR ALGEBRA Chapter 10 101 Overview 1011 A quantity that has magnitude as well as direction is called a vector 101 The unit vector in the direction of a a is given y a and is represented y a 101 Position
Section V.3: Dot Product
Section V.3: Dot Product Introduction So far we have looked at operations on a single vector. There are a number of ways to combine two vectors. Vector addition and subtraction will not be covered here,
Similarity and Diagonalization. Similar Matrices
MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that
