MatheramaMatherama
← Matrices and Determinants
Matrices and Determinants·Section 9·10 min read

Matrices and Geometry

Projection Matrix§

Consider a point A(x,y)A(x, y) in the Cartesian coordinate system. The projection of this point onto the x-axis is the point A′(x′,y′)A'(x', y'), which is the foot of the perpendicular dropped from AA to the x-axis.

Geometrically, it's clear that the x-coordinate remains the same while the y-coordinate becomes zero. Hence:

x′=xandy′=0x' = x \quad \text{and} \quad y' = 0

We can express this using matrix multiplication. Let's rewrite the coordinates of A′A' as:

[x′y′]=[1000][xy]\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}

Here, the matrix:

P=[1000]\mathbf{P} = \begin{bmatrix} \mathbf{1} & \mathbf{0} \\ \mathbf{0} & \mathbf{0} \end{bmatrix}

is called a projection matrix. The above matrix is just an example of projection matrices. There can be other projection matrices. In our example above, it "projects" any point (x,y)(x, y) onto the x-axis by nullifying the y-coordinate.

Example:

To find the projection of the point (9,8)(9, 8) on the x-axis, we multiply the matrix P\mathbf{P} by the column vector [98]\begin{bmatrix} 9 \\ 8 \end{bmatrix}:

P[98]=[1000][98]=[90]\mathbf{P} \begin{bmatrix} 9 \\ 8 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 9 \\ 8 \end{bmatrix} = \begin{bmatrix} 9 \\ 0 \end{bmatrix}

So, the projection of the point (9,8)(9, 8) onto the x-axis is (9,0)(9, 0).

Idempotence of the Projection Matrix§

An important property of projection matrices is that they are idempotent. In our example, this can be expressed mathematically as follows:

If we project the point A′(x′,y′)A'(x', y') again, we get:

[x′′y′′]=P[x′y′]=P2[xy]\begin{bmatrix} x'' \\ y'' \end{bmatrix} = \mathbf{P} \begin{bmatrix} x' \\ y' \end{bmatrix} = \mathbf{P}^2 \begin{bmatrix} x \\ y \end{bmatrix}

Since the projection doesn't change:

[x′′y′′]=[x′y′]\begin{bmatrix} x'' \\ y'' \end{bmatrix} = \begin{bmatrix} x' \\ y' \end{bmatrix}

Thus:

P2[xy]=P[xy]\mathbf{P}^2 \begin{bmatrix} x \\ y \end{bmatrix} = \mathbf{P} \begin{bmatrix} x \\ y \end{bmatrix}

This implies that:

P2=P\mathbf{P}^2 = \mathbf{P}

This property, P2=P\mathbf{P}^2 = \mathbf{P}, is called idempotence. A matrix that satisfies this property is called an idempotent matrix. This means that applying the projection matrix multiple times has the same effect as applying it once.

Another example of a projection matrix is one that projects a point onto the y-axis. In this case, the x-coordinate becomes zero, while the y-coordinate remains unchanged.

For a point A(x,y)A(x, y), its projection onto the y-axis, A′(x′,y′)A'(x', y'), can be expressed as:

x′=0andy′=yx' = 0 \quad \text{and} \quad y' = y

This can be represented by the following projection matrix:

P=[0001]\mathbf{P} = \begin{bmatrix} \mathbf{0} & \mathbf{0} \\ \mathbf{0} & \mathbf{1} \end{bmatrix}

Thus, the projection of a point (x,y)(x, y) onto the y-axis is:

[x′y′]=P[xy]=[0001][xy]=[0y]\begin{bmatrix} x' \\ y' \end{bmatrix} = \mathbf{P} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ y \end{bmatrix}

Example:

For a point (7,5)(7, 5), the projection onto the y-axis is:

P[75]=[05]\mathbf{P} \begin{bmatrix} 7 \\ 5 \end{bmatrix} = \begin{bmatrix} 0 \\ 5 \end{bmatrix}

This means the projection of (7,5)(7, 5) on the y-axis is (0,5)(0, 5).

