< Return to Video

Writing Riemann sum limit as definite integral

  • 0:01 - 0:02
    - [Instructor] So,
    we've got a Riemann sum.
  • 0:02 - 0:05
    We're gonna take the limit
    as N approaches infinity
  • 0:05 - 0:06
    and the goal of this video
  • 0:06 - 0:08
    is to see if we can rewrite this
  • 0:08 - 0:10
    as a definite integral.
  • 0:10 - 0:11
    I encourage you to pause the video
  • 0:11 - 0:15
    and see if you can work
    through it on your own.
  • 0:15 - 0:16
    So, let's remind ourselves
  • 0:16 - 0:20
    how a definite integral can
    relate to a Riemann sum.
  • 0:20 - 0:24
    So, if I have the definite
    integral from A to B
  • 0:27 - 0:29
    of F of X, F of X, DX,
  • 0:34 - 0:36
    we have seen in other videos
  • 0:36 - 0:39
    this is going to be the limit
  • 0:39 - 0:43
    as N approaches infinity
    of the sum, capital sigma,
  • 0:45 - 0:47
    going from I equals one to N
  • 0:48 - 0:50
    and so, essentially
    we're gonna sum the areas
  • 0:50 - 0:52
    of a bunch of rectangles
  • 0:52 - 0:55
    where the width of each
    of those rectangles
  • 0:55 - 0:57
    we can write as a delta X,
  • 0:58 - 1:01
    so your width is going to be delta X
  • 1:01 - 1:03
    of each of those rectangles
  • 1:03 - 1:04
    and then your height
  • 1:04 - 1:06
    is going to be the value of the function
  • 1:06 - 1:08
    evaluated some place in that delta X.
  • 1:08 - 1:10
    If we're doing a right Riemann sum
  • 1:10 - 1:13
    we would do the right
    end of that rectangle
  • 1:13 - 1:14
    or of that sub interval
  • 1:14 - 1:19
    and so, we would start
    at our lower bound A
  • 1:19 - 1:23
    and we would add as many delta
    Xs as our index specifies.
  • 1:24 - 1:25
    So, if I is equal to one,
  • 1:25 - 1:27
    we add one delta X,
  • 1:27 - 1:29
    so we would be at the right
    of the first rectangle.
  • 1:29 - 1:31
    If I is equal two, we add two delta Xs.
  • 1:31 - 1:35
    So, this is going to be delta X
  • 1:35 - 1:36
    times our index.
  • 1:37 - 1:39
    So, this is the general form
  • 1:39 - 1:41
    that we have seen before
  • 1:41 - 1:42
    and so, one possibility, you
    could even do a little bit
  • 1:42 - 1:44
    of pattern matching right here,
  • 1:44 - 1:47
    our function looks like
    the natural log function,
  • 1:47 - 1:49
    so that looks like our func F of X,
  • 1:49 - 1:52
    it's the natural log function,
  • 1:52 - 1:53
    so I could write that,
  • 1:53 - 1:57
    so F of X looks like the natural log of X.
  • 1:58 - 2:00
    What else do we see?
  • 2:00 - 2:02
    Well, A, that looks like two.
  • 2:04 - 2:06
    A is equal to two.
  • 2:06 - 2:08
    What would our delta X be?
  • 2:08 - 2:11
    Well, you can see this right over here,
  • 2:11 - 2:12
    this thing that we're multiplying
  • 2:12 - 2:15
    that just is divided by N
  • 2:15 - 2:17
    and it's not multiplying by an I,
  • 2:17 - 2:20
    this looks like our delta X
  • 2:20 - 2:23
    and this right over here
    looks like delta X times I.
  • 2:23 - 2:27
    So, it looks like our delta
    X is equal to five over N.
  • 2:28 - 2:31
    So, what can we tell so far?
  • 2:31 - 2:33
    Well, we could say that,
    okay, this thing up here,
  • 2:33 - 2:37
    up the original thing
    is going to be equal to
  • 2:37 - 2:38
    the definite integral,
  • 2:38 - 2:41
    we know our lower bound is going from two
  • 2:41 - 2:43
    to we haven't figured
    out our upper bound yet,
  • 2:43 - 2:45
    we haven't figured out our B yet
  • 2:45 - 2:49
    but our function is the natural log
  • 2:49 - 2:52
    of X and then I will just write a DX here.
  • 2:54 - 2:55
    So, in order to complete writing
  • 2:55 - 2:56
    this definite integral
  • 2:56 - 2:59
    I need to be able to write the upper bound
  • 2:59 - 3:01
    and the way to figure out the upper bound
  • 3:01 - 3:03
    is by looking at our delta X
  • 3:03 - 3:06
    because the way that we
    would figure out a delta X
  • 3:06 - 3:08
    for this Riemann sum here,
  • 3:08 - 3:12
    we would say that delta X
    is equal to the difference
  • 3:12 - 3:15
    between our bounds divided
    by how many sections
  • 3:15 - 3:18
    we want to divide it in, divided by N.
  • 3:18 - 3:20
    So, it's equals to B minus A,
  • 3:22 - 3:24
    B minus A over N, over N
  • 3:29 - 3:31
    and so, you can pattern match here.
  • 3:31 - 3:34
    If this is delta X is
    equal to B minus A over N.
  • 3:34 - 3:36
    Let me write this down.
  • 3:36 - 3:38
    So, this is going to be equal to B,
  • 3:39 - 3:42
    B minus our A which is two,
  • 3:43 - 3:45
    all of that over N,
  • 3:46 - 3:47
    so B minus two
  • 3:51 - 3:53
    is equal to five
  • 3:53 - 3:56
    which would make B equal to seven.
  • 3:56 - 3:58
    B is equal to seven.
  • 3:58 - 3:59
    So, there you have it.
  • 3:59 - 4:02
    We have our original
    limit, our Riemann limit
  • 4:04 - 4:06
    or our limit of our Riemann sum
  • 4:06 - 4:09
    being rewritten as a definite integral.
  • 4:09 - 4:10
    And once again, I want to emphasize
  • 4:10 - 4:11
    why this makes sense.
  • 4:11 - 4:13
    If we wanted to draw this
  • 4:13 - 4:15
    it would look something like this,
  • 4:15 - 4:19
    I'm gonna try to hand draw
    the natural log function,
  • 4:19 - 4:22
    it looks something like this
  • 4:27 - 4:30
    and this right over here would be one
  • 4:30 - 4:33
    and so, let's say this is two
  • 4:33 - 4:36
    and so going from two to seven,
  • 4:36 - 4:38
    this isn't exactly right
  • 4:39 - 4:43
    and so, our definite integral
    is concerned with the area
  • 4:43 - 4:47
    under the curve from two until seven
  • 4:47 - 4:48
    and so, this Riemann sum you can view
  • 4:48 - 4:52
    as an approximation when N
    isn't approaching infinity
  • 4:52 - 4:53
    but what you're saying is look,
  • 4:53 - 4:55
    when I is equal to one,
  • 4:55 - 4:59
    your first one is going to
    be of width five over N,
  • 4:59 - 5:02
    so this is essentially
    saying our difference
  • 5:02 - 5:03
    between two and seven,
  • 5:03 - 5:04
    we're taking that distance five,
  • 5:04 - 5:06
    dividing it into N rectangles,
  • 5:06 - 5:11
    and so, this first one is
    going to have a width of five
  • 5:11 - 5:14
    over N and then what's
    the height gonna be?
  • 5:14 - 5:16
    Well, it's a right Riemann sum,
  • 5:16 - 5:20
    so we're using the value of
    the function right over there,
  • 5:20 - 5:22
    write it two plus five over N.
  • 5:22 - 5:25
    So, this value right over here.
  • 5:25 - 5:27
    This is the natural log,
  • 5:27 - 5:30
    the natural log of two plus five over N,
  • 5:32 - 5:34
    and since this is the first rectangle
  • 5:34 - 5:36
    times one, times one.
  • 5:37 - 5:39
    Now we could keep going.
  • 5:39 - 5:40
    This one right over here
  • 5:40 - 5:43
    the width is the same, five over N
  • 5:43 - 5:45
    but what's the height?
  • 5:45 - 5:48
    Well, the height here,
    this height right over here
  • 5:48 - 5:50
    is going to be the natural log
  • 5:50 - 5:53
    of two plus five over
    N times two, times two.
  • 5:55 - 5:58
    This is for I is equal to two.
  • 5:58 - 6:01
    This is I is equal to one.
  • 6:01 - 6:03
    And so, hopefully you are
    seeing that this makes sense.
  • 6:03 - 6:05
    The area of this first rectangle
  • 6:05 - 6:07
    is going to be natural log of two
  • 6:07 - 6:09
    plus five over N times one
  • 6:09 - 6:10
    times five over N
  • 6:12 - 6:14
    and the second one over here,
  • 6:14 - 6:17
    natural log of two plus
    five over N times two
  • 6:19 - 6:20
    times five over N
  • 6:21 - 6:23
    and so, this is calculating the sum
  • 6:23 - 6:25
    of the areas of these rectangles
  • 6:25 - 6:28
    but then it's taking the
    limit as N approaches infinity
  • 6:28 - 6:30
    so we get better and better approximations
  • 6:30 - 6:33
    going all the way to the exact area.
Title:
Writing Riemann sum limit as definite integral
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
06:35

English subtitles

Revisions