# Spanning sets

A linear combination is an expression of one vector in terms of other vectors. In general, linear combinations take the form

$v→=a1u→1+a2u→2+⋯+anu→n.$

In ${ℝ}^{2}\text{,}$ we know that all vectors can be expressed in terms of the standard basis vectors $i^$ and $j^.$ There are a few ways we can describe these two vectors: we can say $i^$ and $j^$ are a basis for ${ℝ}^{2}$; we can say ${i^,j^}$ form a spanning set for ${ℝ}^{2}$; and we can say that ${i^,j^}$ spans ${ℝ}^{2}\text{.}$ They all mean the same thing—namely, that you can represent all possible vectors in ${ℝ}^{2}$ with linear combinations of $i^$ and $j^.$

In this case, we have an orthogonal basis because $i^$ and $j^$ are perpendicular (orthogonal is another way of saying perpendicular, but it is a bit more general). However, this is not a requirement for all spanning sets. There is only one requirement for a pair of two vectors to span ${ℝ}^{2}$: they must be nonzero and non-collinear. (Two vectors are collinear if they are parallel or antiparallel.) The zero restriction is fairly obvious. But why can’t they be collinear? Just try imaging it. If two vectors have the same direction or opposite directions, you are locked onto a line. There is no way you can move outside it. But if the directions differ even by just a billionth of a degree, you have a spanning set and you are free to roam anywhere you please on the Cartesian plane.

There are also spanning sets in ${ℝ}^{3}\text{.}$ A triplet of three-component vectors forms a basis for ${ℝ}^{3}$ if they are nonzero and non-coplanar. What does coplanar mean? Head on over to the next section.

## Example

Express the vector $\left[6,7\right]$ in terms of the spanning set $\left\{\left[10,5\right],\left[-2,1\right]\right\}\text{.}$

Referring to the definition of a linear combination, we can write an equation with unknown coefficients $a$ and $b$:

$\left[6,7\right]=a\left[10,5\right]+b\left[-2,1\right]\text{.}$

We can unpack this into two equations—one for each component:

$6=10a-2b$ and $7=5a+b\text{.}$

Solving by elimination tells us that $a=1$ and $b=2\text{,}$ therefore

$\left[6,7\right]=\left[10,5\right]+2\left[-2,1\right]\text{.}$

This works the same way in ${ℝ}^{3}$ (three variables, three equations).