Pre-Calculus
Vector and Matrix Operations
Pre-Calculus
- ✓By the end of this lesson students will be able to perform addition, subtraction, and scalar multiplication of vectors.
- ✓By the end of this lesson students will be able to perform addition, subtraction, and scalar multiplication of matrices.
- ✓By the end of this lesson students will be able to determine if matrix multiplication is possible and perform it when applicable.
- ✓By the end of this lesson students will be able to understand and apply the properties of vector and matrix operations.
Key concepts
Vectors are added or subtracted component-wise. To add two vectors, add their corresponding components. To subtract two vectors, subtract their corresponding components. This applies to vectors of any dimension (e.g., 2D or 3D).
To multiply a vector by a scalar (a real number), multiply each component of the vector by that scalar. This scales the magnitude of the vector.
Matrices can be added or subtracted only if they have the exact same dimensions (same number of rows and same number of columns). The operation is performed element-wise, meaning you add or subtract the corresponding elements in each matrix.
To multiply a matrix by a scalar, multiply every element (entry) in the matrix by that scalar.
The product of two matrices A and B, denoted AB, is defined only if the number of columns in matrix A is equal to the number of rows in matrix B. If A is an m x n matrix and B is an n x p matrix, then their product AB will be an m x p matrix. The element in the i-th row and j-th column of AB is found by taking the dot product of the i-th row of A and the j-th column of B.
Key facts to remember
- 1Vector addition, subtraction, and scalar multiplication are performed component-wise.
- 2Matrix addition and subtraction require matrices to have identical dimensions.
- 3Scalar multiplication of a matrix involves multiplying every element in the matrix by the scalar.
- 4Matrix multiplication AB is only defined if the number of columns in A equals the number of rows in B.
- 5If A is an m x n matrix and B is an n x p matrix, their product AB will be an m x p matrix.
- 6Matrix multiplication is NOT commutative; in general, AB ≠ BA.
- 7The identity matrix, denoted I, acts like the number 1 in multiplication: AI = IA = A (when dimensions allow).
Worked examples
Example 1
Given vectors u = <3, -2> and v = <-1, 5>, find 2u + v.
Answer
<5, 1>
Vector operations are performed component-wise.
Example 2
Given matrices A = [[1, 2], [3, 4]] and B = [[-1, 0], [2, -3]], find 3A - 2B.
Answer
[[5, 6], [5, 18]]
Ensure matrices have the same dimensions for addition/subtraction. Scalar multiplication applies to every element.
Example 3
Given matrices C = [[1, 2], [3, 4]] and D = [[5, 6], [7, 8]], find the product CD.
Answer
[[19, 22], [43, 50]]
Matrix multiplication is not commutative, so CD is generally not equal to DC.
Common mistakes
- ✗Attempting to add or subtract matrices that do not have the same dimensions.
- ✗Incorrectly performing matrix multiplication by not following the 'row by column' dot product rule.
- ✗Assuming matrix multiplication is commutative (i.e., thinking AB = BA is always true).
- ✗Forgetting to multiply *all* elements of a matrix by the scalar during scalar multiplication.
- ✗Confusing vector notation (< >) with matrix notation ([ ]).
Exam tips
- ★Always check the dimensions of matrices before attempting any operation, especially multiplication, to ensure it's defined.
- ★For matrix multiplication, use a systematic approach (e.g., tracing rows and columns with your fingers) to ensure each element is calculated correctly.
- ★Practice matrix multiplication extensively, as it is often the most complex operation and a common source of errors.
- ★Clearly show all steps in your calculations, particularly for matrix multiplication, to minimize errors and allow for partial credit.
Ready to practise?
Try a problem on this topic
Snap a photo or type a question — get step-by-step working instantly.
