Let I be the integral da x1 /2 Jo (a) (2 marks) Estimate I by applying the two-point Gauss-Legendre Rule once (b) (2 marks) Estimate I by applying the two-point Gauss-Legendre Rule twice. (c) (2 m...
2. Let I be the integral (a) (2 marks) Estimate I by applying the two-point Gauss-Legendre Rule once. (b) (2 marks) Estimate I by applying the two-point Gauss-Legendre Rule twice c) (2 marks) Estimate the error in your estimate for part (a).
2. Let I be the integral (a) (2 marks) Estimate I by applying the two-point Gauss-Legendre Rule once. (b) (2 marks) Estimate I by applying the two-point Gauss-Legendre Rule twice c) (2 marks) Estimate the error in your...
4. This question is about using the composite Simpson's Rule to estimate the integral 1 = (exp() dr to ten decimal places. (a) Enter and save the following Matlab function function y = f(x) y =exp(x/2); end [O marks) (b) Now complete the following Matlab function function y = compSR (a,b,N) end The function is to return the estimate of I found by applying Simpson's Rule N times. The Matlab function from the previous part of the question should be...
i? (x, y) dA over the rectangle R - [a, b] x [c, d can Problem 1 Show that the integral be computed in terms of the numbers f(a, c), f(a, d), f (b, c) and f(b, d) 5 marks]
i? (x, y) dA over the rectangle R - [a, b] x [c, d can Problem 1 Show that the integral be computed in terms of the numbers f(a, c), f(a, d), f (b, c) and f(b, d) 5 marks]
Let f(x) = cos(x2). Use (a) the Trapezoidal Rule and (b) the Midpoint Rule to approximate the integral ſo'f(x) dx with n = 8. Give each answer correct to six decimal places. To Mg = (c) Use the fact that IF"(x) = 6 on the interval [0, 1] to estimate the errors in the approximations from part (a). Give each answer correct to six decimal places. Error in Tg = Error in Mg = (d) Using the information in part...
I. [15 marks] Apply ST/2(0, π/2) and ST/4(0, π/2) to sin x dx, 0 where Sh(a, b) is Simpson's rule applied to the interval [a, b] with hb a. Use s,/2 (0, π/2) and Sn4 (0, π/2) to compute an error estimate for STT/4 (0,7/2). Comment on the quality of the error estimate.
I. [15 marks] Apply ST/2(0, π/2) and ST/4(0, π/2) to sin x dx, 0 where Sh(a, b) is Simpson's rule applied to the interval [a, b] with...
2 Problem 3 (25 points) Let I = ïrdz. a) [by hand] Use a composite trapezoidal rule to evaluate 1 using N = 3 subintervals. b) MATLAB] Use a composite trapezoidal rule to evaluate I using N - 6 subinterval:s c) by hand] Use Romberg extrapolation to combine your results from a) and b) and obtain an improved approximation (you may want to compare with a numerical approximation of the exact value of the integral
2 Problem 3 (25 points)...
Problem 2 (hand-calculation): Consider the function f(x) tabulated in table 1. Apply improved trapezoid rule to estimate the integral, If) J ) dz, by using the following number of subintervals, n (a) n-3. Use grid points at i0, 4, 8 and 12 (b) n- 6. Use grid points at i0, 2,4, 6, 8, 10 and 12 (c) n = 12, Use all grid points For each part, compute the integral, T(f) and the corresponding absolute error Er(f), and the error...
Question involving Simpon's rule, Midpoint rule, and the error
bound rule. How do I solve for b), d), and g)?
Let f(x)-ecos(x) and 1 -Ís2π f(x) dx (a) Use M1o to approximate I to six decimal places. M17.95492651755339 (b) Use the fact that |f"(x)| e on [0, 2T to obtain an upper bound on the absolute error EM of the approximation from (a). Make sure your answer is correct to six decimal places EM0.16234848503 (c) Use Si0 to approximate I...
Question 2. Consider the approximation of the definite integral () (a) Begin by using 2 points/nodes (i.e., n + 1 = 2, with the two points being x = a and r = b). Replace f(x) by the constant /(a+b)/2] on the entire interval a <<b. Show that this leads to the numerical integration formula M,()) = (b − a) ) Graphically illustrate this approximation. (b) In analogy with the derivation of the Trapezoidal rule and Simpson's rule, generalize part...
Furthermore, let the price of x1 be $1 and the price of x2 be $4, while his income is fixed at $20. a) Graph the budget line with x1 on the x axis and x2 on the y-axis. (1 Marks) b) On the same sketch above, graph two indifference curves. (Be careful about the rate of substitution between both x1 and x2 and hence the slopes of the indifference curves). (2 Marks) c) What is the optimal bundle chosen by...