2. VECTOR SPACES

This chapter introduces the underlying algebraic structure of linear algebra – that of a finite dimensional vector space. The definition of a vector space involves an arbitrary field whose elements are called scalars. The following notation will be used (unless otherwise stated or implied):

𝕂

the field of scalars

a, b, c, …

the elements of 𝕂

V

the given vector space

u, v, w

the elements of V

Nothing essential is lost if the reader assumes that 𝕂 is the real field ℝ or the complex field ℂ.

2.1 Vector spaces and subspaces

The following defines the notion of vector space or linear space.

Definition 2.1

Let 𝕂 be a given field (ℝ or ℂ) and let V be a non empty set with rules of addition, and scalar multiplication which assigns to any u, vV a sum u + vV and to any uV and scalar k ∈ 𝕂 a product kuV. Then V is called a vector space over 𝕂 (and the elements of V are called vectors) if the following axioms hold:

(A1) For any vectors u, v, wV, (u + v) + w = u + (v + w).

(A2) There is a vector in V, denoted by 0 and called the zero vector, for which u+0 = u for any vector uV.

(A3) For each vector uV there is a vector in V, denoted by -u, for which u+(-u) = 0.

(A4) For any vectors u, vV, u + v = v + u.

(M1) For any scalar k ∈ 𝕂 and any vectors u, vV, k (u + v) = k u + k v.

(M2) For any scalars a, b ∈ 𝕂 and any vector uV, (a + b) u = a u + b u.

(M3) For any scalars a, b ∈ 𝕂 and any vector uV, (ab) u = a (b u).

(M4) For the unit scalar 1 ∈ 𝕂, 1 u = u for any vector uV.

The above axioms naturally split into two sets. The first four are only concerned with the additive structure of V. From these four axioms it follows that any sum of vectors of the form

v1 + v2 + … + vm

requires no parentheses and does not depend upon the order of the summands.

Theorem 2.1

For any vector space V,

a. The zero vector 0V is unique.

b. For any vector uV, the additive inverse -uV is unique.

c. For any vectors u, v, wV, if u + w = v + w then u = v.

Proof. a. Suppose that 0^V is a vector for which u+0^=u for any vector uV. Then,

0^=0^+0=0

(by A2)

= 0 (by the definition of 0^).

Since 0^=0, the zero vector is unique.

b. Given a vector uV, let wV be a vector for which u + w = 0. Then,

w=w+0=w+[u+(u)]=[w+u]+(u)=0+(u)=u

(by A2)

(by A3)

(by A1)

(by the definition of w)

(by A2).

Since w = -u, the negative of u is unique.

c. For any vectors u, v, wV, such that u + w = v + w then

u=u+0=u+[w+(w)]=[u+w]+(w)=[v+w]+(w)=v+[w+(w)]=v+0=v

(by A2)

(by A3)

(by A1)

(by u + w = v + w)

(by A1)

(by A3)

(by A2).

Therefore, u + w = v + w implies u = v.

Also, subtraction is defined by

uv = u + (−v).

On the other hand, the remaining four axioms are concerned with the “action” of the field 𝕂 on V. Observe that the labelling of the axioms reflects this splitting. Using these additional axioms we prove the following simple properties of a vector space.

Theorem 2.2

Let V be a vector space over a field K.

a. For any scalar k ∈ K and 0V, k 0 = 0.

b. For 0 ∈ K and any vector uV, then 0 u = 0.

c. For any k ∈ K and any uV, (-k) u = k (-u) = -(k u).

Proof. a. We compute:

k0 + 0 = k0 = k (0 + 0) = k0 + k0.

But k 0 + 0 = k 0 + k0 implies k 0 = 0 (Theorem 2.1 part c).

b. Similarly, for any vector uV,

0u + 0 = 0u = (0 + 0) u = 0u + 0u,

which implies 0 u = 0.

c. On one hand, for any k ∈ K and any uV,

(-k) u = (-k) u + ku - (ku) = (-k + k) u - (ku) = 0u - (ku) = -(k u).

Therefore, (-k) u = -(k u). On the other hand,

k (-u) = k (-u) + ku - (ku) = k (u - u) - (ku) = k0 - (ku) = -(k u).

Therefore, k (-u) = -(k u).

Observe that when k = 1 in part c of the previous theorem, we have -u = (-1) u for each uV. That is, multiplying u by -1 produces its additive inverse.

Now we list a number of important examples of vector spaces which will be used throughout this course.

Example 2.1

Let 𝕂 be an arbitrary field. The notation 𝕂n is frequently used to denote the set of all column matrices with n rows and entries which are elements in 𝕂. Here 𝕂n is viewed as a vector space over 𝕂 where vector addition and scalar multiplication defined by

[a1a2an]+[b1b2bn]=[a1+b1a2+b2an+bn]

and

k[a1a2an]=[kka1][a2kan].

The zero vector in 𝕂n is

0=[000]

and the inverse of a vector is defined by

[a1a2an]=[a1a2an].

The proof that 𝕂n is a vector space is left to the reader, so we now regard as stating that ℝn with the usual operations is a vector space over ℝ.

Example 2.2

The notation Mm,n, or simply M, will be used to denote the set of all m × n matrices over an arbitrary field 𝕂. Then Mm,n is a vector space over 𝕂 with respect to the usual operations of matrix addition and scalar multiplication.

Example 2.3

Let P denote the set of all polynomials

a0 + a1 t + a2 t + … + an tn, n = 0, 1, 2, 3, ,

