Exrtensão: Regra de Simpson's

Before this, knowRegra do Trapézio

Read · 1 min

Simpson's Rule is a method of approximating integrals in which one approximates a curve by a parabola.

Suppose that we integrate a function ff over an interval [a,b][a,b].

We would like to find the parabola that passes through the points: (a,f(a))(a,f(a)) (b,f(b))(b,f(b)) (a+b2,f(a+b2))(\frac{a+b}{2},f(\frac{a+b}{2})) Translate this function so that the points are: (−k,f(−k))(-k,f(-k)) (0,f(0))(0,f(0)) (k,f(k))(k,f(k)) In this case, k=b−a2k=\frac{b-a}{2}.

Suppose that our parabolic approximation is p(x)=Ax2+Bx+Cp(x)=Ax^2+Bx+C. Calculating the area under the curve p(x)p(x), ∫−kkp(x)dx=∫−kk(Ax2+Bx+C)dx\int_{-k}^{k}p(x)dx=\int_{-k}^{k}(Ax^2+Bx+C)dx ∫−kkp(x)dx=2∫0k(Ax2+C)dx\int_{-k}^{k}p(x)dx=2\int_{0}^{k}(Ax^2+C)dx ∫−kkp(x)dx=k3(2Ak2+6C)\int_{-k}^{k}p(x)dx=\frac{k}{3}(2Ak^2+6C) Now notice that f(k)=Ak2+Bk+Cf(k)=Ak^2+Bk+C, f(0)=Cf(0)=C, and f(−k)=Ak2−Bk+Cf(-k)=Ak^2-Bk+C.

Thus, we show the following: f(−k)+4f(0)+f(k)=2Ak2+6Cf(-k)+4f(0)+f(k)=2Ak^2+6C ∫−kkp(x)dx=k3[f(−k)+4f(0)+f(k)]\int_{-k}^{k}p(x)dx=\frac{k}{3}[f(-k)+4f(0)+f(k)] Translating this function back to the interval [a,b][a,b], ∫abp(x)dx=b−a6[f(a)+4f(a+b2)+f(b)]\int_{a}^{b}p(x)dx=\frac{b-a}{6}[f(a)+4f(\frac{a+b}{2})+f(b)] If one divides the interval [a,b][a,b] into 2n2n parts, one may take nn parabolas: the kkth parabola passes through the xx-values x2k−2x_{2k-2}, x2k−1x_{2k-1}, and x2kx_{2k} for k=1,2,...,nk=1,2,...,n.

If we call this integral approximation S2nS_{2n}, one obtains: S2n=b−a6n(y0+4y1+2y2+4y3+2y4+...+2y2n−2+4y2n−1+y2n)S_{2n}=\frac{b-a}{6n}(y_0+4y_1+2y_2+4y_3+2y_4+...+2y_{2n-2}+4y_{2n-1}+y_{2n}) One may also find this through the weighted average of the trapezoidal and midpoint approximations: S2n=13Tn+23MnS_{2n}=\frac{1}{3}T_n+\frac{2}{3}M_n The error bound in the Simpson's approximation is: ES≤K(b−a)5180n4E_S\le\frac{K(b-a)^5}{180n^4} where ∣f(4)(x)∣≤K|f^{(4)}(x)|\le K for a≤x≤ba\le x\le b.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems