Rotation Matrix in 2D & 3D – Derivation, Properties & Solved Examples
IMPORTANT LINKS
A rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space. Geometry provides us with 4 types of transformations, namely, rotation, reflection, translation, and resizing. Furthermore, a transformation matrix uses the process of matrix multiplication to transform one vector into another. A matrix is a collection of numbers represented in the form of rows and columns. There are numerous types of matrices like row matrix, column matrix, rectangular matrix, diagonal matrix, zero matrix or null matrix, identity matrix, upper and lower triangular matrix, etc.
What is a Rotation Matrix?
A rotation matrix can be defined as a transformation matrix that operates on a vector and produces a rotated vector such that the coordinate axes always remain fixed. A rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space.
Maths Notes Free PDFs
Topic | PDF Link |
---|---|
General and Middle Term in Binomial Free Notes PDF | Download PDF |
Circle Study Notes | Download PDF |
Tangents and Normal to Conics | Download PDF |
Increasing and Decreasing Function in Maths | Download PDF |
Wheatstone Bridge Notes | Download PDF |
Alternating Current Notes | Download PDF |
Friction in Physics | Download PDF |
Drift Velocity Notes | Download PDF |
Chemical Equilibrium Notes | Download PDF |
Quantum Number in Chemistry Notes | Download PDF |
Forexample,thematrix
A rotation matrix is always a square matrix with real entries. This implies that the rotation matrix will always have an equal number of rows and columns. Moreover, rotation matrices are orthogonal matrices with a determinant equal to1.
Consider a square matrix R. ThenR is said to be rotation matrix if and only if:
, and .
Rotation Matrix Example
Consider a square matrix of order
Now, we have
Hence,
Now,
Thus,
- 3 Live Test
- 163 Class XI Chapter Tests
- 157 Class XII Chapter Tests
Rotation Matrix in 2D
In two dimensions every rotation matrix has the following form:
This rotates the column vector by means of the following matrix multiplication:
So the coordinates
The direction of vector rotation is counterclockwise if
Common rotation matrix in 2D is given below:
( counterclockwise rotation). ( in either direction – a half-turn). ( counterclockwise rotation, the same as a clockwise rotation).
Rotation Matrix in 2D Derivation
Consider a coordinate system (
Using the above information, we have
Using the above information, we have
Now, rotate the vector
Similarly, we have
x′ = r′ cos(α + β)
y′ = r′ sin(α + β)
Now, find an expression for x′ and y′ in terms of x and y.
Using the trigonometry identities, we have
cos(α + β) = cos(α)cos(β) − sin(α)sin(β)
sin(α + β) = cos(α)sin(β) + sin(α)cos(β)
Also by rotating the vector we did not change its magnitude, so r = r′.
Now using the above information, we have
x′ = r cos(α)cos(β) − r sin(α)sin(β)
y′ = r cos(α)sin(β) + r sin(α)cos(β)
Simplify the above expressions using x = r cos(α), y = r sin(α), we get
x′ = x cos(β) − y sin(β)
y′ = x sin(β) + y cos(β)
We can see that the x′ and y′ (components of rotated vector) can be written as a function of the initial vector x and y, and then these vectors which incorporate the angle β over which we rotated our initial vector.
Now, this transformation can now be written in matrix form, we have
Here, the matrix
Rotation Matrix in 3D
In three dimensions, the three basic rotation matrices rotate the vector about the x, y and z axis are given below:
In three dimensions, the three basic rotation matrices rotate the vector about the
Each of these basic vector rotations typically appears counter-clockwise when the axis about which they occur points toward the observer, and the coordinate system is right-handed.
A general rotation matrix in 3D can be obtained from these three using matrix multiplication. For example,
- The product
, represents a rotation matrix in 3D whose yaw, pitch and roll are , , and . - The product
, represents a rotation matrix in 3D whose Euler angles are , , and (using the convention for Euler angles).
Note: If we want to find the new coordinates
Rotation Matrix in 3D Derivation
3D rotation is very similar to 2D rotation except that of course we need an extra dimension. But since we’re rotating around a fixed axis, it behaves exactly like the 2D case with one of the dimensions ignored.
To derive the
Consider we move a point
Similarly, the same concept is applied to the rotation of the object about the
Rotation Matrix 90 Degrees
In 2D every rotation matrix has the following form:
In 2D every rotation matrix has the following form:
Then the rotation matrix with an angle
Similarly, we can find the rotation matrices in 3D with an angle
Clockwise Rotation Matrix
If we rotate a vector in the counterclockwise direction then its angle,
The counterclockwise rotation matrix in 2D is given as:
Thus, the clockwise rotation matrix in 2D is as follows:
Similarly, we can find the clockwise rotation matrices in 3D as given below:
Representation of Rotations in Mathematics
In mathematics, rotation means turning a shape or object around a fixed point or axis. There are a few ways to show or represent these rotations depending on the situation:
- Rotation Matrices:
This is the most common method. A rotation matrix is a special kind of grid (or table) of numbers that can turn a point or shape around a specific axis. It’s easy to use in calculations, especially in 2D or 3D geometry. - Quaternions:
Quaternions are a more advanced method used mostly in 3D. They include four numbers and are very useful in computer graphics and robotics. One big advantage of quaternions is that they help avoid a problem called gimbal lock (which can limit movement when using other methods). - Euler Angles:
Euler angles use three separate angles to describe a rotation—each one showing a turn around the X, Y, or Z axis. They’re simple to understand but can sometimes cause issues like gimbal lock, especially in 3D animations or simulations.
Properties of Rotation Matrix
Some of the important properties of rotation matrix that are applicable to both 2D and 3D rotation matrix are listed below:
- A rotation matrix is always an orthogonal matrix. Thus, the transpose of the matrix will be equal to the inverse of the matrix.
- A rotation matrix will always be a square matrix.
- The determinant of rotation matrices will always be equal to 1.
- Multiplication of rotation matrices will give a rotation matrix.
- If we take the cross product of two rows of a rotation matrix it will be equal to the third.
- The dot product of a row with a column of a rotation matrix will be equal to 1.
Applications of Rotation Matrix
There are a few applications of rotation matrix which are listed below:
- Rotation matrices are used for computations in aerospace, image processing, and other technical computing applications.
- Rotation matrices describe the rotation of an object or a vector in a fixed coordinate system. These matrices are widely used to perform computations in physics, geometry, and engineering.
Important Notes on Rotation Matrix
- What It Does:
A rotation matrix is used to turn (or rotate) a vector, while keeping the original position of the coordinate axes unchanged.
A rotation matrix is used to turn (or rotate) a vector, while keeping the original position of the coordinate axes unchanged.
2.2D Rotation (Counterclockwise):
The formula for rotating in 2D (like on a flat surface) in a counterclockwise direction is:
[ cos(θ) -sin(θ) ]
[ sin(θ) cos(θ) ]
- Here, θ is the angle of rotation.
- 3D Rotation Axes:
In 3D (three-dimensional) space:
-
-
- Rotation around the z-axis is called yaw
- Rotation around the y-axis is called pitch
- Rotation around the x-axis is called roll
- Rotation around the z-axis is called yaw
-
- Clockwise Rotation:
If you want to rotate clockwise, simply use –θ (a negative angle) in the rotation formula.
- Special Properties:
-
- The transpose of a rotation matrix is the same as its inverse.
- The determinant of any rotation matrix is always 1.
Solved Problems on the Rotation Matrix
Example 1: If C
Solution:We,knowthat,
Given:
Substitute the given condition in the above equation, we get
Thus the coordinate values are
Example 2: Rotate the point (2, 2) by 180° counterclockwise
The rotation matrix for 180° is:
[ -1 0 ]
[ 0 -1 ]
Now multiply it with (2, 2):
[ -1 0 ] [2] = [ -2 ]
[ 0 -1 ] [2] [ -2 ]
Final Answer: (-2, -2)
Example 3: Rotate the point (3, 4) by 270° clockwise
270° clockwise is the same as 90° counterclockwise.
Use the matrix:
[ 0 -1 ]
[ 1 0 ]
Now multiply it with (3, 4):
[ 0 -1 ] [3] = [ -4 ]
[ 1 0 ] [4] [ 3 ]
Final Answer: (-4, 3)
If you are checking Rotation Matrix article, also check the related maths articles: |
|
We hope that the above article is helpful for your understanding and exam preparations. Stay tuned to the Testbook App for more updates on related topics from Mathematics, and various such subjects. Also, reach out to the test series available to examine your knowledge regarding several exams. For better practice, solve the below provided previous year papers and mock tests for each of the given entrance exam:
FAQs For Rotation Matrix
Is a rotation matrix invertible?
Yes, a rotation matrix is invertible. The transpose of a rotation matrix will be equal to its inverse. This is because all rotation matrices are orthogonal matrices.
What is the rule for a 90 degree rotation matrix?
If you want to rotate a vector given by
How to find rotation matrix?
A square matrix
What is rotation matrix?
A rotation matrix can be defined as a transformation matrix that operates on a vector and produces a rotated vector such that the coordinate axes always remain fixed. Or in other words, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space.
What are the properties of a rotation matrix?
The properties of rotation matrix are listed below: A rotation matrix is always an orthogonal matrix. A rotation matrix will always be a square matrix. The determinant of rotation matrices will always be equal to 1. Multiplication of rotation matrices will give a rotation matrix.
Can the rotation matrix be used in 3D?
Yes! In 3D, rotation matrices rotate points around the x-axis, y-axis, or z-axis. Each axis has its own rotation matrix.
Is a rotation matrix always square?
Yes, rotation matrices are always square (same number of rows and columns). A 2D rotation matrix is 2×2, and a 3D one is 3×3.