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.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top