with coefficients ai is some field 𝕂. Then P is a vector space over 𝕂 with respect to the usual operations of addition of polynomials and multiplication of polynomials by constants.

Example 2.4

Let X be any non empty set and let 𝕂 be an arbitrary field 𝕂. Consider the set F(X) of all functions from X into 𝕂. The sum of two functions f, gF(X) is the function f + gF(X) defined by

(f + g)(x) = f (x) + g(x), ∀xX,

and the product of a scalar k ∈ 𝕂 and a function fF(X) is the function k fF(X) defined by

(kf)(x) = k f (x), ∀xX.

Then F(X) with the above operations is a vector space over 𝕂.

The zero vector in F(X) is the zero function 0 which maps each xX into 0 ∈ 𝕂, that is,

0(x) = 0, ∀xX.

Also, for any function fF(X), the function -f defined by

(-f)(x) = -f (x), ∀xX,

is the additive inverse of the function f.

Let W be a subset of a vector space V over a field 𝕂. Then W is called a subspace of V if W is itself a vector space over 𝕂 with respect to the operations of vector addition and scalar multiplication on V. Simple criteria for identifying subspaces follow.

Theorem 2.3

Suppose that W is a subset of a vector space V. Then W is a subspace of V if and only if the following hold:

a. 0W

b. W is closed under vector addition, that is:

For every u, vW, the sum u + vW.

c. W is closed under scalar multiplication, that is:

For every uW, k ∈ 𝕂, the product k uW.

Conditions b and c may be combined into one condition.

Corollary 2.1

W is a subspace if and only if

a. 0W

b. W is closed under linear combinations, that is:

a u + bvW for every u, vW and a, b ∈ K.

Example 2.5

Let V be any vector space. Then the set {0} consisting of the zero vector alone, and also the entire space V are subspaces of V.

Example 2.6

Let W be the set of vectors in ℝ3 consisting of those vectors whose third component is 0; or, in other words

W={[ab0]:a,b,R}.

Notice that 0W. Further, for any vectors

[ab0],[cd0]W,

and scalars r, s ∈ ℝ, we have

r[ab0]+s[cd0]=[ra+scrb+sd0]W.

Thus W is a subspace of ℝ3.

Example 2.7

Let V = Mn,n, the space of n × n matrices. Then the subset W1 of (upper) triangular matrices and the subset W2 of matrices satisfying A = A, called the set of symmetric matrices, are subspaces of V since they are non empty and closed under linear combinations.

Example 2.8

Recall that P denotes the vector space of polynomials. Let Pn denote the subset of P that consists of all polynomials of degree ≤ n, for a fixed n. Then Pn is a subspace of P.

Recall that any solution of a homogeneous system Ax = 0 is an element of ℝn. Thus, the solution set of Ax = 0 is a subset of ℝn.

Theorem 2.4

The solution set W of a homogeneous system Ax = 0 in n unknowns is a subset of Rn.

Proof. First, 0W because 0 is always a solution of a homogeneous system: A 0 = 0.

Next we show that W is closed under linear combinations. So let u, vW and a, b ∈ ℝ. Since u and v are solutions of the homogeneous system, we have A u = 0 and A v = 0. Moreover,

A(au + bv) = aAu + bAv = a0 + b0 = 0.

Consequently, a u + b v is a solution of the homogeneous solution and, thus, a u + b vW.

2.2 Linear combinations and spans

Let V be a vector space over a field 𝕂 and let v1, …, vmV. Any vector in V of the form

a1 v1 + a2 v2 + … + am vm

where ai ∈ 𝕂, is called a linear combination of v1, …, vm. The set of all such linear combinations, denoted by

Span{v1, …, vm},

is called the span of v1, …, vm.

Generally, for any subset S of V, Span S = {0} when S is empty and Span S consists of all the linear combinations of vectors in S.

Theorem 2.5

If v1, …, vmV then Span{v1, …, vm} is a subspace of V.

Proof. Since 0V can be written as a linear combination of v1, …, vm:

0 = 0v1 + … + 0vn,

then 0 ∈ Span{v1, …, vm}. To show that Span{v1, …, vm} is closed under linear combinations, choose any two vectors u, v ∈ Span{v1, …, vm}. Therefore,

u = a1v1 + a2v2 + … + amvm,
v = b1v1 + b2v2 + … + bmvm,

for some scalars ai, bi ∈ 𝕂. Then, for any r, s ∈ 𝕂,

ru+sv=r(a1v1+a2v2++amvm)+s(=b1v1+b2v2++bmvm)=(ra1+sb1)v1+(ra2+sb2)v2++(ram+sbm)vm

Then r u + s v is a linear combination of the vectors v1, …, vm, and, consequently, r u + s v ∈ Span{v1, …, vm}.

On the other hand, given a vector space V, the vectors u1, u2, …, ur are said to span or generate or to form a generating set of V if

V = Span{u1, u2, …, ur}.

In other words, u1, u2, …, ur span V if, for every vV, there are scalars a1, a2, …, ar such that

v = a1u1 + a2u2 + … + arur,

that is, if v is a linear combination of u1, u2, …, ur.

Example 2.9

Let

H={[a3bbaab]:a,bR}.

Show that H is a subspace of ℝ4.

In light of Theorem 2.5, if we can write H as the span of a set of vectors, then we can conclude that H is a subspace of ℝ4. Hence, write a generic element of H as a linear combination of vectors:

