Directed Derivatives

Embed Size (px)

Citation preview

  • 8/11/2019 Directed Derivatives

    1/61

    Directional Derivatives

    Michael Daniel V. SamsonDigiPen Institute of Technology Singapore

    18 July 2014

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 1 / 18

  • 8/11/2019 Directed Derivatives

    2/61

    Derivative in a direction

    What derivatives are, in one dimension, graphically:

    f(x) =x3

    x2 + 3

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 2 / 18

  • 8/11/2019 Directed Derivatives

    3/61

    Derivative in a direction

    What derivatives are, in one dimension, graphically:

    f(x) =x3

    x2 + 3

    P= (0.5, 2.625)

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 2 / 18

  • 8/11/2019 Directed Derivatives

    4/61

    Derivative in a direction

    What derivatives are, in one dimension, graphically:

    f(x) =x3

    x2 + 3

    P= (0.5, 2.625)f (0.5) = 0.25

    y= 0.25x+ 2.75

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 2 / 18

  • 8/11/2019 Directed Derivatives

    5/61

    Derivative in a direction

    What derivatives are, in one dimension, graphically:

    f(x) =x3

    x2 + 3

    P= (0.5, 2.625)f (0.5) = 0.25

    y= 0.25x+ 2.75

    In one dimension (and whenever we look at traces on planes), thedirection is alwaysto the right, i.e. in the direction of positive x.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 2 / 18

  • 8/11/2019 Directed Derivatives

    6/61

    Partial derivatives and directional derivatives

    In two dimensions:

    The surface and contour maps for f.

    We consider the partial derivatives of f(x, y) =x2y4 4yat (0,2).

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 3 / 18

  • 8/11/2019 Directed Derivatives

    7/61

    Partial derivatives and directional derivatives

    In two dimensions, partial derivatives are:

    The surface and contour maps for f with the plane for y = 2 and its trace.

    We have thetraceof the function z=f(x, y) on the plane y=y0,yielding single variable function z=g(x) =f(x, y0). The partial derivativeat (x0, y0) is the value of the one-dimensional derivative.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 3 / 18

  • 8/11/2019 Directed Derivatives

    8/61

    Partial derivatives and directional derivatives

    In two dimensions, partial derivatives are:

    The surface and contour maps for f with the plane for x= 0 and its trace.

    We have the trace of the function z=f(x, y) on the plane x=x0,yielding single variable function z=h(y) =f(x0, y). The partial derivativeat (x0, y0) is the value of the one-dimensional derivative.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 3 / 18

  • 8/11/2019 Directed Derivatives

    9/61

    Partial derivatives and directional derivatives

    In two dimensions:

    The surface and contour maps for f with the plane for y =x 2 and its trace.

    The partial derivatives show different directions: on the plane y=y0, inthe direction of (positive) x; and on the plane x=x0, in the direction of(positive) y. Here, we choose the direction of1, 1.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 3 / 18

  • 8/11/2019 Directed Derivatives

    10/61

    Vectors and directional derivatives

    On the xy-plane, direction is indicated by a (unit) vector, u=a, b,a2 +b2 = 1 (or, alternatively, u() =cos , sin ).

    Given unit vector u and differentiable function f(x, y), how do we find thederivative of f at (x0, y0) in the direction ofu, Duf(x0, y0)?

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 4 / 18

  • 8/11/2019 Directed Derivatives

    11/61

    Vectors and directional derivatives

    On the xy-plane, direction is indicated by a (unit) vector, u=a, b,a2 +b2 = 1 (or, alternatively, u() =cos , sin ).

    Given unit vector u and differentiable function f(x, y), how do we find thederivative of f at (x0, y0) in the direction ofu, Duf(x0, y0)?

    Using the graph, as with partial derivatives:

    Find the plane in the direction ofu passing through (x0, y0).

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 4 / 18

  • 8/11/2019 Directed Derivatives

    12/61

    Vectors and directional derivatives

    On the xy-plane, direction is indicated by a (unit) vector, u=a, b,a2 +b2 = 1 (or, alternatively, u() =cos , sin ).

    Given unit vector u and differentiable function f(x, y), how do we find thederivative of f at (x0, y0) in the direction ofu, Duf(x0, y0)?

    Using the graph, as with partial derivatives:

    Find the plane in the direction ofu passing through (x0, y0).

    Determine the trace of fon that plane.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 4 / 18

  • 8/11/2019 Directed Derivatives

    13/61

    Vectors and directional derivatives

    On the xy-plane, direction is indicated by a (unit) vector, u=a, b,a2 +b2 = 1 (or, alternatively, u() =cos , sin ).

    Given unit vector u and differentiable function f(x, y), how do we find thederivative of f at (x0, y0) in the direction ofu, Duf(x0, y0)?

    Using the graph, as with partial derivatives:

    Find the plane in the direction ofu passing through (x0, y0).

    Determine the trace of fon that plane.

    Evaluate the one-dimensional derivative.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 4 / 18

  • 8/11/2019 Directed Derivatives

    14/61

    Vectors and directional derivatives

    On the xy-plane, direction is indicated by a (unit) vector, u=a, b,a2 +b2 = 1 (or, alternatively, u() =cos , sin ).

    Given unit vector u and differentiable function f(x, y), how do we find thederivative of f at (x0, y0) in the direction ofu, Duf(x0, y0)?

    Using the graph, as with partial derivatives:

    Find the plane in the direction ofu passing through (x0, y0).

    Determine the trace of fon that plane.

    Evaluate the one-dimensional derivative.

    Is there an easier way?

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 4 / 18

  • 8/11/2019 Directed Derivatives

    15/61

    Limits and derivatives

    The one-dimensional derivative of f(x) at x0 is given by

    f (x0) = limh0

    f(x0+h)f(x0)h

    = limxx0

    f(x)f(x0)xx0 .

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 5 / 18

  • 8/11/2019 Directed Derivatives

    16/61

    Limits and derivatives

    The one-dimensional derivative of f(x) at x0 is given by

    f (x0) = limh0

    f(x0+h)f(x0)h

    = limxx0

    f(x)f(x0)xx0 .

    This is determines the slope of the tangent line as the limit of the slopesof approximating secant lines.

    Source: Wikipedia article on derivative

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 5 / 18

    Li i d d i i

  • 8/11/2019 Directed Derivatives

    17/61

    Limits and derivatives

    The one-dimensional derivative of f(x) at x0 is given by

    f (x0) = limh0

    f(x0+h)f(x0)h

    = limxx0

    f(x)f(x0)xx0 .

    This is determines the slope of the tangent line as the limit of the slopesof approximating secant lines.

    Source: Wikipedia article on derivative

    Important: these derivatives exist if and only ifthelimitsexist.M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 5 / 18

    Li i d di i l d i i

  • 8/11/2019 Directed Derivatives

    18/61

    Limits and directional derivatives

    The partial derivative of f(x, y) at (x0, y0) with respect to x and y,

    respectively, are given by

    fx(x0, y0) =f

    x(x0, y0) = lim

    h0

    f(x0+h, y0)f(x0, y0)h

    ,

    fy(x0, y0) = f

    y(x0, y0) = lim

    h0

    f(x0, y0+h)f(x0, y0)h

    .

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 6 / 18

    Li it d di ti l d i ti

  • 8/11/2019 Directed Derivatives

    19/61

    Limits and directional derivatives

    The partial derivative of f(x, y) at (x0, y0) with respect to x and y,

    respectively, are given by

    fx(x0, y0) =f

    x(x0, y0) = lim

    h0

    f(x0+h, y0)f(x0, y0)h

    ,

    fy(x0, y0) = f

    y(x0, y0) = lim

    h0

    f(x0, y0+h)f(x0, y0)h

    .

    Likewise, the derivative of f(x, y) at (x0, y0) in the direction of unit vectoru=a, b is given by

    Duf(x0, y0) =f

    u (x0, y0) = lim

    h0

    f(x0

    +ah, y0

    +bh)

    f(x0, y

    0)

    h .

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 6 / 18

    Li it d di ti l d i ti

  • 8/11/2019 Directed Derivatives

    20/61

    Limits and directional derivatives

    The partial derivative of f(x, y) at (x0, y0) with respect to x and y,

    respectively, are given by

    fx(x0, y0) =f

    x(x0, y0) = lim

    h0

    f(x0+h, y0)f(x0, y0)h

    ,

    fy(x0, y0) = f

    y(x0, y0) = lim

    h0

    f(x0, y0+h)f(x0, y0)h

    .

    Likewise, the derivative of f(x, y) at (x0, y0) in the direction of unit vectoru=a, b is given by

    Duf(x0, y0) =f

    u (x0, y0) = lim

    h0

    f(x0

    +ah, y0

    +bh)

    f(x0, y

    0)

    h .

    This means Dif(x0, y0) =fx(x0, y0), where i=1, 0, andDjf(x0, y0) =fy(x0, y0), where j=0, 1.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 6 / 18

    Di ectional de i ati es

  • 8/11/2019 Directed Derivatives

    21/61

    Directional derivatives

    Theorem

    The derivative of f (x, y) at(x0, y0) in the direction of unit vectoru=a, b is given by

    Duf(x0, y0) = fu

    (x0, y0) =afx(x0, y0) +bfy(x0, y0).

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 7 / 18

    Directional derivatives

  • 8/11/2019 Directed Derivatives

    22/61

    Directional derivatives

    Theorem

    The derivative of f (x, y) at(x0, y0) in the direction of unit vectoru=a, b is given by

    Duf(x0, y0) = fu

    (x0, y0) =u fx(x0, y0), fy(x0, y0).

    This follows from letting g(h) =f(x0+ah, y0+bh) =f(x, y) anddetermining Duf(x0, y0) =g

    (0), which follows by the chain rule.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 7 / 18

    Directional derivatives

  • 8/11/2019 Directed Derivatives

    23/61

    Directional derivatives

    Theorem

    The derivative of f (x, y) at(x0, y0) in the direction of unit vectoru=a, b is given by

    Duf(x0, y0) = fu

    (x0, y0) =u fx(x0, y0), fy(x0, y0).

    This follows from letting g(h) =f(x0+ah, y0+bh) =f(x, y) anddetermining Duf(x0, y0) =g

    (0), which follows by the chain rule.

    The directional derivative Duf(x, y) follows as usual.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 7 / 18

    Example

  • 8/11/2019 Directed Derivatives

    24/61

    Example

    Find the directional derivative Duf(x, y) if

    f(x, y) =x3 3xy+ 4y2

    and u is the unit vector given by angle =/6. What is Duf(1, 2)?

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 8 / 18

    Example

  • 8/11/2019 Directed Derivatives

    25/61

    Example

    Find the directional derivative Duf(x, y) if

    f(x, y) =x3 3xy+ 4y2

    and u is the unit vector given by angle =/6. What is Duf(1, 2)?

    fx(x, y) = 3x2 3y, fy(x, y) = 8y3x,

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 8 / 18

    Example

  • 8/11/2019 Directed Derivatives

    26/61

    Example

    Find the directional derivative Duf(x, y) if

    f(x, y) =x3 3xy+ 4y2and u is the unit vector given by angle =/6. What is Duf(1, 2)?

    fx(x, y) = 3x2 3y, fy(x, y) = 8y3x,u=cos(/6), sin(/6)=

    3/2, 1/2,

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 8 / 18

    Example

  • 8/11/2019 Directed Derivatives

    27/61

    Example

    Find the directional derivative Duf(x, y) if

    f(x, y) =x3 3xy+ 4y2and u is the unit vector given by angle =/6. What is Duf(1, 2)?

    fx(x, y) = 3x2 3y, fy(x, y) = 8y3x,u=cos(/6), sin(/6)=

    3/2, 1/2,

    Duf(x, y) =1

    2[

    3fx(x, y) +fy(x, y)]

    =12

    [33x2 3x+ (833)y],

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 8 / 18

    Example

  • 8/11/2019 Directed Derivatives

    28/61

    Example

    Find the directional derivative Duf(x, y) if

    f(x, y) =x3 3xy+ 4y2and u is the unit vector given by angle =/6. What is Duf(1, 2)?

    fx(x, y) = 3x2 3y, fy(x, y) = 8y3x,u=cos(/6), sin(/6)=

    3/2, 1/2,

    Duf(x, y) =1

    2[

    3fx(x, y) +fy(x, y)]

    =12

    [33x2 3x+ (833)y],

    Duf(1, 2) =1

    2[3

    33 + (166

    3)] = (133

    3)/2.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 8 / 18

    Gradient vector

  • 8/11/2019 Directed Derivatives

    29/61

    Gradient vector

    A vector-valued function can be seen here:

    Duf(x, y) =f

    u(x, y) =u fx(x, y), fy(x, y).

    This vector-valued function is defined as thegradient of f:

    f(x, y) =fx(x, y), fy(x, y)=fx(x, y)i+fy(x, y)j.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 9 / 18

    Gradient vector

  • 8/11/2019 Directed Derivatives

    30/61

    Gradient vector

    A vector-valued function can be seen here:

    Duf(x, y) =f

    u(x, y) =u fx(x, y), fy(x, y).

    This vector-valued function is defined as thegradient of f:

    f(x, y) =fx(x, y), fy(x, y)=fx(x, y)i+fy(x, y)j.

    This gives a compact form (and alternative notation) for the derivative inthe direction of unit vector u:

    Duf(x, y) = fu

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

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 9 / 18

    Example

  • 8/11/2019 Directed Derivatives

    31/61

    xa p e

    Find the directional derivative of the function f(x, y) =x2y3 4yat thepoint (2,1) in the direction of the vector v= 2i+ 5j.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 10 / 18

    Example

  • 8/11/2019 Directed Derivatives

    32/61

    p

    Find the directional derivative of the function f(x, y) =x2y3 4yat thepoint (2,1) in the direction of the vector v= 2i+ 5j.First, determine the gradient at the point:

    f(x, y) =2xy3, 3x2y2 4 f(2,1) =4, 8.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 10 / 18

    Example

  • 8/11/2019 Directed Derivatives

    33/61

    p

    Find the directional derivative of the function f(x, y) =x2y3 4yat thepoint (2,1) in the direction of the vector v= 2i+ 5j.First, determine the gradient at the point:

    f(x, y) =2xy3, 3x2y2 4 f(2,1) =4, 8.

    v is not a unit vector, so determine the unit vector u in the direction ofv:

    u= v

    |v| =2, 5

    29.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 10 / 18

    Example

  • 8/11/2019 Directed Derivatives

    34/61

    p

    Find the directional derivative of the function f(x, y) =x2y3 4yat thepoint (2,1) in the direction of the vector v= 2i+ 5j.First, determine the gradient at the point:

    f(x, y) =2xy3, 3x2y2 4 f(2,1) =4, 8.

    v is not a unit vector, so determine the unit vector u in the direction ofv:

    u= v

    |v| =2, 5

    29.

    Finally,

    Duf(2,1) =2, 529

    4, 8= 3229

    .

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 10 / 18

    Three-dimensional directional derivatives

  • 8/11/2019 Directed Derivatives

    35/61

    The derivative of a differentiable function f(x, y, z) at x= (x0, y0, z0) inthe direction of unit vector u=a, b, c, a2 +b2 +c2 = 1 is given by

    Duf(x) =f

    u(x) =u

    f(x),

    where the gradient of f is given by

    f(x, y, z) =fx(x, y, z), fy(x, y, z), fz(x, y, z)=fx(x, y, z)i+fy(x, y, z)j+fz(x, y, z)k.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 11 / 18

    Example

  • 8/11/2019 Directed Derivatives

    36/61

    If f(x, y, z) =xsin yz, (a) find the gradient of f and (b) find thedirectional derivative of the function f at (1, 3, 0) in the direction of

    v=i+ 2jk.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 12 / 18

    Example

  • 8/11/2019 Directed Derivatives

    37/61

    If f(x, y, z) =xsin yz, (a) find the gradient of f and (b) find thedirectional derivative of the function f at (1, 3, 0) in the direction of

    v=i+ 2jk.(a) The gradient of f is

    f(x, y, z) =sin yz, xzcos yz, xycos yz.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 12 / 18

    Example

  • 8/11/2019 Directed Derivatives

    38/61

    If f(x, y, z) =xsin yz, (a) find the gradient of f and (b) find thedirectional derivative of the function f at (1, 3, 0) in the direction of

    v=i+ 2jk.(a) The gradient of f is

    f(x, y, z) =sin yz, xzcos yz, xycos yz.

    (b) This gives the gradient at the pointf(1, 3, 0) =0, 0, 3.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 12 / 18

    Example

  • 8/11/2019 Directed Derivatives

    39/61

    If f(x, y, z) =xsin yz, (a) find the gradient of f and (b) find thedirectional derivative of the function f at (1, 3, 0) in the direction of

    v=i+ 2jk.(a) The gradient of f is

    f(x, y, z) =sin yz, xzcos yz, xycos yz.

    (b) This gives the gradient at the pointf(1, 3, 0) =0, 0, 3.

    v is not a unit vector, so determine the unit vector u in the direction ofv:

    u=

    v

    |v| =1, 2,

    1

    6 .

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 12 / 18

    Example

  • 8/11/2019 Directed Derivatives

    40/61

    If f(x, y, z) =xsin yz, (a) find the gradient of f and (b) find thedirectional derivative of the function f at (1, 3, 0) in the direction of

    v=i+ 2jk.(a) The gradient of f is

    f(x, y, z) =sin yz, xzcos yz, xycos yz.

    (b) This gives the gradient at the pointf(1, 3, 0) =0, 0, 3.

    v is not a unit vector, so determine the unit vector u in the direction ofv:

    u=

    v

    |v| =1, 2,

    1

    6 .Finally,

    Duf(1, 3, 0) =1, 2,1

    6 0, 0, 3= 3

    6.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 12 / 18

    Direction of greatest ascent

  • 8/11/2019 Directed Derivatives

    41/61

    Theorem

    Given differentiable function f ,

    maxu

    Duf(x) =|f(x)|, for all unit vectorsu,

    where the maximum is attained when u is in the direction of f(x).

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 13 / 18

    Direction of greatest ascent

  • 8/11/2019 Directed Derivatives

    42/61

    Theorem

    Given differentiable function f ,

    maxu

    Duf(x) =|f(x)|, for all unit vectorsu,

    where the maximum is attained when u is in the direction of f(x).

    This follows from the fact that the dot product between a given vectorf(x) and a unit vector is maximum when the unit vector is in the samedirection as the given vector, i.e.

    u= f(x)

    |f(x)| ,and that uu=|u|2.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 13 / 18

    Direction of greatest ascent

  • 8/11/2019 Directed Derivatives

    43/61

    Theorem

    Given differentiable function f ,

    maxu

    Duf(x) =|f(x)|, for all unit vectorsu,

    where the maximum is attained when u is in the direction of f(x).

    This implies that thegreatest ascent in the graph of f at x is in thedirection off(x)likewise,greatest descentis in the direction off(x).

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 13 / 18

    Direction of greatest ascent

  • 8/11/2019 Directed Derivatives

    44/61

    Theorem

    Given differentiable function f ,

    maxu

    Duf(x) =|f(x)|, for all unit vectorsu,

    where the maximum is attained when u is in the direction of f(x).

    Source: Wikipedia article on gradient

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 13 / 18

    Example

  • 8/11/2019 Directed Derivatives

    45/61

    Suppose that the temperature is given at a point (x, y, z) in space is givenbyT(x, y, z) = 80/(1 +x2 + 2y2 + 3z2), where T is measured in degrees

    Celsius and x, y, z in meters. In what direction does the temperatureincrease fastest at the point (1, 1,2)? What is the maximum rate ofincrease?

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 14 / 18

    Example

  • 8/11/2019 Directed Derivatives

    46/61

    Suppose that the temperature is given at a point (x, y, z) in space is givenbyT(x, y, z) = 80/(1 +x2 + 2y2 + 3z2), where T is measured in degrees

    Celsius and x, y, z in meters. In what direction does the temperatureincrease fastest at the point (1, 1,2)? What is the maximum rate ofincrease?

    This is given byf(1, 1,2), where

    f(x, y, z) = 160x, 320y, 480z(1 +x2 + 2y2 + 3z2)2

    .

    Thus,f(1, 1,2) =5,10, 30/8.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 14 / 18

    Example

  • 8/11/2019 Directed Derivatives

    47/61

    Suppose that the temperature is given at a point (x, y, z) in space is givenbyT(x, y, z) = 80/(1 +x2 + 2y2 + 3z2), where T is measured in degrees

    Celsius and x, y, z in meters. In what direction does the temperatureincrease fastest at the point (1, 1,2)? What is the maximum rate ofincrease?

    This is given byf(1, 1,2), where

    f(x, y, z) = 160x, 320y, 480z(1 +x2 + 2y2 + 3z2)2

    .

    Thus,f(1, 1,2) =5,10, 30/8.

    The maximum rate of increase is given by

    |f(1, 1,2)|=58|1, 2,6|= 5

    8

    41.

    This is slightly more than 4C / m.M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 14 / 18

    Normal vectors and tangent lines

  • 8/11/2019 Directed Derivatives

    48/61

    Given an implicitly-defined curve (such as the level set of a function)f(x, y) =k, the Implicit Function Theorem gives

    dy

    dx = fx(x, y)

    fy(x, y),

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 15 / 18

    Normal vectors and tangent lines

  • 8/11/2019 Directed Derivatives

    49/61

    Given an implicitly-defined curve (such as the level set of a function)f(x, y) =k, the Implicit Function Theorem gives

    dy

    dx = fx(x, y)

    fy(x, y),

    which means that the tangent line to the curve at (x0, y0) is parallel to the

    vectorfy(x0, y0), fx(x0, y0).

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 15 / 18

    Normal vectors and tangent lines

  • 8/11/2019 Directed Derivatives

    50/61

    Given an implicitly-defined curve (such as the level set of a function)f(x, y) =k, the Implicit Function Theorem gives

    dy

    dx = fx(x, y)

    fy(x, y),

    which means that the tangent line to the curve at (x0, y0) is parallel to the

    vectorfy(x0, y0), fx(x0, y0).It can be seen that

    fy(x0, y0), fx(x0, y0) f(x0, y0) = 0;

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 15 / 18

    Normal vectors and tangent lines

  • 8/11/2019 Directed Derivatives

    51/61

    Given an implicitly-defined curve (such as the level set of a function)f(x, y) =k, the Implicit Function Theorem gives

    dy

    dx = fx(x, y)

    fy(x, y),

    which means that the tangent line to the curve at (x0, y0) is parallel to the

    vectorfy(x0, y0), fx(x0, y0).It can be seen that

    fy(x0, y0), fx(x0, y0) f(x0, y0) = 0;

    in other words, the gradient vector of the function fat the point (x0, y0) isperpendicular to the tangent line to the function at that point.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 15 / 18

    Normal vectors and tangent lines

  • 8/11/2019 Directed Derivatives

    52/61

    Given an implicitly-defined curve (such as the level set of a function)f(x, y) =k, the Implicit Function Theorem gives

    dy

    dx = fx(x, y)

    fy(x, y),

    which means that the tangent line to the curve at (x0, y0) is parallel to the

    vectorfy(x0, y0), fx(x0, y0).It can be seen that

    fy(x0, y0), fx(x0, y0) f(x0, y0) = 0;

    in other words, the gradient vector of the function fat the point (x0, y0) isperpendicular to the tangent line to the function at that point.

    It is said that the gradient vector is normalto thecurve.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 15 / 18

    Normal vectors and tangent planes

  • 8/11/2019 Directed Derivatives

    53/61

    The gradient vector is also normal to level surfaces in three dimensionsF(x, y, z) =k

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 16 / 18

    Normal vectors and tangent planes

  • 8/11/2019 Directed Derivatives

    54/61

    The gradient vector is also normal to level surfaces in three dimensionsF(x, y, z) =k, as shown in Stewarts Calculus, ch. 14.6.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 16 / 18

    Normal vectors and tangent planes

  • 8/11/2019 Directed Derivatives

    55/61

    The gradient vector is also normal to level surfaces in three dimensionsF(x, y, z) =k, as shown in Stewarts Calculus, ch. 14.6. This leads to adefinition of thetangent planeto the surface at the point (x0, y0, z0):

    F(x0, y0, z0) xx0, yy0, zz0= 0.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 16 / 18

    Normal vectors and tangent planes

  • 8/11/2019 Directed Derivatives

    56/61

    The gradient vector is also normal to level surfaces in three dimensionsF(x, y, z) =k, as shown in Stewarts Calculus, ch. 14.6. This leads to adefinition of thetangent planeto the surface at the point (x0, y0, z0):

    F(x0, y0, z0) xx0, yy0, zz0= 0.

    That is, for any point on the tangent plane (x, y, z), the vector from(x0, y0, z0) to (x, y, z) is perpendicular to the gradient vector at that point.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 16 / 18

    Example

  • 8/11/2019 Directed Derivatives

    57/61

    Find the equations of the tangent plane and normal line at the point(

    2, 1,

    3) to the ellipsoid

    x2

    4 +y2 +

    z2

    9 = 3.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 17 / 18

    Example

  • 8/11/2019 Directed Derivatives

    58/61

    Find the equations of the tangent plane and normal line at the point(

    2, 1,

    3) to the ellipsoid

    x2

    4 +y2 +

    z2

    9 = 3.

    The gradient off(x, y, z) = 3 is given byf(x, y, z) =x/2, 2y, 2z/9,

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 17 / 18

    Example

  • 8/11/2019 Directed Derivatives

    59/61

    Find the equations of the tangent plane and normal line at the point(

    2, 1,

    3) to the ellipsoid

    x2

    4 +y2 +

    z2

    9 = 3.

    The gradient off(x, y, z) = 3 is given byf(x, y, z) =x/2, 2y, 2z/9, sothe equation to the tangent plane to the point is given by

    1, 2,2/3 x+ 2, y1, z+ 3=x+ 2y23

    z6 = 0.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 17 / 18

    Example

  • 8/11/2019 Directed Derivatives

    60/61

    Find the equations of the tangent plane and normal line at the point(

    2, 1,

    3) to the ellipsoid

    x2

    4 +y2 +

    z2

    9 = 3.

    The gradient off(x, y, z) = 3 is given byf(x, y, z) =x/2, 2y, 2z/9, sothe equation to the tangent plane to the point is given by

    1, 2,2/3 x+ 2, y1, z+ 3=x+ 2y23

    z6 = 0.

    The normal line is given by

    (x+ 2) = y12

    =3z+ 92

    .

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 17 / 18

    Summary

  • 8/11/2019 Directed Derivatives

    61/61

    The gradient of a differentiable multivariate function is a vector:

    f(x, y) =fx(x, y), fy(x, y).

    The derivative of a differentiable multivariate function in the direction of aunit vector u is given as

    Duf(x, y) =u f(x, y).

    The gradient of a differentiable multivariate function at a point is a vectornormal to the graph of the function at that point, and is the direction ofsteepest ascent.

    The length of the gradient is the maximum value of the directionalderivative over all unit vectors.

    M. D. V. Samson (DigiPen SG) Directional Derivatives 18 July 2014 18 / 18