1. Home
  2. Explore
  3. Mathematics
  4. Rotation Matrices & Eigenvectors

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Rotation Matrices & Eigenvectors

Rotation Matrices and Eigenvalues/Eigenvectors

Rotation Matrices

Two-Dimensional Rotation

A rotation matrix transforms a vector by rotating it through an angle while preserving its length. In two dimensions, consider a vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}(xy​) rotated by angle θ\thetaθ to produce (x′y′)\begin{pmatrix} x' \\ y' \end{pmatrix}(x′y′​).

The rotation matrix R(θ)R(\theta)R(θ) satisfies:

(x′y′)=R(θ)(xy)\begin{pmatrix} x' \\ y' \end{pmatrix} = R(\theta) \begin{pmatrix} x \\ y \end{pmatrix}(x′y′​)=R(θ)(xy​)

Using basic trigonometry, the components transform as:

x′=xcos⁡θ−ysin⁡θy′=xsin⁡θ+ycos⁡θ\begin{aligned} x' &= x \cos\theta - y \sin\theta \\ y' &= x \sin\theta + y \cos\theta \end{aligned}x′y′​=xcosθ−ysinθ=xsinθ+ycosθ​

Thus the two-dimensional rotation matrix is:

R(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}R(θ)=(cosθsinθ​−sinθcosθ​)

Orthogonality of Rotation Matrices

Rotation does not change the magnitude of a vector, so R(θ)R(\theta)R(θ) must be an orthogonal matrix. This means:

R(θ)⊤=R(θ)−1R(\theta)^\top = R(\theta)^{-1}R(θ)⊤=R(θ)−1

Equivalently:

R(θ)⊤R(θ)=IR(\theta)^\top R(\theta) = IR(θ)⊤R(θ)=I

where I=(1001)I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}I=(10​01​).

The transpose of the rotation matrix corresponds to rotation by −θ-\theta−θ:

R(θ)⊤=R(−θ)=(cos⁡θsin⁡θ−sin⁡θcos⁡θ)R(\theta)^\top = R(-\theta) = \begin{pmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{pmatrix}R(θ)⊤=R(−θ)=(cosθ−sinθ​sinθcosθ​)

Therefore, rotating by θ\thetaθ and then by −θ-\theta−θ returns the original vector:

R(θ)⊤R(θ)(xy)=(xy)R(\theta)^\top R(\theta) \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} x \\ y \end{pmatrix}R(θ)⊤R(θ)(xy​)=(xy​)

Three-Dimensional Rotation Matrices

In three dimensions, rotation occurs about an axis. The coordinate along that axis remains unchanged.

Rotation about the z‑axis by θ\thetaθ