Just like the x-axis projection, this matrix is also idempotent, since P2=P\mathbf{P}^2 = \mathbf{P}.


Let's work through this example of a projection matrix for the line L:2x−y=0L: 2x - y = 0.

We are given:

  • A point A(x,y)A(x, y),
  • The projection of this point A′(x′,y′)A'(x', y') onto the line 2x−y=02x - y = 0.

Using the foot of the perpendicular formula, we have the following relationships:

x′−x2=y′−y−1=−2x−y5\frac{x' - x}{2} = \frac{y' - y}{-1} = -\frac{2x - y}{5}

Solving these, we find the coordinates of the projected point A′(x′,y′)A'(x', y'):

x′=15x+25yandy′=25x+45yx' = \frac{1}{5}x + \frac{2}{5}y \quad \text{and} \quad y' = \frac{2}{5}x + \frac{4}{5}y

We can express this in matrix form:

[x′y′]=[15252545][xy]\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}

Thus, the projection matrix P\mathbf{P} for projecting a point onto the line 2x−y=02x - y = 0 is:

P=[15252545]\mathbf{P} = \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix}

Let us confirm that thsi matrix is indeed idempotent (P2=P\mathbf{P}^2 = \mathbf{P}). We will compute P2\mathbf{P}^2.

P2=[15252545][15252545]\mathbf{P}^2 = \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix} \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix}

Now, perform the matrix multiplication:

P2=[15⋅15+25⋅2515⋅25+25⋅4525⋅15+45⋅2525⋅25+45⋅45]\mathbf{P}^2 = \begin{bmatrix} \frac{1}{5} \cdot \frac{1}{5} + \frac{2}{5} \cdot \frac{2}{5} & \frac{1}{5} \cdot \frac{2}{5} + \frac{2}{5} \cdot \frac{4}{5} \\ \frac{2}{5} \cdot \frac{1}{5} + \frac{4}{5} \cdot \frac{2}{5} & \frac{2}{5} \cdot \frac{2}{5} + \frac{4}{5} \cdot \frac{4}{5} \end{bmatrix}

Simplifying each term:

P2=[125+425225+825225+825425+1625]\mathbf{P}^2 = \begin{bmatrix} \frac{1}{25} + \frac{4}{25} & \frac{2}{25} + \frac{8}{25} \\ \frac{2}{25} + \frac{8}{25} & \frac{4}{25} + \frac{16}{25} \end{bmatrix} P2=[525102510252025]\mathbf{P}^2 = \begin{bmatrix} \frac{5}{25} & \frac{10}{25} \\ \frac{10}{25} & \frac{20}{25} \end{bmatrix} P2=[15252545]\mathbf{P}^2 = \begin{bmatrix} \frac{1}{5} & \frac{2}{5} \\ \frac{2}{5} & \frac{4}{5} \end{bmatrix}

This shows that P2=P\mathbf{P}^2 = \mathbf{P}, confirming that the projection matrix is idempotent.

Reflection Matrix§

A reflection matrix reflects a point across a given line in the coordinate plane. Let's consider the specific case of reflecting a point across the line y=xy = x.

Reflection Across y=xy = x

Let A(x,y)A(x, y) be a point, and let A′(x′,y′)A'(x', y') be its reflection across the line y=xy = x. Geometrically, we know that when a point is reflected across y=xy = x, the x- and y-coordinates of the point are swapped. Therefore:

x′=yandy′=xx' = y \quad \text{and} \quad y' = x

This can be written in matrix form as:

[x′y′]=[0110][xy]\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}

Thus, the reflection matrix R\mathbf{R} for reflecting a point across the line y=xy = x is:

R=[0110]\mathbf{R} = \begin{bmatrix} \mathbf{0} & \mathbf{1} \\ \mathbf{1} & \mathbf{0} \end{bmatrix}

Involutory Property§

A key property of reflection matrices is that they are involutory, meaning that R2=I\mathbf{R}^2 = \mathbf{I}, where I\mathbf{I} is the identity matrix. This is because applying the reflection twice results in returning to the original point, which is equivalent to multiplying by the identity matrix.

