MATH 8 FALL 2010 CLASS 27, 11/19/ Directional derivatives Recall that the definitions of partial derivatives of f(x, y) involved limits

Similar documents
FUNCTIONS OF SEVERAL VARIABLES AND PARTIAL DIFFERENTIATION

i + u 2 j be the unit vector that has its initial point at (a, b) and points in the desired direction. It determines a line in the xy-plane:

Lecture 4 : Monday April 6th

2.1 Partial Derivatives

Practice problems from old exams for math 233

Math 5BI: Problem Set 1 Linearizing functions of several variables

Exam 2 Review Sheet. r(t) = x(t), y(t), z(t)

Solutions to the problems from Written assignment 2 Math 222 Winter 2015

WESI 205 Workbook. 1 Review. 2 Graphing in 3D

Math 148 Exam III Practice Problems

Definitions and claims functions of several variables

4 to find the dimensions of the rectangle that have the maximum area. 2y A =?? f(x, y) = (2x)(2y) = 4xy

Exam 2 Summary. 1. The domain of a function is the set of all possible inputes of the function and the range is the set of all outputs.

CHAPTER 11 PARTIAL DERIVATIVES

MATH 259 FINAL EXAM. Friday, May 8, Alexandra Oleksii Reshma Stephen William Klimova Mostovyi Ramadurai Russel Boney A C D G H B F E

The Chain Rule, Higher Partial Derivatives & Opti- mization

14.4. Tangent Planes. Tangent Planes. Tangent Planes. Tangent Planes. Partial Derivatives. Tangent Planes and Linear Approximations

Independence of Path and Conservative Vector Fields

Test Yourself. 11. The angle in degrees between u and w. 12. A vector parallel to v, but of length 2.

Differentiable functions (Sec. 14.4)

Practice problems from old exams for math 233

1. Vector Fields. f 1 (x, y, z)i + f 2 (x, y, z)j + f 3 (x, y, z)k.

MATH Review Exam II 03/06/11

Directional Derivative, Gradient and Level Set

Partial Differentiation 1 Introduction

MATH 12 CLASS 9 NOTES, OCT Contents 1. Tangent planes 1 2. Definition of differentiability 3 3. Differentials 4

Mock final exam Math fall 2007

1. Let f(x, y) = 4x 2 4xy + 4y 2, and suppose x = cos t and y = sin t. Find df dt using the chain rule.

Review guide for midterm 2 in Math 233 March 30, 2009

LECTURE 19 - LAGRANGE MULTIPLIERS

MATH 105: Midterm #1 Practice Problems

Section 14.3 Partial Derivatives

Lecture 15. Global extrema and Lagrange multipliers. Dan Nichols MATH 233, Spring 2018 University of Massachusetts

(d) If a particle moves at a constant speed, then its velocity and acceleration are perpendicular.

MATH 234 THIRD SEMESTER CALCULUS

Calculus II Fall 2014

14.6 Directional Derivatives

ES 111 Mathematical Methods in the Earth Sciences Lecture Outline 6 - Tues 17th Oct 2017 Functions of Several Variables and Partial Derivatives

266&deployment= &UserPass=b3733cde68af274d036da170749a68f6

B) 0 C) 1 D) No limit. x2 + y2 4) A) 2 B) 0 C) 1 D) No limit. A) 1 B) 2 C) 0 D) No limit. 8xy 6) A) 1 B) 0 C) π D) -1

Chapter 16. Partial Derivatives

Lecture 19. Vector fields. Dan Nichols MATH 233, Spring 2018 University of Massachusetts. April 10, 2018.

Section 15.3 Partial Derivatives

Final Exam Review Problems. P 1. Find the critical points of f(x, y) = x 2 y + 2y 2 8xy + 11 and classify them.

SYDE 112, LECTURE 34 & 35: Optimization on Restricted Domains and Lagrange Multipliers

Functions of several variables

Review Problems. Calculus IIIA: page 1 of??

11.2 LIMITS AND CONTINUITY

33. Riemann Summation over Rectangular Regions

[f(t)] 2 + [g(t)] 2 + [h(t)] 2 dt. [f(u)] 2 + [g(u)] 2 + [h(u)] 2 du. The Fundamental Theorem of Calculus implies that s(t) is differentiable and

ANSWER KEY. (a) For each of the following partials derivatives, use the contour plot to decide whether they are positive, negative, or zero.

Math for Economics 1 New York University FINAL EXAM, Fall 2013 VERSION A

REVIEW SHEET FOR MIDTERM 2: ADVANCED

