Back to Understanding Linear Algebra

Gaussian elimination revisited

Round-off error and partial pivoting in floating-point arithmetic, the cost of elimination in operations, and the LU factorization that reuses that work.

Understanding Linear Algebra, Gaussian elimination revisited

Status
FlagsLoading your progress…

13 exercises

Activity 5.1.2

Suppose we have a hypothetical computer that represents numbers using only three decimal digits. We will consider the linear system

  1. Show that this system has the unique solution

  2. If we represent this solution inside our computer that only holds 3 decimal digits, what do we find for the solution? This is the best that we can hope to find using our computer.

  3. Let's imagine that we use our computer to f…

2.5

Activity 5.1.3

We will consider the matrix and begin performing Gaussian elimination without using partial pivoting.

  1. Perform two row replacement operations to find the row equivalent matrix Find elementary matrices E1E_1 and E2E_2 that perform these two operations so that E2E1A=A′E_2E_1 A = A'.

  2. Perform a third row replacement to find the upper triangular matrix Find the elementary matrix E3E_3 such that E3E2E1A=UE_3E_2E_1A = U.

  3. We can write A=E1−1E2−1E3−1UA=E_1^{-1}E_2^{-1}E_3^{-1} U. Find the inverse matr…

2.5

Activity 5.1.4

Sage will create LULU factorizations; once we have a matrix A, we write P, L, U = A.LU() to obtain the matrices PP, LL, and UU such that PA=LUPA = LU.

  1. In this example, we found the LULU factorization Using Sage, define the matrix AA, and then ask Sage for the LULU factorization. What are the matrices PP, LL, and UU?

    Notice that Sage finds a different LULU factorization than we found in the previous example because Sage uses par…

2.5

Exercise 1

In this section, we saw that errors made in computer arithmetic can produce approximate solutions that are far from the exact solutions. Here is another example in which this can happen. Consider the matrix

  1. Find the exact solution to the equation Ax=[22]A\xvec = \twovec{2}{2}.

  2. Suppose that this linear system arises in the midst of a larger computation except that, due to some error in the computation of the right hand side of…

2.5

Exercise 2

In this section, we found the LULU factorization of the matrix in one of the activities, without using partial pivoting. Apply a sequence of row operations, now using partial pivoting, to find an upper triangular matrix UU that is row equivalent to AA.

2.5

Exercise 3

In the following exercises, use the given LULU factorizations to solve the equations Ax=bA\xvec = \bvec.

  1. Solve the equation

  2. Solve the equation

2.5

Exercise 4

Use Sage to solve the following equation by finding an LULU factorization: .

2.5

Exercise 5

Here is another problem with approximate computer arithmetic that we will encounter in the next section. Consider the matrix

  1. Notice that this is a positive stochastic matrix. What do we know about the eigenvalues of this matrix?

  2. Use Sage to define the matrix AA using decimals such as 0.2 and the 3×33\times3 identity matrix II. Ask Sage to compute B=A−IB = A-I and find the reduced row echelon form of BB.

  3. Why is the computat…

2.5

Exercise 6

In practice, one rarely finds the inverse of a matrix AA. It requires considerable effort to compute, and we can solve any equation of the form Ax=bA\xvec = \bvec using an LULU factorization, which means that the inverse isn't necessary. In any case, the best way to compute an inverse is using an LULU factorization, as this exercise demonstrates.

  1. Suppose that PA=LUPA = LU. Explain why A−1=U−1L−1PA^{-1} = U^{-1}L^{-1}P.

    Since LL and UU are triangular, finding their in…

2.5

Exercise 7

Consider the matrix

  1. Find the LULU factorization of AA.

  2. What conditions on aa, bb, cc, and dd guarantee that AA is invertible?

2.5

Exercise 8

In the LULU factorization of a matrix, the diagonal entries of LL are all 11 while the diagonal entries of UU are not necessarily 11. This exercise will explore that observation by considering the matrix .

  1. Perform Gaussian elimination without partial pivoting to find UU, an upper triangular matrix that is row equivalent to AA.

  2. The diagonal entries of UU are called pivots. Explain why det⁡A\det A equals the product of t…

2.5

Exercise 9

Please provide a justification to your responses to these questions.

  1. In this section, our hypothetical computer could only store numbers using 3 decimal places. Most computers can store numbers using 15 or more decimal places. Why do we still need to be concerned about the accuracy of our computations when solving systems of linear equations?

  2. Finding the LULU factorization of a matrix AA is roughly the…

2.5

Exercise 10

Consider the matrix

  1. Find the LULU factorization of AA.

  2. Use the factorization to find a basis for Nul(A)\nul(A).

  3. We have seen that Nul(A)=Nul(U)\nul(A) = \nul(U). Is it true that Col(A)=Col(L)\col(A) = \col(L)?

2.5

Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.