Matrices
Matrices
x +3 y + 4 z +5t =0
4 x+9 y +7 z +6t =0
3 x + 6 y + 11 z + 2 t = 0
Now we arrange the coefficients of x, y, z
and t of the above equations and enclose
them within brackets and we get
⎡1 3 4 5 ⎤
⎢
A = ⎢4 9 7 6⎥ ⎥
⎢⎣3 6 11 2⎥⎦
The above system of numbers arranged in
a rectangular array in rows and columns
and bounded by the brackets is called a
matrix.
A matrix having m rows and n columns is
called as m × n (i.e. ‘m by n’) matrix and is
referred to as having order m × n.
For example,
⎡1 3 4 5 ⎤
⎢4 9 7 6⎥
⎢ ⎥
⎢⎣3 6 11 2⎥⎦
We write it Ai j .
Thus,
⎡ a11 a12 a13 .... .... a1 j ⎤
⎢a a22 a23 .... .... a2 j ⎥⎥
⎢ 21
⎢ a31 a32 a33 .... .... a3 j ⎥
Ai j =⎢ ⎥
⎢ .... .... .... .... .... .... ⎥
⎢ .... .... .... .... .... .... ⎥
⎢ ⎥
⎢⎣ai 1 ai 2 ai 3 .... .... ai j ⎥⎦
For example,
[6 9], [1 2 3], [a b c d x]
are all row matrices.
• Column Matrix
A column matrix consists of 1 column only.
For example
⎡6 ⎤
⎢ 2⎥
,
⎢ ⎥
⎢⎣9⎥⎦
⎡0 0⎤
[ 0] , [ 0 0] , ⎢ 0 0 ⎥
⎣ ⎦
are all null matrices.
• Square Matrix
A matrix in which number of column
equals number of rows is called a square
matrix.
For example,
⎡1 3 5⎤
⎢6 7 9 ⎥ , ⎡ 2 5 ⎤
⎢ ⎥ ⎢9 2 ⎥
⎢⎣2 5 2⎥⎦ ⎣ ⎦
is a diagonal matrix.
• Unit or Identity Matrix
A square matrix with 1’s on the main
diagonal and 0’s elsewhere is called a unit
or identity matrix.
For example,
⎡1 0 0⎤
⎡1 0⎤ ⎢ ⎥
⎢0 1⎥ , ⎢0 1 0⎥
⎣ ⎦ ⎢0 0 1⎥
⎣ ⎦
(denoted by I2 and I3 respectively).
are unit matrices of order (2 × 2) and (3 ×
3), respectively.
• Symmetric Matrix
A square matrix [ai j ] is symmetric:
If ai j = a j i . ( for all i, j = 1, 2, . . . , n).
For example,
⎡1 2 9⎤
⎢ 2 7 6⎥
⎢ ⎥
⎢⎣9 6 5⎥⎦
Note that it is symmetrical about the
leading diagonal.
• Skew Symmetric Matrix
A square matrix [ai j ] is skew-symmetric
matrix,
If ai j = − a j i . (for all i, j = 1, 2, . . . , n).
For example,
⎡0 2 9⎤
⎢ − 2 0 6⎥
⎢ ⎥
⎢⎣− 9 − 6 0⎥⎦
is an example of a skew-symmetric matrix.
• Triangular Matrix
A square matrix all of whose elements
below the leading diagonal are zero, is
called an upper triangular matrix.
⎡1 6 2⎤
⎢0 9 5⎥
⎢ ⎥
⎢⎣0 0 2⎥⎦
is an example of upper triangular matrix,
whereas
A square matrix, all of whose elements
above the leading diagonal are zero, is
called a lower triangular matrix.
⎡1 0 0⎤
⎢ 6 2 0⎥
⎢ ⎥
⎢⎣2 9 6⎥⎦
is an example of lower triangular matrix.
• Equal Matrices
If A = [a i j ]m× n and B = [bi j ]m× n ,
then A = B
and j = 1, 2, . . . , n .
Two matrices are said to be equal if
corresponding elements throughout are
equal. Therefore, the matrices must also
be of the same order.
So if, ⎡ a11 a12 a13 ⎤ ⎡ 4 5 6⎤
⎢a ⎥ ⎢
a23 ⎥ = ⎢7 8 9⎥⎥
⎢ 21 a22
⎢⎣a31 a32 a33 ⎥⎦ ⎢⎣1 0 2⎥⎦
⎡2 4 9⎤
Then A = ⎢
T
⎥
⎣ 3 6 2 ⎦
Note that
for a symmetric matrix A = AT, whereas
for a skew-symmetric matrix A = − AT,
A being a square matrix.
ORTHOGONAL MATRIX
AA = I
T
Addition and Subtraction of Matrices
⎡4 9 6⎤ ⎡3 5 6⎤ ⎡ 7 14 12⎤
⎢6 2 5⎥ + ⎢4 4 3⎥ = ⎢10 6 8 ⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
and
⎡ 4 9 6 ⎤ ⎡ 3 5 6 ⎤ ⎡1 4 0 ⎤
⎢ 6 2 5 ⎥ − ⎢ 4 4 3⎥ = ⎢ 2 − 2 2 ⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦
MULTIPLICATION OF A MATRIX BY A SCALAR
For example, if ⎡3 2 6⎤
⎢
A = ⎢1 2 5⎥ ⎥
⎢⎣9 3 0⎥⎦
then
⎡15 10 30⎤
5 A = ⎢⎢ 5 10 25⎥⎥
⎢⎣45 15 0 ⎥⎦
MULTIPLICATION OF TWO MATRICES
• Two matrices A and B can be multiplied only if
the number of columns of matrix A is equal to
the number of rows in matrix B.
⎡ 2 3 6⎤
• and B=⎢ ⎥
⎣9 2 5 ⎦
⎡2 7 ⎤
⎢ ⎥ ⎡ 2 3 6⎤
• then A B = ⎢1 2 ⎥ ⎢ ⎥
⎢⎣3 1 ⎥⎦ ⎣ 9 2 5⎦
• Now ⎡2 7 ⎤
⎢ ⎥ ⎡ 2 3 6⎤
A B = ⎢1 2 ⎥ ⎢ ⎥
⎢⎣3 1 ⎥⎦ ⎣ 9 2 5⎦
⎡2 × 2 + 7 × 9 2 × 3 + 7 × 2 2 × 6 + 7 × 5⎤
⎢
= ⎢1 × 2 + 2 × 9 1 × 3 + 2 × 2 1 × 6 + 2 × 5 ⎥ ⎥
⎢⎣ 3 × 2 + 1 × 9 3 × 3 + 1 × 2 3 × 6 + 1 × 5 ⎥⎦
⎡67 20 47 ⎤
⎢
= ⎢20 7 16 ⎥ ⎥
⎢⎣15 11 23⎥⎦
• In general AB ≠ BA.
• For example,
⎡3 2 ⎤ ⎡1 2 ⎤
• A=
⎢ 1 0 ⎥ and B = ⎢ 3 1 ⎥ ,
⎣ ⎦ ⎣ ⎦
⎡9 8 ⎤ ⎡ 5 2⎤
• AB = ⎢ ⎥ and BA = ⎢ ⎥ .
⎣ 1 2 ⎦ ⎣ 10 6 ⎦
⎡1 0 ⎤
• Also AI = IA = A where I =⎢ ⎥ .
⎣0 1 ⎦
• Example:
⎡0 1 2⎤ ః Obtain the
⎢
• If, A = ⎢1 2 3 ⎥
⎥
product AB and
⎢⎣ 2 3 4 ⎥⎦ explain why BA is
not defined. Also
show that:
⎡ 1 - 2⎤ (AB)T = BT AT.
⎢ ⎥
• and B = ⎢-1 0 ⎥
⎢⎣ 2 -1 ⎥⎦
• Solution:
⎡0 1 2⎤ ⎡ 1 - 2⎤
A B = ⎢⎢ 1 2 3 ⎥⎥ ⎢⎢ -1 0 ⎥⎥
•
⎢⎣ 2 3 4 ⎥⎦ ⎢⎣ 2 -1 ⎥⎦
⎡ 0 × 1 + 1 × (- 1) + 2 × 2 0 × (- 2) + 1 × 0 + 2 × (- 1) ⎤
= ⎢⎢1 × 1 + 2 × (- 1) + 3 × 2 1 × (- 2) + 2 × 0 + 3 × (- 1) ⎥⎥
⎢⎣ 2 × 1 + 3 × (- 1) + 4 × 2 2 × (- 2) + 3 × 0 + 4 × (- 1) ⎥⎦
• Since the number of columns of B is 2, and the
number of rows of A is 3, therefore, BA is not
defined.
⎡0 1 2⎤
⎡ 1 −1 2 ⎤
A T = ⎢⎢1 2 3 ⎥⎥ and B =⎢
T
Now ⎥
⎢⎣ 2 3 4 ⎥⎦ ⎣ −2 0 −1⎦
then
T ⎡1×0+(-1)×1+2×2
T 1×1+(-1)×2+2×3 1×2 +(-1) ×3+ 2×4⎤
B A =⎢ ⎥
⎣(-2)×0+0×1+(-1)×2 (-2)×1+0×2+(-1)×3 (-2)×2+0×3+(-1)×4 ⎦
⎡ 3 5 7⎤
and T ⎡3 5 7⎤
=⎢ ⎥ (AB) = ⎢ ⎥
⎣-2 -5 -8 ⎦ ⎣ -2 -5 -8 ⎦
• Evaluate A 2 - 3 A + 9 I ,
⎡ 3 −6 9 ⎤
⎢
=⎢ 6 9 − 3⎥⎥
⎢⎣− 9 3 6 ⎥⎦
⎡ 1 −2 3 ⎤ ⎡− 12 − 5 11 ⎤
⎢ 1 ⎥⎥
3 A = 3 ⎢⎢ 2 3 −1⎥⎥ = ⎢ 11 4
⎢⎣− 3 1 2 ⎥⎦ ⎢⎣ − 7 11 − 6⎥⎦
⎡1 0 0⎤ ⎡9 0 0 ⎤
9 I = 9 ⎢⎢0 1 0⎥⎥ = ⎢0 9 0⎥
⎢ ⎥
⎢⎣0 0 1⎥⎦ ⎢⎣0 0 9⎥⎦
• By adding, we get
⎡− 12 − 5 11 ⎤ ⎡ 3 − 6 9 ⎤ ⎡9 0 0⎤
A2 − 3 A + 9 I = ⎢⎢ 11 4 1 ⎥⎥ − ⎢⎢ 6 9 − 3⎥⎥ + ⎢⎢0 9 0⎥⎥
⎢⎣ − 7 11 − 6⎥⎦ ⎢⎣− 9 3 6 ⎥⎦ ⎢⎣0 0 9⎥⎦
⎡− 12 − 3 + 9 − 5 + 6 + 0 11 − 9 + 0 ⎤
= ⎢⎢ 11 − 6 + 0 4−9+9 1 + 3 + 0 ⎥⎥
⎢⎣ − 7 + 9 + 0 11 − 3 + 0 − 6 − 6 + 9⎥⎦
⎡− 6 1 2 ⎤
= ⎢⎢ 5 4 4 ⎥⎥
⎢⎣ 2 8 − 3⎥⎦
DETERMINANTS
• The expression
a1 b1
a2 b2
• is called a determinants of the second order and
stands for ‘ a b − a b’.
1 2 2 1
• Similarly,
a1 b1 c1
a2 b2 c2
a3 b 3 c3
• is called a determinants of third order.
• Minors and Cofactors
• The minor of an element of a determinant is the
determinant obtained by deleting the row and
column which intersect in that element.
• For example, in
a11 a12 a13
∆ = a21 a22 a23 ,
a31 a32 a33
a1 b1 c1
a2 b2 c2
a3 b3 c3
Expanding by R1 (i.e. 1st row)
b2 c2 a 2 c2 a2 b2
∆ = a1 C11 + b1 C12 + c1 C13 = a1 − b1 + c1
b3 c3 a 3 c3 a3 b3
(Here C11, C12 and C13 are the cofactors of a1, b1 and
c1 respectively.)
∆ = a1 (b 2 c3 − b3 c2 ) − b1 (a 2 c3 − a 3 c2 ) + c1 (a 2 b3 − a 3 b 2 ).
a 2 c2 a1 c1 a1 c1
∆ = b1 C12 + b2 C22 + b3 C32 = − b1 + b2 − b3
a 3 c3 a 3 c3 a 2 c2
(Here C12, C22 and C32 are the cofactors of b1, b2 and b3
respectively.)
∆ = − b1 (a 2 c3 − a 3 c2 ) + b2 (a1 c3 − a 3 c1 ) − b3 (a1 c2 − a 2 c1 )
a1 a2 a1 b1
=
b1 b2 a2 b2
(ii) If two rows (or two columns) are
interchanged, the sign of the determinant is
changed
a 2 b2 a1 b1
=−
a1 b1 a 2 b2
(iii) If two rows (or two columns) are identical,
the value of the determinant is zero.
a1 a1
=0
a2 a2
(iv) If the elements of any one row (or column) are all
multiplied by a common factor, the determinant is
multiplied by that factors
k a1 k b1 a1 b1
=k
a2 b2 a2 b2
(v) If the elements of any row (or column) are increased (or
decreased) by equal multiples of the corresponding
elements of any other row (or column), the value of the
determinant is unchanged.
a1 + k b1 b1 a1 b1
=
a2 + k b2 b2 a2 b2
Theorem: If A and B are n × n matrices, then det
(AB) = det (A) det (B).
Adjoint of A Square Matrix
• If A is a square matrix, then the minor of entry aij is
denoted by Mij and is defined to be the determinant
Mij of the submatrix that remains after the ith row and
jth column are deleted from A. The number (– 1)i + j Mij
is denoted by Cij and is called the cofactor of entry
aij.
⎡a1 a2 a3 ⎤
A = ⎢⎢b1 b2 b3 ⎥⎥
• The determinant of the square matrix ⎢⎣ c1 c2 c3 ⎥⎦
a1 a2 a3
• is | A| = ∆ = b1 b2 b3
c1 c2 c3
• The matrix formed by the co-factors of the elements
in A is matrix of co-factors from A
⎡C11 C12 C13 ⎤
⎢C C C ⎥
⎢ 21 22 23 ⎥
⎢⎣C31 C32 C33 ⎥⎦
• where
b2 b3 b1 b3
C11 = = b2 c3 − b3 c2 , C12 = − = − b1 c3 + b3 c1
c2 c3 c1 c3
b1 b2 a2 a3
C13 = = b1 c2 − b2 c1 , C21 = − = − a2 c3 + a3 c2
c1 c2 c2 c3
a1 a3 a1 a2
C22 = = a1 c3 − a3 c1 , C23 = − = − a1 c2 + a2 c1
c1 c3 c1 c2
a2 a3 a1 a3
C31 = = a2 b3 − a3 b2 , C32 = − = − a1 b3 + a3 b1
b2 b3 b1 b3
a1 a2
C33 = = a1 b2 − a2 b1
b1 b2
(3 − 4) (3 − 0) (3 − 0) i.e. −1 3 3
(− 12 + 12) (− 12 + 8) (− 9 + 6) i.e. 0 −4 −3
⎡1 0 0 ⎤
AA −1 −1
= A A = I3×3 ⎢ ⎥
= I3 = ⎢ 0 1 0 ⎥
⎢⎣0 0 1⎥⎦