[4] [Computational cost as a function of error tolerance] Recall from Lecture 19 that the error in the Composite Trapezoidal Rule (CTR) using n subintervals of width h is given by -12²2 (6- 12 -(b − a) ƒ" (µ) (1) for some μ € (a, b). (a) Determine the values of n and h that are sufficient to approximate 2 S² x ln(x) dx (2) to within an error tolerance of T = 10-5; that is, determine n and h so that the absolute error when applying the CTR to (2) is smaller that 7. (Hint: take the absolute value of (1) and then say that the result is less than or equal to (1) when f"(µ) is replaced with the maximum value of |ƒ"(x)| on [1,2]. Then, determine n and h that make the resulting quantity less than 7). (b) Repeat part (a) for the case of Composite Simpson's Rule. For this integral, which method is superior?

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question

Composite trapezoidal rule 

[4] **Computational cost as a function of error tolerance**

Recall from Lecture 19 that the error in the Composite Trapezoidal Rule (CTR) using \( n \) subintervals of width \( h \) is given by

\[
-\frac{h^2}{12} (b-a) f''(\mu)
\]

for some \( \mu \in (a, b) \).

(a) Determine the values of \( n \) and \( h \) that are sufficient to approximate 

\[
\int_{1}^{2} x \ln(x) \, dx
\]

to within an error tolerance of \( \tau = 10^{-5} \); that is, determine \( n \) and \( h \) so that the absolute error when applying the CTR to (2) is smaller than \( \tau \). 

(Hint: take the absolute value of (1) and then say that the result is less than or equal to (1) when \( f''(\mu) \) is replaced with the maximum value of \( |f''(x)| \) on \([1, 2]\). Then, determine \( n \) and \( h \) that make the resulting quantity less than \( \tau \)).

(b) Repeat part (a) for the case of Composite Simpson’s Rule. For this integral, which method is superior?
Transcribed Image Text:[4] **Computational cost as a function of error tolerance** Recall from Lecture 19 that the error in the Composite Trapezoidal Rule (CTR) using \( n \) subintervals of width \( h \) is given by \[ -\frac{h^2}{12} (b-a) f''(\mu) \] for some \( \mu \in (a, b) \). (a) Determine the values of \( n \) and \( h \) that are sufficient to approximate \[ \int_{1}^{2} x \ln(x) \, dx \] to within an error tolerance of \( \tau = 10^{-5} \); that is, determine \( n \) and \( h \) so that the absolute error when applying the CTR to (2) is smaller than \( \tau \). (Hint: take the absolute value of (1) and then say that the result is less than or equal to (1) when \( f''(\mu) \) is replaced with the maximum value of \( |f''(x)| \) on \([1, 2]\). Then, determine \( n \) and \( h \) that make the resulting quantity less than \( \tau \)). (b) Repeat part (a) for the case of Composite Simpson’s Rule. For this integral, which method is superior?
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,