Only matrices of the same size can be added. Given two matrices and which are both of size x, then the sum is obtained by adding one entry of to the corresponding entry of : the entry in at row and column is calculated as .

**Example**

(1)

Subtraction works in the same way. is obtained with each entry being .