Docsity

Lecture 16 (Continuity, Directional Derivative, Gradient) - Lecture Notes | MATH 1020, Study notes of Calculus

Toggle sidebar
bg1
CALCULUS II
SPRING 2011
LECTURE 16
Harry McLaughlin
revised 3/11/11
edited by
This lecture provides
•a definition of a directional derivative (Dwf(x0, y0))
•a definition of a gradient vector (∇f(x0, y0))
•computations of directional derivatives
•a theorem asserting that
Dwf(x0, y0) = ∇f(x0, y0)·w
•a theorem asserting that Dwf(x0, y0)is maximized in the
direction of the gradient vector
•a definition of tangent planes for surfaces modeled by z=
f(x, y)(validates previous lecture)
•a theorem asserting that a tangent plane contains tangent
vectors to all curves, through a given point, each found by
intersecting surface with planes perpendicular to the x, y-
plane.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Lecture 16 (Continuity, Directional Derivative, Gradient) - Lecture Notes | MATH 1020 and more Study notes Calculus in PDF only on Docsity!

CALCULUS II

SPRING 2011

LECTURE 16

Harry McLaughlin revised 3/11/

edited by

This lecture provides

  • a definition of a directional derivative (Dwf (x 0 , y 0 ))
  • a definition of a gradient vector (∇f (x 0 , y 0 ))
  • computations of directional derivatives
  • a theorem asserting that

Dwf (x 0 , y 0 ) = ∇f (x 0 , y 0 ) · w

  • a theorem asserting that Dwf (x 0 , y 0 ) is maximized in the direction of the gradient vector
  • a definition of tangent planes for surfaces modeled by z = f (x, y) (validates previous lecture)
  • a theorem asserting that a tangent plane contains tangent vectors to all curves, through a given point, each found by intersecting surface with planes perpendicular to the x, y- plane.

Recall

We recall from Lecture 15:

  • the definition of a partial derivative
  • a working definition of a tangent plane
  • models of tangent planes for several different surfaces.

End of Recall

that is contained in D. A point of R^2 is a boundary point of D if every open ball centered at the point contains at least one point in D and at least one point not in D.

Definition. A subset D of R^2 is open if for every (x, y) ∈ D there exists an open ball centered at (x, y) and contained in D.

Said in another way: a subset of R^2 is open if it is empty or if it con- tains only interior points.

Example. We show that an open ball D is an open subset of R^2. (Specifically we make the argument for the unit ball.)

One defines the open unit ball D by

D = {(x, y) ∈ R^2 : x^2 + y^2 < 1 }.

One lets (x 0 , y 0 ) ∈ D and r =

x^20 + y 02. Then one defines the open ball B of radius r and centered at (x 0 , y 0 ) by

B = {(x, y) ∈ R^2 : x^2 + y^2 < 1 − r^2 }.

Since B is contained in D it follows that D is an open subset of R^2.

In the analysis of this lecture the notion of open appears repeatedly. What is its role? A partial answer is provided in the parenthetical remark following the definition of a directional derivative.

Continuity of f (x, y)

Analogous to the idea that a real-valued function of one real variable being continuous at a point is the notion of a real-valued function of two real vari- ables being continuous at a point. We introduce the notion now because it is needed in the hypothesis of one of the theorems of the next section. Here

is the needed definition.

Definition. Let D denote a subset of R^2 and let (x 0 , y 0 ) ∈ D. A real-valued function f (x, y) defined on D is continuous at (x 0 , y 0 ) if

lim (x,y)→(x 0 ,y 0 )

f (x, y) = f (x 0 , y 0 ).

The expression (x,y)lim→(x 0 ,y 0 )^

f (x, y) = f (x 0 , y 0 )

means that when (x, y) ∈ D and when (x, y) is close to (x 0 , y 0 ) then f (x, y) is close to f (x 0 , y 0 ).

This can be said more precisely: the function f (x, y) is continuous at (x 0 , y 0 ) if for every  > 0 there exists a corresponding δ > 0 such that

|f (x, y) − f (x 0 , y 0 )| < 

whenever

(x, y) ∈ D and

√ (x − x 0 )^2 + (y − y 0 )^2 < δ.

