Professional Documents
Culture Documents
please respect page limits & practice the Guidelines for Written Assignments.
submit problem A) to the homework box # 15 by 11:50pm, Wednesday 12 September.
your scripts/codes must be uploaded to the Canvas assignment by this same time.
problems B) & C) are not to be submitted.
the related quiz will be given in lecture, Monday 15 September.
remember that Canvas discussion is an open forum.
acknowledge collaborations & assistance from colleagues/TAs/instructor.
A) Computing Problem: Gaussian Elimination (1 page report) The Matlab demo in the
rst lecture showed that nite-precision leads to tiny errors for Gaussian elimination (GE)
with small matrix sizes. A larger matrix seemed to result in larger errors. To quantify the
error of a GE calculation, dene an error vector, , as the dierence between the computed
and the exact solution vectors
x
0
=
_
_
_
_
_
_
_
_
1
.
.
.
1
.
.
.
1
_
_
_
_
_
_
_
_
; x
1
=
_
_
_
_
_
_
_
_
1 +
1
.
.
.
1 +
j
.
.
.
1 +
N
_
_
_
_
_
_
_
_
; = x
1
x
0
=
_
_
_
_
_
_
_
_
1
.
.
.
j
.
.
.
N
_
_
_
_
_
_
_
_
.
A scalar error for a single GE calculation can be dened by the worst of the component
errors, that is, the maximum of the absolute values |
j
|
= max
j
|
j
| .
Since this error value depends on the matrix used, a typical error value might be obtained
by averaging many such values
(k)
obtained from suciently many k = 1 . . . M
N
dierent
random matrices
E
N
=
1
M
N
M
N
1
(k)
.
Dene this E
N
as your computed value of the typical error for GE with matrices with size N.
Your investigation here is to estimate the size of matrix, N
_
_
_
_
_
1
1
1
1
_
_
_
_
,
_
_
_
_
0
1
1
1
_
_
_
_
,
_
_
_
_
0
0
1
1
_
_
_
_
_
_
.
C1) Calculus: 1D Taylor Series
Derive the rst three terms of the Taylor series for
f(x) = ln x = c
0
+ c
1
(x 2) + c
2
(x 2)
2
+ R(x)
about the value x = 2, where R(x) is the remainder term (Stewart, s11.10). Give the Taylor
inequality for the remainder size |R(x)| on the interval 1 x 3.
C2) Calculus: 2D Linear Approximation
Derive the best linear approximation (Stewart, s14.4) of the function z(x, y) = xe
xy
valid near
the point (x, y, z) = (2, 0, 2).