
266  NUMERICAL INTEGRATION 
Table 5.8  Commonly used Newton-Cotes formulas 
h  h  h
3 
11 
= 1  J 
f(x) 
dx = 
-[f(a) 
+/(b)]-
-/"(0 
trapezoidal rule 
u  2 
12 
n=2 
ft<x)dx=~[t(a) 
+4/(a;b) 
+f(b)]-
~/<
4
>aJ 
Simpson'srule 
n=3 
h  3h 
3h
5 
J 
f(x) 
dx = 
-[f(a) 
+ 3f(a 
+h)+ 
3f(h-
h)+ 
/(b)]-
-j<
4
>aJ 
u  8  w 
n=4 
f
h  2h [ 
(a+ 
h) 
] 
8h
1 
f(x) 
dx 
=-
7f(a) 
+ 
32/(a 
+h)+ 
12/ 
--
+ 
32/(h-
h)+ 
7f(h) 
-
-j<
6
>W 
u 
45 
2 
945 
For easy  reference,  the  most  commonly  used  Newton-Cotes  formulas  are 
given 
in 
Table 5.8.  For n = 
4, 
/
4
(/) 
is 
often called  Boote's rule. As  previously, 
let 
h = 
(b-
a)jn 
in the table. 
Definition  A  numerical  integration  formula 
i(f) 
that  approximates 
J(f) 
is 
said to have degree 
of 
precision m 
if 
1. 
f(f) 
=!(f) 
for all polynomials 
f(x) 
of 
degree.:::;; 
m. 
2. 
[(f) 
=I= 
!(f) 
for some polynomial f of degree m + 
1. 
Example  With n = 
1, 
3 in Table 5.8, the degrees of precision are also m =  n = 
1,3, 
respectively. But with  n =  2,4, the degrees  of precision are 
(m 
=  n + 1 = 
3, 
5, 
respectively. This illustrates the general result that Newton-Cotes formulas 
with an even index 
n gain an extra degree of precision as compared with those of 
an odd index [see formulas (5.2.5) and (5.2.7)]. 
Each Newton-Cotes formula can be used  to  construct a composite rule.  The 
most useful remaining one 
is 
probably that based 
on 
Boole's rule (see Problem 
7). 
We omit any further details. 
Convergence  discussion  The  next  question  of interest is  whether 
In(f) 
con-
verges  to 
!(f) 
as  n 
~ 
oo. 
Given  the  lack  of convergence 
of 
the  interpolation 
polynomials on evenly spaced  nodes for some choices of 
f(x) 
[see (3.5.10)], 
we 
should  expect  some  difficulties.  Table  5.9  gives  the  results  for  a  well-known 
example, 
!
4 
dx 
I= 
--
=  2 · 
tan-
1 
(4)::: 2.6516 
-41 
+ x
2 
(5.2.9) 
These Newton-Cotes numerical integrals are diverging;  and  this  illustrates  the 
fact  that  the  Newton-Cotes  integration  formulas 
In(f) 
in  (5.2.2),  need  not 
converge to 
!(f). 
To understand the implications of the lack of convergence of Newton-Cotes 
quadrature for 
(5.2.9), 
we 
first  give  a  general  discussion 
of 
the convergence  of 
numerical integration methods.