








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!









Numerical Computing S’09 MATH/CSCI 4800- Homework-3 Solutions
5 − x^2 2
ii. g 2 (x) = 1 + x − x^2 5
For each of these choices do the following. i. Check that the fixed-point problem for g(x) is equivalent to the problem of solving f (x) = 0. ii. Determine if the corresponding fiixed-point iteration scheme is locally convergent to
What g(x) corresponds to Newton’s method for this problem?
(a) x = α is a fixed point of g(x) if g(α) = α. (b) The problem f (x) = 0 is related to the problem g(x) = x if, given f (x), g(x) is chosen so that the two problems have the same solution. For example, g(x) = f (x) + x ensures that if x = α solves f (x) = 0, it also solves g(x) = x. (c) i. Since g 1 (
5 , the problem g 1 (x) = x is equivalent to f (x) = 0.
g′ 1 (x) = 1 − x, |g 1 ′(
The condition for local convergence of the fixed-point iteration is not met. ii. Since g 2 (
5 , the problem g 2 (x) = x is equivalent to f (x) = 0.
g 2 ′(x) = 1 − 2 x 5
, g 2 ′(
The fixed-point iteration converges locally.
The g(x) corresponding to Newton’s method is given by
g(x) = x −
f (x) f ′(x)
= x −
x^2 − 5 2 x
x 2
2 x
g(x) = f (x) + x = ln x + x^2 + x − 3.
We know that f (1) = −2 and f (2) = ln 2 + 1 > 0 , so that the root of f and hence the fixed point of g is in the bracket [1, 2]. We note that
g′(x) =
x
Therefore this choice will not guarantee a convergent fixed-point iteration. Let us try
g(x) = (3 − ln x)^1 /^2.
The derivative g′(x) =
2 x(3 − ln x)^1 /^2 does satisfy |g′(x)| < 1 in the bracket [1, 2] and we expect the fixed-point iteration to converge. The attached Matlab Log provides confirmation and computes the fixed point to the desired accuracy.
(a) If the rows of a square matrix are linearly dependent, then so are the columns. (b) For nonsingular A the number of solutions to the system Ax = b depends upon b. (c) If A is singular, then the system Ax = b has no solutions for any b. (d) The system Ax = b may have exactly two distinct solutions. (e) Naive Gaussian elimination (no pivoting) for the system Ax = b fails only when A is singular.
(a) True. Consider, for example, a 3 × 3 matrix. If the rows are dependent, then row operations can be used to render one of the rows with zeros in all locations. The 3 columns then only have at most 2 nonzero elements each. They can therefore be considered as 2-dimensional vectors, and must be linearly dependent, as more than n vectors in an n -dimensional space are necessarily linearly dependent. (b) False. A nonsingular matrix has only one solution for any b. (c) True in general but false if A and the augmented matrix A|b have the same rank, in which case there is an infinity of solutions. (d) False. The number of solutions can only be none, one or infinity. (e) False. Even in a nonsingular matrix, naive Gaussian elimination can encounter a zero pivot.
ai,j = (i + 1)(j−1), bi =
(i + 1)n^ − 1 i
(The above choice of b ensures that all elements in the exact solution are unity.) Write a Matlab program GaussMain.m which calls the program GaussNaive.m, available on line, to solve the above system for n = 12, 13 and 14. For each choice of n, print out the matrices A and b, the computed solution x, the residual r = b − Ax, and kappa, the condition number of A. (The Matlab command for computing the condition number of A is cond(A).) You may need to modify GaussNaive.m so that it does not print out any other quantities. Comment on, and offer explanation for, the behavior that you observe.