Adding and scaling are the only two operations available, so applying them repeatedly to a fixed set of vectors generates everything that set can reach, and a system of equations asks whether a particular target is reachable.
This lesson needs only the previous one: a vector is a list that can be added componentwise and multiplied by a number, and the two operations have a geometric reading as arrows joined tip to tail and arrows stretched. Everything below is those two operations applied several times.
One question instead of many equations
A linear combination of the vectors is any vector of the form
with the any real numbers. Because only addition and scaling are used, that expression is the most general thing that can be built out of a set of vectors, and everything in the rest of the course is a linear combination of something.
Recall the system solved two lessons ago, , and . Read down the columns rather than along the rows and it says
which is one vector equation in place of three scalar ones. The solution found there was , , , and substituting gives , componentwise, as required.
The restatement is worth taking seriously, because it changes the question. Instead of asking which numbers satisfy three separate constraints, it asks: is the target vector a linear combination of the columns, and if so, in what amounts? That is a question about the columns, and it has a geometric answer.
Span
The span of a set of vectors is the set of all their linear combinations. It is written and is best thought of as everything reachable from those vectors using the two permitted operations.
Some spans are easy to see. The span of a single non-zero vector is , an infinite straight line through the origin in the direction of . The span of the two vectors and is the whole plane, since for any pair. The span of the empty set, and the span of , is just the origin.
Two vectors in three-dimensional space usually span a plane through the origin: the combinations sweep out a flat sheet containing both arrows and the origin. But not always. If happens to be a multiple of , say against , then every combination is a multiple of and the span collapses to a line. Two vectors span a plane when they point in genuinely different directions, and a line when they do not, and that distinction is the whole content of the next section.
Notice that a span always contains the origin, taking every coefficient zero, and that it is closed under the two operations: any combination of things in the span is again in the span. A span is therefore flat and unbounded, a line or a plane or a higher-dimensional analogue, always through the origin, and never a curve, a disc or a shifted plane.
Example. Is in the span of and ?
The question asks for numbers and with , which is three equations: , , . Subtracting the first from the second gives , so . The third equation is a consistency check rather than a way of finding anything, and it holds: . So yes, and .
Now you. Is in the same span, and is ?
Answer
For : and give and , and the third equation checks, . So it is in the span. For the first two equations still give and , but the third would need , which is false, so it is not in the span. Both points lie in three-dimensional space, and the span is only a plane, so most points miss it.
Dependence and independence
A set of vectors is linearly dependent when some non-trivial combination of them gives the zero vector, meaning
with at least one not zero. It is linearly independent when the only combination producing is the one with every coefficient zero. The word "non-trivial" carries the whole definition: taking all the coefficients zero always works and says nothing.
The definition looks technical, and it is equivalent to something plainer: a set is dependent exactly when one of its members is a combination of the others. If in a dependent relation, divide by it and rearrange to get , so is a combination of the rest. Conversely, if , move everything to one side to get a relation with , which is certainly not zero. So dependence means redundancy: at least one vector adds nothing to the span, because it was already reachable from the others.
The zero-vector version of the definition is preferred despite being less intuitive, for two reasons. It treats all the vectors symmetrically, whereas "one is a combination of the others" invites the false belief that the guilty vector is identifiable, and it is directly a homogeneous system of the kind elimination solves.
Take , and . Adding the first two gives exactly, so with coefficients , and the set is dependent. The span of all three is therefore no bigger than the span of the first two: a plane, not all of space.
Now take , and . A combination is , and setting it to zero forces from the last component, then from the middle, then . Only the trivial combination works, so the set is independent and its span is all of .
Example. Are , and independent?
Set , which is , and . The last gives . Substituting into the first, , so . The second is then , satisfied automatically. Taking gives the relation , which is checkable directly: . The set is dependent, and the third vector was redundant.
Now you. Are , and independent?
Answer
Adding the first two gives , which is the third, so and the set is dependent. Their span is the plane through the first two, not all of .
The three outcomes, seen
The first lesson found by algebra that a linear system has no solution, exactly one, or infinitely many. In the language of this lesson those are three statements about the columns of the system and the target vector .
There is at least one solution exactly when lies in the span of the columns. If the columns of a three by three system span all of , every target is reachable and the system is solvable whatever is. If they span only a plane, then targets off that plane are unreachable, which is the inconsistent case: the algebra reported , and the geometry says was never in the span to begin with.
There is at most one solution exactly when the columns are independent. Suppose two different combinations both produce . Subtracting them gives a combination equal to whose coefficients are not all zero, since the two solutions differed, and that is dependence. Run the argument backwards and dependence produces infinitely many solutions: add any multiple of the dependence relation to a solution and it remains a solution, because the added part contributes .
So independence controls uniqueness and span controls existence, and the two are separate questions. The example above with , and has dependent columns, so any system built from them has either no solutions or an infinite line of them, and never one.
Example. The columns of a system are , and , and . How many solutions?
Every column is a multiple of , so the span is the line through . The target is on that line, so solutions exist. The columns are wildly dependent, so there are infinitely many: is the single condition, and any satisfying it works, for example or .
Now you. Same three columns, but . How many solutions?
Answer
None. Every reachable vector has its second component exactly twice its first, and . The target is off the line that the columns span, so no combination reaches it.
Counting
One counting fact does a great deal of work later, and it follows from elimination without any new machinery: any set of more than vectors in is dependent.
Here is why. Testing vectors in for dependence means solving , which written out is equations in unknowns, one equation per component. Elimination clears one unknown per equation at most, so it can pin down at most of the unknowns. If then at least unknowns are never pinned down and are free to take any value, and choosing a non-zero value for one of them produces a non-trivial relation. Since is always a solution, the system is never inconsistent, so those free choices really do deliver solutions.
Three vectors in the plane are therefore always dependent, however they are chosen, and so are vectors in . The converse direction is the same statement read the other way: fewer than vectors can never span , since equations in unknowns cannot be solvable for every right hand side. Between those two bounds sits the case of exactly vectors, which is the useful one, and the next lesson is about it.
Honest limits
Independence is a property of a set, not of any individual vector in it. Saying "the third vector is dependent" is meaningless: in the worked example above, any one of the three could be written in terms of the other two, and nothing distinguishes a culprit.
The more serious limit is numerical. Independence is a yes or no question in exact arithmetic and a matter of degree in practice. The vectors and are genuinely independent, and their span is genuinely the whole plane, but reaching requires the combination , in which two enormous quantities nearly cancel. Any measurement error in the data is magnified by a factor of about a million. Sets like this are called ill-conditioned, and the number quantifying the trouble is introduced in the lesson on orthogonality. The theory presented here remains exactly true; it just stops being the only thing worth knowing.
A dependent set describes its span wastefully, using more vectors than the span requires. The next lesson removes the waste, and finds that what is left over has a size that does not depend on how the removing was done.