Matrices and Determinants
Matrices and Determinants
B.V.Ramana
Chapter
9:40
1.1 INTRODUCTION
Matrix means an arrangement or array Matrices
(plural of matrix) were introduced by Cayley in 1860.
A matrix A is rectangular array of m n numbers (or
functions) arranged in m horizontal lines (known as
rows) and in n vertical lines (known as columns),
denoted by Amn . These m n numbers are known
as the elements or entries of the matrix A and are
enclosed in brackets [ ], or ( ) or || ||. The order of the
matrix is m n.
When m = n, the matrix is said to be rectangular.
Row matrix (or row vector) B1n is a matrix having
only one row (and several columns), column matrix
(or column vector) Cm1 is a matrix having only one
column (and several rows). A matrix is said to be a
n-square matrix or simply square matrix if m = n.
Thus the number of rows and number of columns in
a square matrix are equal.
The elements of the matrix A are denoted by aij
and are located by the double subscript notation ij
where the rst subscript i denotes the row (position)
and the second subscript j denotes the column position. Thus capital letters are used to denote matrices,
while the corresponding small letters with double
subscript notation are used to denote the elements
(or entries). Thus A = [aij ].
Null or zero matrix denoted by 0 is a matrix with
all its elements zero.
Equality: Two matrices A and B are said to be equal
if they are of the same order and aij = bij for every
i and j . Otherwise they are unequal, denoted by
A = B.
A+B =B +A
commutative
A + (B C) = (A + B) C
associative
k(A + B) = kA + kB
distributive
A B = B A
not commutative
chap-1
B.V.Ramana
1.2
9:40
MATHEMATICAL METHODS
p
k=1
aik bkj
for i = 1 to m and
j = 1 to n
Properties:
1. (kA)B = k(AB) = A(kB) = kAB
2. A(BC) = (AB)C
3. (A + B)C = AC + BC
4. A(B + C) = AB + AC
However
5. AB = BA in general (not commutative)
6. AB = 0 does not necessarily imply that A = 0 or
B = 0 or BA = 0.
Also
7. AB = AC does not necessarily imply that
B = C, even when A = 0.
8. (AB)T = B T AT
i.e., transpose of a product is the product of the transposes.
1.3 SPECIAL SQUARE MATRICES
The elements aii of an n-square matrix are known
as diagonal elements. Trace of matrix A =
trace of A =
n
i=1
1 0 0
I3 = I 3 3 = 0 1 0
0 0 1
Positive integral power of a matrix A, denoted by
An , is obtained by multiplying A by itself n times.
1.4 DIFFERENCES BETWEEN
DETERMINANTS AND MATRICES
Determinant D
1. It has a numerical value
Matrix A
It has no value. It is a symbol
representing an array of many
numbers on which algebra can
be performed.
It can be rectangular
It is zero only when all the
elements in the matrix are zero
It is multiplied by k. if all the
elements of the matrix are
multiplied by k
It gets altered (giving rise to
a new matrix) when rows and
columns are interchanged
It gets changed to a new matrix
when adjacent rows (or
columns) are interchanged.
chap-1
B.V.Ramana
9:40
1 2 3 4
1
2 3 4 5
(a)
3 43 0 6 (b) 3 (c) [2 4 6 7 8]
7
8
10
2
4
5 6 7 9
2 3 1 0
5 0 0
0 5 3 7
(d)
(e) 7 2 0
0 0 0 10
9 8 12
0 0 0 6
k 0 0 0
5 0 0
0 k 0 0
(f) 0 6 0
(g)
0 0 k 0
0 0 0
0 0 0 k
0 0 0
(h) 0 0 0
(i) [13]
0 0 0
Solution:
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
1.3
=
5 2
3 2
2 0
4 5 2 2
18 8
So AB =
=
and
3 2 2 0
10 6
2 2 4 5
14 14
BA =
=
.
2 0 3 2
8 10
Note that AB = BA, in general.
11 25
Example 4: If A =
show that An =
4 9
1 + 10n 25n
using mathematical induction.
4n
1 10n
Solution: Consider A2 = A A
11 25 11 25
=
4 9
4 9
21 50 1 + 10 2
25 2
A2 =
8 19
4 2 1 10 2
11 25 21 50
3
2
Now A = A A =
4 9
8 19
31 75
=
12 29
So
1 + 10 3
25 3
.
4 3 1 10 3
1 + 10 k
25 k
. Then
Assume Ak =
4 k 1 10 k
A3 =
chap-1
B.V.Ramana
1.4
Ak+1
=
9:40
MATHEMATICAL METHODS
25k
11 25 1 + 10k
= A Ak =
4k 1 10k
4 9
11 + 10k 25 25k
4 + 4k 9 10k
1 3 5
2 2 4
B = 1 3 5 , C = 1 3 4
1 3 5
1 2 3
1 + 10(k + 1) 25(k + 1)
=
4(k + 1)
1 10(k + 1)
8 4
Example 5:
If A =
prove that
2 2
A2 10 A + 24 I = 0.
8 4
8 4
2
Solution: A = A A =
2 2
2 2
56 40
=
.
Then
A2 10A + 24I
=
20 4
56 40
8 4
1 0
10
+ 24
20 4
2 2
0 1
56 80 + 24 40 + 40 + 0
=
20 20 + 0 4 20 + 24
0 0
=
=0
0 0
Example 6: Show that AB = AC
does not neces
1 3 2
sarily imply that B = C where A = 2 1 3 ,
4 3 1
1 4 1 0
2 1 1 2
B = 2 1 1 1 , C = 3 2 1 1
1 2 1 2
2 5 1 0
Solution: A3 3 B3 4 = D3 4
3 3 0 1
= 1 15 0 5
3 15 0 5
= A33 C34 however B = C.
Example 7: Verify that
(a) AB = BA = 0,
(b) AC = A,
(c) CA = C,
(d) ACB = CBA,
(e) (A B)2 = A2 + B 2 ,
(f) (A B)(A + B) = A2 B 2
2 3 5
where A = 1 4 5 ,
1 3 4
Solution:
2 3 5
1 3 5
(a) AB = 1 4 5 1 3 5
1 3 4
1 3 5
0 0 0
= 0 0 0 = 0
0 0 0
Similarly
1 3
BA = 1 3
1 3
0 0
= 0 0
0 0
5
2 3 5
5 1 4 5
5
1 3 4
0
0 = 0
0
Thus AB =
BA = 0
2 3 5
2 2 4
(b) AC = 1 4 5 1 3 4
1 3 4
1 2 3
2 3 5
= 1 4 5 = A
1 3 4
2 2 4
2 3 5
(c) CA = 1 3 4 1 4 5
1 2 3
1 3 4
2 2 4
= 1 3 4 = C
1 2 3
(d) ACB = (AC)B = (A)B = AB = 0
CBA = C(BA) = C 0 = 0
(e) (A B)2 = A2 AB BA + B 2 = A2 + B 2
since AB = BA = 0
(f) (A B)(A + B) = A2 BA + AB B 2 =
A2 B 2 since AB = BA = 0
Example 8: Prove that (a) trace (A + B) = trace A
+ trace B (b) trace (kA) = k trace A.
n
Solution: (a) Trace (A + B) =
(aii + bii )
=
aii +
i=1
chap-1
B.V.Ramana
9:40
1.5
n
4 6 2
(kaii ) = k
aii = k trace A
C = 0 3 2
i=1
i=1
5 2 1
7 2 3
Example 9: Express A = 7 1 5 as the
nd (a) A + B, (b) A B, (c) 3B, (d) verify
3 7 4
A + (B C) = (A + B) C, (e) Find D such
product of LU where L and U are lower and upper
that C + D = B, (f) AB, (g) BA, (h) Is AB =
triangular matrices (known as LU-decomposition or
BA, (i) AC, (j) verify A(B + C) = AB + AC
Factorization).
(k) Is AB = AC, (l) Is AC = CA
l11 0 0
u11 u12 u13
Ans. (a) A + B = 9 2 7
L = l21 l22 0 while U = 0 u22 u23
5 1 7
0 0 u33
l31 l32 l33
1 6 5
be the upper triangular matrix. Then
(b) A B = 1 2 3
5 2 1
1 1 1
A = 7 1 5 = LU
9 12 6
3 7 4
(c) 3B = 12 6 15
l11 0 0
u11 u12 u13
6 0 9
l21 l22 0 0 u22 u23
1 10 0
0 0 u33
l31 l32 l33
(e) Hint: B C = +4 1 3 = D
Equating the corresponding component on both
5
2 0
sides, we have l11 u11 = 5, l11 u12 = 2, l11 u13 = 1,
l21 u11 = 7, l21 u12 + l22 u22 = 1, l21 u13 + l22 u23 =
8 4 5
5, l31 u11 = 3, l31 u12 + l32 u22 = 7, l31 u13 + l32 u23
(f) AB = 19 20 16
+l33 u33 = 4.
13 14 13
13 24 1
= (5 l21 u13 )/ l22 = 5 75 1 = 32
,
l
=
31
5
3
(i) AC = 34 26 16
= 35 .
u11
40 12 16
327
Similarly l32 = 41
,
u
=
.
Thus
A
=
LU
=
33
19
19
7 2 4
5 2
1
1 0 0
(j) Hint: B + C = 4 5 7
7 1 0 0 19 32
5
5
5
9 2 6
3 41
327
1
0 0 19
5 19
44 6
8
1.5 MATRICES
(l) No (j) Hint: CA = 21 2 14 , No
13 11 13
EXERCISE
AC = CA
(b) Trace (kA) =
n
2 2 3
3 4 2
1. If A = 5 0 2 , B = 4 2 5 ,
3 1 4
2 0 3
chap-1
B.V.Ramana
1.6
9:40
MATHEMATICAL METHODS
3 0
1 7
(b) B T =
1 1
5 2
4 7
(c) (A + B)T =
6 3
2 7
(d) (A B)T =
4 1
4 7
(e) AT + B T =
(g) True
6 3
Ans. (a) AT =
1 2 2
5. If A = 0 2 1 , verify that A3 5A2 +
1 2 2
8A 4I = 0
10.
cos sin
6. If A =
show that An =
sin cos
cos n sin n
by using mathematical
sin n cos n
Ans.
induction.
7. Is AB = BA given that
1 3 0
2 3 4
A = 1 2 1 , B = 1 2 3
0 0 2
1 1 2
2
3
(k) True
3 5 2
Express A = 0 8 2 as product LU where L
6 2 8
and U are lower and upper triangular matrices.
1 0 0
3 5 2
L = 0 1 0 , U = 0 8 2
2 1 1
0 0 6
1.6 DETERMINANTS
1 2x 3x
is nonsingular where A = 1 1 2
x 3 0
Ans. A is nonsingular for any x other than 3 and
(h) (A B)T = AT B T
10 7
(i) (AB)T =
17 2
10 7
(j) B T AT =
17 2
chap-1
B.V.Ramana
9:40
The principal diagonal of the determinant is the sloping line of elements from left top corner a11 to ann .
Note that in the matrix representation the elements
aij are enclosed between brackets [ ] or ( ) or || ||,
whereas in the determinant the elements are enclosed
between vertical lines or bars | |. For n = 2, the second
order determinant is dened by
a a
D = detA = 11 12 = a11 a22 a21 a12 . (2)
a21 a2
i.e. second order determinant = difference between
the product of elements of principal diagonal and the
product of the elements of the other diagonal.
For n = 1,
D = det[a11 ] = [a11 ] = a11
Note: Here vertical bars does not denote absolute
value. Thus det [5] = | 5| = 5
Minor of an element aij of a matrix A, denoted by
Mij , is an (n 1) order determinant of the submatrix
of A obtained by omitting the ith row and j th column
in A.
Cofactor of an element aij of a matrix A, denoted
by Cij , is a signed minor of aij
Cij = (1)i+j Mij
i.e.
Laplace Expansion
Laplace Expansion is the expansion of determinant
in terms of the cofactors. For n 2
D=
j =1
(3)
or
D=
n
i=1
1.7
n
k=1
k=1
chap-1
B.V.Ramana
1.8
9:40
MATHEMATICAL METHODS
ri ri + k rj
dt
dt
chap-1
B.V.Ramana
9:40
C22 = cofactor of 5 = 2
By Laplace expansion about the rst row,
|A| = 2 C11 + 3 C12 = 2(5) + 3(4)
= 10 + 12 = 2
By Laplace expansion about the second row
|A| = 4 C21 + 5 C22 = 4 (3) + 5 (2)
= 12 10 = 2
Similarly about rst column
|A| = (2)(5) 4(3) = 10 + 12 = 2
About 2nd column, |A| = 3(+4) + 5(2) = 2
Example 2: Find the minors M21 , M13 , cofactors
C22 , C32 and evaluate the determinant
12 27 12
|A| = 28 18 24
70 15 40
Solution: M21
27 12
= minor of 28 =
15 40
12 12
C22 = cofactor of 18 = (1)2+2 M22 =
70 40
= 360
12 12
3+2
C32 = cofactor of 15 = (1) M32 =
28 24
= (48) = 48. Expanding the determinant by element of rst row, we have
|A| = 12(18 40 15 24) 27(28 40 70 24)
+12(28 15 70 18)
= 12(360) 27(560) + 12(840) = 4320 +
15120 11080
= 9360
Example 3:
where
Solution:
Evaluate |A|
1 2 3
2 1 4
|A| =
3 4 2
4 3 1
by triangularization
4
3
1
2
R2 R2 2 R1 , R3 R3 3 R1 ,
1.9
R4 R4 4 R1
1 2
3
4
0 3 2 5
|A|
0 2 7 11
0 5 11 14
Expanding by rst column and taking minus from
the three rows,
3 2 5
|A| = (1) 2 7 11 R2 R2 R1
5 11 14
3 2 5
= (1) 1 5 6
5 11 14
0 17 23
R1 R1 + 3R2
= (1) 1 5 6
R3 R3 + 5R2
0 36 44
Expanding by rst column
|A| = (1) (1)(1)[17 44 23 36]
|A| = [748 828] = 80
Example 4:
0
0
0
A =
0
0
6
Solution:
we get
Evaluate
0
0
0
0
5
5
0
0
0
4
4
4
0
0
3
3
3
3
1
1
1
1
1
1
0
2
2
2
2
2
1
1
1
|A| = |B| =
1
1
1
0
2
2
2
2
2
0
0
3
3
3
3
0
0
0
4
4
4
0
0
0
0
5
5
0
0
0
= (1234 56)
0
0 = 720
6
chap-1
B.V.Ramana
1.10
9:40
MATHEMATICAL METHODS
Solution: R3 R3 R2 , R4 R4 R1
1 15 14 4
12
6
7 9
=
4
4 4
4
12 12 12 12
Taking 4from 3rd row and 12 from 4th row,
1 15 14 4
12 6 7 9
;
= 4 12
1 1 1 1
1 1 1 1
1 15 14 4
12 6 7 9
R4 R4 + R1 = 48
1 1 1 1
0 0 0 0
= 48 0 = 0
since all the entries of the 4th row are zero.
a + 2b a + 4b a + 6b
Example 6: Evaluate a + 3b a + 5b a + 7b
a + 4b a + 6b a + 8b
Solution:
Performing R3 R3 R2 , R1
R
R
,
2
1
a + 2b a + 4b a + 6b
b
b
b = 0 since the last two row
2b
2b
2b
are proportional.
Example 7: Evaluate the nth order determinant
a
b
& =
b
b
b
a
b
b
b
b
a
b
b
b
b
a
a + (n 1)b b
b
b
b
a
1 b
1 a
= a + (n 1)b 1 b
1 b
b b
b b
a b
b a
c + a
a + b +
b + c
b c + a
c a + b +
a b + c
a a c
b + b a
c c b
c c b
a a + c
b b a
a b c b c a
= b c a + c a b
c a b a b c
c
a +
b
c a
a b
b c
chap-1
B.V.Ramana
9:40
1 + a1 a2 a3 a4
1
1 0 0
1
0
1 0
& =
1
0
0
1
...
...
1
0 0 0
a2
1
0
..
.
0
a3 a4 . . . a n
0 0 . . . 0
1 0 . . . 0
0 0 ... 1
1.11
chap-1
B.V.Ramana
1.12
9:40
MATHEMATICAL METHODS
x
1
2
2
3
x 2x + 1
x
0 3x 2 x 2 + 1
x
1
2 1
0
0
2
x 2x + 1
x 3 = x 2 2x + 1
x 3 +
0 3x 2 x 2 + 1 0 3x 2 x 2 + 1
x
1
2 x
1
2
2
3x 2 + x 2 2x + 1 x 3
+ 2x
0 3x 2 x 2 + 1 0
3
2x
1[x 2 (x 2 + 1) 0]
+ 2[x 2 (3x 2) 0]
= 3x 5 + 3x 4 + 7x 3 3x 2 + x.
d
d
of determinant = dx
So dx
(3x 5 + 3x 4 + 7x 3
3x 2 + x) = 15x 4 + 12x 3 + 21x 2 6x + 1.
3x
2
2
1
A= 2 4x
2
4 1 x
Solution:
3 x
2
2
1
|A| = det A = 2 4 x
2
4 1 x
chap-1
B.V.Ramana
9:40
1 + x
2
3
4
1 2+x
3
4
(b)
2 3+x
4
1
1
2
3 4 + x
x + 1 2x + 1 3x + 1
4x + 3 6x + 3
(c) 2x
4x + 1 6x + 4 8x + 4
n(n1)
1.13
x1n1
x2n1
n1
xn1
xnn1
chap-1
B.V.Ramana
1.14
9:40
MATHEMATICAL METHODS
9. Show that
a b a b
b a b a
2
2
2
2
c d c d = 4(a + b )(c + d )
d c
d
c
0 1 7
Similarly AB = 21 0 8 = 1,
0 0 2
5 3 5
B 2 = 41 3 2 2 = 1
5 2 14
2
x
x 3
13. Find the derivatives of
2x 3x + 1
Ans. 2x + 9x 2 8x 3
2
x x + 1 3
14. Find the derivative of 1 2x 1 x 3
0
x
2
Ans. 5 + 4x 12x 2 6x 5
2
b + ac bc c2
2ac bc
15. Evaluate ab
2
a2
ab b + ac
Ans. 4a 2 b2 c2
b c 0 2
Hint: |A| = a 0 c
0 a b
16. Obtain
equations.
all solutions of the following
1
3
x
(a) 2x 3 1 x 3x + 1 = 9x 28
2
x
2
1 x x + 2 x 2 100
0 x x 2 x + 2 100
(b) 0 0 x + 2 x 2 100 = 0
0 0
0 x 2 x + 2
0 0
0
0 100
Ans. (a) x = 1, 3i (b) x = 0, 2