d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Similar documents
Functions of Several Variables

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

14.6 Directional Derivatives and the Gradient Vector

REVIEW I MATH 254 Calculus IV. Exam I (Friday, April 29) will cover sections

Gradient and Directional Derivatives

we wish to minimize this function; to make life easier, we may minimize

What you will learn today

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

Lagrange multipliers October 2013

12.7 Tangent Planes and Normal Lines

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Lagrange multipliers 14.8

3. The three points (2, 4, 1), (1, 2, 2) and (5, 2, 2) determine a plane. Which of the following points is in that plane?

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

f for Directional Derivatives and Gradient The gradient vector is calculated using partial derivatives of the function f(x,y).

14.5 Directional Derivatives and the Gradient Vector

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

TEST 3 REVIEW DAVID BEN MCREYNOLDS

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 27 / 45

Kevin James. MTHSC 206 Section 15.6 Directional Derivatives and the Gra

3.6 Directional Derivatives and the Gradient Vector

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 28 / 46

Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves

Chapter 5 Partial Differentiation

Directional Derivatives and the Gradient Vector Part 2

27. Tangent Planes & Approximations

Multivariate Calculus: Review Problems for Examination Two

Practice problems. 1. Given a = 3i 2j and b = 2i + j. Write c = i + j in terms of a and b.

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

t dt ds Then, in the last class, we showed that F(s) = <2s/3, 1 2s/3, s/3> is arclength parametrization. Therefore,

13.5 DIRECTIONAL DERIVATIVES and the GRADIENT VECTOR

Directional Derivatives and the Gradient Vector Part 2

Math 206 First Midterm October 5, 2012

18.02 Final Exam. y = 0

Linear Transformations

Outcomes List for Math Multivariable Calculus (9 th edition of text) Spring

3.7. Vertex and tangent

NAME: Section # SSN: X X X X

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

Practice problems from old exams for math 233

Background for Surface Integration

Practice problems from old exams for math 233 William H. Meeks III December 21, 2009

Surfaces and Integral Curves

Multivariate Calculus Review Problems for Examination Two

Math 126 Final Examination Autumn CHECK that your exam contains 9 problems on 10 pages.

UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS ) CHAPTER 3: Partial derivatives and differentiation

MAT203 OVERVIEW OF CONTENTS AND SAMPLE PROBLEMS

Math 124 Final Examination Winter 2015 !!! READ...INSTRUCTIONS...READ!!!

MATH 31A HOMEWORK 9 (DUE 12/6) PARTS (A) AND (B) SECTION 5.4. f(x) = x + 1 x 2 + 9, F (7) = 0

302 CHAPTER 3. FUNCTIONS OF SEVERAL VARIABLES. 4. Function of several variables, their domain. 6. Limit of a function of several variables

First of all, we need to know what it means for a parameterize curve to be differentiable. FACT:

Solution of final examination

MATH 19520/51 Class 6

Math 253, Section 102, Fall 2006 Practice Final Solutions

Directional Derivatives as Vectors

Volumes of Solids of Revolution Lecture #6 a

MA 243 Calculus III Fall Assignment 1. Reading assignments are found in James Stewart s Calculus (Early Transcendentals)

Let and be a differentiable function. Let Then be the level surface given by

Jim Lambers MAT 169 Fall Semester Lecture 33 Notes

Workbook. MAT 397: Calculus III

Quiz 6 Practice Problems

x 6 + λ 2 x 6 = for the curve y = 1 2 x3 gives f(1, 1 2 ) = λ actually has another solution besides λ = 1 2 = However, the equation λ

6. Find the equation of the plane that passes through the point (-1,2,1) and contains the line x = y = z.

(c) 0 (d) (a) 27 (b) (e) x 2 3x2

MATH 1020 WORKSHEET 10.1 Parametric Equations

Math 265 Exam 3 Solutions

MATH 2023 Multivariable Calculus

Calculators ARE NOT Permitted On This Portion Of The Exam 28 Questions - 55 Minutes