Let's prove that R2=I\mathbf{R}^2 = \mathbf{I}.

First, multiply R\mathbf{R} by itself:

R2=[0110][0110]\mathbf{R}^2 = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}

Now, perform the matrix multiplication:

R2=[0⋅0+1⋅10⋅1+1⋅01⋅0+0⋅11⋅1+0⋅0]\mathbf{R}^2 = \begin{bmatrix} 0 \cdot 0 + 1 \cdot 1 & 0 \cdot 1 + 1 \cdot 0 \\ 1 \cdot 0 + 0 \cdot 1 & 1 \cdot 1 + 0 \cdot 0 \end{bmatrix}

Simplifying the terms:

R2=[1001]\mathbf{R}^2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

This shows that:

R2=I\mathbf{R}^2 = \mathbf{I}

Therefore, the reflection matrix R\mathbf{R} is involutory. Reflecting a point twice across the same line results in the original point, which is the same as applying the identity matrix.

Rotation Matrix§

Consider a point P(x,y)P(x, y) in a 2-dimensional Cartesian coordinate system. We want to rotate this point counterclockwise by an angle θ\theta about the origin. After this rotation, the point P(x,y)P(x, y) moves to a new position P′(x′,y′)P'(x', y').

Let OPOP be the distance from the origin to the point PP, denoted as rr, and let α\alpha be the angle between the line OPOP and the positive x-axis. From trigonometry, the coordinates (x,y)(x, y) of the point PP can be written as:

x=rcos⁡αandy=rsin⁡αx = r \cos \alpha \quad \text{and} \quad y = r \sin \alpha

After rotating the point by an angle θ\theta counterclockwise, the new angle between the line OP′OP' and the positive x-axis becomes α+θ\alpha + \theta. The coordinates of the new point P′(x′,y′)P'(x', y') are then:

x′=rcos⁡(α+θ)andy′=rsin⁡(α+θ)x' = r \cos (\alpha + \theta) \quad \text{and} \quad y' = r \sin (\alpha + \theta)

Using the angle sum identities for sine and cosine:

cos⁡(α+θ)=cos⁡αcos⁡θ−sin⁡αsin⁡θ\cos (\alpha + \theta) = \cos \alpha \cos \theta - \sin \alpha \sin \theta sin⁡(α+θ)=sin⁡αcos⁡θ+cos⁡αsin⁡θ\sin (\alpha + \theta) = \sin \alpha \cos \theta + \cos \alpha \sin \theta

Substituting these into the expressions for x′x' and y′y':

x′=r(cos⁡αcos⁡θ−sin⁡αsin⁡θ)=xcos⁡θ−ysin⁡θx' = r(\cos \alpha \cos \theta - \sin \alpha \sin \theta) = x \cos \theta - y \sin \theta y′=r(sin⁡αcos⁡θ+cos⁡αsin⁡θ)=xsin⁡θ+ycos⁡θy' = r(\sin \alpha \cos \theta + \cos \alpha \sin \theta) = x \sin \theta + y \cos \theta

Thus, the new coordinates (x′,y′)(x', y') after rotating P(x,y)P(x, y) by an angle θ\theta are:

x′=xcos⁡θ−ysin⁡θx' = x \cos \theta - y \sin \theta y′=xsin⁡θ+ycos⁡θy' = x \sin \theta + y \cos \theta

These equations can be written in matrix form as:

[x′y′]=[cos⁡θ−sin⁡θsin⁡θcos⁡θ][xy]\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}

The matrix:

R(θ)=[cos⁡θ−sin⁡θsin⁡θcos⁡θ]\mathbf{R}(\theta) = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}

is called the rotation matrix, and it rotates any point P(x,y)P(x, y) counterclockwise by an angle θ\theta around the origin.

Properties of Rotation Matrix§

Let’s explore the key properties of the rotation matrix R(θ)\mathbf{R}(\theta). The matrix for rotating a point counterclockwise by an angle θ\theta around the origin is:

