3 Matrices
3 Matrices
A matrix which has only one row (𝒎 = 𝟏) is called a row matrix or row vector.
𝑪 = −𝟏 𝟒 𝟐 𝟑
Two matrices 𝑨 and 𝑩 of order 𝒎 × 𝒏 are equal matrices if and only if their
corresponding elements are equal. That is, 𝑨 = 𝑩 if 𝒂𝒊𝒋 = 𝒃𝒊𝒋 .
𝒘 = 𝟏; 𝒙 = −𝟏; 𝒚 = 𝟎; 𝒛 = −𝟑.
𝟐𝒙 𝒚 −𝟒 𝟔
Example 2. Given the statement = .
𝒛−𝟏 𝒘 𝟏 𝟑
𝒛−𝟏= 𝟏 𝒚 = 𝟔;
𝟐𝒙 = −𝟒
𝒙 = −𝟐 𝒛=𝟐 𝒘=𝟑
Operations on Matrices
1. Addition/Subtraction of Matrices
The sum/difference of two matrices of equal order is obtained by
adding/subtracting corresponding elements.
𝑨 + 𝑩 = 𝒂𝒊𝒋 + 𝒃𝒊𝒋 𝑨 − 𝑩 = 𝒂𝒊𝒋 − 𝒃𝒊𝒋
𝟎 𝟏 + −𝟏 −𝟐 + 𝟐 (−𝟏)
𝑨∙𝑩=
𝟑 𝟏 + −𝟑 −𝟐 + 𝟏 (−𝟏) 𝒘𝒉𝒆𝒓𝒆:
𝟎
𝒑𝟏𝟏 = 𝟎 𝟏 + −𝟏 −𝟐 + 2 (−1)
=
𝟖
𝒑𝟐𝟏 = 𝟑 𝟏 + −𝟑 −𝟐 + 𝟏 (−𝟏)
Example 5b. Given the matrices Required: Find the product 𝑨 ∙ 𝑪
−𝟐 𝟐 Since 𝑨 is 𝟐 × 𝟑 and 𝑩 is 𝟑 × 𝟐, the
𝟎 −𝟏 𝟐 𝑪= 𝟑
𝑨= −𝟓 product of the two matrices will be
𝟑 −𝟑 𝟏
𝟏 𝟒
of order 𝟐 × 𝟐.
Solution:
−𝟐 𝟐 𝒑𝟏𝟏 𝒑𝟏𝟐
𝟎 −𝟏 𝟐 𝑷= 𝒑
𝑨∙𝑪 = ∙ 𝟑 −𝟓 𝟐𝟏 𝒑𝟐𝟐
𝟑 −𝟑 𝟏
𝟏 𝟒
𝒘𝒉𝒆𝒓𝒆:
𝒑𝟏𝟏 = 𝟎 −𝟐 + −𝟏 𝟑 + 𝟐 (𝟏) = −𝟏
−𝟏 𝟏𝟑
𝑨∙𝑪=
−𝟏𝟒 𝟐𝟓 𝒑𝟐𝟏 = 𝟑 −𝟐 + −𝟑 𝟑 + 𝟏 (𝟏) = −14
𝒑𝟏𝟐 = 𝟎 𝟐 + −𝟏 −𝟓 + 𝟐 (𝟒) = 𝟏𝟑
𝒑𝟐𝟐 = 𝟑 𝟐 + −𝟑 −𝟓 + 𝟏 (𝟒) = 𝟐𝟓
Example 5c. Given the matrices Required: Find the product 𝑩∙𝑫
𝟏 Solution:
𝟏
𝑩 = −𝟐 𝑫= 𝟒 𝟐 𝟑 𝑩 ∙ 𝑫 = −𝟐 ∙ 𝟒 𝟐 𝟑
−𝟏 −𝟏
𝒑𝟏𝟏 𝒑𝟏𝟐 𝒑𝟏𝟑
𝑷 = 𝒑𝟐𝟏 𝒑𝟐𝟐 𝒑𝟐𝟑
𝒑𝟑𝟏 𝒑𝟑𝟐 𝒑𝟑𝟑 𝟒 𝟐 𝟑
𝑩 ∙ 𝑫 = −𝟖 −𝟒 −𝟔
−𝟒 −𝟐 −𝟑
𝒘𝒉𝒆𝒓𝒆:
𝟎 −𝟏 𝟐 𝟏
𝑨= 𝑩 = −𝟐
𝟑 −𝟑 𝟏
−𝟏
Solution:
Since 𝑩 is 3 × 1 and A is 2 × 3, the number of column of 𝑩 is not
equal to the number of rows of 𝑨, hence, the two matrices
cannot be multiplied.
Example 6. Find the product of the given matrices
𝟏 𝟐 𝟑 𝟔
𝑩 = 𝑪=
𝟎 −𝟓 𝟒 𝟏
Solution:
𝟏 𝟐 𝟑 𝟔
𝑩𝑪 = ∙
𝟎 −𝟓 𝟒 𝟏
𝟏 𝟑 + 𝟐(𝟒) 𝟏 𝟔 + 𝟐(𝟏)
𝑩𝑪 =
𝟎 𝟑 − 𝟓(𝟒) 𝟎(𝟔) − 𝟓(𝟏)
𝟏𝟏 𝟖
𝑩𝑪 =
−𝟐𝟎 −𝟓
Example 6. Perform the operations
−𝟏 −𝟏
a. 𝟒 − 𝟐 𝟐 𝟐 b. 𝟐 𝟒 − 𝟐 𝟐
−𝟐 −𝟐
Solutions:
−𝟏
a. 𝟒 −𝟐 𝟐 𝟐 = 𝟒 −𝟏 + −𝟐 𝟐 + 𝟐(−𝟐) = −𝟏𝟐
−𝟐
𝟏×𝟏
𝟏×𝟑 𝟑×𝟏
The Zero matrix is considered as an additive identity for the set of all
𝒎 × 𝒏 matrix.
𝟏. 𝑨 𝑩𝑪 = 𝑨𝑩 𝑪 Associative property
𝟐. 𝑨 𝑩 + 𝑪 = 𝑨𝑩 + 𝑨𝑪 Distributive property
𝟑. 𝑨 + 𝑩 𝑪 = 𝑨𝑪 + 𝑩𝑪 Distributive property
Solution:
𝟏 𝟑 𝟏 −𝟐 𝟐 𝟒 𝟏 −𝟐
𝑨𝑪 = 𝑩𝑪 =
𝟎 𝟏 −𝟏 𝟐 𝟐 𝟑 −𝟏 𝟐
𝟏 − 𝟑 −𝟐 + 𝟔 𝟐−𝟒 −𝟒 + 𝟖
= =
𝟎−𝟏 𝟎+𝟐 𝟐−𝟑 −𝟒 + 𝟔
−𝟐 𝟒 −𝟐 𝟒
𝑨𝑪 = 𝑩𝑪 =
−𝟏 𝟐 −𝟏 𝟐
−𝟏 𝟐 −𝟐
The diagonal of the square matrix are 𝑩= 𝟐 𝟏 𝟒
the elements 𝒂𝟏𝟏 , 𝒂𝟐𝟐 , 𝒂𝟑𝟑 , … , 𝒂𝒏𝒏 . −𝟑 −𝟑 𝟐
Special Types of square matrix:
𝟏 𝟎 𝟎
The identity or a unit matrix is a diagonal matrix 𝑪= 𝟎 𝟏 𝟎
whose diagonal entries are all 𝟏’s. 𝟎 𝟎 𝟏
Properties of Identity Matrix:
If 𝑨 is a matrix of size 𝒎 × 𝒏, then the following properties are true.
𝟏. 𝑨𝑰𝒏 = 𝑨
𝟐. 𝑰𝒎 𝑨 = 𝑨
If 𝑨 is a square matrix of order 𝒏, then 𝑨𝑰𝒏 = 𝑰𝒎 𝑨 = 𝑨.
𝟏 𝟎 𝟎 𝟔 𝟏 𝟔 + 𝟎 −𝟐 + 𝟎(𝟑) 𝟔
𝒃. 𝟎 𝟏 𝟎 −𝟐 = 𝟎 𝟔 + 𝟏 −𝟐 + 𝟎(𝟑) = −𝟐
𝟎 𝟎 𝟏 𝟑 𝟎 𝟔 + 𝟎 −𝟐 + 𝟏(𝟑) 𝟑
Seat work. Perform the indicated operation.
𝟑 −𝟐 𝟔
𝟏. 𝑨 = 𝟒 𝟎 𝒇𝒊𝒏𝒅 𝑰𝒎 𝑨. 𝟐. 𝑩 = −𝟐 𝒇𝒊𝒏𝒅 𝑩 ∙ 𝑰𝒏 .
−𝟏 𝟏 𝟑
𝟏 𝟎 𝟎 𝟑 −𝟐
𝑰∙𝑨 = 𝟎 𝟔 𝟔(𝟏)
𝟏 𝟎 𝟒 𝟎
𝟎 𝟎 𝟏 −𝟏 𝟏 𝑩 ∙ 𝑰 = −𝟐 𝟏 = −𝟐(𝟏)
𝟑 𝟑(𝟏)
𝟑+𝟎+𝟎 −𝟐 + 𝟎 + 𝟎
= 𝟎+𝟒+𝟎 𝟎+𝟎+𝟎
𝟎+𝟎−𝟏 𝟎+𝟎+𝟏 𝟔
𝑩 ∙ 𝑰 = 𝑩 = −𝟐
𝟑 −𝟐
𝟑
𝑰∙𝑨=𝑨= 𝟒 𝟎
−𝟏 𝟏
Transpose of a Matrix
If 𝑨 = 𝒂𝒊𝒋 , is an 𝒎 × 𝒏 matrix, then the transpose of 𝑨, 𝑨𝑻 ,
is obtained by interchanging the entries of the corresponding rows and
columns of the matrix.
𝑻
𝑨𝑻 = 𝒂𝒊𝒋 𝑨𝑻 = 𝒂𝒋𝒊
𝟑. 𝒄𝑨 𝑻
= 𝒄𝑨𝑻 Transpose of a scalar multiple
𝟒. 𝑨𝑩 𝑻
= 𝑩𝑻 𝑨𝑻 Transpose of a product
Finding the Transpose of a product
−𝟐 𝟏 𝟏 𝟑 −𝟐
𝑻 𝑻 𝑻
Example. Show that 𝑨𝑩 =𝑩 𝑨 . 𝑨= 𝟏 −𝟏 𝟐 𝑩= 𝟒 𝟎
𝟑 𝟐 −𝟑 −𝟏 𝟏
Solution:
−𝟐 𝟏 𝟏 𝟑 −𝟐 −𝟑 𝟓
𝑨𝑩 = 𝟏 −𝟏 𝟐 𝟒 𝟎 𝑨𝑩 = −𝟑 𝟎
𝟑 𝟐 −𝟑 −𝟏 𝟏 𝟐𝟎 −𝟗
−𝟐 𝟑 + 𝟏 𝟒 + 𝟏(−𝟏) −𝟐 −𝟐 + 𝟏 𝟎 + 𝟏(𝟏)
𝟏 𝟑 − 𝟏 𝟒 + 𝟐(−𝟏) 𝟏 −𝟐 − 𝟏 𝟎 + 𝟐(𝟏) 𝑻 −𝟑 −𝟑 𝟐𝟎
𝑨𝑩 = 𝑨𝑩 =
𝟑 𝟑 + 𝟐 𝟒 − 𝟑(−𝟏) 𝟑 −𝟐 + 𝟐 𝟎 − 𝟑(𝟏) 𝟓 𝟎 −𝟗
𝟑 𝟒 −𝟏 −𝟐 𝟏 𝟑
𝑩𝑻 𝑨𝑻 = 𝟏 −𝟏 𝟐
−𝟐 𝟎 𝟏
𝟏 𝟐 −𝟑
𝟑 −𝟐 + 𝟒 𝟏 − 𝟏(𝟏) 𝟑 𝟏 + 𝟒 −𝟏 − 𝟏(𝟐) 𝟑 𝟑 + 𝟒(𝟐) − 𝟏(−𝟑)
=
−𝟐 −𝟐 + 𝟎 𝟏 + 𝟏(𝟏) −𝟐 𝟏 + 𝟎(−𝟏) + 𝟏(𝟐) −𝟐 𝟑 + 𝟎 𝟐 + 𝟏(−𝟑)
−𝟑 −𝟑 𝟐𝟎
𝑩𝑻 𝑨𝑻 =
𝟓 𝟎 −𝟗
The Product of a Matrix and Its Transpose
−𝟑 𝟏
Example. Given the matrix 𝑨 = −𝟐 𝟐 ,
𝟐 𝟑
find the product 𝑨𝑨𝑻 and show that it is symmetric.
Solution:
−𝟑 𝟏 𝟗+𝟏 𝟔+𝟐 −𝟔 + 𝟑 𝟏𝟎 𝟖 −𝟑
𝑨𝑨𝑻 = −𝟐 −𝟑 −𝟐 𝟐
𝟐 = 𝟔+𝟐 𝟒+𝟒 −𝟒 + 𝟔 = 𝟖 𝟖 𝟐
𝟏 𝟐 𝟑
𝟐 𝟑 −𝟔 + 𝟑 −𝟒 + 𝟔 𝟒+𝟗 −𝟑 𝟐 𝟏𝟑
𝟏𝟎 𝟖 −𝟑
𝑻 𝑻
𝑨𝑨 = 𝟖 𝟖 𝟐
−𝟑 𝟐 𝟏𝟑
𝑻
it follows that product 𝑨𝑨𝑻 = 𝑻
𝑨𝑨 , so 𝑨𝑨𝑻 is symmetric.
Quiz 2.
𝟑 𝟒 𝟏
Given the matrix 𝑨 = ,
𝟐 −𝟐 −𝟏