Last updated on July 15th, 2025
A transformation matrix is a square matrix that transforms one vector into another using matrix multiplication. In this article, we will learn about the transformation matrix, its properties, and types.
A square matrix used to represent the linear transformation in a vector space using matrix multiplication is called a transformation matrix. It changes the coordinates of vectors without changing the linearity and structure. By applying the rule of linear transformation, it changes the position vector of a point to a new vector.
In linear transformation, the transformation matrix follows various properties. Here are some properties of transformation matrices:
The transformation matrices can be classified into different types based on the specific transformation, such as:
Translation Matrix
The translation matrix is used to move the object along one or more axes (x, y, z), without changing the shape and orientation. Now let’s learn how it works, consider the point P = (x, y, z) in 3D space and apply the translation vector T = (Tx, TY, Tz).
Here, the translation matrix is
Representing the point P using a matrix:
Multiplying the transformation matrix by point p
Rotation Matrix
A rotation matrix is used to rotate vectors or points in a coordinate plane. In 2D, rotation is performed by a certain angle around a specific axis. In 3D, it occurs around a defined axis.
For example, consider a point P = (x, y) in 2D. To rotate this point counterclockwise around the origin by an angle θ, we apply the 2D rotation matrix.
Representing the point P(x, y) as:
x = r cos ϕ
y = r sin ϕ
After rotation new coordinate (x′, y′) becomes:
x′ = r cos (ϕ + θ) = x cosθ - y sinθ
y′ = r sin (ϕ + θ) = x sinθ + y cosθ
It can be represented in matrix form as:
y′x′ = sincos cos-sin yx
Scaling Matrix
A scaling matrix is used to resize any object by expanding or contracting its vertices along the axes. Here, we multiply each coordinate of the vectors by the scaling factor.
If the scaling factor is greater than 1, then the object expands, and if the scaling factor is less than 1, the object contracts.
For example, the coordinates (X, Y) are scaled using the factors (SX, SY). Let’s consider the new coordinates (X′, Y′)
So, X′ = X ∙ SX
Y′ = Y ∙ SY
It can be represented in matrix operations as:
Composite Matrix
In a matrix, if we apply multiple transformations like scaling, translation, rotation, etc., in a sequence. Since matrix multiplication is non-commutative, the order of multiplication is important.
For example, translating the point P(1, 2) by (3, 4) and then rotating it by 90° counterclockwise
The given point P = (1, 2)
T = (3, 4)
θ = 90°
Writing the points in matrix form:
To apply translation, we multiply T and P (T ∙ P)
Thus, the translated point is (4, 6)
Then, rotate the matrix 90° counterclockwise about the origin.
To find the rotation matrix, we use the formula, y′x′ = sincos cos-sin yx
So, R = sin(90°)cos(90°) cos(90°)-sin(90°) = 10 0-1
Here (x, y) = (4, 6)
10 0-1 64 = 1 4 + 0 60 4 + (-1) 6
= 4-6
Thus, the point after rotation is (-6, 4)
Reflection Matrix
The transformation matrix is used to create mirror images of a shape. Here, the coordinates will be reversed by the size and shape of the object will be the same.
For example, reflecting a point p(1, 2) across the x-axis
The reflection matrix across the x-axis can be represented as: Rx = 01 -1 0
Representing the point P(1, 2) in matrix
P = 21
Now, to find the reflection matrix, we multiply Rx and P
Rx ∙ P = 01 -1 0 21
= 0 1 + (-1) 21 1 + 0 2
= -2 1
So, after reflection, the point P(1, 2) becomes P′(1, -2)
Shear Matrix
A shear transformation is a type of transformation that slants the shape of an object along the coordinate axes. To skew objects in a coordinate system, we use a shear transformation, which is represented by a shear matrix. The shear transformation is classified into two types based on the axis of coordinates: X-Shear and Y-Shear.
X-Shear(Xsh): The x-coordinates of the points are shifted while the y-coordinates remain unchanged. It can be represented as:
Affine Transformation Matrix
It is a type of geometric transformation that keeps the straightness and parallelism between lines. Commonly used in computer software and graphic design to move, scale, or rotate shapes. We use homogeneous coordinates in affine transformation with matrices. So, let’s see how to express affine transformations using matrix multiplication.
Representing the vector (x, y) as a 3-vector (x, y, 1). Using matrix multiplication, we can represent all transformations.
In matrix form, a translation that shifts a point by tx and ty along the x-axis and y-axis, respectively, can be represented as:
Thus, x′ = x + tx
y′ = y + ty
In mathematics, a transformation matrix is used to represent the linear transformation in a vector space. Here are some real-world applications of the transformation matrix.
Transformation matrices are widely used in various fields, such as computer graphics, robotics, physics, etc., but they can be confusing sometimes. In this section, we will discuss some common mistakes and ways to avoid them when working with a transformation matrix.
Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.
: He loves to play the quiz with kids through algebra to make kids love it.