Level Curves, Partial Derivatives

SOLUTIONS 2. PRACTICE EXAM 2. HOURLY. Problem 1) TF questions (20 points) Circle the correct letter. No justifications are needed.

VectorPlot[{y^2-2x*y,3x*y-6*x^2},{x,-5,5},{y,-5,5}]

Math 32A Discussion Session Week 9 Notes November 28 and 30, 2017

Discussion 8 Solution Thursday, February 10th. Consider the function f(x, y) := y 2 x 2.

Review Sheet for Math 230, Midterm exam 2. Fall 2006

10.1 Curves defined by parametric equations

MATH 261 EXAM II PRACTICE PROBLEMS

Examples: Find the domain and range of the function f(x, y) = 1 x y 2.

Section 3: Functions of several variables.

Math Final Exam - 6/11/2015

EXERCISES CHAPTER 11. z = f(x, y) = A x α 1. x y ; (3) z = x2 + 4x + 2y. Graph the domain of the function and isoquants for z = 1 and z = 2.

LINEAR EQUATIONS IN TWO VARIABLES

MATH Exam 2 Solutions November 16, 2015

Instructions: Good luck! Math 21a Second Midterm Exam Spring, 2009

We like to depict a vector field by drawing the outputs as vectors with their tails at the input (see below).

Unit 7 Partial Derivatives and Optimization

Section 7.2 Logarithmic Functions

Goals: To study constrained optimization; that is, the maximizing or minimizing of a function subject to a constraint (or side condition).

MAT01B1: Calculus with Polar coordinates

MATH 253 Page 1 of 7 Student-No.: Midterm 2 November 16, 2016 Duration: 50 minutes This test has 4 questions on 7 pages, for a total of 40 points.

Name: ID: Section: Math 233 Exam 2. Page 1. This exam has 17 questions:

47. Conservative Vector Fields

LESSON 18: INTRODUCTION TO FUNCTIONS OF SEVERAL VARIABLES MATH FALL 2018

Practice Problems: Calculus in Polar Coordinates

Lecture 19 - Partial Derivatives and Extrema of Functions of Two Variables

This exam contains 9 problems. CHECK THAT YOU HAVE A COMPLETE EXAM.

11.7 Maximum and Minimum Values

Double Integrals over More General Regions

INTEGRATION OVER NON-RECTANGULAR REGIONS. Contents 1. A slightly more general form of Fubini s Theorem

7/26/2018 SECOND HOURLY PRACTICE I Maths 21a, O.Knill, Summer Name:

Math 2321 Review for Test 2 Fall 11

Lecture 26: Conservative Vector Fields

Chapter 9 Linear equations/graphing. 1) Be able to graph points on coordinate plane 2) Determine the quadrant for a point on coordinate plane

Math 122: Final Exam Review Sheet

Math 259 Winter Recitation Handout 9: Lagrange Multipliers

Unit 8 Trigonometry. Math III Mrs. Valentine

Section 1.3. Slope formula: If the coordinates of two points on the line are known then we can use the slope formula to find the slope of the line.

Math 32, October 22 & 27: Maxima & Minima

6.1 - Introduction to Periodic Functions

Calculus I Handout: Curves and Surfaces in R 3. 1 Curves in R Curves in R 2 1 of 21

Exam 1 Study Guide. Math 223 Section 12 Fall Student s Name

14.1 Functions of Several Variables

Review #Final Exam MATH 142-Drost

(b) ( 1, s3 ) and Figure 18 shows the resulting curve. Notice that this rose has 16 loops.

Calculus 3 Exam 2 31 October 2017

Math 2411 Calc III Practice Exam 2

Transcription:

