Professional Documents
Culture Documents
Elementary operators
Each type of elementary operation may be performed by matrix multiplication, using square matrices
called elementary operators.
To perform an elementary row operation on a A, an n×m matrix, take the following steps:
To find E, the elementary row operator, apply the operation to an n×n identity matrix.
To carry out the elementary row operation, premultiply A by E.
Illustrate this process for each of the three types of elementary row operations.
Suppose we want to interchange the first and second rows of A, a 3×2 matrix. To create the elementary row
operator E, we interchange the first and second rows of the identity matrix I3:
100010001 ⇒ 010100001
I3 E
Then, to interchange the first and second rows of A, we premultiply A by E (R1 ↔ R2):
0·4 + 1·6 + 0·20·2 + 1·7 + 0·41·4 + 0·6 + 0·21·2 + 0·7 + 0·40·4 + 0·6 +
010100001 426724 = = 674224
1·20·2 + 0·7 + 1·4
E A B
Suppose we want to multiply each element in the third row of Matrix A by 3. Assume A is a 3×2 matrix. To
create the elementary row operator E, we multiply each element in the third row of the identity matrix I3 by 3:
100010001 ⇒ 100010003
I3 E
Then, to multiply each element in the third row of A by 3, we premultiply A by E (3 R3 → R3):
1·4 + 0·6 + 0·21·2 + 0·7 + 0·40·4 + 1·6 + 0·20·2 + 1·7 + 0·40·4 + 0·6 +
100010003 426724 = = 4267612
3·20·2 + 0·7 + 3·4
E A B
If we want to divide each element in some row of matrix by number n we must multiply each element of this
row by 1n.
To perform an elementary column operation on a A, an n×m matrix, take the following steps:
To find E, the elementary column operator, apply the operation to an m×m identity matrix.
To carry out the elementary column operation, postmultiply A by E.
Example 1.
Use elementary row operations to convert matrix A to the upper triangular matrix
4 2 0
A = 1 3 2
-1 3 10
Solution:
R1 ↔ R2 (interchange the first and second rows)
4 2 0 1 3 2
1 3 2 ~ 4 2 0 ~
-1 3 10 -1 3 10
1. Finding that a matrix is non-singular you can use the syntax A^-1 or inv (A) where A is any n x n
matrix.
2. To solve a linear system using inverse you can use the syntax x = inv(A) *b
where A is the coefficient of the linear system form into matrix A , b is the constant in the linear system form
into a matrix.
3. To solve a linear system using Gauss-Jordan or Gaussian elimination you can use the syntax rref
([A b]). Concatenated the matrix A and b , where A is the coefficient of the linear system form into
matrix A , b is the constant in the linear system form into a matrix.
4. To Solve a linear system using LU- factorization use the following syntax