233,900 views
35 votes
35 votes
How do we add or subtract matrices?

User Madeleine
by
2.5k points

1 Answer

17 votes
17 votes
Addition and substraction of matrices

How do we add or substract matrices?

We just need to add or substract each of their components

For example,


\begin{gathered} \begin{bmatrix}{-12} & {1} & {2} \\ {-7} & {1} & {13} \\ {0} & {-10} & {0}\end{bmatrix}+\begin{bmatrix}{4} & {-8} & {9} \\ {-5} & {3} & {5} \\ {-6} & {11} & {2}\end{bmatrix} \\ =\begin{bmatrix}{-12+4} & {1-8} & {2+9} \\ {-7-5} & {1+3} & {13+5} \\ {0-6} & {-10+11} & {0+2}\end{bmatrix} \\ =\begin{bmatrix}{-8} & {-7} & {11} \\ {-12} & {4} & {18} \\ {-6} & {1} & {2}\end{bmatrix} \end{gathered}
\begin{gathered} \begin{bmatrix}{-12} & {1} & {2} \\ {-7} & {1} & {13} \\ {0} & {-10} & {0}\end{bmatrix}-\begin{bmatrix}{4} & {-8} & {9} \\ {-5} & {3} & {5} \\ {-6} & {11} & {2}\end{bmatrix} \\ =\begin{bmatrix}{-12-4} & {1-(-8)} & {2-9} \\ {-7-(-5)} & {1-3} & {13-5} \\ {0-(-6)} & {-10-11} & {0-2}\end{bmatrix} \\ =\begin{bmatrix}{-16} & {9} & {-7} \\ {-2} & {-2} & {8} \\ {6} & {-21} & {-2}\end{bmatrix} \end{gathered}

In order to add and substract two matrices they both have to have the same amount of terms (same number of columns and rows)

How do we add or subtract matrices?-example-1
User Lucas Arbex
by
3.1k points