A13 · Problem set 4
Problem set 4: integration rules and hard integrals
These problems use lessons 17 to 21: the trapezoid and Simpson rules with their error formulas, Gaussian quadrature, adaptive and Romberg integration, singular, infinite and oscillatory integrals, and the lab's code. Give each answer to the precision the rule actually achieves; that's often the point of the question.
Check
Integrate from 0 to 1 with 2 equal intervals.
(a)
What does the trapezoid rule give?
(b)
By how much does it exceed the exact value?
Check
Integrate from 0 to 1 with 4 intervals.
(a)
Estimate the trapezoid rule's error from .
(b)
And Simpson's, from ?
Check
Integrate from 0 to 2.
(a)
What does Simpson's rule with one panel give?
(b)
What is the exact value? (Compare: Simpson's rule is exact for cubics.)
Check
Apply the 2-point Gauss rule (nodes , weights 1) to .
(a)
What does it give?
(b)
What is its error (exact minus rule)?
Check
A polynomial of degree 12 must be integrated exactly.
(a)
How many Gauss–Legendre points are needed?
Check
Trapezoid values with 1, 2 and 4 intervals are 2, 1.8 and 2.64.
(a)
What is the extrapolated value from the last two?
(b)
What is the next Romberg entry?
Check
Simpson's rule gives 0.6667 on an interval and 0.6602 from its two halves.
(a)
What is the extrapolated value?
(b)
About how large is the error of ?
Check
has an integrable singularity.
(a)
What is ?
(b)
With , the factor becomes . What k makes the exponent 0?
Check
Truncate at L = 2.5.
(a)
About how large is the missing tail?
Check
Map with .
(a)
What is the integral?
Check
Lobe k of runs from to .
(a)
About how large is lobe 9?
(b)
Stopping after lobe k − 1, the error of a partial sum is about half the next lobe. About how large?
Check
The trapezoid rule with 100 intervals on an interval of length 2, with 4.
(a)
What bound does the error formula give?
Check
An adaptive Simpson routine has tolerance 0.005 on [0, 1] and splits an interval in half.
(a)
What tolerance does each half get?
(b)
Below what on a half is it accepted?
Check
Chebyshev coefficients are computed from N = 12 samples by the midpoint rule in θ.
(a)
The computed also picks up a higher coefficient. What is the lowest such index?
Check
Integrate from 0 to 0.09 by subtracting the singularity.
(a)
What is the exact integral of the subtracted part, ?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.