Matrix multiplication is one of the fundamental yet advanced concepts of matrices. You have to be careful while you multiply matrices. It is not as easy as it sounds. You should have sound knowledge of all the basic concepts like what a matrix is, the rows and columns in a matrix, how to represent a matrix, and how to multiply matrices.
Back to school: Matrices are the groupings of numbers, variables, symbols, or expressions in a rectangular table with varied numbers of rows and columns. They are rectangular arrays with different operations like addition, multiplication, and transposition. The elements of a matrix are the numbers or entries that make up the matrix. The horizontal elements of matrices are rows, whereas the vertical elements are columns.
You can depict the number of rows and columns with the help of variables. For example, let the number of rows in matrix K be ‘m’ and the number of columns be ‘n’. Thus we can represent the matrix K as [K] m x n. Matrix is represented inside the square brackets ‘[ ]’ with the product of its rows and columns in the subscript.
Until 1812 matrix multiplication was not known to mankind. Philippe Marie Binet, a French mathematician, invented matrix multiplication in 1812 to describe linear maps with matrices. He discovered that matrix multiplication is a binary operation. Two matrices multiply to form a single matrix.
Further in this article, you shall learn the rules and major concepts for multiplying matrices.
Matrix Multiplication Formula
Example of Matrix Formula
Take A and B are two matrices,
A=[A11 A12 ⋯A1n
A21 A22 ⋯A2n
………….
Am1 Am2 ⋯Amn],
B=[B11 B12 ⋯B1n
B21 B22 ⋯B2n
………….
Bm1 Bm2 ⋯Bmn]
Matrix C = AB is denoted by
C=[C11C12…….C1c
C21C22…….C2c
……………
Ca1Ca2…….Cac]
An element in matrix C where C is the multiplication of Matrix A X B.
An element in matrix C where C is the multiplication of Matrix A X B.
Cxy=Ax1By1+….+AxbBby=∑k=1bAxkBky
For x = 1…… a and y= 1…….c
Matrix multiplication Rules
- If the number of columns in A equals the number of rows in B, then A and B’s product is defined.
- It is not necessary to define BA if AB is defined.
- Both AB and BA are defined if A and B are square matrices of the same order.
- It is not required that AB Equal BA if AB and BA are both defined.
- It is not required that one of the matrices is a zero matrix if the product of two matrices is a zero matrix.
Matrix Multiplication’s Characteristics
- In mathematics, the matrix multiplication operation has some specific characteristics. These characteristics are listed below.
- Non-Commutative: When two matrices A and B are multiplied, AB BA, indicating that matrix multiplication is non-commutative.
- Distributivity: If A, B, and C are compatible, the distributive property can be used while multiplying matrices, i.e., A (B + C) = AB + BC.
- Product with Scalar: If the matrices A and B are multiplied, then the result is AB, then c(AB) = (cA)B = A(Bc), where c is a scalar.
- Transpose: The formula (AB)T = BTAT, where T stands for the transpose, can be used to express the transpose of the product of the matrices A and B.
- Complex Conjugate: (AB)* = B*A* if A and B are complex entries.
- The multiplication of matrices is associative. If the products (AB)C and A(BC) of three matrices A, B, and C are defined, then (AB)C = A. (BC).
- Determinant: The sum of the determinants of each individual matrix equals the determinant of the product of matrices. Det (AB) = Det A Det B, for example.
Matrix Multiplication with Examples
In the introduction of this article, you read that matrix multiplication is a binary operation. This means that whenever you find the product of two or more matrices, the answer is a single matrix, which follows the initial matrices. For multiplying two matrices, their compatibility is checked. This means that two matrices must follow a set of rules to be multiplied.
These compatibility parameters are described below:
- The value of the number of columns in matrix one should be equal to the value of the number of rows in matrix 2.
- If the above condition doesn’t satisfy, the matrices cannot be multiplied.
- If the matrices are square matrices with the same order, they can be multiplied by each other.
- A square matrix of 2 x 2 cannot be multiplied with a square matrix of 3 x 3. It can be multiplied with another square matrix of 2 x 2.
Let us take an example to understand this in a better way:
Example 1: Suppose we have two matrices, K and L. The order of the matrices is given as m x n and n x o, respectively. Find whether the matrices can be multiplied or not?
Solution: We are given
Matrix 1 = [ K ] m x n
Matrix 2 = [ L ] n x o
We can see that the number of columns in matrix K equals the number of rows in matrix L. Hence the two matrices can be multiplied.
Resultant Matrix: The matrix achieved by multiplying two matrices is the resultant matrix. This matrix can be represented as:
- The name of the matrix in square brackets
- The product of the number of rows of matrix 1 with the number of columns of matrix two as the order.
Again let us look at the example mentioned above:
We know that K and L are compatible with multiplication. So the resultant matrix, say D, would be = [ D ] m x o where m = number of rows of matrix one and o = the number of columns of matrix 2.
Example 2: A matrix [ K ] 2 x 4 is multiplied by the matrix [ X ] 4 x 2. If [ Y ] is the resultant matrix, then what is the order of Y.
Solution: We are given
Matrix 1 = [ K ] 2 x 4
Matrix 2 = [ X ] 4 x 2
Since the number of columns of matrix K equals the number of rows of matrix X, K and X can be multiplied. Therefore,
Matrix Y = [ Y ] 2 x 2
The order of matrix Y is 2 x 2. Y is a square matrix.
The orientation of 2 matrices is also a crucial factor for determining the product of the matrices. If there are two matrices, K and L, then to find the product of K and L, you must first write the matrix K and then write matrix L. If you write the matrix L before matrix K, you will get a completely different matrix. Commutative law doesn’t apply during matrix multiplication. This means KL ≠ LK.
Now that we are clear with the rules for the multiplication of two matrices, let us learn how to multiply matrices.
How to Multiply Matrices?
Let us learn the stepwise procedure for multiplying two matrices. At first, you may find it confusing but when you get the hang of it, multiplying matrices is as easy as applying butter to your toast.
Step 1: Check the compatibility of the matrices given. If they are not compatible, leave the multiplication.
Step 2: Take the first row of matrix 1 and multiply it with the first column of matrix 2. Then multiply the first row of matrix 1 with the 2nd column of matrix 2. Now multiply the first row of matrix 1 with the 3rd column of matrix 2, and so on. The values obtained from these will fill the first row of the product matrix.
Step 3: Now take the second row of matrix 1 and multiply it with the first column of matrix 2 and follow the same steps as 2. This will fill the second row of the product matrix.
Step 4: Continue these steps by taking each row until the product matrix is obtained.
By multiplying rows and columns we mean that the elements present in those rows and columns will be multiplied. Remember to multiply the corresponding elements and then add the products to find the element of the product matrix.
If you aren’t sure about the steps then look at the step-by-step solved example below:
Example: Find the product of the matrices given below:
K = and L =
Solution:
Step 1: The matrix K is of the order 1 x 4 and the matrix L is of the order 4 x 2. Since the number of columns of matrix K matches the number of rows of matrix L, therefore the matrices are compatible for multiplication. The resultant matrix is of the order 1 x 2.
Step 2: Since K has only 1 row, multiply it with the first column of matrix L in this way: (2 x 4) + (4 x 5) + (1 x 4) + (7 x 3) = 51. Note how the 1st element of the row is multiplied with the 1st element of column 1, similarly to the 2nd, 3rd, and 4th. They are then added together to get the resultant matrix element.
Step 3: Likewise now multiply the 1st row with the second column of matrix L. The result will be (2 x 3) + (4 x 2) + (1 x 9) + (7 x 6) = 65.
Step 4: Arrange the result in the product matrix. Let’s suppose [ X ] is the resultant matrix; therefore, X = [51 65].
We just learned how to multiply two matrices. The next section will learn how to solve a ( 2 x 2 ) square matrix.
We just learned how to multiply two matrices. The next section will learn how to solve a ( 2 x 2 ) square matrix.
How to Multiply 2 x 2 Matrix
For multiplying matrices 2 x 2, you should be well versed with the steps mentioned in the above section. Since we are multiplying 2 square matrices of the same order, we don’t need to check the compatibility in this case. Remember that the product matrix will also be in the same order as the square matrix. Let us solve an example to understand how to multiply the matrix of 2 x 2.
Example: Multiply the square matrix
A = and B =
Step 1: Multiplying the first row of matrix A with the first column of matrix B. We get (2 x 1) + (9 x 3) = 29. Now multiplying the first row of matrix A with the second column of matrix B. We get (2 x -4) + (9 x 7) = -8 + 63 = 55.
Step 2: We will repeat step 1 but change the row of matrix A. The first and second columns of matrix B will be multiplied by row 2 of matrix A. The results are
(3 x 1) + (-7 x 3) = 3 – 21 = -18, and (3 x -4) + (-7 x 7) = -12 – 49 = -61
Step 3: Place the results properly
.
Therefore the resultant matrix, C =
Similarly, you can solve square matrices like 3 x 3, 4 x 4, and so on.
Frequently Asked Questions
Q1. What is matrix multiplication?
Ans: The process of multiplying two matrices to obtain the output as a single matrix is known as matrix multiplication. This kind of binary operation is used.
Q2. How to multiply two given matrices?
Ans: To multiply two matrices, we must first determine whether the number of rows in the first matrix and the number of columns in the second matrix are identical. The elements of the first matrix’s column and rows should now be multiplied by one another and added. Here, we must do the columns and rows dot product.
Q3. What is the result of the multiplication of the (2×3) matrix and (3×3) matrix?
Ans: The only matrix produced by multiplying the (2×3) and (33) matrices is the (2×3) matrix.
Q4. How to multiply the 3×3 matrix?
Ans: The first element is obtained by adding all the rows and columns of the first and second matrices. In a similar manner, multiply and add the column- and row-wise components of the two matrices to obtain the elements of the product of two 3×3 matrices.
Q5. How do we find the multiplication of two matrices?
Ans: The multiplication of A and B is represented as a dot matrix if A is an mn matrix and B is a PQ matrix, as in the formula: C = AB.
C will therefore be a mq matrix.
Related topics
Addition and Multiplication Using Counters & Bar-Diagrams
Introduction: We can find the solution to the word problem by solving it. Here, in this topic, we can use 3 methods to find the solution. 1. Add using counters 2. Use factors to get the product 3. Write equations to find the unknown. Addition Equation: 8+8+8 =? Multiplication equation: 3×8=? Example 1: Andrew has […]
Read More >>Dilation: Definitions, Characteristics, and Similarities
Understanding Dilation A dilation is a transformation that produces an image that is of the same shape and different sizes. Dilation that creates a larger image is called enlargement. Describing Dilation Dilation of Scale Factor 2 The following figure undergoes a dilation with a scale factor of 2 giving an image A’ (2, 4), B’ […]
Read More >>How to Write and Interpret Numerical Expressions?
Write numerical expressions What is the Meaning of Numerical Expression? A numerical expression is a combination of numbers and integers using basic operations such as addition, subtraction, multiplication, or division. The word PEMDAS stands for: P → Parentheses E → Exponents M → Multiplication D → Division A → Addition S → Subtraction Some examples […]
Read More >>System of Linear Inequalities and Equations
Introduction: Systems of Linear Inequalities: A system of linear inequalities is a set of two or more linear inequalities in the same variables. The following example illustrates this, y < x + 2…………..Inequality 1 y ≥ 2x − 1…………Inequality 2 Solution of a System of Linear Inequalities: A solution of a system of linear inequalities […]
Read More >>
Comments: