Matrix
Matrix
Matrix
1 4 7
A= 2 5 8 rows – horizontal lines
3 6 9
Type of Matrices
1.) Square matrix- matrix in which the number of rows equals the number of columns.
1 0 2
A= 0 4 5
3 7 9
2.) Identity matrix- square matrix which the diagonal elements are “one” and all off
1 0 0
A= 0 1 0 (important in Gaussian & Gauss Jordan elimination)
0 0 1
3.) Row matrix- matrix having only row and “n” columns.
A= { 1 2 3 }
1
A= 2
3
5.) Diagonal matrix- square matrix which every term off main diagonal is “zero”.
3 0 0
A= 0 1 0
0 0 2
6.) Scalar matrix- square matrix for which all terms on the main diagonal are equal.
3 3 0
A= 7 3 2
5 0 3
7.) Zero or Null matrix- matrix whose elements are equal to zero.
A= { 0 0 0 }
8.) Triangular matrix- square matrix whose elements above of below the principal
4 1 2 5 0 0
A= 0 3 5 A= 8 2 0
0 0 8 9 3 4
1 2 3 1 4 7
A= 4 5 6 A T= 2 5 8
7 6 9 3 6 9
- 2 matrices A and B can be added or subtracted if they are of same order. The
1 2 0−3 −1 0 4 5
A= 4 5 71 B= 1 2 −3 4
3 2 10 0 5 6 7
0 2 4 2 2 2 −4 −8
A+B= 5 7 4 5 A-B= 3 3 10 −3
3 7 7 7 3 −3 −5 −7
Since only matrices of the same size can be added, only the sum F + H is defined
3 6 7 2 1
A= 4 −3 8 B= 3 2
5 4 −7 5 3
( 3x2 ) product
• Matrix B
• Matrix E
4 0 5
D= −1 2 3 (-1)rxc positioning
3 1 2
2 3 0 5 0 5
D = 4 (-1)1+1( ) + (-1)(-1)2+1( ) + 3(-1)3+1( )
1 2 1 2 2 3
D= -31
2 3 7 9
3 𝟏 8 0
−5 2 3 5
6 −4 5 − 6
−7 −17 9
D= −11 −13 5 = - 1216
18 37 −6
5 2 3 4 5 1 3 4
D= 2 2 4 3 = 2(-1)2+2 2 1 4 3
3 3 5 8 3 3/2 5 8
0 6 7 7 0 3 7 7
3 4 2
A= 6 -5 3
2 3 -6
|A| = 287
2.) AT = 4 -5 3 R2
2 3 -6 R3
+ - +
3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=1
-x +y -2z +2w = 1
3x + 2y -4z –w = -8
-2x + 5y +z + 4w = 12
A. Cramer’s rule