0:00:00.760,0:00:02.395 - [Instructor] So,[br]we've got a Riemann sum. 0:00:02.395,0:00:04.925 We're gonna take the limit[br]as N approaches infinity 0:00:04.925,0:00:06.157 and the goal of this video 0:00:06.157,0:00:08.137 is to see if we can rewrite this 0:00:08.137,0:00:09.756 as a definite integral. 0:00:09.756,0:00:11.176 I encourage you to pause the video 0:00:11.176,0:00:14.775 and see if you can work[br]through it on your own. 0:00:14.775,0:00:16.054 So, let's remind ourselves 0:00:16.054,0:00:20.428 how a definite integral can[br]relate to a Riemann sum. 0:00:20.428,0:00:24.345 So, if I have the definite[br]integral from A to B 0:00:27.287,0:00:29.120 of F of X, F of X, DX, 0:00:34.052,0:00:36.391 we have seen in other videos 0:00:36.391,0:00:38.900 this is going to be the limit 0:00:38.900,0:00:43.067 as N approaches infinity[br]of the sum, capital sigma, 0:00:44.743,0:00:47.076 going from I equals one to N 0:00:47.918,0:00:49.566 and so, essentially[br]we're gonna sum the areas 0:00:49.566,0:00:51.720 of a bunch of rectangles 0:00:51.720,0:00:55.093 where the width of each[br]of those rectangles 0:00:55.093,0:00:57.260 we can write as a delta X, 0:00:58.142,0:01:00.916 so your width is going to be delta X 0:01:00.916,0:01:02.777 of each of those rectangles 0:01:02.777,0:01:03.736 and then your height 0:01:03.736,0:01:06.292 is going to be the value of the function 0:01:06.292,0:01:08.434 evaluated some place in that delta X. 0:01:08.434,0:01:10.128 If we're doing a right Riemann sum 0:01:10.128,0:01:12.799 we would do the right[br]end of that rectangle 0:01:12.799,0:01:14.412 or of that sub interval 0:01:14.412,0:01:18.580 and so, we would start[br]at our lower bound A 0:01:18.580,0:01:22.747 and we would add as many delta[br]Xs as our index specifies. 0:01:23.775,0:01:25.198 So, if I is equal to one, 0:01:25.198,0:01:26.942 we add one delta X, 0:01:26.942,0:01:28.962 so we would be at the right[br]of the first rectangle. 0:01:28.962,0:01:31.356 If I is equal two, we add two delta Xs. 0:01:31.356,0:01:34.630 So, this is going to be delta X 0:01:34.630,0:01:35.963 times our index. 0:01:37.058,0:01:38.623 So, this is the general form 0:01:38.623,0:01:40.649 that we have seen before 0:01:40.649,0:01:42.383 and so, one possibility, you[br]could even do a little bit 0:01:42.383,0:01:44.373 of pattern matching right here, 0:01:44.373,0:01:47.406 our function looks like[br]the natural log function, 0:01:47.406,0:01:49.129 so that looks like our func F of X, 0:01:49.129,0:01:51.952 it's the natural log function, 0:01:51.952,0:01:53.330 so I could write that, 0:01:53.330,0:01:56.830 so F of X looks like the natural log of X. 0:01:58.463,0:02:00.079 What else do we see? 0:02:00.079,0:02:02.496 Well, A, that looks like two. 0:02:03.583,0:02:05.575 A is equal to two. 0:02:05.575,0:02:08.110 What would our delta X be? 0:02:08.110,0:02:10.572 Well, you can see this right over here, 0:02:10.572,0:02:12.368 this thing that we're multiplying 0:02:12.368,0:02:14.572 that just is divided by N 0:02:14.572,0:02:17.191 and it's not multiplying by an I, 0:02:17.191,0:02:19.582 this looks like our delta X 0:02:19.582,0:02:22.798 and this right over here[br]looks like delta X times I. 0:02:22.798,0:02:26.965 So, it looks like our delta[br]X is equal to five over N. 0:02:28.275,0:02:30.816 So, what can we tell so far? 0:02:30.816,0:02:33.469 Well, we could say that,[br]okay, this thing up here, 0:02:33.469,0:02:36.660 up the original thing[br]is going to be equal to 0:02:36.660,0:02:38.109 the definite integral, 0:02:38.109,0:02:41.089 we know our lower bound is going from two 0:02:41.089,0:02:43.148 to we haven't figured[br]out our upper bound yet, 0:02:43.148,0:02:45.077 we haven't figured out our B yet 0:02:45.077,0:02:48.638 but our function is the natural log 0:02:48.638,0:02:52.138 of X and then I will just write a DX here. 0:02:53.580,0:02:55.199 So, in order to complete writing 0:02:55.199,0:02:56.205 this definite integral 0:02:56.205,0:02:58.887 I need to be able to write the upper bound 0:02:58.887,0:03:00.553 and the way to figure out the upper bound 0:03:00.553,0:03:03.189 is by looking at our delta X 0:03:03.189,0:03:05.943 because the way that we[br]would figure out a delta X 0:03:05.943,0:03:08.481 for this Riemann sum here, 0:03:08.481,0:03:12.178 we would say that delta X[br]is equal to the difference 0:03:12.178,0:03:15.304 between our bounds divided[br]by how many sections 0:03:15.304,0:03:17.614 we want to divide it in, divided by N. 0:03:17.614,0:03:20.031 So, it's equals to B minus A, 0:03:21.891,0:03:23.891 B minus A over N, over N 0:03:29.404,0:03:31.102 and so, you can pattern match here. 0:03:31.102,0:03:34.391 If this is delta X is[br]equal to B minus A over N. 0:03:34.391,0:03:35.520 Let me write this down. 0:03:35.520,0:03:38.437 So, this is going to be equal to B, 0:03:39.364,0:03:41.614 B minus our A which is two, 0:03:43.137,0:03:44.720 all of that over N, 0:03:45.845,0:03:47.012 so B minus two 0:03:50.510,0:03:52.523 is equal to five 0:03:52.523,0:03:55.754 which would make B equal to seven. 0:03:55.754,0:03:57.861 B is equal to seven. 0:03:57.861,0:03:58.699 So, there you have it. 0:03:58.699,0:04:02.449 We have our original[br]limit, our Riemann limit 0:04:03.811,0:04:05.551 or our limit of our Riemann sum 0:04:05.551,0:04:08.654 being rewritten as a definite integral. 0:04:08.654,0:04:09.623 And once again, I want to emphasize 0:04:09.623,0:04:11.205 why this makes sense. 0:04:11.205,0:04:13.182 If we wanted to draw this 0:04:13.182,0:04:14.582 it would look something like this, 0:04:14.582,0:04:19.356 I'm gonna try to hand draw[br]the natural log function, 0:04:19.356,0:04:21.689 it looks something like this 0:04:27.386,0:04:30.258 and this right over here would be one 0:04:30.258,0:04:33.211 and so, let's say this is two 0:04:33.211,0:04:35.664 and so going from two to seven, 0:04:35.664,0:04:37.664 this isn't exactly right 0:04:38.582,0:04:42.932 and so, our definite integral[br]is concerned with the area 0:04:42.932,0:04:46.571 under the curve from two until seven 0:04:46.571,0:04:48.154 and so, this Riemann sum you can view 0:04:48.154,0:04:51.505 as an approximation when N[br]isn't approaching infinity 0:04:51.505,0:04:52.538 but what you're saying is look, 0:04:52.538,0:04:55.085 when I is equal to one, 0:04:55.085,0:04:59.054 your first one is going to[br]be of width five over N, 0:04:59.054,0:05:01.573 so this is essentially[br]saying our difference 0:05:01.573,0:05:02.654 between two and seven, 0:05:02.654,0:05:04.273 we're taking that distance five, 0:05:04.273,0:05:06.319 dividing it into N rectangles, 0:05:06.319,0:05:11.104 and so, this first one is[br]going to have a width of five 0:05:11.104,0:05:14.172 over N and then what's[br]the height gonna be? 0:05:14.172,0:05:16.270 Well, it's a right Riemann sum, 0:05:16.270,0:05:19.966 so we're using the value of[br]the function right over there, 0:05:19.966,0:05:22.298 write it two plus five over N. 0:05:22.298,0:05:24.638 So, this value right over here. 0:05:24.638,0:05:26.788 This is the natural log, 0:05:26.788,0:05:30.121 the natural log of two plus five over N, 0:05:32.158,0:05:33.996 and since this is the first rectangle 0:05:33.996,0:05:35.746 times one, times one. 0:05:36.687,0:05:38.564 Now we could keep going. 0:05:38.564,0:05:40.310 This one right over here 0:05:40.310,0:05:43.320 the width is the same, five over N 0:05:43.320,0:05:45.218 but what's the height? 0:05:45.218,0:05:47.988 Well, the height here,[br]this height right over here 0:05:47.988,0:05:49.561 is going to be the natural log 0:05:49.561,0:05:53.311 of two plus five over[br]N times two, times two. 0:05:55.150,0:05:57.650 This is for I is equal to two. 0:05:58.484,0:06:00.800 This is I is equal to one. 0:06:00.800,0:06:02.725 And so, hopefully you are[br]seeing that this makes sense. 0:06:02.725,0:06:04.879 The area of this first rectangle 0:06:04.879,0:06:06.866 is going to be natural log of two 0:06:06.866,0:06:09.038 plus five over N times one 0:06:09.038,0:06:10.455 times five over N 0:06:12.201,0:06:13.555 and the second one over here, 0:06:13.555,0:06:17.305 natural log of two plus[br]five over N times two 0:06:18.905,0:06:20.322 times five over N 0:06:21.498,0:06:23.414 and so, this is calculating the sum 0:06:23.414,0:06:25.384 of the areas of these rectangles 0:06:25.384,0:06:28.263 but then it's taking the[br]limit as N approaches infinity 0:06:28.263,0:06:30.046 so we get better and better approximations 0:06:30.046,0:06:33.129 going all the way to the exact area.