Matrices
Matrices
a 11 a 12 .... a1 n
a a 22 .... a 2 n
21
A a ij .... .... .... ....
.... .... .... ....
a m 1 am 2 .... a mn
1 0 .... 0
0 1 .... 0
The identity matrix: I .... .... .... .... is square matrix
.... .... .... ....
0 0 .... 1
with one in each main diagonal position and zeros else.
١
a1 0 .... 0
0 a2 .... 0
The diagonal matrix D .... .... .... .... has the elements
.... .... .... ....
0 0 .... a n
a1, a2 ,…..,an in its main diagonal position and zeros in all other
locations, some of the ai may be zero but not all.
0 0 .... 0
0 0 .... 0
The m n null matrix:- 0 .... .... .... .... has zero in each of
.... .... .... ....
0 0 .... 0
its positions.
Sol. –
٢
x 2y 3
x 2y 3 ....(1) 2 x 2 y 12
x y6 ....(2) 2 3 x 15 x 5
substitution x 5 in (2) 5 y 6 y 1
Sol.-
2 1 1 2 3 2 3 1 5
A B 3 3 3
1 2 0 3 2 1
2 1 1 ( 2 ) 32 1 3 1
A B
1 2 0 ( 3 ) 2 ( 1 ) 1 3 1
٣
3. Multiplication by a scalar:- The matrix A is multiplied by the
scalar C by multiplying each element of A by c:-
ca 11 ca 12 .... ca 1 n
ca
21 ca 22 .... ca 2 n
CA .... .... .... ....
.... .... .... ....
ca m 1 ca m 2 .... ca mn
3 2 1
EX-3- Assume A , find 3A.
0 5 1
Sol.-
3 3 32 3 1 9 6 3
3A
3 0 35 3 ( 1 ) 0 15 3
6 5 4
1 2 3 1 1 1
1 0 and B
1
EX-4- Assume A find AB.
0 2 0
Sol.-
1 6 2( 1 ) 3 0 1 5 2 1 3 2 1 4 2( 1 ) 3 0
AB
1 6 0( 1 ) 1 0 1 5 0 1 1 2 1 4 0( 1 ) 1 0
4 13 2
6 3 4
٤
Properties of multiplication:-
a ) A( B C ) AB AC distributi ve law
b) A(BC) (AB)C associativ e law
c) AB BA commutativ e law does not hold
d) AI IA A
1 2 3 1
EX-5- Assume A and B , verify that AB BA .
0 3 2 1
Sol.-
1 2 3 1 7 1 3 1 1 2 3 3
AB & BA 0 3 2 7
0 3 2 1 6 3 2 1
Hence AB BA
3 2 5 4 1 0
and B 5 4 3 , show that:-
EX-6- Assume A 2 1 4
5 4 0 2 1 1
٥
Sol.-
3 2 5 3 2 5
1 ) A 2 1 4 2 1 4 A A is a symmetric matrix.
5 4 0 5 4 0
7 1 5 7 7 7
2) L.H.S. (A B) 7 3 7 1 3 5
7 5 1 5 7 1
3 2 5 4 5 2 7 7 7
R.H.S. A B 2 1 4 1 4 1 1 3 5 L.H .S .
5 4 0 0 3 1 5 7 1
(A B) A B
32 10 1 32 11 40
3) L.H.S. (AB) 11 2 7 10 2 11
40 11 12 1 7 12
4 5 2 3 2 5 32 11 40
R.H.S. BA 1 4 1 2 1 4 10 2 11 L.H .S .
0 3 1 5 4 0 1 7 12
(AB) BA
6. Vector inner product:- The inner product of two vectors with the
same number of elements is defined to be the sum of the products of
the corresponding elements:-
b1
b n
A B a 1 an a
2
a2 bi
i1
i
bn
Since the inner product is a scalar, hence A B BA . Moreover, the
inner product of two vectors may be taken the following term:-
٦
a1 a 1b1 a 1 b2 a 1 bn
a a b a 2 bn
A B b1 b2 bn
2 2 1 a 2 b2
an a n b1 a n b2 a n bn
Which is n n matrix.
5 2
EX-7- Let A 2 and B 1 , find A B and AB
1 3
Sol.-
2
A B 5 2 1 1 5 2 ( 2 ) ( 1 ) 1 3 15
3
5 10 5 15
A B 2 2 1 3 4 2 6
1 2 1 3
Determinants
The minor of the element aij in a matrix A is the determinant of
the matrix that remains when the row and column containing aij are
deleted. For example, let:-
a11 a12 a13
a12 a13
A a 21 a 23 then the minor of a 21 is
a 33
a 22
a 31 a 32 a 33 a 32
and so on .
٧
The cofactor of aij is the determinant Aij that is (-1)i+j times the
minor of aij . Thus:-
a 11 a 12 a 11 a 12
for matrix (3 3) A23 ( 1 )2 3
a 31 a 32 a 31 a 32
a 11 a 13 a 14 a 11 a 13 a 14
for matrix (4 4) A31 ( 1 )3 1 a 22 a 23 a 24 a 22 a 23 a 24
a 42 a 43 a 44 a 42 a 43 a 44
a 11 a 12 a 13 a 11 a 12 a 13 a 11 a 12
for n 3 , A a 21 a 22 a 23 A a 21 a 22 a 23 a 21 a 22
a 31 a 32 a 33 a 31 a 32 a 33 a 31 a 32
+ + +
A a 11 a 22 a 33 a 12 a 23 a 31 a 13 a 21 a 32 a 13 a 22 a 31 a 11 a 23 a 32 a 12 a 21 a 33
2 1 3
EX-8- Find the determinant of the matrix:- A 3 1 2
2 3 1
Sol.- _ _ _
1st method
2 1 3 2 1
A 3 1 2 3 1
2 3 1 2 3
+ +
+
2( 1 ) 1 1( 2 ) 2 3 3 3 3( 1 ) 2 2( 2 ) 3 1 3 1
36
٨
2nd method
If we were to expand the determinant by cofactors according to
elements of its third column, say, we would get:-
A a13 A13 a23 A23 a33 A33
3 1 2 1 2 1
3( 1 )13 ( 2 )( 1 )23 1( 1 )3 3
2 3 2 3 3 1
39 ( 2 ) 26 2 2 3 36
3 1 2
EX-9 Show that:- 2 3 5 0
3 1 2
Sol.-
3 1 2 3 1
2 3 5 2 3 18 15 4 ( 18 15 4 ) 0
3 1 2 3 1
٩
F-3: The determinant of the transpose of a matrix is equal to the
original determinant.
2 1 5 2 1 1
EX-11 Show that:- 1 0 3 1 0 2
1 2 4 5 3 4
Sol.-
L.H .S . 29 from ex - 10
2 1 1 2 1
R.H .S . 1 0 2 1 0 0 10 3 ( 0 12 4 ) 29 L.H .S .
5 3 4 5 3
2 1 5 2 1 1
1 0 31 0 2
1 2 4 5 3 4
6 3 15 2 1 5
EX-12 Show that:- 1 0 3 3 1 0 3
1 2 4 1 2 4
Sol.-
6 3 15 6 3
L.H .S . 1 0 3 1 0 0 9 30 ( 0 36 12 ) 87
1 2 4 1 2
R.H .S . 3 29 87 L.H .S .
6 3 15 2 1 5
1 0 3 3 1 0 3
1 2 4 1 2 4
F-5: If all elements of a matrix above the main diagonal (or all below
it) are zero, the determinant of the matrix is the product of the
elements on the main diagonal.
١٠
5 0 0
EX-13 Find:- 2 3 0
1 1 4
Sol.-
5 0 05 0
2 3 02 3 60 0 0 ( 0 0 0 ) 60
1 1 4 1 1
Or directly 5 3 4 60
2 1 5
3 and B is the matrix
EX-14 Show that A B if A 1 0
1 2 4
resultant from multiplying row (1) by 2 and adding to row (3).
2 1 5
i.e. B 1 0 3
5 0 14
Sol.-
A 29 from ex - 10
2 1 5 2 1
B 1 0 3 1 0 0 15 0 ( 0 0 14 ) 29
5 0 14 5 0
AB
1 2 3 1
2 1 0 2
EX-15 Find 1 2 1 2
0 1 2 1
Sol.-
١١
1 2 3 1
2 R1 R2 2 1 0 2
Expanding the determinant by using the
1 2 1 2
0 1 2 1
5 2 0 5 2
first column. 1 0 4 1 0 4 20 6 0 ( 0 10 0 ) 36
1 6 1 1 6
Linear Equations
There are many methods to solve a system of linear equations:
AX=B
I) Row Reduction method It is often possible to transform the linear
equations step by step into an equivalent system of equations that is
so simple it can be solved by inspection.
We start with n ( n 1 ) matrix A B whose first n columns
are the columns of A and whose last column is B. We are going to
transform this augmented matrix with a sequence of elementary row
operations into I S where S is the solution of X.
2 x 3 y 4 z 3
EX-16 Solve the following linear equation: x 2 y 3z 3
3x y z 6
Sol.
2 3 4 x 3
AX B where A 1 2 3 , X y , B 3
3 1 1 z 6
2 3 4 3 2 R R 0 1 10 9
A B 1 2 3 3 1 3 3
2 1
2
3 R2 R3
3 1 1 6 0 7 10 3
1 2 3 3 1 0 17 15
2 R2 R1
0 1 10 9 0
1 10 9
int er change
R1 and R2 7 R2 R3
0 7 10 3 0 0 60 60
17 1 0
R3 R1
0 2
R2 ( 1 )
1 0 0 2
60
0 1 0 1 0 1 0 1 I S
1
R R2 R3 60
1
0 0 60 60 0 0 1 1
6 3
١٢
x 2
Hence y 1 x 2 , y 1 , z 1
z 1
١٣
Problems – 8
3 1
1 2 1 2 3
1) Let A , B , C 4 1 ,
0 4 1 4 2
0 2
1 0 4
3 1
D 0 1 2 , E . Find:-
4 2
0 1 1
a) AB b) DC c) (D+I)C d) DC+C e) DCB
f) EI g) 3A+E h) -5E+A i) E(2B)
3 9 6 10 6 42 9
1 10 1
ans. : a) b) 4 3 c, d) 8
2 e) 1 20 6
4 16 8
4 3 4 5 7 4 18
3 1 6 5 14 7 8 4 22
f) g) 4 14 h) 20 6 i) 4 32 16
4 2
0 2
1 12
4) Let A , B 1 3 , Find:-
0 1 4
5 2
a ) 2 A B b) B A I
2 3 9 10 19
ans. : a ) b)
2 5 6 5 6
3 0 1
1 2 0
5) Let A 0 2 , B
2
1 , Find:-
1 1 3
1 5
١٤
( 2 A I ) B and show that ( AB ) B A
5 1
ans. : 2 11
6 26
x x 1
6) For what value of x will: 2 0 5 0 ?
6 7 1
ans. : x 2
١٥
9) Solve the following system of equations:-
c) x y z 2
a ) x 8y 4 b ) 2x 3y 5
2x y z 0
3x y 13 3x y 2
x 2y z 4
d ) 2x y z 2 e ) 2x 4 y 6 f ) x z 3
x y z 7 x yz1 2y 2 z 2
2x 2y z 4 5y 7 z 1 0 2x z 3
g ) x1 x 2 x 3 x4 2
h ) 2x 3 y 4 z 19
x1 x 2 x 3 x4 1
6x 4 y 2 z 8
x1 x 2 x 3 x4 2
x 5y 4 z 2 3
x1 x 3 x4 1
ans. : a ) x 4 , y 1 b)x y 1
6
c)x , y
10
,z
2
d ) x 3 , y 2 , z 2
7 7 7
3 5
e)x 0 , y ,z f ) x 2 , y 0 , z 1
2 2
3
g ) x 1 2 , x2 0 , x3 x4 h ) x 2 , y 5 , z 0
2
١٦