202005062149153831P Matrics
202005062149153831P Matrics
INTRODUCTION
Dr. Pragya Mishra
Assistant Professor
Department of Mathematics
Pt. Deen Dayal Upadhaya Govt. Girl’s P. G. College
Lucknow
Dr. Vimlesh
Assistant Professor
Department of Mathematics & Statistics,
Sri Ram Swaroop Memorial University,
Lucknow –Deva Road, Barabanki
MATRICES INTRODUCTION
Matrix algebra has at least two advantages:
•Reduces complicated systems of equations to simple expressions.
•Adaptable to systematic method of mathematical treatment and well
suited to computers.
APPLICATIONS OF MATRICES
Matrices have many applications in diverse fields of science, commerce
and social science. Matrices are used in
a) Computer graphics
b) Optics
c) Cryptography
d) Economics
e) Geology
f) Robotics and Animation
g) Wireless communication and Signal Processing
DEFINITION:
A matrix is a set or group of numbers arranged in
a square or rectangular array enclosed by two
brackets
4 2 a b
1 1 3 0 c d
PROPERTIES:
• A specified number of rows and a specified
number of columns
• Two numbers (rows x columns) describe the
dimensions or size of the matrix or we say order
of the matrix.
EXAMPLES:
1 2 4
4 1 5 1 1 3 3
1 1
3x3 matrix
2x4 matrix
1x2 matrix 3 3 3 0 0 3 2
A matrix is denoted by a bold capital letter and the
elements within the matrix are denoted by lower case
letters
e.g. matrix [A] with elements aij of order mn
i goes from 1 to m am1 am 2 aij amn
j goes from 1 to n
TYPES OF MATRICES
1. COLUMN MATRIX OR VECTOR:
The number of rows may be any integer but the number of columns is always 1
and order is 1 n
1
a11
1 a21
4
3
2
am1
4. SQUARE MATRIX
The number of rows is equal to the number of columns (a square matrix A
has an order of m x m)
1 3 1
1 1 5 9 0
3 0
8 6 1
1 0 aij 0 1
0
0 0 0
0 a 1 0 0
0 1 ij
0
0 1 0
0 0 0 1
0 0 0 0
0 0 0 0
0 0 0 0
8. TRIANGULAR MATRIX
A square matrix whose elements above or below the main diagonal are all zero.
1 0 0 1 0 0 1 8 9
2 1 0 2 1 0 0 1 6
5 2 3 5 2 3 0 0 3
aij 0 0 1 0 0
2 1 0
aij aij 0
aij aij
aij 5 2 3
9. 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 = a for all i = j
6 0 0 0
aij 0 0 1 0 0 0 6 0 0
0 1 0
0 aij 0
0 0 aij 0 0 6 0
0 0 1
0 0 0 6
10. SUB MATRIX
A matrix which is obtained from a given matrix by deleting any number of rows
or columns is called a sub matrix of the given matrix.
1 2 3 1 2
A 2 3 4
1 2 3
Then sub matrices of A are 2 3 2 3 4
5 6 7
5 6
MATRICES
MATRIX OPERATIONS
MATRICES - OPERATIONS
EQUALITY OF MATRICES
Two matrices are said to be equal only when all corresponding elements are
equal.
Therefore their size or dimensions are equal as well.
1 0 0 1 0 0
A 2 1 0 B 2 1 0 A=B
5 2 3 5 2 3
ASSOCIATIVE LAW:
A + (B + C) = (A + B) + C = A + B + C
3 1 3 1 12 4
2 1 2 1 8 4
4 4
2 3 2 3 8 12
4 1 4 1 16 4
PROPERTIES:
• k (A + B) = kA + kB
• (k + g)A = kA + gA
• k(AB) = (kA)B = A(k)B
• k(gA) = (kg)A
MULTIPLICATION OF MATRICES
The product of two matrices is another matrix
Two matrices A and B must be conformable for multiplication if the number
of columns of A must equal the number of rows of B
Example. A x B = C
(1x3) (3x1) (1x1)
B x A = Not possible!
(2x1) (4x2)
A x B = Not possible
(6x2) (6x3)
Example A x B = C
(2x3) (3x2) (2x2)
b11 b12
a11 a12 a13 c11 c12
a b22
c22
b21
21 a22 a 23
b32 c21
b31
31 21
63 57
REMEMBER ALSO:
IA = A
1 0 31 21 31 21
0 1 63 57
63 57
PROPERTIES OF MATRIX MULTIPLICATION
Assuming that matrices A, B and C are conformable for the operations
indicated, the following are true:
1. AI = IA = A - (existence of multiplicative identity)
2. A(BC) = (AB)C = ABC - (associative law)
3. A(B+C) = AB + AC - (first distributive law)
4. (A+B)C = AC + BC - (second distributive law)
Caution!
1. AB not generally equal to BA, BA may not be conformable
2. If AB = 0, neither A nor B necessarily = 0
3. If AB = AC, B not necessarily = C
MATRICES - OPERATIONS
AB not generally equal to BA, BA may not be conformable
1 2
T
5 0
3 4
S
0 2
1 2 3 4 3 8
TS
5 0 0 2 15 20
3 4 1 2 23 6
ST
0 2 5 0 10 0
ZERO DIVISOR
If A and B are non zero matrices such that AB = 0, neither A nor
B necessarily equal to zero , then A and B are called Divisor of
zero.
1 1 2 3 0 0
0 0 2 3 0 0
2 4 7
3
A23 2 A
5 3 1 23
2 5
T
A 4 3
7 1 32
aij a T
ji For all i and j
Properties of transposed matrices:
1. (A+B)T = AT + BT
2. (AB)T = BT AT
3. (kA)T = kAT
4. (AT)T = A
Orthogonal matrix:
A square matrix A with the property 𝑨𝑻 𝑨 = 𝑰 is orthogonal
matrix.
Now 𝑨𝑻 𝑨 = 𝑰
𝑨𝑻 𝑨 = 𝟏
𝑨𝟐=𝟏
𝑨 = ±𝟏 Thus value of determinany of orthogonal matrix is
either 1 or -1.
PROPERTIES OF TRANSPOSE
1. (A+B)T = AT + BT
7 3 1 1 5 6 8 8 5 8 2
2 5 6 4 2 3 2 7 9 8 7
5 9
7 2 1 4 8 2
3 5 5 2 8 7
1 6 6 3 5 9
TRANSPOSE OF MATRIX
(AB)T = BT AT
1
1 1 0 2
0 2 3 1 8 2 8
2
1 0
1 1 21 2 2 8
0 3
SYMMETRIC MATRICES
a b
A
c d
a c
A
T
b d
The identity matrix, I, a diagonal matrix D, and a scalar matrix, K,
are equal to their transpose since the diagonal is unaffected.
INVERSE OF A MATRIX
( AB ) 1 B 1 A1
1 1
(A ) A
T 1 1 T
(A ) (A )
1 1
1
(kA) A
k
A square matrix that has an inverse is called a nonsingular matrix
A matrix that does not have an inverse is called a singular matrix
Square matrices have inverses except when the determinant is zero
When the determinant of a matrix is zero the matrix is singular
DETERMINANT OF A MATRIX
If 1 2
A
6 5
1 2
A
6 5
then
MATRICES - OPERATIONS
If A = [A] is a single element (1x1), then the determinant is
defined as the value of the element
Then |A| =det A = a11
If A is (n x n), its determinant may be defined in terms of order
(n-1) or less.
MATRICES - OPERATIONS
MINORS
If A is an n x n matrix and one row and one column are deleted,
the resulting matrix is an (n-1) x (n-1) submatrix of A.
The determinant of such a submatrix is called a minor of A and
is designated by mij , where i and j correspond to the deleted
row and column, respectively.
mij is the minor of the element aij in A.
MATRICES - OPERATIONS
eg.
a11 a12 a13
A a21 a22 a23
a31 a32 a33
Each element in A has a minor
Delete first row and column from A .
The determinant of the remaining 2 x 2 submatrix is the minor
of a11
a22 a23
m11
a32 a33
MATRICES - OPERATIONS
a21 a23
m12
a31 a33
And the minor for a13 is:
a21 a22
m13
a31 a32
MATRICES - OPERATIONS
COFACTORS
When the sum of a row number i and column j is even, cij = mij and
when i+j is odd, cij =-mij
c11(i 1, j 1) (1)11 m11 m11
1 2
c12 (i 1, j 2) (1) m12 m12
1 3
c13 (i 1, j 3) (1) m13 m13
MATRICES - OPERATIONS
DETERMINANTS CONTINUED
Example 2:
1 0 1
A 0 2 3
1 0 1
Example:
1 2
If A
3 4
4 3
The cofactor C of A is C
2 1
MATRICES - OPERATIONS
The adjoint matrix of A, denoted by adj A, is the transpose of its
cofactor matrix
adjA C T
Example:
1 2
A
3 4
A (1)(4) (2)(3) 10
4 2
adjA C T
3 1
MATRICES - OPERATIONS
1 2 4 2 10 0
A(adjA) 10 I
3 4 3 1 0 10
4 2 1 2 10 0
(adjA) A 10 I
3 1 3 4 0 10
MATRICES - OPERATIONS
USING THE ADJOINT MATRIX IN MATRIX INVERSION
Since
AA-1 = A-1 A = I
and
A(adj A) = (adjA) A = |A| I
then
1adjA
A
A
MATRICES - OPERATIONS
Example
1 2
A= 3 4
1 1 4 2 0.4 0.2
A
10 3 1 0.3 0.1
so
1 1 1
adjA C T 2 4 2
3 7 5
and
1 1 1 0.5 0.5 0.5
1 adjA 1 1.0 2.0 1.0
A 2 4 2
A 2
3 7 5 1.5 3.5 2.5
MATRICES - OPERATIONS
The result can be checked using
AA-1 = A-1 A = I
Simple 2 x 2 case
SIMPLE 2 X 2 CASE
Let
and
a b w x
1
A A
c d y z
then
a b w x 1 0
c d y z 0 1
SIMPLE 2 X 2 CASE
Multiplying gives
aw by 1
ax bz 0
cw dy 0
cx dz 1
ax
z
b
1 cx
z
d
ax 1 cx
b d
b b
x
da bc A
SIMPLE 2 X 2 CASE
1 by
w
a
dy
w
c
1 by dy
a c
c c
y
ad cb A
SIMPLE 2 X 2 CASE
bz
x
a
1 dz
x
c
bz 1 dz
a c
a a
z
ad bc A
SIMPLE 2 X 2 CASE
So that for a 2 x 2 matrix the inverse can be constructed
in a simple fashion as
d b
A A 1 d b
1w x
A c a A c a
y z A
A
1 1 3 2 3 1 0
I
10 4 2 4 1 0 1
MATRICES TRANSFORMATION
Rank Of Matrix
ELEMENTARY TRANSFORMATION
1. Interchanging: the interchange of ith row (or
columns), denoted by 𝑅𝑖 ↔ 𝑅𝑗 or 𝐶𝑖 ↔ 𝐶𝑗.
2. Scaling: the multiplication of the elements of 𝑖𝑡ℎ row
(or columns ), by a nonzero scalar k, denoted by
𝑅𝑖 ↔ 𝑘𝑅𝑗 or 𝐶𝑖 ↔ 𝑘𝐶𝑗.
1. Combining: the addition to (or subtraction from)the
elements of 𝑖𝑡ℎ row (or columns ) of k, times the
elements of 𝑗𝑡ℎ row (or columns), denoted by
𝑅𝑖 ↔ 𝑅𝑖 ± 𝑘𝑅𝑗 or 𝐶𝑖 ↔ 𝐶𝑖 ± 𝑘𝐶𝑗.
Operation applied on row called row transformation
Operation applied on column is called column operation.
RANK OF MATRIX
The rank of matrix A is the order of any highest order
non-vanishing determinant of the matrix.
𝜌 𝐴 = 𝑟 𝑜𝑟 𝑟 𝐴 = 𝑟
Means there is al least one determinant of order r is not
equal to zero and every determinant of order r+1 is zero
2 1 1 2 1 1
Ex: A = 4 2 2 𝐴 = 4 2 2 =0
1 2 2 1 2 2
So rank of A cannot be 3
4 2
Now ≠ 0 (nonzero determinant)
1 2
Thus 𝜌 𝐴 =2
METHODS FOR FINDING RANK OF MATRIX
1. Finding the largest order non-vanishing determinant of matrix
A.
Echelon Form:
All the zero rows or any zero rows follows the nonzero rows.
The number of zeros before the first non-zero element in first,
second, third row should be in increasing order.
1 2 1 2
0 1 1 0
A R4 R4 R2
0 0 1 0
0 1 1 0
1 2 1 2
0 1 1 0
0 0 1 0
0 0 0 0 Hence 𝜌 𝐴 = 3
Normal Form of a matrix:
𝐼𝑟 0
0 0
Where 𝐼𝑟 is an identity matrix of order r and 0 is zero-
matrix by e-transformation. Hence rank of matrix is r.
Ex. 1 1 1 1
A 1 2 3 4 R 2 R 2 R1 R 3 R 3 3R1
3 4 5 2
1 1 1 1
0 1 2 5 C2 C2 C1 C3 C3 C1 C4 C4 C1
0 1 2 5
1 0 0 0
0 1 2 5 R 3 R 3 R 2 C3 C3 2C2
0 1 2 5
C4 C4 5C2
1 0 0 0
0 1 0 0
0 0 0 0
I2
Hence ( A) 2
Inverse of Matrix By E-row operations
1 6 4
Ex. If 𝐴 = 0 2 3 find inverse of A.
0 1 2
write A=I A
1 6 4 1 0 0
0 2 3 = 0 1 0 𝐴
0 1 2 0 0 1
On performing suitable E-row 0perations on the left and on the
prefactor of Aon the right till we get I 3on the left.
𝑅3 ↔ 𝑅2 , 𝑅1 → 𝑅1 − 2𝑅2 , 𝑅3 → −𝑅3 , 𝑅2 → 𝑅2 + 2𝑅3
1 4 0 1 0 −2
0 1 0 = 0 2 −3 𝐴
0 0 −1 0 1 −2
𝑅1 → 𝑅1 − 4𝑅2 , 𝑅3 → −𝑅3
1 0 0 1 −8 10
0 1 0 = 0 2 −3 𝐴
0 0 1 0 −1 2
I = BA
1 −8 10
𝐴−1 = 𝐵 = 0 2 −3
0 −1 2
MATRICES AND LINEAR EQUATIONS
Linear Equations
LINEAR EQUATIONS
Linear equations are common and important for survey problems
Matrices can be used to express these linear equations and aid in the
computation of unknown values.
System of equations has three types of solution:
Unique Solutions: consider the system of equations
𝑥 + 2𝑦 = 5
3𝑥 − 𝑦 = 1
𝑤𝑖𝑐 𝑔𝑖𝑣𝑒𝑠 𝑥 = 1, 𝑦 = 2 have a single solution or unique solution and said to
be consistent by nature.
Infinite solution: Consider
𝑥 + 2𝑦 = 5
2𝑥 + 4𝑦 = 10
Which does not gives unique solution, but there are many solutions if 𝑥 = 𝑘 and
𝑦 = 5 − 2𝑘
k is arbitrary have infinite number of values , so above equation have infinite
solutions and said to be consistent.
No Solution: consider
𝑥 + 2𝑦 = 5
2𝑥 + 4𝑦 = 7
When rank of matrix A is r less than number of variables then there will be
infinite solutions
In this case 𝐴 = 0 and we have non zero solution called non trivial solution.
Example: Solve
𝑥−𝑦+𝑧 =0
𝑥 + 2𝑦 − 𝑧 = 0
2𝑥 + 𝑦 − 3𝑧 = 0
1 −1 1 𝑥 0
matrix equation becomes 1 2 −1 𝑦 = 0 AX=0
2 1 −3 𝑧 0
The Coefficient matrix
1 −1 1
𝐴= 1 2 −1
2 1 −3
1 −1 1
𝐴 = 0 3 −2
0 0 3
This is Echelon form and rank of A =3 (No. of variables). Therfore zero
solution is the only solution.
Now matrix equation
𝑥−𝑦+𝑧 =0
3𝑦 − 2𝑧 = 0
3𝑧 = 0
Which gives x=0,y=0 and z=0.
SOLUTION OF LINEAR EQUATION BY MATRIX
INVERSION METHOD
A-1 AX = A-1 B
Now since
A-1 A = I
We get
X = A-1 B
3 1 1 x1 2
2 1 0 x 1
2
1 2 1 x3 3
LINEAR EQUATIONS
When A-1 is computed the equation becomes
Therefore
x1 2,
x2 3,
x3 7
LINEAR EQUATIONS
The values for the unknowns should be checked by substitution
back into the initial equations
x1 2, 3x1 x2 x3 2
x2 3, 2 x1 x2 1
x3 7 x1 2 x2 x3 3