Linear Transformations and Matrices
📊 Linear Systems, Inverses, and Spaces
This section explores matrix and vector operations through the lens of linear transformations, focusing on inverse matrices, column space, rank, and null space. While computational methods like Gaussian elimination and row echelon form are important, the emphasis here is on building geometric intuition.
⚙️ Usefulness of Linear Algebra
Linear algebra is fundamental across various technical disciplines due to its ability to describe the manipulation of space (e.g., computer graphics, robotics) and, critically, to solve certain systems of equations.
📝 Linear Systems of Equations
A system of equations involves a list of unknown variables and a list of equations relating them. A special type of system, known as a linear system of equations, has a specific structure:
Within each equation, variables are only scaled by constants.
Scaled variables are only added to each other.
No exponents, fancy functions, or multiplication of variables together.
These systems are typically organized with all variables on the left side and constants on the right, with common variables vertically aligned (using zero coefficients if a variable is absent from an equation).
📦 Matrix-Vector Product Representation
A linear system of equations can be compactly expressed as a single vector equation, resembling a matrix-vector multiplication:
A: The constant matrix containing all the coefficients.
x: The vector holding all the variables (unknowns).
v: The constant vector on the right-hand side.
This notation is more than just a simplification; it provides a powerful geometric interpretation:
The matrix A represents a linear transformation.
Solving Ax=v means finding a vector x that, when the transformation A is applied, lands on the vector v.
This allows for visualizing complex relationships between multiple variables as the squishing and morphing of space.
🔄 Inverse Matrices
Consider a system with two equations and two unknowns, where A is a 2×2 matrix and x and v are 2D vectors. The nature of the solutions depends on whether the transformation A squishes space into a lower dimension (like a line or a point) or maintains its full dimension. This relates to the determinant of A.
✨ Non-Zero Determinant Case
When the determinant of A is non-zero, space is not squished into a zero-area region. In this most common scenario:
There is always one and only one vector x that lands on v.
This vector x can be found by reversing the transformation.
Reversing the transformation corresponds to another unique linear transformation called the inverse of A, denoted as A−1.
Examples of Inverse Transformations:
If A is a counterclockwise 90-degree rotation, A−1 is a clockwise 90-degree rotation.
If A is a rightward shear, A−1 is a leftward shear.
The key property of A−1 is that if you apply A and then A−1, you return to the original vector. Algebraically, this is expressed through matrix multiplication:
I: The identity matrix, which represents the identity transformation (doing nothing). Its columns are (10) and (01), leaving basis vectors unmoved.
Once A−1 is found (often computationally), the solution for x is:
Geometrically, this means playing the transformation A in reverse and following where v goes. This case, where the determinant is non-zero, signifies a single unique solution for the system of equations. This principle extends to higher dimensions when the number of equations equals the number of unknowns.
📉 Zero Determinant and No Inverse
When the determinant is zero, the transformation A squishes space into a smaller dimension (e.g., a plane into a line, 3D space onto a plane or line). In such cases, no inverse transformation exists.
You cannot "unsquish" a line back into a plane because a function can only map a single input to a single output, not to a whole line or plane of vectors.
For a 3×3 matrix, a zero determinant means 3D space is squished onto a plane, line, or point, resulting in zero volume.
💡 Solutions with Zero Determinant
Even with a zero determinant (no inverse), solutions can still exist, but they are conditional:
If the transformation squishes space onto a line, the vector v must lie on that line for a solution to exist.
If the transformation squishes space onto a plane, the vector v must lie on that plane.
📏 Rank of a Matrix & Column Space
To be more specific than just "zero determinant," we use the concept of rank.
📊 Rank Defined
The rank of a transformation is the number of dimensions in the output space of that transformation.
If the output of a transformation is a line (1D), it has a rank of one.
If all vectors land on a 2D plane, it has a rank of two.
For a 2×2 matrix, a rank of two is the maximum possible, meaning basis vectors still span the full 2D space, and the determinant is non-zero.
For a 3×3 matrix, a rank of three means the output fills all of 3D space, and the determinant is non-zero.
🌌 Column Space
The set of all possible outputs for a matrix transformation (e.g., a line, a plane, 3D space) is called the column space of the matrix.
The columns of the matrix show where the basis vectors land after the transformation.
The span of these transformed basis vectors generates all possible outputs.
Therefore, the column space is the span of the columns of your matrix.
A more precise definition of rank is the number of dimensions in the column space.
When the rank equals the number of columns, the matrix is full rank.
Important Note: The zero vector will always be included in the column space because linear transformations always keep the origin fixed.
👻 Null Space (Kernel)
For transformations that are not full rank (i.e., they squish space into a smaller dimension), there can be many vectors that land on the origin (the zero vector).
🎯 Null Space Defined
The null space (or kernel) of a matrix is the set of all vectors that land on the origin (the zero vector) after the transformation.
If a 2D transformation squishes space onto a line, there is a separate line of vectors that all land on the origin.
If a 3D transformation squishes space onto a plane, there is a line of vectors that land on the origin.
If a 3D transformation squishes space onto a line, there is a plane of vectors that land on the origin.
In the context of linear systems, when v is the zero vector (Ax=0), the null space provides all possible solutions to that equation.
🧠 Geometric Summary
Every linear system of equations Ax=v is associated with a linear transformation A.
If transformation A has an inverse (A−1, meaning its determinant is non-zero), there is a unique solution x=A−1v.
If A does not have an inverse (determinant is zero), the column space helps determine if a solution even exists (i.e., if v is within the column space).
The null space helps understand the set of all possible solutions when v is the zero vector, or when multiple vectors map to the same v in a non-full rank scenario.
This geometric intuition provides a powerful framework for understanding these core concepts, even without delving into the computational methods.

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