The z‑component of the vector does not change (z′=zz' = zz′=z). The x and y components transform as in the 2D case:

Rz(θ)=(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)R_z(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{pmatrix}Rz​(θ)=​cosθsinθ0​−sinθcosθ0​001​​

This matrix is orthogonal: Rz(θ)⊤=Rz(−θ)R_z(\theta)^\top = R_z(-\theta)Rz​(θ)⊤=Rz​(−θ).

Rotation about the x‑axis by ϕ\phiϕ

Now the x‑component is unchanged. The transformation matrix is:

Rx(ϕ)=(1000cos⁡ϕ−sin⁡ϕ0sin⁡ϕcos⁡ϕ)R_x(\phi) = \begin{pmatrix} 1 & 0 & 0 \\ 0 & \cos\phi & -\sin\phi \\ 0 & \sin\phi & \cos\phi \end{pmatrix}Rx​(ϕ)=​100​0cosϕsinϕ​0−sinϕcosϕ​​

Rotation about the y‑axis by ψ\psiψ

Similarly, rotation about the y‑axis leaves the y‑coordinate fixed:

Ry(ψ)=(cos⁡ψ0sin⁡ψ010−sin⁡ψ0cos⁡ψ)R_y(\psi) = \begin{pmatrix} \cos\psi & 0 & \sin\psi \\ 0 & 1 & 0 \\ -\sin\psi & 0 & \cos\psi \end{pmatrix}Ry​(ψ)=​cosψ0−sinψ​010​sinψ0cosψ​​

All three matrices satisfy orthogonality: Raxis(θ)⊤=Raxis(−θ)R_\text{axis}(\theta)^\top = R_\text{axis}(-\theta)Raxis​(θ)⊤=Raxis​(−θ).

Rotation about an Arbitrary Axis

Rotating a vector by an angle θ\thetaθ about an arbitrary axis in three dimensions is more complex. The resulting matrix can be derived, e.g., using the axis‑angle representation and Rodrigues' rotation formula. This general rotation is built from the basic axis rotations.

Products of Rotations

Multiple successive rotations can be combined by multiplying their matrices. The order matters because matrix multiplication is not commutative. For example, first rotate about the x‑axis by θ\thetaθ, then about the z‑axis by ϕ\phiϕ:

Rz(ϕ) Rx(θ)R_z(\phi) \, R_x(\theta)Rz​(ϕ)Rx​(θ)

The resulting matrix represents the combined transformation.


Eigenvalues and Eigenvectors

Definition

Given a square matrix AAA, a non-zero vector x\mathbf{x}x and a scalar λ\lambdaλ such that

Ax=λxA \mathbf{x} = \lambda \mathbf{x}Ax=λx

are called an eigenvector and an eigenvalue of AAA, respectively.

Key idea: The action of AAA on an eigenvector x\mathbf{x}x produces a vector parallel to x\mathbf{x}x — it only scales the vector by λ\lambdaλ without changing its direction.

Eigenvectors correspond to directions preserved by the linear transformation.

Scaling Property

If x\mathbf{x}x is an eigenvector of AAA with eigenvalue λ\lambdaλ, then any scalar multiple cxc\mathbf{x}cx (with c≠0c \neq 0c=0) is also an eigenvector with the same eigenvalue λ\lambdaλ:

A(cx)=cAx=cλx=λ(cx)A(c\mathbf{x}) = c A\mathbf{x} = c \lambda \mathbf{x} = \lambda (c\mathbf{x})A(cx)=cAx=cλx=λ(cx)

Thus eigenvectors represent directions, not magnitudes. Distinct eigenvectors point along different directions.

Finding Eigenvalues and Eigenvectors

To solve Ax=λxA\mathbf{x} = \lambda \mathbf{x}Ax=λx:

  1. Rewrite as (A−λI)x=0(A - \lambda I)\mathbf{x} = \mathbf{0}(A−λI)x=0, where III is the identity matrix.

  2. This is a homogeneous system of linear equations. Non‑trivial solutions (x≠0\mathbf{x} \neq \mathbf{0}x=0) exist only if the determinant of (A−λI)(A - \lambda I)(A−λI) is zero:

det⁡(A−λI)=0\det(A - \lambda I) = 0det(A−λI)=0

This equation is called the characteristic equation. Expanding the determinant yields a polynomial in λ\lambdaλ (the characteristic polynomial). For an n×nn \times nn×n matrix, it is a polynomial of degree nnn.

Example for a 3×3 Matrix

Let A=(a11a12a13a21a22a23a31a32a33)A = \begin{pmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{pmatrix}A=​a11​a21​a31​​a12​a22​a32​​a13​a23​a33​​​.

Then

A−λI=(a11−λa12a13a21a22−λa23a31a32a33−λ)A - \lambda I = \begin{pmatrix} a_{11}-\lambda & a_{12} & a_{13} \\ a_{21} & a_{22}-\lambda & a_{23} \\ a_{31} & a_{32} & a_{33}-\lambda \end{pmatrix}A−λI=​a11​−λa21​a31​​a12​a22​−λa32​​a13​a23​a33​−λ​​

Setting det⁡(A−λI)=0\det(A - \lambda I) = 0det(A−λI)=0 gives a cubic equation in λ\lambdaλ, which has three roots (eigenvalues) λ1,λ2,λ3\lambda_1, \lambda_2, \lambda_3λ1​,λ2​,λ3​ (some may be repeated or complex).

For each eigenvalue λi\lambda_iλi​, substitute back into (A−λiI)x=0(A - \lambda_i I)\mathbf{x} = \mathbf{0}(A−λi​I)x=0 and solve for the components of the eigenvector. Because it is a homogeneous system, the solution will have one free parameter (or more if the eigenvalue is repeated). This free parameter reflects the scaling freedom of the eigenvector. Typically, we can set one component to a convenient value (e.g., 1) and solve for the others.

Importance

Eigenvalues and eigenvectors are among the most important concepts in linear algebra with applications across physics, engineering, data science, and more. They reveal the intrinsic structure of linear transformations — the directions that are scaled but not rotated, and the extent of that scaling.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent