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 partial pivoting, as described in the previous section, when it performs Gaussian elimination.
Define the vector in Sage and compute .
Use the matrices
LandUto solve and . You should find the same solution that we found in the previous example.Use the factorization to solve the equation .
How does the factorization show us that is invertible and that, therefore, every equation has a unique solution?
Suppose that we have the matrix . Use Sage to find the factorization. Explain how the factorization shows that is not invertible.
Consider the matrix and find its factorization. Explain why and have the same null space and use this observation to find a basis for .
Austin, Understanding Linear Algebra, §5.1 Gaussian elimination revisited, Activity 5.1.4