The function, f ( x ) = e x </msup> at 11 equidistant poi

Aedan Gonzales

Aedan Gonzales

Answered question

2022-05-10

The function,
f ( x ) = e x
at 11 equidistant points on the interval [ 0 , 1 ].
The question asks whether the trapezoidal rule on 10 subintervals would give a better approximation than the Simpson rule on 10 subintervals on the provided function?

Answer & Explanation

Duncan Cox

Duncan Cox

Beginner2022-05-11Added 18 answers

For Simpson's rule, S(f), there exists a point ξ∈[0,1] such that the error
E ( S ( f ) , n ) = | 0 1 f ( x ) d x S ( f ) | = 1 180 n 4 | f ( 4 ) ( ξ ) | e 180 n 4 .
For the trapezoidal rule, T ( f ), the error is
E ( T ( f ) , n ) = | 0 1 f ( x ) d x T ( f ) | = 1 12 n 2 | f " ( ξ ) | 1 12 n 2 .We thus have
E ( S ( e x ) , 5 ) 3 e 05
and
E ( T ( e x ) , 10 ) 8 e 04 ,
hence we can be sure that Simpson's rule will be the better one. In fact, I got E ( S ( e x ) , 5 ) = 7.3415 e 06 and E ( T ( e x ) , 10 ) = 0.0012, so the difference is somewhat larger than the theoretical bounds predict.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?