1_Introduction of Matrices
1_Introduction of Matrices
Matrices
Importance of Matrices
Mathematics is fundamental to natural science. Its content is extensive and profound, and
the matrix is an important part of mathematics. Matrix is a tool of abstract algebra which
have a wide range of application in computer science for organization of data and analyzing
different data progressions. The matrix are used in Image processing, computer graphics,
encryption and decryption of the codes etc., and early cryptographic techniques, such as the
Hill code, and a part of that it is more widely used, in computer image processing, 3D
animation production, text mining and its' inverted index technology.
Definition of Matrix
A matrix is the array of the numbers in the form of row and column and denoted by a
capital letter and the elements belongs to the matrix defined as aij.
e.g., matrix [A] with elements aij
Matrix Order =Number of Rows * Number of Column= m*n
and
0 3 5 2
1*4
Types of Matrices
3.Rectangular matrix
Contains more than one element and number of rows is not equal to the
number of columns
Examples
1 1
3 7 1 1 1 0 0
2 0 3 3 0
7 − 7
2*5
7 6
4*2 mn
Types of Matrices
4. Square matrix
The number of rows is equal to the number of columns i.e., m=n
Examples
1 1 1 1 1
9 9 0
3 0
2*2
and
6 6 1
3*3
Types of Matrices
5. Diagonal matrix
A square matrix where all the elements are zero except those on the main
diagonal i.e., aij =0 for all i ≠ j
aij ≠ 0 for some or all i = j
Examples
1 0 0 and 3 0 0 0
0 2 0 0
3 0 0
0 0 1 0 0 5 0
3*3
0 0 0 9 4*4
Types of Matrices
1 0 0 0
0
1 0 0
and
1 0
0 1
0 0 1 0 2*2
0 0 0 1
4*4
7. Scalar matrix
A diagonal matrix whose main diagonal elements are equal to the same scalar
A scalar is defined as a single number or constant i.e. aij =0 for all i ≠ j
aij = scalar(k) for some or all i = j
Examples
6 0 0 0
0
6 0 0
and
1 0
0 1
0 0 6 0 2*2
0 0 0 6
4*4
Types of Matrices
Examples
0 0 0 0
0 and 0 0 0
0 0 0 0
3*1 3*3
Types of Matrices
9. Triangular matrix
A square matrix whose elements above or below the main diagonal are all zero
Examples
1 0 0 1 0 0 1 8 9
2 1 0 and 2 1 0 0 1 6
5 2 3 5 2 3 0 0 3
3*3 3*3 3*3
Types of Matrices
Examples
1 7 4 4
1 8 7 1 8 9 0
0 1 8 and 1 7 4
0 1 6
0 0 7 8
0 0 3 3*3 0 0 3
3*3 0 0 0 3 4*4
Types of Matrices
Examples
1 0 0 1 0 0
2 1 0 and 2 1 0
5 2 3 3*3 5 2 3
3*3
Matrix Operations
EQUALITY OF MATRICES
Two matrices are said to be equal only when all corresponding elements are equal, and
order of the matrices is same.
Examples
1 0 0 1 0 0
2 1 0 2 1 0
and
5 2 3 5 2 3
3*3 3*3
Matrix Operations
Examples
7 3 − 1 1 5 6 8 8 5
2 − 5 6 + − 4 − 2 3 = − 2 − 7 9
2*3 2*3 2*3
Practice Problems
Q1.What is the difference between the unit matrix , diagonal matrix and scalar matrix
explain with examples
1 −2 3 −5 0 −2
Q2.𝐸𝑣𝑎𝑙𝑢𝑎𝑡𝑒 𝐴 + 𝐵 𝑎𝑛𝑑 𝐴 − 𝐵 𝑤ℎ𝑒𝑟𝑒 = 0 5 −7 𝑎𝑛𝑑 𝐵 = 3 2 −1
2 −4 3 −2 −4 −7
2 2 3 −2
Q. 3 𝐶𝑜𝑚𝑝𝑢𝑡𝑒 𝑡ℎ𝑒 𝑅 + 𝑆 𝑎𝑛𝑑 𝑅 − 𝑆 𝑤ℎ𝑒𝑟𝑒 𝑅 = −3 −5 𝑎𝑛𝑑 𝑆 = 4 −5
−5 8 6 −2