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

In summary, the correct answer for the given integral ∫cos x + sin x with lower limit 0 and upper limit pi is 4 intervals: 1.8962, 8 intervals: 1.9742, 16 intervals: 1.9936. The correct values for the x and cos x + sin x are 0 1, .785 1.414, 1.570 1, 2.356 0, and 3.1415 -1. It is important to ensure that the calculator is in radian mode when calculating these values.
  • #1
escobar147
31
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
  • #2


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, [itex]\pi[/itex]/4, [itex]\pi[/itex]/2, [itex]3\pi[/itex]/4, and [itex]\pi[/itex].
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!
 
  • #3


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

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?
 
  • #4


Your calculator should be in radian mode, not degrees!
 
  • #5


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

ah... i see... there's 3 hours i will never get back :)
 

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

What is the trapezium rule?

The trapezium rule is a numerical method used to approximate the value of a definite integral. It involves dividing the interval of integration into smaller subintervals and using the average of the function values at the endpoints of each subinterval to approximate the area under the curve.

How does the trapezium rule work?

The trapezium rule works by approximating the area under a curve using trapezoids. The base of each trapezoid is one of the subintervals and the height is the average of the function values at the endpoints of the subinterval. The sum of all the areas of the trapezoids gives an approximation of the definite integral.

Why is the trapezium rule useful?

The trapezium rule is useful because it provides a simple and accurate way to approximate the value of a definite integral. It can be used for functions that are difficult or impossible to integrate analytically, making it a valuable tool in scientific and engineering calculations.

How many subintervals should be used in the trapezium rule?

The number of subintervals used in the trapezium rule depends on the desired level of accuracy. Generally, the more subintervals used, the more accurate the approximation will be. However, too many subintervals can also lead to numerical errors, so it is important to strike a balance between accuracy and efficiency.

Can the trapezium rule be used for any type of function?

The trapezium rule can be used for any continuous function. However, it may not provide an accurate approximation for functions with sharp turns or discontinuities. In these cases, other numerical methods may be more appropriate.

Back
Top