[a3bbaab]=a[1110]+b[3101],a,bR.

This means that a generic element of H can always be expressed as a linear combination of the two vectors on the right. Therefore,

H=Span{[1110],[3101]}.

So H is a subspace by Theorem 2.5.

Example 2.10

For what value(s) of h will the polynomial q(t) be in the subspace of P2 spanned by p1 (t), p2 (t), p3(t), if

p1(t)=1t2t2,p2(t)=54t7t2,p3(t)=3+t,q(t)=4+3t+ht2

The polynomial q(t) is in the subspace spanned by p1 (t), p2(t), p3 (t) if and only if there are scalars a1, a2, a3 ∈ ℝ such that

q(t) = a1 p1 (t) + a2 p2 (t) + a2p3(t).

The above equality holds if and only if the coefficients multiplying 1, t, and t2, respectively, on the left side of the equation are equal to the corresponding coefficients on the right side. Therefore, comparing the corresponding coefficients we get,

1:4=a1+5a23a3t:3=a14a2+a3t2:h=2a17a2+0a3

or, in vector form,

[153141270][a1a2a3]=[43h].

We study the solution set of this equation by reducing the augmented matrix to its row reduced echelon form:

[15341413270h][15340121036h8][10710121000h5].

Observe that the third row in the last matrix corresponds to the degenerate equation 0 = h - 5, which has a solution if and only if h = 5. Therefore, q(t) ∈ Span{p1 (t), p2(t), p3(t)} if and only if h = 5.

2.3 Null space and column space of a matrix

There are two important subspaces associated with any m × n matrix A. In this section, we introduce both of these subspaces and study some of their properties.

Definition 2.2

The null space of an m × n matrix A, written as NulA, is the set of all solutions of the homogeneous equation A x = 0. In set notation,

NulA = {x ∈ ℝn : Ax= 0}.

A more dynamic description of NulA is the set of all x ∈ ℝn that are annihilated by A in the sense that each x ∈ NulA is “transformed” into the zero vector.

The term space in null space is appropriate because the null space of an m × n matrix is a vector subspace of ℝn. This is a direct consequence of Theorem 2.4.

Example 2.11

Let H be the set of all vectors in R4 whose coordinates a, b, c, d satisfy the equations

a - 2b + 5c - d = 0,
-a - b + c = 0.

In other words, each element x of H satisfies the homogeneous equation

[12511b10]x=0

So by the definition of the null space of a matrix, we have the following expression of H :

H=Nul[12511b10].

Example 2.12

Find a generating set for the null space of the matrix

A=[361171223124584].

The first step is to find the general solution of the homogeneous equation A x = 0. So we reduce the augmented matrix to its row reduced echelon form:

[A0][120130001220000000].

Then, the solution set of A x = 0 is the same as the solution set of the simpler system

x12x2x4+3x5=0,x3+2x42x5=0,0=0,

with free variables x2, x4, x5. If we write the leading variables in terms of the free variables, then we can express the general solution of A x = 0 as:

[x1x2x3x4x5]=[2a+b3ca2b+2cbc]=a[21000]+b[10210]+c[30201].

This means that every solution of the homogeneous equation can be expressed as a linear combination of the three vectors on the right. Then, the generating set of NulA is

{[21000],[10210],[30201]}.

Using the notation of this and the previous section, we may write

NulA=Span{[21000],[10210],[30201]}.

Observation 2.1

The thoughtful reader would observe that the number of non zero vectors in the generating set of NulA equals the number of free variables in the system A x = 0.

Another important subspace associated with a matrix is its column space. Unlike the null space, the column space is defined explicitly via linear combinations.

Definition 2.3

The column space of an m × n matrix A, written as ColA, is the set of all linear combinations of the columns of A. If A = [a1an], then

ColA = Span{a1, …, an}.

The fact that ColA is a subspace of ℝm follows from Theorem 2.5. Note that by the definition of matrix multiplication, a typical vector in ColA can be written as A x for some x ∈ ℝn. That is,

ColA = {b ∈ ℝm : b = A x for some x ∈ ℝn}.

Example 2.13

Find a matrix A such that W = ColA, where

W={[6aba+b7a]:a,bR}.

We first find a generating set of W and use the vectors in the generating set as columns of the matrix A.

W={a[617]+b[110]:a,bR}=Span{[617],[110]}.

The matrix A whose columns are the vectors in the generating set of W is

A=[611107].

Then W = ColA.

The following example is meant to emphasize the differences between the null space and the column space of a matrix.

Example 2.14

LetA=[242125733786].

a. If the column space of A is a subspace of Rk, what is k?

b. If the null space of A is a subspace of Rk, what is k?

c. Find a non zero vector of ColA and a non zero vector of NulA?

d. Is there a vector in ColA that also belongs to NulA?

The answers to these questions are:

a. Since the columns of A belong to ℝ3, then they must generate a subspace of ℝ3. So k = 3.

b. The matrix A has four columns, which means that the product A x is defined if and only if x ∈ ℝ4. Therefore, the general solution of the homogeneous equation A x = 0 belongs to ℝ4. Hence, k = 4.

c. Finding a non zero element of ColA is easy. Clearly, any column of A belongs to ColA. Then it is sufficient to choose any column, say, the first one: [223].

Finding a non zero element of NulA is harder. For this, we need to solve the homogeneous equation A x = 0. Reduce the augmented matrix to row reduced echelon form:

[242102573037860][109000150000010]

which corresponds to the system of equations

