Return to Video

www.mathcentre.ac.uk/.../8.6%20Chain%20Rule.mp4

  • 0:01 - 0:07
    Sometimes we have functions that
    look like this.
  • 0:07 - 0:11
    Cause of X squared.
  • 0:12 - 0:18
    Now there are immediate things
    that are different about this
  • 0:18 - 0:24
    than the straightforward cosine
    function. It's cause of X
  • 0:24 - 0:32
    squared, not just cause of X,
    and so we call this function
  • 0:32 - 0:38
    of a function Y equals a
    function of another function.
  • 0:39 - 0:41
    Now in this case.
  • 0:41 - 0:48
    The function F is the cosine
    function, and the function G is
  • 0:48 - 0:55
    the square function. Or we could
    identify them, perhaps a bit
  • 0:55 - 1:00
    more mathematically by saying
    that F of X is cause
  • 1:00 - 1:07
    X&G of X is X squared.
    Now let's have a look at
  • 1:07 - 1:10
    another example of this.
  • 1:11 - 1:16
    This time we'll turn it around,
    so to speak. Let's have a look
  • 1:16 - 1:17
    at cause squared X.
  • 1:18 - 1:24
    Now, how is this a function of a
    function? Let's remember what
  • 1:24 - 1:30
    cost squared of X means. It
    means cause X squared cause X
  • 1:30 - 1:36
    multiplied by itself. So now if
    we look at our function of a
  • 1:36 - 1:43
    function. Let's see what we can
    do to identify which is F and
  • 1:43 - 1:49
    which is G of X. So here we are
    squaring, so it's the F is the
  • 1:49 - 1:53
    square function, and inside the
    square function, the thing that
  • 1:53 - 1:59
    we are actually squaring is G of
    X, namely cause X. So here the F
  • 1:59 - 2:05
    is the square function and the G
    is the cosine function. Or write
  • 2:05 - 2:07
    it down more mathematically F of
  • 2:07 - 2:14
    X. Is X squared? Angie of
    X is cause X?
  • 2:15 - 2:19
    Now how do we differentiate
    a function like Cos squared
  • 2:19 - 2:24
    X or a function like the
    cause of X squared? What we
  • 2:24 - 2:28
    need to do to be able to
    differentiate something that
  • 2:28 - 2:30
    is a function of a function?
  • 2:32 - 2:38
    To do that, we need
    to do two things. One,
  • 2:38 - 2:41
    we need to substitute.
  • 2:43 - 2:51
    You equals G of X. This would
    then give us Y equals F of
  • 2:51 - 2:58
    you, which of course is much
    simpler than F of G of X.
  • 2:58 - 3:06
    Next we need to use a rule
    or a formula that's known as the
  • 3:06 - 3:11
    chain rule. China
    rules quite simple,
  • 3:11 - 3:18
    says DY by DX is
    equal to DY by EU
  • 3:18 - 3:21
    Times du by The X.
  • 3:22 - 3:27
    Notice it looks as though the D
    use cancel out. If these were
  • 3:27 - 3:30
    fractions, which they're not, it
    looks as though they might
  • 3:30 - 3:32
    cancel out. That's a way of
  • 3:32 - 3:36
    remembering it. So this is how
    we're going to approach it.
  • 3:36 - 3:38
    Substitute you equals G of X.
  • 3:39 - 3:44
    And then apply this rule called
    the chain rule in order to find
  • 3:44 - 3:48
    the derivative. So let's take a
    number of examples and the first
  • 3:48 - 3:52
    one will take is the very first
    example that we looked at.
  • 3:53 - 4:00
    And that was why equals
    cause of X squared.
  • 4:00 - 4:08
    So our first step was to
    put you equals X squared.
  • 4:08 - 4:15
    And then Y is
    equal to cause you.
  • 4:16 - 4:24
    Now the chain rule says DY
    by the X is equal to
  • 4:24 - 4:31
    DY by du times du by
    the X. So we need.
  • 4:31 - 4:33
    Do you buy the X?
  • 4:33 - 4:38
    Well, that's 2X. We
    differentiate this. We multiply
  • 4:38 - 4:45
    by the two and take one off
    the index. That leaves us 2X and
  • 4:45 - 4:49
    we need the why by DU.
  • 4:50 - 4:55
    And the derivative of Cos you is
    minus sign you.
  • 4:56 - 5:02
    So now we need to put these
    together DY by the X is equal
  • 5:02 - 5:10
    to. Divide by do you minus
    sign U times do you buy DX
  • 5:10 - 5:12
    which is 2 X?
  • 5:13 - 5:18
    Now this is all very well, but
    really we'd like to have
  • 5:18 - 5:24
    everything in terms of X. And
    here we've got you, so we need
  • 5:24 - 5:29
    to undo this substitution. If we
    put you equals X squared, we now
  • 5:29 - 5:36
    need to replace EU by X squared,
    and so we write minus 2X and
  • 5:36 - 5:40
    bringing the two X to the front
    sign of X squared.
  • 5:41 - 5:47
    Now they're all done like that.
    What I'm going to do with all
  • 5:47 - 5:52
    the next examples that I do is
    I'm going to put this
  • 5:52 - 5:57
    differentiation of the two bits
    up here with these two bits.
  • 5:58 - 6:05
    Let's have a look at the
    other one. We had. Y equals
  • 6:05 - 6:10
    cause squared X. Let's
    remember that meant the
  • 6:10 - 6:13
    cause of X all squared.
  • 6:14 - 6:22
    So this is now the G
    of X and so we will
  • 6:22 - 6:26
    put you equals cause of X.
  • 6:26 - 6:33
    Then Y is equal
    to you squared.
  • 6:34 - 6:40
    I can calculate do you
    buy DX that's minus sign
  • 6:40 - 6:47
    X and I can calculate
    DY by du. That's two
  • 6:47 - 6:55
    you. Write down the chain
    rule the why by DX is
  • 6:55 - 6:59
    DY by du times DU by
  • 6:59 - 7:05
    The X. And now we can substitute
    in the bits that we've already
  • 7:05 - 7:08
    calculated. The why by do you is
  • 7:08 - 7:14
    to you. Times do you buy DX
    which is minus sign X equals.
  • 7:14 - 7:22
    Now again we want this all in
    terms of X. So what we have to
  • 7:22 - 7:28
    do is reverse the substitution
    we put you equals to cause X and
  • 7:28 - 7:35
    now we need to undo that by
    replacing EU with cause X. So
  • 7:35 - 7:39
    bringing the minus sign to the
    front minus 2.
  • 7:39 - 7:42
    Kohl's X
  • 7:42 - 7:48
    Sign X.
    Let's take
  • 7:48 - 7:52
    another example.
  • 7:53 - 8:01
    Y equals 2X minus five
    all raised to the power
  • 8:01 - 8:07
    10. Now, it might be tempting to
    say, well surely we could just
  • 8:07 - 8:11
    multiply out the brackets, but
    this is to the power 10 to
  • 8:11 - 8:15
    multiply out. Those brackets
    would take his ages, and there's
  • 8:15 - 8:20
    all those mistakes that could be
    made in doing it. Plus when we
  • 8:20 - 8:25
    differentiate it, we may not
    have the best form for future
  • 8:25 - 8:30
    work, so let's use function of a
    function. So here we will put
  • 8:30 - 8:32
    you equals this bit here inside
  • 8:32 - 8:35
    the bracket. 2X minus five
  • 8:35 - 8:43
    and then. Why is
    equal to U to the power
  • 8:43 - 8:43
    10?
  • 8:45 - 8:50
    I can now do the differentiation
    of the little bits. Do you buy
  • 8:50 - 8:57
    the X is just two the derivative
    of two X just giving us two and
  • 8:57 - 9:04
    E? Why by DU is 10 we multiply
    by the index U to the power 9.
  • 9:04 - 9:10
    We take one away from the index.
    Now we can put this together
  • 9:10 - 9:15
    using the chain rule so divided
    by DX is equal to.
  • 9:16 - 9:23
    The why by DU times
    DU by X, substituting our
  • 9:23 - 9:31
    little bits. Here's the why
    by DU10U to the ninth
  • 9:31 - 9:35
    times two do you buy
  • 9:35 - 9:41
    DX? 2 * 10 is 20 and I
    want you to the power 9 and I
  • 9:41 - 9:47
    need to get this all in terms of
    X, so I need to replace the you
  • 9:47 - 9:54
    here. By the two X minus five.
    So that's 2X minus five all to
  • 9:54 - 9:58
    the power 9, and that's a
    compact expression for the
  • 9:58 - 10:02
    derivative. Think what it would
    have been like if I had to
  • 10:02 - 10:05
    expand the brackets and
    differentiate each term.
  • 10:07 - 10:13
    I want now to take another trick
    example and then develope that
  • 10:13 - 10:20
    trig example a little bit
    further to a more general case.
  • 10:21 - 10:27
    So we'll take
    Y equals the
  • 10:27 - 10:30
    sign of 5X.
  • 10:31 - 10:38
    Very easy here to identify the
    G of X. It's this bit
  • 10:38 - 10:43
    here the 5X so will put
    you equals 5X.
  • 10:44 - 10:50
    And then why will be
    equal to sign you?
  • 10:51 - 10:58
    Differentiating do you buy the
    X is equal to 5.
  • 10:59 - 11:05
    And DY bite U is
    equal to cause you.
  • 11:06 - 11:13
    Put the two bits together with
    the chain rule DY by the
  • 11:13 - 11:20
    X is equal to DY by
    EU Times DU by The X.
  • 11:21 - 11:23
    DIY Bindu is cause you.
  • 11:23 - 11:30
    Times by and you by the
    ex here is 5.
  • 11:31 - 11:38
    So let's bring the five to
    the front 5 cause of, and
  • 11:38 - 11:44
    now let's reverse the
    substitution. You is equal to
  • 11:44 - 11:47
    5X, so will replace EU by
  • 11:47 - 11:53
    5X. Now, notice how that five
    here and here is apparently
  • 11:53 - 11:59
    appeared there, and it did so
    because the derivative of 5X was
  • 11:59 - 12:06
    five. So the question is, could
    we do this with any number that
  • 12:06 - 12:13
    appeared there in front of the X
    bit five or six? Or 1/2 or
  • 12:13 - 12:16
    not .5? Or for that matter, an
  • 12:16 - 12:23
    so? Have a look at
    Y equal sign NX.
  • 12:25 - 12:29
    You equals an X that
  • 12:29 - 12:36
    sour substitution. And then Y
    is equal to sign you we can
  • 12:36 - 12:42
    differentiate EU with respect to
    X and the derivative of NX is
  • 12:42 - 12:46
    just N because N is a constant
  • 12:46 - 12:53
    and number. And the why by
    DU is equal to cause you.
  • 12:53 - 12:56
    We can now put this back
  • 12:56 - 13:04
    together again. My by the X
    is DY by EU Times
  • 13:04 - 13:06
    DU by The X.
  • 13:07 - 13:14
    Equals. DIY
    Bindu is cause you.
  • 13:14 - 13:18
    Times by du by DX, which is just
  • 13:18 - 13:25
    N. So let's move the
    end to the front. That's
  • 13:25 - 13:28
    N cause NX.
  • 13:28 - 13:31
    So the ends of behaved in
    exactly the same way that the
  • 13:31 - 13:35
    fives behaved in the previous
    question. And of course this
  • 13:35 - 13:39
    means. Now we're in a position
    to be able to do any question
  • 13:39 - 13:41
    like this simply by writing down
  • 13:41 - 13:47
    the answer. So if we're just
    going to write down the answer,
  • 13:47 - 13:54
    let's take. Why is
    sign of 6X?
  • 13:54 - 14:02
    And then divide by the X is
    just six cause 6X just by using
  • 14:02 - 14:06
    the standard result that we had
  • 14:06 - 14:13
    before. Similarly, if we had
    Y was equal to cause 1/2, X
  • 14:13 - 14:18
    will just because it's cause
    it's not going to be any
  • 14:18 - 14:25
    different to sign really and
    so D. Why by DX is equal
  • 14:25 - 14:30
    to 1/2 and the derivative of
    causes minus sign 1/2 X.
  • 14:31 - 14:38
    Now let's take one more example.
    In this particular style, so
  • 14:38 - 14:46
    will take Y equals E to
    the X cubed. And here this
  • 14:46 - 14:54
    X cubed is our G of
    X. So we will put you
  • 14:54 - 14:55
    equals X cubed.
  • 14:55 - 15:02
    And then why will be equal 2
    E to the power you we can
  • 15:02 - 15:08
    differentiate. So do you find
    the X is equal to three X
  • 15:08 - 15:14
    squared? We multiply by the
    power and take one off it. And
  • 15:14 - 15:21
    why by DU is equal to E
    to the power you we
  • 15:21 - 15:25
    differentiate with respect to
    you. The exponential function is
  • 15:25 - 15:29
    it's. Own derivative, and so it
    stays the same.
  • 15:30 - 15:36
    Bringing those two bits together
    to give us the why by DX through
  • 15:36 - 15:43
    the chain rule DY by DX is DY by
    du times by DU by The X.
  • 15:44 - 15:51
    The why Bindu is E to the power
    you times by du by DX which is
  • 15:51 - 15:52
    3 X squared.
  • 15:53 - 15:57
    Move the three X squared through
    to the front.
  • 15:58 - 16:03
    E to the power. And now we made
    the substitution that gave us
  • 16:03 - 16:07
    you we put you equals X cubed
    and now we need to.
  • 16:08 - 16:15
    Reverse that substitution and
    replace U by X cubed.
  • 16:16 - 16:21
    So let's have a look at what
    we've got here.
  • 16:22 - 16:29
    E to the X cubed. Now if we
    think of this as E to EU then E
  • 16:29 - 16:34
    to EU is just the derivative of
    the F with respect to you.
  • 16:34 - 16:38
    Because the exponential function
    is own derivative and here the
  • 16:38 - 16:43
    three X squared is simply the
    derivative of U with respect to
  • 16:43 - 16:49
    X. In other words, it's the
    derivative of G of X. Now let's
  • 16:49 - 16:53
    see if we can put that together
    for a general case.
  • 16:54 - 17:01
    So we've got Y equals
    F of G of X.
  • 17:03 - 17:10
    And we're putting you equals G
    of X and our chain rule tells
  • 17:10 - 17:15
    us that the why by the X
    is equal to.
  • 17:16 - 17:23
    DY by EU Times
    DU by The X.
  • 17:24 - 17:29
    Equals let's start here. You
    remember that in most of the
  • 17:29 - 17:34
    examples that I've done, I've
    been pushing the result of du by
  • 17:34 - 17:37
    DX forward to the front of the
  • 17:37 - 17:44
    expression. So let's do it to
    begin with. Instead, at the end
  • 17:44 - 17:49
    when we've been simplifying, so
    do you buy DX? This is the
  • 17:49 - 17:56
    derivative of G of X, so that's
    DG by D of X by DX.
  • 17:57 - 18:03
    Times by and this is the why
    by DU. So that's the derivative
  • 18:03 - 18:09
    of F of G of X with
    respect to you.
  • 18:10 - 18:16
    Now can we use this? Let's have
    a look at an example why equals
  • 18:16 - 18:23
    the tan of X squared and so DY
    by the X is equal to.
  • 18:23 - 18:29
    Well, this bit here is the G of
    X, so we need its derivative
  • 18:29 - 18:33
    and we're going to write it
    down at the front. That's easy,
  • 18:33 - 18:37
    that's 2X. And now we need to
    differentiate tan as though
  • 18:37 - 18:42
    this was tamu with respect to
    you and the derivative of tan
  • 18:42 - 18:48
    is just sex squared. And then
    we need to put in the G of X
  • 18:48 - 18:49
    sex squared X squared.
  • 18:51 - 18:55
    Notice how short this is. 2
    lines. Let's just look back at
  • 18:55 - 19:00
    the example that we did before
    and it took us all of this.
  • 19:01 - 19:05
    What we've done is we've
    contracted this whole process to
  • 19:05 - 19:08
    one that takes place in our
  • 19:08 - 19:15
    head. Quicker. You can still do
    it this way if you like, but if
  • 19:15 - 19:19
    you can get into the habit of
    doing this, it's much quicker.
  • 19:19 - 19:24
    So let's have a look at some
    examples and try and keep track
  • 19:24 - 19:29
    of what we're doing. So let's
    begin with Y equals E to the one
  • 19:29 - 19:30
    plus X squared.
  • 19:30 - 19:34
    Sunday why by DX is equal to.
  • 19:34 - 19:40
    Well, we can identify the G of
    X. It's this up here. The power
  • 19:40 - 19:44
    of the exponential function, and
    so if we differentiate that it's
  • 19:44 - 19:48
    2X. And now we want the
    derivative of the exponential
  • 19:48 - 19:54
    function. It is its own
    derivative, so that's E to the
  • 19:54 - 19:55
    one plus X squared.
  • 19:56 - 19:59
    Able to write it down straight
  • 19:59 - 20:06
    away. Let's take Y
    equals the sign of X
  • 20:06 - 20:10
    Plus E to the X.
  • 20:10 - 20:14
    The why by DX is equal to
  • 20:14 - 20:20
    well here. We can identify the G
    of X, so we want the derivative
  • 20:20 - 20:24
    of this to write down the
    derivative of X is one. The
  • 20:24 - 20:28
    derivative of E to the X is just
    E to the X.
  • 20:29 - 20:33
    Times by and we want the
    derivative of this.
  • 20:34 - 20:40
    As though this were you and the
    derivative of sine is cause, and
  • 20:40 - 20:43
    then X Plus E to the power X.
  • 20:44 - 20:50
    We take
    Y equals
  • 20:50 - 20:57
    the tan.
    All X squared
  • 20:57 - 21:00
    plus sign X.
  • 21:00 - 21:07
    Why buy the X is equal
    to identify the G of X?
  • 21:07 - 21:13
    That's this lump here, the X
    squared plus sign X
  • 21:13 - 21:16
    differentiate it 2X plus cause
  • 21:16 - 21:22
    X. And now the derivative of
    tan as though it were tan of
  • 21:22 - 21:27
    U. Well that will be sex
    squared. But instead of EU
  • 21:27 - 21:33
    we want you is G of X which
    is X squared plus sign X.
  • 21:36 - 21:43
    Y equals this time will have a
    look at one that's got brackets
  • 21:43 - 21:49
    and powers in it. 2 minus X to
    the 5th, all raised to the 9th
  • 21:49 - 21:56
    power. The why by DX is got
    to identify the G of X first and
  • 21:56 - 22:03
    the G of X is this bit inside
    the bracket the two minus X to
  • 22:03 - 22:08
    the power 5. So we need to
    differentiate that first, so
  • 22:08 - 22:12
    that's going to be minus 5X to
    the power 4.
  • 22:13 - 22:17
    Remember the derivative of two,
    which is a constant is 0 and
  • 22:17 - 22:22
    then multiply by the Five and
    take one off the index of minus
  • 22:22 - 22:23
    5X to the power 4.
  • 22:24 - 22:29
    Now we've got to differentiate
    to the power 9 as though it was
  • 22:29 - 22:35
    you to the power 9 will that
    would be times by 9, and then
  • 22:35 - 22:37
    instead of EU we want.
  • 22:37 - 22:43
    The two minus X to the 5th and
    we take one away from the
  • 22:43 - 22:48
    power. We get that little bit
    of tidying up to do here,
  • 22:48 - 22:51
    'cause we've got a
    multiplication that we can do
  • 22:51 - 22:57
    minus five times by 9 - 45 X
    to the power four 2 minus X to
  • 22:57 - 23:00
    the fifth, raised to the power
    8.
  • 23:01 - 23:05
    Take 1 final example.
  • 23:06 - 23:13
    Let's take Y equals the
    log of X plus sign
  • 23:13 - 23:18
    X. We can identify this as our
    G of X.
  • 23:19 - 23:26
    So D why by DX is equal to
    we can write down the derivative
  • 23:26 - 23:32
    of this one plus cause X times
    by and now we want the
  • 23:32 - 23:34
    derivative of log.
  • 23:34 - 23:40
    Well, the derivative of log of
    you would be one over you, so
  • 23:40 - 23:48
    this is one over and this is EU
    or the G of X one over X plus
  • 23:48 - 23:54
    sign X and it be untidy to leave
    it like that. So we move that
  • 23:54 - 23:58
    numerator one plus cause X. So
    it's more obviously the
  • 23:58 - 24:04
    numerator of the fraction. So
    what we've seen there is the use
  • 24:04 - 24:05
    of the chain rule.
  • 24:06 - 24:10
    But then modifying it slightly
    so we get used to writing down
  • 24:10 - 24:14
    the answer more or less
    straight away. You can still
  • 24:14 - 24:18
    use the chain rule. You can
    still do it at full length, but
  • 24:18 - 24:23
    if you can get into the habit
    of doing it like this, you find
  • 24:23 - 24:27
    it quicker and easier to be
    able to manage and more
  • 24:27 - 24:31
    complicated problems will be
    easier to do if you can short
  • 24:31 - 24:34
    cut short circuit some of the
    processes.
Title:
www.mathcentre.ac.uk/.../8.6%20Chain%20Rule.mp4
Video Language:
English

English subtitles

Revisions