Optimizing Simpson's Rule for Error Bound: Finding the Minimum Value of n

  • Thread starter SherlockOhms
  • Start date
  • Tags
    Bound Error
In summary, the conversation is about calculating the value of n to achieve an approximation within 0.0001, using the equation Error <= (b-a)^5/(180*n^4)*(MAXx [a,b](f4(x))). The attempt at solving the problem resulted in an answer of 6, but the correct answer is listed as 8 in the book. Possible errors or discrepancies were discussed, and it was suggested to double check using Simpson's method.
  • #1
SherlockOhms
310
0

Homework Statement


Calculate the value of n so that the approximation is within 0.0001. b = 2, a = 1. f(x) = 1/x.



Homework Equations


f4(x) = 24/x^5 (Think this is correct)
Error <= (b-a)^5/180n^4(MAXx [a,b](f4(x))

The Attempt at a Solution


Well, 24/x^5 obtains it's max at x =1. Thus (MAXx [a,b](f4(x)) = 24.
I subbed in all the given values and keep getting 6 as my answer. The correct answer is 8 though. Could somebody point out where I'm going wrong?
 
Physics news on Phys.org
  • #2
SherlockOhms said:

Homework Statement


Calculate the value of n so that the approximation is within 0.0001. b = 2, a = 1. f(x) = 1/x.



Homework Equations


f4(x) = 24/x^5 (Think this is correct)
Error <= (b-a)^5/180n^4(MAXx [a,b](f4(x))
What you wrote is ambiguous.
Is it ((b - a)5/180) * n4 or
(b - a)5/(180 * n4)?
SherlockOhms said:

The Attempt at a Solution


Well, 24/x^5 obtains it's max at x =1. Thus (MAXx [a,b](f4(x)) = 24.
I subbed in all the given values and keep getting 6 as my answer. The correct answer is 8 though. Could somebody point out where I'm going wrong?
 
  • #3
Apologies! It's (b-a)^5/(180*n^4).
 
  • #4
I get 6 as well. Is 8 the answer in the back of the book? It's possible they have the wrong answer.

One way to check is to do Simpson's with n = 6, and compare the answer you get with the integral itself,
$$\int_1^2 \frac{dx}{x} = ln(2) \approx. .69315$$

You should have agreement in either 2 or 3 decimal places.
 
  • #5
Thanks for this too. There's most likely a mistake alright. I'll be sure to double check it in the morning though.
 

FAQ: Optimizing Simpson's Rule for Error Bound: Finding the Minimum Value of n

What is Simpson's rule error bound?

Simpson's rule error bound is a mathematical concept used in numerical integration to determine the accuracy of the approximation obtained through Simpson's rule. It is a measure of the difference between the exact value of the integral and the approximate value obtained using Simpson's rule.

How is Simpson's rule error bound calculated?

The Simpson's rule error bound is calculated using the formula: E = (h^5/90) * f''(c), where h is the width of the subintervals and f''(c) is the second derivative of the function being integrated at some point c within the interval.

What does the error bound tell us about the accuracy of Simpson's rule?

The error bound gives us an estimate of the maximum possible error in the approximation obtained through Simpson's rule. It tells us how close the approximate value is to the exact value of the integral.

How can Simpson's rule error bound be minimized?

Simpson's rule error bound can be minimized by decreasing the width of the subintervals (h) or by choosing a function with a smaller second derivative (f''(c)). This can result in a more accurate approximation of the integral.

What are the limitations of Simpson's rule error bound?

One limitation of Simpson's rule error bound is that it assumes the function being integrated is continuous and has a continuous second derivative within the interval. It may not give an accurate estimate for functions with discontinuities or sharp changes in curvature.

Back
Top