Question: Problem 2 ( 6 0 pts ) . Consider the integration of the function f ( x ) = 1 + e - x s

Problem 2(60 pts). Consider the integration of the function f(x)=1+e-xsin(4x) over the interval [a,b]=[0,1]. Apply the trapezoid rule and Composite Simpson's rule. Refer h as 1 and 14 for trapezoid and Composite Simpson's rule, respectively. Use 5 decimal places in all calculations. Compare the results with the true value of the integral. Shortly comment on the results obtained.
Note-1: Use Radians.
Note-2: No round-off is allowed.
Hint-1:
abf(x)dx=[f(x0)+f(x1)]x02+[f(x1)+f(x2)]x12+cdots+[f(xn-1)+f(xn)]xn-12
abf(x)dx=h[f1+2f2+2f3+cdots+2fn-1+fn]2
Hint-2:
abf(x)dx=x0x2f(x)dx+x2x4f(x)dx+x4x6f(x)dx+dots+xn-2xnf(x)dx
~~h{f(x0)+4f(x1)+f(x2)}3+h{f(x2)+4f(x3)+f(x4)}3+h{f(x4)+4f(x5)+f(x6)}3+h{f(xn-2)+4f(xn-1)+f(xn)}3
~~h{f(x0)+4f(x1)+2f(x2)+4f(x3)+2f(x4)+cdots+4f(xn-1)+f(xn)}3
Problem 2 ( 6 0 pts ) . Consider the integration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!