maths.freeLinear Algebra › 4. Vector Spaces › Bases

Bases

A basis of a vector space is one of the most useful concepts in linear algebra. It often provides a concise, finite description of an infinite vector space.

Bases

A basis of a vector space is one of the most useful concepts in linear algebra. It often provides a concise, finite description of an infinite vector space.

  1. A= \begin{bmatrix} -3 & 0 & 1\\ 1 & 2 & 1\\ 5 & 1 & 6 \end{bmatrix}
  2. Write the vector $\vect{w}=\colvector{6\\6\\15}$ as a linear combination of the columns of the matrix $A$ above. How many ways are there to answer this question?
  3. Why is an orthonormal basis desirable?

Bases

We now have all the tools in place to define a basis of a vector space.

So, a basis is a linearly independent spanning set for a vector space. The requirement that the set spans $V$ insures that $S$ has enough raw material to build $V$, while the linear independence requirement insures that we do not have any more raw material than we need. As we shall see soon in , a basis is a minimal spanning set.

You may have noticed that we used the term basis for some of the titles of previous theorems ( , , ) and if you review each of these theorems you will see that their conclusions provide linearly independent spanning sets for sets that we now recognize as subspaces of $\complex{m}$. Examples associated with these theorems include , and . As we will see, these three theorems will continue to be powerful tools, even in the setting of more general vector spaces.

Furthermore, the archetypes contain an abundance of bases. For each coefficient matrix of a system of equations, and for each archetype defined simply as a matrix, there is a basis for the null space, three bases for the column space, and a basis for the row space. For this reason, our subsequent examples will concentrate on bases for vector spaces other than $\complex{m}$.

Notice that does not preclude a vector space from having many bases, and this is the case, as hinted above by the statement that the archetypes contain three bases for the column space of a matrix. More generally, we can grab any basis for a vector space, multiply any one basis vector by a nonzero scalar and create a slightly different set that is still a basis. For important vector spaces, it will be convenient to have a collection of nice bases. When a vector space has a single particularly nice basis, it is sometimes called the standard basis though there is nothing precise enough about this term to allow us to define it formally it is a question of style. Here are some nice bases for important vector spaces.

Example: Bases for $P_n$

The vector space of polynomials with degree at most $n$, $P_n$, has the basis B=\set{1,\,x,\,x^2,\,x^3,\,\ldots,\,x^n}.

Another nice basis for $P_n$ is C=\set{1,\,1+x,\,1+x+x^2,\,1+x+x^2+x^3,\,\ldots,\,1+x+x^2+x^3+\cdots+x^n}.

Checking that each of $B$ and $C$ is a linearly independent spanning set are good exercises.

The bases described above will often be convenient ones to work with. However a basis does not have to obviously look like a basis.

Condensed — the full section is in Beezer, A First Course in Linear Algebra.

Bases for Spans of Column Vectors

We have seen several examples of bases in different vector spaces. In this subsection, and the next (), we will consider building bases for $\complex{m}$ and its subspaces.

Suppose we have a subspace of $\complex{m}$ that is expressed as the span of a set of vectors, $S$, and $S$ is not necessarily linearly independent, or perhaps not very attractive. says that row-equivalent matrices have identical row spaces, while says the nonzero rows of a matrix in reduced row-echelon form are a basis for the row space. These theorems together give us a great computational tool for quickly finding a basis for a subspace that is expressed originally as a span.

Example: Row space basis

When we first defined the span of a set of column vectors, in we looked at the set W=\spn{\set{ \colvector{2\\-3\\1},\, \colvector{1\\4\\1},\, \colvector{7\\-5\\4},\, \colvector{-7\\-6\\-5} }} with an eye towards realizing $W$ as the span of a smaller set. By building relations of linear dependence (though we did not know them by that name then) we were able to remove two vectors and write $W$ as the span of the other two vectors. These two remaining vectors formed a linearly independent set, even though we did not know that at the time.

Now we know that $W$ is a subspace and must have a basis. Consider the matrix, $C$, whose rows are the vectors in the spanning set for $W$, C=\begin{bmatrix} 2 & -3 & 1\\ 1 & 4 & 1\\ 7 & -5 & 4\\ -7 & -6 & -5 \end{bmatrix}

Then, by , the row space of $C$ will be $W$, $\rsp{C}=W$. tells us that if we row-reduce $C$, the nonzero rows of the row-equivalent matrix in reduced row-echelon form will be a basis for $\rsp{C}$, and hence a basis for $W$. Let us do it $C$ row-reduces to \begin{bmatrix} \leading{1} & 0 & \frac{7}{11}\\ 0 & \leading{1} & \frac{1}{11}\\ 0 & 0 & 0\\ 0 & 0 & 0 \end{bmatrix}

If we convert the two nonzero rows to column vectors then we have a basis, B=\set{\colvector{1\\0\\\frac{7}{11}},\,\colvector{0\\1\\\frac{1}{11}}} and W=\spn{\set{\colvector{1\\0\\\frac{7}{11}},\,\colvector{0\\1\\\frac{1}{11}}}}

