(8) Simpson’s 3/8 rule is a Newton–Cotes closed integration formula that uses a cubic
interpolating polynomial to approximate the integrand function. The formula is
ð
b
a
fxðÞdx
3h
8
fx
0
ðÞþ3fx
1
ðÞþ3fx
2
ðÞþfx
3
ðÞðÞ:
The error associ ated with basic Simpson’s 3/8 rule is Oh
5
, which is of the same
order as basic Simps on’s 1/3 rule. The degree of precision of Simpson’s 3/8 rule is 3.
The composite rule has a truncation error of Oh
4
.
(9) Richardson’s extrap olation is a numerical scheme used to combine two numerical
approximations of lower order in such a way as to obtain a result of higher-
order accuracy. Romberg integration is an algorithm that uses Richardson’s extrap-
olation to improve the accuracy of numerical integration. The trapez oidal rule is
used to generate mOh
2
approximations of the integral using a step size that
doubles with each successive approxim ation. The approximations are then com-
bined pairwise to obtain (m − 1) Oh
4
second-level approximations. The (m − 2)
third-level Oh
6
approximations are computed from the second-level approxima-
tions. This process continues until the mth level approximation is attained or a user-
specified tolerance is met.
(10) Gaussian quadrature uses an nth-degree polynomial interpolant of the integrand
function to achieve a degree of precision equal to 2n + 1. This method optimizes the
location of the n + 1 nodes within the interval as well as the n + 1 weights. The node
points of the Gauss–Legendre quadrature method are the roots of the Legendre
polynomial of degree n + 1. Gauss–Legendre quadrature is an open-interval
method. The roots are all located symmetrically in the interior of the interva l.
Gaussian quadrature is well suited for numerical integration of analytical functions.
6.7 Problems
6.1. Transport of nutrients to cells suspen ded in cell culture media For the problem
stated in Box 6.2, construct a piecewise cubic interpolating polynomial to approx-
imate the solute/drug concentration profile near the cell surface for t = 40 s. Plot the
approximate concentration profile. How well does the interpolating function
approximate the exact function? Compare your plot to Figure 6.8, which shows
the concentration profile for t = 10 s. Explain in a qualitative sense how the shape of
the concentration profile changes with time.
6.2. You were introduced to the following error function in Box 6.2:
erfðzÞ¼
2
ffiffiffi
π
p
ð
z
0
e
z
2
dz:
Use the built-in MATLAB function quad to calculate erfðzÞ and plot it for z ∈
[−4, 4]. Then calculate the error between your quadrature approximation and the
built-in MATLAB function erf. Plot the error between your quadrature approxi-
mation and the “correct” value of erfðzÞ. Over which range is the quadrature scheme
most accurate, and why?
6.3. Use the composite Simpson’s 1/3 rule to evaluate numerically the following definite
integral for n = 8, 16, 32, 64, and 128:
ð
π
0
dx
3 þ 5xðÞx
2
þ 49ðÞ
:
403
6.7 Problems