This lesson extends linear transformations to three dimensions. We use 3×3 matrices to represent rotations, reflections, and other transformations in 3D space. The principles are the same as in 2D, but the geometry is richer.
3D Transformation Matrices
A linear transformation T:R3→R3 is represented by a 3×3 matrix M. The columns of M are the images of the standard basis vectors:
M=∣T(e1)∣∣T(e2)∣∣T(e3)∣
where e1=100, e2=010, e3=001.
Standard 3D Transformations
Reflections
Reflection in plane
Matrix
xy-plane (z=0)
10001000−1
xz-plane (y=0)
1000−10001
yz-plane (x=0)
−100010001
Rotations About Coordinate Axes
Rotation by θ about the z-axis:
Rz(θ)=cosθsinθ0−sinθcosθ0001
The z-component is unchanged; the x and y components rotate as in 2D.
Rotation by θ about the x-axis:
Rx(θ)=1000cosθsinθ0−sinθcosθ
Rotation by θ about the y-axis:
Ry(θ)=cosθ0−sinθ010sinθ0cosθ
Other Transformations
Transformation
Matrix
Enlargement, factor k
kI=k000k000k
Stretch in z-direction, factor c
10001000c
Projection onto the xy-plane
100010000
Worked Examples
Example 1: Find the image of the point (1,2,3) under reflection in the xz-plane.