R(θ)=[cos⁡θ−sin⁡θsin⁡θcos⁡θ]\mathbf{R}(\theta) = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}

1. Orthogonality: R(θ)R(θ)⊤=I\mathbf{R}(\theta) \mathbf{R}(\theta)^\top = \mathbf{I}

To show that R(θ)\mathbf{R}(\theta) is an orthogonal matrix, we need to demonstrate that R(θ)R(θ)⊤=I\mathbf{R}(\theta) \mathbf{R}(\theta)^\top = \mathbf{I}, where R(θ)⊤\mathbf{R}(\theta)^\top is the transpose of R(θ)\mathbf{R}(\theta).

The transpose of R(θ)\mathbf{R}(\theta) is:

R(θ)⊤=[cos⁡θsin⁡θ−sin⁡θcos⁡θ]\mathbf{R}(\theta)^\top = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix}

Now, multiply R(θ)\mathbf{R}(\theta) by its transpose:

R(θ)R(θ)⊤=[cos⁡θ−sin⁡θsin⁡θcos⁡θ][cos⁡θsin⁡θ−sin⁡θcos⁡θ]\mathbf{R}(\theta) \mathbf{R}(\theta)^\top = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix}

Perform the matrix multiplication:

=[cos⁡2θ+sin⁡2θcos⁡θsin⁡θ−cos⁡θsin⁡θcos⁡θsin⁡θ−cos⁡θsin⁡θcos⁡2θ+sin⁡2θ]= \begin{bmatrix} \cos^2 \theta + \sin^2 \theta & \cos \theta \sin \theta - \cos \theta \sin \theta \\ \cos \theta \sin \theta - \cos \theta \sin \theta & \cos^2 \theta + \sin^2 \theta \end{bmatrix}

Using the identity cos⁡2θ+sin⁡2θ=1\cos^2 \theta + \sin^2 \theta = 1, this simplifies to:

=[1001]=I= \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \mathbf{I}

Thus, R(θ)R(θ)⊤=I\mathbf{R}(\theta) \mathbf{R}(\theta)^\top = \mathbf{I}, proving that R(θ)\mathbf{R}(\theta) is an orthogonal matrix.

2. Composition of Rotations: R(α)R(β)=R(α+β)\mathbf{R}(\alpha) \mathbf{R}(\beta) = \mathbf{R}(\alpha + \beta)

The composition of two rotations by angles α\alpha and β\beta should result in a rotation by the sum of the angles. Let’s show that R(α)R(β)=R(α+β)\mathbf{R}(\alpha) \mathbf{R}(\beta) = \mathbf{R}(\alpha + \beta).

We have:

R(α)=[cos⁡α−sin⁡αsin⁡αcos⁡α],R(β)=[cos⁡β−sin⁡βsin⁡βcos⁡β]\mathbf{R}(\alpha) = \begin{bmatrix} \cos \alpha & -\sin \alpha \\ \sin \alpha & \cos \alpha \end{bmatrix}, \quad \mathbf{R}(\beta) = \begin{bmatrix} \cos \beta & -\sin \beta \\ \sin \beta & \cos \beta \end{bmatrix}

Now, multiply R(α)\mathbf{R}(\alpha) by R(β)\mathbf{R}(\beta):

R(α)R(β)=[cos⁡α−sin⁡αsin⁡αcos⁡α][cos⁡β−sin⁡βsin⁡βcos⁡β]\mathbf{R}(\alpha) \mathbf{R}(\beta) = \begin{bmatrix} \cos \alpha & -\sin \alpha \\ \sin \alpha & \cos \alpha \end{bmatrix} \begin{bmatrix} \cos \beta & -\sin \beta \\ \sin \beta & \cos \beta \end{bmatrix}

Perform the matrix multiplication:

