# A calculus of the absurd

##### 18.1.2 Adding matrices

Adding matrices is fairly straightforward - we just add all elements in the same position in the matrices we are adding (this does imply, however, that we can only add together matrices which are of the same size).

$$(A)_{ij} + (B)_{ij} = (A + B)_{ij}$$

For example, to add

$$\begin{pmatrix} 1 & 2 \\ 5 & 12 \end {pmatrix} + \begin{pmatrix} 3 & 5 \\ 6 & 7 \end {pmatrix}$$

We just add the first item of the first row of the first matrix with the first item of the first row of the second matrix and so on...

$$\begin{pmatrix} 1 & 2 \\ 5 & 12 \end {pmatrix} + \begin{pmatrix} 3 & 5 \\ 6 & 7 \end {pmatrix} = \begin{pmatrix} 4 & 7 \\ 11 & 19 \end {pmatrix}$$