Use Simpson's rule to find the arclength of the curve LaTeX:  \displaystyle f(x)=\cos{\left(x \right)} on LaTeX:  \displaystyle (1,9) with LaTeX:  \displaystyle n=36 .

LaTeX:  \displaystyle \Delta x = \frac{ 9 - 1 }{ 36 } . LaTeX:  \displaystyle x_i = a +i\Delta x = 1 + i \frac{2}{9} Using the 1,4,2,...,2,4,1 pattern the sum can be written as LaTeX:  \displaystyle x_i can be written split into the even and odd terms. LaTeX:  \displaystyle x_k = 1 + (2k-1)\cdot \frac{2}{9} for LaTeX:  \displaystyle k=1 to LaTeX:  \displaystyle k =18 and LaTeX:  \displaystyle x_j = 1 + (2j)\cdot \frac{2}{9} for LaTeX:  \displaystyle j=1 to LaTeX:  \displaystyle j =17 . LaTeX:  \displaystyle f(1) +f(9)+4\sum_{k=1}^{18}f\left(\frac{4 k}{9} + \frac{7}{9}\right) + 2\sum_{j=1}^{17}f\left(\frac{4 j}{9} + 1\right) . The value is LaTeX:  \displaystyle 9.8999