WEBVTT
00:00:00.910 --> 00:00:06.040
In this video, weβre going to learn how definite integrals can be estimated by using rectangles.
00:00:06.250 --> 00:00:08.960
And this is a process called finding Riemann sums.
00:00:09.200 --> 00:00:15.280
Weβll discover how to split the area between the curve and the π₯-axis into rectangles of varying points.
00:00:15.510 --> 00:00:21.320
And consider how accurate these approximations are by looking at a number of examples of various degrees of difficulty.
00:00:22.560 --> 00:00:32.220
Letβs suppose weβre looking to find the area between the curve of π¦ equals π₯ squared, the π₯-axis, and the vertical lines π₯ equals one and π₯ equals three.
00:00:32.690 --> 00:00:36.660
We know that we can find the exact area using definite integration.
00:00:37.030 --> 00:00:43.460
We evaluate the integral of π₯ squared between the limits of one and three with respect to π₯.
00:00:43.670 --> 00:00:47.230
The integral of π₯ squared is π₯ cubed over three.
00:00:47.630 --> 00:00:59.430
Evaluating this between the limits of one and three, and we obtained three cubed over three minus one cubed over three, which is 26 over three or roughly 8.67 square units.
00:00:59.770 --> 00:01:03.450
The problem is, integrating a function is not always that simple.
00:01:03.690 --> 00:01:07.760
And we might just need to approximate the area between the curve and the π₯-axis.
00:01:07.970 --> 00:01:10.110
To do that, we have a number of options.
00:01:10.110 --> 00:01:13.060
And in this video, weβre going to use something called Riemann sums.
00:01:13.340 --> 00:01:19.100
In this case, weβre going to split the area under the curve into rectangles and then find the area of each.
00:01:19.300 --> 00:01:21.480
There are three ways we could do this.
00:01:21.820 --> 00:01:34.560
We could find the height of the rectangles by using the value of the function at the left endpoint of each rectangle, at the right endpoint of each rectangle, or at the midpoint of each rectangle.
00:01:35.010 --> 00:01:40.870
And on occasion, we might even choose to use unequally sized subintervals, though thatβs quite rare.
00:01:41.360 --> 00:01:43.000
Letβs go back to this example.
00:01:43.300 --> 00:01:49.360
Weβre going to imagine we want to split the area into four subintervals, four equally sized rectangles.
00:01:49.850 --> 00:01:54.110
To find the width of each rectangle, we find the difference between the bounds of our area.
00:01:54.110 --> 00:01:58.310
And we share that into π pieces, where π is the number of subintervals.
00:01:58.400 --> 00:02:04.120
Here, thatβs three minus one all divided by four, which is of course one-half.
00:02:04.390 --> 00:02:09.050
Each sub interval is therefore 0.5 units wide.
00:02:09.260 --> 00:02:15.190
Formaly, we say that the width of each rectangle, π₯π₯, is equal to π minus π over π.
00:02:15.280 --> 00:02:20.340
Where π and π are the endpoints of the interval and π is the number of subintervals.
00:02:20.660 --> 00:02:25.200
Letβs estimate the area by using the right endpoint of each sub interval.
00:02:25.470 --> 00:02:34.420
In other words, weβre going to find the height of each rectangle by considering the function value at the right endpoint of each of our subintervals.
00:02:34.550 --> 00:02:38.240
Starting at the beginning of our interval, we add 0.5 to one.
00:02:39.310 --> 00:02:44.610
And we see that the height of this rectangle is equal to the function value at π₯ equals 1.5.
00:02:45.030 --> 00:02:51.180
Thatβs π of 1.5, which is of course 1.5 squared, which is equal to 2.25.
00:02:51.420 --> 00:03:01.100
Since the area of a rectangle is found by multiplying the length of its base by its height, we find the area of this one by multiplying 0.5 by 2.25.
00:03:01.300 --> 00:03:04.700
Which gives us 1.125 square units.
00:03:04.950 --> 00:03:09.800
Next, we add another 0.5 to 1.5 to give us two.
00:03:10.200 --> 00:03:15.240
The height of this rectangle is the value of the function at π₯ equals two.
00:03:15.610 --> 00:03:19.140
Thatβs π of two which is two squared which is, of course, equal to four.
00:03:19.580 --> 00:03:24.910
This time, the area of the rectangle is four times 0.5, which is two square units.
00:03:25.090 --> 00:03:29.470
We add then another 0.5 to two to give us 2.5.
00:03:29.620 --> 00:03:34.160
And when we see that the height of this rectangle would be the value of π at 2.5.
00:03:34.610 --> 00:03:39.340
π of 2.5 is 2.5 squared, which is 6.25.
00:03:39.700 --> 00:03:48.800
And so, the area of our third rectangle is 6.25 times 0.5, which is 3.125 square units.
00:03:49.160 --> 00:03:52.510
Finally, if we add another 0.5, we get to three.
00:03:52.540 --> 00:03:53.890
Thatβs the ends of our interval.
00:03:53.890 --> 00:03:55.970
And itβs the fourth rectangle as required.
00:03:56.290 --> 00:03:58.690
This time, its height is π of three.
00:03:59.240 --> 00:04:01.540
Thatβs three squared, which is nine.
00:04:01.970 --> 00:04:08.480
And therefore, the area of our final rectangle is nine times 0.5, which is 4.5 square units.
00:04:08.850 --> 00:04:17.270
To find an estimate for the total area under the curve and therefore an estimate to the definite integral between one and three of π₯ squared, we add these together.
00:04:18.430 --> 00:04:28.200
An estimate then to that integral is 1.125 plus two plus 3.125 plus 4.5, which is 10.75 square units.
00:04:28.310 --> 00:04:33.650
Remember, the answer that we got when we evaluated the integral itself was 8.67.
00:04:34.100 --> 00:04:39.150
And if we look carefully, we can see that our rectangles are all a little bit bigger than the area required.
00:04:39.380 --> 00:04:42.150
So we would have been expecting an overestimate.
00:04:42.300 --> 00:04:48.840
We could, of course, make our approximation more accurate by splitting the rectangles into smaller subintervals.
00:04:49.210 --> 00:04:58.660
And, in fact, as the number of subintervals π approaches infinity, the Riemann sum approaches the definite integral of the function between the endpoints.
00:04:59.040 --> 00:05:06.260
Itβs important to remember, though, that if the function takes on both positive and negative values as shown here.
00:05:06.520 --> 00:05:16.360
Then the Riemann sum is the sum of the areas of the rectangles that lie above the π₯-axis and the negatives of the areas of the rectangles that lie below the π₯-axis.
00:05:16.710 --> 00:05:22.270
In this case, that would be the area of the pink rectangles minus the area of the yellow rectangles.
00:05:22.630 --> 00:05:27.810
Weβre now going to look at a more formal example of this process, this time using left endpoints.
00:05:28.260 --> 00:05:44.850
Given that π of π₯ is equal to four cos π₯ and that π₯ is greater than or equal to zero and less than or equal to π by four, evaluate, to the nearest six decimal places, the Riemann sum for π with six subintervals, taking the sample points to be left endpoints.
00:05:45.690 --> 00:05:57.150
Remember, we can approximate the definite integral of a function between the limits of, say, π and π by splitting the area between the curve and the π₯-axis into π subintervals.
00:05:57.350 --> 00:06:07.870
Where the width of each rectangle, π₯π₯, is equal to the difference between the upper and lower limits divided by π, the number of subintervals.
00:06:08.210 --> 00:06:13.690
In this question, weβre looking to split the area into six subintervals, so we let π be equal to six.
00:06:13.870 --> 00:06:18.470
We let π be equal to zero and π be equal to π by four.
00:06:18.780 --> 00:06:27.090
So π₯π₯ here and the width of each of our rectangles is π by four minus zero over six, which is π over 24.
00:06:27.400 --> 00:06:37.200
Letβs now sketch out the curve of π¦ equals four cos π₯ between π₯ equals zero and π by four radians and spilt it into these six subintervals.
00:06:37.640 --> 00:06:41.730
This question requires us to use left endpoints.
00:06:41.990 --> 00:06:48.470
So the height of each of our rectangles will be equal to the value of the function at the left of each subinterval.
00:06:48.720 --> 00:06:54.330
The sketch is really useful here because we see that each rectangle sits above the π₯-axis.
00:06:54.520 --> 00:06:57.090
So we just need to find the positive area of each.
00:06:57.450 --> 00:06:59.590
Letβs consider our first rectangle.
00:06:59.770 --> 00:07:02.340
Its left endpoint is at π₯ equals zero.
00:07:02.690 --> 00:07:07.650
So we find the height of the rectangle by evaluating π of zero.
00:07:08.070 --> 00:07:12.040
π of zero is four times cos of zero, which is four.
00:07:12.260 --> 00:07:19.530
The area of this first rectangle then is therefore π by 24, since thatβs the width of each rectangle, times four.
00:07:19.860 --> 00:07:22.240
Thatβs π by six square units.
00:07:22.400 --> 00:07:25.000
We now need to find the next endpoint.
00:07:25.100 --> 00:07:30.470
We achieve this by adding π by 24 to zero; thatβs π by 24.
00:07:30.750 --> 00:07:35.770
And we can therefore find the height of this rectangle by evaluating π of π by 24.
00:07:36.180 --> 00:07:43.570
Thatβs four cos of π by 24, which is approximately 3.965779 and so on.
00:07:43.960 --> 00:07:48.390
The area of our second rectangle then is width times height or base times height.
00:07:48.650 --> 00:07:57.480
Thatβs π by 24 times 3.965 and so on, which is roughly 0.51911931 and so on.
00:07:57.860 --> 00:08:04.970
Now, of course, this question is asking us to evaluate till six decimal places, which is why Iβve left the numbers as I have.
00:08:05.120 --> 00:08:11.140
We find the next endpoint by adding another π by 24 to π by 24 and we get π by 12.
00:08:11.350 --> 00:08:20.930
The height of this third rectangle then is π of π by 12 which is four cos of π by 12, which gives us root six plus root two.
00:08:21.200 --> 00:08:31.720
And then we see that the area of our third rectangle is π by 24 multiplied by this value, which gives us an area of roughly 0.505 and so on square units.
00:08:31.880 --> 00:08:37.570
We repeat this process by repeatedly adding π by 24 to each of our endpoints.
00:08:37.640 --> 00:08:46.370
And when we do, we find that the left endpoint of each of our rectangles is π by eight, π by six, and π₯ equals five π by 24.
00:08:46.800 --> 00:08:53.390
Their heights are respectively given by π of π by eight, π of π by six, and π of five π by 24.
00:08:53.730 --> 00:09:02.270
And when we multiply each of these values by the width, π by 24, we find that the area of our fourth rectangle is roughly 0.4837.
00:09:02.660 --> 00:09:06.080
Our fifth rectangle is roughly 0.4534.
00:09:06.250 --> 00:09:09.850
And our sixth is approximately 0.4153.
00:09:10.230 --> 00:09:14.020
Remember, the Riemann sum is the total area of these six rectangles.
00:09:14.020 --> 00:09:16.660
Itβs 2.901 and so on.
00:09:16.910 --> 00:09:22.520
Thatβs 2.901067 correct to six decimal places.
00:09:22.990 --> 00:09:27.820
In our next example, weβre going to look at how to find the Riemann sum using midpoints.
00:09:28.270 --> 00:09:41.800
Given π of π₯ is equal to π₯ squared minus four and π₯ is greater than or equal to negative four and less than or equal to two, evaluate the Riemann sum for π with six subintervals, taking sample points to be midpoints.
00:09:42.130 --> 00:09:52.460
Remember, we can approximate the definite integral of a function between the limits π and π by splitting the area between the curve and the π₯-axis into π subintervals.
00:09:52.800 --> 00:09:59.840
The width of each rectangle is given by π₯π₯, which is found by subtracting π from π and dividing this value by π.
00:10:00.230 --> 00:10:03.950
In this example, we want to split the area into six subintervals.
00:10:04.120 --> 00:10:08.530
So we let π be equal to six, and then π is negative four and π is two.
00:10:08.850 --> 00:10:15.550
The width of each of our subintervals is given then by two minus negative four over six, which is equal to one.
00:10:15.970 --> 00:10:22.060
Next, weβre going to sketch the curve of π¦ equals π₯ squared minus four between the endpoints negative four and two.
00:10:22.330 --> 00:10:24.860
And weβre going to split this into six subintervals.
00:10:25.110 --> 00:10:27.420
This question requires us to use midpoints.
00:10:27.640 --> 00:10:33.000
So the height of each rectangle will be equal to the value of the function at the middle of each subinterval.
00:10:33.180 --> 00:10:35.630
Thatβs going to look a little something like this.
00:10:35.830 --> 00:10:41.730
Now, we can work out the π₯-value at the end of each rectangle by repeatedly adding one to four.
00:10:42.040 --> 00:10:43.930
And that gives us each of these values.
00:10:44.040 --> 00:10:51.430
We can then see that the midpoints are going to be negative 3.5, π₯ equals negative 2.5, negative 1.5, and so on.
00:10:51.820 --> 00:10:53.910
Now, weβre going to need to be extra careful here.
00:10:54.140 --> 00:10:57.870
We see that some of our rectangles sit below the π₯-axis.
00:10:58.140 --> 00:11:00.950
This means weβre going to find the negative value of their area.
00:11:01.210 --> 00:11:09.790
In other words, weβll subtract the total area of the rectangles that sit below the π₯-axis from the total area of the rectangles that sit above the π₯-axis.
00:11:10.000 --> 00:11:13.100
Letβs begin by finding the function values at each midpoint.
00:11:13.100 --> 00:11:15.040
And that will tell us the height of each rectangle.
00:11:15.230 --> 00:11:20.990
Thatβs π of negative 3.5, π of negative 2.5, π of negative 1.5, and so on.
00:11:21.430 --> 00:11:24.090
And, of course, our function is π₯ squared minus four.
00:11:24.300 --> 00:11:37.070
And when we substitute each of these values into that function, we get 8.25, 2.25, negative 1.75, negative 3.75, another negative 3.75, and another negative 1.75.
00:11:37.670 --> 00:11:42.470
We then obtain the area of our first rectangle here to be 8.25 times one.
00:11:42.900 --> 00:11:46.230
Our second rectangle has an area of 2.25 times one.
00:11:46.710 --> 00:11:52.790
Our third rectangle has an area of 1.75 times one, not negative 1.75.
00:11:52.790 --> 00:11:54.760
Because weβre just dealing with areas at the moment.
00:11:55.000 --> 00:11:58.650
Our fourth rectangle has an area of 3.75 times one.
00:11:59.040 --> 00:12:03.920
Base times height with our fifth rectangle is 3.75 times one again.
00:12:04.130 --> 00:12:07.290
And for our last rectangle, itβs 1.75 times one.
00:12:07.920 --> 00:12:18.900
The Riemann sum is therefore 8.25 plus 2.25 minus the sum of 1.75, 3.75, 3.75, and another 1.75.
00:12:19.210 --> 00:12:26.340
And that gives us an approximation to the definite integral between the values of negative four and two of π₯ squared minus four.
00:12:26.500 --> 00:12:28.650
Itβs negative 0.5.
00:12:28.970 --> 00:12:32.720
And, of course, π₯ squared minus four is a fairly simple function to integrate.
00:12:32.970 --> 00:12:36.070
So we can check our answer by evaluating that integral.
00:12:36.440 --> 00:12:43.840
When we do, we get π₯ cubed over three minus four π₯ between the limits of negative four and two, which gives us a value of zero.
00:12:43.840 --> 00:12:46.760
And our estimate of negative 0.5 is pretty close.
00:12:46.940 --> 00:12:48.740
So we can assume weβve probably done this correctly.
00:12:49.470 --> 00:12:53.070
Itβs worth noting that a sketch of the curve wonβt always be possible.
00:12:53.320 --> 00:13:00.750
So instead, we need to notice that when the value of π of π₯ is less than zero, we subtract the area of the rectangle with that height.
00:13:01.430 --> 00:13:08.400
Now that weβve considered three types of Riemann sums, letβs have a look at how to decide whether weβre finding a lower or upper estimate for our integral.
00:13:08.880 --> 00:13:11.720
A table of values for an increasing function π is shown.
00:13:12.020 --> 00:13:20.550
Use Riemann sums to find lower and upper estimates for the definite integral between the limits of zero and 20 of π of π₯ with respect to π₯.
00:13:20.810 --> 00:13:25.020
Itβs important to know that weβve been given a table of values for an increasing function.
00:13:25.400 --> 00:13:31.180
This means that over the closed interval zero to 20, the graph of the function will always be sloping up.
00:13:31.540 --> 00:13:34.030
It might look a little something like this.
00:13:34.420 --> 00:13:38.600
Now, we know we can find estimates for the integral given by using Riemann sums.
00:13:38.810 --> 00:13:45.240
So our job here is to work out which Riemann sum is likely to give the lowest estimate and which is likely to give the highest estimate.
00:13:45.500 --> 00:13:51.280
If we were to find the Riemann sum using the left endpoints, we see we end up with something a little like this.
00:13:51.540 --> 00:13:56.060
Almost every rectangle is a little smaller than the actual area.
00:13:56.330 --> 00:14:00.550
When we use right endpoints, we end up with much more than the actual area.
00:14:00.740 --> 00:14:06.770
It follows also that using the midpoint would give us something in the middle as would using the trapezoidal rule.
00:14:07.040 --> 00:14:13.740
This means that using the left endpoint is going to give us a lower estimate and using the right endpoint will give us an upper estimate.
00:14:14.070 --> 00:14:16.070
Letβs find both of these approximations.
00:14:16.390 --> 00:14:18.880
We see that the width of our subintervals is four.
00:14:18.880 --> 00:14:22.090
So we could say that the width of each rectangle is going to be four units.
00:14:22.300 --> 00:14:30.300
And the area of our first rectangle is going to be four multiplied by the positive value of the function at the left endpoint; thatβs three.
00:14:30.990 --> 00:14:34.120
The second rectangle will have an area of four times four.
00:14:34.390 --> 00:14:36.660
The third will have an area of four times nine.
00:14:36.930 --> 00:14:41.730
Then we have a rectangle with an area of four times 18 and an area of four times 30.
00:14:42.210 --> 00:14:48.290
Remembering that the first rectangle sits below the π₯-axis, we subtract this from the sum of the other four.
00:14:48.290 --> 00:14:52.070
And we get a total area of 232 square units.
00:14:52.160 --> 00:14:54.650
We now repeat this using the right endpoint.
00:14:54.650 --> 00:14:58.580
And we see that the area of our first rectangle is four times four.
00:14:58.830 --> 00:15:00.590
The second is four times nine.
00:15:00.850 --> 00:15:05.390
Then, we have an area of four times 18, four times 30, and four times 35.
00:15:05.990 --> 00:15:09.280
This time, each of these rectangles sits above the π₯-axis.
00:15:09.450 --> 00:15:14.200
So we add all these values together to get a total of 384 square units.
00:15:14.460 --> 00:15:24.990
The lower and upper estimates of the definite integral of π of π₯ evaluated between zero and 20 are therefore 232 and 384, respectively.
00:15:25.740 --> 00:15:28.310
In fact, we can generalize the result here.
00:15:28.730 --> 00:15:32.090
We can say that when working with increasing functions.
00:15:32.370 --> 00:15:36.870
The left Riemann sum will be an underestimate of the area between the curve and the π₯-axis.
00:15:37.050 --> 00:15:39.880
Whereas the right Riemann sum will give an overestimate.
00:15:40.210 --> 00:15:43.750
The reverse, of course, must be true then for decreasing functions.
00:15:44.540 --> 00:15:57.590
Suppose π, πΏ, and π
are approximations for the definite integral between one and three of π₯ cubed plus one using the trapezoidal rule, left Riemann sum, and right Riemann sum, respectively, using 10 subintervals.
00:15:57.770 --> 00:16:01.700
Which of the following is the correct relationship between the three approximations?
00:16:01.820 --> 00:16:11.000
Is it π
is less π which is less than πΏ, πΏ is less than π which is less than π
, π
is less than πΏ which is less than π, or π is less than πΏ, which is less than π
?
00:16:11.280 --> 00:16:14.530
Letβs consider the function π of π₯ equals π₯ cubed plus one.
00:16:14.980 --> 00:16:18.460
We know by considering the shape of the curve that itβs an increasing function.
00:16:18.740 --> 00:16:27.770
Though we could check this by differentiating to get three π₯ squared which is greater than zero for values of π₯ not equal to zero, confirming our suspicions.
00:16:28.140 --> 00:16:34.540
This really helps because we know that for an increasing function, the left Riemann sum gives an underestimate for the actual area.
00:16:34.720 --> 00:16:35.500
Letβs call that π΄.
00:16:35.750 --> 00:16:38.720
And the right Riemann sum gives an overestimate for the actual area.
00:16:39.030 --> 00:16:43.540
We can therefore say that we know that π΄ must be greater than πΏ which must be less than π
.
00:16:43.570 --> 00:16:46.860
And this, in turn, means that π
, of course, must be greater than πΏ.
00:16:47.160 --> 00:16:49.860
But where did the estimates for the trapezoidal rule come in here?
00:16:50.350 --> 00:16:55.190
Well, this uses nothing more than the average of the left and right Riemann sums.
00:16:55.280 --> 00:17:00.030
So it follows that this approximation must sit between the two.
00:17:00.490 --> 00:17:05.020
And we obtain that π must be greater than πΏ but less than π
.
00:17:05.560 --> 00:17:09.570
The second is the correct relationship between the three approximations.
00:17:10.390 --> 00:17:18.480
In this video, we learned that we can approximate definite integrals by splitting the area between the curve and the π₯-axis into a number of rectangles.
00:17:18.750 --> 00:17:26.060
Each rectangle have heights of the value of the function at the subintervalβs right endpoints, left endpoints, or midpoints.
00:17:26.240 --> 00:17:32.660
We also saw that for increasing functions, the left Riemann sum will give a lesser value than the right Riemann sum.
00:17:32.840 --> 00:17:35.530
And for decreasing functions, the reverse is true.