For aesthetic reasons, we might wish to multiply each vector in $B$ by $11$, which will not change the spanning or linear independence properties of $B$ as a basis. Then we can also write W=\spn{\set{\colvector{11\\0\\7},\,\colvector{0\\11\\1}}}

provides another example of this flavor, though now we can notice that $X$ is a subspace, and that the resulting set of three vectors is a basis. This is such a powerful technique that we should do one more example.

Condensed — the full section is in Beezer, A First Course in Linear Algebra.

Bases and Nonsingular Matrices

A quick source of diverse bases for $\complex{m}$ is the set of columns of a nonsingular matrix.

Example: Columns as Basis, Archetype K

is the $5\times 5$ matrix K= which is row-equivalent to the $5\times 5$ identity matrix $I_5$. So by , $K$ is nonsingular. Then says the set is a (novel) basis of $\complex{5}$.

Perhaps we should view the fact that the standard unit vectors are a basis () as just a simple corollary of ? (See .)

With a new equivalence for a nonsingular matrix, we can update our list of equivalences.

Nonsingular Matrix Equivalences, Round 5

We can easily illustrate our latest equivalence for nonsingular matrices.

Orthonormal Bases and Coordinates

We learned about orthogonal sets of vectors in $\complex{m}$ back in , and we also learned that orthogonal sets are automatically linearly independent (). When an orthogonal set also spans a subspace of $\complex{m}$, then the set is a basis. And when the set is orthonormal, then the set is an incredibly nice basis. We will back up this claim with a theorem, but first consider how you might manufacture such a set.

Suppose that $W$ is a subspace of $\complex{m}$ with basis $B$. Then $B$ spans $W$ and is a linearly independent set of nonzero vectors. We can apply the Gram-Schmidt Procedure () and obtain a linearly independent set $T$ such that $\spn{T}=\spn{B}=W$ and $T$ is orthogonal. In other words, $T$ is a basis for $W$, and is an orthogonal set. By scaling each vector of $T$ to norm 1, we can convert $T$ into an orthonormal set, without destroying the properties that make it a basis of $W$. In short, we can convert any basis into an orthonormal basis. , followed by , illustrates this process.

Unitary matrices () are another good source of orthonormal bases (and vice versa). Suppose that $Q$ is a unitary matrix of size $n$. Then the $n$ columns of $Q$ form an orthonormal set () that is therefore linearly independent (). Since $Q$ is invertible (), we know $Q$ is nonsingular (), and then the columns of $Q$ span $\complex{n}$ (). So the columns of a unitary matrix of size $n$ are an orthonormal basis for $\complex{n}$.

Why all the fuss about orthonormal bases? told us that any vector in a vector space could be written, uniquely, as a linear combination of basis vectors. For an orthonormal basis, finding the scalars for this linear combination is extremely easy, and this is the content of the next theorem. Furthermore, with vectors written this way (as linear combinations of the elements of an orthonormal set) certain computations and analysis become much easier. Here is the promised theorem.

A slightly less intimidating example follows, in three dimensions and with just real numbers.

Not only do the columns of a unitary matrix form an orthonormal basis, but there is a deeper connection between orthonormal bases and unitary matrices. Informally, the next theorem says that if we transform each vector of an orthonormal basis by multiplying it by a unitary matrix, then the resulting set will be another orthonormal basis. And more remarkably, any matrix with this property must be unitary! As an equivalence () we could take this as our defining property of a unitary matrix, though it might not have the same utility as .

Condensed — the full section is in Beezer, A First Course in Linear Algebra.

Symbols used here

A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}
matrix
A rectangular array of numbers; a linear map.
x \in A,\ A \subseteq B
element of, subset
x belongs to A; every element of A is in B.
\leq,\ \geq
less/greater than or equal
Inequalities that allow equality; < and > exclude it.
\mathbf{v},\ \vec{v}
vector
A quantity with magnitude and direction; a column of numbers.
\det A,\ |A|
determinant
Scaling factor of area/volume under A; zero means singular.
A^{-1},\ A^{T}
inverse, transpose
The matrix that undoes A; A with rows and columns swapped.
\lambda
lambda (eigenvalue)
The factor by which an eigenvector is stretched: Av = λv.
\mathbf{u} \cdot \mathbf{v},\ \|\mathbf{v}\|
dot product, norm
Σ u_i v_i; the length of v, √(v·v).

Questions people ask

What does a determinant mean geometrically?

It is the factor by which the matrix scales area (2×2) or volume (3×3), with a negative sign if orientation flips. Zero means the matrix flattens space and cannot be undone.

What is an eigenvector?

A direction the matrix does not turn — it only stretches it by the eigenvalue. Along eigenvectors a complicated matrix acts like multiplication by a number.

Why is matrix multiplication not commutative?

Because a matrix is a transformation and AB means "do B, then A". Rotating then reflecting is not the same as reflecting then rotating.

Essayez votre propre

Parts of this page are adapted from Beezer, A First Course in Linear Algebra (GFDL 1.2). Condensed and re-explained here; errors are ours.

Plus en Linear Algebra