7 Vector Spaces
7.1 Vector Spaces
A vector space is a nonempty set
of vectors, and is closed under vector addition and scalar
multiplication. Specifically, these operations must follow these 10
axioms, for all vectors
,
,
and scalars
,
:
Addition axioms:
, must be in .
.
.
There is a zero vector in such that .
For each in , there is a vector in such that .
Scalar multiplication axioms:
The scalar multiple of by , denoted by , must be in .
.
..
.
.
Following from the above axioms,
.
.
.
An element of a vector space can be thought of as a single "point" or
vector in that space.
Examples of vector spaces
: The standard space of n-dimensional column vectors.
Space : The space of all doubly infinite sequences of numbers, formatted as . Here, addition and scalar multiplication are performed term by term.
: The set of all polynomials of degree (where ). A standard polynomial looks like . The zero polynomial acts as the zero vector.
Functions: The set of all real-valued functions defined on a set . Vector addition is defined as . The zero vector is the function that is identically zero everywhere, i.e., .
7.2 Subspaces
A subspace is a subset of a vector space that is itself a vector space, i.e. it satisfies the 3 criteria:
A subspace must contain the zero vector of the parent space.
For any two vectors and that are in the subspace, must also be in the subspace.
For any vector in in the subspace and any scalar , must also be in the subspace.
Examples of subspaces:
: The zero subspace containing only the zero vector.
Polynomials: The set of polynomials of degree (denoted as ) forms a subspace within the much larger set of all polynomials with real coefficients ().
Geometry: A line or plane passing through the origin is a subspace of .
Note that is not a subspace of , because contains 2-D vectors, while contains 3-D vectors.
is a subspace of .
7.3 Subspace spanned by a set
Span: The span of a set of vectors , denoted as , is the set of all possible vectors that can be created using linear combinations of .
7.3.0.1 Theorem
If vectors
exist in a vector space
,
then
is a valid subspace of
.
Terminology:
is formally called the "subspace spanned by ".
For a subspace inside vector space , a “spanning set" for is a specific group of vectors located within such that .
7.3.0.2 Example
Given
and
in a vector space
,
let
.
Show that
is a subspace of
.
Prove the 3 subspace properties hold for
:
Contains the Zero Vector: Set the scalar weights to zero, i.e. .
Closed under Vector Addition: Let and be any two vectors in . By definition, they can be written as linear combinations: and . Adding them together gives:
Closed under Scalar Multiplication: Let be in , and let be any real scalar. Multiplying by gives:
Hence, qualifies as a subspace.
7.3.0.3 Example
Let
be the set of all vectors of the form
where
and
are real numbers. Show that
is a subspace of
.
Expressing
as linear combinations of
and
,
Since
,
are in
and
,
is a valid subspace of
.
7.4 Null space of matrix
The null space of an matrix is the set of all vectors in that satisfy the homogenous equation . The null space consists of all vectors in that are mapped to the zero vector in by the linear transformation .
7.4.0.1 Theorem
The null space of an
matrix
is a subspace of
.
Equivalently, the set of all solutions to the system of
homogeneous linear equations in
unknowns is a subspace of
.
Proof. We show that
satisfies the 3 properties of a subspace.
The zero vector is in . Any matrix multiplied by the zero vector results in the zero vector, so the zero vector is in .
is closed under vector addition.
To show to that if and are in , then is also in . We have Using the distributive property of matrix multiplication, Hence .is closed under scalar multiplication.
To show that if a vector is in , then multiplying it by any real scalar results in a vector that is also in . We have Using properties of matrix scalar multiplication, Hence .
7.4.0.2 Example
For this matrix and vector , So .
7.4.0.3 Example
Find the null space of
.
Performing row operations on augmented matrix to reach RREF,
So
spans the line defined by all multiples of the vector
.
7.4.0.4 Example
Find a spanning set for the null space of the matrix Performing elimination on augmented matrix to reach RREF, we get Expressing the pivots in terms of free variables, Finally expressing the solution vector as a linear combination where the weights are the free variables, Every linear combination of , , is an element of . Thus form the spanning set for .
7.5 The Column Space of a Matrix
The column space of an matrix is the set of all possible linear combinations of the columns of . If , then Alternatively, it can be defined as the set of all vectors that can be produced by multiplying with some vector in : .
7.5.0.1 Theorem
The column space of an
matrix
is a valid subspace of
.
Proof. Each of
has
entries, so they are vectors in
.
By earlier theorem,
is the span of some vectors in
,
so
is a subspace of
.
Connection to consistency Considering the equation , if it has a solution, it means that can be expressed as linear combination of columns of , with the entries of as the weights.
A system is consistent if and only if the target vector exists within the column space . If lies outside the span of the columns of , no combination of those columns can reach it, meaning no solution exists, and the system is inconsistent.
If the columns of span the entirety of (meaning ), then every conceivable vector is reachable. In this case, has a solution for every possible in .
For a matrix ,
| Feature | Null Space | Column Space |
|---|---|---|
| Space | is a subspace of . | is a subspace of . |
| Definition Style | is implicitly defined; that is, you are given only a condition () that vectors in must satisfy. | is explicitly defined; that is, you are told how to build vectors in . |
| Finding Vectors | It takes time to find vectors in . Row operations on are required. | It is easy to find vectors in . The columns of are displayed; others are formed from them. |
| Relation to Matrix | There is no obvious relation between and the entries in . | There is an obvious relation between and the entries in , since each column of is in . |
| Checking a Specific Vector | A typical vector in has the property that . Given a specific vector , it is easy to tell if is in . Just compute . | A typical vector in has the property that the equation is consistent. Given a specific vector , it may take time to tell if is in . Row operations on are required. |
| Mapping Conditions | if and only if the equation has only the trivial solution. This happens if and only if the linear transformation is one-to-one. | if and only if the equation has a solution for every in . This happens if and only if the linear transformation maps onto . |
7.5.0.2 Example
If the column space of A is a subspace of , what is ?
. Because has 3 rows, each column vector contains exactly 3 entries. Therefore, the columns are vectors in , making a subspace of .
If the null space of A is a subspace of , what is ?
. The null space consists of all vectors such that . Because has 4 columns, the vector must have 4 entries for the matrix multiplication to be defined. Therefore, is a vector in , making a subspace of .
Find a nonzero vector in and a nonzero vector in .
Select any column directly from matrix A. Choosing the first column gives the vector .
We must find a vector that satisfies . We set up the augmented matrix and perform row reduction: We get , , . Hence is a valid nonzero vector in .
Given and ,
Determine if is in . Could be in ?
Since , the vector is not in .
The vector has 4 entries (), but is strictly a subspace of , so cannot be in .Determine if is in . Could be in ?
Set up the augmented matrix and row reduce it: The system is consistent, so is in .
The vector has 3 entries (), but is strictly a subspace of , so cannot be in .
7.6 Kernel and Range of a Linear Transformation
Defining a Linear Transformation A linear transformation from a vector space to a vector space is a rule that assigns every vector in to a unique vector in . It must sastify:
Addition: for all vectors and in .
Scalar Multiplication: for all vectors in and all scalars .
The kernel (or null space) of
is the set of all
in
such that
(zero vector in
).
The range of
is the set of vectors in
of the form
for some
in
.
Defining linear transformation as matrix multiplication of the form
,
the kernel is the null space
and the range is the column space
.
7.7 Bases
7.7.0.1 Recall Linear Independence
An indexed set of vectors
in a vector space
is considered linearly independent if the vector equation
has only the trivial solution.
Conversely, the set is linearly dependent if there are specific weights
(where not all of them are zero) that make the equation
true.
Some quick checks for independence:
A set with only a single vector is linearly independent if and only if .
A set containing exactly two vectors is linearly dependent if and only if one vector is a scalar multiple of the other.
Any set that contains the zero vector is automatically linearly dependent.
7.7.0.2 Theorem
An indexed set consisting of two or more vectors (where ) is linearly dependent if and only if some vector in the set is a linear combination of the vectors that precede it ().
7.7.0.3 Basis
A basis is a set of vectors that acts as a foundational coordinate
system for a vector space, and is the smallest spanning set for some
space.
Let
be a subspace of a vector space
.
An indexed set of vectors
in
is defined as a basis for
if it satisfies two strict conditions:
Linear Independence: The set must be linearly independent. (There are no redundant vectors.)
Spanning: The subspace that is spanned by must exactly coincide with , meaning .
Every vector space is a subspace of itself, so the basis of
is simply a linearly independent set that completely spans
.
Some common bases:
Invertible Matrices: For an invertible matrix , its columns automatically form a basis for . (Invertible pivot in every row and column columns are linearly independent and span .)
The columns of the identity matrix form the most fundamental basis for .
The Standard Basis for : For the vector space of polynomials of degree , the standard basis is the set .
Proof. Verify the 2 conditions for a basis:Spanning: By definition, every polynomial in the space takes the form . Because every polynomial can explicitly be written as a linear combination of the vectors in , the set spans .
Linear Independence: Set the linear combination equal to the zero polynomial: for all . The fundamental theorem of algebra tells us that a non-zero polynomial of degree can have at most roots. The only way this polynomial equation can equal zero for infinite values of is if every single coefficient is exactly zero (). Since only the trivial solution exists, is linearly independent.
7.7.0.4 Example
Let , , and . Determine if is a basis for . There are 3 pivots, hence the columns are linearly independent, and span , so the set is a basis for .
7.8 Spanning Set Theorem
A set of vectors may span a subspace, but it may contain redundant vectors. How do we trim a spanning set into only the necessary vectors?
7.8.0.1 Theorem
The Spanning Set Theorem Let be a set of vectors in a vector space , and let .
Removing redundant vectors: If one vector in is a linear combination of the others, then removing still yields a spanning set for .
Extracting the basis: If , some subset of will form a basis for .
Note There are infinitely many different possible bases for a vector space. But, every possible basis for some vector space will always have the same number of vectors. For example, In , every valid basis must contain exactly 2 vectors. In , every valid basis must contain exactly 3 vectors. If a subspace has a basis of 4 vectors, then every other basis you can possibly find for will also have exactly 4 vectors.
7.8.0.2 Example
Let , and , and let . Note that .
.
For any vector in ,Find a basis for the subspace .
We know that spans . Checking for linear indpendence, there is no scalar such that . Hence forms a basis for .
Note that is a two-dimensional subspace, in a 3-dimensional parent vector space.
7.9 Bases for and
7.9.0.1 Finding a basis for the null space
We want the exact set of vectors that describe every possible solution to the homogeneous equation .
Set up the augmented matrix .
Row reduce to RREF to identify the pivots and free variables.
Express basic variables in terms of free variables.
Express the generic solution vector in Parametric Vector Form, and the vectors attached to the free variables form the basis for .
7.9.0.2 Example
Imagine after row reducing
,
we get the equations:
and
.
Here,
and
are free variables.
Note the 1s and 0s in the second and fourth position of
and
,
guaranteeing they are independent.
is independent and spans the solution space, so they form the basis for
.
7.9.0.3 Finding a basis for the column space
is the span of all the columns of matrix , so they are definitely a spanning set. But all the columns may not form a basis, because some columns may be linearly dependent (redundant).
Row reduce the original matrix to REF or RREF.
Identify the pivot columns.
Extract the corresponding columns from the ORIGINAL matrix to get the basis for . (Row operations alter the column space.)
Row operations alter the columns themselves and hence the column space, so we must take the columns from original matrix as the basis. However, row operations preserve the relationships between the columns. Non-pivot columns are linear combinations of the original pivot columns. By the Spanning Set Theorem, we can ignore the non-pivot columns. The original pivot columns are linearly indepedent and span the space, forming the basis for .
7.9.0.4 Example
Find the basis for the column space for Row reducing to echelon form matrix , The pivots are located in Column 1 and Column 3. Note that Column 2 is just 3 times Column 1, and Column 4 is a combination of Columns 1 and 3. Extracting pivot columns from , The basis for is the set . Note that the basis is a 2-dimensional subspace of .
7.10 Coordinate Systems
Let
be a basis for a vector space
.
Because a basis spans the space and is linearly independent, for each
vector
in
,
there exists a unique set of scalars
such that:
These weights
are the coordinates of
relative to the basis
(or the
-coordinates
of
).
When we stack these weights into a column vector, it is called the
coordinate vector of
relative to
,
denoted as
.
If we place the basis vectors into the columns of a matrix, we get
.
This matrix changes the
-coordinates
of a vector
into the standard coordinates of
,
by this equation:
Because the columns of
form a basis for
,
they are linearly independent, which means
is an invertible matrix. Hence we also have
The mapping
is a one-to-one linear transformation from
onto
.
Since this mapping preserves vector addition and scalar multiplication,
i.e. the
-coordinate
vector of a linear combination of vectors is the exact same linear
combination of their coordinate vectors.
7.10.0.1 Example
Given a basis
for
,
where
and
.
A vector
has the coordinate vector
.
Find the standard vector
.
7.10.0.2 Example
Given a basis
,
,
.
We have a vector
with standard vector coordinates
.
Find the coordinate vector
of
relative to the basis
,
i.e. find
and
such that
.
Solving, we get
.
7.11 Dimension of a Vector Space
For a vector space
spanned by a basis, the dimension of
(or
),
is simply the number of vectors in that basis.
,
because there are no linearly independent vectors to form a basis.
,
because the standard basis for
consists of the columns of the
identity matrix
().
,
because the standard basis is
.
In
,
a 0-D space is a point, a 1-D space is a line, a 2-D space is a plane,
and a 3-D space is the entire
.
7.11.0.1 Example
Find the dimension of the subspace . We can see that , hence the basis is . Therefore, .
7.12 Dimensions of and
The column space of
is the span of all its columns. To find a basis for
,
we row reduce
to find the pivot columns, and
the number of pivot columns in
.
The null space of
is the set of all vectors
that satisfy the homogeneous equation
.
To find a basis for
,
we row reduce
,
express the basic variables in terms of the free variables, and express
the solution in parametric vector form:
Notice that every free variable in the system produces exactly one basis
vector
(,
etc.) in the parametric vector form. Therefore,
to the number of free variables in the equation
.
7.12.0.1 Example
Find the dimension of and for The echelon form of the augmented matrix is There are 3 free variables, so and there are 2 pivot columns, so .
7.13 Row Space
The row space of a matrix
is the set of all linear combinations of the rows (or row vectors) of
.
The row space is formally
,
since the rows of a matrix
are simply the columns of its transpose,
.
For an
matrix, each row vector contains exactly
entries. Consequently, the row space
is a subspace living in
.
(Contrast this with the column space,
,
which lives in
).
7.13.0.1 Theorem
If two matrices
and
are row equivalent (can be transformed into the other using EROs), then
their row spaces are identical.
Row operations alter the row vectors, but they do not change the span of
those rows. Therefore, if we reduce a matrix
to an echelon form matrix
,
the non-zero rows of
form a basis for the row space of
(and also
).
7.13.0.2 Example
Find bases for the row space, column space, and null space of matrix : First, reduce to echelon form matrix :
Basis for
Note that we use the rows of , not .Basis for
Note that we identify the pivot columns using , but use the columns of as the basis, since EROs do change the column space.
We reduce
further to RREF matrix
:
We extract the equations and express the basic variables in terms of the
free variables
and
,
then decompose the general solution into parametric vector form.
Hence basis for
7.14 Rank
The rank of matrix
is the dimension of
.
Recall that the equation
is only consistent when
is in the column space of
.
Therefore, the rank of
represents the exact dimension of the set of all vectors
that make the system consistent.
Implication: If you have an
matrix
with a rank of
,
the transformation
takes vectors from an
-dimensional
space and maps them into a
-dimensional
space.
For an matrix , . A matrix has the exact same number of linearly independent rows as it does linearly independent columns. (because they are both defined by the number of pivots.)
7.14.0.1 Example
Considering this matrix and row reducing it to REF form: The rank of is 3 since there are 3 pivot columns. The basis for the row space of is formed by the rows in that contain those exact same pivots.
7.14.0.2 Theorem
The Rank Theorem: If matrix
has
columns, then
(Because rank of
is
,
i.e. the number of pivot columns, and
is the number of free variables, i.e. the number of non-pivot
columns.)
This links the solutions of
,
i.e.
,
to the vectors
that make
consistent, i.e.
.
7.14.0.3 Example
There is a homogeneous system of 40 equations in 42 variables.
Someone has found two linearly independent solutions that span
.
Can we be certain that an associated nonhomogeneous system (with the
same coefficients) will definitely have a solution?
We have a
matrix
.
The two solutions form a basis for
,
so
.
By the Rank Theorem, the rank of
or
.
The column space is a subspace of
(vectors with 40 rows). Since we know its dimension is 40, we know that
spans the entirety of
.
Hence, every possible vector
is in
and every non-homogeneous equation
is guaranteed to have a solution.
7.14.0.4 Expanding the Invertible Matrix Theorem
For an matrix , the following statements are logically equivalent to the statement " is invertible":
The columns of form a basis for .
.
.
Rank of .
.
.
7.15 Change of bases
Earlier, we saw how to translate a vector’s coordinates between a
custom basis
()
and the standard basis
()
using the matrix
.
We can bypass the standard basis entirely if we want translate
coordinates in some basis
to another basis
.
(i.e. we are looking at the same point in space, but changing how the
grid lines are drawn.)
We can build a change of coordinates matrix from
to
,
i.e.
.
How to build it: We need to know how to express the
basis vectors
()
in terms of
-coordinates.
Then,
With this matrix, we can translate any vector
by matrix multiplication:
7.15.0.1 Example
We have a vector space with two different bases,
and
,
and are given a vector
whose coordinates in the
system are
.
Also,
and
.
Find
.
Building the change of coordinates of matrix,
Performing matrix multiplication,
Alternatively, we know that
.
Applying the
-coordinate
mapping to the whole equation,
Invertibility of : Because both and are valid bases, their vectors are linearly independent. This means that the change of coordinates matrix is always invertible.
Alternative to calculating
:
If we are not directly given the
-coordinates
of the
basis vectors (like
),
then we need both bases expressed in a common coordinate system (likely
the standard
vectors).
We set up an augmented matrix with the target basis
and the starting basis
:
Then perform row reduction until we get
on the left:
7.15.0.2 Example
We have
where and
where and
Set up the augmented matrix: Hence