There are interesting phenomena associated with the definition of conti- nuity of f (x, y); the definition warrants careful study. However, our goal is to investigate directional derivatives and their consequences. Theorems dealing with directional derivatives may need the word continuity in their hypotheses, but, in some sense directional derivatives exist independently of continuity. So we have chosen to give “lip service” to continuity and forge ahead with directional derivatives.

Directional Derivative

The next definition builds on the notion of a partial derivative of f (x, y). It defines the notion of rate of change of f in an arbitrary direction (not just the x direction or the y direction).

Definition. Let (x 0 , y 0 ) be an element of an open subset D in R^2. Let f (x, y) be a real-valued function defined on D. Let w = (u, v) be a unit vector in

There is a subtle idea here that merits a careful look. If w = (u, v) is replaced by −w = (−u, −v) then, even though the corresponding lines modeled by (x 0 + tu, y 0 + tv), −∞ < t < ∞

and (x 0 + t(−u), y 0 + t(−v)), −∞ < t < ∞

are identical, the corresponding directional derivatives are not the same. In particular,

D−wf (x 0 , y 0 ) = lim t→ 0

f (x 0 + t(−u), y 0 + t(−v)) − f (x 0 , y 0 ) t = − (^) tlim→ 0

f (x 0 + (−t)u, y 0 + (−t)v) − f (x 0 , y 0 ) −t = − (^) tlim→ 0

f (x 0 + tu, y 0 + tv) − f (x 0 , y 0 ) t = −Dwf (x 0 , y 0 ).

That is, the directional derivative of f at (x 0 , y 0 ) in the direction w is the negative of the directional derivative of f at (x 0 , y 0 ) in the direc- tion −w.

So, for example

fx(x 0 , y 0 ) = Dwf (x 0 , y 0 ) when w = (1, 0)

and fx(x 0 , y 0 ) = −Dwf (x 0 , y 0 ) when w = (− 1 , 0).

To get a feeling for this phenomenon we examine the case f (x, y) = x, (x, y) ∈ R^2 with (x 0 , y 0 ) = (0, 0) and w = (1, 0).

Here

Dwf (x 0 , y 0 ) = lim t→ 0

f (0 + t · 1 , 0 + t · 0) − f (0, 0) t = lim t→ 0

t − 0 t = lim t→ 0

1 = 1 = fx(0, 0).

However

D−wf (x 0 , y 0 ) = lim t→ 0

f (0 + t(−1), 0 + t · 0) − f (0, 0) t = lim t→ 0

−t − 0 t = lim t→ 0 (−1) = − 1 = −fx(0, 0).

The following examples explore directional derivatives.

EXAMPLE. – DIRECTIONAL DERIVATIVE OF AN

ELLIPTIC PARABOLOID

Let

f (x, y) = x^2 + y^2 , (x, y) ∈ R^2 and w =

Compute the value of the directional derivative of f at (0, 0) in the direction of w.

Solution. In order to ease the notation one writes the vector w =

√^1 2 ,^

√^1 2

as w = (u, v) and then writes

Dwf (0, 0) = lim t→ 0

f (0 + tu, 0 + tv) − f (0, 0) t

= (^) tlim→ 0

t^2 u^2 + t^2 v^2 − 0 t = lim t→ 0

(tu^2 + tv^2 ) = 0.

Thus, Dwf (0, 0) = 0.

One notes that the above computation is independent of w. One concludes that the directional derivative of f at the origin is 0 for all directions.

The next theorem is a powerful one. It says that most of the real-valued functions of two real variables that we deal with have directional derivatives in all directions. Further it provides a formula for the evaluation of direc- tional derivatives.

Theorem. Let (x 0 , y 0 ) be an element of an open subset D in R^2. Let f (x, y) be a real-valued function, with continuous partial derivatives, defined on D. Let w = (u, v) be a unit vector in R^2. Then the directional derivative of f at (x 0 , y 0 ) in the direction w exists and is computed by

Dwf (x 0 , y 0 ) = fx(x 0 , y 0 )u + fy(x 0 , y 0 )v.

(The writer finds this result quite amazing. It says that if the directional derivatives in the x and y directions are known, then the directional derivatives in all directions are known.)

Before proving the theorem we make the following two remarks.

