Matrix Operations
Matrix operations include the arithmetic operations of addition, subtraction, multiplication of matrices. Also, we can find the transpose and inverse of a matrix, which can also be included as operations on matrices. The matrix operations help in combining two or more matrices into a single matrix.
Let us learn more about the different matrix operations, with solved examples and practice problems.
What Are the Matrix Operations?
The matrix operations help us to combine two of more matrices, to form a single matrix. The arithmetic operations of addition, subtraction, multiplication can also be performed on matrices. Further sometimes matrix operations can change a matrix itself. The operation of the transpose of matrix, the inverse of matrix helps to transform a specific matrix onto itself.
The following are some of the important matrix operations.
 Addition  matrix operations
 Subtraction  matrix operations
 Multiplication  matrix operations
 Transpose operation of a matrix
 Inverse operation of a matrix
Addition  Matrix Operations
The addition of matrices is one of the basic operations that is performed on matrices. Two or more matrices of the same order can be added by adding the corresponding elements of the matrices. If A = [\(a_{ij}\)] and B = [\(b_{ij}\)] are two matrices with the same dimension, that is, they have the same number of rows and columns, then the addition of matrices A and B is: A+B = [\(a_{ij}\)] + [\(b_{ij}\)] = [\(a_{ij}+b_{ij}\)].
The matrices for addition can be either a square matrix or a rectangular matrix, but the matrices should be of the same order.
The addition of matrices follows similar properties of the addition of numbers: commutative law, associative law, additive inverse, additive identity, etc. The following properties help in the addition matrix operations.
 Commutative Property of matrix addition for the matrices A = [\(a_{ij}\)] and B = [\(b_{ij}\)] of same order m × n, is A + B = B + A.
 Associative Property of matrix addition for the matrices A = [\(a_{ij}\)], B = [\(b_{ij}\)] and C = [\(c_{ij}\)] of same order m × n, is (A+B)+C = A+(B+C).
 Additive Identity of matrix addition for a matrix A = [\(a_{ij}\)] of order m × n, is the zero matrix O of order m × n such that A + O = O + A = A.
 Additive Inverse of matrix addition for the matrix A = [\(a_{ij}\)] of the order m × n, is A = [\(a_{ij}\)] of the same order m × n such that A + (A) = O = A + (A)..
 Transpose Property of matrix addition for two matrixes A = [\(a_{ij}\)] and B = [\(b_{ij}\)] of same order is, (A + B)^{T} = A^{T} + B^{T}
 Determinant Property of matrix addition for two matrixes A = [\(a_{ij}\)] and B = [\(b_{ij}\)] of same order is, A + B = A + B
Subtraction  Matrix Operations
Subtraction of matrices is a matrix operation of elementwise subtraction of matrices of the same order, that is, matrices that have the same number of rows and columns. In subtracting two matrices, we subtract the elements in each row and column, from the respective elements in the row and column of another matrix.
Consider two matrices A and B of the same order 'm × n', where m is the number of rows and n is the number of columns of the two matrices, denoted as, A = [\(a_{ij}\)] and B = [\(b_{ij}\)]. Now, the difference of the two matrices A and B is given as: A  B = [\(a_{ij}\)]  [\(b_{ij}\)] = [\(a_{ij}b_{ij}\)], where ij denotes the position of each element in i^{th} row and j^{th} column. The dimension of the difference matrix, that is, A  B is also m × n'.
The most important necessity for the subtraction of matrices to hold all these properties is that the subtraction of matrices is defined only if the order of the matrices is the same.
 The number of rows and columns in the respective matrices should be the same for the subtraction of matrices.
 The subtraction of matrices is not commutative, that is, A  B ≠ B  A
 The subtraction of matrices is not associative, that is, (A  B)  C ≠ A  (B  C)
 The matrix subtraction from itself results in a null matrix, that is, A  A = O.
 Subtraction of matrices is the addition of the negative of a matrix to another matrix, that is, A  B = A + (B).