=[cos⁡αcos⁡β−sin⁡αsin⁡β−cos⁡αsin⁡β−sin⁡αcos⁡βsin⁡αcos⁡β+cos⁡αsin⁡β−sin⁡αsin⁡β+cos⁡αcos⁡β]= \begin{bmatrix} \cos \alpha \cos \beta - \sin \alpha \sin \beta & -\cos \alpha \sin \beta - \sin \alpha \cos \beta \\ \sin \alpha \cos \beta + \cos \alpha \sin \beta & -\sin \alpha \sin \beta + \cos \alpha \cos \beta \end{bmatrix}

Using the angle sum identities:

cos⁡(α+β)=cos⁡αcos⁡β−sin⁡αsin⁡β\cos(\alpha + \beta) = \cos \alpha \cos \beta - \sin \alpha \sin \beta sin⁡(α+β)=sin⁡αcos⁡β+cos⁡αsin⁡β\sin(\alpha + \beta) = \sin \alpha \cos \beta + \cos \alpha \sin \beta

This simplifies to:

=[cos⁡(α+β)−sin⁡(α+β)sin⁡(α+β)cos⁡(α+β)]= \begin{bmatrix} \cos(\alpha + \beta) & -\sin(\alpha + \beta) \\ \sin(\alpha + \beta) & \cos(\alpha + \beta) \end{bmatrix}

Thus, R(α)R(β)=R(α+β)\mathbf{R}(\alpha) \mathbf{R}(\beta) = \mathbf{R}(\alpha + \beta).

3. Powers of the Rotation Matrix: R(θ)n=R(nθ)\mathbf{R}(\theta)^n = \mathbf{R}(n \theta)

Let’s show that the nn-th power of the rotation matrix R(θ)\mathbf{R}(\theta) is equivalent to rotating by nθn \theta. This means:

R(θ)n=R(nθ)\mathbf{R}(\theta)^n = \mathbf{R}(n \theta)

Using the property of composition of rotations R(α)R(β)=R(α+β)\mathbf{R}(\alpha) \mathbf{R}(\beta) = \mathbf{R}(\alpha + \beta), we can extend this to powers of the rotation matrix.

For example:

R(θ)2=R(θ)R(θ)=R(2θ)\mathbf{R}(\theta)^2 = \mathbf{R}(\theta) \mathbf{R}(\theta) = \mathbf{R}(2 \theta) R(θ)3=R(θ)R(2θ)=R(3θ)\mathbf{R}(\theta)^3 = \mathbf{R}(\theta) \mathbf{R}(2 \theta) = \mathbf{R}(3 \theta)

And by induction, for any integer nn, we get:

R(θ)n=R(nθ)\mathbf{R}(\theta)^n = \mathbf{R}(n \theta)

4. Inverse of the Rotation Matrix: R(−θ)=R(θ)−1\mathbf{R}(-\theta) = \mathbf{R}(\theta)^{-1}

The inverse of a rotation matrix R(θ)\mathbf{R}(\theta) corresponds to a rotation by the opposite angle −θ-\theta. To show this, we calculate the inverse of R(θ)\mathbf{R}(\theta).

Recall that the inverse of an orthogonal matrix is its transpose, so:

R(θ)−1=R(θ)⊤=[cos⁡θsin⁡θ−sin⁡θcos⁡θ]\mathbf{R}(\theta)^{-1} = \mathbf{R}(\theta)^\top = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix}

This is precisely the rotation matrix for an angle −θ-\theta:

R(−θ)=[cos⁡(−θ)−sin⁡(−θ)sin⁡(−θ)cos⁡(−θ)]=[cos⁡θsin⁡θ−sin⁡θcos⁡θ]\mathbf{R}(-\theta) = \begin{bmatrix} \cos (-\theta) & -\sin (-\theta) \\ \sin (-\theta) & \cos (-\theta) \end{bmatrix} = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix}

Thus, R(−θ)=R(θ)−1\mathbf{R}(-\theta) = \mathbf{R}(\theta)^{-1}, showing that the inverse of a rotation matrix is the matrix for a rotation by the opposite angle.

Rotation in Three Dimensions§

In three-dimensional space, rotation matrices allow us to rotate a point about one of the three axes (x-axis, y-axis, or z-axis). The general rotation matrix depends on the axis of rotation. Let’s explore the rotation matrices for rotations about the z-axis, x-axis, and y-axis.

