Back to Computation with Sage

Activity 1.3.2

Avg difficulty 2.5
  1. Enter the following matrix into Sage. [−1−22−124−151203]\left[ \begin{array}{rrrr} -1 & -2 & 2 & -1 \\ 2 & 4 & -1 & 5 \\ 1 & 2 & 0 & 3 \end{array} \right]

  2. Give the matrix the name AA by entering

    A = matrix( ..., ..., [ ... ])
    	      

    We may then find its reduced row echelon form by entering

    A = matrix( ..., ..., [ ... ])
    A.rref()
    	      

    A common mistake is to forget the parentheses after rref.

    Use Sage to find the reduced row echelon form of the matrix from this item of this activity.

  3. Use Sage to describe the solution space of the system of linear equations −x1+2x4=43x2+x3+2x4=34x1−3x2+x4=142x2+2x3+x4=1\begin{alignedat}{5} -x_1 & & & & & {}+{} & 2x_4 & {}={} & 4 \\ & & 3x_2 & {}+{} & x_3 & {}+{} & 2x_4 & {}={} & 3 \\ 4x_1 & {}-{} & 3x_2 & & & {}+{} & x_4 & {}={} & 14 \\ & & 2x_2 & {}+{} & 2x_3 & {}+{} & x_4 & {}={} & 1 \\ \end{alignedat}

  4. Consider the two matrices: A=[1−21−3−2411−48−17]B=[1−21−303−24111−1−48−1732]\begin{array}{rcl} A & = & \left[ \begin{array}{rrrr} 1 & -2 & 1 & -3 \\ -2 & 4 & 1 & 1 \\ -4 & 8 & -1 & 7 \\ \end{array}\right] \\ B & = & \left[ \begin{array}{rrrrrr} 1 & -2 & 1 & -3 & 0 & 3 \\ -2 & 4 & 1 & 1 & 1 & -1 \\ -4 & 8 & -1 & 7 & 3 & 2 \\ \end{array}\right] \\ \end{array} We say that BB is an augmentation of AA because it is obtained from AA by adding some more columns.

    Using Sage, define the matrices and compare their reduced row echelon forms. What do you notice about the relationship between the two reduced row echelon forms?

  5. Using the system of equations in this item, write the augmented matrix corresponding to the system of equations. What did you find for the reduced row echelon form of the augmented matrix?

    Now write the coefficient matrix of this system of equations. What does this item of this activity tell you about its reduced row echelon form?

Austin, Understanding Linear Algebra, §1.3 Computation with Sage, Activity 1.3.2

AI Tutor

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