Applying Simpson's Rule with 7 Pieces: Solving the Int.

  • Context: MHB 
  • Thread starter Thread starter shamieh
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the application of Simpson's Rule for numerical integration, specifically when using 7 data points to estimate the integral of a function over the interval from 0 to \(2\pi\). Participants explore the implications of having an odd number of segments and clarify how to apply the rule correctly.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant expresses confusion about using Simpson's Rule with 7 pieces, questioning whether the number of intervals must be even.
  • Another participant clarifies that with 7 data points, there are actually 6 intervals, which allows for the application of Simpson's Rule.
  • A participant shares their solution process, detailing the calculations performed using the provided data points and the application of Simpson's Rule.
  • Another participant provides positive feedback on the solution presented, indicating it appears correct.

Areas of Agreement / Disagreement

Participants generally agree on the correct application of Simpson's Rule with the given data points, with no significant disagreements noted in the discussion.

Contextual Notes

The discussion assumes familiarity with Simpson's Rule and numerical integration techniques, and it does not address any potential limitations or assumptions regarding the function being integrated.

Who May Find This Useful

Students or individuals interested in numerical methods for integration, particularly those learning about Simpson's Rule and its application in mathematical problems.

shamieh
Messages
538
Reaction score
0
When applying Simpson's rule, suppose I have to slice up my function into 7 pieces, which would be odd. Then how would I apply Simpson's rule to my problem? Doesn't the n have to be equal to some even number?

I'm a bit confused, here is the question.

Estimate $$\int ^{2\pi}_0 f(x) \, dx$$The following data was collected about a function f(x)
$$x|f(x)$$

$$0 | 1.000$$

$$\frac{\pi}{3} | 1.513$$

$$\frac{2\pi}{3} | 0.696$$

$$\pi | 1.000$$

$$\frac{4\pi}{3} | 1.107$$

$$\frac{5\pi}{3} | 0.937$$

$$2\pi | 1.000$$

Sorry if it looks sloppy, I don't remember how to draw tables on this forum, anyways, with that being said, They are giving me 7 values, so they want me to split it into 7 pieces correct? So they want $$\frac{\Delta x}{3} [ f(0) + 4(\pi/3) + 2( 2\pi/3) ... 2\pi]$$

By the way I am just guessing they want me to split it into 7 pieces. Maybe they just want 6? I'm just not too sure, I feel like the approximate area would need to include all values. Thanks in advance for your help
 
Physics news on Phys.org
You do have 7 data points, but only 6 intervals ($n=6$), so Simpson's Rule will work here with no problems. :D
 
Oh I see. I'll be back with my solution soon! :eek:
 
Can someone verify my solution? It looks reasonable, just want to make sure though.(Muscle)

So I ended up with $$[1.000 + 4(1.513) + 2(0.696) + 4(1.000) + 2(1.107) + 4(0.937) + 1.000]$$

Which turned out to be $$\approx 19.406$$

Then I did $$\frac{\pi}{9} \approx .34906585039$$

thus $$.34906585039 * 19.406 \approx 6.77397189284$$
 
Looks good to me! :D
 

Similar threads

Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K