What we are solvingf(x) is given at seven equally spaced points from x = 0 to x = 3
Estimate the integral of f(x) from 0 to 3 by the trapezium rule, to three decimal places
Chapter: Numerical methods
Topic: the trapezium rule
Concept and formulasThe area under the curve is split into strips of width h and each strip is treated as a trapezium
∫abf(x)dx≈2h[(y0+yn)+2(y1+y2+⋯+yn−1)]h = strip width,
y0,…,yn = ordinates
WorkingStrip width: 6 strips from 0 to 3
h=63−0=0.5Sum of the first and last ordinates
y0+y6=0.1003+0.0327=0.1330Sum of the middle ordinates
0.0391+0.0801+0.0602+0.0649+0.0380=0.28232×0.2823=0.5646∫03f(x)dx≈20.5[0.1330+0.5646]=0.25×0.6976=0.1744≈0.174Answer: ∫₀³ f(x) dx ≈ 0.174
Tip: Count ordinates and strips: 7 ordinates means 6 strips, so h = 0.5