Adding and Subtracting Matrices
Now that we understand the basics of what a matrix is, let’s move on to two important operations: adding and subtracting matrices.
Matrices are made up of numbers arranged in rows and columns. Since these are numbers, we can add and subtract them just like we do with regular numbers. To add or subtract matrices, they must be of the same dimensions, meaning they must have the same number of rows and columns.
When adding or subtracting matrices, we perform the operation on each corresponding element. For example, the number in row [latex]1[/latex], column [latex]2[/latex] of the first matrix must be added to or subtracted from the number in row [latex]1[/latex], column [latex]2[/latex] of the second matrix.
adding and subtracting matrices
Given matrices [latex]A[/latex] and [latex]B[/latex] of like dimensions, addition and subtraction of [latex]A[/latex] and [latex]B[/latex] will produce matrix [latex]C[/latex] or matrix [latex]D[/latex] of the same dimension.
[latex]A+B=C\text{ such that }{a}_{ij}+{b}_{ij}={c}_{ij}[/latex]
[latex]A-B=D\text{ such that }{a}_{ij}-{b}_{ij}={d}_{ij}[/latex]
Matrix addition is commutative.
[latex]A+B=B+A[/latex]
It is also associative.
[latex]\left(A+B\right)+C=A+\left(B+C\right)[/latex]
[latex]A=\left[\begin{array}{rrr}\hfill 2& \hfill -10& \hfill -2\\ \hfill 14& \hfill 12& \hfill 10\\ \hfill 4& \hfill -2& \hfill 2\end{array}\right]\text{ and }B=\left[\begin{array}{rrr}\hfill 6& \hfill 10& \hfill -2\\ \hfill 0& \hfill -12& \hfill -4\\ \hfill -5& \hfill 2& \hfill -2\end{array}\right][/latex]
- Find the sum.
- Find the difference.