Elementary Row Operations
Elementary Row Operations
FORM OF A MATRIX—DEFINITIONS
Definitions:
Two matrices are said to be row-equivalent if one can be obtained from the other by a sequence
(order may vary) of elementary row operations given below.
• Interchanging two rows
• Multiplying a row by a non zero constant
• Adding a multiple of a row to another row
Augmented Matrix
A matrix derived from a system of linear equations is called the augmented matrix of the system.
⎡1 3 2 ⎤
A = ⎢⎢2 4 2 ⎥⎥
⎢⎣1 2 − 1⎥⎦
First, set up the matrix [A:I]: (Remember, the goal is [I:A-1])
⎡1 3 2 1 0 0 ⎤
⎢ ⎥
⎢ 2 4 2 0 1 0⎥
⎢⎣1 2 − 1 0 0 1⎥⎦
⎡1 3 2 1 0 0⎤
⎢ ⎥
⎢0 − 2 − 2 − 2 1 0 ⎥ (-2)R1 + R 2 → R 2
⎢⎣0 − 1 − 3 − 1 0 1⎥⎦ (− 1)R1 + R3 → R3
Now multiply row 2 by -1/2 to obtain a 1 in column 2:
⎡1 3 2 1 0 0⎤
⎢ ⎥ ⎛ 1⎞
⎢0 1 1 1 − 1 0 ⎜ − ⎟R2 → R2
2 ⎥ ⎝ 2⎠
⎢⎣0 − 1 − 3 − 1 0 1⎥⎦
Next, get zeros in the second column:
⎡1 0 − 1 − 2 3 2 0⎤ (- 3)R2 + R1 → R1
⎢ ⎥
⎢0 1 1 1 − 1 2 0⎥
⎢⎣0 0 − 2 0 − 1 2 1⎥⎦ R2 + R3 → R3
Now Multiply row 3 by -1/2 to obtain a 1 in column 3:
⎡1 0 − 1 − 2 3 / 2 0 ⎤
⎢ ⎥ ⎛ 1⎞
⎢0 1 1 1 − 1 / 2 0 ⎥ ⎜ − ⎟ R 3 → R3
⎝ 2⎠
⎢⎣0 0 1 0 1 / 4 − 1 / 2⎥⎦
Finally, get zeros in the third column:
⎡1 0 0 − 2 7 / 4 − 1 / 2⎤ R1 + R3 → R1
⎢ ⎥
⎢0 1 0 1 − 3 / 4 1 / 2 ⎥ (-1)R3 + R 2 → R 2
⎢⎣0 0 1 0 1 / 4 − 1 / 2⎥⎦
The left side of the above matrix is the identity matrix and the matrix on the right is the inverse
of the given matrix A. Thus,
⎡− 2 7 / 4 − 1 / 2⎤
A = ⎢⎢ 1 − 3 / 4 1 / 2 ⎥⎥
−1
⎢⎣ 0 1 / 4 − 1 / 2⎥⎦