MATH 220 SUPPLEMENTAL NOTES 18
DIRECTIONAL DERIVATIVES, GRADIENT VECTORS, AND TANGENT PLANES
|
Suppose that we know that if f (x, y) is differentiable, then the rate at which f changes with respect to t along a differentiable curve x = g (t), y = h (t) is
At any point P0 (x 0, y 0) = P0 (g (t 0), h (t 0)), this equation gives the rate of change of f with respect to increasing t. Therefore, it depends on the direction of motion along the curve. This fact is important when the curve is a straight line and t is the arc length parameter along the line measured from P0 in the direction of a given unit vector u. This implies that df /dt is the rate of change of f with respect to distance in its domain in the direction of u. By varying u, we will find the rates at which f changes with respect to distance as we move through P0 in different directions. These are what we will call directional derivatives. |
DIRECTIONAL DERIVATIVES IN THE PLANE
|
Suppose that the function f (x, y) is defined throughout a region R in the xy-plane. (See figure 1) Let P0 (x 0, y 0) is a point in R, and u = u 1i + u 2 j be a unit vector. |
|
figure 1 |
|
Then the equations x = x 0 + su 1, y = y 0 + su 2 parameterize the line through P0 parallel to u. The parameter s measures the arc length from P0 in the direction of u by calculating df /ds at P0. |
|
DEFINITION: |
The derivative of f at P0 (x 0, y 0) in the direction of the unit vector u = u1i + u 2 j is the number
provided this limit exists, This directional derivative is also denoted by the following notation:
|
GEOMETRIC INTERPRETATION OF THE DIRECTIONAL DERIVATIVE
|
Let the equation z = f (x, y) represent a surface S in space. If z 0 = f (x 0, y 0), then the point P (x 0, y 0, z 0) lies on S. (See figure 2) |
|
figure 2 |
|
The vertical plane that passes through P and P0 (x 0, y 0) parallel to u intersects S in a curve C. The rate of change of f in the direction of u is the slope of the tangent line to C at P. When u = i, the directional derivative at P0 is ¶ f /¶ x evaluated at (x 0, y 0). When u = j, the directional derivative at P0 is ¶ f /¶ y evaluated at (x 0, y 0). Therefore, the directional derivative generalizes to two partial derivatives, and we can now find the rate of change of f in any direction u. |
CALCULATION
|
To avoid using the definition to find the directional derivative, let us start with the line through P0 (x 0, y 0) parameterized with the arc length parameter s increasing in the direction of the unit vector u = u1i + u2 j. Here is the equation for the line: x = x 0 + su 1, y = y 0 + su 2. Then
|
|
DEFINITION: |
The gradient vector (gradient) of f (x, y) at a point P0 (x 0, y 0) is the vector
obtained by evaluating the partial derivatives of f at P0. |
|
THEOREM: |
If the partial derivatives of f (x, y) are defined at P0 (x 0, y 0). Then
the scalar product of the gradient f at P0 and u. |
|
EXAMPLE 1: |
Find the gradient of the following function at the given point, and then sketch the level curve and the gradient together.
|
|
|
SOLUTION: |
|
This is the graph of the level curve through P0 and the associated gradient vector. |
|
EXAMPLE 2: |
Find the derivative of the function f (x, y) = 2xy - 3y 2 at P0 (5, 5) in the direction of A = 4i + 3j, |
|
SOLUTION: |
|
|
EXAMPLE 3: |
Find the derivative of the function f (x, y) = x 2 - xy + y 2 at P0 (1, 1) in the direction of A = i - 3 j. |
|
SOLUTION: |
|
PROPERTIES OF DIRECTIONAL DERIVATIVES
|
When evaluating the dot product in the formula D u f = Ñ f · u = | Ñ f || u | cos q = | Ñ f | cos q , it reveals the following properties. |
|
1. |
The function f increases most rapidly when cos q = 1, or when u is in the direction of Ñf. (f increase most rapidly in the direction of the gradient vector Ñ f at P.) The derivative in this direction is D u f = | Ñ f | cos 0 = | Ñ f |. |
|
2. |
f decreases most rapidly in the direction of -Ñ f. D u f = | Ñ f | cos p = - | Ñ f | |
|
3. |
Any direction u orthogonal to the gradient is a direction of zero change in f because q = p /2 and D u f = | Ñ f | cos (p /2) = | Ñ f |(0) = 0. |
|
EXAMPLE 4: |
Find the direction in which f (x, y) = x 2 + xy + y 2 increases and decreases most rapidly at P0 (-1, 0). |
|
SOLUTION: |
Most rapid increase is in the direction of u.
Most rapid decrease is in the direction of -u.
|
GRADIENTS AND TANGENTS TO LEVEL CURVES
|
If a differentiable function f (x, y) has a constant value c along a smooth curve r = g (t) i + h(t) j (making the curve a level curve of f), then f (g (t), h (t)) = c. Differentiating both sides of this equation with respect to t leads to the following equations.
This implies that Ñ f is normal to the tangent vector dr/dt, therefore it is normal to the curve. |
|
FACT: |
At every point (x 0, y 0) in the domain of f (x, y), the gradient of f is normal to the level curve through (x 0, y 0). |
|
FACT: |
The tangent lines to a level curves are lines normal to the gradients. |
|
FACT: |
The line through a point P0 (x 0, y 0) normal to a vector N = Ai + Bj has the equation A(x - x 0) + B(y - y 0) = 0. |
|
If N is the gradient (Ñ f)(x0, y0) = f x (x 0, y 0)i + f y (x 0, y 0)j, then the equation of the line through the point (x 0, y 0) normal to the gradient becomes f x (x 0, y 0) (x - x 0) + f y (x 0, y 0) (y - y 0) = 0. |
|
EXAMPLE 5: |
Sketch the curve f (x, y) = c together with Ñ f and the tangent line at the given point. Then write the equation for the tangent line. x 2 - xy + y 2 = 7 (-1, 2) |
|
SOLUTION: |
f x = 2x - y |
f x (-1, 2) = -2 - 2 = -4 |
Ñ f = -4i + 5jTL: -4(x + 1) + 5(y - 2) = 0 ® -4x - 4 + 5y - 10 = 0® -4x + 5y = 14 |
|
f y = -x + 2y |
f y (-1, 2) = 1 + 4 = 5 |
||
|
|
|||
FUNCTIONS OF THREE VARIABLES
|
We will obtain the three variable formulas by adding the z-terms to the two-variable formulas. |
|
FACT: |
For a differentiable function f (x, y, z) and a unit vector u = u 1i + u 2 j + u 3 k in space, we have Ñ f = f x i +f y j + f z k and Du f = Ñ f · u = |Ñ f || u | cos q = |Ñ f | cos q . |
|
All the properties hold for the three-variable case. |
|
EXAMPLE 6: |
Find Ñ f of f (x, y, z) = (x 2 + y 2 + z 2) -1/ 2 + ln (xyz) at (-1, 2, -2). |
|
SOLUTION: |
|
|
EXAMPLE 7: |
Find the derivative of the function f (x, y, z) = 3e x cos yz at P0 (0, 0, 0) in the direction of A = 2i + j - 2k. |
|
SOLUTION: |
|
|
EXAMPLE 8: |
Find the directions in which the function h (x, y, z) = ln (x 2 + y 2 - 1) + y + 6z increase and decrease most rapidly at P0 (1, 1, 0). Then find the derivatives of the functions in these directions. |
|
SOLUTION: |
The most rapid increase is in the direction of u. D u h = |Ñ h | cos 0 = 7 The most rapid decrease is in the direction of -u. D u h = |Ñ h | cos p = -7 |
EQUATIONS FOR TANGENT PLANES AND NORMAL LINES
|
If r = g (t) i + h (t) j + k (t) k us a smooth curve on the level surface f (x, y, z) = c of a differentiable function of f, then f (g (t), h (t), k (t)) = c. Now, differentiate both sides with respect to t.
|
At every point along the curve, Ñ f is orthogonal to the curve's velocity vector. Let us look at only the curves that pass through P0. Therefore, all velocity vectors at P0 are orthogonal to Ñ f at P0, and the curve's tangent lines all lie in the plane through P0 normal to Ñ f. This plane is called the tangent plane. The line through P0 perpendicular to the plane is the surface's normal line at P0.
|
DEFINITION: |
The tangent plane at the point P0 (x 0, y0, z 0) on the level surface f(x,y,z) = c is the plane through P0 normal to Ñ f |Po. The normal line of the surface at P0 is the line through P0 parallel to Ñ f |Po. |
|
Normal line eq: x = x 0 + f x (P0)t, y = y 0 + f y (P0)t, z = z 0 + f z (P0)t Tangent plane eq: f x (P0)(x - x 0) + f y (P0)(y - y 0) + f z (P0)(z - z 0) |
|
EXAMPLE 9: |
Find the equations for the (a) tangent plane and (b) normal line at the point (0, 1, 2) on the surface cos p x - x 2y + e x z + yz = 4. |
|
SOLUTION: |
f x = -p sin p x -2xy + ze x z f x (0, 1, 2) = -p sin 0 -2(0)(1) + 2e (0)(2) = 2 f y = x 2 + z f y (0, 1, 2) = 0 + 2 = 2 f z =xe x z + y f z (0, 1, 2) = 0 + 1 = 1 Ñ f = 2i + 2j + kTangent plane: 2(x - 0) + 2(y - 1) + 1(z - 2) = 0 ® 2x + 2y + z = 4 Normal line: x = 2t, y = 1 + 2t, z = 2 + t |
|
EXAMPLE 10: |
Find the parametric equations for the line tangent to the curve of intersection of the surfaces x 3 + 3x 2 y 2 + y 3 + 4xy - z 2 = 0 and x 2 + y 2 + z 2 = 11 at the point (1, 1, 3). |
|
|
SOLUTION: |
Let g: x 3 + 3x 2 y 2 + y 3 + 4xy - z 2 = 0 and f: x 2 + y 2 + z 2 = 11. |
|
|
g x = 3x 2 + 6xy 2 + 4y |
g x (1, 1, 3) = 3 + 6 + 4 = 13 |
|
|
g y = 6x 2y + 3y 2 + 4x |
g y (1, 1, 3) = 6 + 3 + 4 = 13 |
|
|
|
g z = -2z |
g z (1, 1, 3) = -6 |
|
Ñ g = 13i + 13j - 6k |
||
|
f x = 2x |
f x (1, 1, 3) = 2 |
|
|
f y = 2y |
f y (1, 1, 3) = 2 |
|
|
f z = 2z |
f z (1, 1, 3) = 6 |
|
|
|
Ñ f = 2i + 2j + 6k |
|
|
FACT: The tangent line is orthogonal to both Ñ f and Ñ g at P0, therefore it is parallel to v = Ñ f ´ Ñ g.
|
|
|
Tangent line: x = 1 + 90t, y = 1 - 90t, z = 3 |
PLANES TANGENT TO THE SURFACE z = f (x, y)
|
To find the equation for the plane tangent to the surface z = f (x, y) at a point P0 (x 0, y 0, z 0) where z 0 = f (x 0, y 0), we will have to first observe the following. z = f (x, y) if and only if f (x, y) - z = 0 = F(x,y)
|
|
Therefore, the tangent plane equation is the following. F x (P0)(x - x 0) + F y (P0)(y - y 0) - (z - z 0) = 0 |
|
EXAMPLE 11: |
Find the equation for the plane that is tangent to the surface z = ln(x 2 + y2) at the point (1, 0, 0). |
|
SOLUTION: |
F = ln (x 2 + y 2) - z
|
INCREMENTS AND DISTANCE
|
The directional derivative plays a role of an ordinary derivative when we want to estimate how much a function f changes if we move a small distance ds from a point P0 to another point nearby. If f where a function of a single variable, then df = f ' (P0)ds. For a function of two or more variables, df = (Ñ f |Po · u)ds where u is the direction of motion away from P0. |
|
EXAMPLE 12: |
By about how much will g (x, y, z) = x + x cos z - y sin z + y change if the point P (x, y, z) moves from P0 (2, -1, 0) a distance of ds = 0.2 units toward the point P1 (0, 1, 2)? |
|
SOLUTION: |
First, I must find the direction we are moving by find the vector P0P1. P0P1 = (0 - 2)i +(1 + 1) j + (2 - 0)k = -2i + 2j + 2k Now to find the length of this vector.
|
|
|
|
ALGEBRA RULES FOR GRADIENTS
|
If we know the gradients for two functions f and g, we can find the gradients of their constant multiples, sum, difference, product, and quotient. |
||
|
1. |
Constant multiple rule: |
Ñ (k f) = k Ñ f |
|
2. |
Sum rule: |
Ñ (f + g) = Ñ f + Ñ g |
|
3. |
Difference rule: |
Ñ (f - g) = Ñ f - Ñ g |
|
4. |
Product rule: |
Ñ (fg) = f Ñ g + g Ñ f |
|
5. |
Quotient rule: |
|
These rules will come in handy later on in this course. We do not need to use them now.
As you can tell by the length of this set of supplemental notes, this topic has a lot of information. The concepts of a directional derivative and gradient vector will be important and used frequently in the next few sets of supplemental notes. Work through all the examples given in this set of notes, and if you have any questions, please feel free to contact me.
RETURN TO INDEX