Directional Derivative 3D  Contents

Consider a point P = (x0,y0) in the domain of f(x,y). The line in the domain corresponding to the direction θ will have the parametric form (x0 + t cos θ, y0 + t sin θ) and the height function z(t) associated with the slice curve along this line will have the form z(t) = f(x0 + t cos θ, y0 + t sin θ).

The directional derivative ∇θf(x0,y0) at the point P will be the derivative of z(t) evaluated at t = 0 ∇θf(x0,y0) = z'(0) = ∂/∂t (f(x0+t*cos(θ),y0+t*sin(θ)))|t = 0.

figure1


[D]


Exercises

  • Find the value of θ for the maximum directional derivative of any slice curve. What θ gives the minimum directional derivative for this same slice curve? How are these values related? Try this for several different slice curves.


  • Second Partial Derivatives 1D   3D  Polar Coordinates  Parametric Equations  Top of Page  Contents

    A second partial derivative is a partial derivative of a function which is itself a partial derivative of another function.

    There are four types of second partial derivatives: 


    Third, fourth, fifth, and in general, nth partial derivatives for any positive integer n, exist as well.



    figure2


    [D]


    figure3


    [D]


    Exercises

  • 1. Try entering each of these expressions for f(x,y). Note how the graphs of the second partial derivatives relate to the curvature of the graph of f(x,y):
    • 0
    • 1
    • Any constant
    • x
    • x2/2
    • y
    • y2/2
    • x2-y2 (saddle)
    • x2 - y4+y2 (twin peaks)
    • xy
    • x2/2+y2/2+xy
    • x2*y2
  • 2. For polynomial functions of two variables, what are the conditions needed to yield a nonzero value for each of the following?
    • fxx(x,y)
    • fyy(x,y)
    • fxy(x,y)
    • fyx(x,y)
  • 3. a. For each of the functions in part (1), what can you say about the relationship between the mixed partials (fxy(x,y) and fyx(x,y))?

    b. Now enter the function f(x,y) = 4xy * (x2 - y2)/(x2 + y2) in the second demo. Look at the curves on the first partial derivative graphs which display the second derivatives. Are any of the second partial derivatives defined at (x,y) = (0,0)? How does this differ from your observations in part (a)? (This is discussed further in the lab on equality of mixed partials.)




  • Hessian Determinant 1D   Top of Page  Contents
    (Corresponds to Convexity/Concavity in 1D)

    The Hessian determinant of a function f(x,y) is defined as H(x,y) = fxx(x,y)fyy(x,y) - fxy(x,y)fyx(x,y). 


    figure4


    [D]


    figure5


    [D]


    Exercises

  • 1. For each of the following functions, find the sign of the Hessian determinant at (x,y) = (0,0) as a function of c. Verify your results using the demo.
    • f(x,y) = x2 + cy2
    • f(x,y) = x2 + cxy
    • f(x,y) = sin(x) + c cos(y)
  • 2. Is it possible to have a surface with two or more distinct "saddles" and no "bowls"? Why or why not?
  • 3. How could you describe a mountain range using Hessian determinants?

  • Taylor Series  1D   3D  Top of Page  Contents

    Taylor Series are polynomials that approximate functions.

    For functions of two variables, Taylor series depend on first, second, etc. partial derivatives at some point (x0, y0).

    Let P1(x,y) represent the first-order Taylor approximation for a function of two variables f(x,y). The equation for the first-order approximation is P1(x,y) = f(x0,y0) + (x - x0)fx(x0,y0) + (y - y0)fy(x0,y0). We are already quite familiar with this equation since it defines a tangent plane.

    figure6


    [D]


    Exercises

  • 1. Try entering for f(x,y) several polynomial functions of degree less than 3. What do you notice?
  • 2. Now enter for f(x,y) any polynomial function whose x terms have degree less than 3 but whose y terms may have degrees of 3 or greater. (For terms involving both x and y, the exponent of x should never exceed 2. e.g.: x2y3 is an acceptable term.) For example, try the function f(x,y) = y4 + xy2 + x2 + x + y. Compare the results to those of exercise 1.
  • 3. Enter the expression 1/(x + 1) + 1/(y + 1) for f(x,y). Notice that the tangent paraboloid is not the same as the function graph. Why can't we apply the degree less than 3 rule here?


  • Constrained Maxima and Minima  1D   3D  Polar Coordinates  Parametric Equations  Top of Page  Contents

    A special case of the chain rule occurs when z(t) = f(x(t),y(t)) = c is constant. 
     
    It follows that the gradient of a function of two variables at a point (x(t),y(t)) is perpendicular to the tangent vector to a level curve through the point.

    figure7


    [D]


    Exercises

  • 1. Use the double arrow button for the variable c to determine the highway's highest point. How are the path's tangent vector (light grey) and the surfaces gradient vector (yellow) related, as seen in the "Domain" window? At what angle is the gradient slice curve (yellow) cutting the curve (red) on the surface, as seen in the "Scenic Highway" window?
  • 2. Try entering w(t)=(t,t) and determine the highest point on the highway for this new path. What happens to the gradient vector (yellow) at the highest point? What happens to the gradient vector on either side of the highest point? What kind of critical point is this? Why?

  • The Gradient Vector Field Top of Page  Contents

    The gradient vector of the function f(x,y) at a point (x,y) is defined as gradf(x,y) = (fx(x,y),fy(x,y)).


    Figure16


    [D]




    Equality of Mixed Partials Polar Coordinates   Top of Page  Contents

    If f(x, y) is a twice continuously differentiable function then fxy(x, y) = fyx(x, y) for all (x, y). If f(x, y) is not twice continuously differentiable, then this is not necessarily true.

    figure8


    [D]


    Exercises

  • 1. For the function in the demonstration, calculate the mixed partial derivative fuv(0,v) as v approaches 0 and then fuv(u,0) as v approaches 0. What can we say about the the value of fuv(u,v) at the origin?
  • 2. Now use the demo and enter the function . Again, look at the mixed partial derivative fuv(u,v) along the u- and v-axes. What is the limit of f(u,v) as we approach the origin? Notice that this surface is just a rotation of the graph in exercise 1.
  • 3. Show that if f(u,v) is a polynomial, then fuv(u,v) = fvu(u,v).