Introduction to PDEs: Notation, Terminology and Key Concepts

13.1. Functions of Several Variables. Introduction to Functions of Several Variables. Functions of Several Variables. Objectives. Example 1 Solution

Worksheet 2.2: Partial Derivatives

Lines and Planes in 3D

7-5 Parametric Equations

Put your initials on the top of every page, in case the pages become separated.

Math 5BI: Problem Set 2 The Chain Rule

Without fully opening the exam, check that you have pages 1 through 11.

MATH 19520/51 Class 8

Review 1. Richard Koch. April 23, 2005

Walt Whitman High School SUMMER REVIEW PACKET. For students entering AP CALCULUS BC

1.5 Equations of Lines and Planes in 3-D

Exam 3 SCORE. MA 114 Exam 3 Spring Section and/or TA:

Assignment Assignment for Lesson 11.1

Mat 241 Homework Set 7 Due Professor David Schultz

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002

10-2 Circles. Warm Up Lesson Presentation Lesson Quiz. Holt Algebra2 2

Updated: August 24, 2016 Calculus III Section Math 232. Calculus III. Brian Veitch Fall 2015 Northern Illinois University

The Differential df, the Gradient f, & the Directional Derivative Dû f sec 14.4 (cont), Goals. Warm-up: Differentiability. Notes. Notes.

Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives

HOMEWORK ASSIGNMENT #4, MATH 253

MA 174: Multivariable Calculus Final EXAM (practice) NO CALCULATORS, BOOKS, OR PAPERS ARE ALLOWED. Use the back of the test pages for scrap paper.

AP Calculus AB Unit 2 Assessment

MATH 200 (Fall 2016) Exam 1 Solutions (a) (10 points) Find an equation of the sphere with center ( 2, 1, 4).

Announcements. Topics: To Do:

10.1 Curves Defined by Parametric Equations

MAT175 Overview and Sample Problems

Increasing/Decreasing Behavior

Surfaces and Partial Derivatives

The diagram above shows a sketch of the curve C with parametric equations

Transcription:

Gradients and the Directional Derivative In 14.3, we discussed the partial derivatives f f and, which tell us the rate of change of the x y height of the surface defined by f in the x direction and the y direction, respectively. These are rather severe restrictions on our knowledge of the behavior of the surface; we would like to be able to determine the surface s rate of change in any chosen direction, not just along the x or y axis. We will develop the tools to do so in this section. The Gradient Vector If the graph of f(x, y) is a sufficiently nice surface, we can think about its level curves at height c, f(x, y) = c. A slightly different way to think about a chosen level curve f(x, y) = c is to think about a vector function r(t) = g(t) i + h(t) j that traces out the same curve in the xy plane. In particular, this allows us to think of f(x, y) = c as f(g(t), h(t)) = c; in other words, we turn f into a function of one variable, t. Let s differentiate the relationship with respect to t: d f dg f(g(t), h(t)) = dt x dt + f dh y dt. Since f(g(t), h(t)) = c and d c = 0 (c is a constant), we have dt f dg x dt + f dh y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: f dg x dt + f ( dh f y dt = x i + f ) ( y dg j dt i + dh ) dt j. In particular, putting the two relationships together, we have ( f x i + f ) ( y dg j dt i + dh ) dt j = 0 (1) 1

for any differentiable multivariate function f. Since r(t) = g(t) i + h(t) j, the function dg dt i + dh dt j is precisely dr, which is a vector that is tangent to the level curve and pointing in the direction of dt increasing t. The function f x i + f y j on the left-hand side of the dot product is important enough that we will give it a name: Definition 0.0.1. The gradient f of the function f(x, y) is defined to be the vector function So the equation in line (1) becomes f = f x i + f y j. f dr dt = 0; since the two vector functions have dot product 0, f and dr are always orthogonal. As noted dt above, dr is tangent to the level curve, so that f is normal to the level curve. dt Theorem 0.0.2. Given a differentiable function f(x, y), the value the gradient f at (x 0, y 0 ) is a vector that is normal to the level curve through f(x 0, y 0 ). This fact will become extremely useful once we discuss the directional derivative. The following rules will help us to evaluate gradient vectors efficiently: Theorem 0.0.3. If f(x, y) and g(x, y) are differentiable functions and k is any constant, then: 2

