Matrix operations (add, subtract, multiply)
Matrix Operations
Matrix Operations is the opening topic of Matrices in the California Common Core State Standards. It is aligned to Standard N-VM.8, which requires students to add, subtract, and multiply matrices of appropriate dimensions.
Matrices of the same size add and subtract entry by entry; matrix multiplication uses row-by-column dot products with matching inner dimensions.
Theory
A matrix is a rectangular array of numbers. Operations:
- Add / subtract entry by entry (same size only).
- Scalar multiply: multiply every entry.
- Multiply two matrices with row-by-column dot products; the inner dimensions must match.
Dimensions for a product:
How to operate on matrices
- For \(\pm\), match entries (same size).
- For a scalar, multiply every entry.
- For a product, check inner dimensions match.
- Compute each entry as a row-column dot product.
Add matching entries.
| \(=\) | \(\begin{bmatrix}6&8\\10&12\end{bmatrix}\) |
Multiply every entry by \(2\).
| \(=\) | \(\begin{bmatrix}2&4\\6&8\end{bmatrix}\) |
Multiplying by the identity leaves it unchanged.
| \(=\) | \(\begin{bmatrix}1&2\\3&4\end{bmatrix}\) |
Inner dimensions match (\(3=3\)), giving a \(2\times2\) product.
| \((2\times3)(3\times2)\) | \(=\) | \(2\times2\) |
Common pitfalls
Frequently asked questions
How do you add matrices?
Add corresponding entries; the matrices must be the same size.
How do you scalar-multiply a matrix?
Multiply every entry by the scalar.
When can two matrices be multiplied?
When the inner dimensions match: \((m\times n)(n\times p)\).
Is matrix multiplication commutative?
No β \(AB\) usually does not equal \(BA\).