Multiplication  Matrix Operations
Matrix multiplication is a binary matrix operation performed on matrix A and matrix B, when both the given matrices are compatible. The primary condition for the multiplication of two matrices is the number of columns in the first matrix should be equal to the number of rows in the second matrix, and hence the order of the matrix is important. The multiplication of matrices does not follow commutative law, AB ≠ BA,.
Two matrices A and B are said to be compatible if the number of columns in A is equal to the number of rows in B. The resultant matrix for the multiplication of a matrix A of order m × n with a matrix B of order n × p, is a matrix C of the order m × p.
For the multiplication of two matrices, the elements of the rows of the matrix are multiplied with the elements of the columns of the next matrix, and the summation of this product results in the elements of the resultant product matrix. This can be more clearly understood from the below multiplication of two matrices of order 3 x 3.
There following properties of matrix multiplication are helpful for performing multiplication matrix operation.
 NonCommutative for matrix multiplication: Matrix multiplication is noncommutative, and the product AB is not equal to the product BA, AB ≠ BA.
 Distributive proper over the addition of matrices for Matrix multiplication of matrix A and matrix B with another matrix C is A(B + C) = AB + BC.
 Matrix multiplication with a Scalar k for matrices A and B, is defined as k(AB) = (kA)B = A(Bk).
 Transpose property of matrix multiplication for two matrices A and B can be given as, (AB)^{T} = B^{T}A^{T}
 Complex Conjugate property of matrix multiplication for two matrices A and B is (AB)^{*} = B^{*}A^{*}
 Associativity for matrix multiplication for three matrices A, B, and C, such that the products (AB)C and A(BC) are defined, as (AB)C = A(BC).
The scalar multiplication of matrix is the product of the scalar constant value with each of the elements of the matrix. The following properties of scalar multiplication of matrices is helpful in easily performing scalar multiplication of matrices. Here we have two mtrices A, B and k, l are the scalar constant values.
 K(A + B) = KA + KB
 (K + l)A = KA + lA
 (Kl)A = K(lA) = l(KA)
Transpose Operation of a Matrix
The matrix resulting from a given matrix after changing or reversing its rows to columns and columns to rows is called the transpose of a matrix. A rectangular array of numbers or functions that are arranged in the form of rows and columns is called a matrix. This array of numbers are called either entries or elements of a matrix. After finding the transpose of a matrix, the order of the matrix is changed from an order of m × n to an order of n × m.
Here for matrix A the elements of the first row have been written in the first column of a new matrix, and the elements of the second row have been written in the second column of a new matrix. And this new matrix is denoted as A^{T}, which is the transpose of the given matrix A.
The order of a matrix represents the number of rows and columns in a given matrix. The horizontal lines of the elements are all called the rows of the matrix which is denoted by n, and the vertical lines of the elements are called the columns of the matrix which is denoted by m. Together, they represent the order of a matrix, which is written as n × m. And the order of the transpose of the given matrix is written as m x n.
Let us check the below example to understand more clearly about how to find the transpose of a matrix.
A = \(\left[\begin{array}{ll}
2 & 5 & 6 \\
5 & 2 & 7
\end{array}\right]\)
In the above example, we can see that the given matrix of order 2 × 3. The elements of the first row [2, 5, 6] are written in the first column, and the elements in the second row [5, 2, 7] are written in the second column to obtain the transpose matrix. The transpose of the matrix A is A^{T} and has an order of 3 x 2.
A^{T} = \(\left[\begin{array}{ll}
2 & 5 \\
5 & 2 \\6&7
\end{array}\right]\)
There are various properties associated with the transposition operation in matrices, for matrices A and B, given as,
 (A^{T})^{T} = A
 (A + B)^{T} = A^{T }+ B^{T}, A and B being of the same order.
 (KA)^{T}= KA^{T}, K is any scalar(real or complex).
 (AB)^{T}= B^{T}A^{T}, A and B being conformable for the product AB. (This is also called reversal law.)
Inverse Operation of a Matrix
The inverse of a matrix is another matrix operation, which on multiplication with the given matrix gives the multiplicative identity. For a matrix A, its inverse is A^{1}, and A.A^{1 } = I. The general formula for the inverse of a matrix of order 2 × 2 is equal to the adjoint of a matrix divided by the determinant of a matrix. The inverse of the matrix exists only if the determinant of the matrix is a nonzero value. The matrix whose determinant is nonzero and for which the inverse matrix can be calculated is called an invertible matrix.
A = \(\left(\begin{matrix}a&b\\c&d\end{matrix}\right)\)
A^{1} = \(\dfrac{1}{ad  bc}\left(\begin{matrix}d&b\\c&a\end{matrix}\right)\)
A^{1} = \(\dfrac{1}{A}\) Adj A
Further for matrices of higherorder, the inverse of a matrix can be computed by dividing the adjoint of a matrix by the determinant of the matrix. The inverse of a matrix can be calculated by following the belowgiven steps:
 Step 1: Calculate the minor for the given matrix.
 Step 2: Transform the obtained matrix into the cofactor matrix
 Step 3: Then, find the adjoint matrix.
 Step 4: Divide the adjoint matrix with the determinant of the matrix.
