Singular Matrix of a Linear System
In the previous lesson, we covered non-singular matrices which, in a linear system, makes the system have exactly one solution.
There is also the case where a matrix is a so-called singular matrix, in which case the system can either have infinite solutions, or no solution at all.
Just like with non-singular matrices, with singular matrices it is also possible to build our intuition from what we already know about scalar algebra.
Parallel Example From Scalar Algebra
We think of the equation
In this equation, is unknown, whereas and are given. In the previous lesson, we simply divided by to solve the equation. But what if you can’t divide by ? When is , you can’t simply divide by .
If , we have two scenarios: either or .
If , when we plug the values for and into our equation we’re left with
That means that no matter what value we choose for , the equation will always hold true. That means that there are infinitely many solutions, since can have any value.
We now consider the case where . We only know the certain value of , and we use that in our equation:
Now, we know for a fact that , since we’re observing the case for . That means that this equation will never be true. In the case where , will never be . That means that there is no value for that we can use to make the equation true. There is, in fact, no solution.
How This Applies to Matrices
A similar idea also applies to matrices. Not all linear systems can be definitively solved by finding one solution, some systems have infinitely many and some have no solution at all.
If has two components, you can think of the linear system as being a bunch of lines in a two-dimensional space. If has three components, you can think of the linear system as being a bunch of planes in a three-dimensional space. A similar idea holds for greater dimensions, but we stick to two and three for now, since we can visualize those.
We observe a case in which has two components:
From your studies you might be used to linear systems of equations as being a collection of equations. We can “convert” the above linear system which is expressed through a matrix-by-vector product to a system of equations:
Geometrically, if you plot these two equations in a coordinate system, they would be two parallel lines:
The red line is the first equation, and the blue line represents the second equation.
You can think of the solution to the system of equations as the intersection between these two lines. Since these two lines never cross, there is no intersection. That is, the system has no solution. You won’t be able to find values for the vector such that the equations are both solved.
Now consider the following case:
That would leave us with these equations:
Now, this is harder to visualize graphically, but what we can do as a first step is to simplify the second equation by dividing it by :
As you can see, we really have the same equation twice. If we try to represent these equations graphically, we would get the same line twice. They would basically be one on top of the other. Here is a visual to help you understand:
It’s a bit hard to see, but the thicker, blue line represents the first equation, and the red line represents the second equation.
In other words, they “intersect” at every point. That is because there are infinitely many solutions. Look, try to use these values:
With that, our linear system becomes
Okay, so we found one solution. But now try
In fact - and you can try these yourself - you can use any values for and where . That means
or
or even
There infinitely many possible vectors. If you think of the solution as being the intersection between the two lines, well, now we have any point along the lines at our disposal (since they’re the same line).
You could describe all solutions with
The same applies for planes in a three-dimensional space. When two different planes intersect, their intersection can be described by a line. When a third (different from the first two) plane intersects them, their intersection can be described by a point. But what if two of the planes are the same? Well, then we get a line as our solution. And what if all three planes are the same? Well, then our solution is an entire plane.
So What Is a Singular Matrix?
A singular matrix is a matrix that has no inverse. That means, there does not exist a matrix with which you can multiply to get the identity matrix. In other words, if is a singular matrix, there exists no such that
Next Steps
This can happen when the information of ‘s columns or rows is “redundant”. That means that some or multiple rows or columns are not linearly independent. That means that a column or row is a linear combination of the others.
We will get into the details of what this means in future lessons.