Chapter 3: Problem 32
NUMERICAL QUADRATURE (see Exercise 3.1.23). (a) Derive the quadrature formula $$ \int_{a}^{b} f(x) d x \approx .5 h(f(a)+f(b))+h \sum_{i=1}^{n-1} f(a+i h) \quad \text { (where } \left.h=(b-a) / n\right) $$ by applying the improved Euler method to the initial value problem $$ y^{\prime}=f(x), \quad y(a)=0 $$ (b) The quadrature formula (A) is called the trapezoid rule. Draw a figure that justifies this terminology. (c) \(\mathrm{L}\) For several choices of \(a, b, A,\) and \(B,\) apply (A) to \(f(x)=A+B x,\) with \(n=\) \(10,20,40,80,160,320 .\) Compare your results with the exact answers and explain what you (d) \(\mathrm{L}\) For several choices of \(a, b, A, B,\) and \(C,\) apply \((\mathrm{A})\) to \(f(x)=A+B x+C x^{2},\) 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.