1. Rotation About the z-Axis

Consider a point P(x,y,z)P(x, y, z) in 3D space. If we rotate this point counterclockwise by an angle θ\theta about the z-axis, the new point P′(x′,y′,z′)P'(x', y', z') has the following coordinates:

[x′y′z′]=[cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001][xyz]\begin{bmatrix} x' \\ y' \\ z' \end{bmatrix} = \begin{bmatrix} \cos \theta & -\sin \theta & 0 \\ \sin \theta & \cos \theta & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix}

The z-coordinate remains unchanged, while the x- and y-coordinates rotate in the x-y plane, just like in the 2D case. The resulting matrix is called the rotation matrix about the z-axis:

Rz(θ)=[cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001]\mathbf{R}_z(\theta) = \begin{bmatrix} \cos \theta & -\sin \theta & 0 \\ \sin \theta & \cos \theta & 0 \\ 0 & 0 & 1 \end{bmatrix}

2. Rotation About the x-Axis

Now, consider rotating the point P(x,y,z)P(x, y, z) counterclockwise by an angle θ\theta about the x-axis. The x-coordinate remains unchanged, while the y- and z-coordinates rotate in the y-z plane. The new point P′(x′,y′,z′)P'(x', y', z') is given by:

[x′y′z′]=[1000cos⁡θ−sin⁡θ0sin⁡θcos⁡θ][xyz]\begin{bmatrix} x' \\ y' \\ z' \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos \theta & -\sin \theta \\ 0 & \sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix}

The rotation matrix for a rotation about the x-axis is:

Rx(θ)=[1000cos⁡θ−sin⁡θ0sin⁡θcos⁡θ]\mathbf{R}_x(\theta) = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos \theta & -\sin \theta \\ 0 & \sin \theta & \cos \theta \end{bmatrix}

3. Rotation About the y-Axis

Finally, to rotate the point P(x,y,z)P(x, y, z) counterclockwise by an angle θ\theta about the y-axis, the y-coordinate remains unchanged, while the x- and z-coordinates rotate in the x-z plane. The new coordinates P′(x′,y′,z′)P'(x', y', z') are:

[x′y′z′]=[cos⁡θ0sin⁡θ010−sin⁡θ0cos⁡θ][xyz]\begin{bmatrix} x' \\ y' \\ z' \end{bmatrix} = \begin{bmatrix} \cos \theta & 0 & \sin \theta \\ 0 & 1 & 0 \\ -\sin \theta & 0 & \cos \theta \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix}

The corresponding rotation matrix about the y-axis is:

Ry(θ)=[cos⁡θ0sin⁡θ010−sin⁡θ0cos⁡θ]\mathbf{R}_y(\theta) = \begin{bmatrix} \cos \theta & 0 & \sin \theta \\ 0 & 1 & 0 \\ -\sin \theta & 0 & \cos \theta \end{bmatrix}

Thus:

  • Rotation about the z-axis:

    Rz(θ)=[cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001]\mathbf{R}_z(\theta) = \begin{bmatrix} \cos \theta & -\sin \theta & 0 \\ \sin \theta & \cos \theta & 0 \\ 0 & 0 & 1 \end{bmatrix}
  • Rotation about the x-axis:

    Rx(θ)=[1000cos⁡θ−sin⁡θ0sin⁡θcos⁡θ]\mathbf{R}_x(\theta) = \begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos \theta & -\sin \theta \\ 0 & \sin \theta & \cos \theta \end{bmatrix}
  • Rotation about the y-axis:

    Ry(θ)=[cos⁡θ0sin⁡θ010−sin⁡θ0cos⁡θ]\mathbf{R}_y(\theta) = \begin{bmatrix} \cos \theta & 0 & \sin \theta \\ 0 & 1 & 0 \\ -\sin \theta & 0 & \cos \theta \end{bmatrix}
Section 9 of 10 · Matrices and Determinants

Mark this section complete when you have worked through its proofs.