Geometric Interpretation of Linear Systems
- A system of linear equations can be written as a single matrix equation Ax = v, where A is the coefficient matrix, x is the variable vector, and v is the constant vector. A Comprehensive Overview of Matrices and Determinants in Mathematics provides foundational knowledge for this representation.
- Geometric view: The matrix A represents a linear transformation. Understanding Linear Transformations and Matrix Multiplication in Machine Learning explains this geometric view in more detail. Solving Ax = v means finding a vector x that, after the transformation, lands exactly on v.
Inverse Matrices and Determinant
- Non-zero determinant: The transformation does not squish space into a lower dimension. There is exactly one solution x = A⁻¹v, where A⁻¹ is the inverse transformation ("playing the transformation in reverse").
- Zero determinant: The transformation squishes space (e.g., from 2D to a line). No inverse exists because you cannot "unsquish" a line back to a plane with a single function.
Rank and Column Space
- Rank: The number of dimensions in the output of the transformation (e.g., rank 1 = line, rank 2 = plane).
- Column space: The span of the transformed basis vectors (columns of the matrix). It is the set of all possible outputs of the transformation.
- Full rank: Rank equals the number of columns (e.g., rank 2 for a 2×2 matrix). The determinant is non-zero, and only the zero vector maps to the origin.
Null Space and Solutions
- Null space (kernel): The set of all vectors that land on the zero vector after the transformation.
- For non-full‐rank matrices, many vectors can map to zero (e.g., a whole line or plane of vectors).
- In solving systems: When v = 0, the null space gives all possible solutions. For other v, a solution exists only if v lies inside the column space.
Takeaway: The geometric lens of linear transformations provides strong intuition for the existence and structure of solutions. Computation methods (e.g., Gaussian elimination) are important but are best learned after internalizing these visual concepts. To dive into computation, see Understanding Elementary Row Operations in Matrix Analysis.
As you can probably tell by now, the bulk of this series is on understanding matrix and vector operations through that more visual lens of linear transformations. This video is no exception, describing the concepts of inverse matrices,
column space, rank, and null space through that lens. A forewarning though, I'm not going to talk about the methods for actually computing these things, and some would argue that that's pretty important.
There are a lot of very good resources for learning those methods outside this series, keywords Gaussian elimination and row echelon form. I think most of the value that I actually have to add here is on the intuition half.
Plus, in practice, we usually get software to compute this stuff for us anyway. First, a few words on the usefulness of linear algebra. By now, you already have a hint for how it's used in describing the manipulation
of space, which is useful for things like computer graphics and robotics. But one of the main reasons that linear algebra is more broadly applicable and required for just about any technical
discipline is that it lets us solve certain systems of equations. When I say system of equations, I mean you have a list of variables, things you don't know, and a list of equations relating them.
In a lot of situations, those equations can get very complicated. But, if you're lucky, they might take on a certain special form. Within each equation, the only thing happening to each variable is
that it's scaled by some constant, and the only thing happening to each of those scaled variables is that they're added to each other. So no exponents or fancy functions or multiplying two variables together,
things like that. The typical way to organize this sort of special system of equations is to throw all the variables on the left and put any lingering constants on the right.
It's also nice to vertically line up the common variables, and to do that, you might need to throw in some zero coefficients whenever the variable doesn't show up in one of the equations.
This is called a linear system of equations. You might notice that this looks a lot like matrix-vector multiplication. In fact, you can package all of the equations together into a single
vector equation where you have the matrix containing all of the constant coefficients and a vector containing all of the variables, and their matrix-vector product equals some different constant vector.
Let's name that constant matrix A, denote the vector holding the variables with a bold-faced X, and call the constant vector on the right-hand side V. This is more than just a notational trick to get
our system of equations written on one line. It sheds light on a pretty cool geometric interpretation for the problem. The matrix A corresponds with some linear transformation,
so solving Ax equals V means we're looking for a vector X, which, after applying the transformation, lands on V. Think about what's happening here for a moment.
You can hold in your head this really complicated idea of multiple variables all intermingling with each other just by thinking about squishing and morphing space and trying to figure out which vector lands on another.
Cool, right? To start simple, let's say you have a system with two equations and two unknowns. This means the matrix A is a 2x2 matrix, and V and X are each two-dimensional vectors.
Now, how we think about the solutions to this equation depends on whether the transformation associated with A squishes all of space into a lower dimension, like a line or a point, or if it leaves everything spanning the full two dimensions
where it started. In the language of the last video, we subdivide into the cases where A has zero determinant and the case where A has non-zero determinant.
Let's start with the most likely case, where the determinant is non-zero, meaning space does not get squished into a zero-area region. In this case, there will always be one and only one vector that lands on V,
and you can find it by playing the transformation in reverse. Following where V goes as we rewind the tape like this, you'll find the vector x such that A times x equals V.
When you play the transformation in reverse, it actually corresponds to a separate linear transformation, commonly called the inverse of A, denoted A to the negative one. For example, if A was a counterclockwise rotation by 90 degrees,
then the inverse of A would be a clockwise rotation by 90 degrees. If A was a rightward shear that pushes j-hat one unit to the right, the inverse of A would be a leftward shear that pushes j-hat one unit to the left.
In general, A inverse is the unique transformation with the property that if you first apply A, then follow it with the transformation A inverse, you end up back where you started.
Applying one transformation after another is captured algebraically with matrix multiplication, so the core property of this transformation A inverse is that A inverse times A equals the matrix that corresponds to doing nothing.
The transformation that does nothing is called the identity transformation. It leaves i-hat and j-hat each where they are, unmoved, so its columns are 1,0 and 0,1. Once you find this inverse, which in practice you'd do with a computer,
you can solve your equation by multiplying this inverse matrix by v. And again, what this means geometrically is that you're playing the transformation in reverse and following v.
This non-zero determinant case, which for a random choice of matrix is by far the most likely one, corresponds with the idea that if you have two unknowns and two equations, it's almost certainly the case that there's a single unique solution.
This idea also makes sense in higher dimensions, when the number of equations equals the number of unknowns. Again, the system of equations can be translated to the geometric
interpretation where you have some transformation A and some vector v, and you're looking for the vector x that lands on v. As long as the transformation A doesn't squish all of space into a lower dimension,
meaning its determinant is non-zero, there will be an inverse transformation A inverse, with the property that if you first do A, then you do A inverse, it's the same as doing nothing.
And to solve your equation, you just have to multiply that reverse transformation matrix by the vector v. But when the determinant is zero, and the transformation associated with the
system of equations squishes space into a smaller dimension, there is no inverse. You cannot unsquish a line to turn it into a plane. At least that's not something that a function can do.
That would require transforming each individual vector into a whole line full of vectors. But functions can only take a single input to a single output. Similarly, for three equations and three unknowns,
there will be no inverse if the corresponding transformation squishes 3D space onto the plane, or even if it squishes it onto a line or a point. Those all correspond to a determinant of zero,
since any region is squished into something with zero volume. It's still possible that a solution exists even when there is no inverse. It's just that when your transformation squishes space onto, say, a line,
you have to be lucky enough that the vector v lives somewhere on that line. You might notice that some of these zero determinant cases feel a lot more restrictive than others.
Given a 3x3 matrix, for example, it seems a lot harder for a solution to exist when it squishes space onto a line compared to when it squishes things onto a plane, even though both of those are zero determinant.
We have some language that's a bit more specific than just saying zero determinant. When the output of a transformation is a line, meaning it's one-dimensional, we say the transformation has a rank of one.
If all the vectors land on some two-dimensional plane, we say the transformation has a rank of two. So the word rank means the number of dimensions in the output of a transformation.
For instance, in the case of 2x2 matrices, rank two is the best that it can be. It means the basis vectors continue to span the full two dimensions of space, and the determinant is not zero.
But for 3x3 matrices, rank two means that we've collapsed, but not as much as they would have collapsed for a rank one situation. If a 3D transformation has a non-zero determinant and its output fills all of 3D space,
it has a rank of three. This set of all possible outputs for your matrix, whether it's a line, a plane, 3D space, whatever, is called the column space of your matrix.
You can probably guess where that name comes from. The columns of your matrix tell you where the basis vectors land, and the span of those transformed basis vectors gives you all possible outputs.
In other words, the column space is the span of the columns of your matrix. So a more precise definition of rank would be that it's the number of dimensions in the column space.
When this rank is as high as it can be, meaning it equals the number of columns, we call the matrix full rank. Notice the zero vector will always be included in the column space,
since linear transformations must keep the origin fixed in place. For a full rank transformation, the only vector that lands at the origin is the zero vector itself.
But for matrices that aren't full rank, which squish to a smaller dimension, you can have a whole bunch of vectors that land on zero. If a 2D transformation squishes space onto a line, for example,
there is a separate line in a different direction full of vectors that get squished onto the origin. If a 3D transformation squishes space onto a plane,
there's also a full line of vectors that land on the origin. If a 3D transformation squishes all of space onto a line, then there's a whole plane full of vectors that land on the origin.
This set of vectors that lands on the origin is called the null space, or the kernel of your matrix. It's the space of all vectors that become null,
in the sense that they land on the zero vector. In terms of the linear system of equations, when v happens to be the zero vector, the null space gives you all of the possible solutions to the equation.
So that's a very high level overview of how to think about linear systems of equations geometrically. Each system has some kind of linear transformation associated with it,
and when that transformation has an inverse, you can use that inverse to solve your system. Otherwise, the idea of column space lets us understand when a solution even exists,
and the idea of a null space helps us to understand what the set of all possible solutions can look like. Again, there's a lot that I haven't covered here,
most notably how to compute these things. I also had to limit my scope to examples where the number of equations equals the number of unknowns.
But the goal here is not to try to teach everything, it's that you come away with a strong intuition for inverse matrices, column space, and null space, and that those intuitions make any future
learning that you do more fruitful. Next video, by popular request, will be a brief footnote about non-square matrices. Then after that, I'm going to give you my take on dot products,
and something pretty cool that happens when you view them under the light of linear transformations. See you then!
The column space is the span of the transformed basis vectors (the columns of the matrix). Geometrically, it represents the set of all possible output vectors from the linear transformation – essentially the 'image' of the transformation in the target space.
A non-zero determinant indicates the transformation does not squish space into a lower dimension, so an inverse exists (since you can 'play the transformation in reverse'). A zero determinant means space is compressed (e.g., from 2D to a line), making the inverse impossible because you cannot uniquely expand a lower dimension back.
The null space is the set of all vectors that map to the zero vector after the transformation. Its size (a line, plane, etc.) determines whether a homogeneous system Ax = 0 has only the trivial solution or infinitely many solutions. This also influences the structure of solutions for non-homogeneous systems.
The rank equals the dimension of the column space. A solution x exists if and only if v lies within the column space. For example, if rank is 2 (a plane), v must be a point in that plane. If v is off that plane, no solution exists.
Full rank means the number of dimensions in the output equals the number of columns (e.g., rank 2 for a 2x2 matrix). This implies the determinant is non-zero, an inverse exists, and every v has exactly one solution x. Only the zero vector maps to zero.
When the determinant is zero, space is squished to a lower dimension, so the null space contains non-zero vectors (e.g., a line or plane). Any vector in this null space solves Ax = 0, giving infinitely many solutions – not just the trivial zero vector.
Keep this summary
Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.
Save to LunaNotesOr summarise for another video.
32K+ people have turned 65K+ videos into notes
“Very useful tool. I'm using it for the last couple weeks and I'm loving it so far. Makes learning on YouTube a great experience.”
This summary and transcript were automatically generated using AI with the Free YouTube transcript summary tool by LunaNotes.
Related summaries
Linear Algebra Foundations for Machine Learning: Vectors, Span, and Basis Explained
This video lecture presents an intuitive, graphical approach to key linear algebra concepts essential for machine learning. It covers vectors, vector addition, scalar multiplication, linear combinations, span, linear independence, and basis vectors in 2D and 3D spaces, explaining their relevance to machine learning transformations and dimensionality.
Understanding Elementary Row Operations in Matrix Analysis
This lecture introduces the concept of elementary row operations in matrix analysis, explaining their significance in solving linear systems. It covers binary operations, groups, fields, and provides examples of how to apply these operations to transform matrices into identity matrices.
Understanding Linear Transformations and Matrix Multiplication in Machine Learning
This lecture demystifies matrix multiplication by explaining it as a geometric linear transformation, pivotal for machine learning foundations. It covers key properties of linear transformations, visual examples, and how basis vector transformations define the action of matrices on vectors, culminating in practical matrix representations of rotations, shears, and squishing transformations.
Comprehensive Overview of Matrices and Determinants in Mathematics
In this session, Radhika Gandhi discusses the fundamental concepts of matrices and determinants, covering essential topics such as matrix properties, eigenvalues, eigenvectors, and various types of matrices. The session aims to provide a clear understanding of these concepts, which are crucial for mathematical problem-solving and exam preparation.
Understanding Linear Classifiers in Image Classification
Explore the role of linear classifiers in image classification and their effectiveness.
Most viewed summaries
A Comprehensive Guide to Using Stable Diffusion Forge UI
Explore the Stable Diffusion Forge UI, customizable settings, models, and more to enhance your image generation experience.
Kolonyalismo at Imperyalismo: Ang Kasaysayan ng Pagsakop sa Pilipinas
Tuklasin ang kasaysayan ng kolonyalismo at imperyalismo sa Pilipinas sa pamamagitan ni Ferdinand Magellan.
Mastering Inpainting with Stable Diffusion: Fix Mistakes and Enhance Your Images
Learn to fix mistakes and enhance images with Stable Diffusion's inpainting features effectively.
Pamamaraan at Patakarang Kolonyal ng mga Espanyol sa Pilipinas
Tuklasin ang mga pamamaraan at patakaran ng mga Espanyol sa Pilipinas, at ang epekto nito sa mga Pilipino.
How to Install and Configure Forge: A New Stable Diffusion Web UI
Learn to install and configure the new Forge web UI for Stable Diffusion, with tips on models and settings.
Found this summary useful?
Take it with you. One click puts it in your own LunaNotes library.
Save to LunaNotes