x1+9x3=0,x25x3=0,x4=0,

with x3 free. The general solution of the homogeneous equation is

[x1x2x3x4]=[9λ5λλ0]=λ[9510].

Then, a no zero element of the null space of A is [9510].

d. Each element of ColA is a vector in ℝ3 and each element of NulA is a vector in ℝ4. Thus, with only three entries, the elements of ColA could not possible be in NulA.

NulA

ColA

1. NulA is a subspace of Rn.

1. ColA is a subspace of Rm.

2. NulA is defined implicitly via the condition (A x = 0) that its elements must satisfy.

2. ColA is defined explicitly via how to construct its elements.

3. A typical vector v is NulA has that property that A v = 0.

3. A typical vector v is ColA has the property that Ax = v is consistent.

4. Given a specific vector v, it is to tell if v is in NulA.

Just compute A v.

4. Given a specific vector v, it takes time to tell if v is in ColA.

The solutions of A x = v must be studied.

5. NulA = {0} if and only if the equation A x = 0 has a unique solution.

5. ColA = ℝm if and only if the equation A x = b has a solution for every b ∈ ℝm.

Table 1: Contrast between NulA an ColA of an m × n matrix A.

2.4 Linear independence

We now define the notion of linear independence. This concept plays an essential role in the theory of linear algebra and in mathematics in general.

Definition 2.4

Let V be a vector space over a field 𝕂. The vectors u1, …, umV are said to be linearly independent if the vector equation

c1u1+c2u2++cmum=0                  (2.1)

has a unique solution: c1 = c2 = … = cm = 0. The vectors u1, …, umV are said to be linearly dependent if (2.1) has a non trivial solution.

If 0 is one of the vectors in (2.1), say u1, then the vectors must be linearly dependent; for

1 u1 + 0 u2 + … + 0 um = 1 0 + 0 + … + 0 = 0,

which means that(2.1) has the non trivial solution c1 = 1, c2 = … = cm = 0.

Any non zero vector u is, by itself, linearly independent; for the equation c u = 0 has the unique solution c = 0.

If two of the vectors in (2.1) are equal or one is a scalar multiple of the other, say u1= k u2, then the vectors are linearly dependent. For, in this case,

u1 - k u1 + 0 u3 + … + 0 um = 0,

which means that (2.1) has the non trivial solution c1 = 1, c2 = −k, c3 = … = cm = 0. In particular, two vectors are linearly dependent if and only if one is a multiple of the other.

Clearly, if the vectors u1, …, umV are linearly independent, then any rearrangement of these vectors is also linearly independent.

If the vectors u1, …, umV are linearly independent, then any subset of these vectors, say u1, …, ur (r < m), is linearly independent. Indeed, consider the equation

d1 u1 + d2 u2 + … + dr ur = 0.

But we can also write

d1 u1 + d2 u2 + … + dr ur + 0 ur+1 + … + 0 um = 0.

Since u1, …, umV are linearly independent, this equation has only the trivial solution, which means that d1 = … = dr = 0 and, thus, u1, …, ur are linearly independent. By contrapositive (see the Introduction), if some subset of u1, …, umV, say u1, …, ur (r < m), is linearly dependent, then u1, …, um is linearly dependent.

The following theorem will often be useful. It states that a linearly dependent list of vectors, with the first vector not 0, one of the vectors is in the span of the previous ones.

Theorem 2.6

An indexed set {u1, …, um} of two or more vectors, with u10, is linearly dependent if and only if some uj (j > 1) is a linear combination of the preceding vectors u1, …, uj-1.

Proof. Suppose that, for some j > 1, uj is a linear combination of u1, …, uj-1. Then there are scalars d1, …, dj-1, such that

uj = d1 u1 + d2 u2 + … + dj-1 uj-1,

or, equivalently,

-d1 u1- … - dj-1 uj-1 + uj + 0 uj+1 + … + 0 um = 0.

Therefore, (2.1) has the non trivial solution c1 = −d1, …, cj-1 = −dj-1, cj = 1, cj+1 = … = cm = 0, which means that u1, …, um are linearly dependent.

On the other hand, suppose that u1, …, um are linearly dependent. Then there are scalars a1, a2, …, am, not all equal to 0, such that

a1 u1 + a2 u2 + … + am um = 0.

Not all a2, a3, …, am can be equal to 0. Otherwise, we would have a1 u1= 0; but u10 which means that a1 = 0. Then, in this case, a1 = … = am = 0 making the vectors linearly independent which contradicts our assumption. Let j be the largest element of {2, …, m} such that aj ≠ 0. Then,

uj=-a1aju1-?-aj-1ajuj-1

That is, there is some uj that is a linear combination of the preceding vectors u1, …, uj-1.

Now we come to a key result. It says that, if in a set of vectors one can be written as a linear combination of the remaining ones, then we can throw out that vector without changing the span of the original list.

Theorem 2.7

Let S = {u1, …, um} be a set in a vector space V, and let H = Span S. If one of the vectors – say uk – is a linear combination of the remaining vectors in S, then the set formed from S by removing uk still spans H.

Proof. By rearranging the list of vectors in S, if necessary, we may suppose that um is a linear combination of u1, …, um-1 say

um = a1 u1 + a2 u2 + … + am-1 um-1.

Given any wH, we may write

w = c1 u1 + c2u2 + … + cmum

for suitable scalars c1, c2, …, cm. Substituting the expression for um we obtain

