Content translated by ChatGPT.
You’ve probably seen your fair share of systems of equations.
Back in middle school, our teachers showed us how to put two equations with two unknowns together and solve them.
Here’s a simple example.
We want to find and . Add the second equation to the first and we get , so the answer is .
How should we think about a system like this in a vector space?
Zero. What Is a System of Linear Equations Actually Doing?
From the previous post 👉 Eigenvalues and Eigenvectors, we know that a system of linear equations can be written as a matrix times a column vector of unknowns. Our example becomes
What does this tell us?
By definition, matrix multiplication takes each row of the matrix on the left and each column of the matrix on the right, multiplies their corresponding entries, and adds the products.
Now, with an astonishing feat of concentration, compare the matrix with the original equations. The entries in the left column always get multiplied by , and the entries in the right column always get multiplied by . So what the matrix is actually doing is
That’s right. The question at the heart of a system of linear equations is whether we can choose coefficients so that a linear combination of the given vectors produces the result we want.
More generally, suppose we have an matrix . Can we find coefficients such that the linear combination gives us the vector ?
That’s how we can write any system of linear equations as
The linear algebra perspective puts the focus on how we combine the vectors and what transformation the matrix performs.
A system of linear equations gives us three questions to work with.
- Existence. Can we combine the vectors to get ?
- Uniqueness. How many ways can we do it?
- Structure of the solution set. If there are several ways to do it, how are they related?
One. Matrix Rank
I spent quite a while wondering where to start with systems of linear equations. After thinking it over, I decided to start with matrices.
You might have heard of the rank of a matrix. It tells us the maximum number of linearly independent columns or rows in the matrix. One way to find it is to reduce the matrix using elementary row or column operations and inspect the result.
1. Rank and Variables
Let’s look at a simple augmented matrix.
An augmented matrix places the coefficient matrix and the column vector of constants side by side, usually with a vertical line between them.
Add the second row to the first to get
Then subtract half the first row from the second to get
Divide the first row by two and multiply the second row by .
Notice that we get the same values of and as we did by solving the equations directly.
Writing the matrix back out as equations gives us
Now suppose we have a matrix like this.
The corresponding equations are
Here, can take any value.
This gives us an intuitive conclusion. The rank of the coefficient matrix is the number of pivot variables in the system.
A pivot variable, also called a basic variable, corresponds to a pivot column of the coefficient matrix. In a consistent system, its value is determined once we choose the free variables.
2. Linear Independence and Pivot Variables
We also know that the rank is the maximum number of linearly independent columns in the matrix.
Putting that together with the previous section, we get as many pivot variables as there are columns in a basis for the column space.
Why should those two numbers happen to agree? Let’s start with what the matrix itself does.
1) Matrix Rank and the Corresponding Linear Transformation
Suppose is an matrix. Applying it to a vector gives . What is it doing in a vector space?
As we saw in the previous post 👉 The Geometry Behind Matrix Multiplication, multiplying by transforms geometrically.
Think of as a machine. Feed it , and it follows a rule to spit out .
You might have heard that when has full column rank, .
The number of columns of gives the dimension of its input space, while its rank tells us how many independent directions survive the transformation. A matrix with full column rank preserves all of them.
Why? Suppose , where and are linearly independent and is a linear combination of the two. In other words,
The three-dimensional input space has three linearly independent standard basis vectors .
Let’s apply to each of them. Each standard basis vector has a single and zeros everywhere else, so multiplying by it picks out a single column of .
Here’s where things get interesting. After applying , we can express as a linear combination of and , which are and !
That direction has lost its independence in the output.
In other words, if a matrix has rank , the three independent directions in its input yield only two linearly independent directions in its output.
Now let . Then
So sends some nonzero vector to zero.
2) Rank and Pivot Variables
Now we can explain why the rank equals the number of pivot variables.
Suppose is an matrix with
Its column space has a basis of linearly independent columns.
Every output has a unique representation in this basis.
So when we specify an output in the column space, the coefficients are uniquely determined.
Now consider
After labeling the basis columns and their variables first, we can write each of the remaining columns as a linear combination of the first .
Collecting terms gives us
Here, are linear combinations of the free variables.
This gives us pivot variables, . The coefficient of each basis vector is fixed, so the free variables determine their values.
Two. Homogeneous Systems of Linear Equations
Set every entry of the constant vector to zero and you get a homogeneous system of linear equations.
We write it as
It has a curious property. When has full column rank, the only solution is .
This is easy enough to see. We can write the equation as
When has full column rank, its columns are linearly independent. By definition, the only way their linear combination can give zero is if every coefficient is zero.
1. A Basis for the Null Space
Always ending up with zero is pretty boring, right?
When lacks full column rank, the homogeneous system has infinitely many solutions.
In terms of linear dependence, the columns are linearly dependent. So there is a choice of coefficients, with at least one nonzero, such that
All coefficient vectors that satisfy this equation make up the null space.
Following the same reasoning as before, if , we can rewrite the equation as
Since these vectors are linearly independent, their coefficients must all be zero. That gives us
Each of the pivot variables can be expressed in terms of the free variables.
So we can write the vector as
This is the general solution of the homogeneous system. The set of linearly independent vectors in this expression forms a basis for the null space.
This also gives us an important result.
Does that look a little weird? Fair. It takes a special kind of nerd to derive a null-space basis this way 😰. As for why I explained it this way…
I ran out of ways to force a segue from the previous section. (Ducks.)
So let’s look at an actual example.
Consider the homogeneous system
Simplifying gives us
Set the free variable . Then
Here, can be any real number.
So a single vector generates all infinitely many solutions.
The set is a basis for the null space.
2. How Multiplying by Another Matrix Affects the Null Space
Suppose we have a system of linear equations
We multiply on the left by another matrix to get
How does this affect the basis for the null space?
First, if , then of course
Every solution of is therefore a solution of . In other words, the null space of is contained in the null space of .
denotes the null space of , the set of all solutions to , including the zero vector.
Equal Null Spaces
Something special happens when . The two null spaces are equal.
We can see this directly from the dimensions. If , then
denotes dimension. The dimension is the number of vectors in a basis for the null space of .
So a basis for either null space has exactly vectors. Since and the dimensions are equal, the null spaces must be equal.
Is this just a lucky encounter between two theorems? We can also see what’s happening by looking at the transformations themselves.
The matrices act from right to left, so for we have
In other words, transforms into , and then transforms into .
The equality tells us that the number of independent directions surviving is the same as the number surviving both and . The transformation preserves all the independent directions in the output of .
That is, is injective on the image of .
Injectivity on the image of is all we need for , even if itself has linearly dependent columns.
Three. Nonhomogeneous Systems of Linear Equations
What other kinds of linear systems are there besides homogeneous ones?
All the other ones. (Ducks.)
A nonhomogeneous system is one whose constant vector is nonzero. We write it as
To determine whether a nonhomogeneous system has a solution, we usually compare the rank of its coefficient matrix with that of its augmented matrix.
Take this simple example.
We get , so the system clearly has no solution. In other words, if the coefficient matrix has lower rank than the augmented matrix, the system has no solution.
The General Solution of a Nonhomogeneous System
Nonhomogeneous systems have an interesting property. The difference between any two particular solutions is a solution of the corresponding homogeneous system.
Suppose the nonhomogeneous system has two distinct solutions and . Then
Call the difference . The equation becomes
So is a solution of the homogeneous system.
Let’s take this a step further. Suppose is any solution of , and is a fixed particular solution. Then
So is always a solution of the homogeneous system. Conversely, if , then .
It follows that the general solution of the nonhomogeneous system is , where is a particular solution and ranges over all solutions of the corresponding homogeneous system.
Comments
Feel free to leave your thoughts here. 💭💡
After signing in, click “Subscribe by Email” in the comment box to receive updates by email.
Loading comments…
Comments are temporarily unavailable. Please refresh to retry.