Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 6

Solution Sets: Span and Affine Subspaces

Recommended resources

Hello! Welcome to the final lesson of our first module on the foundations of vector spaces.

In the last lesson, we defined the dimension of a vector space and explored the dimensions of the four fundamental subspaces. We saw that the solution set to a homogeneous equation, , is the null space , which is a true vector subspace—it's a line, plane, or higher-dimensional analogue passing through the origin.

But what about the solution sets for inhomogeneous systems, where we solve for some non-zero vector ? These solution sets don't contain the origin (since ), so they can't be subspaces. What is their geometric structure?

Today, we will answer that question. Our learning outcome is to describe the structure of solution sets to linear systems using the concepts of span and affine subspaces. We will find that these solution sets have a beautiful and simple geometric relationship to the subspaces we've already studied.

1. Homogeneous vs. Inhomogeneous Systems

Let's start by formalizing the two types of systems.

  • A system of the form is called homogeneous.
  • A system of the form with is called inhomogeneous.

As we know from previous lessons, the solution set of a homogeneous system is the null space, . We find a basis for this subspace by finding the parametric vector form of the solution, which expresses the solution set as the span of a set of vectors.

Solution Sets

The following textbook section provides a quick review of this process for homogeneous systems. It offers a clear 'recipe' for finding the parametric vector form, which expresses the solution set as a span.

Please read the subsection titled 'Homogeneous Systems'. Focus on the 'Recipe: Parametric vector form (homogeneous case)' and the examples showing how solution sets form a line or a plane through the origin (i.e., a span).

The key takeaway is that the solution set to a homogeneous equation is always a subspace passing through the origin, whose dimension is the number of free variables.


2. The Structure of Inhomogeneous Solutions

Now for the main event: what is the structure of the solution set to ? The fundamental insight is surprisingly simple.

Let's suppose we've found at least one solution to . We'll call this single solution a particular solution, denoted . So, we know that .

Now, let be any solution to the corresponding homogeneous equation, . What happens if we add these two vectors together?

This means that is also a solution to the inhomogeneous equation! In fact, it turns out that all solutions to can be written in this form.

This gives us our central theorem:
The general solution to is the sum of a particular solution () and the general solution to the homogeneous equation ().

This video provides an excellent intuitive explanation, a simple proof, and an example of this powerful idea.

Homogeneous and Particular Solution

Dr. Peyam's video clearly explains this fundamental theorem of linear systems. He breaks down why the general solution is composed of a particular part and a homogeneous part.

Watch the video from the beginning until 5:00. The first minute introduces the concept, the next two minutes work through a simple example, and the final two minutes provide a straightforward proof.

This structure means that to solve an inhomogeneous system, you just need to:

  1. Find one solution, .
  2. Find all solutions to the associated homogeneous system, , which is just the null space.
  3. Add them together.

3. Geometric Interpretation: Affine Subspaces

What does the structure mean geometrically?

  • We know represents the null space, which is a subspace (a line, plane, etc., through the origin).
  • Adding the constant vector to every vector in the null space has the effect of translating the entire null space. The resulting set is parallel to the original null space but shifted so that it passes through the point defined by .

This translated subspace is called an affine subspace.

Solution set as an affine subspace

This image illustrates the concept perfectly. The solution to the homogeneous equation, \mathbf{x}_h, forms a line through the origin (the null space). The general solution to the inhomogeneous equation is this line translated by a particular solution vector, \mathbf{x}_p. The resulting set is a line that is parallel to the null space but does not pass through the origin. This is an affine subspace.

Formally, an affine subspace is a set that is a translation of a vector subspace.

Chapter 2 Linear Algebra

The following notes from a Stanford course formalize this idea. They define an affine subspace directly as a 'translated subspace' and then prove that the solution set to Ax=b is exactly this kind of object.

Please read Section 2.3 'Linear Systems of Equations' and Section 2.3.1 'Solution Sets'. Section 2.3 defines an affine subspace as a translated subspace. Section 2.3.1 then proves that the set of solutions to Ax=b is precisely an affine subspace whose underlying vector space is the null space of A.

The reading confirms that the set of solutions to is an affine subspace. The dimension of this affine subspace is defined to be the dimension of the vector subspace it is a translation of—in this case, .

So, if , the homogeneous solution is a line through the origin, and the inhomogeneous solution is a line not through the origin (a 1D affine subspace). If , the solution sets are a plane through the origin and a translated parallel plane, respectively.

Test your understanding!

A linear system is solved, where is a matrix. The solution set is found to be a plane in . What is the rank of the matrix ?

Show answer

The solution set is a plane, which is a 2-dimensional object. The dimension of the solution set (an affine subspace) is equal to the dimension of the null space, so .

Using the Rank-Nullity Theorem from our last lesson:

Here, (the number of columns). So:


4. Consequences and Broader Connections

This structure () has some important consequences. For instance, why can a linear system have 0, 1, or infinitely many solutions, but never exactly 2?

  • 0 solutions: If no particular solution exists (i.e., is not in the column space of ).
  • 1 solution: A particular solution exists, and the homogeneous solution is only the trivial solution, . This happens when the null space has dimension 0.
  • Infinite solutions: A particular solution exists, and the homogeneous solution set (the null space) contains infinitely many vectors (i.e., its dimension is greater than 0).

You can't have just two solutions, because if you have and , then their difference is a non-zero vector in the null space. This means the null space is non-trivial, so it contains infinitely many vectors (all scalar multiples of ), which in turn generates infinitely many solutions.

This principle extends far beyond matrix equations. As your background includes physics and calculus, you might find it interesting that this same structure is the key to solving linear differential equations.

Homogeneous and Particular Solution

Let's return to Dr. Peyam's video to see this powerful connection. He shows how the 'particular + homogeneous' solution method you may have seen in a differential equations course is just another application of this fundamental linear algebra principle.

Watch the clip from 12:37 to 15:37. Notice how solving y'' - 5y' + 6y = e^x follows the exact same pattern: you find the homogeneous solution (where the right side is 0) and add a particular solution.

This demonstrates that what you're learning isn't just a set of rules for matrices; it's a deep structural property of all linear systems, which appear throughout science and engineering.


Conclusion

This lesson completes our first module by giving a full geometric picture of the solution sets to any system of linear equations.

Key Takeaways:

  • The solution set to a homogeneous system () is a vector subspace (the null space), which can be expressed as a span of basis vectors.
  • The solution set to a consistent inhomogeneous system () is an affine subspace.
  • The structure of the general solution is , where is one particular solution and is any vector from the null space.
  • Geometrically, an affine subspace is a translation of a vector subspace. The solution set of is the null space of shifted by a particular solution vector .

Preview of Next Module:
We have now built a solid foundation by studying vector spaces, subspaces, bases, dimension, and the structure of solution sets. In the next module, "Linear Transformations and Matrices," we will shift our perspective. Instead of thinking of as a system to be solved, we will begin to view it as a function that takes an input vector and transforms it into an output vector . This will open up a powerful new way to understand the geometry of matrices and their role in applications like deep learning and quantum mechanics.