For a matrix A, its inverse A^{1} = \(\dfrac{1}{A}\)Adj A.
A = \(\begin{pmatrix} a_{11}&a_{12}&a_{13}\\a_{21}&a_{22}&a_{23}\\a_{31}&a_{32}&a_{33}\end{pmatrix}\)
A = \(a_{11}(1)^{1 + 1} \left\begin{matrix}a_{22}&a_{23}\\a_{32}&a_{33}\end{matrix}\right + a_{12}(1)^{1 + 2} \left\begin{matrix}a_{21}&a_{23}\\a_{31}&a_{33}\end{matrix}\right + a_{13}(1)^{1 + 3} \left\begin{matrix}a_{21}&a_{22}\\a_{31}&a_{32}\end{matrix}\right\)
Adj A = Transpose of Cofactor Matrix = Transpose of \(\begin{pmatrix} A_{11}&A_{12}&A_{13}\\A_{21}&A_{22}&A_{23}\\A_{31}&A_{32}&A_{33}\end{pmatrix}\) =\(\begin{pmatrix} A_{11}&A_{21}&A_{31}\\A_{12}&A_{22}&A_{32}\\A_{13}&A_{23}&A_{33}\end{pmatrix}\)
A^{1} = \(\dfrac{1}{A}.\begin{pmatrix} A_{11}&A_{21}&A_{31}\\A_{12}&A_{22}&A_{32}\\A_{13}&A_{23}&A_{33}\end{pmatrix}\)
Related Topics
The following topics help in a better understanding of matrix operations.
Examples on Matrix Operations

Example 1: Find the product of the matrices \(\begin{bmatrix}4&7\\3&1\end{bmatrix}\) and \(\begin{bmatrix}5&1\\2&3\end{bmatrix}\) using the concepts of matrix operations.
Solution:
The given matrices are A = \(\begin{bmatrix}4&7\\3&1\end{bmatrix}\) and B = \(\begin{bmatrix}5&1\\2&3\end{bmatrix}\)
The aim is to find the product of these two matrices.
AB = \(\begin{bmatrix}4&7\\3&1\end{bmatrix}\) × \(\begin{bmatrix}5&1\\2&3\end{bmatrix}\)
AB = \(\begin{bmatrix}4 × 5 + 7 × 2&4 × 1 +7 × 3\\3 × 5 + 1 × 2&3 × 1 + 1 × 3\end{bmatrix}\) = \(\begin{bmatrix}34&25\\17&6\end{bmatrix}\)
Therefore, the product of the two given matrices is \(\begin{bmatrix}34&25\\17&6\end{bmatrix}\).

Example 2: Find the transpose of \(\begin{bmatrix}3&4&9\\11&2&3\end{bmatrix}\) using the concepts of matrix operations.
Solution:
The given matrix is A = \(\begin{bmatrix}3&4&9\\11&2&3\end{bmatrix}\)
Using the concepts of matrix operation the transpose of a matrix is obtained by interchanging the row elements into column elements, and the column elements into row elements.
A = \(\begin{bmatrix}3&4&9\\11&2&3\end{bmatrix}\)
A^{T} = \(\begin{bmatrix}3&11\\4&2\\9&3\end{bmatrix}\)
Therefore, the transpose of the given matrix is \(\begin{bmatrix}3&11\\4&2\\9&3\end{bmatrix}\).
FAQs on Matrix Operations
What Are the Matrix Operations?
The matrix operations is similar to the arithmetic operations performed on two or more numbers. The matrix operations include the addition, subtraction, multiplication of matrices, transpose of a matrix, and inverse of a matrix. The addition, subtraction, multiplication of matrices include two or more matrices, and the transpose, inverse operations is performed on only one matrix.
What Are the Three Important Matrix Operations?
The three important matrix operations are the addition operation on matrices, subtraction operation of matrices, multiplication operation of matrices. These three important operations help in combining two or more matrices. Here across these three operations, the individual elements of the matrices are manipulated to perform the operations. In addition and subtraction of matrices, the corresponding elements of two or more matrices are added or subtracted to obtain the elements for the resultant matrix.
What Is the Condition for the Different Types Of Matrix Operations?
The condition for matrix operations depends on the type of operation. For the addition and subtraction of matrices, the order of both the matrices should be the same. For the multiplication of two matrices, the order of the two matrices is such that the number of columns in the first matrix is equal to the number of rows in the second matrix.
What Are the Types of Multiplication Matrix Operations?
The multiplication matrix operations are of two types. The scalar multiplication of matrix, and the multiplication of two or more matrices. The scalar multiplication includes the multiplication of a scalar value with the matrix, which includes the multiplication of every element of the matrix with the scalar value. And the multiplication of matrices including two matrices is possible if the number of columns in the first matrix is equal to the number of rows in the second matrix.
What Are the Uses of Matrix Operations?
The matrix operations are useful to combine two or more matrices into a single matrix. Further, the matrix operations are useful to solve algebraic equations involving two or more variables. The field of artificial intelligence and machine learning prominently depends on operations of matrices to represent and work with numerous variables simultaneously.
visual curriculum