Professional Documents
Culture Documents
Simpsons Rule Error Bound
Simpsons Rule Error Bound
Question: Calculate arc length on the interval [0,4]. Then use Simpson’s Rule
with n = 8, to approximate arc length on the same interval. Compare the
actual length to the result to determine the error of the Simpson’s Rule
approximation.
1 x
(e + e )
−x
f (x) =
2
( dx )
b 2
dy
∫a
L= 1+ dx
Answer choices:
245
Solution: A
The question asks us to calculate the length of the curve of f (x) on the
interval [0,4], and then approximate the same length using Simpson’s Rule,
with n = 8, and compare the results by identifying the error.
1 x
f (x) = (e + e −x)
2
( dx )
b 2
dy
∫a
L= 1+ dx
1 x
f (x) = (e + e −x)
2
dy 1 x
= (e − e −x)
dx 2
So
( dx ) [2 ]
2 2
dy 1 x
= ( e − e −x)
246
( dx )
2
dy 1
= (e x − e −x)
2
4
Add 1.
( dx )
2
dy 1
= 1 + (e x − e −x)
2
1+
4
Now, because the expression will be inside a radical, let’s factor out 1/4.
1
4[
( )]
x −x 2
4 + e − e
1
4[
( )]
2x −2x
4 + e − 2 + e
1 2x
(e + 2 + e )
−2x
4
The three terms in the brackets actually form a perfect square binomial, so
let’s write a final version of it and then finally place it into the integral to
find the length of the curve.
1 x
(e + e −x)2
4
247
4
1 x
∫0 2 ( e + e −x) d x
1 4 x
2 ∫0
e + e −x d x
4
1 x
(e − e )
−x
2 0
1
[(e − e ) − (e − e )] = 27.289917
4 −4 0 −0
2
Now, let’s find the length using Simpson’s Rule. The general formula for
Simpson’s Rule is
Δx
Sn = [ f (x0) + 4f (x1) + 2f (x2) + ⋯ 2f (xx−2) + 4f (xx−1) + f (xn)]
3
However, the function f (xi) is not the original f (x) function as the integrand.
If it is, we will be finding the area under the curve. The function for the
Simpson’s Rule is the radical in the integrand of the arc length integral,
1 x
( )
−x 2
f (x) = e + e
4
b−a 4−0
or in this problem
n 8
248
to find the length of each subinterval.
1 x
( )
−x 2
f (x) = e + e
4
1 0
( ) =1
−0 2
f (0) = e + e
4
1 0.5
( ) = 1.127626
−0.5 2
f (0.5) = e + e
4
1 1
( ) = 1.543081
−1 2
f (1) = e + e
4
1 1.5
( ) = 2.352409
−1.5 2
f (1.5) = e + e
4
1 2
( ) = 3.762196
−2 2
f (2) = e + e
4
1 2.5
( ) = 6.132289
−2.5 2
f (2.5) = e + e
4
1 3
( ) = 10.067662
−3 2
f (3) = e + e
4
249
1 3.5
( ) = 16.572825
−3.5 2
f (3.5) = e + e
4
1 4
( ) = 27.308233
−4 2
f (4) = e + e
4
Now we’ll write the entire Simpson’s Rule, using the previous function
values, giving the approximation of the length of the function.
1
[1 + 4(1.127626 + 2(1.543081) + 4(2.352409) + 2(3.762196)
6
= 27.309117
The error is the actual length minus the estimated length, as an absolute
value.
250
Topic: Simpson’s rule error bound
1 x
(e + e )
−x
f (x) =
2
Answer choices:
A | ES | ≤ 0.379281
B | ES | ≤ 0.003793
C | ES | ≤ 1.037928
D | ES | ≤ 0.037928
251
Solution: D
1 x
(e + e )
−x
f (x) =
2
To find the error bound of Simpson’s Rule on the interval [a, b], we use this
formula.
(b − a)5
| ES | ≤ k
180n 4
First, let’s find k. The value k if often denoted by the notation Mf (4) which
means the maximum absolute value of the function’s fourth derivative in
the interval. Let’s find k for the function and interval in this problem.
1 x
(e + e )
−x
f (x) =
2
1 x
(e − e )
−x
f′(x) =
2
1 x
f′′(x) = (e + e −x)
2
1 x
f′′′(x) = (e − e −x)
2
252
1 x
f (x) = (e + e −x)
(4)
2
The graph is the same as f (x) so to find k, find the maximum value of the
function on [0,4]. The minimum function value is at x = 0, f (0) = 1 and the
maximum function value is at x = 4, f (4) = 27.308233, k = 27.308233.
(b − a)5
| ES | ≤ k
180n 4
Therefore,
| ES | ≤ 0.037928
253
Topic: Simpson’s rule error bound
1 x
(e + e )
−x
f (x) =
2
Answer choices:
A n ≥ 62
B n ≥ 63
C n ≥ 64
D n ≥ 62.78
254
Solution: C
1 x
(e + e )
−x
f (x) =
2
To find the error bound of Simpson’s Rule on the interval [a, b], we use this
formula.
(b − a)5
| ES | ≤ k
180n 4
First, let’s find k. The value k if often denoted by the notation Mf (4) which
means the maximum absolute value of the function’s fourth derivative in
the interval. Let’s find k for the function and interval in this problem.
1 x
(e + e )
−x
f (x) =
2
1 x
(e − e )
−x
f′(x) =
2
1 x
(e + e )
−x
f′′(x) =
2
1 x
(e − e )
−x
f′′′(x) =
2
255
1 x
f (x) = (e + e −x)
(4)
2
The graph is the same as f (x) so to find k, find the maximum value of the
function on [0,4]. The minimum function value is at x = 0, f (0) = 1 and the
maximum function value is at x = 4, f (4) = 27.308233, k = 27.308233.
(b − a)5
| ES | ≤ k
180n 4
(b − a)5
k
180n 4
(4 − 0)5
(27.308233)
180)(8)n 4
(27.308233)(1,024)
(180)n 4
256
155.353503
n4
Since we want the error to be less than 0.00001, we set the maximum error
bound expression to be less than 0.00001.
155.353503
≤ 0.00001
n 4
155.353503
≤ 0.00001
n 4
155.353503 ≤ (0.00001)n 4
155.353503
≤ n4
0.00001
Take the fourth root both sides of the inequality, ignoring the possibility
that n could be negative.
155.353503 4
4
≤ n4
0.00001
n ≥ 62.781294
257