MATH 8 FALL 2010 CLASS 27, 11/19/2010 1 Directional derivatives Recall that the definitions of partial derivatives of f(x, y) involved limits lim h 0 f(a + h, b) f(a, b), lim h f(a, b + h) f(a, b) In these two limits, we only need to know the values of f(x, y) when y = b, x = a respectively: that is, we only need to know the values of f(x, y) on some line in the xy-plane which passes through (a, b) Furthermore, these lines are either horizontal or vertical If we think of the functions f(x, b) or f(a, y) as functions of the single variable x, y, respectively, then the partial derivatives of f(x, y) correspond to the usual derivatives of these single variable functions We want to now describe a generalization of this idea, called a directional derivative Suppose that we consider f(x, y) on some line passing through (a, b) which is not necessarily vertical or horizontal anymore Then how can we calculate the rate of change of this function on this line? Before tackling this problem, we consider the question of how we can describe the various lines which pass through f(x, y) We can, for example, use parametric equations given by using a direction vector for a line and the point (a, b) However, for our purposes, we will want to parameterize these lines using the parameter t in such a way that we travel a distance of one unit on the line when t changes by 1 Example Consider the line given by x = 1 + 3t, y = 3 + 4t What is the distance between two points (1 + 3t, 3 + 4t) and (1 + 3(t + 1), 3 + 4(t + 1))? That is, when we increment t by 1, how far does the point (x, y) travel? A quick calculation shows that the answer is 5; and in general, that if a line has direction vector v, then two points whose parameter t are separated by 1 will be distance v apart If we want to re-parameterize this line in such a way so that we travel unit distance when t changes by 1, we will need to multiply v by a scalar to make this vector unit length: that is, we need to find a unit vector which points in the same direction as v We know that to do this we should divide v by v = 5; therefore, x = 1 + 3t/5, y = 3 + 4t/5 gives another parameterization of this line which satisfies the property that when t increases by 1, the point (x, y) moves by distance 1 Now suppose we are given a function f(x, y), a point (a, b), and a unit vector u = u 1, u 2, which we think of as describing a line passing through (a, b) This line is given by the parametric equations x = a + u 1 t, y = b + u 2 t Then the directional derivative of f(x, y) at (a, b) in the direction (or with respect to the direction) u is written as D u f and defined to be the limit f(a + u 1 h, b + u 2 h) f(a, b) D u f(a, b) = lim This can be thought of as the usual derivative of the single variable function f(a+u 1 t, b+u 2 t) with respect to the variable t 1

2 MATH 8 FALL 2010 CLASS 27, 11/19/2010 Remarks This definition of directional derivative is a genuine generalization of partial derivatives: f x (a, b) corresponds to the directional derivative of f in the direction of the unit vector i = 1, 0 : D i f(a, b), and f y (a, b) corresponds to the directional derivative of f in the direction of j = 0, 1 When calculating directional derivatives, be absolutely sure that you are using a unit vector in the definition For example, if you use 3, 4 instead of 3/5, 4/5, your answer will be off by a factor of 5 There are two unit vectors which can be used as direction vectors for a line, and they are negatives of each other When calculating directional derivatives, the choice of unit vector does matter, since replacing a direction vector with its negative will flip the sign of the corresponding directional derivative This corresponds to the intuitive fact that if you go uphill when walking in some direction, if you go in the opposite direction you will go downhill at an equal rate The value of the directional derivative can be interpreted as the rate of change of the function f(x, y) in the direction u If you imagine f(x, y) as describing the height of a hill over (x, y), then the directional derivative is a measure of how steep the hill is in the direction of u Related to the above remark, if we look at the graph of the function f(a+u 1 t, b+u 2 t), this gives a curve in three dimensions Then the tangent line to this curve at t = 0, or (a, b, f(a, b)) can be thought of as having slope equal to the directional derivative of f(x, y) at (a, b), in the direction of u 1, u 2 2 The gradient We now try to find a quick way of calculating directional derivatives The definition of a directional derivative is f(a + u 1 h, b + u 2 h) f(a, b) D u f(a, b) = lim We can rewrite the numerator of this expression as f(a + u 1 h, b + u 2 h) f(a + u 1 h, b) + (f(a + u 1 h, b) f(a, b)) In the first term, only the y variable changes, while in the second term, only the x variable changes Therefore, it should not be too surprising (and one can easily check once one knows to perform this trick) that the directional derivative in the direction of u = u 1, u 2 is equal to u 1 f x (a, b) + u 2 f y (a, b), at least when the function f(x, y) is differentiable at (a, b) That is, computing a directional derivative boils down to calculating some expression involving partial derivatives A useful way of remembering this formula involves the following function: Definition Let f(x, y) be a function of two variables Then the gradient of f is the vector-valued function written f and defined by f(x, y) = f x (x, y), f y (x, y) f is only defined whenever both f x, f y are both defined

