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
Click For Summary

Homework Help Overview

The discussion revolves around determining the minimum value of n for Simpson's Rule to ensure the approximation error is within 0.0001 for the function f(x) = 1/x over the interval [1, 2]. Participants are examining the error bound formula and its components.

Discussion Character

  • Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants are evaluating the maximum value of the fourth derivative, f4(x), and its implications for calculating n. There is a question about the correct interpretation of the error bound formula, specifically regarding the placement of parentheses in the expression. Some participants are also comparing their results with known values and questioning the correctness of the answer provided in the textbook.

Discussion Status

The discussion is ongoing, with participants sharing their calculations and questioning the accuracy of their results. Some guidance has been offered regarding checking calculations against the integral value, but no consensus has been reached on the correct value of n.

Contextual Notes

Participants are working under the constraint of achieving a specific error threshold and are discussing the implications of their findings in relation to textbook answers.

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.
 

Similar threads

Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
6K
Replies
6
Views
3K
Replies
5
Views
2K
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K