When using a numerical method to approximate the value of an integral, we expect there to be some discrepancy between the exact value and the value found by our computation. We cannot (usually) determine exactly what this error is, but it is possible to show that the (absolute value of the) error in using the trapezoid rule to approximate f f(x) dx cannot exceed the bound E(n) = (b-a)3³ 12n² -M where M is the maximum value of f"(x)| on the interval [a, b]. (a) Compute √™1² s sin(x) dr. (b) Compute the trapezoid rule estimate of this integral using n = 4 to at least 4 decimal places. (c) State the error in using this approximation; i.e., state the difference between the exact value in (a) and the approximation in (b) to at least 4 decimal places. (d) Find the value of M for this problem. That is, find the maximum value of f"(z)| on the interval [0, where f(x)= sin(z). You may do this by sketching a graph of f"(z)| and determine what the maximum is, or by using calculus techniques. (e) Find the error bound E(n) for approximating * sin(z) dr using Trapezoid rule with n = 4, n= 10, and n = 20. That is, find E(4), E(10), and E(20) to at least 4 decimal places. (f) Find the first value of n which is large enough that the error bound E(n) is smaller than 0.0001.

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
Please solve d-f
7. When using a numerical method to approximate the value of an integral, we expect there
to be some discrepancy between the exact value and the value found by our computation.
We cannot (usually) determine exactly what this error is, but it is possible to show that the
(absolute value of the) error in using the trapezoid rule to approximate f(x) dx cannot
exceed the bound
·T
E(n) =
(b-a)³
12²
-M
where M is the maximum value of f"(x) on the interval [a, b].
(a) Compute
100%
π/2
sin(x) dr.
(b) Compute the trapezoid rule estimate of this integral using n = 4 to at least 4 decimal
places.
(c) State the error in using this approximation; i.e., state the difference between the exact
value in (a) and the approximation in (b) to at least 4 decimal places.
(d) Find the value M for this problem. That is, find the maximum value of f"(z)| on
the interval [0,] where f(x) = sin(r). You may do this by sketching a graph of f"(x)|
and determine what the maximum is, or by using calculus techniques.
/2
(e) Find the error bound E(n) for approximating
[/² s
n = 4, n= 10, and n = 20. That is, find E(4), E(10), and E(20) to at least 4 decimal
places.
sin(z) dr using Trapezoid rule with
(f) Find the first value of n which is large enough that the error bound E(n) is smaller than
0.0001
Transcribed Image Text:7. When using a numerical method to approximate the value of an integral, we expect there to be some discrepancy between the exact value and the value found by our computation. We cannot (usually) determine exactly what this error is, but it is possible to show that the (absolute value of the) error in using the trapezoid rule to approximate f(x) dx cannot exceed the bound ·T E(n) = (b-a)³ 12² -M where M is the maximum value of f"(x) on the interval [a, b]. (a) Compute 100% π/2 sin(x) dr. (b) Compute the trapezoid rule estimate of this integral using n = 4 to at least 4 decimal places. (c) State the error in using this approximation; i.e., state the difference between the exact value in (a) and the approximation in (b) to at least 4 decimal places. (d) Find the value M for this problem. That is, find the maximum value of f"(z)| on the interval [0,] where f(x) = sin(r). You may do this by sketching a graph of f"(x)| and determine what the maximum is, or by using calculus techniques. /2 (e) Find the error bound E(n) for approximating [/² s n = 4, n= 10, and n = 20. That is, find E(4), E(10), and E(20) to at least 4 decimal places. sin(z) dr using Trapezoid rule with (f) Find the first value of n which is large enough that the error bound E(n) is smaller than 0.0001
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 27 images

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,