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 ℂ.
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, v ∈ V a sum u + v ∈ V and to any u ∈ V and scalar k ∈ 𝕂 a product ku ∈ V. 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, w ∈ V, (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 u ∈ V.
(A3) For each vector u ∈ V there is a vector in V, denoted by -u, for which u+(-u) = 0.
(A4) For any vectors u, v ∈ V, u + v = v + u.
(M1) For any scalar k ∈ 𝕂 and any vectors u, v ∈ V, k (u + v) = k u + k v.
(M2) For any scalars a, b ∈ 𝕂 and any vector u ∈ V, (a + b) u = a u + b u.
(M3) For any scalars a, b ∈ 𝕂 and any vector u ∈ V, (ab) u = a (b u).
(M4) For the unit scalar 1 ∈ 𝕂, 1 u = u for any vector u ∈ V.
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 0 ∈ V is unique.
b. For any vector u ∈ V, the additive inverse -u ∈ V is unique.
c. For any vectors u, v, w ∈ V, if u + w = v + w then u = v.
Proof. a. Suppose that is a vector for which for any vector u ∈ V. Then,
(by A2) = 0 (by the definition of ). |
Since , the zero vector is unique.
b. Given a vector u ∈ V, let w ∈ V be a vector for which u + w = 0. Then,
(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, w ∈ V, such that u + w = v + w then
(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
u − v = 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 0 ∈ V, k 0 = 0.
b. For 0 ∈ K and any vector u ∈ V, then 0 u = 0.
c. For any k ∈ K and any u ∈ V, (-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 u ∈ V,
0u + 0 = 0u = (0 + 0) u = 0u + 0u,
which implies 0 u = 0.
c. On one hand, for any k ∈ K and any u ∈ V,
(-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 u ∈ V. 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
and
The zero vector in 𝕂n is
and the inverse of a vector is defined by
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, g ∈ F(X) is the function f + g ∈ F(X) defined by
(f + g)(x) = f (x) + g(x), ∀x ∈ X,
and the product of a scalar k ∈ 𝕂 and a function f ∈ F(X) is the function k f ∈ F(X) defined by
(kf)(x) = k f (x), ∀x ∈ X.
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 x ∈ X into 0 ∈ 𝕂, that is,
0(x) = 0, ∀x ∈ X.
Also, for any function f ∈ F(X), the function -f defined by
(-f)(x) = -f (x), ∀x ∈ X,
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. 0 ∈ W
b. W is closed under vector addition, that is:
For every u, v ∈ W, the sum u + v ∈ W.
c. W is closed under scalar multiplication, that is:
For every u ∈ W, k ∈ 𝕂, the product k u ∈ W.
Conditions b and c may be combined into one condition.
Corollary 2.1
W is a subspace if and only if
a. 0 ∈ W
b. W is closed under linear combinations, that is:
a u + bv ∈ W for every u, v ∈ W 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
Notice that 0 ∈ W. Further, for any vectors
and scalars r, s ∈ ℝ, we have
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, 0 ∈ W 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, v ∈ W 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 v ∈ W.
Let V be a vector space over a field 𝕂 and let v1, …, vm ∈ V. 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, …, vm ∈ V then Span{v1, …, vm} is a subspace of V.
Proof. Since 0 ∈ V 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 ∈ 𝕂,
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 v ∈ V, 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
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:
This means that a generic element of H can always be expressed as a linear combination of the two vectors on the right. Therefore,
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
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,
or, in vector form,
We study the solution set of this equation by reducing the augmented matrix to its row reduced echelon form:
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.
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
So by the definition of the null space of a matrix, we have the following expression of H :
Example 2.12
Find a generating set for the null space of the matrix
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:
Then, the solution set of A x = 0 is the same as the solution set of the simpler system
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:
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
Using the notation of this and the previous section, we may write
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 = [a1 … an], 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
We first find a generating set of W and use the vectors in the generating set as columns of the matrix A.
The matrix A whose columns are the vectors in the generating set of W is
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
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: .
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:
which corresponds to the system of equations
with x3 free. The general solution of the homogeneous equation is
Then, a no zero element of the null space of A is .
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.
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, …, um ∈ V are said to be linearly independent if the vector equation
has a unique solution: c1 = c2 = … = cm = 0. The vectors u1, …, um ∈ V 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, …, um ∈ V are linearly independent, then any rearrangement of these vectors is also linearly independent.
If the vectors u1, …, um ∈ V 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, …, um ∈ V 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, …, um ∈ V, 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 u1 ≠ 0, 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 u1≠ 0 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,
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 w ∈ H, 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 w ∈ V, the equation
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:
Clearly, the homogeneous equation
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
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. 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
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 of vectors is a basis of V if the following two conditions hold:
1. is a linearly independent set.
2. V = Span .
The following characterization of a basis is a direct consequence of Theorem 2.8.
Theorem 2.9
An ordered set = {u1, …, un} of vectors is a basis of V if and only if every vector v ∈ V 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
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 A ∼ I. So we row reduce A to its row reduced echelon form:
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
or in matrix form,
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:
We showed that
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 and be two bases of V. Then and are linearly independent in V, so the number of vectors in is at most the number of elements in . Moreover, and span V, then the number of vectors in is at least the number of elements in . Thus the number of vectors in and 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 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
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
Then
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,
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
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:
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:
with x2, x4, x5 free. Its general solution is
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.
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
is a basis of V. Then any vector v ∈ V can be expressed uniquely as a linear combination of the basis vectors in , say
v = a1 u1 +a2u2 + … +anun.
The n scalars a1, a2, …, an are called the coordinates of v relative to : and they form the vector
called the coordinate vector of v relative to .
Example 2.24
Let ε3 = {e1, e2, e3} be the canonical basis for ℝ3. That is,
For any vector x ∈ ℝ3, it is obvious that [x]ε3 = 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
Example 2.26
Let
Find the coordinates of v relative to the basis = {u1, u2}.
We must find scalars a1, a2 such that v = a1 u1 + a2 u2, or, in matrix form
Row reduce the augmented matrix:
Therefore,
We want to emphasize the . The correct relation between v and its coordinates 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 . Observe that is a basis for V and dim V = 5. Some examples of vector in V are
We will use Euler’s formula
to find the coordinates of some of these vectors relative to .
By Euler’s identity
Therefore,
Another example is
The coordinates relative to any basis have the property that they preserve the main structure of vector spaces: linear combinations.
Theorem 2.12
Let = {u1, …, un} be a basis for a vector space V. For any v, w ∈ V and scalar r:
1.
2.
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
If r is any scalar, then
rv = (rc1)u1 + (rc2)u2 + … + (rcn)un.
So
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 = {b1, …,bn} and = {c1, …, cn}. We will think of as the old basis, and 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 v ∈ V 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 is a linear combination of the new basis . So we can write the coordinates of each vector in relative to :
[b1]C, [b2]C, … [bn]C.
Now let
be the coordinate vector of v relative to the old basis . That is,
v = v1 b1 + v2b2 + … + vnbn.
Using Theorem 2.12, we compute the coordinate vector of v relative to the new basis :
If we define the matrix
then we can write
Following the same argument as above but interchanging the roles of the bases B and C, we obtain
where
Then we make the following observation: is an invertible matrix and .
Recapitulating, we have an invertible matrix , called the matrix of change of basis from to , whose columns are the coordinate vectors of each element of the old basis relative to the new basis , which transforms [v] into [v]. Moreover, the columns of are the coordinate vectors of each element of the new basis relative to the old basis .
An important consequence of the computations described above is that, given any basis of V, it is possible to obtain a new basis = {c1, …, cn} by choosing any invertible n × n matrix P = [a1 a2… an] and letting its columns be the coordinate vectors of the vectors in the new basis relative to the old one. That is,
In this case, .
Example 2.28
Let ε3 = {e1, e2, e3} be the canonical basis for ℝ3. That is,
Recall that for any vector x ∈ ℝ3, it is obvious that [x]ε3 = x. Furthermore, consider another basis for = {b1, b2, b3}, where
The change of basis matrix from to ε3 is
We can also compute :
It is interesting to verify that the columns of are, indeed, the coordinate vectors of the elements of the canonical basis relative to :
Example 2.29
Let
and consider the bases for ℝ2 given by = {b1, b2} and = {c1, c2}. Find the change of basis matrices and .
First, the matrix involves the coordinate vectors of b1 and b2 relative to . Let and . Then, by defintion
To solve both systems simultaneously, augment the coefficient matrix with b1and b2, and row reduce:
Thus,
The matrix is therefore
We can also compute :
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 = {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 .
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 . We will use this matrix to compute since we know that [q(t)]S3 = [1 0 1 0]⊤.
We will compute in two steps. We first compute :
Now, we compute :
Since we have .