Question Video: Numerical Integration Using the Trapezoidal Rule | Nagwa Question Video: Numerical Integration Using the Trapezoidal Rule | Nagwa

# Question Video: Numerical Integration Using the Trapezoidal Rule Mathematics • Higher Education

Use the trapezoidal rule to estimate β«_(0) ^(2) π₯Β³ dπ₯ using four subintervals.

02:59

### Video Transcript

Use the trapezoidal rule to estimate the definite integral between zero and two of π₯ cubed with respect to π₯ using four subintervals.

Remember, the trapezoidal rule says that we can find an approximation to the definite integral between the limits of π and π of π of π₯ by using the calculation Ξπ₯ over two times π of π₯ nought plus π of π₯ π plus two lots of π of π₯ one plus π of π₯ two all the way through to π of π₯ π minus one. Where Ξπ₯ is equal to π minus π over π. And π₯ subscript π is equal to π plus π times Ξπ₯.

Letβs break this down and just begin by working out the value of Ξπ₯. Contextually, Ξπ₯ is the width of each of our subintervals. In this case, weβre working with four subintervals. So we could say that π is equal to four. π is the lower limit of our integral. So π is equal to zero, where π is the upper limit. And thatβs equal to two. Ξπ₯ is therefore two minus zero over four, which is one-half or 0.5. The values for π of π₯ nought and π of π₯ one and so on require a little more work. But we can make this as simple as possible by adding a table.

Itβs useful to remember that there will always be π plus one columns required in the table. So here, thatβs four plus one, which is five. We have five columns in our table. The π₯-values run from π to π. Thatβs zero to two. And the ones in between are found by repeatedly adding Ξπ₯, thatβs 0.5, to π, which is zero. Thatβs 0.5, one, and 1.5. And that gives us our four strips of width 0.5 units. Weβre then simply going to substitute each π₯-value into our function. We begin with π of zero. Thatβs zero cubed, which is zero. Next, we have π of 0.5. Thatβs 0.5 cubed, which is 0.125. π of one is one cubed, which is still one. And we obtain the final two values in a similar manner. π of 1.5 is 3.375. And π of two is eight. And thatβs the tricky bit done with. All thatβs left is to substitute what we know into our formula for the trapezoidal rule.

Itβs Ξπ₯ over two, which is 0.5 over two, times the first π of π₯ value plus the last π of π₯ value. Thatβs zero plus eight plus two lots of everything else. Thatβs two times 0.125 plus one plus 3.375. And that gives us a value of 17 over four. So using four subintervals, the trapezoidal rule gives us the estimate to the definite integral of π₯ cubed between zero and two to be 17 over four. Now where possible, this can be checked in a number of ways. You could evaluate a Riemann or midpoint sum or here simply perform the integration.

When we integrate π₯ cubed, we get π₯ to the fourth power divided by four. Evaluating this between the limits of zero and two gives us two to the fourth power divided by four minus zero to the fourth power divided by four, which is 16 over four. And thatβs really close to the answer we got, suggesting weβve probably performed our calculations correctly.

## Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

• Interactive Sessions
• Chat & Messaging
• Realistic Exam Questions