







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








a 11 x 1 + a 12 x 2 + · · · + a 1 nxn = b 1 , a 21 x 1 + a 22 x 2 + · · · + a 2 nxn = b 2 , .. . am 1 x 1 + am 2 x 2 + · · · + amnxn = bm,
can be written as a matrix equation A X~ = ~b. Let A be the matrix of coefficients aij , let X~ be the column vector of variable names x 1 ,... , xn and let ~b be the column vector with components b 1 ,... , bn. Then
a 11 a 12 · · · a 1 n a 21 a 22 · · · a 2 n .. . am 1 am 2 · · · amn
x 1 x 2 .. . xn
a 11 x 1 + a 12 x 2 + · · · + a 1 nxn a 21 x 1 + a 22 x 2 + · · · + a 2 nxn .. . am 1 x 1 + am 2 x 2 + · · · + amnxn
b 1 b 2 .. . bn
Therefore, A X~ = ~b. Conversely, a matrix equation A X~ = ~b corresponds to a set of linear algebraic equations, because of reversible steps above.
A system of linear equations can be represented by its variable list x 1 , x 2 ,... , xn and its augmented matrix
a 11 a 12 · · · a 1 n b 1 a 21 a 22 · · · a 2 n b 2 .. . am 1 am 2 · · · amn bn
The augmented matrix is denoted aug(A,~b) when the system is given as A X~ = ~b. Given an augmented matrix and a variable list, the conversion back to a linear system of equations is made by expanding aug(A,~b)Y~ = 0 , where Y~ has components x 1 ,... , xn, −1. Because this expansion involves just dot products, it is possible to rapidly write out the linear system for a given augmented matrix. Hand work often contains the
5.2 Matrix Equations 267
following kind of exposition:
x 1 x 2 · · · xn
a 11 a 12 · · · a 1 n b 1 a 21 a 22 · · · a 2 n b 2 .. . am 1 am 2 · · · amn bn
In (2), a dot product is applied to the first n elements of each row, using the variable list written above the columns. The symbolic answer is set equal to the rightmost column’s entry, in order to recover the equations.
It is usual in homogeneous systems to not write the column of zeros, but to deal directly with A instead of aug(A, 0 ). This convention is justified by arguing that the rightmost column of zeros is unchanged by swap, multiply and combination rules, which are defined the next paragraph.
which produce equivalent systems can be translated directly to row op- erations on the augmented matrix for the system. The rules produce equivalent systems, that is, the three rules neither create nor destroy solutions.
Swap Two rows can be interchanged. Multiply A row can be multiplied by multiplier m 6 = 0. Combination A multiple of one row can be added to a different row.
low, symbol s stands for source, symbol t for target, symbol m for multiplier and symbol c for constant.
Swap swap(s,t) ≡ swap rows s and t. Multiply mult(t,m) ≡ multiply row t by m 6 = 0. Combination combo(s,t,c) ≡ add c times row s to row t 6 = s.
The standard for documentation is to write the notation next to the target row, which is the row to be changed. For swap operations, the notation is written next to the first row that was swapped, and option- ally next to both rows. The notation was developed from early maple notation for the corresponding operations swaprow, mulrow and addrow, appearing in the maple package linalg. In early versions of maple, an additional argument A is used to reference the matrix for which the ele- mentary row operation is to be applied. For instance, addrow(A,1,3,-5)
5.2 Matrix Equations 269
x 1 + 2x 2 + 3x 4 + 4x 5 + 5x 7 = 6 x 3 + 7x 4 + 8x 5 + 9x 7 = 10 x 6 + 11x 7 = 12 x 8 = 13
Observe that (3) is an rref and (4) is a reduced echelon system. The initial 4 columns of the 7 × 7 identity matrix I appear in natural order in matrix (3); the trailing 3 columns of I are absent.
If the rref of the augmented matrix has a leading one in the last col- umn, then the corresponding system of equations then has an equation “0 = 1” displayed, which signals an inconsistent system. It must be emphasized that an rref always exists, even if the corresponding equa- tions are inconsistent.
page 178) has an implementation for matrices that parallels the algo- rithm for equations, except that the algorithm never terminates upon inconsistency. Computer algebra systems and computer numerical lab- oratories use similar algorithms which produce exactly the same result. A row is called processed if it has been so marked, in which case either (1) the row is all zeros, or else (2) the row contains a leading one and all other entries in that column are zero. A row is unprocessed if it has not been marked as processed.
Move each unprocessed row of zeros to the last row using swap and mark it processed.
Identify an unprocessed nonzero row having the least leading ze- ros. Apply the multiply rule to insure a leading one. Apply the combination rule to make all other entries zero in that column. The number of leading ones (lead variables) has been increased by one and the current column is a column of the identity matrix.
All other unprocessed rows have leading zeros up to and including the leading one column. Apply the swap rule to move the row into the lowest position, so that all unprocessed rows and zero rows follow, and mark the row as processed, e.g., replace the leading one by 1.
The reduced row-echelon form of a matrix A is denoted rref (A). The algorithm to obtain it is called Gauss-Jordan elimination. Two ex- amples:
rref ( 0 ) = 0 In step 2, all rows of the zero matrix 0 are zero. No changes are made to the zero matrix. rref (I) = I In step 2, each row has a leading one. No changes are made to the identity matrix I.
steps applied to a system of equations is called a frame sequence. The viewpoint is that a camera is pointed over the shoulder of an assistant who writes the mathematics, and after the completion of each step, a photo is taken. The sequence of photo frames is the frame sequence. The First Frame is the original system and the Last Frame is the reduced row echelon system.
The same terminology applies for systems A~x = ~b represented by an augmented matrix C = aug(A,~b). The First Frame is C and the Last Frame is rref (C).
Steps in a frame sequence can be documented by the notation
swap(s,t), mult(t,m), combo(s,t,c),
each written next to the target row t. During the sequence, consecutive initial columns of the identity, called pivot columns, are created as steps toward the rref. Trailing columns of the identity might not appear. An illustration:
Frame 1:
Original augmented matrix.
Frame 2:
combo(1,2,-1) Pivot column 1 completed.
Frame 3:
swap(2,3)
without introducing fractions. Consider the two rows
25 0 1 0 5 7 0 2 0 2
The second row multiplied by −4 and added to the first row effectively replaces the 25 by −3, whereupon adding the first row twice to the second gives a leading one in the second row. The resulting rows are fraction-free. − 3 0 − 7 0 − 3 1 0 − 12 0 − 4
Rank and Nullity. What does it mean, if the first column of a rref is the zero vector? It means that the corresponding variable x 1 is a free variable. In fact, every column that does not contain a leading one corresponds to a free variable in the standard general solution of the system of equations. Symmetrically, each leading one identifies a pivot column and corresponds to a leading variable.
The number of leading ones is the rank of the matrix, denoted rank(A). The rank cannot exceed the row dimension nor the column dimension. The column count less the number of leading ones is the nullity of the matrix, denoted nullity(A). It equals the number of free variables.
Regardless of how matrix B arises, augmented or not, we have the rela- tion
variable count = rank(B) + nullity(B).
If B = aug(A,~b) for A X~ = ~b, then the variable count n comes from X~ and the column count of B is one more, or n + 1. Replacing the variable count by the column count can therefore lead to fundamental errors.
Inverses. An efficient method to find the inverse B of a square matrix A, should it happen to exist, is to form the augmented matrix C = aug(A, I) and then read off B as the package of the last n columns of rref (C). This method is based upon the equivalence
rref (aug(A, I)) = aug(I, B) if and only if AB = I.
The next theorem aids not only in establishing this equivalence but also in the practical matter of testing a candidate solution for the inverse matrix. The proof is delayed to page 277.
Theorem 6 (Inverse Test) If A and B are square matrices such that AB = I, then also BA = I. Therefore, only one of the equalities AB = I or BA = I is required to check an inverse.
Theorem 7 (The rref Inversion Method) Let A and B denote square matrices. Then
5.2 Matrix Equations 273
(a) If rref (aug(A, I)) = aug(I, B), then AB = BA = I and B is the inverse of A.
(b) If AB = BA = I, then rref (aug(A, I)) = aug(I, B).
(c) If rref (aug(A, I)) = aug(C, B) and C 6 = I, then A is not invertible.
The proof is delayed to page 277.
.
Define the first frame of the sequence to be C 1 = aug(C, I), then com- pute the frame sequence to rref(C) as follows.
First Frame
combo(3,2,-1)
mult(3,1/2)
combo(3,2,1)
combo(3,1,-1)
Last Frame
The theory implies that the inverse of A is the matrix in the right half of the last frame:
5.2 Matrix Equations 275
Frame 1, original matrix.
Frame 2, combo(1,2,-2).
Frame 3, mult(2,-1/6).
Frame 4, combo(1,3,-3).
Frame 5, combo(2,3,-6).
Frame 6, combo(2,1,-3). Found rref.
The corresponding 3 × 3 elementary matrices are
Frame 2, combo(1,2,-2) applied to^ I.
Frame 3, mult(2,-1/6) applied to I.
Frame 4, combo(1,3,-3) applied to I.
Frame 5, combo(2,3,-6) applied to^ I.
Frame 6, combo(2,1,-3) applied to I.
The frame sequence can be written as follows.
A 2 = E 1 A 1 Frame 2, E 1 equals combo(1,2,-2) on I.
A 3 = E 2 A 2 Frame 3, E 2 equals mult(2,-1/6) on I. A 4 = E 3 A 3 Frame 4, E 3 equals combo(1,3,-3) on I. A 5 = E 4 A 4 Frame 5, E 4 equals combo(2,3,-6) on I. A 6 = E 5 A 5 Frame 6, E 5 equals combo(2,1,-3) on I. A 6 = E 5 E 4 E 3 E 2 E 1 A 1 Summary, frames 1-6. This relation is rref (A 1 ) = E 5 E 4 E 3 E 2 E 1 A 1 , which is the result of the Theorem. The summary is the equation
rref (A 1 ) =
A 1
The inverse relationship A 1 = E− 1 1 E− 2 1 E− 3 1 E− 4 1 E− 5 1 rref (A 1 ) is formed by the rules for constructing E−^1 from elementary matrix E, page 274, the result being
rref^ (A 1 )
1 Example (Reduced Row–Echelon Form) Find the reduced row–echelon form of the coefficient matrix A using the rref method, page 269. Then solve the system.
x 1 + 2 x 2 − x 3 + x 4 = 0 , x 1 + 3 x 2 − x 3 + 2 x 4 = 0 , x 2 + x 4 = 0.
Solution: The coefficient matrix A and its rref are given by (details below)
A =
1 2 − 1 1 1 3 − 1 2 0 1 0 1
(^) , rref (A) =
1 0 − 1 − 1 0 1 0 1 0 0 0 0
(^).
Using variable list x 1 , x 2 , x 2 , x 4 , the equivalent reduced echelon system is
x 1 − x 3 − x 4 = 0 , x 2 + x 4 = 0 , which has standard general solution x 1 = t 1 + t 2 , x 2 = −t 2 , x 3 = t 1 , x 4 = t 2 , −∞ < t 1 , t 2 < ∞. Details of the rref method.
0 1 3 0 0 0 0 0 1 0 0 0 0 0 0
0 1 0 0 0 0 0 1 0 3 0 0 0 1 2
0 1 3 0 0 0 0 1 0 0 0 0
1 2 3 0 0 0 0 1 0 0 0 0
1 2 3 0 0 0 0 0 0 0 0 0
1 1 0 0 0 1 0 0 0
1 1 3 5 0 0 0 0 0 1 0 0 0 0 0
1 2 0 3 4 0 0 1 1 1 0 0 0 0 0
0 0 1 2 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 5 0 0 0 1 2 0 0 0 0 0 1 0 0 0 0 0
1 0 3 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0
assume a homogeneous system A X~ = ~ 0 with variable list x 1 ,... , xn. List the lead variables and the free variables. Then report the values of rank(A) and nullity(A).
0 0 1 0 5 0 0 0 1 4 0 0 0 0 0 0 0 0 0 0
bols combo, swap and mult as fol- lows: (a) The symbol combo(i, j, c) docu- ments the addition of c times source row i to target row j of matrix A. (b) The symbol swap(i, j) documents the interchange of row i and row j of matrix A. (c) The symbol mult(i, m) documents the multiplication of row i of matrix A. by constant m 6 = 0.