Skip to content
Back to exploration
Algebra / English

Three-dimensional linear transformations | Chapter 5, Essence of linear algebra

3Blue1Brown · YouTube · 4:46

Open original
READ & KEEP

The explanation, unpacked.

Reviewed learning material · Video analysis · English
Read the full overview

This video explains how linear transformations work in three-dimensional space, extending concepts from two dimensions. It demonstrates that any 3D linear transformation is fully determined by tracking where the standard basis vectors (i^\hat{i}, j^\hat{j}, and k^\hat{k}) land. The coordinates of these transformed basis vectors form the columns of a 3x3 matrix. A specific example shows a 90-degree rotation around the y-axis. The video further illustrates that multiplying a matrix by a vector corresponds to scaling and adding the transformed basis vectors according to the input vector's coordinates. Finally, it covers matrix multiplication as the composition of successive transformations.

Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.

Chapters

0:00Introduction: Peeking Outside Flatland0:52Visualizing 3D Linear Transformations1:27Basis Vectors and Matrix Construction2:17Example: Rotation Around the Y-Axis2:49Matrix-Vector Multiplication in 3D3:29Composing Transformations via Matrix Multiplication

Learning script

Generated from the video's visuals and explanation; not verbatim speech.

The video begins with a brief recap of previous topics on linear transformations and matrices in two dimensions. While the series primarily focuses on 2D for visual clarity, the core mathematical ideas seamlessly extend to higher dimensions. This segment serves as a conceptual bridge, inviting viewers to apply their understanding of 2D transformations to three-dimensional space.

A 3D linear transformation maps input vectors to output vectors within a three-dimensional grid. Visually, this involves distorting the entire space while keeping grid lines parallel and evenly spaced, and fixing the origin. Just like in 2D, every point in space acts as a proxy for a vector originating from the zero point, moving to its corresponding transformed position. A singular linear map can collapse lines or planes into lower-dimensional sets; the geometric line description allows this degeneracy.

To simplify visualization, the focus shifts entirely to the standard basis vectors: i^\hat{i} along the x-axis, j^\hat{j} along the y-axis, and the newly introduced k^\hat{k} along the z-axis. By observing exactly where these three vectors land after a transformation, we capture the complete behavior of the system. Recording the final coordinates of i^\hat{i}, j^\hat{j}, and k^\hat{k} as column vectors constructs a 3x3 matrix that fully encodes the transformation using only nine numbers.

Consider a specific example: rotating space 90 degrees around the y-axis. Under this transformation, the i^\hat{i} vector moves down to the negative z-axis at coordinates (0,0,−1)(0, 0, -1). The j^\hat{j} vector remains stationary on the y-axis at (0,1,0)(0, 1, 0) because it lies on the axis of rotation. Meanwhile, the k^\hat{k} vector swings over to the positive x-axis at (1,0,0)(1, 0, 0). These resulting coordinate triplets become the respective columns of the rotation matrix.

Applying this matrix to an arbitrary vector with coordinates (x,y,z)(x, y, z) follows the same logic as in two dimensions. The coordinates act as scalar multipliers for the basis vectors. Because linear transformations preserve addition and scalar multiplication, the transformed vector is found by scaling each column of the matrix by its corresponding input coordinate (xx, yy, or zz) and summing the results.

When dealing with multiple transformations, such as applying one rotation followed by another, we use matrix multiplication. Mathematically, multiplying two 3x3 matrices represents the composition of their respective spatial transformations. The rightmost matrix acts first on the initial space, followed by the leftmost matrix acting on the already transformed result. This compositional property makes 3D matrix multiplication highly valuable in practical fields like computer graphics and robotics, allowing complex movements to be broken down into simpler, sequential steps.

Knowledge cards

01

Standard Basis Vectors in 3D

In three-dimensional Cartesian space, any vector can be decomposed using three mutually orthogonal unit vectors aligned with the primary axes. They serve as the fundamental building blocks for defining linear transformations.

i^=[100],j^=[010],k^=[001]\hat{i} = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \quad \hat{j} = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}, \quad \hat{k} = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}
02

Constructing Transformation Matrices

A linear transformation in 3D space is completely characterized by its effect on the standard basis vectors. The images of these basis vectors under the transformation form the columns of the associated 3x3 matrix.

T(i^)→c1, T(j^)→c2, T(k^)→c3  ⟹  M=[c1∣c2∣c3]T(\hat{i}) \rightarrow c_1, \ T(\hat{j}) \rightarrow c_2, \ T(\hat{k}) \rightarrow c_3 \implies M = [c_1 | c_2 | c_3]
03

Rotation About the Y-Axis Example

For a 90-degree rotation around the y-axis, the vertical basis vector j^\hat{j} is invariant. The horizontal basis vector i^\hat{i} rotates onto the negative z-axis, and the depth basis vector k^\hat{k} rotates onto the positive x-axis. Their new coordinates populate the matrix columns. This uses column vectors and a positive 90° rotation by the right-hand rule in a right-handed frame. Different conventions change the signs.

Ry(90∘)=[001010−100]R_y(90^\circ) = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ -1 & 0 & 0 \end{bmatrix}
04

Linearity and Vector Mapping

Because linear transformations respect vector addition and scalar multiplication, mapping an arbitrary vector (x,y,z)T(x,y,z)^T simply requires taking a linear combination of the matrix's columns, weighted by the input vector's components.

Mv⃗=x(T(i^))+y(T(j^))+z(T(k^))M \vec{v} = x(T(\hat{i})) + y(T(\hat{j})) + z(T(\hat{k}))
05

Composition of Transformations

Multiplying two matrices corresponds to executing their underlying geometric transformations sequentially. In the product AB, the transformation represented by B occurs first, altering the space, which is then subjected to the transformation represented by A.

w⃗=A(Bv⃗)  ⟺  w⃗=(AB)v⃗\vec{w} = A(B\vec{v}) \iff \vec{w} = (AB)\vec{v}

Explore the knowledge in this video

Open video knowledge graph →

  • Linear transformations ExplanationAt 2:05
    Why this connection?

    The reviewed matrix-construction card explains that a linear map on three-dimensional space is determined by the images of its standard basis vectors, placed as matrix columns. Arbitrary inputs map by the corresponding linear combination. With column vectors, ABAB applies BB first and then AA; rotation signs depend on the stated coordinate and orientation conventions.

Questions this video answers

Know when to use it

↗
Find a method

↗
Find a method

↗
Find a method

↗
Find a method

↗
Know when to use it

↗
Find a method

↗
Meet the concept

↗