integrate Taylor series function?

I am writing a algorithm to test how fast the area under a function can be found. My function is e^(-x^2). when i integrate the function from -3 to 3 i get about 1.77241. Next i tried to compute the area of the function again, but i converted the function to the first 5 non zero terms in the taylor series. I got: 1-x^2+x^4/2-x^6/6+x^8/24+O(x^9) where O(x^9) is the error. when i integrate 1-x^2+x^4/2-x^6/6+x^8/2 from -3 to 3 i get 2119.46 which is not even close to the real integral. how do i compute the area under the taylor series version of the function to get a similar answer to 1.77. Shouldnt the regular function and the taylor series function be equal (except for the error term), which would make the integrals equal???

Anonymous2010-10-25T12:04:56Z

Favorite Answer

Wow!
I would be surprised that your question was not selected among the best of Y!A: really!
In mathematics section also.
I do not think of being able to help you with an answer as valid.
I also believe that you would know the answer more detailed and correct.
Congratulations ...