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
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
Show that this system has the unique solution
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.
Let's imagine that we use our computer to f…
Activity 5.1.3
We will consider the matrix and begin performing Gaussian elimination without using partial pivoting.
Perform two row replacement operations to find the row equivalent matrix Find elementary matrices and that perform these two operations so that .
Perform a third row replacement to find the upper triangular matrix Find the elementary matrix such that .
We can write . Find the inverse matr…
Activity 5.1.4
Sage will create factorizations; once we have a matrix A, we write P, L, U = A.LU() to obtain the matrices , , and such that .
In this example, we found the factorization Using Sage, define the matrix , and then ask Sage for the factorization. What are the matrices , , and ?
Notice that Sage finds a different factorization than we found in the previous example because Sage uses par…
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
Find the exact solution to the equation .
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…
Exercise 2
In this section, we found the 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 that is row equivalent to .
Exercise 3
In the following exercises, use the given factorizations to solve the equations .
Solve the equation
Solve the equation
Exercise 4
Use Sage to solve the following equation by finding an factorization: .
Exercise 5
Here is another problem with approximate computer arithmetic that we will encounter in the next section. Consider the matrix
Notice that this is a positive stochastic matrix. What do we know about the eigenvalues of this matrix?
Use Sage to define the matrix using decimals such as
0.2and the identity matrix . Ask Sage to compute and find the reduced row echelon form of .Why is the computat…
Exercise 6
In practice, one rarely finds the inverse of a matrix . It requires considerable effort to compute, and we can solve any equation of the form using an factorization, which means that the inverse isn't necessary. In any case, the best way to compute an inverse is using an factorization, as this exercise demonstrates.
Suppose that . Explain why .
Since and are triangular, finding their in…
Exercise 7
Consider the matrix
Find the factorization of .
What conditions on , , , and guarantee that is invertible?
Exercise 8
In the factorization of a matrix, the diagonal entries of are all while the diagonal entries of are not necessarily . This exercise will explore that observation by considering the matrix .
Perform Gaussian elimination without partial pivoting to find , an upper triangular matrix that is row equivalent to .
The diagonal entries of are called pivots. Explain why equals the product of t…
Exercise 9
Please provide a justification to your responses to these questions.
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?
Finding the factorization of a matrix is roughly the…
Exercise 10
Consider the matrix
Find the factorization of .
Use the factorization to find a basis for .
We have seen that . Is it true that ?
Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.