This note is the point where matrices stop being only containers and start behaving like objects you can calculate with. The first three operations are the easiest ones: add two matrices, subtract one matrix from another, and multiply a matrix by a scalar.
The key beginner idea is simple:
- Addition compares matching positions.
- Subtraction compares matching positions.
- Scalar multiplication keeps the same shape and rescales every entry.
If the matching positions do not exist, the operation is not defined.
Intuition first: same shape is not a decoration
When you add ordinary numbers, you do not worry about shape. Matrices are different. A matrix records information in a particular row-and-column layout, so the location of each entry matters.
If two matrices have different sizes, then row 2, column 3 in one matrix may have no matching partner in the other matrix. In that case, entrywise addition or subtraction cannot even begin.
This is why students often hear the phrase "same size" before they see any formula. The size condition is part of the meaning of the operation.
Definitions
Definition
Matrix addition and scalar multiplication
Suppose and are both matrices.
- The sum is the matrix obtained by adding corresponding entries.
- The difference is defined by .
- If
cis a scalar, thencAis the matrix obtained by multiplying every entry of byc.
In symbols, if and , then
Definition
Zero matrix and additive inverse
The zero matrix is the matrix whose entries are all 0. It plays the same role
for matrix addition that the number 0 plays for ordinary addition.
The additive inverse of is the matrix , obtained by negating every entry of .
What subtraction really means
Subtraction is not a completely new rule. It is just addition after you first build the additive inverse.
That means:
This is worth saying out loud because it explains several later algebraic patterns. Whenever you are unsure how to handle subtraction, rewrite it as addition with negatives and the structure becomes clearer.
Embedded interactive moment
The live block below lets you switch among , , and cA. Keep
your eye on the shape of the result. No matter which of these three operations
you choose, the output keeps the same size as the input matrix or matrices.
Read and try
matrix-arithmetic-lab
Matrix A
| 1 | -2 |
| 3 | 0 |
B
| 4 | 1 |
| -1 | 2 |
A + B
| 5 | -1 |
| 2 | 2 |
A - B
| -3 | -3 |
| 4 | -2 |
| 2 | -4 |
| 6 | 0 |
Addition and subtraction are entrywise. Scalar multiplication multiplies every entry by the same scalar, so the matrix size stays unchanged.
Worked example
Worked example
Compute each operation carefully
Let
Then
Also,
If , then
Why the zero matrix matters
The zero matrix is not just a boring special case. It tells you what the "do-nothing" matrix for addition looks like.
If is the zero matrix of the same size as , then
This matters later because every algebraic system needs an identity element for its addition. For matrices, that identity depends on the size. A zero matrix cannot replace a zero matrix.
Common mistakes
Common mistake
Checking the entries but forgetting the size
Even if two matrices contain many similar numbers, you cannot add them unless their sizes match exactly.
Common mistake
Thinking scalar multiplication changes the size
Multiplying by a scalar changes the entries, not the shape. If is ,
then cA is still .
Quick checks
Quick check
Why is matrix addition only defined for matrices of the same size?
Answer in one sentence using the phrase "corresponding entries."
Solution
Answer
Quick check
If is a matrix, what is the size of ?
Focus on shape, not on the signs of the entries.
Solution
Answer
Exercises
Quick check
Let be and be . Which of , , and 2A are defined?
State each one separately.
Solution
Guided solution
Quick check
Why is the zero matrix called the additive identity?
Use the equation that expresses its identity role.
Solution
Guided solution
Related notes
Read 2.1 Matrix basics first if you still want a slower introduction to rows, columns, and entries.
Read 3.2 Matrix multiplication and linear systems next if you want to see the first matrix operation that is not entrywise.