1. (kf) = k( f) 2. (f ± g) = f ± g 3. (fg) = f( g) + g( f) ( ) f g( f) f( g) 4. = g g 2. The Directional Derivative We now turn to the directional derivative. As indicated before, we wish to have a way to discuss the rate of change of the function f(x, y) in any direction, not just along the x or y axis. Given a function f(x, y) whose surface is graphed below, consider the point f(x 0, y 0 ): Directly below f(x 0, y 0 ) is the point (x 0, y 0, 0) in the xy plane. We may wish to determine the rate of change of the surface at f(x 0, y 0 ) in a particular direction, say given by the unit vector u = a i + b j: We can think about the line in the xy plane in the direction given by u through (x 0, y 0 ): 3

This line has parametric equations given by x = x 0 + ta, y = y 0 + tb, where t is a parameter. Varying t causes the x and y variables to move along this line; plugging the values for x and y along the line into f(x, y) corresponds to moving along the surface in the direction given by the line. In all, we think of f as being controlled by t, f(x, y) = f(x 0 + ta, y 0 + tb); i.e. as a function in terms of the single variable t. Thus we can differentiate f using ideas from single variable calculus. Definition 0.0.4. The directional derivative of the function f at P 0 = (x 0, y 0 ) in the direction of the unit vector u = a i + b j is if the limit exists. f(x 0 + ha, y 0 + hb) f(x 0, y 0 ) D u f(x 0, y 0 ) = lim, h 0 h The value for the directional derivative of f in the direction u at f(x 0, y 0 ) is precisely: 1. The slope of the line in the direction u that is tangent to the surface at f(x 0, y 0 ) (the direction of slope is determined using the right-hand rule with u and k) 2. The rate of change of the height of f at f(x 0, y 0 ) in the direction given by u. If we choose u to be the unit vector i, the formula for the directional derivative becomes D i f(x f(x 0 + h, y 0 ) f(x 0, y 0 ) 0, y 0 ) = lim, h 0 h which is precisely the partial derivative of f with respect to x. This makes sense, since directional derivative in the direction i means that we should differentiate f in the x direction. As we might expect, calculating the directional derivative using the limit definition above is quite tedious. While we will not go through the details here, it turns out that the directional derivative can be calculated much more readily using the gradient. 4

Theorem 3. If f(x, y) is differentiable and u = a, b is a unit vector, then the derivative of f in the direction u is precisely D u f(x, y) = f(x, y) u. In other words, to calculate the directional derivative of f in the direction u at the point (x, y), we can evaluate f at (x, y), then take the dot product of this vector with u. This formula gives us quite a bit of information about the role of f. Recall that an alternate form of the dot product formula is u v = u v cos θ, where θ is the angle between the two vectors. In our case, we are considering Since u is a unit vector, the formula reduces to D u f(x, y) = f(x, y) u = f(x, y) u cos θ. f(x, y) u = f(x, y) cos θ. Since 1 cos θ 1, the maximum value for D u f (i.e. maximum rate of change of f) occurs when cos θ = 1, i.e. θ = 0, and the minimum value for D u f occurs when cos θ = 1, i.e. θ = π, so that Thus we have the following properties: f D u f f. 1. At any point (x 0, y 0 ), f increases fastest when u is pointing in the direction f(x, y), and the largest value for the directional derivative at (x 0, y 0 ) is D u = f. 2. At any point (x 0, y 0 ), f decreases fastest when v is pointing in the direction f(x, y), and the smallest value for the directional derivative at (x 0, y 0 ) is D v = f. 3. At any point (x 0, y 0 ), if the direction vector w is orthogonal to f(x, y), then the directional derivative in the direction w is precisely 0, which means that v points along the level curve of f at height f(x 0, y 0 ). In particular, the maximum rate of change of f at any point f(x 0, y 0 ) will always be in the direction orthogonal to the level curve through f(x 0, y 0 ). An interesting application of this fact can be seen on topographical maps; rivers are always perpendicular to the level curves on the map, since they flow in the direction of most rapid elevation decrease. Examples: Given f(x, y) = e x2 +y 2, find the rate of change of f at ( 2, 2) in the direction 2 i + j. Since the formula for directional derivative is D u f = f(x, y) u,

