The two matrices and their answer must be of the same dimensions.
Each element of the answer matrix is the sum of the elements in the corresponding elements on the matrices that are being added.
In algebraic form,
if A = {aij} where 1 ≤ i ≤ m, 1 ≤ j ≤ n is an mxn matrix
B = {bij} where 1 ≤ i ≤ m, 1 ≤ j ≤ n is an mxn matrix
and C = {cij} = A + B,
then C is an mxn matrix and cij = aij + bij for all 1 ≤ i ≤ m, 1 ≤ j ≤ n
Chat with our AI personalities
Yes, because otherwise addition and subtraction are not defined.
Matrix addition is commutative if the elements in the matrices are themselves commutative.Matrix multiplication is not commutative.
two matrices are normally considered equal only if they are identical. In other words, every element in the matrix must be equal to the corresponding element in the other matrix.
Only square matrices have inverses.
You add matrices by adding their respective terms - e.g. the element in the first row and sixth column of the sum is the sum of the elements in the addends' first rows and sixth columns. Wikipedia has a nice example of matrix addition that I linked below.