5 Vector Spaces

A structured guide to vector spaces, subspaces, spans, independence, bases, dimension, and coordinates, with definitions, tests, examples, and a unified problem-solving workflow.

Foundations and Examples

A is an abstract setting in which vectors can be added and multiplied by scalars while obeying familiar algebraic laws. These objects need not look like geometric arrows. Common examples include:

  • Rn\mathbb{R}^n, the set of real nn-tuples;

  • PnP_n, the real polynomials of degree at most nn;

  • the set of all m×nm\times n real matrices;

  • real-valued functions on a fixed domain; and

  • solution sets of homogeneous linear differential equations.

For example, every element of P2P_2 can be written as

p(x)=a+bx+cx2,p(x)=a+bx+cx^2,

where a,b,c∈Ra,b,c\in\mathbb{R}. Adding two such polynomials or multiplying one by a scalar still produces a polynomial in P2P_2.

The axioms ensure that there is a zero vector, every vector has an additive inverse, addition is commutative and associative, and scalar multiplication distributes over addition. The key perspective is that the nature of the objects is less important than the linear operations they support.

Takeaway: Vector-space methods apply to many kinds of mathematical objects, not only numerical tuples.

Testing Subspaces

A subset becomes a when it is itself a under the operations inherited from the larger space. A practical test is:

  1. Confirm that the subset is nonempty.

  2. For all u,vu,v in the subset and all scalars c,dc,d, verify that cu+dvcu+dv remains in the subset.

This single closure condition guarantees the zero vector and additive inverses as well as closure under addition and scalar multiplication.

Consider

W={(x,y,z)∈R3:x+y+z=0}.W=\{(x,y,z)\in\mathbb{R}^3:x+y+z=0\}.

If uu and vv satisfy the equation, then

(cu+dv)1+(cu+dv)2+(cu+dv)3=c(u1+u2+u3)+d(v1+v2+v3)=0.(cu+dv)_1+(cu+dv)_2+(cu+dv)_3 =c(u_1+u_2+u_3)+d(v_1+v_2+v_3)=0.

Thus WW is closed under linear combinations. Solving for zz gives

(x,y,z)=(x,y,−x−y)=x(1,0,−1)+y(0,1,−1),(x,y,z)=(x,y,-x-y)=x(1,0,-1)+y(0,1,-1),

so the set can also be described using two generating vectors.

By contrast,

{(x,y,z)∈R3:x+y+z=1}\{(x,y,z)\in\mathbb{R}^3:x+y+z=1\}

is not a because it does not contain (0,0,0)(0,0,0), and scalar multiplication does not preserve the defining equation.

Takeaway: Homogeneous linear conditions typically define subspaces; a nonzero constant on the right-hand side usually prevents a set from being a .

Building Spaces with Spans

A is formed by multiplying given vectors by scalars and adding the results. For vectors v1,…,vkv_1,\ldots,v_k, their is

span⁡{v1,…,vk}={c1v1+⋯+ckvk:c1,…,ck are scalars}.\operatorname{span}\{v_1,\ldots,v_k\} =\{c_1v_1+\cdots+c_kv_k:c_1,\ldots,c_k\text{ are scalars}\}.

To determine whether a vector ww belongs to a , solve the coefficient equation

c1v1+⋯+ckvk=w.c_1v_1+\cdots+c_kv_k=w.

For example, let

v1=(1,2,0),v2=(0,1,1).v_1=(1,2,0),\qquad v_2=(0,1,1).

Then

av1+bv2=(a,2a+b,b),a v_1+b v_2=(a,2a+b,b),

so every vector in the satisfies

x−2y+2z=0.x-2y+2z=0.

Indeed, (3,8,2)=3v1+2v2(3,8,2)=3v_1+2v_2, so it belongs to the . To test another vector, substitute its coordinates into the equation or solve directly for aa and bb.

The of any set is a because sums of linear combinations are still linear combinations, and scalar multiples of linear combinations are also linear combinations.

Takeaway: Spanning asks which vectors can be constructed from a given collection; membership is decided by solving a equation.

Recognizing Independence

A set is when the only way to produce the zero vector from its vectors is to use all zero coefficients:

c1v1+⋯+ckvk=0⟹c1=⋯=ck=0.c_1v_1+\cdots+c_kv_k=0 \quad\Longrightarrow\quad c_1=\cdots=c_k=0.

If a nonzero coefficient choice produces the zero vector, the set is dependent. Dependence means that at least one vector is redundant and can be written as a of the others.

For example,

v1=(1,2,3),v2=(2,4,6)v_1=(1,2,3),\qquad v_2=(2,4,6)

are dependent because

2v1−v2=0.2v_1-v_2=0.

The standard vectors e1=(1,0)e_1=(1,0) and e2=(0,1)e_2=(0,1) are independent: if

c1e1+c2e2=(0,0),c_1e_1+c_2e_2=(0,0),

then both coefficients must be zero.

Useful consequences include:

  • Any set containing the zero vector is dependent.

  • Any subset of an independent set is independent.

  • Any set with more than nn vectors in Rn\mathbb{R}^n is dependent.

  • In a matrix whose columns are the vectors, independence is equivalent to having a pivot in every column after row reduction.

Takeaway: Independence measures whether a collection contains redundancy.

Constructing Bases

A combines the two central requirements: it spans the space and is . Therefore, a generates every vector without redundancy, and every vector has exactly one representation as a of the vectors.

The standard of R3\mathbb{R}^3 is

