When we add or subtract two matrices $A$A and $B$B, we add or subtract the corresponding elements. So we can only add or subtract matrices that have the same dimensions. In general, the sum and difference of two matrices can be represented similar to the following:
Addition | Subtraction |
As an example, the sum and difference of two matrices with numerical elements will look like the following:
Addition | Subtraction |
Consider the matrices
$A$A$=$= | and | $B$B$=$= |
Matrix $A$A has dimensions $\editable{}$$\times$×$\editable{}$
Matrix $B$B has dimensions $\editable{}$$\times$×$\editable{}$
Is $A+B$A+B possible?
Yes
No
$7$7 | $8$8 | ||||||||
If $A$A$=$= | $-7$−7 | and $B$B$=$= | $2$2 | , find $A+B$A+B. | |||||
$-5$−5 | $4$4 |
$\editable{}$ | ||||
$A+B$A+B$=$= | $\editable{}$ | |||
$\editable{}$ |