Matrix Addition and Subtraction
Fundamentals of Matrix Addition and Subtraction
A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns.
The dimensions or order of a matrix are defined as , where represents the number of horizontal rows and represents the number of vertical columns.
For matrix addition and subtraction to be mathematically defined, both matrices must be of identical dimensions (i.e., both must be ). If two matrices have different dimensions, addition and subtraction are undefined.
Given two square matrices and :

Matrix Addition
Matrix addition is an entry-wise operation where corresponding entries from two matrices of the same dimension are added together.
Formally, if and , then their sum is given by for all indices and .
For the matrices and , the addition operation is expressed as:
Step-by-step element calculations for :
Row 1 Calculations:
Position :
Position :
Position :
Row 2 Calculations:
Position :
Position :
Position :
Row 3 Calculations:
Position :
Position :
Position :
Matrix Subtraction
Matrix subtraction is an entry-wise operation where each entry of the second matrix is subtracted from the corresponding entry of the first matrix.
Formally, if and , then their difference is defined by for all indices and .
For the matrices and , the subtraction operation is expressed as:
Step-by-step element calculations for :
Row 1 Calculations:
Position :
Position :
Position :
Row 2 Calculations:
Position :
Position :
Position :
Row 3 Calculations:
Position :
Position :
Position :
Algebraic Properties of Matrix Addition and Subtraction
Commutative Property of Addition: Matrix addition is commutative, meaning for any matrices and of identical dimensions.
Associative Property of Addition: Matrix addition is associative, meaning for any matrices , , and of identical dimensions.
Additive Identity Property: For any matrix , there exists a zero matrix of size such that .
Additive Inverse Property: For every matrix , there exists an additive inverse such that .
Non-Commutativity of Subtraction: Matrix subtraction is not commutative; in general, . Rather, .
Connection to Scalar Multiplication: Subtraction can be framed in terms of addi