w = (c1 + cm a1) u1 + (c2 + cm a2) u2 + … + (cm-1 + cm am-1) um-1.

Thus, w is a linear combination of u1, …, um-1. This means that {u1, …, um-1} spans H because w was an arbitrary element of H.

Consider a set of vectors S = {u1, …, um} in a vector space V. We now know that for any vector wV, the equation

w=x1u1+x2u2++xmum                  (2.2)

has a solution if and only if x ∈ Span S. So the notion of generating set deals with the existence of solutions of vector equations such as (2.2). So, what about uniqueness? It turns out that vector equations such as (2.2) with unique solutions can be characterized in terms of the notion of linear independence.

Theorem 2.8

Let S = {u1, …, um} be a set in a vector space V. Then each w ∈ Span S has a unique expression

w = c1 u1 + c2 u2 + … + cmum,

for suitable scalars c1, …, cm if and only if S is a linearly independent set.

Proof. Suppose that each w ∈ Span S has a unique expression as a linear combination of the vectors in S. In particular, 0 ∈ Span S so

c1 u1 + c2 u2 + … + cm um = 0,

which clearly is satisfied with c1 = c2 = … = cm = 0. But this expression is unique which means that S is a linearly independent set of vectors.

Now suppose that S is a linearly independent set. If a vector w ∈ Span S can be expressed as

w = c1 u1 + c2 u2 + … + cmum,

and

w = d1 u1 + d2 u2 + … + dm um,

then subtracting the expressions we get

0 = (c1 - d1) u1 + (c2 - d2) u2 + … + (cm - dm) um.

But S is a linearly independent set, so the last homogeneous equations has the unique solution c1 - d1 = c2 - d2 = … = cm - dm = 0. Clearly, this means that c1 = d1, c2 = d2, …, cm = dm.

Example 2.15

Consider the three vectors in ℝ3:

e1=100,e2=010,e3=001.

Clearly, the homogeneous equation

000=x1e1+x2e2+x3e3=100010001x1x2x3=x1x2x3,

has only the trivial solution x1 = x2 = x3 = 0. Therefore, e1, e2, e3 are independent vectors. In fact, since it is obvious that ℝ3 = Span{e1, e2, e3}, we conclude that each vector in ℝ3 has a unique expression as linear combination of e1, e2, e3.

Example 2.16

Suppose that the scalars c0, c1, …, cn satisfy

c0+c1t+c2t2++cntn=0

This equality means that the polynomial on the left has the same values as the zero polynomial on the right. It is well known that a polynomial of degree n with more than n roots is the zero polynomial. Therefore, c0 = c1 = … = cn = 0. This proves that the set {1, t, t2, …, tn} is a linearly independent set in Pn. It is obvious that Pn = Span{1, t, t2, …, tn}. Then each polynomial of degree at most n has a unique expression as a linear combination of 1, t, t2, …, tn.

Recall that any linear dependence relationship among the columns of a matrix A can be expressed in the form A x = 0, where x is a column of weights. When A is row reduced to a matrix B, the columns of B are often totally different from the columns of A. However, the equations A x = 0 and B x = 0 have exactly the same set of solutions. That is, the columns of A have exactly the same linear dependence relationships as the columns of B. So we have the following important observation:

Observation 2.2

Elementary row operations on a matrix preserve the linear dependence relations among the columns of the matrix.

The previous observation provides a useful shortcut for reducing a matrix to its row reduced echelon form when the linear dependence relations among the columns of a matrix are easy to detect.

Example 2.17

Consider the matrix

A=a1    a2    a3    a4    a5=1    4    0    2    13    12    1    5    52    8    1    3    25    20    2    8    8.

a. Find the smallest generating set for ColA.

b. Use the linear dependence relations among the columns of A for compute its row reduced echelon form.

These are the solutions:

a. Recall that ColA = Span{a1, a2, a3, a4, a5}. By Theorem 2.7, the set of columns formed by removing those columns that are linear combinations of the remaining ones still spans ColA. Then, since

a2 = 4 a1 and a4 = 2 a1 - a3,

we can remove a2 and a4 from the spanning set. Therefore, ColA = Span{a1, a3, a5}. Since a1, a3, a5 are linearly independent (you should show this), no more columns should be removed. This means that {a1, a3, a5} is the smallest generating set of ColA.

b. The columns of the row reduced echelon form B = [b1b2b3b4b5] should have the same linear dependence relations as the columns of A. Therefore,

b2 = 4b1, b4 = 2b1 - b3,

and b1, b3, b5 are linearly independent. The pivot columns of a matrix in row reduced echelon form are linearly independent columns since they are the columns of the identity matrix. Moreover, all the rows of zeros should be at the bottom of the row reduced echelon matrix. From these two facts we deduce that b1, b3, b5 are pivots and correspond to the first three columns of the identity matrix, respectively. Putting everything together, we obtain

A1    4    0    2    00    0    1    1    00    0    0    0    10    0    0    0    0.

2.5 Bases and dimension

In a vector space V, sets that guarantee that each vector in V con be expressed uniquely in terms of these sets are one of the most important objects in linear algebra.

Definition 2.5

An ordered set B=u1 , , un of vectors is a basis of V if the following two conditions hold:

1. B is a linearly independent set.

2. V = Span B.

The following characterization of a basis is a direct consequence of Theorem 2.8.

Theorem 2.9

An ordered set B = {u1, …, un} of vectors is a basis of V if and only if every vector vV can be written uniquely as a linear combination of the basis vectors.

