< Return to Video

www.mathcentre.ac.uk/.../8.1%20Differentiation%201st%20principles%20Tangent.mp4

  • 0:01 - 0:06
    In this video, we're going to be
    looking at how to differentiate
  • 0:06 - 0:10
    very simple functions from first
    principles. So to begin with,
  • 0:10 - 0:14
    what we want to have a look at
    is a straight line.
  • 0:15 - 0:21
    A straight line has a constant
    gradient, or if we prefer its
  • 0:21 - 0:28
    rate of change of y with respect
    to x is a constant.
  • 0:29 - 0:33
    If we take the straight line y
    equals 3x + 2,
  • 0:33 - 0:37
    we can look at its gradient.
  • 0:38 - 0:43
    We take two points and look at
    the change in y divided by the
  • 0:43 - 0:44
    change in x.
  • 0:45 - 0:52
    When x changes from -1 to 0,
    y changes from -1 to 2,
  • 0:52 - 0:54
    and so the gradient is 3.
  • 0:56 - 1:00
    No matter which two points on
    the line that we use, the value
  • 1:00 - 1:02
    of the gradient is always the
  • 1:02 - 1:05
    same. It is always 3.
  • 1:07 - 1:14
    Now we can see that in another
    way, by looking at a table of values.
  • 1:14 - 1:20
    So let's take x ranging
    in values from -3 up to 3.
  • 1:20 - 1:27
    And let's have a look at 3x.
  • 1:27 - 1:33
    Which is simply the values of x
    we've got multiplied by 3.
  • 1:34 - 1:38
    And then add 2 to those values
    to give us the function
  • 1:38 - 1:42
    y equals 3x + 2.
  • 1:49 - 1:54
    Now as we look at this table
    of values, what we see is that
  • 1:54 - 2:02
    for every unit increase in x we
    always get 3 units increase in y.
  • 2:02 - 2:08
    So as we go from -3 to -2,
    y goes from -7 to -4.
  • 2:08 - 2:13
    As we go from 0 to 1, y goes
    from 2 to 5.
  • 2:13 - 2:21
    For every unit increase in x we
    get the same increase in y of 3 units.
  • 2:21 - 2:25
    And so the gradient of this
    straight line is 3 or
  • 2:25 - 2:30
    the rate of change of y with
    respect to x is also 3.
  • 2:31 - 2:36
    Now, nice as it is that a straight
    line has a constant gradient
  • 2:36 - 2:41
    and that y is changing at a
    constant rate with respect to x,
  • 2:41 - 2:45
    this is not always the case.
    So for instance when
  • 2:45 - 2:49
    you are in a car and you press
    the accelerator, you watch the
  • 2:49 - 2:54
    needle on the speedometer. The
    needle doesn't go up gradually,
  • 2:54 - 2:58
    it doesn't go up constantly. The
    rate of increase of the speed varies.
  • 3:00 - 3:05
    Similarly the acceleration due to gravity,
    now near the surface of the Earth,
  • 3:05 - 3:10
    we assume that it's constant.
    But Newton actually showed that
  • 3:10 - 3:15
    it was proportional to 1 over
    r squared, where r was the
  • 3:15 - 3:19
    distance that we were away from
    the surface of the earth. So we
  • 3:19 - 3:24
    can see that as we move further
    away from the surface of the
  • 3:24 - 3:28
    Earth, the acceleration due to
    gravity gets less, but it
  • 3:28 - 3:32
    doesn't change constantly. It
    doesn't change uniformly.
  • 3:33 - 3:39
    So to see what's happening we
    need to look at some very simple curves.
  • 3:40 - 3:45
    For a curve, we can see that if
    we join any pair of points, we
  • 3:45 - 3:46
    get a straight line.
  • 3:49 - 3:54
    But when we join different pairs
    of points, we tend to get very
  • 3:54 - 3:58
    different straight lines with
    very different gradients.
  • 4:00 - 4:07
    We can see this again by looking
    at very simple curve y equals x squared
  • 4:07 - 4:12
    and looking at a table
    of values for it from -3 again
  • 4:12 - 4:17
    up to +3. So now let's calculate
    the value of
  • 4:17 - 4:22
    the function y equals x squared
    at each of these values.
  • 4:27 - 4:30
    Now let's have a look how the
    value of the function is
  • 4:30 - 4:34
    changing as the value of
    x changes. So if we have a
  • 4:34 - 4:38
    unit increase in x from -3 to
    -2, we find that this time
  • 4:38 - 4:44
    the value of y is gone down
    from 9 to 4, so it's gone down
  • 4:44 - 4:50
    by 5 units. Not a problem if
    that decrease is going to be
  • 4:50 - 4:53
    sustained. But when we look at
    the next unit.
  • 4:53 - 4:59
    From -2 to -1, we find that it's
    gone down from 4 to 1,
  • 4:59 - 5:02
    y has decreased by 3.
  • 5:02 - 5:06
    And in the next unit it is
    decreased by 1, but then it
  • 5:06 - 5:12
    starts to increase again so we
    can see that for a very, very
  • 5:12 - 5:17
    simple function like y equals X
    squared, y is not changing
  • 5:17 - 5:21
    constantly with respect to x.
    Now this is not a problem so
  • 5:21 - 5:24
    long as we can find a way of
  • 5:24 - 5:30
    calculating it. To start that
    process, let's just have a look
  • 5:30 - 5:35
    at a sketch of y equals x squared.
  • 5:36 - 5:40
    And let me pick this
    point on the curve.
  • 5:41 - 5:46
    Now as we look at that look at
    this very tiny little bit,
  • 5:47 - 5:53
    that's almost straight, and if I
    was to home in and magnify, it
  • 5:53 - 5:57
    would be almost more straight
    and it would appear to be
  • 5:57 - 6:02
    straighter and straighter so as
    we homed in closer and closer to
  • 6:02 - 6:07
    the point what we would see
    would be much more like a
  • 6:07 - 6:13
    straight line. What straight
    line might we be able to take
  • 6:13 - 6:17
    to represent that sort of
    local straightness? And the
  • 6:17 - 6:20
    answer would have to be a
  • 6:20 - 6:23
    tangent. Through the point.
  • 6:25 - 6:31
    And that gives us what we need,
    because this tangent is a
  • 6:31 - 6:37
    straight line and we know that a
    straight line has got a constant
  • 6:37 - 6:42
    gradient, and so this is the
    definition that we make.
  • 6:42 - 6:45
    That the gradient
  • 6:47 - 6:51
    of a curve
  • 6:52 - 6:56
    y equals a function of x
  • 6:57 - 7:02
    at a given point
  • 7:03 - 7:06
    is equal
  • 7:07 - 7:11
    to the gradient
  • 7:13 - 7:16
    of the tangent
  • 7:18 - 7:21
    to the curve
  • 7:25 - 7:28
    at that point.
  • 7:30 - 7:33
    So notice we haven't defined the
  • 7:33 - 7:37
    gradient of the curve globally,
    so to speak,
  • 7:37 - 7:39
    we've said that at any particular
  • 7:39 - 7:44
    point, the gradient of that
    curve is going to be the same
  • 7:44 - 7:48
    as the gradient of the
    tangent. So now what we want
  • 7:48 - 7:53
    to see is how can we use this
    definition to help us actually
  • 7:53 - 7:57
    calculate that gradient at any
    particular point?
  • 7:59 - 8:05
    Let's take a fixed point P on
    our curve and a sequence of
  • 8:07 - 8:12
    Points Q1, Q2 and so on. Getting
    closer and closer to P.
  • 8:14 - 8:20
    We see that the lines from
    P to each of the Qs gets
  • 8:20 - 8:25
    nearer and nearer to being
    a tangent as the Qs come
  • 8:25 - 8:27
    nearer and nearer to P.
  • 8:29 - 8:35
    So if we calculate the gradient
    of one of these lines and let
  • 8:35 - 8:41
    the point Q Approach P along the
    curve than the gradient of the
  • 8:41 - 8:44
    line should approach the
    gradient of the Tangent.
  • 8:46 - 8:49
    And hence the gradient of
    the curve.
  • 8:50 - 8:56
    So let's now try and set up
    a calculation for the curve
  • 8:56 - 9:03
    y equals x squared at the point x
    equals 3, so that this
  • 9:03 - 9:06
    calculation represents what
    we've just seen.
  • 9:07 - 9:10
    So first of all, I'll
    sketch the curve.
  • 9:12 - 9:16
    So there is y equals x squared.
  • 9:17 - 9:19
    Here will take our point.
  • 9:20 - 9:25
    Where x is equal to three. I'm
    going to take a point Q,
  • 9:27 - 9:32
    which is near to P on the
    curve and I'm going to join up
  • 9:32 - 9:36
    those two points with a straight line.
  • 9:38 - 9:41
    So there's my point, P as
    my point Q and I'm going to take
  • 9:41 - 9:45
    a triangle formed by dropping a
    perpendicular down to reach the
  • 9:45 - 9:50
    horizontal through P. So that will
    give me a little right angle
  • 9:50 - 9:53
    triangle with the right angle at
    the point are.
  • 9:55 - 10:01
    Now I'm going to take
    small values of PR.
  • 10:02 - 10:05
    So that I get the coordinate
  • 10:05 - 10:15
    of Q. So let's line that up.
    PR will be first of all 0.1,
  • 10:16 - 10:22
    then 0.01, 0.001
  • 10:22 - 10:27
    and finally 0.0001.
  • 10:28 - 10:35
    So what will be the x coordinate
    of Q, x coordinate of Q?
  • 10:36 - 10:42
    Well, it will just be 3 + whatever PR is
  • 10:42 - 10:52
    so that will be 3.1, 3.01, 3.001
    and 3.0001.
  • 10:52 - 11:00
    Now I've got the x coordinate of Q,
    let's calculate the y coordinate of Q.
  • 11:01 - 11:05
    So that means we've got to
    square each of these,
  • 11:05 - 11:10
    so our first result will be 9.61
    when we square that.
  • 11:11 - 11:16
    Next is 9.0601.
  • 11:16 - 11:23
    Next 9.006001
  • 11:23 - 11:30
    and the next 9.00060001.
  • 11:32 - 11:37
    So what's the change in y
    for each of these?
  • 11:37 - 11:40
    In other words, what's QR?
  • 11:43 - 11:50
    We know that the base for where
    P is is if x is equal 3 at P,
  • 11:50 - 11:55
    y must be equal to 9.
    So QR, the increase in y
  • 11:55 - 11:59
    we can get by taking 9 away
    from each of these.
  • 11:59 - 12:16
    That's 0.61, 0.601, 0.006001,
    0.00060001.
  • 12:18 - 12:22
    So now we need to
    calculate the gradient of
  • 12:22 - 12:27
    each of these little segments
    PQ. So what is that gradient?
  • 12:27 - 12:35
    will it be the increase in y, which is
    QR, over PR, which is the increase in x.
  • 12:36 - 12:44
    So we've got 0.61 divided
    by 0.1. So to do the first one
  • 12:44 - 12:51
    I'll write it down 0.61 divided
    by 0.1, that is 6.1.
  • 12:53 - 13:00
    If we do the same calculation
    here, the answer is 6.01.
  • 13:01 - 13:07
    Do the same calculation here
    and it's 6.001.
  • 13:07 - 13:14
    And do the same calculation here
    and it's 6.0001.
  • 13:15 - 13:20
    So let's just have a look what's
    happening here. This gradient
  • 13:20 - 13:29
    seems to be getting nearer and
    nearer to 6. And 6, perhaps by coincidence
  • 13:30 - 13:38
    is 2 times by 3, where 3 is the x value
    at this point, P.
  • 13:39 - 13:45
    So we need to do this
    calculation again, but we need
  • 13:45 - 13:48
    to do it in general.
  • 13:49 - 13:53
    So let's set that situation.
  • 13:54 - 13:56
    We take our axes.
  • 13:58 - 14:05
    And we plot our curve
    y equals x squared.
  • 14:05 - 14:14
    Take my point P on the curve
    and P is (x,y).
  • 14:15 - 14:21
    And I take a point Q a little
    further along the curve.
  • 14:22 - 14:25
    How far along the curve is it?
  • 14:25 - 14:31
    Well, I'm going to increase x by
    a very small amount.
  • 14:33 - 14:36
    So we got the same triangle.
  • 14:37 - 14:39
    As we had in the calculation.
  • 14:40 - 14:43
    So there's R.
  • 14:43 - 14:49
    And I am increasing x, to get to R,
    by a very small amount and
  • 14:49 - 14:54
    that small amount is going to be
    written as delta x.
  • 14:55 - 15:02
    Now I cannot emphasize enough
    that delta x is not delta times by x.
  • 15:02 - 15:09
    It is a single symbol on its own,
    and it represents a small change in x.
  • 15:10 - 15:16
    What's that resulted in? Its pushed the
    point further along the curve to Q,
  • 15:16 - 15:21
    and so we've got a change in y
    of delta y
  • 15:21 - 15:34
    So that the coordinates of Q are now
    x + delta x and y + delta y.
  • 15:36 - 15:39
    Now. We've got the
    diagram labeled up.
  • 15:41 - 15:46
    And so what we need to be able
    to do is do some calculation.
  • 15:46 - 15:50
    What do we know? We know that
    this is the graph of the curve
  • 15:50 - 15:59
    y equals x squared.
    So here at the point Q we know that
  • 15:59 - 16:07
    y + delta y is equal to
    x + delta x all squared.
  • 16:08 - 16:19
    This we can multiply out. It will
    give us x squared plus 2x delta x,
  • 16:19 - 16:23
    and I'm going to put that
    in a bracket to emphasize the
  • 16:23 - 16:26
    fact that delta x is a
    single symbol,
  • 16:27 - 16:33
    plus delta x all squared.
  • 16:35 - 16:41
    But what else do we know? Will we
    know at this point P that y is
  • 16:41 - 16:43
    equal to x squared.
  • 16:44 - 16:51
    So y + delta y is equal to this but
    the y part is equal to x squared.
  • 16:51 - 16:59
    So that tells us therefore that the
    change in y, delta y, is this bit here:
  • 17:00 - 17:07
    2x delta x plus delta x all squared.
  • 17:08 - 17:13
    So let's now calculate the gradient of
    this line PQ.
  • 17:14 - 17:18
    The gradient of PQ,
  • 17:20 - 17:23
    well, it's QR over PR
  • 17:23 - 17:26
    or the change in y,
  • 17:29 - 17:36
    delta y, over the change in x.
  • 17:36 - 17:39
    And we've got expressions
    for both of these:
  • 17:39 - 17:45
    delta x is delta x and delta y is this.
  • 17:49 - 17:57
    So we've got delta y over delta x
    is equal to...
  • 17:57 - 18:06
    Let's remember that this was 2x
    delta x plus delta x all squared
  • 18:06 - 18:11
    and that was all over delta x.
  • 18:11 - 18:14
    Now, delta x is a common factor here.
  • 18:14 - 18:21
    Let's take it out as a common factor:
    2x + delta x
  • 18:21 - 18:30
    times by delta x; all over delta x.
    Now delta x is a small positive
  • 18:30 - 18:35
    amount of x, so we can
    cancel it out there and there.
  • 18:35 - 18:45
    So we have delta y over delta x
    is equal to 2x + delta x.
  • 18:46 - 18:48
    Now remember what we're doing.
  • 18:48 - 18:54
    We've calculated the gradient of
    this line PQ and we're going to let
  • 18:54 - 19:00
    Q come nearer and nearer to P
    along the curve.
  • 19:00 - 19:04
    So we're letting delta x
    tend to 0,
  • 19:04 - 19:12
    until this secant or cord, PQ,
    becomes the tangent.
  • 19:14 - 19:18
    And so we can say that the gradient
  • 19:20 - 19:22
    of
  • 19:22 - 19:24
    the tangent
  • 19:26 - 19:31
    at P is equal to...
  • 19:32 - 19:35
    Now we have to use some
    mathematical language.
  • 19:35 - 19:40
    What happens to this expression as
    delta x approaches 0?
  • 19:41 - 19:44
    Well, it would seem that if
    delta x got smaller and smaller
  • 19:44 - 19:46
    and smaller and smaller
    and smaller, it got to zero.
  • 19:46 - 19:52
    This would become 2x. We are
    approaching a limit of 2x and so
  • 19:52 - 19:55
    we use some mathematical
    language to help us say that. So
  • 19:55 - 19:58
    we say that this is the limit,
  • 19:59 - 20:03
    as delta x tends to 0,
  • 20:04 - 20:08
    of delta y over delta x
  • 20:08 - 20:10
    is equal to
  • 20:10 - 20:14
    the limit as delta x tends to 0
  • 20:15 - 20:18
    of 2x + delta x
  • 20:19 - 20:25
    And if delta x is going off to 0,
    this is just 2x and notice that
  • 20:25 - 20:28
    agrees with what we had before.
    When we said that the gradient
  • 20:28 - 20:36
    was 2 times by 3 equal 6 at
    the point where x is equal to 3.
  • 20:37 - 20:41
    Now we could do this
    calculation in just the same
  • 20:41 - 20:44
    way for all kinds of
    different curves, but it
  • 20:44 - 20:48
    would become a bit of a bind
    if we had to keep writing
  • 20:48 - 20:52
    this down all the time. So we
    have a special symbol for
  • 20:52 - 20:54
    this phrase, the limit.
  • 20:56 - 21:02
    as delta x tends to 0 of
    delta y over delta x.
  • 21:03 - 21:11
    And we write that as dy by
    dx and we say d y by d x
  • 21:11 - 21:17
    and that's a symbol all on its
    own as a unit which stands for
  • 21:17 - 21:25
    the limit as delta x tends to 0
    of delta y over delta x,
  • 21:26 - 21:30
    and in the case we've just
  • 21:30 - 21:38
    looked at, y equals X squared,
    dy by dx we've just seen is equal to 2x.
  • 21:44 - 21:49
    Now. Another video in the
    sequence will show how this is
  • 21:49 - 21:54
    done for y equals sine x and the
    processes that we go through.
  • 22:00 - 22:07
    We often use function notation
    y equals f of x.
  • 22:09 - 22:11
    So in function notation,
  • 22:11 - 22:16
    our point P, which
    was the point x, y,
  • 22:16 - 22:20
    becomes the point
    x, f of x.
  • 22:21 - 22:32
    Our point Q, which remember
    was x + delta x, y + delta y
  • 22:33 - 22:39
    Well, this remains as x + delta x
    for the x coordinate,
  • 22:39 - 22:47
    but the y + delta y. Well that's the
    function of x + delta x.
  • 22:49 - 22:54
    And so if we want to have a look
    at what we've done before, if
  • 22:54 - 22:56
    you remember, then we take
  • 22:57 - 23:04
    the change in y, that's delta y.
    So the change in y is:
  • 23:04 - 23:12
    what we had here, at Q,
    minus, what we had at P.
  • 23:12 - 23:25
    So that's f of x + delta x minus f of x,
    and so our gradient delta y over delta x
  • 23:25 - 23:35
    is f of x + delta x minus f of x
    all over delta x.
  • 23:38 - 23:40
    So dy by dx
  • 23:44 - 23:50
    is the limit as delta x tends to 0
  • 23:51 - 23:56
    of the change in y divided
    by the change in x that gave rise to it.
  • 23:57 - 23:59
    Which is the limit
  • 24:00 - 24:03
    as delta x tends to 0
  • 24:04 - 24:14
    of f of x + delta x
    minus f of x all over delta x
  • 24:14 - 24:17
    So, if we are using the language
    of functions. That's the
  • 24:17 - 24:21
    language that we use and
    sometimes for functions when
  • 24:21 - 24:25
    we're differentiating them
    instead of using the symbol
  • 24:25 - 24:30
    dy by dx, sometimes use
    the symbol a dash to indicate
  • 24:30 - 24:34
    that we've differentiated
    with respect to x.
  • 24:35 - 24:39
    Let's just take one
    example using this
  • 24:39 - 24:46
    notation, f of x is equal to the
    function 1 over x.
  • 24:48 - 24:52
    Have a sketch of this curve for
    positive values of x.
  • 24:53 - 24:57
    There it is coming down like
    that. So if I take
  • 24:58 - 25:04
    a point P and I increase
    the value of x by a small
  • 25:04 - 25:09
    amount to give me a second
    point Q on the curve. Then
  • 25:09 - 25:12
    I can see that in fact,
  • 25:13 - 25:16
    there's my delta x.
  • 25:17 - 25:22
    And there's delta y, so for all
    delta x still means a small
  • 25:22 - 25:28
    positive increasing x, delta y
    just means the change in y and
  • 25:28 - 25:33
    we can see that this is actually
    a decrease. Let me complete.
  • 25:35 - 25:41
    This triangle by drawing in
    that secant, PQ and let's
  • 25:41 - 25:46
    have these coordinates,
    this is x, y.
  • 25:47 - 25:52
    And this is. x + delta x
  • 25:52 - 25:59
    and then f of x + delta x.
  • 26:01 - 26:09
    So let's have a look what we've
    got: delta y is the change in y
  • 26:09 - 26:18
    and so it's f of x + delta x
    minus f of x.
  • 26:23 - 26:27
    And so delta y over delta x is
  • 26:27 - 26:34
    f of x + delta x minus f of x,
    all divided by delta x.
  • 26:38 - 26:43
    And this is the gradient of
    this line PQ.
  • 26:44 - 26:51
    OK, what is f of x + delta x
    well, f of x is 1 over x so
  • 26:51 - 26:55
    this is 1 over
    x + delta x.
  • 26:56 - 27:01
    minus f of x, which is just
    1 over x,
  • 27:01 - 27:04
    all divided by
  • 27:04 - 27:05
    delta x.
  • 27:06 - 27:13
    Here we have two fractions and we are
    subtracting them, so we need a
  • 27:13 - 27:17
    common denominator and that
    common denominator will be
  • 27:17 - 27:20
    x times, x + delta x.
  • 27:22 - 27:27
    So I've multiplied this by, this
    x + delta x, I have
  • 27:27 - 27:31
    multiplied it by x, so I must
    multiply the 1 by x.
  • 27:31 - 27:37
    Minus, and I've multiplied the x
    by x + delta x, so I must
  • 27:37 - 27:44
    multiply the 1 by x + delta x
    and then this is all
  • 27:44 - 27:47
    divided by delta x.
  • 27:49 - 27:52
    So let's look at the top, x - delta x,
    minus delta x.
  • 27:52 - 27:58
    So I've got x - x that goes out.
  • 27:59 - 28:05
    And I got on that line there - delta x.
  • 28:06 - 28:11
    All over, well, I'm dividing by
    that, and by that, so effectively
  • 28:11 - 28:14
    I'm dividing by both of them.
  • 28:19 - 28:22
    So there we've got them both
    written down.
  • 28:22 - 28:26
    Now delta x is a small positive quantity,
  • 28:27 - 28:33
    so I can divide top and bottom there
    by delta x, canceling delta x out.
  • 28:36 - 28:50
    So delta y over delta x is equal to
    -1 over, x + delta x, times by x.
  • 28:50 - 28:54
    Let me just multiply that
    denominator out so I
  • 28:54 - 29:01
    have x squared plus
    delta x times by x.
  • 29:03 - 29:13
    dy by dx is equal to the limit
    as delta x tends to 0 of
  • 29:13 - 29:16
    delta y over delta x.
  • 29:17 - 29:22
    Which will be the limit
    as delta x tends to 0
  • 29:23 - 29:31
    of -1 over x squared plus
    delta x times by x.
  • 29:32 - 29:36
    Equals... Let's have a look at
    what's happening in this denominator.
  • 29:36 - 29:47
    As delta x becomes very, very small
    x times by delta x is also very very small
  • 29:47 - 29:51
    and very much smaller than x squared.
  • 29:51 - 29:57
    So as delta x goes off to 0, this term
    here goes away to 0 and
  • 29:57 - 30:00
    just leaves us with the x squared.
  • 30:00 - 30:05
    So our limit is -1 over x squared.
  • 30:07 - 30:11
    And that's our calculation done
    in function notation to find the
  • 30:11 - 30:19
    derivative, as we call dy by dx,
    or the gradient of the curve at a point.
  • 30:20 - 30:24
    Now, the calculations that we've
    done or all quite complicated.
  • 30:25 - 30:28
    You need to do one or two
    to practice the method and
  • 30:28 - 30:33
    to see what's going on with
    it - to see how it's actually working.
  • 30:33 - 30:38
    But, to do most of your differentiation,
    there are a set of rules that you
  • 30:38 - 30:43
    can follow that will help you do the
    differentiation much more quickly.
Title:
www.mathcentre.ac.uk/.../8.1%20Differentiation%201st%20principles%20Tangent.mp4
Video Language:
English
Duration:
30:45

English subtitles

Revisions