MATH 8 FALL 2010 CLASS 27, 11/19/2010 3 We commonly call del and may call the gradient of f del f Sometimes you may see gradf instead of f In certain English-speaking countries (India in particular), del is instead called nabla With this definition in hand, the directional derivative of f(x, y) at (a, b) in the direction of the unit vector u = u 1, u 2 is given by the dot product f(a, b) u 1, u 2 = u 1 f x (a, b) + u 2 f y (a, b) Examples Compute the gradient of f(x, y) = x 2 y+sin(xy) Calculating a gradient is equivalent to calculating partial derivatives: f x = 2xy + y cos(xy), f y = x 2 + x cos(xy), so the gradient of f is given by f = 2xy + y cos(xy), x 2 + x cos(xy) Calculate the directional derivative of f(x, y) = x 2 + y 2 at (4, 7) in the direction 1, 2 Remember that when calculating directional derivatives, our directions need to be specified by a unit vector The unit vector that points in the same direction as 1, 2, is 1/ 5, 2/ 5 The gradient of f(x, y) is f = 2x, 2y In particular, f(4, 7) = 8, 14 Then the directional derivative in question is 8, 14 1 1, 2 = 36 5 5 Calculate the directional derivative of f(x, y) = e xy at (0, 1) in the direction of 1, 1 The gradient of f(x, y) is f(x, y) = ye xy, xe xy At (0, 1) this is equal to f(0, 1) = 1, 0 Then the directional derivative in question is equal to 1, 0 1 1, 1 = 1 2 2 Sometimes we can specify a direction not using a vector, but instead using an angle For example, we may ask for the directional derivative of a function f(x, y) at (a, b) in the direction of an angle θ = π/3, say By this, we mean the unit vector which forms an angle of θ in the counterclockwise direction with 1, 0 = i To calculate a directional derivative given this description for a direction, we need to find the unit vector which forms an angle θ (in the counterclockwise direction) with 1, 0 This is evidently the vector cos θ, sin θ, which in the case of θ = π/3 is 1/2, 3/2 Then the directional derivative of f(x, y) at (a, b) in the direction θ = π/3 is given by the dot product f(a, b) cos π/3, sin π/3 = f(a, b) 1 2 1, 3 You may sometimes be asked for the angle above the horizontal that the tangent line (or tangent vector) to f(x, y) at (a, b) in the direction of u is If you think of z = f(x, y) as describing the surface of a hill, for instance, then this angle is the angle of ascent as you move in the direction of u For example, consider the function f(x, y) = ln x + ln y At the point (1, 1), what is the angle above the horizontal of the tangent lines to z = f(x, y) in the directions of 1, 0, 1/ 2, 1/ 2? We begin by calculating f(1, 1) = 1, 1 Then the directional derivatives in the direction of 1, 0, 1/ 2, 1/ 2 are 1, 2, respectively The angles of the tangent lines above the horizontals are then arctan 1, arctan 2 Indeed, if we travel unit distance along each of the lines given by these direction vectors, then the z-value of the corresponding tangent line increases by 1, 2 These angles are then given by arctan 1/1, arctan 2/1

4 MATH 8 FALL 2010 CLASS 27, 11/19/2010 We conclude by remarking that all of the above ideas can be generalized to functions of n variables, not just 2 variables For example, given a function f(x 1,, x n ), the gradient of f is the vector-valued function f f =,, f x 1 x n Given a unit vector u = u 1,, u n, the partial derivative of f at (a 1,, a n ) in the direction of u is defined by the limit f(a 1 + u 1 h,, a n + u n h) f(a 1,, a n ) D u f(a 1,, a n ) = lim In practice, we calculate this directional derivative by taking the dot product f(a 1,, a n ) u Example Calculate the directional derivative of f(x, y, z) = xy + y ln z at (1, 2, 1) in the direction of 2, 2, 1 We begin by calculating the gradient of f(x, y, z): f = y, x + ln z, y/z At the point (1, 2, 1), this is equal to f(1, 2, 1) = 2, 1, 2 The unit vector that points in the same direction as 2, 2, 1 is 2/3, 2/3, 1/3, and so the directional derivative is 2, 1, 2 2 3 2, 2, 1 = 8 3 3 The direction of maximum increase Suppose we have a function f(x, y) and a point (a, b) we are interested in If we think about the surface z = f(x, y) and the point above (a, b), then there should be a direction in which f(x, y) increases most rapidly How can we find this direction? The directional derivative of f(x, y) at (a, b) in the direction of a unit vector u 1, u 2 = u is given by the dot product f(a, b) u We want to maximize this number amongst all possible unit vectors u Recall, however, that f(a, b) u = f(a, b) u cos θ, where θ is the angle between f(a, b) and u Since the lengths of these two vectors do not depend on u, this expression is maximal when θ = 1: that is, when u, f(a, b) point in the same direction Therefore, we see that the gradient vector points in the direction in which f is increasing most rapidly, and is increasing at a rate of f(a, b) u = f(a, b) Examples Consider z = x 2 + y 2 At the point (2, 3), in what direction is z increasing most rapidly? How rapidly is z increasing in that direction? We begin by calculating z = 2x, 2y Therefore, z(2, 3) = 4, 6 This is the direction in which z is increasing most rapidly Furthermore, z is increasing at a rate of z(2, 3) = 4 2 + 6 2 = 2 13 in this direction 100 Suppose a hill has height given by f(x, y) = 1 + x 2 If we are at the point (2, 5), + y in what direction should we go if we want to go as downhill as possible? What is the

