Evaluate Definite Integral Using Trapezium Rule: 4, 8 & 16 Subs

escobar147
Messages
31
Reaction score
0
∫cos x + sin x

lower limit: 0 upper limit: pi

correct answer: 4 intervals: 1.8962, 8 intervals: 1.9742, 16 intervals: 1.9936

i cannot seem to get the correct answer, here is my attempt:

x values cosx + sinx values
0 1
1.042 0.998
2.0944 0.993
3.1415 0.9984

2(0.998 +0.993) + 1 + 0.9984 = 5.9966

h= b-a/n n=4, b-a = pi

h= 0.7853

h/2(5.9966) = 2.3548

this is for the 4 sub interval part of the question and is incorrect... any help would be massively appreciated!
 
Physics news on Phys.org


escobar147 said:
∫cos x + sin x

lower limit: 0 upper limit: pi

correct answer: 4 intervals: 1.8962, 8 intervals: 1.9742, 16 intervals: 1.9936

i cannot seem to get the correct answer, here is my attempt:

x values cosx + sinx values
0 1
1.042 0.998
2.0944 0.993
3.1415 0.9984
You have three subintervals, not four. The endpoints of your subintervals should be at 0, \pi/4, \pi/2, 3\pi/4, and \pi.
escobar147 said:
2(0.998 +0.993) + 1 + 0.9984 = 5.9966

h= b-a/n n=4, b-a = pi

h= 0.7853

h/2(5.9966) = 2.3548

this is for the 4 sub interval part of the question and is incorrect... any help would be massively appreciated!
 


Mark44 said:
You have three subintervals, not four. The endpoints of your subintervals should be at 0, \pi/4, \pi/2, 3\pi/4, and \pi.

i believe these are the correct values:
0 1
.785 1.414
1.570 1
2.356 0
3.1415 -1

how are they found? when i plug the x values into cos x + sin x, my answers are different?
 


Your calculator should be in radian mode, not degrees!
 


HallsofIvy said:
Your calculator should be in radian mode, not degrees!

ah... i see... there's 3 hours i will never get back :)
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top