Linear independence, span, and dimension
A lattice is built from a handful of vectors. For that handful to actually describe a higher-dimensional grid, the vectors have to point in genuinely different directions. If two of them lie on the same line, they describe the same 1D set twice, no matter how many you stack up.
This chapter is about telling the difference between when a set of vectors covers new ground, and when one of them is redundant.
By the end of this chapter, you should understand what a linear combination is, what it means for vectors to be linearly independent, what span and dimension mean, and why " linearly independent vectors" is an important assumption behind every lattice we will meet.
Linear combinations: scale and add
There are only two things you can do to a vector to get another vector: scale it, and add it to another. Doing both at once is called a linear combination.
Take two vectors:
Scaling by means multiplying every entry by :
Adding and means adding entry by entry:
The result is a linear combination of and . The numbers and are called the coefficients.
In general, a linear combination of is any vector of the form:
where are numbers. Read this as "scale each by , then add the results".
This is the same kind of expression as matrix-vector multiplication from chapter 3. If we put as columns of a matrix and stack the coefficients into a vector , then is exactly the linear combination above.
When one vector is redundant
Suppose I give you two vectors:
These point in the same direction. You can see this directly: . Anywhere can take you, could have taken you already, just with a different coefficient.
We say is linearly dependent on , because can be written as a linear combination of :
Now consider:
There is no number where .
We say and are linearly independent.
The general definition
For two vectors, "one is a scaled copy of the other" is easy to check. For three or more, the test needs to be a bit more careful, because a vector can be redundant by being a combination of several others, not just a scalar multiple of one.
The standard definition handles all cases at once. A set of vectors is linearly independent if the only way to write:
is by taking every . Here on the right is the zero vector, with every entry equal to .
Read this as "the only linear combination that gives the zero vector is the boring one where every coefficient is zero". If you can find any other choice of coefficients that gives zero, then at least one vector is redundant and the set is linearly dependent.
Let's check the dependent pair from above. Take and . Pick and :
We found a non-zero choice of coefficients that gives the zero vector, so the set is linearly dependent.
For the independent pair , the only way to make is . There is no shortcut.
Span: every place you can reach
The span of a set of vectors is the set of every vector you can write as a linear combination of them.
For:
every linear combination is some multiple of , because is already a multiple of . So the span is the line through the origin in the direction of . Two vectors, but only a 1D set of reachable points.
For:
you can reach any point in the 2D plane by choosing the right and . The span is the whole plane.
The span is what the vectors actually describe. Linear dependence shrinks the span. Linear independence keeps it as large as possible.
Dimension: how many directions you actually have
The dimension of the span is the number of linearly independent vectors needed to describe it.
- The span of is 1-dimensional. You only need one of the vectors to describe the whole line.
- The span of is 2-dimensional. You need both vectors to describe the whole plane.
So the count of vectors in a set and the dimension of its span are not the same thing. The dimension is the count after removing redundant vectors.
A useful rule of thumb: in -dimensional space, you can have at most linearly independent vectors. Any larger set must contain a redundant vector. For example, in 2D, three vectors are always linearly dependent, because the third one is reachable as a combination of the other two.
Why this matters for lattices
A lattice in dimensions is built from a set of vectors called a basis. We have not defined lattices yet, but the requirement on the basis is the one this chapter has been building toward:
A basis must consist of linearly independent vectors.
If the basis vectors are linearly dependent, the span is smaller than dimensions, and the "lattice" collapses onto a lower-dimensional subset. A 2D basis with two collinear vectors describes a 1D lattice on a line, not a 2D grid.
This is also the reason the next chapter cares about the determinant. The determinant of a matrix is zero exactly when its columns are linearly dependent, and non-zero exactly when they are linearly independent. So checking "do these vectors describe a real -dimensional lattice?" is the same as checking "is the determinant non-zero?".
What to remember
- A linear combination of vectors is a sum of scaled copies: .
- Vectors are linearly dependent if one can be written as a linear combination of the others.
- Equivalently, they are dependent if some non-zero choice of coefficients gives .
- Vectors are linearly independent if the only way to make that sum zero is to take every coefficient to be zero.
- The span is the set of every vector reachable as a linear combination.
- The dimension of a span is the number of linearly independent vectors needed to describe it.
- In -dimensional space, you can have at most linearly independent vectors.
- A lattice basis must be linearly independent. Otherwise the lattice collapses to a lower dimension.