Mathematics Department (MD) Centre For Foundation Studies and Extension Education (Fosee)
Mathematics Department (MD) Centre For Foundation Studies and Extension Education (Fosee)
(MD)
PMT 0055
IT Mathematics II
Foundation in IT
ONLINE NOTES
Chapter 1
MATRICES
OBJECTIVES:
1. Understand the definitions of terms that usually used in matrices.
2. Be able to solve systems of linear equations.
Contents:
1. Matrix Operations
2. Determinants
3. Cramer’s Rule
4. Inverses of Matrices
5. Solving Systems of Linear Equations Using Inverses
1. Matrix Operations
Definition:
A matrix is a rectangular array of numbers denoted by
a11 a12 a1n
a a 22 a 2 n
A a ij 21 aij is called an entry /element.
a m1 a m 2 a mn
Equality of Matrices
Definition:
Two matrices Amn aij and Bmn bij are equal if and only if
aij bij for i 1,2,..., m and j 1,2,.., n .
Example:
NLN 2/14
PMT0055 IT Mathematics II_________ Chapter 1
1 2 1 1 2 w
The matrices A 2 3 4 and B 2 x 4
0 4 5 y 4 z
are equal (A = B), if and only if w = -1, x = - 3, y = 0, and z = 5.
Matrix Addition and Subtraction
Definition:
If Amn a ij and Bmn bij , then
A B a ij bij
and A B a ij bij for i 1,2,..., m and j 1,2,.., n .
Example:
1 2 3 0 2 1
Let A and B
2 1 4
1 3 4
1 0 4 1 4 2
Then, A B 3 2 0 and A B
1 4 8
Scalar Multiplication
Definition:
If Amn a ij and c is a real number, then the scalar multiple of A by c,
cA ca ij for i 1,2,..., m and j 1,2,.., n .
Example:
1 2 3
Let A 2
1 4
1 2 3 2 4 6
Then 2 A 2
2 1 4 4 2 8
Matrix Multiplication
Note:
AB is defined only when the number of columns of A is the same as the number of
rows of B, i.e., Amn Bn p Cm p
AB BA
NLN 3/14
PMT0055 IT Mathematics II_________ Chapter 1
Example:
p
1. a b c 13 q ap bq cr 11
r 31
2
a b c 2a 3b 4c
2. d e f 3
23 4 2d 3e 4 f 21
31
a b p q r
3. A B
c d 22
s t u 23
ap bs aq bt ar bu
AB
cp ds cq dt cr du 23
Transpose of a Matrix
Definition:
If Amn a ij , then the transpose of A, AT is the n m matrix defined by
T
AT aij a ji
Thus the transpose of A is obtained from A by interchanging the rows and columns of A.
Example:
1 3
1 2 1
If A , then AT 2 2 .
3 2 7 23 1 7 32
NLN 4/14
PMT0055 IT Mathematics II_________ Chapter 1
Properties of Transpose:
If A and B are matrices, and c is a scalar, then
a) ( AT )T A
b) ( A B)T AT BT
c) ( AB)T B T AT
d) (cA) T cAT
2. Determinants
Determinant of a 2 2 matrix
Definition:
NLN 5/14
PMT0055 IT Mathematics II_________ Chapter 1
a1 b1
If A is a square matrix of order 2, then
a 2 b2
a b1
A 1 a1b2 a 2 b1 .
a 2 b2
2 1
1. ( 2)( 4) (1)(3) 8 3 11
3 4
3 2
2. (3)(1) ( 2)( 2) 3 4 1
2 1
1 0
3. (1)(1) (0)(0) 1
0 1
x 0
4. ( x)(1) (0)( y ) x
y 1
Determinant of an n n matrix
With entry a21 , we delete the entries in row 2 and column 1, leaving the matrix of order
a12 a13
2 as follows: a
32 a33
NLN 6/14
PMT0055 IT Mathematics II_________ Chapter 1
a11 a12
and Minor of a 23 a11 a32 a31 a12
a31 a32
Examples:
2 1
a12 a13
1. Cofactor of the entry a21 , c 21 (1) ( 1)(a12 a33 a13 a32 )
a32 a33
31
a12 a13
2. Cofactor of the entry a31 , c31 (1) (1)(a12 a 23 a13 a 22 )
a 22 a 23
Note: The only difference between a cofactor and a minor is the factor (1) i j .
To find the determinant of any square matrix A of order n (n > 2), select any row (or
column) of A and multiply each entry in the row (column) by its cofactor. The sum of
these products is defined to be the determinant of A and is called a determinant of
order n.
Example:
Evaluating a Determinant of Order 3 by Using Cofactors.
12 1 3
Find A if A 3 1 1
10 2 3
Solution:
1. By choosing the first row,
1 1
c11 ( 1)11 (1)( 3) ( 1)(2) 1
2 3
3 1
c12 ( 1)1 2 [(3)(3) ( 1)(10)] 1
10 3
3 1
c13 ( 1)13 ( 3)(2) (1)(10) 4
10 2
Thus,
A a11c11 a12 c12 a13c13
(12)(1) (1)(1) (3)( 4)
1
NLN 7/14
PMT0055 IT Mathematics II_________ Chapter 1
3 1
c13 ( 1)13 ( 3)(2) (1)(10) 4
102
23
12 1
c23 (1) [(12)(2) ( 1)( 10)] 14
10 2
12 1
c33 ( 1) 33 (12)(1) ( 1)( 3) 9
3 1
Thus,
A a13c13 a23c23 a33c33
(3)(4) ( 1)(14) ( 3)(9)
1
Properties:
1. If each of the entries in a row (or column) of A is 0, then A 0.
2. If two rows (or columns) of A are identical, A 0.
3. The determinant of the product of two matrices of order n is the product of their
determinants, that is AB A B .
4. The determinant of a square matrix and the determinant of its transpose are equal, that
is A AT
3. Cramer’s Rule
Cramer’s Rule
If a1 x b1 y c1 z d1
a 2 x b2 y c 2 z d 2
a3 x b3 y c3 z d 3
then,
NLN 8/14
PMT0055 IT Mathematics II_________ Chapter 1
Dx Dy Dz
x , y and z
D D D
where
a1 b1 c1
D a2 b2 c2 0
a3 b3 c3
d1 b1 c1 a1 d1 c1 a1 b1 d1
Dx d 2 b2 c2 , D y a2 d2 c2 , D z a 2 b2 d2
d3 b3 c3 a3 d3 c3 a 3 b3 d3
4. Inverses of Matrices
Example:
1 0 0
1 0
I2 ; I 3 0 1 0
0 1
0 0 1
Note:
If A a ij mn , then AI n A and I m A A .
The Multiplicative Inverse of a Matrix
Definition:
An n n matrix A is called invertible, or nonsingular, if there exists an n n matrix B
such that AB BA I n . B A 1 is called the multiplicative inverse of A.
Otherwise, A is called singular or noninvertible.
Example:
NLN 9/14
PMT0055 IT Mathematics II_________ Chapter 1
3
2 3 1
A , B 2
2 2 1 1
1 0
Since AB BA 0 1 I 2 , B is an inverse of A, B A 1 .
Theorems:
a b
If A
c d
Then, the inverse of a matrix is given by
1 d b
A 1 where ad bc 0
ad bc c a
If ad bc 0 , then A is singular, matrix A has no multiplicative inverse.
Example:
1 2
Let A 3 7 . Find A1 .
Solution:
NLN 10/14
PMT0055 IT Mathematics II_________ Chapter 1
1
A 1 Cofactors of A T
1
A
c ij T
c11 c 21 c 31
1
c12 c 22 c 32
A
c13
c 23
c 33
Example:
3 2 1
Find A 1
if it is invertible, given that A 5 6 2 .
1 0 3
Solution:
Hence,
18 6 10
adj A 17 10 1
6 2 28
NLN 11/14
PMT0055 IT Mathematics II_________ Chapter 1
Recall:
- A system of equations is a collection of two or more equations, each
containing one or more variables
- A solution of a system of equations consists of values for the variables that
reduce each equation of the system to a true statement.
- To solve a system of equations means to find all solutions of the system.
- When a system of equations has at least one solution, it is said to be
consistent; otherwise, it is called inconsistent.
Linear system:
AX B where A is n n matrix
NLN 12/14
PMT0055 IT Mathematics II_________ Chapter 1
A 1 AX A 1 B
I n X A 1 B
X A 1 B
Examples:
Solve the following system by using the inverse:
2 x 8z 8
x 4 y 36
2x y 9
Solution:
We define:
2 0 8 x 8
A 1 4 0 X y B 36
2 1 0 z 9
1
X A 1 B adjA B
A
So, we need to find the cofactor matrix of matrix A and the determinant of matrix A:
0 0 9
Cofactors of A cij 8 16 2
32 8 8
0 8 32
adj A cij T
0 16 8
9 2 8
Det (A) = A 0( 2) 0(0) ( 9)(8) 72
x 0
y 9
z 1
x = 0 , y = 9 , and z = 1 .
NLN 13/14
PMT0055 IT Mathematics II_________ Chapter 1
NLN 14/14