# Video: Approximating the Area under the Curve of a Function Using Riemann Sums

Use a right Riemann sum to approximate the area under the curve of π(π₯) = π₯Β² β 4 in the interval [2, 4]. Use subintervals with π = 5 .

03:04

### Video Transcript

Use a right Riemann sum to approximate the area under the curve of π of π₯ equals π₯ squared minus four in the closed interval two to four. Use subintervals with π equals five.

Remember, a right Riemann sum is a way of approximating the area between a curve and the π₯-axis by splitting it into rectangles. In a right Riemann sum, the height of each rectangle is the value of the function at the right-end point of the subinterval. Letβs sketch out the graph of our function in our closed interval to see what this might look like.

The graph of π¦ equals π₯ squared minus four is this parabola shape. It intersects the π₯-axis at π₯ equals two. Weβre looking to find this region, the region between the curve and the π₯-axis. And the first thing that weβre going to do is split it up into π subintervals, where π is equal to five.

Now, we can kind of work this out on our head, but there is a formula. This says that the width of each subinterval Ξπ₯ is equal to π minus π over π, where π₯ equals π and π₯ equals π are the vertical lines that bound our region and π is the number of subintervals. In this case, π is equal to four, π is equal to two, and weβre told that π is equal to five. So, the width of each subinterval is two-fifths, or 0.4.

Weβre going to split our region up then into subintervals each with a width of 0.4. So, starting at π₯ equals two, we get 2.4, 2.8, 3.2, 3.6, and then we end up at four. This is a right Riemann sum. So, the height of each rectangle is the value of the function at the right end of each subinterval. And so, we can add in our rectangles as shown.

Now, an approximation for the area between the curve π of π₯ equals π₯ squared minus four and the π₯-axis is the area of the first rectangle plus the area of the second rectangle plus the area of the third rectangle plus the area of the fourth rectangle plus the area of the fifth rectangle. Now, each of these rectangles sits above the π₯-axis, so we shouldnβt be expecting any negative values. But if they lay below the π₯-axis, we would be looking to subtract the absolute value for the area.

The area of our first rectangle is its width multiplied by its height. Well, we know its width now to be 0.4 and its height is the value of the function at 2.4. π of 2.4 is 2.4 squared minus four, which is 1.76. And so, π one is 0.4 times 1.76. We then have π two. Thatβs 0.4 times the value of the function π₯ equals 2.8. This time, π of 2.8 is 2.8 squared minus four, which is equal to 3.84. And so, π two is 0.4 times 3.84. π three is 0.4 times π of 3.2. π four is 0.4 times π of 3.6. And π five is 0.4 times the value of the function when π₯ is equal to four.

π of 3.2 is 6.24. π of 3.6 is 8.96. And π of four is four squared minus four, which is 12. And so, our right Riemann sum is 0.4 times 1.76 plus 0.4 times 3.84 plus 0.4 times 6.24 plus 0.4 times 8.96 plus 0.4 times 12. That gives us 328 over 25. And so, an approximation to the area under the curve of π of π₯ equals π₯ squared minus four in the interval two to four is 328 over 25 square units.