Skip to content
VidiMaster it, module by module
Module 1/Vector Spaces & Subspaces

Linear Combinations & Span

A linear combination is what you get by scaling vectors and adding them; the span collects every possible linear combination of a set of vectors. Span is always a subspace through the origin, and its geometric shape — point, line, plane, or all of space — reflects how many independent directions the vectors supply.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

Let u=[10−1]u = \begin{bmatrix} 1 \\ 0 \\ -1 \end{bmatrix} and v=[213]v = \begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}. Compute 3u−2v3 u - 2 v.

What is Span⁡{[24],[12]}\operatorname{Span}\left\{ \begin{bmatrix} 2 \\ 4 \end{bmatrix}, \begin{bmatrix} 1 \\ 2 \end{bmatrix} \right\} in R2\mathbb{R}^2?

What you’ll be able to do

  • Compute a linear combination c1v1+⋯+ckvkc_1 v_1 + \dots + c_k v_k of vectors by scaling each vector and adding the results.
  • State the definition of the span of a set of vectors as the set of all of their linear combinations.
  • Explain why the span of any set of vectors is always a subspace containing the origin.
  • Identify the geometric shape of a span (point, line, plane, or all of Rn\mathbb{R}^n) from its generating vectors.
  • Decide whether a given vector lies in a span by setting up and solving a linear system.

In your course

· MATH2015 · Linear Algebra & Probability
§2.2 Linear Combinations and Span
  • Definition 2.3Linear combination
  • Definition 2.4Span, span⁡(u1,…,un)\operatorname{span}(u_1,\dots,u_n)
  • Theorem 2.2A span is always a subspace
    For u1,…,un∈Rnu_1,\dots,u_n\in\mathbb{R}^n, span⁡(u1,…,un)\operatorname{span}(u_1,\dots,u_n) is a vector subspace of Rn\mathbb{R}^n.
  • Remarks 2.2–2.5What “linear” allows; same span
1

Mixing vectors: the linear combination

Imagine you have a few basic "ingredient" vectors, and you are allowed to stretch each one (multiply it by a scalar) and then add the stretched pieces together. Anything you can build this way is a linear combination.

Formally, given vectors v1,v2,…,vkv_1, v_2, \dots, v_k in Rn\mathbb{R}^n and scalars (real numbers) c1,c2,…,ckc_1, c_2, \dots, c_k, the vector c1v1+c2v2+⋯+ckvkc_1 v_1 + c_2 v_2 + \dots + c_k v_k is called a linear combination of v1,…,vkv_1, \dots, v_k. The numbers cic_i are the weights (or coefficients).

  • Each viv_i is a vector — a column of nn real numbers.
  • Each cic_i is a single real number.
  • Only two operations are ever used: scalar multiplication and vector addition.

For example, with v1=[10]v_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix} and v2=[01]v_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, the combination 3v1+2v2=[32]3 v_1 + 2 v_2 = \begin{bmatrix} 3 \\ 2 \end{bmatrix}. Choosing different weights lands you on different points.

2

Span: everything you can reach

If a single linear combination is one destination, the span is the map of every destination you could possibly reach.

The span of v1,…,vkv_1, \dots, v_k, written Span⁡{v1,…,vk}\operatorname{Span}\{v_1, \dots, v_k\}, is the set of all linear combinations of those vectors: Span⁡{v1,…,vk}={ c1v1+⋯+ckvk  :  c1,…,ck∈R }.\operatorname{Span}\{v_1, \dots, v_k\} = \{\, c_1 v_1 + \dots + c_k v_k \;:\; c_1, \dots, c_k \in \mathbb{R} \,\}. As the weights cic_i range over all real numbers, you sweep out the entire span.

  • A vector ww is in the span exactly when you can find weights with w=c1v1+⋯+ckvkw = c_1 v_1 + \dots + c_k v_k.
  • So checking membership is the same as asking whether a particular system of linear equations has a solution.

Note that a span is usually an infinite set, even though it is generated by only finitely many vectors.

3

Span is always a subspace

A subspace of Rn\mathbb{R}^n is a set WW that behaves well under the two operations. Concretely, WW is a subspace when:

  1. 0∈W\mathbf{0} \in W (it contains the zero vector),
  2. if u,w∈Wu, w \in W then u+w∈Wu + w \in W (closed under addition),
  3. if u∈Wu \in W and c∈Rc \in \mathbb{R} then cu∈Wc u \in W (closed under scalar multiplication).

Key fact: Span⁡{v1,…,vk}\operatorname{Span}\{v_1, \dots, v_k\} automatically satisfies all three, so a span is always a subspace.

  • Contains 0\mathbf{0}: choose every weight ci=0c_i = 0, giving 0v1+⋯+0vk=00 v_1 + \dots + 0 v_k = \mathbf{0}.
  • Closed under addition: adding two linear combinations gives another linear combination (just add the matching weights).
  • Closed under scalar multiplication: scaling a linear combination by cc simply scales every weight by cc.

