Skip to content

Rotation matrix

In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space.

Version
v2 · 2026-11-14 · History
Domain-specific #
11846
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomain
Linear Algebra → Mathematics

Core Idea

In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space. In two dimensions, with the usual convention, the matrix

\[R = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}\]

rotates points in the \(xy\) plane counterclockwise through an angle \(\theta\) about the origin of a Cartesian coordinate system. To rotate a point \(\mathbf{v} = (x, y)\), it is written as a column vector and multiplied by \(R\), giving \(R\mathbf{v} = (x\cos\theta - y\sin\theta,\; x\sin\theta + y\cos\theta)\). Writing \(x = r\cos\phi\) and \(y = r\sin\phi\) shows that this product is the angle-sum formula in matrix form: the rotated vector points at angle \(\phi + \theta\).

In general, rotation matrices are real square matrices, and a square matrix \(R\) is a rotation matrix if and only if \(R^\mathsf{T} = R^{-1}\) and \(\det R = 1\). The orthogonal \(n \times n\) matrices with determinant \(+1\) form the special orthogonal group \(\mathrm{SO}(n)\), while allowing determinant \(-1\) as well gives the orthogonal group \(\mathrm{O}(n)\). Some literature extends "rotation" to improper rotations, orthogonal matrices with determinant \(-1\), which combine a proper rotation with a reflection that reverses orientation. The sign convention matters: the matrix above describes active, counterclockwise rotations of vectors in a right-handed coordinate system.

How would you explain it like I'm…

The Spinning Number Recipe

A rotation matrix is a little number recipe that turns points around a center, like spinning a picture on a pin. You give it a point and how far to turn, and it tells you where the point ends up after the spin. The picture doesn't stretch or squish; it just turns.

A Grid That Turns Points

A rotation matrix is a small grid of numbers used to turn points around a center. In a flat plane, the grid for turning counterclockwise by an angle uses the cosine and sine of that angle, numbers that come from the angle itself. To turn a point, you write its two coordinates in a column and multiply by the grid, and out come the new coordinates. All the points of a shape turn by the same angle around the center, so the shape doesn't stretch or change size.

Rotation Matrices in Linear Algebra

A rotation matrix is a matrix used to rotate points or vectors in Euclidean space, such as the 2D plane or 3D space. In the plane, rotating counterclockwise by an angle θ about the origin uses the matrix with rows (cos θ, -sin θ) and (sin θ, cos θ). To rotate a point (x, y), you write it as a column vector and multiply by the matrix, which gives x times the column (cos θ, sin θ) plus y times the column (-sin θ, cos θ). The columns show where the unit x and y directions land after rotation. Rotation matrices keep lengths and angles unchanged and do not flip shapes. The direction (counterclockwise here) depends on the convention chosen.

 

In linear algebra, a rotation matrix is a transformation matrix that performs a rotation in Euclidean space. Under the standard convention in a two-dimensional Cartesian coordinate system, R(theta) = [[cos theta, -sin theta], [sin theta, cos theta]] rotates points counterclockwise through angle theta about the origin. A point with standard coordinates (x, y) is written as a column vector and multiplied by R(theta), giving x(cos theta, sin theta)^T + y(-sin theta, cos theta)^T, so the columns of R are the images of the standard basis vectors. Because rotations preserve lengths and angles, rotation matrices are orthogonal with determinant 1. Conventions matter: rotating the coordinate axes instead of the points, or using row vectors, changes the matrix to its transpose. The identity requires that the matrix actually perform a rotation, not merely appear in a rotation-related context.

Structural Signature

Sig role-phrases:

  • Defining carrier — We can zero them by extending the same idea of stepping through the columns with a series of rotations in a fixed sequence of planes.
  • Constitutive relation — Thus we can build an \(n \times n\) rotation matrix by starting with a \(2 \times 2\) matrix, aiming its fixed axis on \(S^2\) (the ordinary sphere in three-dimensional space), aiming the resulting rotation on \(S^3\), and so on up through \(S^{n-1}\).
  • Operating condition — In some instances it is interesting to describe a rotation by specifying how a vector is mapped into another through the shortest path (smallest angle).
  • Recognition evidence — If one identifies \(\mathbb R^2\) with \(\mathbb C\) through the linear isomorphism \((a,b)\mapsto a+ib\), where \((a,b) \in \mathbb R^2\) and \(a+ib \in \mathbb C\), the action of a matrix \(\begin{bmatrix} x & -y \\ y & x \end{bmatrix}\) on a vector \((a,b)\) corresponds to multiplication on the complex number \(a+ib\) by \(x + iy\).
  • Admissible variation — An alternative convention uses rotating axes (instead of rotating a vector), and the above matrices also represent a rotation of the axes clockwise through an angle \(\theta\).
  • Characteristic consequence — The two-dimensional case is the only non-trivial case where the rotation matrices group is commutative; it does not matter in which order rotations are multiply performed.
  • Failure boundary — See below for other alternative conventions which may change the sense of the rotation produced by a rotation matrix.