(1) Because the partial derivatives fx(x 0 , y 0 ) and fy(x 0 , y 0 ) ap- pear so frequently in this context it is useful to seek a more compact notation. The gradient vector denoted by ∇f (x, y) is defined by

∇f (x, y) = (fx(x, y), fy(x, y)), (x, y) ∈ domain f.

Using this notation one finds the appealing expression

Dwf (x 0 , y 0 ) = ∇f (x 0 , y 0 ) · w.

In words: the directional derivative of f in the direction w is the dot product of the gradient of f and w.

(2) For emphasis it is remarked that the gradient operator con- verts a real-valued function of two real variables into a vector- valued function of two real variables. (The term operator reflects the idea that the gradient vector results from an operation on the scalar-valued function f (x, y).)

Proof of the theorem. As long as (x 0 + tu, y 0 + tv) lies in the open set D one uses the mean value theorem to write

f (x 0 + tu, y 0 + tv) − f (x 0 , y 0 ) = [f (x 0 + tu, y 0 + tv) − f (x 0 , y 0 + tv)] +[f (x 0 , y 0 + tv) − f (x 0 , y 0 )]

= fx(ξ, y 0 + tv)(tu) + fy (x 0 , η)(tv)

for some ξ in the open interval determined by x 0 + tu and x 0 and for some η in the open interval determined by y 0 + tv and y 0.

Thus, since ξ is “squeezed” into x 0 and η is “squeezed” into y 0 , as t → 0, one has

Dwf (x 0 , y 0 ) = = lim t→ 0

f (x 0 + tu, y 0 + tv) − f (x 0 , y 0 ) t

= lim t→ 0 fx(ξ, y 0 + tv)(u) + lim t→ 0 fy (x 0 , η)(v)

= fx(x 0 , y 0 )u + fy (x 0 , y 0 )v

where we have used the fact that both fx and fy are continuous in D.

This completes the proof.

In the following example we are able to use the gradient in a directional derivative computation.

EXAMPLE. – DIRECTIONAL DERIVATIVE ON A HY-

PERBOLIC PARABOLOID

Let

f (x, y) = xy, (x, y) ∈ R^2 and w =

Compute the value of the directional derivative of f at (1, 1) in the direction of w.

Solution. For f (x, y) = y^2 − x^2 one finds the unit vector w in R^2 that maximizes Dwf (1, 1).

(The unknown here is the direction vector w.)

We use the formula

Dwf (1, 1) = ∇f (1, 1) · w

and write Dwf (1, 1) = |∇f (1, 1)| |w| cos (θ)

where θ is the angle between the vector ∇f (1, 1) and the un- known vector w. Thus Dwf (1, 1) is maximized when w is cho- sen so that cos (θ) = 1, that is when w is parallel to the gradient vector ∇f (1, 1). Since w must have length one, one concludes that

w =

∇f (1, 1) |∇f (1, 1)|

as long as |∇f (1, 1)| > 0.

It remains to evaluate w. To that end one writes:

fx(x, y) = − 2 x fx(1, 1) = − 2 fy(x, y) = 2 y fy(1, 1) = 2 ∇f (1, 1) = (− 2 , 2) |∇f (1, 1)| = 2

From this one determines that

w =

∇f (1, 1) |∇f (1, 1)|

=

Finally, the direction w in which the hyperbolic paraboloid is increasing most rapidly, at (1, 1) is

w =

−√ 1 2 ,^

√^1 2

Having found the direction of maximum rate of increase one can compute the value of the directional derivative in that direction, that is, compute the magnitude of the maximum rate of increase. It is given by

∇f (1, 1) · w = (− 2 , 2) ·

Thus the maximum value of the directional derivative at (1, 1) is 2

It is noted that this value is exactly |∇f (1, 1)|; this is not an accident.

The ideas of the last example result in the following theorem.

Theorem. Let (x 0 , y 0 ) be an element of an open subset D in R^2. Let f (x, y) be a real-valued function, with continuous partial derivatives, defined on D. Further assume that the gradient vector is not the zero vector at (x 0 , y 0 ).

Then the directional derivative of f at (x 0 , y 0 ) is a maximum in the direction of the gradient vector at (x 0 , y 0 ). The maximum value is |∇f (x 0 , y 0 )|.

