From: 3blue1brown

The concept of the column space of a matrix is illuminated by understanding how matrices represent linear transformations, particularly those that transform vectors between different dimensions [00:00:15].

Linear Transformations Between Dimensions

While linear transformations are often discussed in the context of 2D to 2D or 3D to 3D mappings [00:00:18], it is also perfectly reasonable to consider transformations that map vectors from one dimension to another [00:00:44]. For example, a transformation might take 2D vectors to 3D vectors [00:00:48].

The defining characteristics of a linear transformation remain consistent:

  • Gridlines in the input space remain parallel and evenly spaced in the output space [00:00:51].
  • The origin of the input space maps to the origin of the output space [00:00:55].

It is crucial to recognize that input vectors and output vectors exist in completely separate, unconnected spaces when dimensions differ (e.g., 2D inputs vs. 3D outputs) [00:01:11].

Matrix Representation of Transformations Between Dimensions

Encoding these transformations between dimensions using matrices follows the same principles as with square matrices [00:01:21]:

  1. Identify where each basis vector of the input space lands after the transformation [00:01:27].
  2. The coordinates of these landing spots become the columns of the matrix [00:01:29].

Interpreting Non-Square Matrices

Non-square matrices arise when the input and output dimensions are different:

  • 3x2 Matrix (3 rows, 2 columns):

    • This matrix encodes a transformation from two dimensions to three dimensions [01:47:00], [02:21:00].
    • The two columns indicate that the input space has two basis vectors (i.e., it’s a 2D input space) [02:25:00].
    • The three rows indicate that the landing spot for each basis vector is described with three coordinates (i.e., the output is in 3D space) [02:29:00].
    • Example: If i-hat maps to (2, -1, -2) and j-hat maps to (0, 1, 1), the matrix would be:
      [ 2  0 ]
      [-1  1 ]
      [-2  1 ]
      
      [01:33:00]
  • 2x3 Matrix (2 rows, 3 columns):

    • This matrix indicates a transformation from three dimensions to two dimensions [02:37:00], [03:00:00].
    • The three columns mean the input space has three basis vectors (3D input) [02:43:00].
    • The two rows mean the landing spot for each basis vector is described with two coordinates (2D output) [02:50:00].
  • 1x2 Matrix (1 row, 2 columns):

    • This matrix represents a transformation from two dimensions to one dimension (the number line) [03:13:00], [03:43:00].
    • The two columns signify two basis vectors in the input [03:50:00].
    • The single row means each basis vector lands on a single number [03:53:00].

The Column Space

The “column space” of a matrix is the set of all possible output vectors of the linear transformation it represents [01:57:00]. It is the geometric “place where all the vectors land” [02:01:00].

For the 3x2 matrix example given above:

  • The column space is a 2D plane that slices through the origin of 3D space [02:01:00]. This is because all 2D input vectors are transformed into vectors that lie on this specific 2D plane within the larger 3D output space.
  • A matrix is considered “full rank” if the number of dimensions in its column space is equal to the number of dimensions in the input space [02:07:00]. The 3x2 matrix example is full rank because its column space (a 2D plane) has the same dimensionality as the input space (2D).

This concept has close ties to the dot product, which will be explored further [03:59:00].