Suppose we approximate an object to have volume 1.5m3, when its exact volume is 1.387m3. Give the relative error, absolute error, and percent error of our approximation.
Hint+
The absolute error is the difference of the two values; the relative error is the absolute error divided by the exact value; the percent error is one hundred times the relative error.
Let f(x)=xsinx+2cosx.
Find a reasonable value M such that ∣f′′(x)∣≤M for all −3≤x≤2.
Hint+
You don't have to find the actual, exact maximum the second derivative achieves–you only have to give a reasonable “ceiling" that it never breaks through.
True or False: for fixed positive constants M, n, a, and b, with b>a,
24Mn2(b−a)3≤12Mn2(b−a)3
True or False: for a function f(x) and fixed constants n, a, and b, with b>a, the n-interval midpoint approximation of ∫abf(x)dx is more accurate than the n-interval trapezoidal approximation.
Write out all three approximations of ∫030x3+11dx with n=6. (That is: midpoint, trapezoidal, and Simpson's.) You do not need to simplify your answers.
Hint+
Follow the formulas in Equations 1.11.2,
1.11.6, and 1.11.9 in the CLP-2 text.
The solid V is 40 cm high and the horizontal cross sections
are circular disks. The table below gives the diameters of the cross sections
in centimeters at 10 cm intervals. Use the trapezoidal rule to estimate
the volume of V.
height
0
10
20
30
40
diameter
24
16
10
6
4
Hint+
See Section 1.11.2 in the
CLP-2 text.
To set up the volume integral, see Example 1.6.6 in the
CLP-2 text. Note the dimensions given for the cross sections are diameters, not radii.
A 6 metre long cedar log has cross sections that are approximately
circular. The diameters of the log, measured at one metre intervals, are
given below:
metres from left end of log
0
1
2
3
4
5
6
diameter in metres
1.2
1
0.8
0.8
1
1
1.2
Use Simpson's Rule to estimate the volume of the log.
Hint+
See Section 1.11.3 in the
CLP-2 text, and compare to Question 13. Note the table gives diameters, not radii.
The circumference of an 8 metre high tree at different heights
above the ground is given in the table below. Assume that all horizontal
cross-sections of the tree are circular disks.
height (metres)
0
2
4
6
8
circumference (metres)
1.2
1.1
1.3
0.9
0.2
Use Simpson's rule to approximate the volume of the tree.
Hint+
See §1.11.3 in the
CLP-2 text.
To set up the volume integral, see Example 1.6.6 in the
By measuring the areas enclosed by contours on a topographic map, a geologist
determines the cross sectional areas A in m2 of a 60 m high
hill. The table below gives the cross sectional area A(h) at various
heights h. The volume of the hill is V=∫060A(h)dh.
h
0
10
20
30
40
50
60
A
10,200
9,200
8,000
7,100
4,500
2,400
100
If the geologist uses the Trapezoidal Rule to estimate the
volume of the hill, what will be their estimate, to the nearest 1,000m3?
What will be the geologist's estimate of the volume of the
hill if they use Simpson's Rule instead of the Trapezoidal Rule?
The integral ∫−11sin(x2)dx is estimated using the Midpoint
Rule with 1000 intervals. Show that the absolute error in this approximation is at most
2⋅10−6.
You may use the fact that when approximating ∫abf(x)dx with the
Midpoint Rule using n points, the absolute value
of the error is at most M(b−a)3/24n2 when ∣f′′(x)∣≤M
for all x∈[a,b].
Hint+
The main step is to find an appropriate value of M. It is not necessary to
find the smallest possible M.
Answer+
Let f(x)=sin(x2). Then f′(x)=2xcos(x2) and
f′′(x)=2cos(x2)−4x2sin(x2).
Since ∣x2∣≤1 when ∣x∣≤1, and ∣sinθ∣≤1 and ∣cosθ∣≤1 for all θ,
we have
The total error using the midpoint rule with n subintervals to
approximate the integral of f(x) over [a,b] is bounded by
(24n2)M(b−a)3, if ∣f′′(x)∣≤M for all a≤x≤b.
Using this bound, if the integral ∫−212x4dx is approximated using the midpoint rule with 60 subintervals, what is the largest possible error between the approximation M60 and the true value of the integral?
Hint+
The main step is to find M. This question is unusual in that its
wording requires you to find the smallest possible allowed M.
Both parts of this question concern the integral I=∫02(x−3)5dx.
Write down the Simpson's Rule approximation to I with n=6.
Leave your answer in calculator-ready form.
Which method of approximating I results in a smaller error bound:
the Midpoint Rule with n=100 intervals, or Simpson's Rule with n=10
intervals? You may use the formulas
∣EM∣≤24n2M(b−a)3and∣ES∣≤180n4L(b−a)5,
where M is an upper bound for ∣f′′(x)∣ and L is an upper bound for ∣f(4)(x)∣, and EM and ES are the absolute errors arising from the midpoint rule and Simpson's rule, respectively.
Hint+
The main steps in part (b) are to find the smallest possible values of
M and L.
Find a bound for the error in approximating
∫15x1dx using Simpson's rule with n=4.
Do not write down the Simpson's rule approximation S4.
In general the error in approximating
∫abf(x)dx using Simpson's rule with n
steps is bounded by 180L(b−a)(Δx)4 where Δx=nb−a
and L≥∣f(4)(x)∣ for all a≤x≤b.
Hint+
As usual, the biggest part of this problem is finding L. Don't be thrown off by the error bound being given slightly differently from Theorem 1.11.12 in the CLP-2 text: these expressions are equivalent, since Δx=nb−a.
using Simpson's rule with n=6.
Do not write down the Simpson's rule approximation Sn.
In general, the error in approximating
∫abf(x)dx using Simpson's rule with n
steps is bounded by 180L(b−a)(Δx)4 where Δx=nb−a
and L≥∣f(4)(x)∣ for all a≤x≤b.
Hint+
The function e−2x=e2x1 is positive and decreasing, so its maximum occurs when x is as small as possible.
Write down the trapezoidal approximation T4 for I.
You do not need to simplify your answer.
Write down the Simpson's approximation S4 for I.
You do not need to simplify your answer.
Without computing I, find an upper bound for ∣I−S4∣.
You may use the fact that if f(4)(x)≤L
on the interval [a,b], then the error in using Sn to approximate
∫abf(x)dx has absolute value less than or equal to
L(b−a)5/180n4.
A function s(x) satisfies s(0)=1.00664, s(2)=1.00543,
s(4)=1.00435, s(6)=1.00331, s(8)=1.00233. Also, it is known to satisfy
s(k)(x)≤1000k for 0≤x≤8 and all positive
integers k.
Find the best Trapezoidal Rule and Simpson's Rule approximations
that you can for I=∫08s(x)dx.
Determine the maximum possible sizes of errors in the approximations
you gave in part (a). Recall that if a function f(x) satisfies
f(k)(x)≤Kk on [a,b], then
The “best ... approximations that you can" means using the maximum number of intervals, given the information available.
The final sentence in part (b) is just a re-statement of the error bounds we're familiar with from Theorem 1.11.12 in the CLP-2 text. The information s(k)(x)≤1000k gives you values of M and L when you set k=2 and k=4, respectively.
Consider the trapezoidal rule for making numerical approximations to
∫abf(x)dx. The error for the trapezoidal rule satisfies
∣ET∣≤12n2M(b−a)3 , where ∣f′′(x)∣≤M
for a≤x≤b. If −2<f′′(x)<0 for 1≤x≤4,
find a value of n to guarantee the trapezoidal rule will give
an approximation for ∫14f(x)dx with absolute error,
∣ET∣, less than 0.001.
Hint+
Set the error bound to be less than 0.001, then solve for n.
Answer+
Any n≥68 works.
Full solution+
3Stage 3Application
Further than practice: several ideas at once, or an unfamiliar situation.
A swimming pool has the shape shown in the figure below.
The vertical cross-sections of the pool are semi-circular disks. The
distances in feet across the pool are given in the figure at 2–foot intervals along
the sixteen–foot length of the pool. Use Simpson's Rule to estimate the
volume of the pool.
Hint+
See Section 1.11.3 in the
CLP-2 text.
To set up the volume integral, see Example 1.6.2 in the
CLP-2 text.
Since the cross-sections of the pool are semi-circular disks, a section that is d metres across will have area 21π(2d)2 square feet. Based on the drawing, you may assume the very ends of the pool have distance 0 feet across.
A piece of wire 1m long with radius 1mm is made in such
a way that the density varies in its cross-section, but is radially symmetric
(that is, the local density g(r) in kg/m3 depends only on the
distance r in mm from the centre of the wire). Take as given that the
total mass W of the wire in kg is given by
W=2π10−6∫01rg(r)dr
Data from the manufacturer is given below:
r
0
1/4
1/2
3/4
1
g(r)
8051
8100
8144
8170
8190
Find the best Trapezoidal Rule approximation that you
can for W based on the data in the table.
Suppose that it is known that ∣g′(r)∣<200 and
∣g′′(r)∣<150 for all values of r. Determine the maximum possible size
of the error in the approximation you gave in part (a). Recall that if
a function f(x) satisfies ∣f′′(x)∣≤M on [a,b], then
∣I−Tn∣≤12n2M(b−a)3
where I=∫abf(x)dx and Tn is the Trapezoidal Rule approximation
to I using n subintervals.
Hint+
See Example 1.11.14 in the
CLP-2 text.
Don't get caught up in the interpretation of the integral. It's nice to see how integrals can be used, but for this problem, you're still just approximating the integral given, and bounding the error.
When you find the second derivative to bound your error, pay attention to the difference between the integrand and g(r).
Simpson's rule can be used to approximate log2,
since log2=∫12x1dx.
Use Simpson's rule with 6 subintervals to approximate log2.
How many subintervals are required in order to guarantee
that the absolute error is less than 0.00001?
Note that if En is the error using n subintervals, then
∣En∣≤180n4L(b−a)5 where L is the maximum absolute value
of the fourth derivative of the function being integrated and a and b
are the end points of the interval.
Hint+
See Example 1.11.15 in the
CLP-2 text. You'll want to use a calculator for the approximation in (a), and for finding the appropriate number of intervals in (b). Remember that Simpson's rule requires an even number of intervals.
Let I=∫02cos(x2)dx and
let Sn be the Simpson's rule approximation to I using n subintervals.
Estimate the maximum absolute error in using S8 to approximate I.
How large should n be in order to ensure that ∣I−Sn∣≤0.0001?
Note: The graph of f′′′′(x), where f(x)=cos(x2),
is shown below. The absolute error in the Simpson's rule approximation
is bounded by 180n4L(b−a)5 when ∣f′′′′(x)∣≤L on the
interval [a,b].
Hint+
See Example 1.11.15 in the
CLP-2 text.
Rather than calculating the fourth derivative of the integrand, use the graph to find the largest absolute value it attains over our interval.
Estimate how many subdivisions are needed to calculate I to five decimal
places of accuracy using the trapezoidal rule.
Note that if En is the error using n subintervals, then
∣En∣≤12n221M(b−a)3, where M is the maximum absolute value
of the second derivative of the function being integrated and a and b
are the limits of integration.
Hint+
See Example 1.11.14 in the
CLP-2 text.
You'll have to differentiate f(x). To that end, you may also want to review the fundamental theorem of calculus
and, in particular, Example 1.3.5 in the
CLP-2 text.
You don't have to find the best possible value for M. A reasonable upper bound on ∣f′′(x)∣ will do.
To have five decimal places of accuracy, your error must be less than 0.000005. This ensures that, if you round your approximation to five decimal places, they will all be correct.
Let f(x) be a function (For example, f(x)=61x3−21x2+(1+x)log∣x+1∣ will do, but you don't need to know what f(x) is for this problem.) with f′′(x)=x+1x2.
Show that ∣f′′(x)∣≤1 whenever x is in the interval [0,1].
Find the maximum value of ∣f′′(x)∣ over the interval [0,1].
Assuming M=1, how many intervals should you use to approximate ∫01f(x)dx to within 10−5?
Using the value of M you found in (b), how many intervals should you use to approximate ∫01f(x)dx to within 10−5?
Hint+
To find the maximum value of ∣f′′(x)∣, check its critical points and endpoints.
Answer+
(a) When 0≤x≤1, then x2≤1 and x+1≥1, so ∣f′′(x)∣=∣x+1∣x2≤11=1.
(b) 21 (c) n≥65 (d) n≥46
Approximate the function logx with a rational function by approximating the integral ∫1x21t1dt using Simpson's rule. Your rational function f(x) should approximate logx with an error of not more than 0.1 for any x in the interval [1,3].
Hint+
In using Simpson's rule to approximate ∫1x21t1dt with n intervals, a=1, b=x, and Δx=nx−1.
Using an approximation of the area under the curve x2+11, show that the constant arctan2 is in the interval [4π+0.321,4π+0.323].
You may assume use without proof that dx4d4{1+x21}=(x2+1)524(5x4−10x2+1). You may use a calculator, but only to add, subtract, multiply, and divide.
Hint+
∫121+x21dx=arctan(2)−4π, so
arctan(2)=4π+∫121+x21dx
If an approximation A of the integral ∫121+x21dx has error at most ε, then A−ε≤∫121+x21dx≤A+ε.
Looking at our target interval will tell you how small ε needs to be, which in turn will tell you how many intervals you need to use.
You can show, by considering the numerator and denominator separately, that ∣f(4)(x)∣≤30.75 for every x in [1,2].
If you use Simpson's rule to approximate ∫121+x21dx, you won't need very many intervals to get the requisite accuracy.
Answer+
Note: for more detail, see the solutions.
First, we use Simpson's rule with n=4 to approximate ∫121+x21dx. The choice of this method (what we're approximating, why n=4, etc.) is explained in the solutions–here, we only show that it works.
Now, we bound the error associated with this approximation. Define N(x)=24(5x4−10x2+1) and D(x)=(x2+1)5, so N(x)/D(x) gives the fourth derivative of 1+x21. When 1≤x≤2, ∣N(x)∣≤N(2)=984 (because N(x) is increasing over that interval) and ∣D(x)∣≥D(1)=25 (because D(x) is also increasing over that interval), so dx4d4{1+x21}=D(x)N(x)≤25984=30.75. Now we find the error bound for Simpson's rule with L=30.75, b=2, a=1, and n=4.