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

  • Thread starter Thread starter SherlockOhms
  • Start date Start date
  • Tags Tags
    Bound Error
SherlockOhms
Messages
309
Reaction score
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
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?
 
Apologies! It's (b-a)^5/(180*n^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.
 
Thanks for this too. There's most likely a mistake alright. I'll be sure to double check it in the morning though.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top