Question
Question: How do you use the trapezoidal rule with \[n=6\] to approximate the integral \[\int\limits_{0}^{3}{\...
How do you use the trapezoidal rule with n=6 to approximate the integral 0∫31+x2+x4dx ?
Solution
Problems like these are a bit tricky but are easy to solve once we know the concept behind the problem and what all formulae and theorems would be required for solving it. In trapezoidal rule for integral approximation, we first of all need to divide the given interval within which we are needed to integrate the function into ‘n’ equal subintervals. In our problem, the given interval is from [0,3] and we need to divide this interval into n=6 equal subparts. After dividing the interval into subparts, we need to apply the formula for approximation by trapezoidal rule. We define any integral as,
a∫bf(x)dx . We divide this as, [0,0.5],[0.5,1],[1,1.5],[1.5,2],[2,2.5],[2.5,3]
Complete step-by-step solution:
Now the formula to find the approximate value is Tn=[f(x0)+2f(x1)+2f(x2)+2f(x3)+2f(x4)+2f(x5)+f(x6)](2×6b−a)
Now we start off with the solution the given problem by writing the formula of the Trapezoidal rule as,
Tn=[f(x0)+2f(x1)+2f(x2)+2f(x3)+2f(x4)+2f(x5)+f(x6)](2×6b−a)
In this formula we put the value of the unknown parameters as,
⇒Tn=[f(0)+2f(0.5)+2f(1)+2f(1.5)+2f(2)+2f(2.5)+f(3)](2×63)
Now if we take a closer look at our problem, then we can clearly see that the value of the function which is taken in this problem can be written down as,
⇒f(x)=1+x2+x41
Now we are required to find out the values of the respective points as,
f(0)=1 , f(0.5)=.7619 , f(1)=.3333 , f(1.5)=.1203 , f(2)=.0476 , f(2.5)=.0216 , f(3)=.0110
Now we put these value into our formula to get the required value of the integral as,
⇒Tn=[1+2×.7619+2×.3333+2×.1203+2×.0476+2×.0216+.0110](41)
Evaluating the value we get,