Matrix Transformation — Definition, Formula & Examples
A matrix transformation is a function that takes a vector as input, multiplies it by a specific matrix, and produces a new vector as output. It can rotate, reflect, scale, or shear points in a coordinate plane or higher-dimensional space.
A matrix transformation is a mapping defined by , where is an matrix and is a column vector in . Every matrix transformation is a linear transformation, meaning it satisfies and for all vectors and scalars .
Key Formula
Where:
- = The transformation matrix (here shown as 2×2)
- = The input column vector
- = The output vector after transformation
How It Works
To apply a matrix transformation, you multiply the transformation matrix by the input vector . Each row of produces one component of the output vector through a dot product with . For example, a matrix acting on a 2D vector yields another 2D vector — this is how geometric operations like rotation by or reflection across the -axis are performed algebraically. The columns of tell you where the standard basis vectors land after the transformation, which completely determines the function.
Worked Example
Problem: Apply the matrix transformation defined by A = [[0, -1], [1, 0]] to the vector x = [3, 5]ᵀ. What does this transformation do geometrically?
Step 1: Set up the matrix-vector multiplication.
Step 2: Compute the first component using the dot product of row 1 with x.
Step 3: Compute the second component using the dot product of row 2 with x.
Step 4: Identify the geometry: the standard basis vector e₁ = [1, 0]ᵀ maps to [0, 1]ᵀ and e₂ = [0, 1]ᵀ maps to [-1, 0]ᵀ. This is a 90° counterclockwise rotation.
Answer: The transformed vector is [-5, 3]ᵀ. The matrix performs a 90° counterclockwise rotation.
Another Example
Problem: Use the scaling matrix A = [[2, 0], [0, 3]] to transform the vector x = [4, -1]ᵀ.
Step 1: Multiply the matrix by the vector.
Step 2: Simplify each component.
Answer: The output is [8, -3]ᵀ. The x-component was scaled by 2 and the y-component was scaled by 3.
Visualization
Why It Matters
Matrix transformations are central to high school and college linear algebra courses, where they connect abstract algebra to concrete geometry. In computer graphics and game development, every rotation, scaling, and projection on screen is computed using matrix transformations applied to vertex coordinates. They also appear in data science, where principal component analysis uses matrix transformations to reduce the dimensionality of datasets.
Common Mistakes
Mistake: Multiplying the vector by the matrix in the wrong order (writing xA instead of Ax).
Correction: Matrix-vector multiplication requires the matrix on the left and the column vector on the right. For an m × n matrix, the vector must have n rows. The order matters because matrix multiplication is not commutative.
Mistake: Confusing which dimension is the input and which is the output.
Correction: For an m × n matrix A, the input vector must be in ℝⁿ (n entries) and the output vector is in ℝᵐ (m entries). The number of columns of A must match the number of rows in x.
