Chapter 3: Problem 28
NUMERICAL QUADRATURE (see Exercise 3.1.23). (a) Derive the quadrature formula $$ \int_{a}^{b} f(x) d x \approx \frac{h}{6}(f(a)+f(b))+\frac{h}{3} \sum_{i=1}^{n-1} f(a+i h)+\frac{2 h}{3} \sum_{i=1}^{n} f(a+(2 i-1) h / 2) $$ (where \(h=(b-a) / n)\) by applying the Runge-Kutta method to the initial value problem $$ y^{\prime}=f(x), \quad y(a)=0 $$ This quadrature formula is called Simpson's Rule. (b) \(L\) For several choices of \(a, b, A, B, C,\) and \(D\) apply (A) to \(f(x)=A+B x+C x+D x^{3}\), with \(n=10,20,40,80,160,320\). Compare your results with the exact answers and explain what you find. (c) \(\mathrm{L}\) For several choices of \(a, b, A, B, C, D,\) and \(E\) apply (A) to \(f(x)=A+B x+C x^{2}+\) \(\overline{D x}^{3}+E x^{4}\), with \(n=10,20,40,80,160,320\). Compare your results with the exact answers and explain what you find.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.