In the previous post, you have learned about matrix addition and its mathematical properties. The matrix subtraction is also mathematical operation on two matrices where elements of right hand matrix is subtract from elements of matrix on the left hand. The result is stored in a separate third matrix.
Condition To Subtract Matrices
Similar to matrix addition, there are few conditions for matrix subtraction. The minuend matrix should be on the left hand side and subtrahend matrix on the right The result of the subtraction must be stored in a difference matrix. The size of all three matrices must be same.
The matrix is minuend and matrix is subtrahend. The difference is stored in the matrix .
Mathematical Properties of Matrix Subtraction
The properties of matrix addition such as commutative, associative , scalar multiplication, also applies to subtraction, in other words, the elements of both matrix are performing addition, but one or more elements happen to be negative number.
For example, another way to look at the matrix subtraction is as follows where and are two matrices.
The above equation will yield same results.
In this example, we will subtract matrix from matrix A&s=1$ and keep the difference in matrix .
Though the above example shows positive elements, its not always true and one must careful while subtracting from a negative numbers as the sign must change.