Matrix multiplication
Understanding Matrix Multiplication
Matrix multiplication is a fundamental operation in linear algebra, distinct from element-wise multiplication. It combines rows from the first matrix with columns from the second matrix to produce a new matrix. This operation is crucial in AP Precalculus for applications involving transformations, systems of equations, and data manipulation.
Dimensions for Multiplication
For two matrices, A and B, to be multiplied to form the product AB, the number of columns in matrix A must equal the number of rows in matrix B. If matrix A has dimensions m x n (m rows, n columns) and matrix B has dimensions n x p (n rows, p columns), then the resulting product matrix C = AB will have dimensions m x p. If these inner dimensions do not match, the matrices cannot be multiplied.
- If A is 2x3 and B is 3x4, then AB is 2x4.
- If A is 4x2 and B is 3x2, then AB is undefined.
The Multiplication Process
To find an element cij in the product matrix C (which is in row i and column j), you take the i-th row of matrix A and the j-th column of matrix B. You then multiply corresponding elements from that row and column and sum the products. This is often referred to as the dot product of the row vector and the column vector.
Let's consider two matrices:
A = [[a11, a12], [a21, a22]]
B = [[b11, b12], [b21, b22]]
Then the product C = AB would be:
C = [[a11b11 + a12b21, a11b12 + a12b22],
[a21b11 + a22b21, a21b12 + a22b22]]
Properties of Matrix Multiplication
Matrix multiplication has several important properties:
- Associativity: (AB)C = A(BC). This means the grouping of matrices doesn't affect the final product.
- Distributivity: A(B + C) = AB + AC and (A + B)C = AC + BC. Matrix multiplication distributes over matrix addition.
- Non-Commutativity: In general, AB ≠ BA. The order of multiplication matters significantly. This is a crucial distinction from scalar multiplication. For example, if A = [[1, 2], [3, 4]] and B = [[0, 1], [1, 0]], then AB = [[2, 1], [4, 3]] but BA = [[3, 4], [1, 2]].
- Identity Matrix: There exists an identity matrix, denoted I, such that AI = IA = A. The identity matrix is a square matrix with ones on the main diagonal and zeros elsewhere. For a 2x2 matrix, I = [[1, 0], [0, 1]].
Applications in AP Precalculus
Matrix multiplication is extensively used in:
- Geometric Transformations: Representing rotations, reflections, dilations, and translations in a coordinate plane. A point (x, y) can be represented as a column vector [[x], [y]], and a transformation matrix can be multiplied by this vector to find the new coordinates.
- Solving Systems of Linear Equations: A system like ax + by = e, cx + dy = f can be written as AX = B, where A is the coefficient matrix, X is the variable matrix, and B is the constant matrix.
- Network Analysis: Modeling connections between different points or states.
Practice questions
Given matrix A is 3x2 and matrix B is 2x4, what are the dimensions of the product matrix AB?
If matrix A = [[1, 2], [3, 4]] and matrix B = [[5, 6], [7, 8]], find the element in the first row, first column (c11) of the product matrix C = AB.
Which property of matrix multiplication states that, in general, AB is not equal to BA?
What is the identity matrix for 2x2 matrices, and what is its role in matrix multiplication?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/precalculus/unit-4-functions-involving-parameters-vectors-and-matrices/matrix-multiplication