Linear Combinations and Span

April 13, 2026

Problem

Express the vector [7, 4] as a linear combination of [1, 2] and [3, -1]. Find the scalar coefficients.

Explanation

Linear combination

A linear combination of vectors v1,v2,,vk\mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k is any vector of the form c1v1+c2v2++ckvkc_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \cdots + c_k \mathbf{v}_k

with scalars ciRc_i \in \mathbb{R} (called coefficients). Zero coefficients are allowed.

Span

The span of {v1,,vk}\{\mathbf{v}_1, \ldots, \mathbf{v}_k\} is the set of all linear combinations: Span{v1,,vk}={c1v1++ckvk:ciR}\operatorname{Span}\{\mathbf{v}_1, \ldots, \mathbf{v}_k\} = \{ c_1 \mathbf{v}_1 + \cdots + c_k \mathbf{v}_k : c_i \in \mathbb{R}\}

The span is always a subspace of the ambient vector space (closed under addition and scalar multiplication, and contains 0\mathbf{0} via the zero coefficients).

In R2\mathbb{R}^2:

  • Span of a single non-zero vector: a line through origin.
  • Span of two non-parallel vectors: the whole plane R2\mathbb{R}^2.

Step-by-step — express [7, 4] via [1, 2] and [3, −1]

We want c1,c2Rc_1, c_2 \in \mathbb{R} with c1(12)+c2(31)=(74)c_1 \begin{pmatrix} 1 \\ 2 \end{pmatrix} + c_2 \begin{pmatrix} 3 \\ -1 \end{pmatrix} = \begin{pmatrix} 7 \\ 4 \end{pmatrix}

This is equivalent to the linear system c1+3c2=7(first component)c_1 + 3 c_2 = 7 \quad \text{(first component)} 2c1c2=4(second component)2 c_1 - c_2 = 4 \quad \text{(second component)}

Step 1 — Solve. Multiply the first equation by 2: 2c1+6c2=142 c_1 + 6 c_2 = 14

Subtract the second equation: (2c1+6c2)(2c1c2)=144(2 c_1 + 6 c_2) - (2 c_1 - c_2) = 14 - 4 7c2=10    c2=1077 c_2 = 10 \implies c_2 = \dfrac{10}{7}

Step 2 — Back substitute. c1=73107=49307=197c_1 = 7 - 3 \cdot \dfrac{10}{7} = \dfrac{49 - 30}{7} = \dfrac{19}{7}

Solution: v=197(1,2)+107(3,1)\boxed{\mathbf{v} = \tfrac{19}{7} (1, 2) + \tfrac{10}{7} (3, -1)}.

Verification

197(1,2)+107(3,1)=(19+307,38107)=(7,4)\tfrac{19}{7}(1, 2) + \tfrac{10}{7}(3, -1) = \left(\tfrac{19 + 30}{7}, \tfrac{38 - 10}{7}\right) = (7, 4)

Geometric intuition

Linear combinations are about scaling and adding:

  • c1v1c_1 \mathbf{v}_1: stretch v1\mathbf{v}_1 by factor c1c_1.
  • c1v1+c2v2c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2: translate the tip of c1v1c_1 \mathbf{v}_1 by c2v2c_2 \mathbf{v}_2.

In this example, we're reaching (7,4)(7, 4) by walking 19/719/7 steps in the (1,2)(1, 2) direction, then 10/710/7 steps in the (3,1)(3, -1) direction.

When span is everything

Two vectors in R2\mathbb{R}^2 span R2\mathbb{R}^2 if and only if they are not parallel. For (1,2)(1, 2) and (3,1)(3, -1): are they parallel? Ratio check: 1/32/11/3 \ne 2/-1, so non-parallel. Their span is the entire plane — which is why we could represent any target vector, including (7,4)(7, 4), as a linear combination.

If instead we tried v1=(1,2)\mathbf{v}_1 = (1, 2) and v2=(2,4)\mathbf{v}_2 = (2, 4) (parallel), their span would be just the line y=2xy = 2x, and only points on that line would be reachable.

Common mistakes

  • Assuming the combination is always unique. If the vectors span but are redundant (e.g. three vectors in R2\mathbb{R}^2), the coefficients are not unique — there are infinitely many.
  • Forgetting the span must contain the zero vector. It does, using all coefficients equal to zero.
  • Treating "linear combination" as just adding vectors. It's scaling then adding — the scalars matter.

Try it in the visualization

Sliders for c1,c2c_1, c_2 build up the linear combination c1v1+c2v2c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 step by step. The tip traces out the span as you sweep through values, revealing a line (one vector) or plane (two non-parallel vectors).

Interactive Visualization

Parameters

1.00
2.00
3.00
-1.00
2.71
1.43
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Linear Combinations and Span | MathSpin