Question Video: Finding the Riemann Sum of a Quadratic Function in a Given Interval by Dividing It into Subintervals and Using Their Midpoint Mathematics • Higher Education

Given 𝑓(π‘₯) = π‘₯Β² βˆ’ 4 and βˆ’4 ≀ π‘₯ ≀ 2, evaluate the Riemann sum for 𝑓 with six subintervals, taking sample points to be midpoints.


Video Transcript

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.

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. The width of each rectangle is given by π›₯π‘₯, which is found by subtracting π‘Ž from 𝑏 and dividing this value by 𝑛. In this example, we want to split the area into six subintervals. So we let 𝑛 be equal to six, and then π‘Ž is negative four and 𝑏 is two. The width of each of our subintervals is given then by two minus negative four over six, which is equal to one. Next, we’re going to sketch the curve of 𝑦 equals π‘₯ squared minus four between the endpoints negative four and two. And we’re going to split this into six subintervals.

This question requires us to use midpoints. So the height of each rectangle will be equal to the value of the function at the middle of each subinterval. That’s going to look a little something like this. Now, we can work out the π‘₯-value at the end of each rectangle by repeatedly adding one to four. And that gives us each of these values. We can then see that the midpoints are going to be negative 3.5, π‘₯ equals negative 2.5, negative 1.5, and so on.

Now, we’re going to need to be extra careful here. We see that some of our rectangles sit below the π‘₯-axis. This means we’re going to find the negative value of their area. 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. Let’s begin by finding the function values at each midpoint. And that will tell us the height of each rectangle. That’s 𝑓 of negative 3.5, 𝑓 of negative 2.5, 𝑓 of negative 1.5, and so on. And, of course, our function is π‘₯ squared minus four. 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. We then obtain the area of our first rectangle here to be 8.25 times one.

Our second rectangle has an area of 2.25 times one. Our third rectangle has an area of 1.75 times one, not negative 1.75. Because we’re just dealing with areas at the moment. Our fourth rectangle has an area of 3.75 times one. Base times height with our fifth rectangle is 3.75 times one again. And for our last rectangle, it’s 1.75 times one. The Riemann sum is therefore 8.25 plus 2.25 minus the sum of 1.75, 3.75, 3.75, and another 1.75. And that gives us an approximation to the definite integral between the values of negative four and two of π‘₯ squared minus four. It’s negative 0.5. And, of course, π‘₯ squared minus four is a fairly simple function to integrate. So we can check our answer by evaluating that integral.

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. And our estimate of negative 0.5 is pretty close. So we can assume we’ve probably done this correctly. It’s worth noting that a sketch of the curve won’t always be possible. 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.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.