Koshila D.

asked • 07/27/15

reasons for different answers when finding area using Simpsons rule and numerical integration

I have a function √(x2(x+40)) to be integrated from 0 upto -4. Using Simpson's will give me 19.02 but using normal numerical methods giving me -19.5 !! What's the reason behind this difference in signs.........??
Also the 

Koshila D.

I have used (Δx/3)((y1+y9)+4(y2+y4+y6+y8)+2(y1+y3+y5+y7+y9))
Area is divided into 8 parts
Report

07/27/15

Jon P.

tutor
What do you have Δx equal to?
Report

07/27/15

Koshila D.

(0-(-4))/8 
So that gives me a positive answer overall. Since we have to find an area, I hope that the answer getting from Simpson's is correct. But the numerical integration from 0 to (-4) gives the negative.....I'm so confused in this answer.
 
Report

07/28/15

Jon P.

tutor
That's the problem. The limits of integration are from 0 to -4, so Δx is -4 - 0 = -4.  Not +4.  
Report

07/28/15

Koshila D.

Oh........all right I see...so that's the problem. I have been given only the diagram of the function. And the function stretches from zero towards negative direction. 
So when I need to find the area using normal integration method, do I have to integrate from 0 to (-4) OR from (-4) to 0.........???
 
Report

07/29/15

Jon P.

tutor
Well, it all depends on how the actual problem is stated.  You originally said "I have a function √(x2(x+40)) to be integrated from 0 up to -4".  I took that to mean literally that you knew that the limits of the integration were 0 to -4.  It is certainly possible to do an integration in the negative direction, and the results are just the negative of the same integration with the limits switched.
 
However...  If you what you were actually asked to do was to find the area under the curve, then you would definitely want to do the integration in the positive direction, from -4 to 0.  In that case, your original integration was NOT correct, but your use of the Simpson's rule was OK.
 
So to answer your specific question, when you need to find the area under a curve, you integrate in the positive direction, in this case from -4 to 0.
 
Report

07/29/15

Koshila D.

So that's the problem behind this change of signs. 
Thank you very much sir.I really do appreciate your move to help me out of this problem.
 
And one more question sir...!!1
What's the reason for slightest change in the two answers...?? Simpson's giving me 19.02 and integration giving 19.5
 
Report

07/29/15

Jon P.

tutor
Simpson's rule is by its nature an approximation.  The correct answer is given by the integral. 
 
Simpson's rule essentially breaks the area under the curve into a finite number of rectangles and uses them to estimate the area.  Integration starts by doing the same thing, but the difference is that integration takes this to the limit where the rectangles are infinitesimally narrow, whereas Simpson's rule uses a finite number of actual rectangles.  If you extended Simpson's rule to break the width of the interval into more and more slices, you would see that in the end it approaches the same result as the integral itself.  But as long as you use a finite number of slices, Simpson's rule will always be off somewhat from the actual area.
Report

07/30/15

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.