Because every subspace must contain 0\mathbf{0}, a span can never be a line or plane that misses the origin.

4

The geometry of span

The shape of a span is determined by how many independent directions its generating vectors supply.

  • Only the zero vector: Span⁡{0}={0}\operatorname{Span}\{\mathbf{0}\} = \{\mathbf{0}\} — just the origin, a single point.
  • One nonzero vector vv: Span⁡{v}\operatorname{Span}\{v\} is the line through the origin in the direction of vv (all multiples cvc v).
  • Two linearly independent vectors: their span is a plane through the origin.
  • nn linearly independent vectors in Rn\mathbb{R}^n: their span is all of Rn\mathbb{R}^n.

Watch for redundancy: if one vector is just a multiple of another (they are parallel), it adds no new direction, so the two of them together still span only a line. Here "independent" means each new vector points in a genuinely new direction that the others cannot produce.

Definition: Linear Combination

Given vectors v1,…,vk∈Rnv_1, \dots, v_k \in \mathbb{R}^n and scalars c1,…,ck∈Rc_1, \dots, c_k \in \mathbb{R}, the vector c1v1+c2v2+⋯+ckvkc_1 v_1 + c_2 v_2 + \dots + c_k v_k is called a linear combination of v1,…,vkv_1, \dots, v_k with weights c1,…,ckc_1, \dots, c_k.

Intuition. Stretch each vector by a chosen amount and add the pieces. It is the only way to combine vectors using the two legal operations, scalar multiplication and addition.
Definition: Span

Span⁡{v1,…,vk}={ c1v1+⋯+ckvk:c1,…,ck∈R }\operatorname{Span}\{v_1, \dots, v_k\} = \{\, c_1 v_1 + \dots + c_k v_k : c_1, \dots, c_k \in \mathbb{R} \,\} is the set of all linear combinations of v1,…,vkv_1, \dots, v_k.

Intuition. It is every point you can reach by mixing the given vectors with arbitrary real weights — typically a line, a plane, or a higher-dimensional flat passing through the origin.
Span is a Subspace

For any vectors v1,…,vk∈Rnv_1, \dots, v_k \in \mathbb{R}^n, the set Span⁡{v1,…,vk}\operatorname{Span}\{v_1, \dots, v_k\} is a subspace of Rn\mathbb{R}^n: it contains 0\mathbf{0} and is closed under both vector addition and scalar multiplication.

Intuition. Adding or scaling linear combinations just produces more linear combinations, and setting all weights to zero yields the zero vector — so a span satisfies the three subspace rules automatically.

Worked examples

Example 1

Let v1=[12]v_1 = \begin{bmatrix} 1 \\ 2 \end{bmatrix} and v2=[−13]v_2 = \begin{bmatrix} -1 \\ 3 \end{bmatrix}. Compute the linear combination w=2v1−v2w = 2 v_1 - v_2.

  1. 1

    Identify the weights. We are forming 2v1+(−1)v22 v_1 + (-1) v_2, so the weight on v1v_1 is c1=2c_1 = 2 and the weight on v2v_2 is c2=−1c_2 = -1.

  2. 2

    Scale the first vector. 2v1=2[12]=[2⋅12⋅2]=[24]2 v_1 = 2 \begin{bmatrix} 1 \\ 2 \end{bmatrix} = \begin{bmatrix} 2 \cdot 1 \\ 2 \cdot 2 \end{bmatrix} = \begin{bmatrix} 2 \\ 4 \end{bmatrix}.

  3. 3

    Scale the second vector. −v2=−1[−13]=[1−3]-v_2 = -1 \begin{bmatrix} -1 \\ 3 \end{bmatrix} = \begin{bmatrix} 1 \\ -3 \end{bmatrix}.

  4. 4

    Add the scaled vectors component by component. [24]+[1−3]=[2+14+(−3)]=[31]\begin{bmatrix} 2 \\ 4 \end{bmatrix} + \begin{bmatrix} 1 \\ -3 \end{bmatrix} = \begin{bmatrix} 2 + 1 \\ 4 + (-3) \end{bmatrix} = \begin{bmatrix} 3 \\ 1 \end{bmatrix}.

  5. 5

    Interpret. So w=[31]w = \begin{bmatrix} 3 \\ 1 \end{bmatrix}, which is one particular member of Span⁡{v1,v2}\operatorname{Span}\{v_1, v_2\}.

Answer. w=[31]w = \begin{bmatrix} 3 \\ 1 \end{bmatrix}
Example 2

Describe Span⁡{[10],[20]}\operatorname{Span}\left\{ \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \begin{bmatrix} 2 \\ 0 \end{bmatrix} \right\} in R2\mathbb{R}^2 geometrically.

Example 3

Is [123]\begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} in Span⁡{[100],[010]}\operatorname{Span}\left\{ \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix} \right\}?