Metraipolis › archive › dc_45dfb1795be5
Trapezoidal rule — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Trapezoidal_rule
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-31T10:02:17.153Z
- SHA-256 of the archived text
988d47c44ae1a080da423a293e9a53c0197e008d8c3afe73aeda80d9f8b9060a- Stable URL of this page
https://metraipolis.com/documento/dc_45dfb1795be5
How to cite
Trapezoidal rule — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Trapezoidal_rule (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_45dfb1795be5 (Metraipolis archive dc_45dfb1795be5, sha256 988d47c44ae1a080da423a293e9a53c0197e008d8c3afe73aeda80d9f8b9060a)
BibTeX
@misc{dc45dfb1795be5,
title = {Trapezoidal rule — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Trapezoidal_rule},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_45dfb1795be5; sha256 988d47c44ae1a080da423a293e9a53c0197e008d8c3afe73aeda80d9f8b9060a},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Trapezoidal_rule. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In calculus, the trapezoidal rule (informally trapezoid rule; or in British English trapezium rule) is a technique for numerical integration, i.e. approximating the definite integral: ∫ a b f ( x ) d x . {\displaystyle \int _{a}^{b}f(x)\,dx.} The trapezoidal rule works by approximating the region under the graph of the function f ( x ) {\displaystyle f(x)} as a trapezoid and calculating its area. This is easily calculated by noting that the area of the region is made up of a rectangle with width ( b − a ) {\displaystyle (b-a)} and height f ( a ) {\displaystyle f(a)} , and a triangle of width ( b − a ) {\displaystyle (b-a)} and height f ( b ) − f ( a ) {\displaystyle f(b)-f(a)} . Therefore, ∫ a b f ( x ) d x ≈ ( b − a ) ⋅ f ( a ) ⏟ Area of rectangle + 1 2 ( b − a ) ⋅ [ f ( b ) − f ( a ) ] ⏟ Area of triangle = ( b − a ) ⋅ ( f ( a ) + 1 2 f ( b ) − 1 2 f ( a ) ) = ( b − a ) ⋅ ( 1 2 f ( a ) + 1 2 f ( b ) ) = 1 2 ( b − a ) [ f ( a ) + f ( b ) ] . {\displaystyle {\begin{aligned}\int _{a}^{b}f(x)\,dx&\approx \underbrace {(b-a)\cdot f(a)} _{\text{Area of rectangle}}+\underbrace {{\tfrac {1}{2}}(b-a)\cdot [f(b)-f(a)]} _{\text{Area of triangle}}\\&=(b-a)\cdot \left(f(a)+{\tfrac {1}{2}}f(b)-{\tfrac {1}{2}}f(a)\right)\\&=(b-a)\cdot \left({\tfrac {1}{2}}f(a)+{\tfrac {1}{2}}f(b)\right)\\&={\frac {1}{2}}(b-a)[f(a)+f(b)].\end{aligned}}} The rule can also be derived by replacing the integrand with the equation of the line joining points ( a , f ( a ) ) {\displaystyle {\big (}a,f(a){\big )}} and ( b , f ( b ) ) {\displaystyle {\big (}b,f(b){\big )}} , which using the two point form of the equation of a line, is y = ( x − a ) f ( b ) − f ( a ) b − a + f ( a ) . {\displaystyle y=(x-a)\,{\frac {f(b)-f(a)}{b-a}}+f(a).} Therefore, ∫ a b f ( x ) d x ≈ ∫ a b ( x − a ) f ( b ) − f ( a ) b − a + f ( a ) d x = [ 1 2 ( x − a ) 2 f ( b ) − f ( a ) b − a + x f ( a ) ] x = a x = b = [ 1 2 ( b − a ) 2 f ( b ) − f ( a ) b − a + b f ( a ) ] − a f ( a ) = 1 2 ( b − a ) [ f ( b ) − f ( a ) ] + ( b − a ) f ( a ) = 1 2 ( b − a ) [ f ( a ) + f ( b ) ] , {\displaystyle {\begin{aligned}\int _{a}^{b}f(x)\,dx&\approx \int _{a}^{b}(x-a)\,{\frac {f(b)-f(a)}{b-a}}+f(a)\,dx\\&=\left[{\frac {1}{2}}(x-a)^{2}\,{\frac {f(b)-f(a)}{b-a}}+xf(a)\right]_{x=a}^{x=b}\\&=\left[{\frac {1}{2}}(b-a)^{2}\,{\frac {f(b)-f(a)}{b-a}}+bf(a)\right]-af(a)\\&={\frac {1}{2}}(b-a)[f(b)-f(a)]+(b-a)f(a)\\&={\frac {1}{2}}(b-a)[f(a)+f(b)],\end{aligned}}} as before. The integral can be even better approximated by partitioning the integration interval, applying the trapezoidal rule to each subinterval and summing the results. In practice, this "chained" (or "composite") trapezoidal rule is usually what is meant by "integrating with the trapezoidal rule". Let { x k } {\displaystyle \{x_{k}\}} be a partition of [ a , b ] {\displaystyle [a,b]} such that a = x 0 < x 1 < ⋯ < x N − 1 < x N = b , {\displaystyle a=x_{0}<x_{1}<\cdots <x_{N-1}<x_{N}=b,} and Δ x k {\displaystyle \Delta x_{k}} be the length of the k {\displaystyle k} -t
Tema degli esploratori: matematica e informatica teorica (deposito sistematico; ricerca «numerical analysis»).
Fonte: Wikipedia in inglese, voce «Trapezoidal rule» — https://en.wikipedia.org/wiki/Trapezoidal_rule
Wikidata Q833293: «numerical integration method» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q833293
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Trapezoidal_rule?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1382513326, consultata il 2026-10-31T09:46:19.959Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 4a7e915625f74da8cd80d5e0789c056b9b21efb9e14ad238d2ad11f5b8abf6cb