Matrix Basics: Add, Subtract, Multiply
A free College Algebra lesson from the “Systems, Matrices, and Linear Programming” unit, with a worked example and practice problems including step-by-step solutions.
A matrix is a rectangular array of numbers. ADD and SUBTRACT element-by-element (matrices must have the same dimensions). SCALAR multiplication multiplies every entry. MATRIX multiplication is row-by-column: the (i, j) entry of AB is the dot product of row i of A and column j of B. For AB to exist, columns of A must equal rows of B.
What you'll learn
- Add and subtract matrices of the same dimensions
- Multiply a matrix by a scalar
- Multiply two matrices of compatible dimensions (m x n by n x p)
Worked example
Problem. Given A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]], find the (1, 1) entry of A + B.
- A + B is element-wise: A[1][1] + B[1][1] = 1 + 5.
- = 6.
Answer: 6
Practice problems
1. [[1, 2], [3, 4]] + [[5, 6], [7, 8]]. Enter the (1, 1) entry of the sum.
Show solution
- Warm-up: First identify exactly what the question is asking: [[1, 2], [3, 4]] + [[5, 6], [7, 8]]. Enter the (1, 1) entry of the sum.
- Choose the operation or relationship that matches the wording, then carry it out one clear step at a time.
- 1 + 5 = 6.
- Check the result by substituting or estimating: the response should match 6 and make sense in the original problem.
Answer: 6
2. Same sum. (2, 2) entry?
Show solution
- Warm-up: First identify exactly what the question is asking: Same sum. (2, 2) entry?
- Choose the operation or relationship that matches the wording, then carry it out one clear step at a time.
- 4 + 8 = 12.
- Check the result by substituting or estimating: the response should match 12 and make sense in the original problem.
Answer: 12
3. [[1, 2], [3, 4]] - [[5, 6], [7, 8]]. Enter the (1, 1) entry of the difference.
Show solution
- Warm-up: First identify exactly what the question is asking: [[1, 2], [3, 4]] - [[5, 6], [7, 8]]. Enter the (1, 1) entry of the difference.
- Choose the operation or relationship that matches the wording, then carry it out one clear step at a time.
- 1 - 5 = -4.
- Check the result by substituting or estimating: the response should match -4 and make sense in the original problem.
Answer: -4
4. Scalar 3 times [[1, -2], [4, 0]]. (1, 2) entry?
Show solution
- Core Practice: First identify exactly what the question is asking: Scalar 3 times [[1, -2], [4, 0]]. (1, 2) entry?
- For signed numbers, track both distance from zero and direction so the sign of the answer makes sense.
- 3 * -2 = -6.
- Check the result by substituting or estimating: the response should match -6 and make sense in the original problem.
Answer: -6
5. Scalar -2 times [[1, 2], [3, 4]]. (2, 1) entry?
Show solution
- Core Practice: First identify exactly what the question is asking: Scalar -2 times [[1, 2], [3, 4]]. (2, 1) entry?
- For signed numbers, track both distance from zero and direction so the sign of the answer makes sense.
- -2 * 3 = -6.
- Check the result by substituting or estimating: the response should match -6 and make sense in the original problem.
Answer: -6
Practice this interactively with instant feedback and an AI tutor.
Practice Matrix Basics: Add, Subtract, Multiply Take the free placement check