How Large Must n Be to Guarantee Error Bounds in Approximation Methods?

In summary, the question is asking how large n must be for the 3 methods (Midpoint Rule, Trapezoidal Rule, and Simpson's Rule) to guarantee an error of less than 0.00001 for the definite integral ∫_0^1〖sin⁡(x^2 )dx〗. Using the error bounds for each method, we find that n must be at least 98 for the Midpoint Rule, 138 for the Trapezoidal Rule, and 12 for Simpson's Rule to achieve the desired accuracy.
  • #1
MarkFL
Gold Member
MHB
13,288
12
Here is the question:

Consider the definite integral ∫_0^1〖sin⁡(x^2 )dx〗. How large must n be to guarantee that:?

1. |∫_0^1〖sin⁡(x^2 )dx〗- M_n |< .00001
2. |∫_0^1〖sin⁡(x^2 )dx〗- T_n |< .00001
3. |∫_0^1〖sin⁡(x^2 )dx〗- S_n |< .00001
I guess I'm mostly confused on how to find n. Thanks for all your help.

I have posted a link there to this topic so the OP can see my work.
 
Mathematics news on Phys.org
  • #2
Hello Courtney,

We are given:

\(\displaystyle I=\int_0^1\sin\left(x^2 \right)\,dx\)

For the definitions of the Error Bound for the 3 methods, we identify:

\(\displaystyle a=0,\,b=1,\,f(x)=\sin\left(x^2 \right)\)

1.) The Error Bound $E_n$ for the Midpoint Rule is:

If there exists a number $M>0$ such that $\left|f''(x) \right|\le M$ for all $x$ in $[a,b]$, then:

\(\displaystyle E_n\le\frac{M(b-a)^3}{24n^2}\)

Using the function given, we find:

\(\displaystyle f''(x)=2\cos\left(x^2 \right)-4x^2\sin\left(x^2 \right)\)

Here is a plot of $y=\left|f''(x) \right|$ on the given interval:

View attachment 1079

We see that:

\(\displaystyle f''(1)=4\sin(1)-2\cos(1)\ge f''(x)\) for all $x$ in the interval. Thus, we want:

\(\displaystyle \frac{\left(4\sin(1)-2\cos(1) \right)(1-0)^3}{24n^2}<0.00001\)

\(\displaystyle \frac{\left(2\sin(1)-\cos(1) \right)}{12n^2}<\frac{1}{100000}\)

or

\(\displaystyle n^2>\frac{25000}{3}\left(2\sin(1)-\cos(1) \right)\approx9521.99719789711\)

\(\displaystyle 97^2<9521.99719789711<98^2\)

Hence, by taking $n\ge98$ we obtain the desired accuracy.

2.) The Error Bound $E_n$ for the Trapezoidal Rule is:

If there exists a number $M>0$ such that $\left|f''(x) \right|\le M$ for all $x$ in $[a,b]$, then:

\(\displaystyle E_n\le\frac{M(b-a)^3}{12n^2}\)

Using the results of 1.) we see that we want:

\(\displaystyle \frac{\left(4\sin(1)-2\cos(1) \right)(1-0)^3}{12n^2}<0.00001\)

\(\displaystyle \frac{\left(2\sin(1)-\cos(1) \right)}{6n^2}<\frac{1}{100000}\)

or

\(\displaystyle n^2>\frac{50000}{3}\left(2\sin(1)-\cos(1) \right)\approx19043.99439579422\)

\(\displaystyle 137^2<19043.99439579422<138^2\)

Hence, by taking $n\ge138$ we obtain the desired accuracy.

3.) The Error Bound $E_n$ for Simpson's Rule is:

If there exists a number $M>0$ such that $\left|f^{(4)}(x) \right|\le M$ for all $x$ in $[a,b]$, then:

\(\displaystyle E_n\le\frac{M(b-a)^5}{180n^4}\)

Using the function given, we find:

\(\displaystyle f^{(4)}(x)=4\left(\left(4x^3-3 \right)\sin\left(x^2 \right)-12x^2\cos\left(x^2 \right) \right)\)

Here is a plot of $y=\left|f^{(4)}(x) \right|$ on the given interval along with the absolute maximum:

View attachment 1080

Thus, we want:

\(\displaystyle \frac{28.42851540309637345267676583(1-0)^5}{180n^4}<0.00001\)

\(\displaystyle \frac{28.42851540309637345267676583}{180n^4}<\frac{1}{100000}\)

or

\(\displaystyle n^4>15793.61966838687414037598101\bar{6}\)

\(\displaystyle 11^4<15793.61966838687414037598101\bar{6}<12^4\)

Hence, by taking $n\ge12$ we obtain the desired accuracy.
 

Attachments

  • courtney1.jpg
    courtney1.jpg
    5.9 KB · Views: 70
  • courtney2.jpg
    courtney2.jpg
    28.9 KB · Views: 69

FAQ: How Large Must n Be to Guarantee Error Bounds in Approximation Methods?

What is an error bound for approximation methods?

An error bound for approximation methods is a measure of the maximum possible error between an estimated value and the true value of a mathematical problem. It is used to determine the accuracy and reliability of various numerical methods used for solving mathematical equations.

How is the error bound calculated?

The error bound is calculated by finding the difference between the estimated value and the actual value of a mathematical problem. This difference is then compared to a predetermined tolerance or threshold to determine if the approximation method used is within an acceptable range of error.

Why is the error bound important?

The error bound is important because it allows us to determine the accuracy and reliability of an approximation method. It helps us evaluate the quality of our solutions and determine if they are within an acceptable range of error for the given problem.

What factors can affect the error bound?

The error bound can be affected by various factors such as the complexity of the mathematical problem, the accuracy of the input data, and the choice of approximation method used. In general, a more complex problem or the use of a less accurate method can result in a larger error bound.

How can the error bound be minimized?

The error bound can be minimized by using more accurate approximation methods, improving the accuracy of input data, and reducing the complexity of the mathematical problem. It is also important to carefully choose an appropriate tolerance or threshold for the error bound to ensure the accuracy of the solution is within an acceptable range.

Similar threads

Back
Top