1 00:00:00,002 --> 00:00:09,475 [music] Let's integrate x cubed from 0 to 2. 2 00:00:09,475 --> 00:00:14,225 In this case, the function x cubed is a continuous function, therefore it's an 3 00:00:14,225 --> 00:00:18,168 integrable function. So, all I need is just to start with a 4 00:00:18,168 --> 00:00:24,102 fine enough partition and it won't matter how I pick those sample points inside the 5 00:00:24,102 --> 00:00:28,208 partition. My Riemann sum will be close to the true 6 00:00:28,208 --> 00:00:33,639 value of the integral. So, I'll cut the interval from 0 to 2 into 7 00:00:33,639 --> 00:00:38,040 n pieces. Pictorially, I want to start with the 8 00:00:38,040 --> 00:00:43,954 interval between 0 and 2, and I want to cut it up into n pieces. 9 00:00:43,955 --> 00:00:50,266 Now, the length of this whole interval is two units long, so each is these pieces 10 00:00:50,266 --> 00:00:56,196 should have a went of 2 over n. And that, let me write down the formula, 11 00:00:56,196 --> 00:01:02,520 the cut point x sub i will be 2 over n times i, and that works out great . 12 00:01:02,520 --> 00:01:06,575 If i is 0, then I'm at the left hand endpoint. 13 00:01:06,575 --> 00:01:10,630 And if i is n, I'm at the right hand endpoint. 14 00:01:10,630 --> 00:01:16,545 And in between, I'm just marching from the left hand side to the right hand side 15 00:01:16,545 --> 00:01:22,110 moving 2 over n each time. Now, how should I choose my sample points? 16 00:01:22,110 --> 00:01:27,614 I'm just going to choose my sample points, x sub i star, to be the right hand end 17 00:01:27,614 --> 00:01:31,800 points. So, they'll be, in fact the same as x sub 18 00:01:31,800 --> 00:01:34,474 i. Now, I just have to write down the Riemann 19 00:01:34,474 --> 00:01:39,167 sum for this particular equal size partition and our chosen sample points. 20 00:01:39,168 --> 00:01:46,262 In general, the formula for Riemann sum is the sum, I think it's the sum, i goes from 21 00:01:46,262 --> 00:01:52,943 1 to n of the function evaluated at the i-th sample point times the width of the 22 00:01:52,943 --> 00:01:58,690 i-th subinterval in my partition, right? This is the area of the rectangle. 23 00:01:58,690 --> 00:02:03,520 And I'm adding up all those rectangles to get an approximation of the area under the 24 00:02:03,520 --> 00:02:07,420 graph. Well, in this specific case, what do I 25 00:02:07,420 --> 00:02:10,622 have? X sub i star is the same thing. 26 00:02:10,622 --> 00:02:15,698 If I go back to this, x sub i star is the same thing as x sub i. 27 00:02:15,698 --> 00:02:21,920 So, I can just plug in 2 over n times i, and x sub i minus x sub i minus 1, that's 28 00:02:21,920 --> 00:02:26,260 the width of the i-th subinterval in my partition. 29 00:02:26,260 --> 00:02:30,764 But, I rigged it so that all of the subintervals have the same equal width. 30 00:02:30,764 --> 00:02:34,720 They've all got width 2 over n, okay? So, that's the sum that I want to 31 00:02:34,720 --> 00:02:37,531 calculate. Now, the function in this case is the 32 00:02:37,531 --> 00:02:42,514 cubing function. So, this is the same as the sum i goes 33 00:02:42,514 --> 00:02:50,402 from 1 to n of 2 over n times i cubed times 2 over n, which I could simplify 34 00:02:50,402 --> 00:02:56,432 somewhat. This is the sum i goes from 1 to n of 16, 35 00:02:56,432 --> 00:03:04,212 2 cubed times 2, over n to the 4th, it's n cubed over n times i cubed. 36 00:03:04,212 --> 00:03:08,700 So that's the particular Riemann sum in this case. 37 00:03:08,700 --> 00:03:13,830 Quizzes are just a specific Riemann sum for a specific value of n. 38 00:03:13,830 --> 00:03:17,922 To get the value of the intregal, I'm going to take the limit an n approaches 39 00:03:17,922 --> 00:03:22,443 infinity. Yeah, the integral from 0 to 2 of this 40 00:03:22,443 --> 00:03:29,997 function x cubed is the limit as n goes to infinity of this Riemann sum. 41 00:03:29,998 --> 00:03:34,382 Now, strictly speaking, right? This integral would be a limit over all 42 00:03:34,382 --> 00:03:37,960 the possible partitions. But since the function's integrable, it 43 00:03:37,960 --> 00:03:41,314 doesn't matter what partition I choose as long as it's fine enough. 44 00:03:41,315 --> 00:03:44,812 And n going to infinity makes finer and finer partitions. 45 00:03:44,812 --> 00:03:49,297 So, what I really want to calculate, in order to calculate this integral, is to 46 00:03:49,297 --> 00:03:53,298 calculate this limit. Well, let's see if we can do that. 47 00:03:53,298 --> 00:03:58,549 The good news here is that I've got a formula for the sum of cubes. 48 00:03:58,549 --> 00:04:02,201 So, we will pull out that formula in a minute. 49 00:04:02,201 --> 00:04:07,148 And I've also got a constant here. 16 over n to the fourth is a constant. 50 00:04:07,148 --> 00:04:11,306 It doesn't depend on i at all, so I can factor that out of this sum by 51 00:04:11,306 --> 00:04:16,560 distributivity. So, this is the limit as n approaches 52 00:04:16,560 --> 00:04:24,579 infinity of 16 over n to the 4th times the sum of i cubed, i goes from 1 to n. 53 00:04:24,579 --> 00:04:29,966 And now, I happen to know what the sum of the first n cubed is. 54 00:04:29,966 --> 00:04:34,568 I can use that formula that we got from before. 55 00:04:34,568 --> 00:04:40,940 That's the same as the sum of the first n whole numbers squared. 56 00:04:42,200 --> 00:04:49,870 And in this case, that's the limit as n goes to infinity of 16 over n to the 4th 57 00:04:49,870 --> 00:04:56,325 times, that's n times n plus 1 over 2. That's the sum of the first n whole 58 00:04:56,325 --> 00:05:01,799 numbers and the sum of the first n perfect cubes is that squared. 59 00:05:04,030 --> 00:05:09,898 Now, I've got to figure out what this is. Well, I can factor out a over 2 squared 60 00:05:09,898 --> 00:05:18,156 and that'll cancel part of the 16. So, this is the limit of n squared times n 61 00:05:18,156 --> 00:05:26,278 plus 1 squared times 4 over n to the 4th. And now this is the limit as n goes to 62 00:05:26,278 --> 00:05:30,078 infinity. This ends up being n squares time n 63 00:05:30,078 --> 00:05:36,210 squares plus lower order terms. So, this is, the biggest term here is 4n 64 00:05:36,210 --> 00:05:41,858 to the 4th over n to the 4th, so this limit ends up being equal to 4. 65 00:05:41,859 --> 00:05:46,622 And that is in fact the integral from 0 to 2 of x cubed dx. 66 00:05:46,622 --> 00:05:53,984 That integral, therefore, is equal to 4. Now, what if I wanted to do this integral 67 00:05:53,984 --> 00:05:59,387 over some other interval? Well, I could repeat this same kind of 68 00:05:59,387 --> 00:06:05,711 calculation to deduce that the integral from 0 to 1 of x cubed dx is equal to a 69 00:06:05,711 --> 00:06:08,786 quarter, right? But that would be another whole 70 00:06:08,786 --> 00:06:13,524 calculation that I'd have to work out. Let's say, I wanted to integrate over the 71 00:06:13,524 --> 00:06:16,220 interval 1 to 2. Well, there's a trick that you could use. 72 00:06:16,220 --> 00:06:22,174 So, the integral from 0 to 2 of x cubed dx, we already calculated. 73 00:06:22,175 --> 00:06:25,476 But forget the exact answer. What I want to note here is that this is 74 00:06:25,476 --> 00:06:29,626 related to two other integrals. Integrating from 0 to 2x cubed dx is the 75 00:06:29,626 --> 00:06:35,120 same as integrating from 0 to 1 of x cubed dx, and adding to that the integral from 1 76 00:06:35,120 --> 00:06:37,877 to 2. Now geometrically, something like that 77 00:06:37,877 --> 00:06:44,040 hopefully makes some sense, right? If I draw a graph, here's 0, here's 1, 78 00:06:44,040 --> 00:06:49,230 here's 2. Here's the function y equals x cubed, say 79 00:06:49,230 --> 00:06:55,470 this first interval from 0 to 1 is calculating the area here, right? 80 00:06:55,470 --> 00:07:00,687 That's what this integral's calculating. The second integral from 1 to 2 is 81 00:07:00,687 --> 00:07:05,762 calculating this area here, right? And if I add together these two areas, I 82 00:07:05,762 --> 00:07:11,130 end up getting the area from 0 to 2, which is what this integral's calculating. 83 00:07:11,131 --> 00:07:14,322 Well, the nice thing here is that, since I know this integral and I know this 84 00:07:14,322 --> 00:07:17,179 integral, that's enough information to recover this integral. 85 00:07:17,180 --> 00:07:20,645 The integral from 0 to 2, we saw a moment ago, was 4. 86 00:07:20,645 --> 00:07:25,769 The integral from 0 to 1, I'm claiming here is a quarter, and that's enough 87 00:07:25,769 --> 00:07:31,313 information to tell me that the integral from 1 to 2 of x cubed dx, well, that must 88 00:07:31,313 --> 00:07:36,521 be exactly what I need to add onto a quarter to get 4, that must be 15 fourths, 89 00:07:36,521 --> 00:07:40,530 right? So, this red area in here must be 15 4th 90 00:07:40,530 --> 00:07:44,547 square units. What we're seeing here is that you can 91 00:07:44,547 --> 00:07:50,724 evaluate some integrals just by going back to the definition and using our knowledge 92 00:07:50,724 --> 00:07:56,636 of sums, but the sums are ugly, right? These are really terrible calculations. 93 00:07:56,636 --> 00:07:59,674 This is the exact same situation that we've been in before. 94 00:07:59,675 --> 00:08:04,625 A long, long time ago, we were faced with the definition of derivative and we 95 00:08:04,625 --> 00:08:09,350 started computing some derivatives just by going back to the definition of 96 00:08:09,350 --> 00:08:12,396 derivative. But then, over time, we learned a bunch of 97 00:08:12,396 --> 00:08:15,320 rules which made differentiation a whole lot easier. 98 00:08:15,320 --> 00:08:18,210 We're going to see the same thing happening here. 99 00:08:18,210 --> 00:08:27,097 Right now, we're just using these bare hand arguments to calculate integrals. 100 00:08:27,097 --> 00:08:35,637 But over time, we're going to develop more tools for evaluating integrals.