Improving Integration Accuracy with Simpson's Rule

  • Thread starter Thread starter fluidistic
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around determining the degree of precision of a specific numerical integration formula, which resembles Simpson's rule, for the integral of a function over the interval from -1 to 1. Participants are exploring how this formula behaves with different polynomial degrees.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss testing the formula's accuracy with various polynomial forms, including quadratics and cubics. There is a suggestion to check specific polynomials like 1, x, x^2, and x^3 to assess the formula's precision.

Discussion Status

Some participants have made progress in testing polynomials and have identified that the formula is exact for polynomials of degree up to 3. However, there is still exploration regarding its accuracy for quartic polynomials, and no consensus has been reached on the complete degree of precision.

Contextual Notes

Participants are working under the constraints of proving the formula's precision through polynomial testing, and there is acknowledgment of potential calculation errors affecting their conclusions.

fluidistic
Gold Member
Messages
3,934
Reaction score
286
The question is : Determine the degree of precision of the formula for [tex]\int_{-1}^{1} f(x)dx[/tex]~[tex]\frac{4}{3}f(-0.5)-\frac{2}{3}f(0)+\frac{4}{3}f(0.5)[/tex].
My guess is that I must answer like "the degree of precision is that this formula is exact for polynomials of grade [tex]\leqslant[/tex] 2", for example.
My attempt are just thoughts... Can't start. Watching the coefficients in the right side of the "approximation", it is similar to the Simpson's rule.
Please help me telling me how can I start. Thanks!
 
Physics news on Phys.org
It is exact for degree of polynomial<=2. To check this put f(x)=ax^2+bx+c. I'll give you a hint. It's also exact for cubics. Can you show this the same way? Is it exact for quartics?
 
Thanks for your help

Thank you! Before reading your message I tried a quadratic one and it worked, then a cubic one but didn't worked (now I found my calculus error!) and then I gave up because I had the sentiment I wasn't proving anything. I didn't had the idea to put the f(x) as a general form like [tex]a_0x^3+a_1x^2+a_2x+a_3[/tex]. Now it worked till cubic ones, so the degree of precision of the formula is 3.
So to solve the problem, we have first to get a vague idea of the answer and then try testing the polynomials. There is no way to do it in one shot... (Maybe unless to see the coefficient in front of the variable of the higher degree and to see that integrated they are not equal to them in the formula given... hard).
 
Thinking about this, a somewhat simpler approach is just to check 1, x, x^2 and x^3 separately. Since the integral and the formula are both linear, it will then work for linear combinations of those.
 

Similar threads

Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
3K
Replies
17
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K