{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# s08 - Ma 449 Numerical Applied Mathematics Model Solutions...

This preview shows pages 1–2. Sign up to view the full content.

Ma 449: Numerical Applied Mathematics Model Solutions to Homework Assignment 8 Prof. Wickerhauser Exercise 4 of Section 7.1, p.362. The integral of f0*(x-x1)/(x0-x1)+f1*(x-x0)/(x1-x0) is f0*(x-x1)^2/ 2(x0-x1)+f1*(x-x0)^2/2(x1-x0) on [x0,x1] = [f1*(x-x0)^2 - f0*(x-x1)^2] / 2(x1-x0) on [x0,x1] = [f1*(x1-x0)^2 + f0*(x0-x1)^2] / 2(x1-x0) = [f1*(x1-x0)^2 + f0*(x1-x0)^2] / 2(x1-x0) = ( [f1+f0]/2 ) * (x1-x0), which is the trapezoid rule. Exercise 5 of Section 7.1, p.363. Write I for the exact value of the integral and T for the trapezoid rule approximation. Then, for various polynomials p=p(x): p0(x)=1: I(p0) = 1*(x1-x0) T(p0) = ([1+1]/2) *(x1-x0) ==> T(p0)=I(p0) p1(x)=x: I(p1) = [x1^2-x0^2]/2 = ([x1+x0]/2)*(x1-x0) T(p1) = ([x0+x1]/2) *(x1-x0) ==> T(p1)=I(p1) p2(x)=x^2: I(p2) = [x1^3-x0^3]/3 = ([x1^2+x0*x1+x0^2]/3)*(x1-x0) T(p2) = ([x0^2+x1^2]/2) *(x1-x0) ==> T(p2)!=I(p2) Hence the degree of precision of the trapezoid rule is 1. Exercise 6 of Section 7.1, p.363. Write I for the exact value of the integral and S for the Simpson rule approximation. Then, for various polynomials p=p(x): p0(x)=1: I(p0) = 1*(x1-x0) S(p0) = ([1+4*1+1]/6) *(x1-x0) ==> S(p0)=I(p0) p1(x)=x: I(p1) = [x1^2-x0^2]/2 = ([x1+x0]/2)*(x1-x0) S(p1) = ([x0+4*(x0+x1)/2+x1]/6) *(x1-x0) = ([x0+x1]/2) *(x1-x0) ==> S(p1)=I(p1) p2(x)=x^2:

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern