1. Home
  2. Explore
  3. Mathematics
  4. Linear Combinations of Vectors

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Linear Combinations of Vectors

Linear Combinations and Span

Linear combinations

A linear combination of vectors is formed by multiplying each vector by a real-number coefficient and then adding the results. For vectors v1,v2,…,vnv_1, v_2, \ldots, v_nv1​,v2​,…,vn​ in Rn\mathbb{R}^nRn, a linear combination has the form

c1v1+c2v2+⋯+cnvn,c_1v_1+c_2v_2+\cdots+c_nv_n,c1​v1​+c2​v2​+⋯+cn​vn​,

where each coefficient cic_ici​ is a real number. The vectors can belong to any real vector space; Rn\mathbb{R}^nRn is a common example.

The operation is called linear because it uses only scalar multiplication and vector addition. It does not involve multiplying vectors by one another or raising vectors to powers.

Example with two vectors

Let

a=(12),b=(03).a=\begin{pmatrix}1\\2\end{pmatrix}, \qquad b=\begin{pmatrix}0\\3\end{pmatrix}.a=(12​),b=(03​).

A linear combination of aaa and bbb is any vector of the form c1a+c2bc_1a+c_2bc1​a+c2​b, where c1c_1c1​ and c2c_2c2​ are real numbers.

  • Choosing both coefficients to be zero gives the zero vector:

    0a+0b=(00).0a+0b=\begin{pmatrix}0\\0\end{pmatrix}.0a+0b=(00​).
  • Choosing coefficients 333 and −2-2−2 gives:

    3a−2b=3(12)−2(03)=(36)−(06)=(30).3a-2b =3\begin{pmatrix}1\\2\end{pmatrix} -2\begin{pmatrix}0\\3\end{pmatrix} =\begin{pmatrix}3\\6\end{pmatrix} -\begin{pmatrix}0\\6\end{pmatrix} =\begin{pmatrix}3\\0\end{pmatrix}.3a−2b=3(12​)−2(03​)=(36​)−(06​)=(30​).

Negative and fractional coefficients are valid. For instance, −23b-\frac{2}{3}b−32​b is a scalar multiple of bbb, just as 3a3a3a is a scalar multiple of aaa. If another vector ccc is included, a linear combination can also include a term such as 8c8c8c.


The span of a set of vectors

The span of a set of vectors is the set of every vector that can be made from their linear combinations. For v1,…,vnv_1,\ldots,v_nv1​,…,vn​,

span⁡{v1,…,vn}={c1v1+⋯+cnvn  |  c1,…,cn∈R}.\operatorname{span}\{v_1,\ldots,v_n\} = \left\{ c_1v_1+\cdots+c_nv_n \;\middle|\; c_1,\ldots,c_n\in\mathbb{R} \right\}.span{v1​,…,vn​}={c1​v1​+⋯+cn​vn​∣c1​,…,cn​∈R}.

In other words, the span describes all the destinations that can be reached by scaling the given vectors and adding them together. Whether a set of vectors spans a space depends on the vectors themselves: some sets generate an entire space, while others generate only a line or a single point.

Geometric interpretation in R2\mathbb{R}^2R2

The vectors a=(1,2)a=(1,2)a=(1,2) and b=(0,3)b=(0,3)b=(0,3) point in different directions. Their linear combinations can reach every point in the plane:

  • Scaling aaa by different amounts gives vectors along the line through aaa.

  • Adding scaled versions of bbb shifts those vectors vertically, since bbb has no horizontal component.

  • Together, these choices allow the horizontal and vertical coordinates to be adjusted to reach any point in R2\mathbb{R}^2R2.

Thus,

span⁡{a,b}=R2.\operatorname{span}\{a,b\}=\mathbb{R}^2.span{a,b}=R2.

A geometric construction can help visualize how scaling and adding vectors produces new vectors.

When two vectors do not span R2\mathbb{R}^2R2

Consider instead

a=(22),b=(−2−2).a=\begin{pmatrix}2\\2\end{pmatrix}, \qquad b=\begin{pmatrix}-2\\-2\end{pmatrix}.a=(22​),b=(−2−2​).

Here, b=−ab=-ab=−a, so both vectors lie along the same line. Any linear combination is

c1a+c2b=c1a−c2a=(c1−c2)a.c_1a+c_2b =c_1a-c_2a =(c_1-c_2)a.c1​a+c2​b=c1​a−c2​a=(c1​−c2​)a.

Every result remains on the line through aaa and bbb. The vectors can generate any vector on that line, but cannot generate a vector outside it. Therefore, their span is a line, not all of R2\mathbb{R}^2R2.

The key distinction is direction: two vectors pointing along the same line cannot provide the freedom needed to reach every point in the plane.


Special cases of span

The span of the zero vector

The zero vector is 0=(0,0)\mathbf{0}=(0,0)0=(0,0). Every scalar multiple of it is still the zero vector:

c0=0for every c∈R.c\mathbf{0}=\mathbf{0} \qquad\text{for every }c\in\mathbb{R}.c0=0for every c∈R.

