

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Jim Lambers
Math 105A
Summer Session I 2003-
Homework Assignment 4
This assignment is due at 6pm on Wednesday, August 4. The exercises are from the textbook,
Numerical Analysis, 7th Edition, by Burden and Faires. Note: These exercises have been modi-
fied to indicate tasks that must be performed using MATLAB. For other exercises, you may use
MATLAB if you wish.
For all exercises, you must show your work to receive full credit. For exercises involving MAT-
LAB, you must submit your code and your output.
1
x
2 ln x dx.
Note: R 3 , 3 corresponds to N 3 (h) from Lecture 13, with h = b − a = 0.5.
− 6
. Compute
the Romberg table until either |Rn− 1 ,n− 1 − Rn,n| < 10
− 6 , or n = 10. Compare your result to
the exact value of the integral, which is 0.192259357732796.
1
f (x) dx as accurately as possible.
x 1 2 3 4 5
f (x) 2.4142 2.6734 2.8974 3.0976 3.
described in Theorem 4.4 with h = hk.
for the integral ∫ 1
0
x
2 e
−x dx,
and verify that
S(a, b) − S
a,
a + b
a + b
, b
∫ (^) b
a
f (x) dx − S
a,
a + b
a + b
, b
where the exact value of the integral is 0.16060279414279.
∫ (^) π/ 4
0
e
3 x sin 2x dx
to within 10
− 3
. You may not use MATLAB.
0
x
2 sin x dx
using Gaussian quadrature with n = 2, and compare your result to the exact value, which is
0.08875528443527.
R
e
−(x+y) dA
where R is the region in the plane bounded by the curves y = x
2 and y =
x. Implement
the algorithm using MATLAB.
given interval [a, b], using the Composite Simpson’s rule with a given value of n. Then, use
the transformation t = x
− 1 and your function to approximate the improper integral ∫ (^) ∞
1
x^2 + 9
dx
with n = 4.