Answer
$$
\int_{1}^{3} \frac{\ln x}{x} d x
$$
Here $a=1, b=3,$ and $n=4,$ with $(b-a) / n=(3-1) / 4=1/2 $ as the altitude of each trapezoid. Then $x_{0}=1, x_{1}=1.5 , x_{2}=2 , x_{3}=2.5 ,$ and $x_{4}=3 .$ Now find the corresponding function values. The work can be organized into a table, as follows.
$$
\begin{aligned}
&n=4, b=3, a=1, f(x)=\frac{\ln x}{x}\\
&\begin{array}{l|l|l}
\hline i & x_{i} & f\left(x_{i}\right) \\
\hline 0 & 1 & 0 \\
1 & 1.5 & 0.27031 \\
2 & 2 & 0.34657 \\
3 & 2.5 & 0.36652 \\
4 & 3 & 0.3662 \\
\hline
\end{array}
\end{aligned}
$$
Simpson's rule:
$$
\begin{array}{l}
\int_{1}^{3} \frac{\ln x}{x} d x \\
\approx \frac{3-1}{3(4)}[0+4(0.27031)+2(0.34657) \\
\quad+4(0.36652)+0.3662] \\
\approx 0.6011
\end{array}
$$
This answer is close to the value of $ 0.6035$
obtained from the exact integral in Exercise $67$.
Where the exact value can be obtained by:
$$
\begin{aligned}
\int_{1}^{3} \frac{\ln x}{x} d x &=\int_{1}^{3} \ln x d (\ln x) \\
&=\left.\frac{1}{2}(\ln x)^{2}\right|_{1} ^{3}\\
&=\frac{1}{2}(\ln 3)^{2}-\frac{1}{2}(\ln 1)^{2} \\
&\approx 0.6035
\end{aligned}
$$
Work Step by Step
$$
\int_{1}^{3} \frac{\ln x}{x} d x
$$
Here $a=1, b=3,$ and $n=4,$ with $(b-a) / n=(3-1) / 4=1/2 $ as the altitude of each trapezoid. Then $x_{0}=1, x_{1}=1.5 , x_{2}=2 , x_{3}=2.5 ,$ and $x_{4}=3 .$ Now find the corresponding function values. The work can be organized into a table, as follows.
$$
\begin{aligned}
&n=4, b=3, a=1, f(x)=\frac{\ln x}{x}\\
&\begin{array}{l|l|l}
\hline i & x_{i} & f\left(x_{i}\right) \\
\hline 0 & 1 & 0 \\
1 & 1.5 & 0.27031 \\
2 & 2 & 0.34657 \\
3 & 2.5 & 0.36652 \\
4 & 3 & 0.3662 \\
\hline
\end{array}
\end{aligned}
$$
Simpson's rule:
$$
\begin{array}{l}
\int_{1}^{3} \frac{\ln x}{x} d x \\
\approx \frac{3-1}{3(4)}[0+4(0.27031)+2(0.34657) \\
\quad+4(0.36652)+0.3662] \\
\approx 0.6011
\end{array}
$$
This answer is close to the value of $ 0.6035$
obtained from the exact integral in Exercise $67$.
Where the exact value can be obtained by:
$$
\begin{aligned}
\int_{1}^{3} \frac{\ln x}{x} d x &=\int_{1}^{3} \ln x d (\ln x) \\
&=\left.\frac{1}{2}(\ln x)^{2}\right|_{1} ^{3}\\
&=\frac{1}{2}(\ln 3)^{2}-\frac{1}{2}(\ln 1)^{2} \\
&\approx 0.6035
\end{aligned}
$$