Consequently,

span⁡{0}={0}.\operatorname{span}\{\mathbf{0}\}=\{\mathbf{0}\}.span{0}={0}.

The span contains only the zero vector.

The span of one nonzero vector

For a single vector aaa, its span consists of all scalar multiples of aaa:

span⁡{a}={ca∣c∈R}.\operatorname{span}\{a\}=\{ca\mid c\in\mathbb{R}\}.span{a}={ca∣c∈R}.

In R2\mathbb{R}^2R2, if aaa is nonzero, those multiples form the line through the origin in the direction of aaa. Scaling by a positive number moves along the same direction, scaling by a negative number moves in the opposite direction, and scaling by zero gives the zero vector.


The standard basis vectors in R2\mathbb{R}^2R2

Two familiar vectors in the plane are the unit vectors

i=(10),j=(01).i=\begin{pmatrix}1\\0\end{pmatrix}, \qquad j=\begin{pmatrix}0\\1\end{pmatrix}.i=(10​),j=(01​).

They point along the horizontal and vertical axes and are orthogonal, meaning they meet at a right angle. Any vector (x1,x2)(x_1,x_2)(x1​,x2​) in R2\mathbb{R}^2R2 can be written as

(x1x2)=x1(10)+x2(01).\begin{pmatrix}x_1\\x_2\end{pmatrix} = x_1\begin{pmatrix}1\\0\end{pmatrix} + x_2\begin{pmatrix}0\\1\end{pmatrix}.(x1​x2​​)=x1​(10​)+x2​(01​).

Thus, iii and jjj span R2\mathbb{R}^2R2. A set of vectors that spans a space and satisfies additional conditions is called a basis; iii and jjj form the standard basis for R2\mathbb{R}^2R2. Orthogonality makes these vectors especially convenient, though it is not required for a pair of vectors to span the plane.


Algebraically verifying that two vectors span R2\mathbb{R}^2R2

For

a=(12),b=(03),a=\begin{pmatrix}1\\2\end{pmatrix}, \qquad b=\begin{pmatrix}0\\3\end{pmatrix},a=(12​),b=(03​),

to show that they span R2\mathbb{R}^2R2, consider an arbitrary target vector

x=(x1x2).x=\begin{pmatrix}x_1\\x_2\end{pmatrix}.x=(x1​x2​​).

The coordinates x1x_1x1​ and x2x_2x2​ can be any real numbers. The goal is to find coefficients c1c_1c1​ and c2c_2c2​ such that

c1a+c2b=x.c_1a+c_2b=x.c1​a+c2​b=x.

Substituting the vectors gives

c1(12)+c2(03)=(x1x2).c_1\begin{pmatrix}1\\2\end{pmatrix} + c_2\begin{pmatrix}0\\3\end{pmatrix} = \begin{pmatrix}x_1\\x_2\end{pmatrix}.c1​(12​)+c2​(03​)=(x1​x2​​).

Equating coordinates produces the system

c1=x1,2c1+3c2=x2.\begin{aligned} c_1 &= x_1,\\ 2c_1+3c_2 &= x_2. \end{aligned}c1​2c1​+3c2​​=x1​,=x2​.​

The first equation gives c1=x1c_1=x_1c1​=x1​. Substituting that into the second equation gives

c2=x2−2x13.c_2=\frac{x_2-2x_1}{3}.c2​=3x2​−2x1​​.

These coefficients exist for every real pair (x1,x2)(x_1,x_2)(x1​,x2​). Therefore, every vector in R2\mathbb{R}^2R2 can be expressed as a linear combination of aaa and bbb, proving that

span⁡{a,b}=R2.\operatorname{span}\{a,b\}=\mathbb{R}^2.span{a,b}=R2.

Example: expressing (2,2)(2,2)(2,2)

For x=(2,2)x=(2,2)x=(2,2), the coefficient formulas give

c1=2,c2=2−2(2)3=−23.c_1=2, \qquad c_2=\frac{2-2(2)}{3}=-\frac{2}{3}.c1​=2,c2​=32−2(2)​=−32​.

Hence,

(22)=2(12)−23(03).\begin{pmatrix}2\\2\end{pmatrix} = 2\begin{pmatrix}1\\2\end{pmatrix} -\frac{2}{3}\begin{pmatrix}0\\3\end{pmatrix}.(22​)=2(12​)−32​(03​).

This verifies directly that the target vector is a linear combination of aaa and bbb.


Key ideas

  • A linear combination uses real-number coefficients to scale vectors and then add them.

  • The span is the set of all vectors obtainable as linear combinations of a given set.

  • The zero vector spans only itself; one nonzero vector in R2\mathbb{R}^2R2 spans a line through the origin.

  • Two vectors along the same line still span only that line. Two appropriately directed, non-collinear vectors can span all of R2\mathbb{R}^2R2.

  • To prove that vectors span a space algebraically, set a general linear combination equal to an arbitrary target vector and check whether coefficients can be found for every target.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent