A matrix can only be added to (or subtracted from) another matrix if the two matrices have the same dimensions.

To add two matrices, just add the corresponding entries, and place this sum in the corresponding position in the matrix which results.

**Example 1:**

Add the matrices.

First note that both addends are 2 × 2 matrices, so we can add them.

Subtraction with matrices is just as straightforward.

**Example 2:**

Subtract.

Subtract corresponding entries.