Lesson 2. Matrices - Part A. Matrix Operations
Lesson 2. Matrices - Part A. Matrix Operations
Lesson 2
𝑥 + 2𝑦 = 3
4𝑥 − 5𝑦 = 6
1 2
become in matrix notation.
4 −5
1. Matrix Notation
• Similarly, the coefficients of 𝑝, 𝑞 and 𝑟 in the equations
1.3𝑝 − 2.0𝑞 + 𝑟 = 7
3.7𝑝 + 4.8𝑞 − 7𝑟 = 3
4.1𝑝 + 3.8𝑞 + 12𝑟 = −6
1.3 −2.0 1
become 3.7 4.8 −7 in matrix form.
4.1 3.8 12
1. Matrix Notation
• The numbers within a matrix are called an array and the coefficients
forming the array are called the elements of the matrix.
2 3 6
• Thus, is a ‘2 by 3’matrix.
4 5 7
1. Matrix Notation
• Matrices cannot be expressed as a single numerical value, but they
can often be simplified or combined, and unknown element values
can be determined by comparison methods.
1. Addition of Matrices.
2. Subtraction of Matrices.
3. Multiplication of Matrices.
3. Multiplication of Matrices.
3. Multiplication of Matrices.
• Two matrices 𝐴 and 𝐵 may be multiplied together,
provided the number of elements in the rows of matrix 𝐴
are equal to the number of elements in the columns of
matrix 𝐵.
• In general terms, when multiplying a matrix of dimensions
(𝑚 by 𝑛) by a matrix of dimensions (𝑛 by 𝑟), the resulting
matrix has dimensions (𝑚 by 𝑟).
• Thus, a 2 by 3 matrix multiplied by a 3 by 1 matrix gives a
matrix of dimensions 2 by 1.
2. Addition, subtraction and multiplication of matrices
3. Multiplication of Matrices.
𝐴11 𝐴12 𝐵11 𝐵12
• Let 𝐴 = and 𝐵 =
𝐴21 𝐴22 𝐵21 𝐵22
𝑪𝟏𝟏 𝐶12
• Let 𝐶 = 𝐴 × 𝐵 where 𝐶 =
𝐶21 𝐶22
• 𝑪𝟏𝟏 = 𝑨𝟏𝟏 × 𝑩𝟏𝟏 + 𝑨𝟏𝟐 × 𝑩𝟐𝟏
• 𝐶12 = 𝐴11 × 𝐵12 + 𝐴12 × 𝐵22
• 𝐶21 = 𝐴21 × 𝐵11 + 𝐴22 × 𝐵21
• 𝐶22 = 𝐴21 × 𝐵12 + 𝐴22 × 𝐵22
2. Addition, subtraction and multiplication of matrices
3. Multiplication of Matrices.
𝐴11 𝐴12 𝐵11 𝐵12
• Let 𝐴 = and 𝐵 =
𝐴21 𝐴22 𝐵21 𝐵22
𝐶11 𝑪𝟏𝟐
• Let 𝐶 = 𝐴 × 𝐵 where 𝐶 =
𝐶21 𝐶22
• 𝐶11 = 𝐴11 × 𝐵11 + 𝐴12 × 𝐵21
• 𝑪𝟏𝟐 = 𝑨𝟏𝟏 × 𝑩𝟏𝟐 + 𝑨𝟏𝟐 × 𝑩𝟐𝟐
• 𝐶21 = 𝐴21 × 𝐵11 + 𝐴22 × 𝐵21
• 𝐶22 = 𝐴21 × 𝐵12 + 𝐴22 × 𝐵22
2. Addition, subtraction and multiplication of matrices
3. Multiplication of Matrices.
𝐴11 𝐴12 𝐵11 𝐵12
• Let 𝐴 = and 𝐵 =
𝐴21 𝐴22 𝐵21 𝐵22
𝐶11 𝐶12
• Let 𝐶 = 𝐴 × 𝐵 where 𝐶 =
𝑪𝟐𝟏 𝐶22
• 𝐶11 = 𝐴11 × 𝐵11 + 𝐴12 × 𝐵21
• 𝐶12 = 𝐴11 × 𝐵12 + 𝐴12 × 𝐵22
• 𝑪𝟐𝟏 = 𝑨𝟐𝟏 × 𝑩𝟏𝟏 + 𝑨𝟐𝟐 × 𝑩𝟐𝟏
• 𝐶22 = 𝐴21 × 𝐵12 + 𝐴22 × 𝐵22
2. Addition, subtraction and multiplication of matrices
3. Multiplication of Matrices.
𝐴11 𝐴12 𝐵11 𝐵12
• Let 𝐴 = and 𝐵 =
𝐴21 𝐴22 𝐵21 𝐵22
𝐶11 𝐶12
• Let 𝐶 = 𝐴 × 𝐵 where 𝐶 =
𝐶21 𝑪𝟐𝟐
• 𝐶11 = 𝐴11 × 𝐵11 + 𝐴12 × 𝐵21
• 𝐶12 = 𝐴11 × 𝐵12 + 𝐴12 × 𝐵22
• 𝐶21 = 𝐴21 × 𝐵11 + 𝐴22 × 𝐵21
• 𝑪𝟐𝟐 = 𝑨𝟐𝟏 × 𝑩𝟏𝟐 + 𝑨𝟐𝟐 × 𝑩𝟐𝟐
Example 7.
2 3 −5 7
If 𝐴 = ,𝐵= , find 𝐴 × 𝐵
1 −4 −3 4
3 4 0 2
Example 8. Simplify −2 6 −3 × 5
The sum of the products of the elements
of each row of the first matrix and the
elements of the second matrix, called a
7 −4 1 −1
column matrix, are taken one at a time.
3 4 0 2 −5
Example 9. If 𝐴 = −2 6 −3 and 𝐵 = 5 −6 ,
7 −4 1 −1 −7
find 𝐴 × 𝐵 The sum of the products of the elements of each row of the first matrix and the
elements of each column of the second matrix are taken one at a time.
1 0 3 2 2 0
Example 10. Determine 2 1 2 × 1 3 2
The sum of the products of the elements of each row
of the first matrix and the elements of each column 1 3 1 3 2 0
of the second matrix are taken one at a time.
2. Addition, subtraction and multiplication of matrices
3. Multiplication of Matrices.
• In algebra, the commutative law of multiplication
states that 𝑎 × 𝑏 = 𝑏 × 𝑎.