Matrices Lecture 105458
Matrices Lecture 105458
1 1 i
D
3 2i 7
C 1 8 2
Matrix C is a row matrix of order 1 3
2
B 1
2
Matrix B is a column matrix of order 3 1 .
Row and column matrices are sometimes called row
vector and column vector.
Rectangular matrix:
A matrix in which number of rows is not equal to
the number of columns ( m ≠ 𝑛 ) is called a
rectangular matrix.
For example:
3 7
1 7 3 2
B 1 3 E
3 9 1 5
8 2
m≠𝑛 m≠𝑛
3≠2 𝟐 ≠4
Both matrices are rectangular.
Horizontal Matrix:
A m n rectangular matrix in which the number of rows is
less than the number of its columns (m < n) is called a
horizontal matrix.
For example:
1 7 3 2
E
3 9 1 5
k when i j
a Scalar matrix if aij
0 when i j
k being a constant.
1 when i j
an identity matrix if aij
0 when i j
Upper And Lower Triangular Matrices:
6 1 3
0 2 1
is a upper triangular matrix
0 0 7
6 0 0
3 2 0
is a lower triangular matrix.
4 5 7
NOTE: The upper triangular and Lower triangular
matrices may be defined in double subscript notation as
follow:
Let 𝐴 = (𝑎𝑖𝑗 ) be a square matrix. Then A is called
i. a upper triangular matrix if 𝑎𝑖𝑗 = 0 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑖 > 𝑗
ii. a lower triangular matrix if 𝑎𝑖𝑗 = 0 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑖 < 𝑗
𝑎𝑖𝑗 = 0 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑖 > 𝑗
a11 a12 a13 a11 a12 a13
A a21 a22 a23 A 0 a22 a23
a31 a32 a33 0 0 a33
Trace Of Matrix:
The sum of the diagonal elements of a matrix is called the
trace of the matrix.
For example:
1 0 4
A 0 3 5
0 0 2
Sol:
According to the equality of matrices, the elements of one
matrix will be equal to the corresponding elements of other
matrix.
Hence x – 3 = -1. y + 7 = 2 and z – 1 = -6
After solving these equations, we have
x=2; y = -5 and z = -5
Operations on Matrices
Following are the fundamental operations on the matrices.
1. Addition of Matrices:
If A and B are two matrices of the same dimension (order or
size ) 𝑚 × 𝑛 then their sum (A + B) is an 𝑚 × 𝑛 matrix C
such that each element of C is the sum of the corresponding
elements of A and B.
For example:
If 1 2 5 10
A and B
3 4 7 11
Then
1 5 2 10 6 12
C A B
3 7 4 11 4 15
2. Subtraction of Matrices
If A and B are two matrices of the same dimension
(order or size ) 𝑚 × 𝑛 then their difference (A – B) is
an 𝑚 × 𝑛 matrix C such that each element of C is
obtained by subtracting the elements of B from the
corresponding elements of A.
For Example;
If 13 2 5 10
A and B
30 14 7 11
Then
13 5 2 10 8 12
C A B
30 ( 7) 14 11 37 3
3. Scalar Multiplication of a Matrix
If K is any scalar then each element of the matrix
multiplied by that scalar.
Example: 1 2 3 15 2 1
A ,B
Let 4 5 6 3 7 4 Find 2A+3B.
Sol: Here 2 and 3 are scalars multiplied with A and B
respectively.
1 2 3 15 2 1
2 A 3B 2 3
4 5 6 3 7 4
2 4 6 45 6 3
2 A 3B
8 10 12 9 21 12
2 45 4 6 6 3 43 2 9
2 A 3B
8 9 10 21 12 12 1 11 24
4. Multiplication of Two Matrices
Let 𝐴 = [𝑎𝑖𝑗 ] be a matrix of order of m × 𝑝 and
B = [𝑏𝑖𝑗 ] be a matrix of order q × 𝑛 . Then their
product AB of order m × 𝑛 defined, only if the
number of columns in A is equal to the number of
rows in B i.e. only if p = q.
For Example: 1 2 1 2 3
A3 4 and B
4 5 6
Here, No. of Columns of A= No of Rows of B,
hence matrix multiplication is possible.
Example: if 1 2 1 2 3
A and B
3 4 4 5 6
Then solve AB.
Solution: Here, No. of Columns of A= No of Rows of B,
hence matrix multiplication is possible
𝟏 𝟐 𝟏 𝟐 𝟑
𝑨𝑩 =
𝟑 𝟒 𝟒 𝟓 𝟔
𝟏×𝟏+𝟐×𝟒 𝟏×𝟐+𝟐×𝟓 𝟏×𝟑+𝟐×𝟔
=
𝟑×𝟏+𝟒×𝟒 𝟑×𝟐+𝟒×𝟓 𝟑×𝟑+𝟒×𝟔
𝟏+𝟖 𝟐 + 𝟏𝟎 𝟑 + 𝟏𝟐
=
𝟑 + 𝟏𝟔 𝟔 + 𝟐𝟎 𝟗 + 𝟐𝟒
𝟗 𝟏𝟐 𝟏𝟓
=
𝟏𝟗 𝟐𝟔 𝟑𝟑
IMPORTANT NOTES:
Two matrices are said to be confirmable for addition or
subtraction if and only if they have the same order.
AB = BA.
4 2 4
3 A 4 B 5 4 9
3 3 6
Example: Let 1 3 0 2 3 4
A 1 2 1 and B 1 2 3
0 0 2 1 1 2
From the product AB and BA, Show that 𝐴𝐵 ≠ 𝐵𝐴.
Sol: 1 3 0 2 3 4
AB 1 2 1 1 2 3
0 0 2 1 1 2
(1 2) (3 1) (0 1) (1 3) (3 2) (0 1) (1 4) (3 3) (0 2)
AB ( 1 2) (2 1) (1 1) ( 1 3) (2 2) (1 1) ( 1 4) (2 3) (1 2)
(0 2) (0 1) (2 1) (0 3) (0 2) (2 1) (0 4) (0 3) (2 2)
5 9 13
AB 1 2 4
2 2 4
Now BA,
2 3 4 1 3 0
BA 1 2 3 1 2 1
1 1 2 0 0 2
(2 1) (3 1) (4 0) (2 3) (3 2) (4 0) (2 0) (3 1) (4 2)
AB (1 1) (2 1) (3 0) (1 3) (2 2) (3 0) (1 0) (2 1) (3 2)
( 1 1) (1 1) (2 0) ( 1 3) (1 2) (2 0) ( 1 0) (1 1) (2 2)
1 12 11
AB 1 7 8
2 1 5
(𝑨𝒕 )𝒕 = 𝑨
(𝒌𝑨)𝒕 = 𝒌𝑨𝒕
(𝑨𝑩)𝒕 = 𝑩𝒕 𝑨𝒕
(𝑨 + 𝑩)𝒕 = 𝑨𝒕 + 𝑩𝒕
Proof:
Let A and B be 𝑚 × 𝑛 matrices. Then by definition
𝐴 + 𝐵 = 𝑎𝑖𝑗 + 𝑏𝑖𝑗 be 𝑚 × 𝑛 matrix, hence (𝑨 + 𝑩)𝒕 will
be n × 𝑚 matrix. Now
𝑖 , 𝑗 𝑡ℎ element of (𝑨 + 𝑩)𝒕 = 𝑗 , 𝑖 𝑡ℎ element of (𝑨 + 𝑩)
= 𝑎𝑗𝑖 + 𝑏𝑗𝑖
= 𝑖 , 𝑗 𝑡ℎ element of A
Hence (𝑨𝒕 )𝒕 = 𝑨
𝒕 𝒕 𝒕
(𝑨𝑩) = 𝑩 𝑨
Proof:
Let 𝐴 = 𝑎𝑖𝑗 be 𝑚 × 𝑛 matrix and B = 𝑏𝑖𝑗 be an n × 𝑝 matrix.
Then AB is of order 𝑚 × 𝑝 and so (𝑨𝑩)𝒕 is of order p × 𝑚.
Now 𝑩𝒕 is of order p × 𝑛 and 𝑨𝒕 is of order 𝑛 × 𝑚
Hence 𝑩𝒕 𝑨𝒕 is of order p × 𝑚
𝑖 , 𝑗 𝑡ℎ element of (𝑨𝑩)𝒕 = 𝑗 , 𝑖 𝑡ℎ element of AB
= 𝒏𝒌=𝟏 𝒂𝒋𝒌 𝒃𝒌𝒊
𝑖 , 𝑗 𝑡ℎ element of 𝑩𝒕 𝑨𝒕 = sum of the products of the corresponding
elements if 𝒊𝒕𝒉 row of 𝑩𝒕 and 𝒋𝒕𝒉 column of 𝑨𝒕
= sum of the products of the corresponding
elements if 𝒊𝒕𝒉 column of B and 𝒋𝒕𝒉 row of A
= 𝒏𝒌=𝟏 𝒂𝒋𝒌 𝒃𝒌𝒊
Hence (𝑨𝑩)𝒕 = 𝑩𝒕 𝑨𝒕
Conjugate of a Matrix
A complex matrix obtained by replacing its elements by their
corresponding complex conjugate is called the conjugate of A
and is denoted by 𝐴 .
For Example:
2 3i 4 5i 2 3i 4 5i
A 0 4i 8 then A 0 4i 8
4 3i 0 7 3i 4 3i 0 7 3i
A.B A.B
k. A k . A where k is a scalar, real or complex
A A
A A real matrix
5 1 3 5 3 14
AB 1 2 5
AB 3 2 6
t
14 5 0 3 6 0