Matrix multiplication is a binary operation that produces a new matrix from two matrices.
For multiplication, the number of columns in the first matrix must equal the number of rows in the second matrix. The resulting matrix (matrix product) has the same number of rows as the first matrix and the same number of columns as the second matrix.
For example, If matrix A is of order m × p and matrix B is of order p × n, then their product AB exists and is of order m × n.

How to Multiply Matrices
Let's take two matrices A and B of order 2×2
Rules and Conditions for Matrix Multiplication
- If "A = [aij]m×n" and "B = [bij]n×o" are two matrices, then the product of A and B is denoted as AB, whose order is "m × o". This condition is represented as given in the image.

- Matrix multiplication is not commutative, i.e., AB ≠ BA, or, in simple words, the product of A and B matrices is AB, and AB is not equal to BA; it is even possible that AB exists but BA does not exist.
Compatibility Conditions for Matrix Multiplication:
We can multiply two matrices if the number of columns in the 1st matrix is equal to the number of rows in the 2nd matrix, otherwise, the given matrices cannot be multiplied.
For example:
- A 2×3 matrix can be multiplied by a 3×2 matrix, resulting in a 2×2 matrix.
- A 3×3 matrix cannot be multiplied by a 4×2 matrix because their dimensions are incompatible.
Special Properties of Matrix Multiplication
Apart from compatibility, here are some special properties of matrix multiplication:
- Both AB and BA matrix multiplication are defined if both A and B are square matrices.
- One of the matrices doesn't need to be a zero matrix if the product of two matrices A and B is zero.
Note: French mathematicianJacques Philippe Marie Binet was the first to perform matrix multiplication in 1812.
Step-by-Step Process for Matrix Multiplication
To multiply two matrices, A and B, ensure that the number of columns in A equals the number of rows in B.
Calculate Elements: Multiply each element in a row of the first matrix by the corresponding element in a column of the second matrix, and sum these products to compute each element of the product matrix. Repeat this process for all rows and columns.
Form the Product Matrix: Place the computed elements in their respective positions to construct the resulting matrix.'
For example, let’s take a matrix of order (2×3) and another of order (3×2). To multiply these matrices, follow these steps:
Formula for Matrix Multiplication
Let's take two matrices A and B of order 2×2 such that A = [aij] and B = [bij]. Then the multiplication of A and B is obtained in the image such that,

The resultant multiplication matrix X is represented as,
X =
Where
Matrix Multiplication (Scalar)
A matrix can be multiplied by a scalar value, which is called scalar multiplication.

