A linear system can be read row by row, as a list of equations, or column by column, as a single question about vectors: can a target vector be built out of some given vectors? The column view is where most of the geometry of linear algebra lives, and it leads directly to the idea of a span.
Vectors in Rn
A vector in Rn is an ordered list of n real numbers, written as a column:
u=[3−1]∈R2,v=104∈R3.
Two vectors are equal when their corresponding entries are equal. The two basic operations act entry by entry: the sumu+v adds matching entries, and the scalar multiplecu multiplies every entry by the number c (a scalar). The zero vector0 has every entry equal to 0.
[12]+[3−1]=[41],−2[3−1]=[−62].
These operations obey the familiar algebraic rules: addition is commutative and associative, u+0=u, u+(−u)=0, c(u+v)=cu+cv, (c+d)u=cu+du, c(du)=(cd)u and 1u=u. Each follows from the corresponding rule for real numbers, applied one entry at a time.
Geometry in the plane
Picture [ab] as an arrow from the origin to the point (a,b). Scalar multiplication stretches or shrinks the arrow (and reverses it when c is negative). Addition follows the parallelogram rule: u+v is the fourth corner of the parallelogram with sides u and v.
The parallelogram rule: u = (1, 2), v = (3, −1) and u + v = (4, 1).Open in grapher →
Linear combinations
Definition
Linear combination
Given vectors v1,v2,…,vp in Rn and scalars c1,c2,…,cp, the vector
y=c1v1+c2v2+⋯+cpvp
is a linear combination of v1,…,vp with weightsc1,…,cp. The weights can be any real numbers, including zero.
The central question is the reverse one: given b, can you find weights that produce it? Write a1=1−23, a2=210 and ask whether x1a1+x2a2=b for some x1,x2. Combining the left side into one vector,
x1+2x2−2x1+x23x1=b1b2b3,
and two vectors are equal exactly when their entries agree. So the vector equation is the same thing as a linear system, whose augmented matrix has the vectors a1,a2,b as its columns.
Vector equations are linear systems
The vector equation
x1a1+x2a2+⋯+xnan=b
has the same solution set as the linear system whose augmented matrix is
[a1a2⋯anb].
In particular, b is a linear combination of a1,…,an if and only if this system is consistent.
Worked example: Finding the weights
Is b=719 a linear combination of a1=1−23 and a2=210?
Row reduce [a1a2∣b] with R2+2R1 and R3−3R1:
1−23210719→10025−6715−12.
Row 2 forces x2=3, but row 3 forces x2=2. Formally, R3+56R2 gives [00∣6]. The system is inconsistent, so b is not a linear combination of a1 and a2.
Change the target to b=713 and the same steps give rows [05∣15] and [0−6∣−18], both saying x2=3. Then x1=7−6=1, and indeed 1a1+3a2=713.
Span
Definition
Span
If v1,…,vp are in Rn, then Span{v1,…,vp} is the set of all linear combinations of v1,…,vp, that is, all vectors of the form c1v1+⋯+cpvp with c1,…,cp scalars.
Asking "is b in Span{v1,…,vp}?" is the same as asking whether the system with augmented matrix [v1⋯vp∣b] is consistent. Every span contains 0 (take all weights 0) and every cvi.
Geometrically:
If v=0, then Span{v} is the line through the origin in the direction of v.
If u and v are nonzero and neither is a multiple of the other, then Span{u,v} is the plane through the origin containing them. In R2 that plane is all of R2.
If v is a multiple of u, adding it contributes nothing new, and the span is still just a line.
Span{v} for v = (2, 1) is the whole line y = x/2 through the origin. Every multiple of v, such as −2v, lies on it.Open in grapher →
Worked example: A span in R³
Describe Span{u,v} for u=102 and v=01−1, and decide whether b=3−28 lies in it.
Neither vector is a multiple of the other, so the span is a plane through the origin. A general element is
c1u+c2v=c1c22c1−c2.
Matching the first two entries of b forces c1=3 and c2=−2, and then the third entry must be 2(3)−(−2)=8. It is, so b=3u−2v lies in the plane. (In fact the plane is exactly the set of vectors with x3=2x1−x2.)
Common mistake
A span is a set of vectors, not a single vector. Writing "Span{u,v}=u+v" confuses one particular combination with all of them. Also remember that the weights may be negative or zero; the span of v is the entire line, not just the ray in the direction of v.
Practice
Practice 1
Let u=[1−2] and v=[41]. Compute 3u−2v and give it as an ordered pair.
Enter a point like (2, -3)
Practice 2
Find weights x1,x2 with x1[12]+x2[3−1]=[53]. Give (x1,x2).
Enter a point like (2, -3)
Practice 3
Is b=124 in Span{a1,a2}, where a1=101 and a2=011?
Practice 4
Let a1=102, a2=215 and b=3−1h. For what value of h is b in Span{a1,a2}?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Which best describes Span⎩⎨⎧120,240⎭⎬⎫ in R3?
Practice 6
Write b=51−2 as x1a1+x2a2+x3a3, where a1=101, a2=210, a3=013. Give (x1,x2,x3).
Enter a point like (2, -3)
Practice 7
For what value of k is [3k] in Span{[−12]}?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.