There are a number of operations that can be applied to modify matrices, such as matrix addition, subtraction, and scalar multiplication. These form the basic techniques to work with matrices.
These techniques can be used in calculating sums, differences and products of information such as sodas that come in three different flavors: apple, orange, and strawberry and two different packaging: bottle and can. Two tables summarizing the total sales between last month and this month are written to illustrate the amounts. Matrix addition, subtraction and scalar multiplication can be used to find such things as: the sales of last month and the sales of this month, the average sales for each flavor and packaging of soda in the
Adding and Subtracting Matrices
We use matrices to list data or to represent systems. Because the entries are numbers, we can perform operations on matrices. We add or subtract matrices by adding or subtracting corresponding entries.
In order to do this, the entries must correspond. Therefore, addition and subtraction of matrices is only possible when the matrices have the same dimensions. Matrix addition is commutative and is also associative, so the following is true:
Adding matrices is very simple. Just add each element in the first matrix to the corresponding element in the second matrix.
Note that element in the first matrix,
As you might guess, subtracting works much the same way except that you subtract instead of adding.
Once again, note that the resulting matrix has the same dimensions as the originals, and that you cannot subtract two matrices that have different dimensions. Be careful when subtracting with signed numbers.
Scalar Multiplication
In an intuitive geometrical context, scalar multiplication of a real Euclidean vector by a positive real number multiplies the magnitude of the vector without changing its direction. What does it mean to multiply a number by
The resulting matrix has the same dimensions as the original. Scalar multiplication has the following properties:
- Left and right distributivity:
$(c+d)\textbf{M} = \textbf{M}(c+d) = \textbf{M}c+\textbf{M}d$ - Associativity:
$(cd)\textbf{M} = c(d\textbf{M})$ - Identity:
$1\textbf{M} = \textbf{M}$ - Null:
$0\textbf{M} = \textbf{0}$ - Additive inverse:
$(-1)\textbf{M} = -\textbf{M}$