MATH 8 FALL 2010 CLASS 27, 11/19/2010 5 rate of descent of the hill in that direction? Again, we start by calculating f(x, y) In this case, we have 100( 2x) f(x, y) = (1 + x 2 + y) 2, 100 (1 + x 2 + y) 2 At the point (2, 5), the gradient is equal to f(2, 5) = 4, 1 Therefore, the height increases fastest in the direction of 4, 1 However, we want the direction in which the height decreases the fastest A bit of thought suggests that this should simply be the opposite direction from 4, 1 ; namely, the direction 4, 1 In this direction, the rate of descent is equal to 17 = f(2, 5) 4 The gradient and level curves/surfaces, tangent planes Consider the function f(x, y) = x 2 + y 2 Recall that the level curves of this function are (unevenly) spaced concentric circles On the other hand, the gradient is equal to f(x, y) = 2x, 2y If we sketch the gradient and level curves on the same graph, we quickly see that the gradient vectors all seem to be orthogonal to the level curves of f(x, y) This turns out to be true in general Consider a general level curve f(x, y) = k Suppose we parameterize this level curve by a parameter t, so that x(t), y(t) describes this level curve (It doesn t matter what the exact parameterization is) Then we have f(x(t), y(t)) = k Suppose we differentiate this equation with respect to the variable t, using the chain rule: df dt = f dx x dt + f dy y dt = 0 Recall that dx/dt = x (t), dy/dt = y (t) are the components to tangent vectors of the vector-valued function x(t), y(t) ; that is, x (t), y (t) is the tangent vector to x(t), y(t) In particular, this tangent vector is a direction vector for the tangent line to f(x, y) = k at the point given by the parameter t On the other hand, f(x, y) = the previous equation can be rewritten as f x, f y Therefore, f dx x dt + f dy y dt = f(x, y) x (t), y (t) = 0 That is, f(x, y) is orthogonal to the tangent line to f(x, y) = k, which is equivalent to saying that f(x, y) is orthogonal to the curve f(x, y) = k There was nothing special about the situation of two variables In particular, if instead we have a function f(x, y, z) of three variables, and consider the level surface f(x, y, z) = k, then f(a, b, c), which is now a vector in R 3, will be orthogonal to the tangent line of any curve on f(x, y, z) = k passing through (a, b, c) It is not hard to show that if f is differentiable, these tangent lines actually form a plane, which is the tangent plane to f(x, y, z) = k at (a, b, c) Then what we have shown is that the gradient vector f(a, b, c) is a normal vector for the tangent plane to f(x, y, z) = k at (a, b, c) Furthermore, if we think of the line passing through (a, b, c) with direction vector f(a, b, c), then this line is normal to the tangent plane, and we sometimes call this the normal line to f(x, y, z) = k at (a, b, c) In particular, the tangent plane to f(x, y, z) = k at (a, b, c) has equation f x (a, b, c)(x a) + f y (a, b, c)(y b) + f z (a, b, c)(z c) = 0 Example Consider the sphere x 2 + y 2 + z 2 = 9 Calculate the equation for the tangent plane and normal line to the sphere at (2, 1, 2)

6 MATH 8 FALL 2010 CLASS 27, 11/19/2010 We begin by calculating the gradient of f(x, y, z) = x 2 + y 2 + z 2 We see that f = 2x, 2y, 2z Therefore, the gradient at (2, 1, 2) is equal to f(2, 1, 2) = 4, 2, 4 Therefore, the tangent plane to x 2 + y 2 + z 2 = 9 at (2, 1, 2) has normal vector 4, 2, 4 The equation of this plane must then be 4x + 2y + 4y = 18, or 2x + y + 2y = 9 The normal line has direction vector 4, 2, 4 and passes through (2, 1, 2) Therefore, the normal line is given by parametric equations x = 2 + 4t, y = 1 + 2t, z = 2 + 4t Notice that this line passes through the origin We see that the gradient vector provides a means of calculating not only directional derivatives, but also provides information on the direction of greatest increase or decrease, and also provides a convenient way of calculating the equation of tangent lines or tangent planes to level curves