Vector spaces · Definition

Linear combination and span

linear algebravector spaces

Before you start you need to know

Combining vectors with sums and scalars is the only operation a vector space offers; the span tells us what can be reached with it.

Definition

A linear combination of several vectors is a sum of scalar multiples of them; the span is the set of all possible linear combinations.

\[c_1v_1+\cdots+c_kv_k,\quad \operatorname{span}\{v_1,\dots,v_k\}\]

Given vectors \(v_1,\dots,v_k\) and scalars \(c_1,\dots,c_k\), the vector \(c_1v_1+\cdots+c_kv_k\) is a linear combination; the scalars are called coefficients. For example, \(2(1,2)+3(0,-1)=(2,1)\). Asking whether a vector \(b\) is a linear combination of others is asking whether a certain system of equations has a solution, and it is solved by Gaussian elimination.

The span of \(v_1,\dots,v_k\) gathers all their linear combinations. It always contains \(0\), each \(v_i\), and any sum or multiple of its elements. Geometrically, the span of a nonzero vector is a line through the origin; that of two vectors in \(\mathbb{R}^3\) that are not multiples of each other is a plane through the origin.

Not every vector adds something new: since \((2,4)=2(1,2)\), the span of \((1,2)\) and \((2,4)\) is the same line as that of \((1,2)\). On the other hand, \((1,1)\) and \((1,2)\) generate all of \(\mathbb{R}^2\). Whether some vectors generate a given space and whether some are redundant are the two questions that lead to linear independence and to bases.

A common mistake is thinking that coefficients must be positive or integer; they may be any real number. Another is forgetting that in a general space (matrices, polynomials, functions) combinations follow the same rules: for instance, \(x^2\) and \(1\) generate the polynomials \(ax^2+b\).

Think about it

Is \((1,1,1)\) in the span of \((1,0,0)\) and \((0,1,0)\)?

No: every combination \(a(1,0,0)+b(0,1,0)=(a,b,0)\) has third coordinate \(0\).

If \(w\) is a linear combination of \(v_1\) and \(v_2\), does the span change when \(w\) is added to the list?

No: any combination using \(w\) can be rewritten using only \(v_1\) and \(v_2\), so the span is the same.

Exercises 10

What comes next

References

  • Gilbert Strang, Introduction to Linear Algebra, 6th edition, Wellesley-Cambridge Press, 2023. §1.1 y §3.1
  • Sheldon Axler, Linear Algebra Done Right, 4th edition, Springer, 2024. §2.A
  • David C. Lay, Steven R. Lay, Judi J. McDonald, Linear Algebra and Its Applications, 6th edition, Pearson, 2021. §1.3