What It Is Not

  • Not the whole field of linear algebra. The node requires the specific identity stated by In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space.
  • Not an over-broad reading. For the 3-dimensional case, for example, a different order of multiple rotations gives a different result (e.g., rotating cell phones along the z-axis then the y-axis is not equal to rotating them along the y-axis then the z-axis.).
  • Not an over-broad reading. However, we often prefer a \(Q\) closest to \(M\), which this method does not accomplish.
  • Not an over-broad reading. The two-dimensional case is the only non-trivial case where the rotation matrices group is commutative; it does not matter in which order rotations are multiply performed.
  • Not automatically Plane of Rotation. Retrieval proximity does not establish equivalence; the two identities must be compared by carrier, operation, and failure boundary.

Scope of Application

Rotation matrix applies literally inside linear algebra wherever the source-defined carrier and relation can be established. Its documented habitats include:

  • Skew parameters via Cayley's formula. Although in practical applications we can hardly afford to ignore 180° rotations, the Cayley transform is still a potentially useful tool, giving a parameterization of most rotation matrices without trigonometric functions.
  • Sense. The sense or "direction" of vector rotation (not to be confused with the vector direction) is counterclockwise if \(\theta\) is positive (e.g.
  • Non-standard orientation of the coordinate system. If a standard right-handed Cartesian coordinate system is used, with the \(x\)-axis to the right and the \(y\)-axis up, the rotation \(R(\theta)\) is counterclockwise.
  • Non-standard orientation of the coordinate system. If a left-handed Cartesian coordinate system is used, with \(x\) directed to the right but \(y\) directed down, \(R(\theta)\) is clockwise.
  • Non-standard orientation of the coordinate system. Such non-standard orientations are rarely used in mathematics but are common in 2D computer graphics, which often have the origin in the top left corner and the \(y\)-axis down the screen or page.
  • Similarly, the product. These matrices produce the desired effect only if they are used to premultiply column vectors, and (since in general matrix multiplication is not commutative) only if they are applied in the specified order (see Ambiguities for more details).

Outside linear algebra, the name should be retained only when these same operational conditions survive; otherwise the comparison belongs to the broader parent Pattern or should be marked as analogy.

Clarity

A clear use of Rotation matrix names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space. The strongest recognition evidence is: If one identifies \(\mathbb R^2\) with \(\mathbb C\) through the linear isomorphism \((a,b)\mapsto a+ib\), where \((a,b) \in \mathbb R^2\) and \(a+ib \in \mathbb C\), the action of a matrix \(\begin{bmatrix} x & -y \\ y & x \end{bmatrix}\) on a vector \((a,b)\) corresponds to multiplication on the complex number \(a+ib\) by \(x + iy\). A report should distinguish that evidence from a proxy, consequence, or common implementation. It should also state the qualification For the 3-dimensional case, for example, a different order of multiple rotations gives a different result (e.g., rotating cell phones along the z-axis then the y-axis is not equal to rotating them along the y-axis then the z-axis.). so that a reader can reproduce the classification rather than infer it from topical resemblance.

Manages Complexity

Rotation matrix compresses multiple linear algebra details into a stable diagnostic relation. The source shows both the central mechanism—thus we can build an \(n \times n\) rotation matrix by starting with a \(2 \times 2\) matrix, aiming its fixed axis on \(S^2\) (the ordinary sphere in three-dimensional space), aiming the resulting rotation on \(S^3\), and so on up through \(S^{n-1}\).—and the practical consequence—the two-dimensional case is the only non-trivial case where the rotation matrices group is commutative; it does not matter in which order rotations are multiply performed. This compression makes cases comparable while leaving parameters, conventions, exceptions, and evidential quality explicit. It is lossy by design: local history and implementation details may be omitted only when they do not alter the defining relation.

Abstract Reasoning

  1. Type the carrier. Identify the linear algebra entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space.
  3. Check operation and conditions. In some instances it is interesting to describe a rotation by specifying how a vector is mapped into another through the shortest path (smallest angle).
  4. Demand recognition evidence. If one identifies \(\mathbb R^2\) with \(\mathbb C\) through the linear isomorphism \((a,b)\mapsto a+ib\), where \((a,b) \in \mathbb R^2\) and \(a+ib \in \mathbb C\), the action of a matrix \(\begin{bmatrix} x & -y \\ y & x \end{bmatrix}\) on a vector \((a,b)\) corresponds to multiplication on the complex number \(a+ib\) by \(x + iy\).
  5. Test variation. Change an implementation or setting while preserving an alternative convention uses rotating axes (instead of rotating a vector), and the above matrices also represent a rotation of the axes clockwise through an angle \(\theta\).
  6. Run the collapse test. Remove the defining operation; if the label still seems equally apt, only a topic or correlate was retained.
  7. Reduce cautiously. When the specialist conditions cannot be carried, route the residual comparison to Pattern.

Knowledge Transfer

Within the home domain. Knowledge about Rotation matrix transfers literally when a new case preserves the same carrier type, relation, and recognition test. Although in practical applications we can hardly afford to ignore 180° rotations, the Cayley transform is still a potentially useful tool, giving a parameterization of most rotation matrices without trigonometric functions. The sense or "direction" of vector rotation (not to be confused with the vector direction) is counterclockwise if \(\theta\) is positive (e.g.

Beyond the home domain. No canonical parent is asserted for Rotation matrix. An outside case receives the specialist name only when the same typed roles and rejection conditions can be filled literally; otherwise the comparison remains an analogy pending later graph densification.

Examples

Canonical

For the 3-dimensional case, for example, a different order of multiple rotations gives a different result (e.g., rotating cell phones along the z-axis then the y-axis is not equal to rotating them along the y-axis then the z-axis.). This case is canonical because it supplies a concrete carrier and lets the defining relation be checked rather than merely named.

Mapped back: carrier → the entities in the documented case; operation → In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space; recognition evidence → If one identifies \(\mathbb R^2\) with \(\mathbb C\) through the linear isomorphism \((a,b)\mapsto a+ib\), where \((a,b) \in \mathbb R^2\) and \(a+ib \in \mathbb C\), the action of a matrix \(\begin{bmatrix} x & -y \\ y & x \end{bmatrix}\) on a vector \((a,b)\) corresponds to multiplication on the complex number \(a+ib\) by \(x + iy\)

Applied / In Practice

For example, in 2-space \(n = 2\), a rotation by angle \(\theta\) has eigenvalues \(\lambda = e^{i\theta}\) and \(\lambda = e^{-i\theta}\), so there is no axis of rotation except when \(\theta = 0\), the case of the null rotation. The applied case shows how the identity is used under a second setting or qualification while keeping the same operative relation.

Mapped back: changed setting → Properties; invariant → In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space; boundary → the case exits the class when for the 3-dimensional case, for example, a different order of multiple rotations gives a different result (e.g., rotating cell phones along the z-axis then the y-axis is not equal to rotating them along the y-axis then the z-axis.)

Structural Tensions

T1 — Stable identity versus admissible variation. For the 3-dimensional case, for example, a different order of multiple rotations gives a different result (e.g., rotating cell phones along the z-axis then the y-axis is not equal to rotating them along the y-axis then the z-axis.). The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Which changes preserve the defining relation, and which replace it?

T2 — Recognition versus proxy. However, we often prefer a \(Q\) closest to \(M\), which this method does not accomplish. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the cited evidence establish the identity or only a correlated sign?

T3 — Definition versus implementation. The two-dimensional case is the only non-trivial case where the rotation matrices group is commutative; it does not matter in which order rotations are multiply performed. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Is the observed implementation constitutive, optional, or merely common?

T4 — Scope versus overextension. These matrices produce the desired effect only if they are used to premultiply column vectors, and (since in general matrix multiplication is not commutative) only if they are applied in the specified order (see Ambiguities for more details). The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Can every claimed application fill the same typed roles without metaphor?

T5 — Transfer versus domain accent. We can zero them by extending the same idea of stepping through the columns with a series of rotations in a fixed sequence of planes. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the receiving case instantiate Rotation matrix literally, co-instantiate Pattern, or only resemble it?

T6 — Autonomy versus reduction. Thus we can build an \(n \times n\) rotation matrix by starting with a \(2 \times 2\) matrix, aiming its fixed axis on \(S^2\) (the ordinary sphere in three-dimensional space), aiming the resulting rotation on \(S^3\), and so on up through \(S^{n-1}\). The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: What does Rotation matrix distinguish that the broader parent Pattern leaves together?

Structural–Framed Character

Rotation matrix is mixed or framed-leaning. Its structural side is the repeatable organization summarized by In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space. Its framed side is the linear algebra vocabulary that fixes the carrier, evidence, exceptions, and admissible transformations.

Evaluative weight: the identity can be stated descriptively even when applications carry practical stakes. Human-practice dependence: the source-grounded carrier determines whether the relation exists independently or is constituted by a practice. Institutional origin: disciplinary conventions stabilize the name and test. Vocabulary portability: In some instances it is interesting to describe a rotation by specifying how a vector is mapped into another through the shortest path (smallest angle). Import versus recognition: literal transfer requires the same mechanism; shape alone is analogy.

Its portable skeleton is Pattern. Its character: a recurring specialist identity whose thin organization can be abstracted, while its operational meaning remains domain-bound.

Structural Core vs. Domain Accent

What is skeletal. In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space. The stable skeleton is the typed relation expressed in that definition and the entry's recognition and collapse tests. The source identifies these operative conditions: We can zero them by extending the same idea of stepping through the columns with a series of rotations in a fixed sequence of planes. Thus we can build an \(n \times n\) rotation matrix by starting with a \(2 \times 2\) matrix, aiming its fixed axis on \(S^2\) (the ordinary sphere in three-dimensional space), aiming the resulting rotation on \(S^3\), and so on up through \(S^{n-1}\). It further constrains recognition and variation through: In some instances it is interesting to describe a rotation by specifying how a vector is mapped into another through the shortest path (smallest angle). If one identifies \(\mathbb R^2\) with \(\mathbb C\) through the linear isomorphism \((a,b)\mapsto a+ib\), where \((a,b) \in \mathbb R^2\) and \(a+ib \in \mathbb C\), the action of a matrix \(\begin{bmatrix} x & -y \\ y & x \end{bmatrix}\) on a vector \((a,b)\) corresponds to multiplication on the complex number \(a+ib\) by \(x + iy\).

What is domain-bound. linear algebra supplies the operative entities, technical vocabulary, warrants, and exceptions that make Rotation matrix literal. Its documented scope includes the condition that Although in practical applications we can hardly afford to ignore 180° rotations, the Cayley transform is still a potentially useful tool, giving a parameterization of most rotation matrices without trigonometric functions. Another bounded application condition is that The sense or "direction" of vector rotation (not to be confused with the vector direction) is counterclockwise if \(\theta\) is positive (e.g. These are not decorative examples; they determine which carrier and evidence can fill the abstraction's roles.

Why no parent is asserted. Removing those specialist details does not currently yield one live catalog node that is a necessary genus for every instance. The entry is therefore approved as unparented rather than attached by topical resemblance. Its collapse evidence remains specific—An alternative convention uses rotating axes (instead of rotating a vector), and the above matrices also represent a rotation of the axes clockwise through an angle \(\theta\).—and future graph densification may discover a defensible relation only if it preserves that boundary.

This entry is a kind of Matrix.

  • Approved unparented node. No current live node supplies a defensible necessary genus or structural prerequisite for Rotation matrix. The reviewed identity is: In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space. The accelerated suggestion was declined because topical or lexical similarity does not establish hierarchy; the node is admitted without a parent pending later graph densification.
  • Related reasoning operations. Evidence, representation, comparison, classification, transformation, or evaluation may participate in particular cases, but participation does not make any one of them a necessary parent of every instance.

Relationships to Other Abstractions

Local relationship map for Rotation matrixParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Rotation matrixDOMAINDomain-specific abstraction: Matrix — is a kind ofMatrixDOMAIN

Current abstraction Rotation matrix Domain-specific

Parents (1) — outgoing typed relations

  • Rotation matrix is a kind of Matrix Domain-specific

    A rotation matrix is a matrix specialized to rotations in Euclidean space.

Hierarchy paths (5) — routes to 5 parentless roots

Neighborhood in Abstraction Space

Rotation matrix sits in a crowded region of the domain-specific corpus (32nd percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Combinatorial Optimization & Discrete Structures (32 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Pattern. The parent omits the specialist differentia. Tell: Can the case establish In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation in Euclidean space?
  • Plane of Rotation. Represent a simple Euclidean rotation by the oriented two-dimensional subspace in which vectors turn, leaving its orthogonal complement fixed. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • 3D rotation group. The Lie group SO(3) of orientation-preserving linear isometries of three-dimensional Euclidean space, represented by orthogonal matrices of determinant one. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Diagonal Matrix. A matrix whose off-main-diagonal entries are zero, so its coordinate axes decouple and addition, multiplication, inversion, powers, determinants, and spectral action reduce to scalar operations on diagonal entries. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • A measurement, proxy, or consequence. Those may provide evidence without being the identity. Tell: Would Rotation matrix remain present if the detector or downstream effect changed?
  • A metaphorical analogue. A similar shape outside linear algebra lacks the specialist mechanism. Tell: Do the native roles transfer literally, or only the parent Pattern?

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Rotation_matrix (revision 1361426283).