intro numerical integration
2 mins read ·
Numerical integration: A short introduction
outline
- Intro 3
- Theory 10
- Some rules and errors 18
- Case 25
- Practical formulas 34
- Closing 42
intro
Suppose that there is with , where
is to be calculated.
discretization
Value of can be disretized as follow
where
is increment step.
Assignment 1. Proove that and using (2) and (3).
formula
In general (4) can be approximated
where is different for various types of Riemann sums and index stands for certain type of Rieman sum.
lhr & rhl
Left hand rule (LHR) is using
while
is used for right hand rule (RHR).
mpr & trapezoid rule
Mid point rule (MPR) is using
which is different than trapezoid rule
Notice the difference between (6) and (7).
simpson’s rule
Other approach in Riemann sum is
which is known as Simpson’s rule. Note that or number of partitions must be even or there should be at least three points , , and for (8) to work.
refs
- Petra Menz and Nicola Mulberry, “Numerical Integration”, in Calculus Early Transcendentals: Integral & Multi-Variable Calculus for Social Sciences, adapted from Lyryx’ textbook, Calculus Early Transcendentals an Open Text (VERSION 2017- REVISION A), Department of Mathematics, Simon Fraser University, 1 Jun 2020, url https://www.sfu.ca/math-coursenotes/Math%20158%20Course%20Notes/sec_Numerical_Integration.html [20240316].
- M. Bourne, “Riemann Sums Applet”, Interactive Mathematics, url https://www.intmath.com/integration/riemann-sums.php [20240317].