When a matrix "A = [aij]" is multiplied by a scalar value "k," every element of the given matrix is multiplied by the scalar value. The resultant matrix is expressed as kA, where kA = k[aij] = [kaij], for all the values of i and j.
A = \left[\begin{array}{cc} a & b\\ c & d \end{array}\right]
kA = k \times\left[\begin{array}{cc} a & b\\ c & d \end{array}\right]= \left[\begin{array}{cc} ka & kb\\ kc & kd \end{array}\right]
Solved Question on Matrix Multiplication
Example 1: Let
Solution:
A \times B =\begin{bmatrix} 1 & 8 & 3\\ 9 & 4 & 5 \\ 6 & 2 & 7 \end{bmatrix} \times \begin{bmatrix} 6 & 7 & 4\\ 1 & 3 & 2 \\ 5 & 9 & 8 \end{bmatrix} =
\begin{bmatrix} (1×6 + 8×1 + 3×5) & (1×7 + 8×3 + 3×9) & (1×4 + 8×2 + 3×8)\\ (9×6 + 4×1 + 5×5) & (9×7 + 4×3 + 5×9) & (9×4 + 4×2 + 5×8) \\ (6×6 + 2×1 + 7×5) & (6×7 + 2×3 + 7×9) & (6×4 + 2×2 + 7×8) \end{bmatrix}
=\begin{bmatrix} 29 & 58 & 44\\ 83 & 120 & 84 \\ 73 & 111 & 84 \end{bmatrix}
Example 2: Let
Solution:
A \times B =\begin{bmatrix} (1×6 + 5×1 + 4×5) & (1×7 + 5×3 + 4×9) \\ (9×6 + 3×1 + 8×5) & (9×7 + 3×3 + 8×9)\end{bmatrix}
=\begin{bmatrix} 31 & 58 \\ 97 & 144\end{bmatrix}
Example 3: Let
Solution:
A \times B = \begin{bmatrix} 2 & 0 & -3\\ 1 & 4 & 5 \end{bmatrix}\times \begin{bmatrix} 3 & 1\\ -1 & 0 \\ 4 & 2\end{bmatrix} \\ = \begin{bmatrix} (2×3 + 0×(-1) + (-3)×4) & (2×1 + 0×0 + (-3)×2) \\ (1×3 + 4×(-1) + 5×4) & (1×1 + 4×0 + 5×2)\end{bmatrix}
=\begin{bmatrix} -6 & -4 \\ 19 & 11\end{bmatrix}
A \times C = \begin{bmatrix} 2 & 0 & -3\\ 1 & 4 & 5 \end{bmatrix}\times \begin{bmatrix} 4 & 7\\ 2 & 1 \\ 1 & -1\end{bmatrix} \\ = \begin{bmatrix} (2×4 + 0×2 + (-3)×1) & (2×7 + 0×1 + (-3)×(-1)) \\ (1×4 + 4×2 + 5×1) & (1×7 + 4×1 + 5×(-1))\end{bmatrix}
=\begin{bmatrix} 5 & 17 \\ 17 & 6\end{bmatrix} Now calculate (AB + AC)
= \begin{bmatrix} -6 & -4 \\ 19 & 11\end{bmatrix} + \begin{bmatrix} 5 & 17 \\ 17 & 6\end{bmatrix}
(AB +BC)= \begin{bmatrix} -1 & 13 \\ 36 & 17\end{bmatrix}
Example 4: Let
Solution:
Calculating, A2
A2 = A×A =
\begin{bmatrix} 2 & -2\\ -2 & 2\end{bmatrix} \times \begin{bmatrix} 2 & -2\\ -2 & 2\end{bmatrix} =
\begin{bmatrix} (2×2 + (-2)×(-2)) & ((2×(-2) + (-2)×2) \\ ((-2)×2 + 2×(-2)) & ((-2)×(-2) + 2×2)\end{bmatrix} =\begin{bmatrix} 8 & -8\\ -8 & 8\end{bmatrix}
Given,
A2 = pA
Taking A2 in the equation,
\begin{bmatrix} 8 & -8\\ -8 & 8\end{bmatrix} = p\begin{bmatrix} 2 & -2\\ -2 & 2\end{bmatrix}
\begin{bmatrix} 8 & -8\\ -8 & 8\end{bmatrix} = \begin{bmatrix} 2p & -2p\\ -2p & 2p\end{bmatrix} Now,
- 8 = 2p
- -8 = -2p
p = 4
Thus, the value of p is 4
Example 5: Find the value of 3P if
Solution:
3P = 3 \times\left[\begin{array}{ccc} 2 & -3 & 4\\ 1 & 0 & 5\\ 7 & -4 & 6 \end{array}\right]
3P = \left[\begin{array}{ccc} 3\times2 & 3\times-3 & 3\times4\\ 3\times1 & 3\times0 & 3\times5\\ 3\times7 & 3\times-4 & 3\times6 \end{array}\right]
3P = \left[\begin{array}{ccc} 6 & -9 & 12\\ 3 & 0 & 15\\ 21 & -12 & 18 \end{array}\right]
Practice Question on Matrix Multiplication
Question 1: Find 9P if
Question 2: Multiply,
Question 3: Find the product of AB
Question 4: Matrix Multiplication with Identity Matrix