Matrix Operations: Addition, Subtraction, and Scalar Multiplication
In this lesson, we will explore how to add, subtract, and multiply matrices by a scalar. Matrices must be of the same order for addition and subtraction.
Addition of Matrices:
- Given two matrices A and B of the same order, the sum C = A + B is obtained by adding corresponding elements.
Subtraction of Matrices:
- Similarly, for subtraction, C = A - B is found by subtracting corresponding elements.
Scalar Multiplication:
- To multiply a matrix A by a scalar k, multiply each element of matrix A by k.
Example: Let A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]].
- Addition: C = A + B = [[1+5, 2+6], [3+7, 4+8]] = [[6, 8], [10, 12]].
- Subtraction: D = A - B = [[1-5, 2-6], [3-7, 4-8]] = [[-4, -4], [-4, -4]].
- Scalar Multiplication: If k = 2, then 2A = [[21, 22], [23, 24]] = [[2, 4], [6, 8]].
Key points to remember
- Matrices must be of the same order for addition and subtraction.
- Add corresponding elements for matrix addition.
- Subtract corresponding elements for matrix subtraction.
- Multiply each element by the scalar for scalar multiplication.
Worked example
Given A = [[2, 3], [4, 5]] and B = [[1, 1], [1, 1]], find A + B and 3A.
- A + B = [[2+1, 3+1], [4+1, 5+1]] = [[3, 4], [5, 6]].
- 3A = [[32, 33], [34, 35]] = [[6, 9], [12, 15]].