Regra do Trapézio

Before this, knowAproximação por somas de Riemann

Illustrated · 1 min

The trapezoidal rule is an approximation for the area under a curve that is derived from inscribing several trapezoids under a curve. The area of the iith trapezoid is 12h(bi+bi+1)=12(xi+1−xi)(f(xi)+f(xi+1))\frac12h(b_i+b_{i+1})=\frac12(x_{i+1}-x_i)(f(x_i)+f(x_{i+1})). Therefore, we can approximate

∫abf(x) dx≈12∑i=0n−1(xi+1−xi)(f(xi)+f(xi+1))\int_a^bf(x)\,\text{d}x\approx\frac12\sum_{i=0}^{n-1}(x_{i+1}-x_i)(f(x_i)+f(x_{i+1}))

When all the trapezoids have the same width, or xi+1−xi=b−anx_{i+1}-x_i=\frac{b-a}n, it is

∫abf(x) dx≈b−a2n[f(x0)+2f(x1)+2f(x2)+⋯+2f(xn−1)+f(xn)]\int_a^bf(x)\,\text{d}x\approx\frac{b-a}{2n}\left[f(x_0)+2f(x_1)+2f(x_2)+\dots+2f(x_{n-1})+f(x_n)\right]

where x0=ax_0=a, x1=a+b−anx_1=a+\frac{b-a}n, x2=a+2b−anx_2=a+2\frac{b-a}n, x3=a+3b−anx_3=a+3\frac{b-a}n, …\dots, xn−1=a+(n−1)b−anx_{n-1}=a+(n-1)\frac{b-a}n, and xn=bx_n=b.

Read · 1 min

The Trapezoidal Rule (or trapezoid rule) is a method to approximate the definite integral. The way this works is by "approximating" the area under a curve as a trapezoid. Therefore, the formula for the area under the curve (approximation) is ∫abf(x) dx≈(b−a)[f(a)+f(b)2]\int_{a}^{b} f(x)\, dx \approx (b-a) \left[\frac{f(a) + f(b)}{2} \right].

This rule is one of the Newton-Cotes formula.

Errors in the Method

If the integrand is concave up, this method will overestimate the true value of the area beneath the curve.

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

↑ ↓ to choose · Enter to openSearch explanations and problems