Question: The definite integral of a function can be evaluated by partitioning the interval between the limits of integration a and b into a number of

 The definite integral of a function can be evaluated by partitioning

The definite integral of a function can be evaluated by partitioning the interval between the limits of integration a and b into a number of subintervals of width Ax and summing up the area of the trapezoids: Srcedx = (33) + f(60).ar Note that in this particular case: a=xmin b= xmax Ax = the width of each subinterval (which is assumed to be constant for this exercise). This is denoted by p in Figure 1 above. Deliverables: 1. Submit a MATLAB uger-defined function including headers and comments that implements the Trapezoidal Rule for integration 2. Your function must be thoroughly tested by evaluating the following definite integrals f(x) = Sa+2 z sin(x)dx f(x) = f* x*e*dx f(x) = f(x3 + 2x2 + 3x + 4)dx In each case, analytically determine the exact answer and compare the output of your function with the exact (theoretical result. Repeat this for different number of subintervals

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 Databases Questions!