Example A–1. Integrating Factor for Series Reactions
A.4 Numerical Evaluation of Integrals
In this section, we discuss techniques for numerically evaluating integrals for solving first-order differential equations.
Trapezoidal rule (two-point) (Figure A.2). This method is one of the simplest and most approximate, as it uses the integrand evaluated at the limits of integration to evaluate the integral:
A-18
when h = X1 – X0.
Figure A.2. Trapezoidal rule illustration.
Simpson’s one-third rule (three-point) (Figure A.3). A more accurate evaluation of the integral can be found with the application of Simpson’s rule:
Simpson’s three-eighths rule (four-point) (Figure A.4). An improved version of Simpson’s one-third rule can be made by applying Simpson’s three-eighths rule:
These formulas are useful in illustrating how the reaction engineering integrals and coupled ODEs [ordinary differential equation(s)] can be solved and also when there is an ODE solver power failure or some other malfunction.