Question: Problem 3a (10 points). Let's plot the function /(x)=e- on the interval [0,3] using Excel and Matlab It's good practice to know how to plot

 Problem 3a (10 points). Let's plot the function /(x)=e- on theinterval [0,3] using Excel and Matlab It's good practice to know how

Problem 3a (10 points). Let's plot the function /(x)=e- on the interval [0,3] using Excel and Matlab It's good practice to know how to plot using both programs. This plot will help with a geometric interpretation of the analytical approach. Save your Matlab plot as a separate file, and upload both code and plot into the Blackboard Assignment. The simplest approximation to a function is the 0" order polynomial (a constant). Assume f(x) is constant on the interval [a,b] and has the value f(a) there. One can construct a rectangle of a height fa) to illustrate a constant function on the interval [a,bj. Problem 3b (10 points). SYSE 5350, Spring 2018, Exercise 1, Part II Plot the rectangle of a height f(0) on the graph of Problem 3a on the interval (0,3) along with the original function. What is the area of your rectangle? The area of the rectangle is an estimate of the desired integral. From your plot, how accurate do you think your estimate is (compared to the area under the original function)? The approximation to the integral of the original function you have just developed is called the "Rectangular Rule". A more accurate approximation is a 15 order (linear) polynomial of the form f(x) = a + bx. This polynomial has two unknown coefficients (a and b). These coefficients can be determined using the function values at two points by solving the system of two linear equations with two unknowns. Typically, the points at the ends of the interval are used. In our case these are the points (0,f(0)) and (3,f(3)). (In graphical terms, to define a linear polynomial means to draw a straight line through these two points). Problem 3c (10 points). Build the straight line between the two end points of the interval [0, 3]. The x-axis, the vertical lines x = 0 and x = 3, and the constructed line form a trapezoid. Plot the trapezoid on the graph. The area of the trapezoid is a more accurate approximation to the integral of f(x) on [0,3]. What is the approximate value of the integral? How accurate do you think it is? The approximation you have just developed is called the "Trapezoidal Rule". Moving up the scale of polynomials the next order of approximation utilizes the 2nd order (quadratic) polynomial of the form f(x) = a + bx + cxz. This polynomial has 3 unknown coefficients. To calculate the value of these coefficients we need the values of the function at three points. Typically, the ends of the interval and the middle of the interval are used. In our case we will use the points (0,f(0)), (1.5,f(1.5)), and (3,f(3)).Problem 3d ill] goints}. Find the coefcients a,ch for the quadratic polynomial that passes through the three specied points: {timid}. [f.5,f(f.5l). and (3.1%)}. You will have to solve the 3x3 system of equations to accomplish that [3 equations with 3 unknowns}. Plot the quadratic polynomial along with the graph of the original function. The area under the quadratic polynomial is an approximation to the integral of ffx}. Integrate your quadratic polynomial to obtain the numerical value of the integral. [Recall the rule for integrating polynomials. If you do not remember how to integrate polynomials - let me know and I will help.) How accurate do you think the obtained approximation is? The case you have just developed is called "Simpson's Rule". SYSE 5354). Spring 21MB. Exercise 1. Part II 2 Error Analysis: Without going through the numerical analysis derivations the following error results are stated. Consider your function on the interval {a,b). The error of the Rectangular Rule is D'b 5J2]. This notation means that the error is proportional to the square of the interval length. The Trapezoidal Rule has an error of ll) - 5J3]. while Simpson's Rule error is om: al5]. How can one increase the accuracy of such approximations? The only control we have over increasing the accuracy [reducing the error} of the numerical integration estimate when using the above-mentioned methods is by shortening the length of the interval: If (h a} is small {

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!