Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/notebooks/Chapter 9 - Basis and Dimension.ipynb
Views: 449
Basis
Basis, denoted as , is the minimum unit of user-customized coordinates, which is any type of coordinate system other than Cartesian.
Basis of
Formally speaking, the basis is a set of vectors in vector space with two conditions:
All vectors in are independent.
We have seen standard basis in earlier chapters, for instance in
and in
Here we show the linear combination of standard basis for vector
But non-standard basis is what we mostly use, we can show that and is a basis for .
Whether basis is standard or not, as long as they are independent, they span .
Basis of
Next we show the standard basis and a non-standard basis of .
The standard basis in is
and we can show a vector in is a linear combination of them. We did a 3D linear combination plot in lecture 6, here we just reproduce it by importing the module at the top of the note.
Next we show the linear combination of a non-standard basis, . I also wrote another function linearComboNonStd
in the linear_algebra_visulization
module.
Dimension
If is the basis for , then the number of vectors in is the dimension of , denoted as .
Theorem 1
Let be the basis of , has vectors, and is a set of vectors in , if has vectors that , then must be linearly dependent.
Theorem 2
If and both are bases of then and must have the same number of vectors which is the .
Theorem 3
and is a set of vectors from with linearly independent vectors, then .
Theorem 4
Let be a set of vectors in the vector space and let . If is a linear combination of , then
These theorems are self-explanatory, no need to memorize, the best way to understand them is visualize them in your mind with .
Column Space
Columns space of a matrix is denoted as , which is the space spanned by all columns of a matrix.
Important Fact
Row operations will not change the dependence of the columns of a matrix.
Let's say we have a matrix
Perform rref
operations, and dependence of reserved.
The and the column are the linear combination of other vectors, it is safe remove them without tampering the column space. Therefore the is
Column Spaces Aren't the Same
Did you notice there was a catch when we say the dependency of was not affect by row operations, however we did not say the column spaces are the same as before and after the row operations.
Actually, they can never be the same.
Consider the matrix :
If we perform rref
, is turned into . Apparently the column space of them are different.
Now list the basis of their column spaces: are and the same?
It's easy to visualize them, they are two intersecting planes, which means it's different column space.
Method for Finding Basis of
Consider matrix , find a basis for .
Note that we only have two column vectors, not possible to span . The common method is to use another two standard basis vectors joined with to form the basis of .
Concatenate the matrix horizontally.
Therefore the first 4 columns of augmented matrix is a basis.
Change of Basis
Change of basis is for changing the coordinate system,e.g. from Cartesian to other system.
Coordinate Vector
We have a basis , and 's coordinate vector is denoted as . If
Then compute by using the basis and its coordinate vectors. We want to convert the into a pair of Cartesian coordinates.
Now we have successfully converted into Cartesian
On the other way around, what if we know i.e. the Cartesian coordinates, and we want to find out , for instance
Then we can formulate the question as:
Just solve the linear system
We get .
Change of Basis
Most probably we would like to change coordinates from to , which both aren't Cartesian coordinates.
Say we have two bases , in .
$$b_1= \left[\begin{matrix}2\\1 \end{matrix}\right],\quad b_2 = \left[\begin{matrix}-1\\1 \end{matrix}\right]\\ c_1= \left[\begin{matrix}1\\1 \end{matrix}\right],\quad c_2 = \left[\begin{matrix}-3\\1 \end{matrix}\right]\\$$We would like to change to . Formally this is reformulated as finding transition matrix .
First we find coordinate vectors for and in , .
$$\left[\begin{matrix}2\\1 \end{matrix}\right] = x\left[\begin{matrix}1\\1 \end{matrix}\right]+y\left[\begin{matrix}-3\\1 \end{matrix}\right]= \left[\begin{matrix}1 & -3\\1 &1 \end{matrix}\right]\left[\begin{matrix}x \\y \end{matrix}\right]\\ \left[\begin{matrix}-1\\1 \end{matrix}\right] = x\left[\begin{matrix}1\\1 \end{matrix}\right]+y\left[\begin{matrix}-3\\1 \end{matrix}\right]=\left[\begin{matrix}1 & -3\\1 &1 \end{matrix}\right]\left[\begin{matrix}x \\y \end{matrix}\right]\\$$Extract augmented matrix for both system:
They can be combined into one augmented matrix
The last two columns of rref augmented matrix is the .
In general, we can find transition matrix by using
An Example
Let
be two bases for , find the and given , find .
Construct augmented matrix:
The RHS block of rref is as we have shown above.
The is .