Answer
$$
\int_{0}^{2}\left(2 x^{2}+1\right) d x
$$
Here $a=0, b=2,$ and $n=4,$ with $(b-a) / n=(2-0) / 4=1 / 2$ as the altitude of each trapezoid. Then $x_{0}=0, x_{1}=1 / 2, x_{2}=1, x_{3}=3 / 2,$ and $x_{4}=2 .$ Now find the corresponding function values. The work can be organized into a table, as follows.
$$
\begin{aligned}
&n=4, b=2, a=0, f(x)=2 x^{2}+1\\
&\begin{array}{c|c|l}
\hline i & x_{i} & f\left(x_{i}\right) \\
\hline 0 & 0 & 1 \\
1 & \frac{1}{2} & 1.5 \\
2 & 1 & 3 \\
3 & \frac{3}{2} & 5.5 \\
4 & 2 & 9 \\
\hline
\end{array}
\end{aligned}
$$
(a) the trapezoidal rule:
$$
\begin{array}{l}
\int_{0}^{2}\left(2 x^{2}+1\right) d x \\
\quad\quad\quad \approx \frac{2-0}{4}\left[\frac{1}{2}(1)+1.5+3+5.5+\frac{1}{2}(9)\right] \\
\quad\quad\quad=0.5(15)=7.5
\end{array}
$$
(b) Simpson’s Rule:
$$
\begin{array}{l}
\int_{0}^{2}\left(2 x^{2}+1\right) d x \\
\quad\quad\quad \approx \frac{2-0}{3(4)}[1+4(1.5)+2(3)+4(5.5)+9] \\
\quad\quad\quad =\frac{2}{12}(44) \approx 7.333
\end{array}
$$
(c) Exact value:
$$
\begin{aligned}
\int_{0}^{2}\left(2 x^{2}+1\right) d x &=\left.\left(\frac{2 x^{3}}{3}+x\right)\right|_{0} ^{2} \\
& =\left(\frac{16}{3}+2\right)-0 \\
&=\frac{22}{3} \approx 7.333
\end{aligned}
$$
Work Step by Step
$$
\int_{0}^{2}\left(2 x^{2}+1\right) d x
$$
Here $a=0, b=2,$ and $n=4,$ with $(b-a) / n=(2-0) / 4=1 / 2$ as the altitude of each trapezoid. Then $x_{0}=0, x_{1}=1 / 2, x_{2}=1, x_{3}=3 / 2,$ and $x_{4}=2 .$ Now find the corresponding function values. The work can be organized into a table, as follows.
$$
\begin{aligned}
&n=4, b=2, a=0, f(x)=2 x^{2}+1\\
&\begin{array}{c|c|l}
\hline i & x_{i} & f\left(x_{i}\right) \\
\hline 0 & 0 & 1 \\
1 & \frac{1}{2} & 1.5 \\
2 & 1 & 3 \\
3 & \frac{3}{2} & 5.5 \\
4 & 2 & 9 \\
\hline
\end{array}
\end{aligned}
$$
(a) the trapezoidal rule:
$$
\begin{array}{l}
\int_{0}^{2}\left(2 x^{2}+1\right) d x \\
\quad\quad\quad \approx \frac{2-0}{4}\left[\frac{1}{2}(1)+1.5+3+5.5+\frac{1}{2}(9)\right] \\
\quad\quad\quad=0.5(15)=7.5
\end{array}
$$
(b) Simpson’s Rule:
$$
\begin{array}{l}
\int_{0}^{2}\left(2 x^{2}+1\right) d x \\
\quad\quad\quad \approx \frac{2-0}{3(4)}[1+4(1.5)+2(3)+4(5.5)+9] \\
\quad\quad\quad =\frac{2}{12}(44) \approx 7.333
\end{array}
$$
(c) Exact value:
$$
\begin{aligned}
\int_{0}^{2}\left(2 x^{2}+1\right) d x &=\left.\left(\frac{2 x^{3}}{3}+x\right)\right|_{0} ^{2} \\
& =\left(\frac{16}{3}+2\right)-0 \\
&=\frac{22}{3} \approx 7.333
\end{aligned}
$$