Introduction
- Matrices can be added or subtracted.
- For two matrices to be added or subtracted, they must be of the same order.
- For two matrices to be in the same order, there need to have same dimensions or they must have the same number of rows and columns.
- If two matrices are in the same order, they can be added or subtracted.
In the following example both matrices A and B are in the same order, while C and D are not in the same order.
\[\Large
A =
\begin{bmatrix}
2 & 8 & 6 \\
0 & 5 & 4 \\
3 & 7 & 3
\end{bmatrix}
\;\;\;\;\;
B =
\begin{bmatrix}
3 & 5 & 2 \\
6 & 0 & 1 \\
4 & 9 & 1
\end{bmatrix}
\]
\[\Large
C =
\begin{bmatrix}
2 & 8 & 6 \\
0 & 5 & 4 \\
3 & 7 & 3
\end{bmatrix}
\;\;\;\;\;
D =
\begin{bmatrix}
3 & 5 & 2 \\
6 & 0 & 1
\end{bmatrix}
\]
What condition need to be satisfied in-order to add or subtract two matrices?