# Video: Integrating Functions Numerically - Trapezoidal Rule

Calculate the trapezoidal rule estimate of β«_0^4 π₯Β² + 2dπ₯ with π = 2 subintervals. Is the result an overestimate or underestimate of the actual value?

03:21

### Video Transcript

Calculate the trapezoidal rule estimate of the definite integral of π₯ squared plus two with respect to π₯ evaluated between zero and four with π equals two subintervals. Is the result an overestimate or underestimate of the actual value?

Remember, the trapezoidal rule says that we can estimate the value of the definite integral of some function π of π₯ between π and π by splitting it into π subintervals. And, this approximation is given by Ξπ₯ over two of π of π₯ nought plus π of π₯ π plus two times π of π₯ one plus π of π₯ two all the way up to π of π₯ π minus one. Here, Ξπ₯ is equal to π minus π over π. And π₯ subscript π is equal to π plus π times Ξπ₯. In other words, to find our values of π₯π, we add π lots of Ξπ₯ to the lower limit for our integral π.

Letβs break this down and just begin by working out the value of Ξπ₯. π is equal to two. And the lower limit for our integral is zero, so π is equal to zero. And the upper limit is four, so π must be equal to four in this example. Ξπ₯ is therefore equal to four minus zero over two, which is equal to two. The values for π of π₯ nought, π of π₯ one, and so on require little more work. But we could make this process as simple as possible by adding a table. In this table, the π₯-values run from π to π, thatβs from zero to four. And, the ones in between are found by repeatedly adding Ξπ₯, here thatβs two, to π which is zero. So this value here is two. And, we now see that we have our two strips with a width of two units. Weβre now going to substitute zero, two, and four into our function to find the π of π₯ values.

Our function is π₯ squared plus two. So, π of zero is zero squared plus two, which is two. π of two is two squared plus two, which is six. And π of four is four squared plus two. Here, thatβs 18. So, we have everything we need to perform the trapezoidal rule estimate of the definite integral of π₯ squared plus two with respect to π₯ between the values of zero and four. Itβs Ξπ₯ over two, which is two over two, times our first π of π₯ value and our last π of π₯ value, thatβs two plus 18, plus two lots of essentially everything else. And here, thatβs just two lots of six. That gives us one times 32, which is clearly 32. And so, the approximation for the results of the definite integral of π₯ squared plus two evaluated between zero and four is 32.

And all thatβs left is for us to decide whether this is an under or an overestimate. And, there are two ways we can perform this. We could actually perform the integral of π₯ squared plus two between the limits of zero and four. Or alternatively, we can consider the shape of the curve. We know the graph looks a little something like this. Weβre interested in the area between the curve and the π₯-axis between zero and four. Thatβs the two trapeziums shown. Notice how these trapeziums overlap the area weβre actually trying to find. And this means our approximation for the value of the integral of π₯ squared plus two between zero and four must be an overestimate of the actual value. The solution here is 32, which is an overestimate.