diff --git a/education/math/Matrices.md b/education/math/Matrices.md index bf3c518..558abcc 100644 --- a/education/math/Matrices.md +++ b/education/math/Matrices.md @@ -15,7 +15,17 @@ $$ ## Multiplying matrices To multiply two matrices, the *number of columns* for the first matrix must match the *number of rows* in the second. -For example: the following matrices could be multiplied together because the number of columns +For example: the following matrices could be multiplied together because the number of columns in the first matrix (3) matches the number of rows in the second matrix (3). + +$$ +\begin{bmatrix} +1 & 2 & 3\\ +4 & 5 & 6 +\end{bmatrix} * +\begin{bmatrix} +1 & 2 +\end{bmatrix} +$$ To get answers, go through each entry in the second matrix, entry by entry, and multiply by every item in the matching row of the first one, then add all of those together.