The directional derivative is a minimum in the direction of the negative gra- dient vector at (x 0 , y 0 ). The minimum value is −|∇f (x 0 , y 0 )|.

The proof of this theorem is just a rehash of the previous example; we don’t provide a formal proof.

We have seen above that if w = (u, v), then

Dwf (x 0 , y 0 ) = fx(x 0 , y 0 )u + fy(x 0 , y 0 )v

and that

Dwf (x 0 , y 0 ) =

d dt

f (x 0 + tu, y 0 + tv)|t=0.

One concludes from the definition of directional derivative, that

d dt

f (x 0 + tu, y 0 + tv)|t=0 = fx(x 0 , y 0 )u + fy(x 0 , y 0 )v.

Thus, at (x 0 , y 0 , f (x 0 , y 0 )) a tangent vector, t, to the curve C is modeled by

t = (u, v, fx(x 0 , y 0 )u + fy(x 0 , y 0 )v).

Now one writes t in a fancy way: as the sum of two vectors, namely

t = u(1, 0 , fx(x 0 , y 0 )) + v(0, 1 , fy(x 0 , y 0 )).

Since the cross product

n = (1, 0 , fx(x 0 , y 0 )) × (0, 1 , fy(x 0 , y 0 ))

is orthogonal to both of these vectors, it follows that

n · t = 0.

One notes that

n = (1, 0 , fx(x 0 , y 0 )) × (0, 1 , fy (x 0 , y 0 ))

=

∣∣ ∣∣ ∣∣

i j k 1 0 fx(x 0 , y 0 ) 0 1 fy (x 0 , y 0 )

∣∣ ∣∣ ∣∣

= (−fx(x 0 , y 0 ), −fy (x 0 , y 0 ), 1)

and hence n is normal to the tangent planed to S at (x 0 , y 0 , f (x 0 , y 0 )). (Recall the definition of tangent plane given immediately above.)

This says that n is orthogonal to the tangent vector to C at (x 0 , y 0 , f (x 0 , y 0 )). But since n is the normal vector for the tangent plane to S at (x 0 , y 0 , f (x 0 , y 0 )), one concludes that the tangent plane to S at (x 0 , y 0 , f (x 0 , y 0 )) contains the

tangent line to C at (x 0 , y 0 , f (x 0 , y 0 )).

We have just proved the following theorem.

Theorem. Let (x 0 , y 0 ) be an element of an open subset D in R^2. Let f (x, y) be a real-valued function, with continuous partial derivatives, defined on D.

Let S denote the surface modeled by z = f (x, y), (x, y) ∈ D. Let C be the curve of intersection of S and any plane that both contains (x 0 , y 0 , 0) and is perpendicular to the x, y-plane.

Then the tangent plane to S at (x 0 , y 0 , f (x 0 , y 0 )) contains the tangent line to C at (x 0 , y 0 , f (x 0 , y 0 )).

All of this leaves open one more question. If C is any smooth parametric curve on S that contains the point (x 0 , y 0 , f (x 0 , y 0 )), does the tangent line to C at (x 0 , y 0 , f (x 0 , y 0 )) lie in the tangent plane to S at (x 0 , y 0 , f (x 0 , y 0 ))? The answer is yes. We leave the analysis to the next lecture.

Finally we recall that at the outset of this lecture we wondered whether or not there might exist more than one tangent plane to a surface at a given point. According to our definition of tangent plane this is not possible. However it is possible to model a self-intersecting surface parametrically and from a reasonable definition of tangent plane conclude that more than one tangent plane can exist at a point on a surface. (This is not unlike our experience with multiple tangent lines at a point where a parametric curve intersects itself.)

Looking Back. We have been able to define the notion of a directional derivative

Dwf (x 0 , y 0 ) = lim t→ 0

f (x 0 + tu, y 0 + tv) − f (x 0 , y 0 ) t

Using this we were able to compute directional derivatives for several differ- ent surfaces.

We provided a formal definition of a tangent plane to a surface modeled by z = f (x, y):

fx(x 0 , y 0 )(x − x 0 ) + fy(x 0 , y 0 )(y − y 0 ) − (z − z 0 ) = 0.