E={(1,0,0),(0,1,0),(0,0,1)}.\mathcal{E}=\{(1,0,0),(0,1,0),(0,0,1)\}.

Every vector satisfies

(x,y,z)=x(1,0,0)+y(0,1,0)+z(0,0,1).(x,y,z)=x(1,0,0)+y(0,1,0)+z(0,0,1).

The polynomial space P2P_2 has {1,x,x2}\{1,x,x^2\}, because every polynomial a+bx+cx2a+bx+cx^2 is generated by these elements and the only polynomial identity

a+bx+cx2=0a+bx+cx^2=0

for every xx has a=b=c=0a=b=c=0.

To extract a from a spanning set, remove redundant vectors until the remaining vectors are independent. In a matrix calculation, row reduction identifies pivot columns. The corresponding columns of the original matrix, not merely the columns of the row-reduced matrix, form a for the column space.

For

A=[101011112],A=\begin{bmatrix}1&0&1\\0&1&1\\1&1&2\end{bmatrix},

the third column is the sum of the first two, so the first and second columns form a for the column space.

Takeaway: A is an efficient generating system: enough vectors to , but no redundant vectors.

Measuring

counts the number of vectors in a . The fact that every of a finite-dimensional has the same number of vectors makes well-defined.

Important examples are

dim⁡(Rn)=n,dim⁡(Pn)=n+1,dim⁡(Mm×n)=mn.\dim(\mathbb{R}^n)=n, \qquad \dim(P_n)=n+1, \qquad \dim(M_{m\times n})=mn.

For instance, the four matrix units form a of M2×2M_{2\times 2}, so

dim⁡(M2×2)=4.\dim(M_{2\times 2})=4.

If VV has nn, then:

  • every independent set in VV has at most nn vectors;

  • every spanning set for VV has at least nn vectors;

  • any set of exactly nn independent vectors is a ; and

  • any set of exactly nn vectors that spans VV is a .

The zero {0}\{0\} has 00, with the empty set as its .

Takeaway: Once the is known, the number of vectors in a candidate set can quickly reveal whether it could be a .

Coordinates in a Chosen

Let B={v1,v2,…,vn}\mathcal{B}=\{v_1,v_2,\ldots,v_n\} be an ordered . Every vector vv has a unique expression

v=c1v1+c2v2+⋯+cnvn.v=c_1v_1+c_2v_2+\cdots+c_nv_n.

Its relative to B\mathcal{B} is

[v]B=[c1c2⋮cn].[v]_{\mathcal{B}}= \begin{bmatrix} c_1\\c_2\\\vdots\\c_n \end{bmatrix}.

For the

B={(1,1),(1,−1)}\mathcal{B}=\{(1,1),(1,-1)\}

and the vector w=(5,1)w=(5,1), solve

c1(1,1)+c2(1,−1)=(5,1).c_1(1,1)+c_2(1,-1)=(5,1).

The resulting equations are

c1+c2=5,c1−c2=1.c_1+c_2=5, \qquad c_1-c_2=1.

Therefore, c1=3c_1=3 and c2=2c_2=2, so

[w]B=[32].[w]_{\mathcal{B}}=\begin{bmatrix}3\\2\end{bmatrix}.

The is not the original vector; it is the list of coefficients used with the chosen ordered . If the vectors are placed as columns of

PB=[v1v2⋯vn],P_{\mathcal{B}}=\begin{bmatrix}v_1&v_2&\cdots&v_n\end{bmatrix},

then

v=PB[v]B.v=P_{\mathcal{B}}[v]_{\mathcal{B}}.

For a of Rn\mathbb{R}^n, the matrix is invertible and

[v]B=PB−1v.[v]_{\mathcal{B}}=P_{\mathcal{B}}^{-1}v.

Takeaway: To find coordinates, express the vector as a of the ordered and record the coefficients in the same order.

An Integrated Problem-Solving Workflow

The concepts fit together as a systematic workflow for analyzing a or a generated set:

  1. Describe the vectors using equations or parameters.

  2. Rewrite a general vector as a of parameter vectors.

  3. Use those parameter vectors as candidate vectors.

  4. Check that they are .

  5. Count them to obtain the .

  6. Solve a coefficient equation to find coordinates relative to the resulting .

For example, consider

W={(x,y,z,w)∈R4:x+y+z+w=0}.W=\{(x,y,z,w)\in\mathbb{R}^4:x+y+z+w=0\}.

Solving for ww gives w=−x−y−zw=-x-y-z, so

(x,y,z,w)=x(1,0,0,−1)+y(0,1,0,−1)+z(0,0,1,−1).(x,y,z,w) =x(1,0,0,-1)+y(0,1,0,-1)+z(0,0,1,-1).

Thus

W=span⁡{(1,0,0,−1),(0,1,0,−1),(0,0,1,−1)}.W=\operatorname{span}\{(1,0,0,-1),(0,1,0,-1),(0,0,1,-1)\}.

The three vectors are independent because the first three coordinates force all coefficients to be zero in any equal to the zero vector. They therefore form a , and

dim⁡W=3.\dim W=3.

For u=(2,−1,4,−5)u=(2,-1,4,-5), the coordinates relative to this are immediately visible:

[u]B=[2−14].[u]_{\mathcal{B}}=\begin{bmatrix}2\\-1\\4\end{bmatrix}.

Final checklist: distinguish the space from its subsets, test closure for subspaces, solve coefficient equations for spans and coordinates, test the zero relation for independence, and use spanning plus independence to establish a .