How can Simpson's Rule have a large margin of error?

  • Thread starter Thread starter mathew350z
  • Start date Start date
  • Tags Tags
    Error Margin
Click For Summary

Homework Help Overview

The discussion revolves around the application of Simpson's Rule for numerical integration, specifically for the integral of tan(x) from 0 to 1.55. Participants are exploring the discrepancies between their calculated results using Simpson's Rule and the exact answer provided by a calculator, particularly in the context of singularities in the function.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants are examining the reasons behind the large margin of error when using Simpson's Rule, especially near singularities. There is a focus on understanding the behavior of the error term in relation to the function's divergence at specific points.

Discussion Status

Some participants have provided insights regarding the nature of the function tan(x) and its divergence near pi/2, which may contribute to the inaccuracies observed with Simpson's Rule. The discussion is ongoing, with participants seeking to clarify their understanding of the error associated with numerical integration methods.

Contextual Notes

Participants note the importance of being cautious with numerical integration near singularities, as this can significantly affect the accuracy of the results obtained through methods like Simpson's Rule.

mathew350z
Messages
2
Reaction score
0
[tex]\int tan(x)dx[/tex]

with the limits of 0 to 1.55, with n=10. Using Simpson's Rule, my answer was 4.923651704. But I don't understand why Simpson's Rule varies from my calculator's answer (TI-84 Plus) which is 3.873050987. I thought the higher N with Simpson's Rule would make your answer even more accurate?
 
Physics news on Phys.org
mathew350z said:
[tex]\int tan(x)dx[/tex]

with the limits of 0 to 1.55, with n=10. Using Simpson's Rule, my answer was 4.923651704. But I don't understand why Simpson's Rule varies from my calculator's answer (TI-84 Plus) which is 3.873050987. I thought the higher N with Simpson's Rule would make your answer even more accurate?

The calculator seems to give you the exact answer, which is -Log[Cos(1.55)]. When you do numerical integration, you have to be careful when you are close to singularities. In this case 1.55 is close to pi/2 where tan diverges.
 
Count Iblis said:
The calculator seems to give you the exact answer, which is -Log[Cos(1.55)]. When you do numerical integration, you have to be careful when you are close to singularities. In this case 1.55 is close to pi/2 where tan diverges.

Yes, I understand that tan(pi/2) diverges but I still am having a little trouble as to why that Simpson's Rule over-estimates the actual answer.
 
mathew350z said:
Yes, I understand that tan(pi/2) diverges but I still am having a little trouble as to why that Simpson's Rule over-estimates the actual answer.

I guess you have to do a detailed investigation of the error term in Simpson's rule, study how it behaves near an 1/x -like singularity.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
6K
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
24
Views
16K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
19K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K