We have already seen an example of a basis of ℝ3 in Example 2.15. Such basis consisting of the columns of the identity matrix is called the canonical basis of ℝ3.

Example 2.16 presents a basis of Pn. Such basis consisting of consecutive powers of the variable t is called the standard basis of Pn.

Let us consider less obvious examples of bases.

Example 2.18

Let

v1=306,v2=417,v3=215.

Determine if {v1, v2, v3} is a basis of ℝ3.

We must show that these vector are linearly independent and generate ℝ3. Both of these conditions hold if and only if the equation [v1v2v3] x = b has a unique solution for each b ∈ ℝ3. This equation has a solution for each b if each row of the matrix A = [v1v2v3] has a pivot and the solution is unique if each column of A is a pivot column. In other words, the equation A x = b has a unique solution for each b if AI. So we row reduce A to its row reduced echelon form:

A3    4    20    1    10    1    13    0    20    1    10    0    23    0    00    1    00    0    21    0    00    1    00    0    1.

Therefore {v1, v2, v3} is a basis of ℝ3.

Example 2.19

Let

p0(t) = (1 - t)3, p1 (t) = 3t (1 - t)2, p2(t) = 3t2 (1 - t), p3(t) = t3.

Determine if {p0(t), p1 (t), p2(t), p3(t)} is a basis for P3.

We need to determine if each polynomial in P3 can be expressed uniquely as a linear combination of p0(t), p1 (t), p2(t), p3(t). Let q(t) = a0 + a1 t + a2 t2 + a3 t3 and suppose that the scalars c0, c1, c2, c3 satisfy

q(t) = c0 p0 (t) + c1 p1 (t) + c2 p2 (t) + c3p3(t).

Comparing the coefficients multiplying each power of t on both sides of the equality, we obtain

c0=a0,3c0+3c1=a1,3c06c1+3c2=a2,c0+3c13c2+c3=a3,

or in matrix form,

Ac=1    0    0    03    3    0    03    6    3    01    3    3    1c0c1c2c3=a0a1a2a3.

It is not difficult to see that the matrix A has a pivot in every row and every column, which means that the equation above has a unique solution for each choice of the polynomial q(t). Therefore, {p0(t), p1 (t), p2(t), p3(t)} is a basis for P3.

The following theorem characterizes an important basis of the column space of a matrix.

Theorem 2.10

The pivot columns of a matrix A form a basis for ColA.

Proof. Let B be the reduced echelon form of A. The set of pivot columns of B is linearly independent, for no vector in the set is a linear combination of the vectors that precede it. Since A is row equivalent to B, the pivot columns of A are linearly independent as well, because any linear dependence relation among the columns of A corresponds to a linear dependence relation among the columns of B. For this same reason, every non pivot column of A is a linear combination of the pivot columns of A. Thus the non pivot columns of A may be discarded from the spanning set for ColA. This leaves the pivot columns of A as a basis for ColA.

Warning: Be careful to use pivot columns of A itself for the basis of ColA. Row operations can change the column space of a matrix. We illustrate this in the following example.

Example 2.20

Consider again the matrix given in Example 2.17:

A=a1    a2    a3    a4    a5=1    4    0    2    13    12    1    5    52    8    1    3    25    20    2    8    8.

We showed that

A1    4    0    2    00    0    1    1    00    0    0    0    10    0    0    0    0.

It can be seen from the row reduced echelon form that the first, third, and last columns are pivot columns, which means that {a1, a3, a5} is a basis for ColA. However, the columns of the row reduced echelon form all have zeros in their last entries, so they cannot span the column space of A.

Every generating set in a vector space can be reduced to a basis of the vector space. Indeed, removing vectors that are linear combinations of the remaining vectors will not change the span of the original set. The deletion of vectors from the generating set must stop when the set becomes linearly independent. If additional vectors are deleted, it will not be a linear combination of the remaining vectors, and hence the smaller set will no longer span V. Thus a basis is a generating set that is as small as possible.

Also, every linearly independent list of vectors can be extended to a basis of the vector space. This is done by adjoining a vector that is not in the span of the original list. The extended list of vectors is still linearly independent because the new vector cannot be written as a linear combination of the preceding ones. This step is repeated until a generating set of V is obtained. The addition of vectors must stop as soon as a generating set for V is obtained. For if one more vector is added, then the new set cannot be linearly independent because the old set spans V, and the new vector is therefore a linear combination of the vectors preceding it. Thus, a basis is a linearly independent set that is as large as possible.

Remark 2.1

Let B = {u1, …, un} be a basis of a vector space V. Then every generating set of V has at least n elements, and every linearly independent set in V has at most n elements.

We say that a vector space V is finite-dimensional if it has a basis with a finite number of elements.

The notion of basis would be useless if different basis of the same vector space V had different numbers of elements. Fortunately, that turns out not to be the case.

Theorem 2.11

Any two bases of a finite-dimensional vector space have the same number of elements.

Proof. Suppose that V is a finite-dimensional vector space. Let B1 and B2 be two bases of V. Then B1 and B2 are linearly independent in V, so the number of vectors in B1 is at most the number of elements in B2. Moreover, B1 and B2 span V, then the number of vectors in B1 is at least the number of elements in B2. Thus the number of vectors in B1 and B2 must be equal.

Now we know that the number of vectors in a basis of a finite-dimensional vector space is an inherent property of V (that is, it does not depend on the choice of basis). Therefore we give the following definition.

Definition 2.6

