Let's plot the function f(x)=e^ on the interval [0,3] using Excel and Matlab. The simplest approximation...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Let's plot the function f(x)=e^ on the interval [0,3] using Excel and Matlab. The simplest approximation to a function is the 0th 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 f(a) to illustrate a constant function on the interval [a,b]. Problem 3b (10 points). above Plot the rectangle of a height f(0) on the graph of Problem 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 1st 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 + cx. 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 (10 points). Find the coefficients a,b,c for the quadratic polynomial that passes through the three specified points: (0,f(0)), (1.5,f(1.5)), and (3,f(3)). 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 f(x). 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 5350, Spring 2018, 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 O[(ba)2]. This notation means that the error is proportional to the square of the interval length. The Trapezoidal Rule has an error of O[(b-a)], while Simpson's Rule error is O[(b- a)5]. 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 (ba) is small ( <1) then raising the quantity to a power further reduces the term and hence reduces the error. Simpson's Composite Rule: The general expression for the integral of a function, f(x) using the basic Simpson's Rule is: b-a 6 {(a)+4(a+b) + (b)} Problem 3e (10 points). Verify that this expression yields the same resulting value for the integral of our exponential function as Problem 3d over the interval (0,3). Let's plot the function f(x)=e^ on the interval [0,3] using Excel and Matlab. The simplest approximation to a function is the 0th 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 f(a) to illustrate a constant function on the interval [a,b]. Problem 3b (10 points). above Plot the rectangle of a height f(0) on the graph of Problem 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 1st 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 + cx. 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 (10 points). Find the coefficients a,b,c for the quadratic polynomial that passes through the three specified points: (0,f(0)), (1.5,f(1.5)), and (3,f(3)). 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 f(x). 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 5350, Spring 2018, 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 O[(ba)2]. This notation means that the error is proportional to the square of the interval length. The Trapezoidal Rule has an error of O[(b-a)], while Simpson's Rule error is O[(b- a)5]. 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 (ba) is small ( <1) then raising the quantity to a power further reduces the term and hence reduces the error. Simpson's Composite Rule: The general expression for the integral of a function, f(x) using the basic Simpson's Rule is: b-a 6 {(a)+4(a+b) + (b)} Problem 3e (10 points). Verify that this expression yields the same resulting value for the integral of our exponential function as Problem 3d over the interval (0,3).
Expert Answer:
Related Book For
Computer Architecture A Quantitative Approach
ISBN: 9780128119051
6th Edition
Authors: John L. Hennessy, David A. Patterson
Posted Date:
Students also viewed these mathematics questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
This question concerns lexical grammars. (a) Tree Adjoining Grammars contain two types of elementary tree. (i) What are these trees called? [1 mark] (ii) If one were building a grammar for English...
-
Microkernel operating systems aim to address perceived modularity and reliability issues in traditional "monolithic" operating systems. (i) Describe the typical architecture of a microkernel...
-
In your hometown what system is used to price the publicly supplied water? Why was that pricing system chosen? Would you recommend an alternative?
-
This problem demonstrates the effects of transactions on the current ratio and the debt ratio of Digger Company. Digger's condensed and adapted balance sheet at December 31, 2015, follows: (In...
-
Markus Companys common stock sold for $2.75 per share at the end of this year. The company paid a common stock dividend of $0.55 per share this year. It also provided the following data excerpts from...
-
Refer to the information in Exercise 24-3 and assume instead that double-declining depreciation is applied. Compute the machines payback period (ignore taxes). (Round the payback period to three...
-
Windsor Lock Companys controller is preparing a production budget for the year. The companys policy is to maintain a finished goods inventory equal to one-half of the following months sales. Sales of...
-
Suppose that both players discount future payoffs with the same discount factor ? < 1. Suppose that both players play the "Cooperative Strategy;" namely, they play C in every period, no matter what...
-
Winslow Inc. manufactures and sells three types of shoes. The income statements prepared under the absorption costing method for the three shoes are as follows: Winslow Inc. Product Income...
-
How are capital assets defined?
-
What is the purpose of the Joint Conference Committee?
-
What are the primary differences between Regular and Memorandum decisions of the U.S. Tax Court?
-
Which tax service is frequently quoted in judicial decisions?
-
Describe the current tax law for sale of residence.
-
Discuss the following: Consider what resources are available for organizational growth and expansion. Assess what skills and knowledge are needed to access these resources. Evaluate how you would use...
-
How can NAFTA be beneficial to suppliers of Walmart?
-
A large multimegabyte L3 cache can take tens of cycles to access because of the long wires that have to be traversed. For example, it may take 20 cycles to access a 16 MB L3 cache. Instead of...
-
You are designing a PMD and optimizing it for low energy. The core, including an 8 KB L1 data cache, consumes 1 W whenever it is not in hibernation. If the core has a perfect L1 cache hit rate, it...
-
The TPU uses fixed-point arithmetic (sometimes also called quantized arithmetic, with overlapping and conflicting definitions), where integers are used to represent values on the real number line....
-
Many hotel jobs are inherently dead end; for example, maids, laundry workers, and valets, either have no great aspirations to move up, or are just using these jobs temporarily, for instance, to help...
-
Using what you learned in this chapter of Dessler Human Resource Management, build on the companys new system by recommending two more specific career development activities the hotel should...
-
Should other employees (cleaner/spotters, counter people) be put on a similar plan? Why or why not? If so, how exactly?
Study smarter with the SolutionInn App