< Return to Video

Chain rule example

  • 0:00 - 0:02
    - [Voiceover] So we have here f of x
  • 0:02 - 0:06
    being equal to the natural
    log of the square root of x.
  • 0:06 - 0:07
    And what we wanna do in this video
  • 0:07 - 0:10
    is find the derivative of f.
  • 0:10 - 0:15
    And the key here is to
    recognize that f can actually
  • 0:15 - 0:18
    be viewed as a composition
    of two functions.
  • 0:18 - 0:20
    And we can diagram that
    out, what's going on here?
  • 0:20 - 0:23
    Well if you input an
    x into our function f,
  • 0:23 - 0:25
    what's the first thing that you do?
  • 0:25 - 0:26
    Well, you take the square root of it.
  • 0:26 - 0:30
    So if we start off with
    some x, you input it,
  • 0:33 - 0:36
    the first thing that you do,
    you take the square root of it.
  • 0:36 - 0:40
    You are going to take the
    square root of the input
  • 0:40 - 0:42
    to produce the square root of x,
  • 0:43 - 0:44
    and then what do you do?
  • 0:44 - 0:47
    You take the square root and then
  • 0:47 - 0:48
    you take the natural log of that.
  • 0:48 - 0:51
    So then you take the natural log of that,
  • 0:51 - 0:53
    so you could view that as inputting it
  • 0:53 - 0:55
    into another function
    that takes the natural log
  • 0:55 - 0:58
    of whatever is inputted in.
  • 0:58 - 0:59
    I'm making these little squares to
  • 0:59 - 1:01
    show what you do with the input.
  • 1:01 - 1:02
    And then what do you produce?
  • 1:02 - 1:07
    Well you produce the natural
    log of the square root of x.
  • 1:07 - 1:10
    Natural log of the square root of x.
  • 1:10 - 1:12
    Which is equal to f of x.
  • 1:12 - 1:16
    So you could view f of
    x as this entire set,
  • 1:19 - 1:21
    or this entire, I guess you could say,
  • 1:21 - 1:24
    this combination of
    functions right over there.
  • 1:24 - 1:27
    That is f of x, which is essentially,
  • 1:27 - 1:30
    a composition of two functions.
  • 1:30 - 1:31
    You're inputting into one function
  • 1:31 - 1:34
    then taking that output and
    inputting it into another.
  • 1:34 - 1:36
    So you could have a function u here,
  • 1:36 - 1:39
    which takes the square root
    of whatever its input is,
  • 1:39 - 1:43
    so u of x is equal to
    the square root of x.
  • 1:44 - 1:46
    And then you take that output,
  • 1:47 - 1:50
    and input it into another
    function that we could call v,
  • 1:50 - 1:51
    and what does v do?
  • 1:51 - 1:54
    Well it take the natural log
    of whatever the input is.
  • 1:54 - 1:57
    In this case, in the case
    of f, or in the case of how
  • 1:57 - 2:00
    I just diagrammed it, v
    is taking the natural log,
  • 2:00 - 2:02
    the input happens to be square root of x,
  • 2:02 - 2:05
    so it outputs the natural
    log of the square root of x.
  • 2:05 - 2:08
    If we wanted to write
    v with x as an input,
  • 2:08 - 2:10
    we would just say well
    that's the natural log,
  • 2:10 - 2:13
    that is just the natural log of x.
  • 2:14 - 2:16
    And as you can see here, f of x,
  • 2:16 - 2:18
    and I color-coded ahead of time,
  • 2:18 - 2:21
    is equal to, f of x is equal to,
  • 2:22 - 2:25
    the natural log of the square root of x.
  • 2:25 - 2:29
    So that is v of the square
    root of x, or v of u of x.
  • 2:31 - 2:34
    So it is a composition
    which tells you that,
  • 2:34 - 2:36
    okay, if I'm trying to
    find the derivative here,
  • 2:36 - 2:39
    the chain rule is going to be
    very, very, very, very useful.
  • 2:39 - 2:43
    And the chain rule tells
    us that f prime of x
  • 2:43 - 2:47
    is going to be equal to the derivative of,
  • 2:47 - 2:49
    you can view it as the outside function,
  • 2:49 - 2:51
    with respect to this inside function,
  • 2:51 - 2:55
    so it's going to be v prime of u of x,
  • 2:56 - 2:57
    v prime of u of x,
  • 2:59 - 3:01
    times the derivative
    of this inside function
  • 3:01 - 3:03
    with respect to x.
  • 3:03 - 3:06
    So that's just u prime, u prime of x.
  • 3:07 - 3:09
    So how do we evaluate these things?
  • 3:09 - 3:11
    Well, we know how to take
    the derivative of u of x
  • 3:11 - 3:16
    and v of x, u prime of x
    here, is going to be equal to,
  • 3:16 - 3:20
    well remember, square root
    of x is just the same thing
  • 3:20 - 3:23
    as x to 1/2 power, so we
    can use the power rule,
  • 3:23 - 3:27
    bring the 1/2 out from so
    it becomes 1/2 x to the,
  • 3:27 - 3:29
    and then take off one
    out of that exponent,
  • 3:29 - 3:33
    so that's 1/2 minus one
    is negative 1/2 power.
  • 3:33 - 3:37
    And what is v of x, sorry,
    what is v prime of x?
  • 3:39 - 3:41
    Well the derivative of
    the natural log of x
  • 3:41 - 3:45
    is one over x, we show
    that in other videos.
  • 3:45 - 3:48
    And so we now know what u prime of x is,
  • 3:48 - 3:53
    we know what v prime of x is,
    but what is v prime of u of x?
  • 3:53 - 3:57
    Well v prime of u of x,
    wherever we see the x,
  • 3:58 - 4:01
    we replace it, let me write
    that a little bit neater,
  • 4:01 - 4:05
    we replace that with a u
    of x, so v prime of u of x
  • 4:05 - 4:08
    is going to be equal to,
  • 4:08 - 4:11
    is going to be equal to one over u of x,
  • 4:11 - 4:14
    one over u of x, which is equal to,
  • 4:16 - 4:18
    which is equal to one over,
  • 4:18 - 4:20
    u of x is just the square root of x.
  • 4:20 - 4:23
    One over the square root of x.
  • 4:25 - 4:29
    This thing right over
    here, we have figured out,
  • 4:29 - 4:31
    is one over the square root of x,
  • 4:31 - 4:35
    and this thing, u prime
    of x, we figured out,
  • 4:36 - 4:40
    is 1/2 times x to the negative 1/2,
  • 4:40 - 4:42
    and x to the negative 1/2,
    I could rewrite that as 1/2
  • 4:42 - 4:46
    times one over x to the
    1/2, which is the same thing
  • 4:46 - 4:51
    as 1/2 times one over
    the square root of x,
  • 4:51 - 4:55
    or I could write that as one
    over 2 square roots of x.
  • 4:55 - 4:58
    So what is this thing going to be?
  • 4:58 - 5:02
    Well this is going to
    be equal to, in green,
  • 5:02 - 5:07
    v prime of u of x is one
    over the square root of x,
  • 5:08 - 5:12
    times, times, u prime of
    x is one over two times
  • 5:14 - 5:17
    the square root of x, now what
    is this going to be equal to?
  • 5:17 - 5:20
    Well, this is going to be equal to,
  • 5:20 - 5:21
    this is just algebra at this point,
  • 5:21 - 5:24
    one over, we have our
    two and square root of x
  • 5:24 - 5:26
    times square root of x is just x.
  • 5:26 - 5:29
    So it just simplifies to one over two x.
  • 5:29 - 5:31
    So hopefully this made sense,
  • 5:31 - 5:33
    and I intentionally diagrammed it out
  • 5:33 - 5:35
    so that you start to get that
    muscle in your brain going
  • 5:35 - 5:38
    of recognizing the composite functions,
  • 5:38 - 5:39
    and then making a little bit more sense of
  • 5:39 - 5:41
    some of these expressions
    of the chain rule
  • 5:41 - 5:43
    that you might see in your calculus class,
  • 5:43 - 5:45
    or in your calculus textbook.
  • 5:45 - 5:47
    But as you get more practice,
    you'll be able to do it,
  • 5:47 - 5:50
    essentially, without having
    to write out all of this.
  • 5:50 - 5:52
    You'll say okay, look,
    I have a composition.
  • 5:52 - 5:55
    This is the natural log
    of the square root of x,
  • 5:55 - 5:57
    this is v of u of x.
  • 5:58 - 6:00
    So what I wanna do is I
    wanna take the derivative
  • 6:00 - 6:02
    of this outside function with respect
  • 6:02 - 6:04
    to this inside function.
  • 6:04 - 6:07
    So the derivative of
    natural log of something,
  • 6:07 - 6:12
    with respect to that something,
    is one over that something.
  • 6:12 - 6:14
    So it is one over that something,
  • 6:14 - 6:16
    the derivative natural log of something
  • 6:16 - 6:20
    with respect to that something
    is one over that something,
  • 6:20 - 6:21
    so that's what we just did here.
  • 6:21 - 6:24
    One way to think about it,
    what would natural log of x be?
  • 6:24 - 6:28
    Well that'd be one over x,
    but it's not natural log of x.
  • 6:28 - 6:29
    It's one over square root of x,
  • 6:29 - 6:31
    so it's going to be one
    over the square root of x,
  • 6:31 - 6:34
    so you take the derivative
    of the outside function
  • 6:34 - 6:35
    with respect to the inside one,
  • 6:35 - 6:37
    and then you multiply that
    times just the derivative
  • 6:37 - 6:41
    of the inside function with respect to x.
  • 6:42 - 6:43
    And we are done.
Title:
Chain rule example
Description:

more » « less
Video Language:
English
Duration:
06:45

English subtitles

Revisions