The dimension of a finite-dimensional vector space, denoted by dim V, is the number of vectors in any basis of V. In other words, if B=u1 , , un is a basis of V, then dim V = n.

If V is a finite-dimensional vector space, then every generating set of vectors of V with n = dim V elements is a basis of V. For suppose that v1, …, vn span V. However, every basis of V has n elements, so in this case the reduction must be the trivial one, meaning that no elements are deleted from v1, …, vn. In other words, v1, …, vn is a basis of V, as desired.

Moreover, every linearly independent set of vectors in V with n elements is a basis of V. For suppose that {v1, …, vn} is a linearly independent set. Then this set can be extended to a basis of V. However, every basis of V has n elements, so in this case the extension must be the trivial one, meaning that no vectors are adjoined to {v1, …, vn}. In other words, {v1, …, vn} is a basis of V.

Example 2.21

The canonical basis for ℝn contains n vectors, so dim ℝn = n. The standard polynomial basis {1, t, t2, …, tn} shows that dim Pn = n + 1.

Example 2.22

Find the dimension of the subspace

H=a3b+6c5a+4db2cd5d : a , b , c , d R.

The strategy is to produce a basis for H by finding a generating set and then reduce it to a linearly independent generating set. The number of elements in the final set is equal to dim H.

First, we find a generating set for H. A generic vector in H can be written as

a3b+6c5a+4db2cd5d=a1500+b3010+c6020+d0415,a,b,c,dR.

Then

H=Span1500 , 3010 , 6020 , 0415.

This is not a basis, however. Notice that the third vector is a multiple of the second vector, so it can be removed from the set. The remaining vectors are linearly independent. Thus, we have found a basis for H ; namely,

1500 , 3010 , 0415.

Since it has three vectors, we conclude that dim H = 3.

Example 2.23

Find the dimensions of the null space and the column space of the matrix

A=3    6    1    1    71    2    2    3    12    4    5    8    4.

The pivot columns of A form a basis of ColA, so the dimension of the column space is the number of pivot columns. Row reduce the matrix to row reduced echelon form:

AB=1    2    0    1    30    0    1    2    20    0    0    0    0.

Therefore, dim ColA = 2.

Now we find a basis for NulA. If we row reduce the augmented matrix [A 0] we obtain [B 0]. The corresponding system of linear equations is:

x12x2x4+3x5=0,x3+2x42x5=0,0=0,

with x2, x4, x5 free. Its general solution is

x1x2x3x4x5=2a+b3ca2b+2cbc=a21000+b10210+c30201,a,b,cR.

We already know that the number of generating vectors produced with this method is equal to the number of free variables. Furthermore, this method produces automatically a set of linearly independent vectors because the free variables are the weights on the spanning vectors. For instance, look at the second, fourth, and fifth entries of the three vectors above, and note that 0 is a linear combination of these vectors if and only if a = b = c = 0. Therefore, these vectors form a basis for NulA and dim NulA = 3.

2.6 Coordinates

The purpose of bases in vector spaces is to provide a method of computation, and we are going to learn to use them in this section. We will consider two topics: how to express a vector in terms of a given basis, and how to relate two different bases of the same vector space.

Let V be a vector space with dim V = n over a field 𝕂, and suppose that

B=u1 , u2 , , un

is a basis of V. Then any vector vV can be expressed uniquely as a linear combination of the basis vectors in B, say

v = a1 u1 +a2u2 + … +anun.

The n scalars a1, a2, …, an are called the coordinates of v relative to B: and they form the vector

[v]B=a1a2an

called the coordinate vector of v relative to B.

Example 2.24

Let ε3 = {e1, e2, e3} be the canonical basis for ℝ3. That is,

e1=100,e2=010,e3=001.