we will need to know the gradient vector at ( 2, 2), and will need to find a unit vector pointing in the direction 2 i + j. The gradient is its value at ( 2, 2) is f = 2xe x2 +y 2 i + 2ye x2 +y 2 j; f( 2, 2) = 2e 4 2 i + 2e 4 2 j. Since the length of 2 i + j is, which is clearly not a unit vector, we will set Then D u f is (2e 4 2 i + 2e 4 2 2 j) ( i + 1 ) j u = 2 i + 1 j. = (2e 4 ( ) 2 2) + (2e 4 ) 1 2)( = 4e4 2 + 2e4 2 = 6e4 2 = 6e 4 2. So the rate of change of f in the direction 2 i + j is 6e 4 2. Given f(x, y) = x 2 + y 2, determine f and find the maximum rate of change of f at (3, 4). Then sketch the gradient vector at (3, 4) on the level curve that passes through this point. The gradient is f = 2x i + 2y j. Since the length of the gradient at (x 0, y 0 ) is the maximum value for the derivative of f(x, y) at (x 0, y 0 ), we can find the maximum rate of change of f at (3, 4) by evaluating f at (3, 4), then finding the length of this vector: f(3, 4) = 6 i + 8 j, and f(3, 4) = 36 + 64 = 100 = 10. In other words, if we could stand at f(3, 4) on the surface f, we would see the steepest ascent of f in the direction 6 i + 8 j, and the rate of change in this direction would be 10. The level curve of f that passes through (3, 4) is at height f(3, 4) = 9 + 16 = 2. So the level curve is the set of all (x, y) so that x 2 + y 2 = 2, i.e. the circle of radius centered at the origin. We need to sketch the gradient vector f(3, 4) = 6 i + 8 j 6

at this point: Notice that the gradient vector is indeed orthogonal to the level curve. The temperature in degrees Celsius on the surface of a metal plate is T (x, y) = 20 4x 2 y 2, where x and y are measured in centimeters. In what direction from (2, 3) does the temperature increase most rapidly, and what is the rate of increase? 7

The most rapid rate of increase of T occurs in the direction of f = 8x i 2y j; at the point (2, 3), the gradient points in the direction f(2, 3) = 16 i + 6 j. The rate of increase at the point in this direction is f(2, 3) = 26 + 36 = 292 17.09 per centimeter. If f(x, y, z) is a function of three independent variables, the same definitions for gradient and directional derivative apply almost exactly; we simply need to extend them to the third variable. Definition 0.0.. If f(x, y, z) is a differentiable function and u = u 1 i + u 2 j + u 3 k is a unit vector, then the gradient of f is f = f x i + f y j + f z k, and the directional derivative of f in the direction of f in the direction u is D u f = f u = f x u 1 + f y u 2 + f z u 3. Recall that, in the two variable case, f (x0,y 0 ) is normal to the level curve through f(x 0, y 0 ). In the three variable case, f (x0,y 0,z 0 ) is normal to the level surface through f(x 0, y 0, z 0 ). Tangent Planes to Level Surfaces If f(x, y, z) is a function of three independent variables, then f(x, y, z) = k is a level surface of f. Thus it makes sense to discuss tangent planes of the level surface in other words, planes tangent to the level surface at a given point. In order to find an equation for the plane, we must know (1) a point through which the plane passes, and (2) a vector normal to the plane. Fortunately, if f(x, y, z) is a function of three variables, then f is always normal to the level surface f(x, y, z) = k, so we may use f as the normal vector for the plane. More formally, Definition 0.0.6. The tangent plane to the level surface f(x, y, z) = k at P 0 = (x 0, y 0, z 0 ) is the plane through (x 0, y 0, z 0 ) that is normal to f. then If we want the plane through P 0 = (x 0, y 0, z 0 ), and the gradient of f is given by f = f x i + f y j + f z k, f(x 0, y 0, z 0 ) = f x (x 0, y 0, z 0 ) i + f y (x 0, y 0, z 0 ) j + f z (x 0, y 0, z 0 ) k; thus f x (x 0, y 0, z 0 ), f y (x 0, y 0, z 0 ), f z (x 0, y 0, z 0 ) is normal to the surface, and we can use this vector to write the equation for the plane tangent to f(x, y, z) = c at P 0. We have all the information we need to write the equation for the plane (as well as for the normal line to the surface through P 0 ): 8

Theorem 19. The equation of the plane tangent to the level surface f(x, y, z) = k at P 0 = (x 0, y 0, z 0 ) is f x (x 0, y 0, z 0 )(x x 0 ) + f y (x 0, y 0, z 0 )(y y 0 ) + f z (x 0, y 0, z 0 )(z z 0 ) = 0. The parametric equations for the line through P 0 = (x 0, y 0, z 0 ) normal to the level surface f(x, y, z) = k are x = x 0 + f x (x 0, y 0, z 0 )t, y = y 0 + f y (x 0, y 0, z 0 )t, z = z 0 + f z (x 0, y 0, z 0 )t. Examples: Let f(x, y, z) = x 2 + y 2 + z 2. Determine the formula for the plane that passes through the point (1, 2, 2) and is tangent to the level surface of f at w = 9. To use the formula, we will need to know the values for the partials f x = 2x, f y = 2y, and f z = 2z at (1, 2, 2). We have So the formula for the tangent plane is f x (1, 2, 2) = 2, f y (1, 2, 2) = 4, and f z (1, 2, 2) = 4. 2(x 1) + 4(y 2) + 4(z 2) = 0. The surfaces x 2 + z 2 = 2 and y 2 + z 2 = 2 intersect along two curves in space. Find the equation for a line tangent to the curve that passes through the point (3, 3, 4), then find the angle between the gradients of the two surfaces at this point. The surfaces and their lines of intersection are graphed below: 9

Let s zoom in on the point (3, 3, 4), marked in black: The curve of intersection and (3, 3, 4) are graphed without the surfaces: To find the equation for the line, we need to know a point on the line ((3, 3, 4) will do) as well as a vector parallel to the line. 10

We can think of the surfaces as level surfaces of the functions f(x, y, z) = x 2 +z 2 and g(x, y, z) = y 2 +z 2. Then the gradients f and g are orthogonal to the level surfaces of f and g, respectively. In particular, if we take the cross product f g, the resulting vector will be orthogonal to each of f and g, thus parallel to the line tangent to the curve of intersection. The gradients are f = 2x i + 2z k and g = 2y j + 2z k. Then the gradient vectors at P 0 = (3, 3, 4) are f = 6 i + 8 k and g = 6 j + 8 k. Here the gradients are graphed on the surfaces: The cross product f g is f g = i j k 6 0 8 0 6 8 = 48 i 48 j + 36 k. The vector f g is graphed in purple below: 11

This vector is parallel to the line tangent to the curve of intersection, so the parametric equations for this line are x = 3 48t, y = 3 48t, and z = 4 + 36t. The line is graphed below in purple: To determine the angle between the gradients f and g at (3, 3, 4), we can use the dot product formula f g = f g cos θ. To use the formula, we need to find f g at (3, 3, 4), which is given by f g = 6 0 + 0 6 + 8 8 = 64. We also need to calculate the lengths of each of the gradients at (3, 3, 4): f = 36 + 48 = 2 21, 12

and g = 36 + 48 = 2 21. So the cosine of the angle between the gradients is So the angle between the gradients is ( ) 64 θ = cos 1 84 cos θ = 64 84..7 radians 40. 13