Matrix Sheet
Matrix Sheet
Types of matrix:
1. Row matrix: A matrix which has exactly one row that matrix is called row
matrix. Example: [ 0 ] [2 9] [3 5 9]
2. Column matrix: The matrix which has exactly one column is called
column matrix.
2
Example: 3 7
[1]
5 6
3. Square matrix: The matrix where the number of rows is equal to number
of column that matrix is called square matrix.
Example: 5 9 4 2 4
[4] 3 8 6 0 3 22
11
1 0 8
33
4. Null matrix: The matrix each of whose element is zero, it is called null
matrix.
Example: 0 0
[0]
0 0
Example: 1 0 0
0 2 0
0 0 3 33
Example: 3 0 0 1 0
0 0
0 3 0 0 1
0 0
0 0 3
7. Identity or unit matrix: A diagonal matrix whose diagonal elements are
all equal to one, it is called identity or unit matrix.
Example: 1 0 0 1 0
0 1 0 0 1
0 0 1
Example: 3 5 8
5 7 9
10. Symmetric matrix: If a matrix is unaffected by transposing the rows and
columns then it is called symmetric matrix.
Example : 1 2 3 1 2 3
2 4 -5 = 2 4 -5 which is
unaffected
3 -5 6 3 -5 6
11. Sub matrix : A matrix which is obtained from a given matrix by deleting
any number of rows and columns is called a “sub- matrix” of the given
matrix.
Example : 1 2 3
second matrix is the
2 4 -5 4 -5 sub matrix of first
3 -5 6 -5 6 matrix
3 2 1 5 1 0
A= B=
5 3 8 23 0 3 9 23
3 + 5 2 + 1 1 + 0 8 3 1
A+B= =
5 + 0 3 + 3 8 + 9 5 6 17
3 − 5 2 − 1 1 − 0 - 2 1 1
A−B= = - 1
5 − 0 3 − 3 8 − 9 5 0
3 2 1
Let, K=3 and A=
5 3 8
3 2 1
KA = 3
5 3 8
3 3 23 1 3
=
5 3 3 3 8 3
9 6 3
=
15 9 24
Equality of matrices: Two matrices are said to be equal if and only if
2 1
3 a 3 5
Example: A = B= C = b c
5 2 22 5 2 22
5 2 32
Problem: 1
3 2 1 0
Find x if y = and 2 x + y =
1 4 − 3 2
1 0
Solution: Given that, 2x + y =
− 3 2
1 0
2x = −y
- 3 2
1 0 3 2
or, 2x = −
- 3 2 1 4
1 - 3 0 - 2
or, 2x =
- 3 - 1 2 - 4
− 2 −2
or, 2x =
− 4 −2
1 − 2 −2
or, x =
2 − 4 −2
− 1 −1
x = (Ans.)
− 2 −1
Problem: 2
a + b 2 6 2
If matrices = Find the values of a and b.
5 ab 5 8
Solution: If (a+b) =6 and ab=8 then the matrix is equalities matrix.
ab = 8 ⎯⎯ (ii)
8
a= ⎯⎯ (iii)
b
8 + b2
or, =6
b
or, 8 + b 2 = 6b
or, b 2 − 6b + 8 = 0
or, b 2 − 4b − 2b + 8 = 0
or, b(b − 4) − 2(b − 4) = 0
or, (b − 4)(b − 2) = 0
(b − 4) = 0 Again, (b − 2) = 0
b = 4 b = 2
8
a = [When b=4]
4
or, a=2
8
Again, a =
b
8
a = [When b=2]
2
a = 4
9 1 1 5
Problem: If A= ; B= Find the matrix X such that,
4 3 7 12
3A+5B+2X = 0
or, 2x=-3A-5B
x= - 3 A + 5B
1
or,
2
1 9 1 1 5
or, x = − 3 + 5
2 4 3 7 12
1 9 3 1 3 1 5 5 5
or, x = − +
2 4 3 3 3 7 5 12 5
1 27 3 5 25
or, x = − +
2 12 9 35 60
1 27 + 5 3 + 25
or, x = −
2 12 + 35 9 + 60
1 32 28
or, x= (Ans.)
2 47 69
2 5 + 0 3 2 1 + 0 5
A B =
5 5 + 3 3 5 1 + 3 5
10 + 0 2+0
=
25 + 9 5 + 15
10 2
=
34 20
1 2
Problem: If A = find A 2 + 3 A + 5 I where I is unit matrix of order2
− 3 0
1 0
Solution: So, I=
0 1
1 2 1 2
A2 = A A =
− 3 0 − 3 0
11 + 2 (− 3) 1 2 + 2 0
=
− 3 1 + 0 (− 3) −3 2 + 0 0
1 − 6 2+0
=
− 3 − 0 −6 + 0
− 5 2
=
− 3 −6
1 2 3 6
3A = 3 =
− 3 0 − 9 0
1 0 5 0
5I = 5 =
0 1 0 5
− 5 2 3 6 5 0
A 2 + 3 A + 51 = + +
− 3 −6 − 9 0 0 5
− 5 + 3 + 5 2+6+0
=
− 3 − 9 + 0 −6 + 0 + 5
3 8
= (Answer)
− 12 −1
a h x
Problem: Find x, y x
b y
x
h
a h x
Solution: x, y x
b y
x
h
a x + h y
= x y x
h x + b y
ax + hy
= x y x
hx + by
= x(ax + hy ) + y (hx + by )
= ax 2 + hxy + hyx + by 2
= ax 2 + 2hxy + by 2 Ans.
Problem-05:
2 1 0 1 2 3 4
Obtain the product 3 2 1 2 0 1 2
1 0 1 3 1 0 5
Solution:
2 1 0 1 2 3 4
3 2 1 2 0 1 2
1 0 1 3 1 0 5
2 1 + 1 2 + 0 3 2 2 + 1 0 + 0 1 2 3 + 1 1 + 0 0 2 4 + 1 2 + 0 5
= 3 1 + 2 2 + 1 3 3 2 + 2 0 + 11 3 3 + 2 1 + 1 0 3 4 + 2 2 + 1 5
1 1 + 0 2 + 1 3 1 2 + 0 0 + 1 1 1 3 + 0 1 + 1 0 1 4 + 0 2 + 1 5
1 0 2 1 2 3
A = 2 1 3 A = 0
/
1 2
3 2 5 33 2 3 5
Properties of a matrix:
i. ( A) = A
ii. (A+B)=A+B
iii. (AB)=AB
1 2 1 2
A= A/ =
2 2 2 2
A=A
Problem-7
1 3
1 3
B = - 1 0 then show that, (AB)=BA
-2
If A =
- 4 2 5
2 4
1 3
1 3
− 1 0
-2
AB =
- 4 2 5 23
2 4 3 2
1 + 2 + 6 3 - 0 + 12
=
- 4 - 2 + 10 -12 + 0 + 20
9 15
=
4 8
9 4
(AB) / =
15 8
R.H.S. = BA
1 3
1 −1 2
B = - 1 0 B/ =
3 0 4
2 4
1 −4
1 3
A = − 2 2
-2
A= /
- 4 2 5
3 5
1 −4
1 −1 2
B/ A / = − 2 2
3 0 4 23
3 5 32
9 4
=
15 8
“DETERMINATE”
Determinate of a square matrix: It is calculated from a square matrix and
denoted by A . The determinant of a square matrix is associated with some
Types of Determinants:
Here,
1st 1= Row
| A |= 5
a11 a12
Let, A= be a square matrix of order two.
a21 a22
A = (6 2 ) − (0 9 )
= 12 − 0 = 12 .( Ans ).
3rd order determinant/ determinant of order 3:
Let,
a11 a12 a13
A= a21 a22 a23 be a square matrix of 3 order/ 3 3 order.
a31 a32 a33
Example-
0 3 2
A = 9 4 5 is a 33 order square matrix Find |A| =?
6 3 2
Then,
a22 a23 a24 a21 a23 a24
|A|= a11 a32 a33 a34 - a12 a31
a33 a34
a42 a43 a44 a41 a43 a44
a1 a2 a3 b1 b2 b3
A= + b1 b2 b3 = - a1 a2 a3
c1 c2 c3 c1 c2 c3
a1 a2 a3 a1 a1 b1
A= a1 a2
a3 =0, A= a2 a2 b2 =0.
b1 b2 b3 a3 a3 b3
(3) If rows are changed into columns and columns are changed into
rows, the determinant remain unchanged.
a1 a2 a3 a1 b1 c1
A= b1 b2 b3 = a2 b2 c2
c1 c2 c3 a3 b3 c3
a1 a2 a3 a1 a2 a3
A= b1 b2 b3 = k b
1 b2 b3
kc1 kc2
kc3 c1 c2 c3
(5) If any row or column is the sum of two or more elements then the
determinant can be expressed as sum of or more determinants.
a1 + k1 a2 a3 a1 a2 a3 k1 a2 a3
b + k b2 b3 = b1 b2 b3 + k 2 b2 b3
1 2
c1 + k 3 c2 c3 c1 c2 c3 k 3 c2 c3
Minors: A minor of a matrix A is the determinant of some smaller square matrix, cut
down from A by removing one or more of its rows and columns. Minors obtained by
removing just one row and one column from square matrices (first minors). It’s called
minors of a1 & it denoted by A1
a1 b1 c1
b c2
Let, A = a 2 b2 c 2 , Minors of a1 = 2 , A1 = b2 c3 − b3 c2
b3 c3
a3 b3 c3
a2 c2
Similarly, Minors of b1 = , B1 = a2 c3 − a3c2
a3 c3
Cofactor: If we multiply the minor of the element in the 1st row & 1st column
of the determinant of the matrix by (−1)r +c the product is called the cofactor of
the element.
Cofactor of any element = (−1)r + c it’s minors. Where “r” is the number of
rows and c is the number of columns in which that element lies.
Cofactor is denoted by A1 , Cofactor of a1 = A1
a1 b1 c1
Example: a2 b2 c2
a3 b3 c3
a1 c1
Minor of b2 = = a1c3 − a3c1
a3 c3
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d 2
a3 x + b3 y + c3 z = d 3
x y z
Rule,
d1 b1 c1 a1 d1 c1 a1 b1 d1
1
d2 b2 c2 = a2 d2 c2 = a2 b2 d2 =
d3 b3 c3 a3 d3 c3 a3 b3 d3
x y z 1
or, = = =
Dx Dy Dz
Problem14:
x+ y+z =9
2 x + 5x + 7 z = 52
2x + y − z = 0
Here the determinant of coefficient of x,y,z.
1 1 1
=2 5 7 = 1(− 5 − 7 ) − 1(− 2 − 14) + 1(2 − 10)
2 1 −1
=12+16-8=-20+16 =-4 0
9 1 1
Dx = 52 5 7 = 9(− 5 − 7 ) − 1(− 52 − 0) + 1(52 − 0)
0 1 −1
= 9(− 12 ) + 52 + 52
= −108 + 104
= −4
1 9 1
Dy = 2 52 7 = 1(− 52 − 0) − 9(− 2 − 14) + 1(0 − 104)
2 0 −1
= −156 + 144
= −12
1 1 9
Dz = 2 5 52 = 1(0 − 52) − 10(0 − 104) + 9(2 − 10)
2 1 0
= 52 + 104 − 72
= −124 + 104
= −20
x y z 1
we know, = = =
Dx Dy Dz
x y z 1
or, = = =
− 4 − 12 − 20 − 4
x 1 y 1 z 1
= = =
Dx Dy Dx
Dx Dy Dz
x = y= z=
So, or, or,
−4 − 12 − 20
x= y= z=
−4 −4 −4
x =1 y=3 z = 5
or,
5 −6
Co- factor of A=
− 3 4
5 −3
Adjoint of A=
4
Ans.
− 6
Inverse of matrix:
Let, A be any square matrix of order ‘n’. If there exists a square matrix
B of order ‘n’ which satisfies the relation A B=B A=I where, I is the
identity matrix of order ‘n’ then B is called the inverse of A& it is denoted by
A −1 .
2 2 0
Problem: Find the inverse of a matrix 2 1 1
− 7 2 −3
= 2 (-5)-2 (1)+0(11)
= -10-2+0
= -12
| A |= −12
Co-factor of 2 = (− 1)1+1 (− 5) = −5
Co-factor of 2= (− 1)2+1 (− 6) = 6
Co-factor of 1= (− 1)2+2 −6 = −6
Co-factor of 2= (− 1)3+ 2 2 = −2
Co-factor of –3= (− 1)3+3 −2 = −2
− 5 −1 11
Co-factor of matrix A= 6 −6 −18
2 −2 −2
− 5 6 2
Adjoint of A= − 1 −6 −2
11 −18 −2
− 5 6 2
1
−2
Adjo int ofA
−1
A = = − − 1 −6
| A| 12
11 −18 −2
5 1 1
12 − −
2 6
=
1 1 1
12
Ans.
2 6
− 11 3 1
12 2 6
4 3
Problem: If A= then show that;
6 5
A A −1 = I
Cofactor of 4= (− 1)1+1 5 = 5
Cofactor of 3= (− 1)1+ 2 6 = −6
Cofactor of 6= (− 1)2+1 3 = −3
Cofactor of 5= (− 1)2+ 2 4 = 4
5 −6
Cofactor of matrix A=
− 3 4
5 −3
Adjoint of A=
− 6 4
Adjo int A
A−1 =
| A|
4 3 2.5 −1.5
A A −1 =
6 5 − 3 2
4 2.5 + 3 −3 4 (− 1.5) + 3 2
=
6 2.5 + 5 −3 6 (− 1.5) + 5 2
10 − 9 −6 + 6 1 0
= = =I
15 − 15 −9 + 10 0 1
A A −1 = I [Proved]
Problem: There are two families A and B. There 4 men, 6 women, and 2
child in family A, and 2 men, 2 women and four child in family B : The
recommended daily and for protein is men 55 gram, women 45 gram, and
child 33 gram. Represents the above information by matrix. Using matrix
multiplication calculated the total requirements of callory and protein. For
each of the two families.
Solution:
The total requirements of callories and proteins for each of the two
families can be shown by matrix-
2400 55
4 2 1900 45 By tranposions
6
=
2 2 4
1800 33
24,600 556
=
15,800 332
Calorie Protein
A = 24,600 556
332
B = 15,800
A B C
C -1 400 300 200
300 100
C-2 200
If cost price of each set A, B, C is Tk. 1000, Tk. 2000 and Tk. 3000
respectively and selling price Tk. 1500, Tk. 3000 and Tk. 4000 respectively.
Find the total profit using matrix algebra only.
Solution: Money spend in producing TV sets A,B,C are Tk. 1000, Tk. 2000
and Tk. 3000 respectively.
400 300
= 1000 2000 300013 300 200
200 100 32
= 1000 400 + 2000 300 + 3000 200 1000 300 + 2000 200 + 3000 100
= 1600000 1000000
So, Total money spend in producing 3 sets of TV
= 2600000 Tk.
400 300
= 300 200 1500 3000 400013
200 100 32
= 400 1500 + 300 3000 + 200 4000 300 1500 + 200 3000 + 4000 100
= 2300000 1450000
= 3750000-260000
Problem
A Finance company has offices located in every division; every district and
every thana of a Country. Assume that there 5 divisions 30 district and 200
thanas in the country. Each office has 1 head clerk, 1 cashier, 1 clerk and 1
peon. A divisional office has in addition an office superendent, 2 clerks, 1
typist and 1 peon. A district office has in addition 1 clerk and 1 peon. The
basic monthly salaries are as follows office superintend Tk. 500, head clerk
Tk. 200, cashier Tk. 175, clerk and typists Tk. 150 and peon Tk. 100 using
matrix notation. Find-
1) The total number of post of each kind in all the offices taken together.
3) The total basic salary bill of all the offices taken together.
H C CL P OS T
B = D 1 1 3 2 1 1
O 1 1 2 2 0 0
Th
1 1 1 1 0 0
D=H 200
C 175
CL 150
P
OS 100
T 500
150
1) The total number of posts of each kind in all the office are the elements of
the matrix-
1 1 3 2 1 1
A B = 5 30 20013 1 1 2 2 0 0
1 1 1 1 0 0 36
=
5 1 + 30 1 + 200 15 1 + 30 1 + 200 1 5 3 + 30 2 + 200 1 5 2 + 30 2 + 200 1
5 1 + 30 0 + 200 0 5 1 + 30 0 + 200 0
= 235 235 275 270 5 5
=1025 Tk.
2) The total basic monthly salary bill of each kind offices are the
200
175
1 1 3 2 1 1
B D = 1 1 2 2 0 0
150
100
1 1 1 1 0 0 36
500
150 61
1675
= 875 = E
625
1675
A E = 5 30 200 875
625
5 −6 4 x 15
Let, 7 4 −3 =A, y =X and 19 =B
2 1 6 z 46
Ax=B
or, x= A-1B
The determinant value of the matrix A
=5(24+3)-(-6)(42+6)+4(7-8)
= 527+648-4
=135+288-4
= 419
Co-factor of 4 = (-1)1+3(7-8) = -1
Co-factor of 2 = (-1)3+1(18-16) = 2
Co-factor of 6 = (-1)3+3(20+42)= 62
27 −48 −1
Now cofactor of A is 40 22 −17
2 43 62
27 40 2
Adjoint of A= − 48 22 43
− 1 −17 62
Adjo int ofA
A-1 =
| A|
27 40 2
1
= − 48 22 43
419
− 1 −17 62
x 27 40 2 15
y = − 48 43 19
1
22
419
z − 1 −17 62 46
1257 3
1
= 1676 = 4
419
2514 6
x= 3; y= 4; z = 6 Ans.
-3x-5y+4z = 6,000
-2x+3y-z = 5,000
x-4y-3z = 13,000
Now, The equation can be written in the matrix form as;
− 3 −5 4 x 6000
− 2 3 −1 y = 5000
1 −4 −6 z 13.000
so, A x=B
x= A −1 B
={(-3)(-18-4)-(-5)+4(8-3)}
=(-3-22)-(-513)+(45)
=66+65+20
=151
− 22 −46 −7
Adjoint of A = − 13 14 −11
5 −17 −19
− 22 −46 −7
A-1=
Adjo int ofA
=
1 − 13 14 −11
| A| 151
5 −17 −19
x − 22 −46 −7 6000
y = − 13 −11 5000
1
14
151
z 5 −17 −19 13.000
− 453000
= − 151000
1
151
− 302000
− 3000
= − 1000
− 2000
x = 3000TK.
y = 1000TK.
x = 2000TK. Ans.
7 0 3 6
Problem: If x + y = and x - y = find x and y.
2 5 0 3
7 0 3 6
Solution: x+ y+x− y = +
2 5 0 3
7 + 3 0 + 0
or ,2 x =
2 + 0 5 + 3
10 0
=
2 8
1 10 0
x =
2 2 8
5 0
=
1 4
7 0
Again, x+y=
2 5
7 0
or, y = −x
2 5
7 0 5 0
= −
2 5 1 4
7 - 5 0 - 0
=
2 - 1 5 - 4
2 0
= −x
1 1
5 0 2 0
x = and y =
1 4 1 1
Problem: A, B and C has Tk. 480, Tk. 760 and Tk. 710 respectively. They
utilized the amount to purchase three types of shares of prices x, y and z,
respectively. A purchase 2 shares of price x, 5 of price y and 3 of price z. B
purchases 4 share of price x, 3 of price y and 6 of price z. C purchase 1 shares
of price x, 4 shares of price y and 10 of price z. Find x, y and z.
Solution :
2x + 5y + 3z = 480
4x + 3y + 6z = 760
1x + 4y + 10z = 710
2 5 3 x 480
4 3 6 y = 760
1 4 10 z 710
-1
x 2 5 3 480 480
y 4 3 6 = 760
= 760
-1
z 1 4 10 710 710
where
2 5 3
4 3 6
1 4 10
|A| = 2(30-24)-5(40-6)3(16-3)
= (26)-(534)+(313)
= -119
Again Matrix A
Co factor of 4 = (-1)3+2 0 = 0
6 -34 13
Co factor A = - 8 17 -3
21 0 -14
6 -38 21
Adj A = - 34 17 0
13 -3 -14
Adj.A
A - 1 =
|A|
6 −38 21
1
=- − 34 17 0
119
13 −3 −14
x 6 -38 21 480
y = - - 34 0 760
1
17
119
z 13 -3 -14 710
93
= 29
50
x = 93, y = 29, z = 50
Problem : A trust fund has Tk. 50,000 that is to be invested into two types of
bonds. The first bond pays 5% interest per year and the second bond pays 6%
interest per year. Using matrix algebra, determine how to divide Tk. 50,000
among the two types of bonds so as to obtain an annual interest of Tk. 2,780.
Solution : Let Tk. x and Tk. (50,00 - x) be invested in the first and second
type of bond, respectively. The value of these bonds can be written in the
form of a row matrix :
A = x 50,000 - x 12
The amounts received as interest annual from two bonds can be written in the
form of a column matrix :
0.05
B=
0.06 21
0.05
AB = x 50,000 - x = 0.05 x + 0.06(50,000 − x) = 3,000 − 0.01x
0.06
But given that the annual total interest is Tk. 2,780. Therefore
3,000-0.01x = 2780