"

Section 3.6 Directional Derivative Gradient

3.6 Directional Derivative Gradient

In previous section, we learn take derivative of a function z=f(x,y) with respect to x or with respect to y. We can think about the partial derivative with respect to the direction <1,0> and <0,1>. In this section we learn to take derivative at any direction. 

Definition: Directional Derivative

Suppose z=f(x,y) is a function of two variables with a domain of D. Let (x0,y0) be a point in the domain of z and u=<a,b> be an unit vector. Then the directional derivative of f in the direction of u is given by

Duf(x0,y0)=limh0f(x0+ah,y0+bh)f(x0,y0)h

provided the limit exists.

 

Theorem: Directional Derivative of a Function of Two Variables 

Let z=f(x,y) be a function of two variables x and y, and assume that fx(x,y) and fy(x,y) exist. Then the directional derivative of f in the direction of unit vector u=<a,b> is given by 

Duf(x,y)=fx(x,y)a+fy(x,y)b.

Proof: chain rule. 

 

 

 

Example 1: Finding the directional derivative of z=f(x,y)=x2yxy2+2x+y in the direction of u=<12,32>.

 

 

 

Exercise 1: Finding the directional derivative of z=f(x,y)=2x2+x2yy3 in the direction of u=<22,22>.

 

 

 

Remark: Any unit vector u=<a,b> can be rewritten as u=<cos(θ),sin(θ)>. The directional derivative can only be defined for an unit vector. 

 

 

 

Example 2: Finding the directional derivative of z=f(x,y)=x32xy+y2+2xy, in the direction of u=<3,4>.

 

 

 

Exercise 2: Finding the directional derivative of z=f(x,y)=x2+3x2yy2+4x+y, in the direction of u=<3,33>.

 

 

 

Remark: The directional derivative formula can be rewritten as Du=<a.b>f(x,y)=fx(x,y)a+fy(x,y)b =<fx(x,y),fy(x,y)><a,b>.

Definition: 

Let z=f(x,y) be a function of x and y such that fx and fy exist. The vector f(x,y) is called the gradient of f and is defined as 

f(x,y)=<fx(x,y),fy(x,y)> 

The vector f(x,y) is also written as \textquotedblleft grad f .\textquotedblright{}

 

 

 

Example3: Find the gradient f(x,y) where f(x,y)=sin(2x)ey.

 

 

 

Exercise 3: Find the gradient f(x,y) where f(x,y)=ln(y)cos(2x).

 

 

 

Theorem: Properties of the Gradient

Suppose the function z=f(x,y) is differentiable at (x0,y0).

i. If f(x0,y0)=0, then Duf(x0,y0)=0 for any unit vector u. \

ii. If f(x0,y0)0, then Duf(x0,y0) is maximized when u points in the same direction as f(x0,y0). The maximum value of Duf(x0,y0) is ||f(x0,y0)||.

 

 

 

Example 4: Find the direction for which the directional derivative of f(x,y)=3x2+2xy+y2+5y11 at (2,3) is a maximum. What is the maximum value? 

 

 

 

Exercise 4: Find the direction for which the directional derivative of f(x,y)=x22xy+3y2+3y1 at (1,1) is a maximum. What is the maximum value? 

 

 

 

Theorem: Gradient Is Normal to the Level Curve 

Suppose the function z=f(x,y) has continuous first-order partial derivatives in an open disk centered at a point (x0,y0). If f(x0,y0)0, , then f(x0,y0), is normal to the level curve of f at (x0,y0).

 

 

 

Example 5: For the function f(x,y)=x24x+y2+2y+4, find a tangent vector to the level curve at point (1,2). Graph the level curve corresponding to f(x,y)=9 and draw in f(1,2) and a tangent vector.

 

 

 

Exercise 5: For the function f(x,y)=x2+2x+y26y+4, find a tangent vector to the level curve at point (2,1). Graph the level curve corresponding to f(x,y)=7 and draw in f(2,1) and a tangent vector.

 

 

 

Definition: Directional Derivative

Suppose w=f(x,y,z) is a function of three variables with a domain of D. Let (x0,y0,z0) be a point in the domain of w and u=<a,b,c> be an unit vector. Then the directional derivative of f in the direction of u is given by 

Duf(x0,y0,z0)=limh0f(x0+ah,y0+bh,z0+ch)f(x0,y0,z0)h

 provided the limit exists.

 

Theorem: Directional Derivative of a Function of Three Variables 

Let w=f(x,y,z) be a function of three variables x, y and z, and assume that fx(x,y,z), fy(x,y,z) and fz(x,y,z) exist. Then the directional derivative of f in the direction of unit vector u=<a,b.c> is given by 

Duf(x,y,z)=fx(x,y,z)a+fy(x,y,z)b+fz(x,y,z)c.

 

 

Example 6: Calculate Duf(1,2,1) in the direction of u=<2,3,4> for the function f(x,y,z)=x2yy2z+2xyz.

 

 

 

Exercise 6: Calculate Duf(0,1,2) in the direction of u=<1,2,3> for the function f(x,y,z)=x3y+xy2z+2yz2.

 

 

 

Example 7: The temperature T in a metal sphere is inversely proportional to the distance from the center of the sphere (the origin: (0,0,0)). The temperature at point (1,2,2) is 120C.

a. Find the rate of change of the temperature at point (1,2,2) in the direction toward point (2,1,3).

b. Show that, at any point in the sphere, the direction of greatest increase in temperature is given by a vector that points toward the origin.

 

 

 

Group work:

1. The electrical potential (voltage) in a certain region of space is given by the function V(x,y,z)=5x23xy+xyz. 

a. Find the rate of change of the voltage at point (3,4,5) in the direction of the vector <1,1,1>. 

b. In which direction does the voltage change most rapidly at point (3,4,5) ? 

c. What is the maximum rate of change of the voltage at point (3, 4, 5)?

 

2. Find the gradient vector f(x,y)=xeyln(x), at P(3,0). 

 

3. Find the gradient vector f(x,y,z)=xy2+z2, at P(2,1,1).

 

4. Find the derivative of the function of f(x,y)=exy at point (6,7) in the direction the function increases most rapidly. 

 

5. Find the derivative of the function of f(x,y)=arctan(yx) at point (9,9) in the direction the function increases most rapidly. 

 

6. Find the maximum rate of change of f=xey at (1,0) and the direction in which it occurs.

 

7. Find the maximum rate of change of f=cos(3x+2y) at (π6,π8) and the direction in which it occurs.

License

Multivariable Calculus Copyright © by Kuei-Nuan Lin. All Rights Reserved.