Professional Documents
Culture Documents
MTH 510 Final S18
MTH 510 Final S18
Final Exam-V1
Student #: Signature:
Spring 2018
Date: July 5, 2018
Time Limit: 3hrs
Instruction
14 2
Total: 76
MTH 510 Final Exam - Page 2 of 10 July 5, 2018
starting with initial guess of x0 = 1.5 and x1 = 2 and a maximum ✏s = 0.5%. Calculate
the approximate relative percentage error ✏a % at each iteration.
MTH 510 Final Exam - Page 3 of 10 July 5, 2018
5x1 x2 x3 = 4
2x1 + 2x2 9x3 = 7
x1 + 7x2 + 3x3 = 2.
starting with the initial trial vector [1 0.5 0.5]T . Specify the component-wise ap-
proximate percent relative error at each iteration and iterate until all component-wise
approximate percentage relative errors fall below 10%. (Clearly indicate the approx-
imate solution to the system)
MTH 510 Final Exam - Page 4 of 10 July 5, 2018
3. (10 points) a) (3 marks) Write out the Newton form of the interpolating polynomial
P2 (x) for f (x) = log x, such that it passes through the points (3, log(3)), (6, log(6)),
(10, log(10)).
b) (2 marks) Using the polynomial P2 (x)obtained in a), find P2 (4.25) and give the
associated true relative percentage error.
4. (5 points) Given the data obtained from experimental test, the values of y at various
values of x are;
x 1 2 3 4
y 1 3 7 12
5. (5 points) Use the Power method to determine the dominant eigenvalue and the corre-
sponding eigenvector of the matrix
2 3
1 0 5
A=4 1 3 05
1 0 7
Use [0.5 0 1]T as an initial estimate of the eigenvector, and iterate until you are
guaranteed to have at least 2 correct significant figure in the eigenvalue estimate.
MTH 510 Final Exam - Page 6 of 10 July 5, 2018
x -1 1 3 4
y 0 3 -2 2
Find the piece of the clamped-clamped cubic spline that is valid on the interval [1, 3]
with f 0 (0) = 0, andf 0 (4) = 0. Assume the constants c1 = 3, and c4 = 9.
MTH 510 Final Exam - Page 7 of 10 July 5, 2018
4
How large should n be to guarantee an accuracy of 1.25 ⇥ 10 with composite 1/3-
Simpson’s Rule.
MTH 510 Final Exam - Page 8 of 10 July 5, 2018
a) (6) Use Romberg integration up to O(h6 ) to estimate the integral and compute the
approximate relative error at each iteration.
y0 y cos(x) = 0; y(0) = 1
d3 x d2 x dx
a + b + c + x = 10 cos(10t); x(0) = 1; x0 (0) = 2; x00 (0) = 0
dt3 dt2 dt
where a, b, and c are constants.
MTH 510 Final Exam - Page 10 of 10 July 5, 2018
R3
10. (2 points) Consider the integral 0
(2 + 3x + x2 ) dx. Which of the following statement
is true;
A. Applying the trapezoidal rule with n = 4 to the integral gives the exact value.
B. Applying the Simpson’s 1/3 Rule with n = 3 to the integral gives the exact
value.
C. Applying the Simpson’s 1/3 Rule with n = 4 to the integral gives the exact
value.
D. None of the above (A)-(C) is true.
>>x=[-2 1 4 2];
>>y=[3 -5 6 1]
>>polyfit(x,y,2)
13. (2 points) (2 marks) The following commands has been entered in MATLAB:
>>x=0:0.1:2;
>>y=x.^2-5*x-2;
>>x=0:0.1:1;
>>plot(x,y)