Directional Derivatives and Gradient Vectors (Sect. 14.5) .: Remark
Directional Derivatives and Gradient Vectors (Sect. 14.5) .: Remark
Directional Derivatives and Gradient Vectors (Sect. 14.5) .: Remark
Directional derivative of functions of two variables. Partial derivatives and directional derivatives. Directional derivative of functions of three variables. The gradient vector and directional derivatives. Properties of the the gradient vector.
Denition
The directional derivative of the function f : D R2 R at the point P0 = (x0 , y0 ) D in the direction of a unit vector u = ux , uy is given by Du f
P0
= lim
1 f (x0 + ux t , y0 + uy t ) f (x0 , y0 ) , t 0 t
u = 1, 0 = i, then Di f u = 0, 1 = j , then Dj f
P0
= fx (x0 , y0 ). = fy (x0 , y0 ).
P0
f ( x, y )
f ( x, y0 )
fx (x0, y0 )
f (x,y)
f y (x0, y0 )
( Du f )P
f ( x0, y )
11111111111111 00000000000000 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 1111111 0000000 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 1 0 1 0
( x0, y0 )
00000000000000 11111111111111 11111111111111 00000000000000 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111
0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 1 0 0 1
P0 = (x0 , y 0)
|u|=1
Proof.
d = | x x0 , y y0 |, = | ux t , uy t |, = |t | |u|, that is, d = |t |.
Directional derivative of functions of two variables. Partial derivatives and directional derivatives. Directional derivative of functions of three variables. The gradient vector and directional derivatives. Properties of the the gradient vector.
00000000000000 11111111111111 11111111111111 00000000000000 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111 00000000000000 11111111111111
0000000 1111111 1111111 0000000 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 0000000 1111111 1 0 1 0
P0 = (x0 , y 0)
|u|=1
Theorem
If the function f : D R2 R is dierentiable at P0 = (x0 , y0 ) and u = ux , uy is a unit vector, then Du f
P0
= fx (x0 , y0 ) ux + fy (x0 , y0 ) uy .
(t ) f (0) , (0) = lim 1 f f t 0 t 1 = lim f (x0 + ux t , y0 + uy t ) f (x0 , y0 ) , t 0 t = Du f (x0 , y0 ). On the other hand, the chain rule implies: (0) = fx (x0 , y0 ) x (0) + fy (x0 , y0 ) y (0). f Therefore, Du f
P0
= fx (x0 , y0 ) ux + fy (x0 , y0 ) uy .
Directional derivative of functions of two variables. Partial derivatives and directional derivatives. Directional derivative of functions of three variables. The gradient vector and directional derivatives. Properties of the the gradient vector.
= lim
1 f (x0 + ux t , y0 + uy t , z0 + uz t ) f (x0 , y0 , z0 ) , t 0 t
Theorem
If the function f : D R3 R is dierentiable at P0 = (x0 , y0 , z0 ) and u = ux , uy , uz is a unit vector, then Du f
P0
Then, Du f
P0
26 = . 6
Directional derivative of functions of two variables. Partial derivatives and directional derivatives. Directional derivative of functions of three variables. The gradient vector and directional derivatives. Properties of the the gradient vector.
Notation:
For two variable functions: f = fx i + fy j . For two variable functions: f = fx i + fy j + fz k.
Theorem
If f : D Rn R, with n = 2, 3, is a dierentiable function and u is a unit vector, then, Du f = (f ) u.
f(x,y) = x 2 + y 2
y f
Remark:
f = 2r, with r = x, y .
y x
Duf
Directional derivative of functions of two variables. Partial derivatives and directional derivatives. Directional derivative of functions of three variables. The gradient vector and directional derivatives. Properties of the the gradient vector.
The formula above implies: The function f increases the most rapidly when u is in the direction of f , that is, = 0. The maximum increase rate of f is |f |. The function f decreases the most rapidly when u is in the direction of f , that is, = . The maximum decrease rate of f is |f |. The function f does not change along level curve or surfaces, that is, Du f = 0. Therefore, f is perpendicular to the level curves or level surfaces.
P0
1 23 3 1 1 = , = , . 2 9 2 2 3
1 1 vx = vy 2 3
v = 2, 3 .
f
3
3
1 f = ,0 , 2
2 f = 0, , 9
3 3 r(t ) = 1, + t 2, 3 . 2
Theorem
If f , g are dierentiable scalar valued vector functions, g = 0, and k R any constant, then holds, 1. (kf ) = k (f ); 2. (f g ) = f g ; 3. (fg ) = (f ) g + f (g ); f (f ) g f (g ) 4. = . g g2
Review: Dierentiable functions of two variables. The tangent plane to the graph of a function. The linear approximation of a dierentiable function. Bounds for the error of a linear approximation. The dierential of a function.
Review: Scalar functions of one variable. Scalar functions of more than one variable.
x0 ) +
2 (y
y0 )
and
0 as (x , y ) (x0 , y0 ).
Theorem
If the partial derivatives fx and fy of a function f : D R2 R are continuous in an open region R D, then f is dierentiable in R.
Review: Dierentiable functions of two variables. The tangent plane to the graph of a function. The linear approximation of a dierentiable function. Bounds for the error of a linear approximation. The dierential of a function.
Review: Scalar functions of one variable. Scalar functions of more than one variable.
Proof
f ( x, y ) = z n P0 L(x,y)
The plane contains the point 0 = (x0 , y0 , f (x0 , y0 )). We only P need to nd its normal vector n.
x
y P
0
The vector n normal to the plane L(x , y ) is a vector perpendicular to the surface z = f (x , y ) at P0 = (x0 , y0 ).
x
y P
0
This surface is the level surface F (x , y , z ) = 0 of the function F (x , y , z ) = f (x , y ) z . A vector normal to this level surface is its gradient F . That is, F = Fx , Fy , Fz = fx , fy , 1 . Therefore, the normal to the tangent plane L(x , y ) at the point P0 is n = fx (x0 , y0 ), fy (x0 , y0 ), 1 . Recall that the plane contains 0 = (x0 , y0 , f (x0 , y0 )). The equation for the plane is the point P fx (x0 , y0 )(x x0 ) + fy (x0 , y0 )(y y0 ) (z f (x0 , y0 )) = 0.
L(x,y)
f(x,y)
1
These functions are continuous in R2 , so f (x , y ) is dierentiable at every point in R2 . The plane L(x , y ) at (1, 0) is given by L(x , y ) = fx (1, 0)(x 1) + fy (1, 0)(y 0) + f (1, 0), where f (1, 0) = arctan(1) = /4, fx (1, 0) = 1/2, fy (1, 0) = 1. 1 Then, L(x , y ) = (x 1) + y + . 2 4
Review: Dierentiable functions of two variables. The tangent plane to the graph of a function. The linear approximation of a dierentiable function. Bounds for the error of a linear approximation. The dierential of a function.
Review: Scalar functions of one variable. Scalar functions of more than one variable.
Example
Find the linear approximation of f = 17 x 2 4y 2 at (2, 1). Solution: L(x , y ) = fx (2, 1)(x 2) + fy (2, 1)(y 1) + f (2, 1). We need three numbers: f (2, 1), fx (2, 1), and fy (2, 1). These are: f (2, 1) = 3, fx (2, 1) = 2/3, and fy (2, 1) = 4/3. 2 4 Then the plane is given by L(x , y ) = (x 2) (y 1) + 3. 3 3
Review: Dierentiable functions of two variables. The tangent plane to the graph of a function. The linear approximation of a dierentiable function. Bounds for the error of a linear approximation. The dierential of a function.
Review: Scalar functions of one variable. Scalar functions of more than one variable.
Theorem
Assume that the function f : D R2 R has rst and second partial derivatives continuous on an open set containing a rectangular region R D centered at the point (x0 , y0 ). If M R is the upper bound for |fxx |, |fyy |, and |fxy | in R, then the error E (x , y ) = f (x , y ) L(x , y ) satises the inequality |E (x , y )| 1 2 M |x x0 | + |y y0 | , 2
where L(x , y ) is the linearization of f at (x0 , y0 ), that is, L(x , y ) = fx (x0 , y0 ) (x x0 ) + fy (x0 , y0 ) (y y0 ) + f (x0 , y0 ).
Solution: The second derivatives of f are fxx = 2, fyy = 2, fxy = 0. Therefore, we can take M = 2. 1 2 Then the formula |E (x , y )| M |x x0 | + |y y0 | , implies 2 |E (x , y )| |x 1| + |y 2|
2
that is |E (x , y )| < 0.04. Since f (1, 2) = 5, the percentage relative error 100 E (x , y )/f (1, 2) is bounded by 0.8%
Review: Dierentiable functions of two variables. The tangent plane to the graph of a function. The linear approximation of a dierentiable function. Bounds for the error of a linear approximation. The dierential of a function.
Review: Scalar functions of one variable. Scalar functions of more than one variable.
x0 dx = x
2 Therefore, fx (1, 1) = 2/3 = fy (1, 1). Then df = 2 3 dx + 3 dy . Evaluating this dierential at dx = 0.1 and dy = 0.2 we obtain
df =
2 1 2 2 2 3 + = 3 10 3 10 3 10
1 df = . 5
h 0 = 12 dr = 0.04
r0 = 4
Therefore, dV = 16.1 cm3 . Since dM = dV , a linear estimate for the aluminum needed to build the can is dM = 43.47 gr .
Review: Local extrema for functions of one variable. Denition of local extrema. Characterization of local extrema.
First derivative test. Second derivative test.
at a b c d
a b c d x
f 0 =0 0 =0
f <0 0 >0 0
Review: Local extrema for functions of one variable. Denition of local extrema. Characterization of local extrema.
First derivative test. Second derivative test.
00 11 11 00 00 11
11 00 00 11 00 11
Review: Local extrema for functions of one variable. Denition of local extrema. Characterization of local extrema.
First derivative test. Second derivative test.
Theorem
If a dierentiable function f has a local maximum or minimum at (a, b ) then holds f (a,b) = 0, 0 .
Denition
The interior point (a, b ) D of a dierentiable function f : D R2 R is a critical point of f i f (a,b) = 0, 0 .
Remark:
Critical points include local maxima, local minima, and saddle points.
11 00 11 00 11 00
11 00 11 00 11 00
11 00 00 11 00 11
Example
Find the critical points of the function f (x , y ) = x 2 y 2 Solution: The critical points are the points where f vanishes. Since f = 2x , 2y , the only solution to f = 0, 0 is x = 0, y = 0. That is, (a, b ) = (0, 0). 0 for all (x , y ) R2 and f (0, 0) = 0, then the point (0, 0) must be a local maximum of f .
Remark: Since f (x , y )
Example
Find the critical points of the function f (x , y ) = x 2 y 2 Solution: Since f = 2x , 2y , the only solution to f = 0, 0 is x = 0, y = 0. That is, we again obtain (a, b ) = (0, 0).
Theorem
Let (a, b ) be a critical point of f : D R2 R, that is, f (a,b) = 0, 0 . Assume that f has continuous second derivatives in an open disk in D with center in (a, b ) and denote D = fxx (a, b ) fyy (a, b ) fxy (a, b ) . Then, the following statements hold: If D > 0 and fxx (a, b ) > 0, then f (a, b ) is a local minimum. If D > 0 and fxx (a, b ) < 0, then f (a, b ) is a local maximum. If D < 0, then f (a, b ) is a saddle point. If D = 0 the test is inconclusive.
2
Example
Find the local extrema of f (x , y ) = y 2 x 2 and determine whether they are local maximum, minimum, or saddle points. Solution: We rst nd the critical points: f = 2x , 2y f
(a ,b )
= 0, 0
The only critical point is (a, b ) = (0, 0). We need to compute D = fxx (a, b ) fyy (a, b ) fxy (a, b ) . Since fxx (0, 0) = 2, fyy (0, 0) = 2, and fxy (0, 0) = 0, we get D = (2)(2) = 4 < 0 saddle point at (0, 0).
2
Example
Is the point (a, b ) = (0, 0) a local extrema of f (x , y ) = y 2 x 2 ? Solution: We rst verify that (0, 0) is a critical point of f : f (x , y ) = 2xy 2 , 2yx 2 , therefore, (0, 0) is a critical point. f
(0,0)
= 0, 0 ,
Example
Is the point (a, b ) = (0, 0) a local extrema of f (x , y ) = y 2 x 2 ? Solution: From the graph of f = x 2 y 2 is simple to see that (0, 0) is a local minimum: (also a global minimum.)
z
Review: Local extrema for functions of one variable. Denition of local extrema. Characterization of local extrema.
First derivative test. Second derivative test.
f(x)
Recall:
Intervals [a, b ] are bounded and closed sets in R. The set [a, b ] is closed, since the boundary points belong to the set, and it is bounded, since it does not extend to innity.
111111111111111 000000000000000 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111 000000000000000 111111111111111
bounded x
1111111111111111111111111111111 0000000000000000000000000000000 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111 0000000000000000000000000000000 1111111111111111111111111111111
Theorem
If f : D R2 R is continuous in a closed and bounded set D, then f has an absolute maximum and an absolute minimum in D.
II
III
Solution: (1) We nd all critical points in the interior of the domain: f = (y 1), (x + 2) = 0, 0 (x0 , y0 ) = (2, 1).
Since (2, 1) does not belong to the domain, we discard it. (2) Three segments form the boundary of D : Boundary I: The segment y = 0, x [1, 5]. We select the end points (1, 0), (5, 0), and we record: f (1, 0) = 2 and f (5, 0) = 2. We look for critical point on the interior of Boundary I: Since g (x ) = f (x , 0) = 3 x , so g = 1 = 0. No critical points in the interior of Boundary I.
II
III
Solution: Boundary II: The segment x = 1, y [0, 4]. We select the end point (1, 4) and we record: f (1, 4) = 14. We look for critical point on the interior of Boundary II: Since g (y ) = f (1, y ) = 3 + y 1 + 2y = 2 + 3y , so g = 3 = 0. No critical points in the interior of Boundary II. Boundary III: The segment y = x + 5, x [1, 5]. We look for critical point on the interior of Boundary III: Since g (x ) = f (x , x + 5) = 3 + x (x + 5) x + 2(x + 5). We obtain g (x ) = x 2 + 2x + 13, hence g (x ) = 2x + 2 = 0 implies x = 1. So, y = 4, and we selected the point (1, 4), which was already in our list. No critical points in the interior of Boundary III.
II
III
A0 xy 2x 2 y 2 f (x , y ) = . 2(x + y )
The conditions fx = 0 and fy = 0 and x = 0, y = 0 imply A0 = 2x 2 + 4xy , A0 = 2y 2 + 4xy , x = y . Recall z= A0 2xy , 2(x + y ) A0 /6.
A0 2x 2 so, z = = y . Therefore, x0 = y0 = z0 = 4x