Asset-V1 VIT+BMT1005+2020+type@asset+block@week 1 Script - Intro Types Operations On Matrices
Asset-V1 VIT+BMT1005+2020+type@asset+block@week 1 Script - Intro Types Operations On Matrices
3000 4000
2876 3860
4899 2600
In this arrangement, the numbers in the first row represents the sales of first branch, second
row represents the sales of second branch and third row represents the sales of third branch.
What is Matrix?
Matrix is an arrangement of numbers in horizontal rows (m) and vertical columns (n)
enclosed around square brackets [ ] (or) curved brackets ( ) and it is denoted by a capital letter
A.
Here i in aij represents row index; i lies between 1 to m represents that, we can have a matrix
minimum with one row and maximum with m number or rows.
j in aij represents column index; j lies between 1 to n denotes that we can have a matrix
minimum with one column and maximum with n number or columns.
Number of rows by number of columns of a matrix called as dimension where dimension also
called as order. Always we represent a matrix by its dimension (or) order.
So, order of matrix A is m by n (or) it can be written a m n
Total number of elements in a matrix are equal to the product of its rows and columns.
3 2
Find the order of matrix A 0 1
2 4
Let we have a matrix A with elements 1, 2 in first row, 0, -1 in second row, 2, 4 in third row
then the order of matrix A is. So, we have 3 rows and 2 columns in matrix A. Therefore, the
order: 3 2 ; number of elements = 6.
What are the types of matrices?
Matrices are categorized on the basis of their order, elements and certain other conditions. Now
we can discuss the types of matrices
Row matrix: A matrix is said to be a row matrix if it has only one row but any number
of columns.
In general, A aij
1 n
Column matrix: A matrix is said to be a column matrix if it has only one column but
any number of rows.
2
0
For Example: A
3
4 41
In general, A aij
m1
Square matrix: A matrix is said to be a square matrix if the number of rows is equal
to the number of columns.
3 0 2
For Example: A 2 1 4
6 7 8 33
Diagonal matrix: A square matrix A aij is said to be a diagonal matrix if all its
mm
non-diagonal elements are zero.
3 0 0
For Example: A 0 1 0
0 0 8 33
Scalar matrix: A diagonal matrix is said to be a scalar matrix if all of its diagonal
elements are same.
3 0 0
For Example: A 0 3 0
0 0 3 33
Unit (or) Identity matrix: A diagonal matrix is said to be a unit (or) identity matrix if
all of its diagonal elements are equal to one.
1 0 0
For Example: A 0 1 0
0 0 1 33
aij 1 when i j
Null (or) Zero matrix: A matrix is said to be a null (or) zero matrix if all of its elements
are equal to zero.
0 0 0
For Example: A 0 0 0
0 0 0 33
1 2 3
For Example: A 0 4 5
0 0 6 33
Lower triangular matrix: A square matrix is said to be a lower triangular matrix if all
the elements above the diagonal are zero.
1 0 0
For Example: A 2 4 0
3 5 6 33
1 4
1 A 2 5
2 3 T
For Example: If A then
2 5 6 23
3 6 32
then A aij
T
In general, If A aij
mn nm
That is, if A [aij ]mn and B [bij ]mn then A B if and only if aij bij
4 14 4 14
1. Is the given matrices A and B are equal?
6 2 6 2
Yes they are equal.
Given matrices A and B satisfies the conditions of equality of matrices.
Both A and B are of the same order.
The elements in the corresponding places of the two matrices A and B are the same.
1 1 1 1 1
Whether the matrices A and B are equal?
1 1 1 1 1
No, they are not equal.
Because the order of A and B are not same.
a b 2a c 1 15
If then the values of a, b, c and d equal to ………………
2a b 3c d 0 13
a b 1 (1)
2a c 15 (2)
2a b 0 (3)
3c d 13 (4)
Solve equation (1) and (3), we get a 1
Substitute a 1 in equation (1) and (2), we get b 2 , c 13
Substitute c 13 in equation (4), we get d 26
Symmetric matrix
A square matrix A [aij ] is said to be symmetric if its (i, j )th element is the same as its ( j, i)th
element.
That is, aij a ji for all i and j
1 2 1
Is the given matrix A 2 3 1 is symmetric matrix?
1 1 4
6 5 4
Is the given matrix X 5 5 1 is symmetric matrix?
4 3 3
That is, X T X
Skew-symmetric matrix
A square matrix A aij is said to be skew- symmetric if the (i, j )th element of A is the
Hence all the elements in the main diagonal of a skew-symmetric matrix is zero.
0 1 2
Is the given matrix A 1 0 3 is a skew-symmetric matrix?
2 3 0
That is, AT A
0 10 8
Is the given matrix X 10 0 2 is skew-symmetric?
8 2 0
Because X12 X 21
Trace of a matrix
Let A be a square matrix of order n. The sum of the elements of A lying along the principal
diagonal is called trace of A.
n
That is, trace (A) = aii a11 a22 ... ann
i 1
1 2 2 1
4 3 2 1
If A then trace of matrix A is
2 1 4 1
1 3 2 4
Trace of A = 1+3+4+4 = 12
Let us now focus on how to perform the basic operation on matrices with matrix addition,
subtraction and multiplication
Addition of matrix: If A aij and B bij are two matrices then their sum
m n mn
A B aij bij .
mn
**Two or more matrices can be added if and only if they have the same number of rows and
columns.
** Addition of two or more matrices is obtained by adding the corresponding entries in
matrices.
(Two matrices A aij and B bij can be added if and only if they have the same
m n mn
number of rows and columns. If the additions matrix is named as matrix C, then dimension of
matrix C will be same to the dimension of A and B. That is aij bij [cij ]mn
mn
Matrix C is obtained by adding the corresponding entries in matrices A and B.
Addition of matrices is not defined for matrices of different sizes).
Example
5 6 7 1 2
1. If A and B is A B defined?
8 9 10 23 3 4 22
A B can not be defined as the order of matrices A and B are not same.
1 2 5 6
2. If A and B 7 8 is A B defined, if so A B ?
3 4 22 22
A B can be defined as the order of matrices A and B are same.
A B can be calculated by adding the elements of A to the corresponding elements of
B.
1 5 2 6 6 8
A B .
3 7 4 8 10 12
Subtraction of matrix: If A aij and B bij are two matrices then their
mn mn
difference A B aij bij .
mn
**Two or more matrices are subtracted if and only if they have the same number of rows and
columns.
** Subtraction of two or more matrices is obtained by subtracting the corresponding entries in
matrices.
Example
1 4 2 3
Let A and B 6 8 is A B defined if so, find A B .
7 4 22 22
1 2 4 3 1 1
A B .
7 6 4 8 1 4
Multiplication of Matrices: There are two forms of multiplication: scalar multiplication
and multiplication of a matrix by another matrix.
Multiplication of two matrices exist only when the number of columns in A is equal
to the number of rows in B.
1 0 2 3
find (i) 2 A 3B (ii) B 2 A
'
3. Let A &B
4 3 1 6
2 0 6 9 4 9
2 A 3B
8 6 3 18 5 24
2 3 2 8 4 5
(ii ) B 2 A'
1 6 0 6 1 0