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

Example

(1)   equation

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