puolisuunnikassäännössä
Puolisuunnikassääntö, or the trapezoidal rule, is a numerical method used to approximate the definite integral of a function. It is a simple yet effective technique that relies on approximating the area under the curve of a function by dividing it into a series of trapezoids.
The fundamental idea behind the puolisuunnikassääntö is to divide the interval of integration [a, b] into n
The area of a single trapezoid in the i-th subinterval, from x_i to x_{i+1}, is given by
The formula for the puolisuunnikassääntö is:
Integral from a to b of f(x) dx ≈ h/2 * [f(x_0) + 2f(x_1) + 2f(x_2) + ... + 2f(x_{n-1}) + f(x_n)]
As the number of subintervals, n, increases, the approximation generally becomes more accurate. The puolisuunnikassääntö is