Linear algebra does not only study individual vectors. It often studies whole collections of vectors or matrices at once: all solutions of a system, all linear combinations of a list, all matrices satisfying an equation, or all vectors killed by a matrix.
Set language is the grammar that lets us say these things precisely. Without it, phrases such as "the same solution set", "belongs to the null space", and "these vectors span the same subspace" stay too vague to support proofs.
Why sets enter linear algebra
When you row-reduce a system, you are not trying to preserve the visible list of equations. You are trying to preserve the collection of solutions. Two systems may look different and still have exactly the same solutions.
Likewise, when you replace a spanning list by a shorter one, you are not trying to preserve the list. You are trying to preserve the set of vectors that can be built from the list.
Definition
Membership
If an object is an element of a set , we write
If is not an element of , we write
The symbol should be read as "belongs to". It is not the same as subset language. A vector may belong to a set; a smaller collection may be a subset of a larger collection.
Ambient spaces
Before writing a set in linear algebra, identify the kind of object being collected.
- is the set of real column vectors with entries.
- is the set of real matrices.
- is the set of real polynomials of degree at most .
This ambient space matters. The expression
is incomplete unless we know the size and type of . A careful version is
The part before the colon tells us where the objects live. The part after the colon gives the condition used to select them.
Solution sets
Let be an matrix and let .
Definition
Solution set of a linear system
The solution set of is
So a statement such as has exact meaning:
This notation also handles the three familiar possibilities.
- If the system has a unique solution , then .
- If the system is inconsistent, then .
- If the system has infinitely many solutions, then is often written parametrically.
Worked example
Reading a parameterized solution set
Suppose the solutions of a system are described by
As a set, this is
The fixed vector is one particular solution. The two direction vectors record the freedoms that can be added without leaving the solution set.
Null space and span as sets
Two set constructions recur throughout the course.
Definition
Null space
For an matrix ,
This is the solution set of the homogeneous system .
Definition
Span
For vectors in the same vector space,
The span is a set, not the list itself. Reordering the vectors does not change the span, and adding a vector that was already a linear combination of the old ones does not change the span.
A subset proof with stacked matrices
To prove a set inclusion, translate membership into the defining equations and derive the condition for the target set. Stacking two coefficient matrices gives a useful first example of this method.
Theorem
A stacked null space is contained in a combined null space
Let and be matrices, and let
For any real numbers ,
Proof
Proof from the definitions
To prove the subset relation, take an arbitrary . By the definition of null space,
Since is the matrix obtained by stacking above , this says
Therefore and . Hence
By the definition of null space again, . Since the choice of was arbitrary, the inclusion follows.
The exact stacked-null-space identity proved in the preceding note says . Thus the inclusion above says that satisfying both homogeneous equations implies satisfying any fixed linear combination of them. It does not say that the combination retains both equations.
Worked example
A combined equation loses information
Take and . Their stacked matrix is , so . For , however, , giving
To prove this description, any vector in the null space must satisfy , hence has the displayed form with . Conversely, substituting any displayed vector makes the sum zero. The vector therefore belongs to but not to : its individual outputs under and are one and minus one, which cancel only after addition. The inclusion is strict, so replacing it by equality would be false.
The correct equality uses an intersection, . Cancellation between outputs is allowed in the combined equation, but satisfying both original equations requires each output separately to be zero. Checking this single witness establishes strictness; the parameter calculation describes all the extra solutions as well.
Set equality means two directions
Definition
Set equality
Two sets and are equal if every element of each set belongs to the other:
In proofs, this usually becomes a two-inclusion routine:
- prove that every element of belongs to ;
- prove that every element of belongs to .
The first direction alone proves only , not equality.
Proof X-Ray
Membership supplies the data needed by each inclusion
To prove , start with an arbitrary and translate that membership into equations or coefficients. The target has its own defining condition. The proof must transform the supplied information into that condition for the same vector, without assuming the conclusion.
For a span, the supplied information is the existence of a coefficient list; proving membership in another span requires constructing a new coefficient list. For a null space, the supplied information is a homogeneous equation; proving membership in another null space requires checking its matrix equation. Testing several numerical vectors cannot replace this arbitrary-vector step.
Then reverse the roles of the two sets and make a second argument. That argument may be shorter—for example, one can insert a zero coefficient for an added generator—but it must still be present. The two inclusions can use different representations; what remains fixed is the vector being shown to belong.
Follow the grammar that turns algebraic constraints into solution sets, then use one arbitrary element to prove subsets and set equality.
Membership versus subset
The statement x in S says one object belongs to S. The statement S subset T compares two collections.
Set-builder grammar
In {x in R^n : Ax=b}, R^n names the ambient space and Ax=b is the condition selecting the elements.
Solution set
S(A,b)={x in R^n : Ax=b} is one set statement, whether the set is empty, a singleton, or a parameter family.
Null space and span
N(A) is equation-defined, while Span{u1,...,uq} is parameter-defined. In both cases the notation describes a whole set.
Subset proof routine
To prove S subset T, take an arbitrary element of S, unpack the definition of S, and show the condition defining T.
Equality proof routine
Set equality needs both inclusions. This is the proof grammar behind removing redundant vectors from a spanning list.
Set language turns algebra into precise collections: write the ambient space, state the condition, then prove inclusions by starting with one arbitrary element.
Intersections of solution sets with the same coefficient matrix
Set language also clarifies a useful fact about systems with the same coefficient matrix. If two solution sets for and have even one common vector, then the two right-hand sides must actually be the same.
Theorem
For the same A, two nonempty-overlapping solution sets are equal
Let be an matrix, and let . If
then
Proof
Why one common solution forces equality
Because the intersection is nonempty, there is some vector such that
By the definition of solution set,
Therefore . But if the two right-hand sides are the same, the two defining conditions are identical:
Thus every element of belongs to , and every element of belongs to . Hence .
The contrapositive reading is often just as important: for a fixed matrix , two consistent systems and either have disjoint solution sets or exactly the same solution set. They cannot share one solution but disagree elsewhere.
A core span argument
The following argument appears repeatedly in linear algebra, often hidden inside larger computations.
Theorem
Adding a redundant vector does not change the span
Suppose is a linear combination of . Then
Proof
Proof by set equality
Write
Let
First take any . Then there are scalars such that
Substitute the formula for :
So .
Conversely, if , then
so . Therefore .
This proof is not about a particular numerical example. It explains why removing redundant vectors from a spanning list is legitimate.
The converse identifies exactly which vectors are redundant
Suppose adjoining leaves the span unchanged. The vector certainly belongs to the enlarged span: give coefficient one and every old generator coefficient zero. Equality of the two spans then places in the old span, so the definition provides a linear combination of the original generators. This proves the converse, not merely another instance of the forward theorem.
Together the two directions say that a vector may be added without changing the span if and only if it is already generated by the old list. A vector outside the old span makes the new span strictly larger: the new span contains the old one by allowing coefficient zero on the added vector, while the added vector itself witnesses failure of the reverse inclusion.
Here abbreviates the span of the vectors in the list ; it does not treat the whole list as one vector.
Theorem
Several redundant generators and equality of spans
Let and be finite nonempty lists of vectors in . Adding all vectors of to leaves the span unchanged if and only if each belongs to . Moreover,
if and only if every vector in each list is a linear combination of the vectors in the other list. The lengths and need not agree.
Proof
From one added vector to two-way generation
If every is generated by , add the vectors of one at a time. The first addition does not change the span. Each subsequent is still generated by the original vectors, which remain in the enlarged list, so the one-vector theorem applies again. Induction proves the claim for any finite list. Conversely, each added vector belongs to the enlarged span; if this equals the old span, each added vector must already belong to the old span.
For the second statement, assume both directions of generation. Adding to leaves unchanged; adding to leaves unchanged. The combined lists contain the same vectors, and changing their order does not change which linear combinations can be formed. Both spans therefore equal the combined span.
Conversely, if the spans are equal, any generator from belongs to its own span and hence to the span of . By definition it is generated by . Interchanging the lists gives the other direction. No independence hypothesis is needed in any of these arguments.
Worked example: proving two spans are equal
Worked example
Removing a redundant generator with explicit coefficients
Let
Since
the theorem gives
For a complete direct check, an arbitrary vector in the larger span has the form . Substituting the verified relation gives , a vector in the smaller span. Conversely, belongs to the larger span. The new coefficients are real whenever the old coefficients are real, so these expressions prove both inclusions for every vector, not only membership of the displayed three generators. The vector may remain computationally useful even though it does not enlarge the set that can be generated.
Worked example
Two different generating pairs give the same span
Let
The forward relations are and , verified in every coordinate. Thus for arbitrary real , proving . To obtain the reverse inclusion, solve these same two relations for the original generators:
Consequently, for arbitrary real ,
This is the required coefficient construction in the other direction. Every vector generated by either pair is therefore generated by the other, and the spans are equal. Merely observing that both lists contain two vectors would not prove this; the explicit relations do.
The same vector relations also handle a longer list. Adding , , and to changes nothing because each added vector is already generated by that pair. The resulting five-vector list and the original two-vector list have the same span. Equality of spans concerns the available vectors, not the length of a chosen generating list; equal lengths, on the other hand, do not by themselves guarantee equality of spans.
Common mistakes
Common mistake
Confusing a vector with a set containing that vector
The vector and the singleton set are different objects. If a system has a unique solution, the solution is , but the solution set is .
Common mistake
Forgetting the ambient space
The condition does not by itself say whether is a vector in , a matrix variable, or some other object. Write the ambient set when the context is not already fixed.
Common mistake
Proving only one inclusion
To prove , showing that every element of belongs to is not enough. You must also show that every element of belongs to .
Common mistake
Forgetting that a common solution fixes the right-hand side
If the same matrix is used in both systems, a vector satisfying and forces . The conclusion is not merely that the two systems are similar; their equations have the same right-hand side.
Quick checks
Checkpoint
If , what does that say about the system ?
Translate the empty set into solution language.
Solution · Answer
It says that the system has no solution. In other words, is inconsistent.
Checkpoint
Suppose . Does adding to the list change the span?
Use the redundant-vector theorem.
Solution · Answer
No. Since is already a linear combination of and ,
Checkpoint
Suppose contains a vector . What must be true about and ?
Use the definition of membership in a solution set.
Solution · Answer
Since , we have . Since , we also have . Therefore , and the two solution sets are equal.
Exercises
Checkpoint
Let and . Prove that .
Use both inclusions, even if one direction feels obvious.
Solution · Guided solution
First, every vector in is a linear combination of vectors in , so .
Conversely, take any . Then
so . Therefore , and hence .
Exercise: decide whether a new vector changes the span
Let and . For which real does adjoining leave unchanged? If it changes the span, identify a vector that proves the change.
Solution · Solution using the converse of redundancy
By the proved equivalence, the span is unchanged exactly when is already a linear combination of . Every such combination has the form
Matching the first two coordinates forces and ; the third then requires . If that condition holds, explicitly verifies membership, so the old span is unchanged. If it fails, no coefficients can represent using the old pair. Yet belongs to the enlarged span by giving itself coefficient one. Thus witnesses strict enlargement.
The argument checks existence of a representation and proves the failure when none exists. It does not assume that a vector is redundant merely because its ambient dimension is the same as that of the old generators.
A useful final comparison is between a generating list and a basis. The arguments in this note only ask which vectors can be generated. They deliberately allow repetitions and unnecessary generators. In the preceding five-vector example, removing three generators changes the list but not the span. Deciding whether the remaining list is independent is a separate question, treated in the later independence and basis notes. Keeping these questions separate avoids using equality of spans as if it were a claim of unique coefficients.
Read this first
This note extends 1.1 Equations and solution sets and prepares the set-equality arguments used in 6.3 Linear combinations and span.