$30
Math 1080
Homework #5
Problem 1:
Find the absolute and relative condition number for the following problems. Comment on the values of x for
which the problem would be considered well-conditioned or ill-conditioned.
a) π(π₯) = (ln π₯)
2
b) π(π₯) = βπ₯β2 = √∑ π₯π
π 2
π=1
c) π(π΄) = [π‘ππππ(π΄) det(π΄)] for 2x2 matrix A
Use β. β∞ norm in the formula for the condition number and treat the input as a vector of dimension 4, so your
Jacobian becomes a 2 x 4 matrix.
d) π(π₯, π¦) = [
π₯π¦ π₯
2
π¦
2 π₯π¦]
Use β. β1 norm in the formula for the condition number and treat the output as a vector of dimension 4, so your
Jacobian becomes a 4 x 2 matrix.
Problem 2:
Determine whether the following algorithms are backward stable, stable, or unstable:
a) Computation of
2 2
f ( x, y ) = x − y
as πΜ(π₯, π¦) = [ππ(π₯) ⊗ ππ(π₯)] β [ππ(π¦) ⊗ ππ(π¦)]
b) Computation of
2 2
f ( x, y ) = x − y
as πΜ(π₯, π¦) = [ππ(π₯) ⊕ ππ(π¦)] ⊗ [ππ(π₯) β ππ(π¦)]
c) Computation of π(π₯) = 1⁄(1 + π₯) as πΜ(π₯, π¦) = 1 β [1 ⊕ ππ(π₯)]
Problem 3:
Determine the accuracy of the algorithms in Problem 2. Which of the algorithms a) and b) is more accurate?