For any vector x ∈ ℝ3, it is obvious that [x3 = x.

Example 2.25

Let Sn = {1, t, t2, …, tn} be the standard basis of Pn. For any polynomial q(t) = a0 + a1 t + a2 t2 + … + an tn, we have

[q(t)]Sn=a0a1an.

Example 2.26

Let

v=14,u1=12,u2=35.

Find the coordinates of v relative to the basis B = {u1, u2}.

We must find scalars a1, a2 such that v = a1 u1 + a2 u2, or, in matrix form

1325a1a2=14.

Row reduce the augmented matrix:

131254107012.

Therefore,

[v]B=72.

We want to emphasize the v[v]B. The correct relation between v and its coordinates [v]B is v = 7 u1 - 2 u2.

The following example is to remind you that the material in this course is applicable to every vector space, not just to the well-known ones like ℝn and Pn.

Example 2.27

Let us consider the vector space V generated by the set of linearly independent functions B=eiπt , ein2t , 1 , ein2t , eiπt. Observe that B is a basis for V and dim V = 5. Some examples of vector in V are

cosπn2 t,sinπn2 t,n=2,1,0,1,2

We will use Euler’s formula

eiθ=cosθ+isinθ,θR,i=1

to find the coordinates of some of these vectors relative to B.

By Euler’s identity

cos(πt)=eiπt+eiπt2 and sinπ2 t=eiπ2teiπ2t2i.

Therefore,

[cos(πt)]B=1/20001/2 and sin π2 tB=012i012i0.

Another example is

1 + 2 cos ( π t ) 2 i sin π2 tB=11111.

The coordinates relative to any basis have the property that they preserve the main structure of vector spaces: linear combinations.

Theorem 2.12

Let B = {u1, …, un} be a basis for a vector space V. For any v, wV and scalar r:

1. [v+w]B=[v]B+[w]B

2. [rv]B=r[v]B

Proof. Take two typical vectors in V, say

v = c1 u1 + c2 u2 + … + cnun,
w = d1 u1 + d2 u2 + … + dn un.

Then, using vector operations,

v + w = (c1 + d1) u1 + (c2 + d2) u2 + … + (cn + dn) un.

It follows that

[v+w]B=c1+d1c2+d2cn+dn=c1c2cn+d1d2dn=[v]B+[w]B.

If r is any scalar, then

rv = (rc1)u1 + (rc2)u2 + … + (rcn)un.

So

[rv]B=rc1rc2rcn=rc1c2cn=r[v]B.

We now come to a very important computational method: change of basis. Identifying vectors in V with column vectors in 𝕂n is useful when a natural basis is presented to us, but not when the given basis is poorly suited to the problem at hand. In that case, we will want to change basis. So let us suppose that we are given two bases for the same vector space V, say B = {b1, …,bn} and C = {c1, …, cn}. We will think of B as the old basis, and C as a new basis. There are two computations which we wish to clarify. We ask first: How are the two bases related? Secondly, a vector vV will have coordinates relative to each of these bases, but of course they will be different. So we ask: How are the two coordinate vectors related? These are the computations called change of basis.

We begin by noting that since the new basis spans V, every vector in the old basis B is a linear combination of the new basis C. So we can write the coordinates of each vector in B relative to C:

[b1]C, [b2]C, … [bn]C.

Now let

[v]B=v1v2vn

be the coordinate vector of v relative to the old basis B. That is,

v = v1 b1 + v2b2 + … + vnbn.

Using Theorem 2.12, we compute the coordinate vector of v relative to the new basis C:

[v]C=v1 b1 + v2 b2 + + vn bnC=v1b1C+v2b2C++vnbnC.

If we define the matrix

PCB=b1C    b2C        bnC,

then we can write

[v]C=PCB[v]B

Following the same argument as above but interchanging the roles of the bases B and C, we obtain

[v]B=PBC[v]C

where

PBC=c1B    c2B        cnB.

Then we make the following observation: PCB is an invertible matrix and PCB1=PBC.

Recapitulating, we have an invertible matrix PCB, called the matrix of change of basis from B to C, whose columns are the coordinate vectors of each element of the old basis B relative to the new basis C, which transforms [v]B into [v]C. Moreover, the columns of PCB1 are the coordinate vectors of each element of the new basis C relative to the old basis B.

An important consequence of the computations described above is that, given any basis B of V, it is possible to obtain a new basis C = {c1, …, cn} by choosing any invertible n × n matrix P = [a1 a2an] and letting its columns be the coordinate vectors of the vectors in the new basis relative to the old one. That is,

c1B=a1,c2B=a2,,cnB=an

In this case, P=PBC.

Example 2.28

Let ε3 = {e1, e2, e3} be the canonical basis for ℝ3. That is,

e1=100,e2=010,e3=001.

Recall that for any vector x ∈ ℝ3, it is obvious that [x]ε3 = x. Furthermore, consider another basis for B = {b1, b2, b3}, where

b1=120,b2=542,b3=010.

The change of basis matrix from B to ε3 is

PE3B=b1E3 b2E3 b3E3=1    5    02    4    10    2    0.

We can also compute PBE3=PE3B1:

PBE3=e1B    e2B    e3B=1    0    520    0    122    1    3.

It is interesting to verify that the columns of PBE3 are, indeed, the coordinate vectors of the elements of the canonical basis relative to B:

e1=b1+2b3,e2=b3,e3=52b112b2+3b3.

Example 2.29

Let

b1=91,b2=51,c1=14,c2=35,

and consider the bases for ℝ2 given by B = {b1, b2} and C = {c1, c2}. Find the change of basis matrices PCB and PBC.

First, the matrix PCB involves the coordinate vectors of b1 and b2 relative to C. Let b1C=x1x2 and b2C=y1y2. Then, by defintion

c1c2x1x2=b1 and c1c2y1y2=b2.

To solve both systems simultaneously, augment the coefficient matrix with b1and b2, and row reduce:

c1    c2    b1    b2=1    3    9    54    5    1    11    0    6    40    1    5    3.

Thus,

b1C=65 and b2C=43

The matrix PCB is therefore

PCB=b1C    b2C=6453.

We can also compute PBC=PCB1:

PBC=c1B    c2B=32    252    3.

Example 2.30

Let

p0(t) = (1 - t)3, p1 (t) = 3t (1 - t)2, p2(t) = 3t2 (1 - t), p3(t) = t3.

and consider the bases for P3 given by B = {p0(t), p1 (t), p2(t), p3(t)} and S3 = {1, t, t2, t3}. Use a change of basis matrix to write the polynomial q(t) = t2 + 1 as a linear combination of the basis B.

Observe that the polynomial q(t) is written as a linear combination of the basis S3. So we need to compute the change of basis matrix PBS3. We will use this matrix to compute q(t)]B=PBS3[q(t)]S3 since we know that [q(t)]S3 = [1 0 1 0].

We will compute PBS3 in two steps. We first compute PS3B:

Now, we compute PBS3=PS3B1:

PBS3=100011/30012/31/301111.

Since [q(t)]B=PBS3[q(t)]S3=1    1    43    2 we have q(t)=p0(t)+p1(t)+43p2(t)+2p3(t).