Section 7.2 Exercises

  1. Let

    A=[111241311]

    Factor A into a product LU, where L is lower triangular with 1’s along the diagonal and U is upper triangular.

  2. Let A be the matrix in Exercise 1. Use the LU factorization of A to solve Ax=b for each of the following choices of b:

    1. (4,3,13)T

    2. (3,1,10)T

    3. (7,23,0)T

  3. Let A and B be n×n matrices and let xn.

    1. How many scalar additions and multiplications are necessary to compute the product Ax?

    2. How many scalar additions and multiplications are necessary to compute the product AB?

    3. How many scalar additions and multiplications are necessary to compute (AB)x? To compute A(Bx)?

  4. Let Am×n,Bn×r, and x,yRn. Suppose that the product AxyTB is computed in the following ways:

    1. (A(xyT))B

    2. (Ax)(yTB)

    3. ((Ax)yT)B

    1. How many scalar additions and multiplications are necessary for each of these computations?

    2. Compare the number of scalar additions and multiplications for each of the three methods when m=5,n=4, and r=3. Which method is most efficient in this case?

  5. Let Eki be the elementary matrix formed by subtracting α times the ith row of the identity matrix from the kth row.

    1. Show that Eki=IαekeiT.

    2. Let Eji=IβejeiT. Show that EjiEki=I(αek+βej)eiT.

    3. Show that Eki1=I+αekeiT.

  6. Let A be an n×n matrix with triangular factorization LU. Show that

    det(A)=u11u22unn
  7. If A is a symmetric n×n matrix with triangular factorization LU, then A can be factored further into a product LDLT (where D is diagonal). Devise an algorithm, similar to Algorithm 7.2.2, for solving LDLTx=b.

  8. Write an algorithm for solving the tridiagonal system

    [a1b1c1a2an1bn1cn1an][x1x2xn1xn]=[d1d2dn1dn]

    by Gaussian elimination with the diagonal elements as pivots. How many additions/subtractions and multiplications/divisions are necessary?

  9. Let A=LU, where L is lower triangular with 1’s on the diagonal and U is upper triangular.

    1. How many scalar additions and multiplications are necessary to solve Ly=ej by forward substitution?

    2. How many additions/subtractions and multiplications/divisions are necessary to solve Ax=ej? The solution xj of Ax=ej will be the jth column of A1.

    3. Given the factorization A=LU, how many additional multiplications/divisions and additions/ subtractions are needed to compute A1?

  10. Suppose that A1 and the LU factorization of A have already been determined. How many scalar additions and multiplications are necessary to compute A1b? Compare this number with the number of operations required to solve LUx = b using Algorithm 7.2.2. Suppose that we have a number of systems to solve with the same coefficient matrix A. Is it worthwhile to compute A1? Explain.

  11. Let A be a 3×3 matrix and assume that A can be transformed into a lower triangular matrix L by using only column operations of type III; that is,

    AE1E2E3=L

    where E1,E2,E3 are elementary matrices of type III. Let

    U=(E1E2E3)1

    Show that U is upper triangular with 1’s on the diagonal and A=LU. (This exercise illustrates a column version of Gaussian elimination.)

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.9.141