Skip to content

Commit 984bc2a

Browse files
author
peshal
committed
Added about Bases of matrix space in Fundamental subspace
1 parent 5383ae1 commit 984bc2a

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

_posts/Linear Algebra/2020-11-2-Vector_Spaces_and_Subspaces.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ $P$ and $L$ are subspaces, but what about their union and intersections. Do they
5959
- $P \cup L$ is not a subspace.
6060
- $P \cap L$ is actually a zero vector so it's a subspace.
6161

62+
63+
If plane $P1$ and plane $P2$ are subspaces in $\mathbb{R}^3$ as shown in the figure.
64+
65+
![Subspace_plane]({{ site.url }}{{ site.baseurl }}/assets/images/linear_algebra/Vector_spaces_and_subspaces/subspaces_plane.png)
66+
67+
- $P1 \cup P2$ is not a subspace.
68+
- $P1 \cap P2$ is actually one dimensional line and any linear combination of vectors inside the line will give vector within the line so it's a subspace.
69+
6270
## Row Space, Column Space and Null Space
6371
The **row space**, $R(A)$ is a set of vectors that contains all the linear combinations of rows of a matrix and the **column space**, $C(A)$ is a set of vectors that contains all the linear combinations of columns. The row space and column space are subspaces in $\mathbb{R}^n$ and $\mathbb{R}^m$ respectively for a matrix with $m$ rows and $n$ columns. Then if we have,
6472

@@ -69,7 +77,7 @@ $P$ and $L$ are subspaces, but what about their union and intersections. Do they
6977

7078
In the equation $Ax = b$, if we take all their linear combinations, this gives the column space of $A$. So *if b is in that column space, we can solve the equation $Ax = b$.*
7179

72-
What if $b = 0$ ? The immediate solution we get is $x = 0$. This is the only solution for invertible matrices but for non-invertible matrices, there are nonzero solutions along with zero and belongs to a space. We call this space a **Null space**, N(A). As the solution vector $x$ has $n$ components, the nullspace is a subspace of $\mathbb{R}^n$.
80+
What if $b = 0$ ? The immediate solution we get is $x = 0$. This is the only solution for invertible matrices but for non-invertible matrices, there are nonzero solutions along with zero and belongs to a space. We call this space a **Null space**, N(A). As the solution vector $x$ has $n$ components, the nullspace is a subspace of $\mathbb{R}^n$. The solutions obtained are called special solutions when $Ax = 0$.
7381

7482
But when $b \not ={0}$, does the solution $x$ form a subspace? No, because $x = 0$ does not solve the equation and hence the solution does not have zero vector.
7583

@@ -217,6 +225,12 @@ for any constant $c_1$ and $c_2$.
217225

218226
Now if we take $U$ to reduced row-echelon form $R$,
219227

228+
$$R_2 = R_2/2$$
229+
230+
$$R = \begin{bmatrix}1& 2 & 2 & 2\\ 0 & 0 & 1 & 2 \\ 0 & 0& 0& 0\end{bmatrix}$$
231+
232+
$$R_1 = R_1-2*R_2$$
233+
220234
$$R = \begin{bmatrix}1 & 2 & 0& -2\\ 0 & 0 & 1 & 2 \\ 0 & 0& 0& 0\end{bmatrix}$$
221235

222236
This reduced row echelon form has a structure: Identity matrix in pivot columns, free matrix in free column and zeros below.

_posts/Linear Algebra/2020-11-3-Fundamental_subspace.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ For $A$, the basis are vectors $$\begin{bmatrix}1 \\ 2 \\ 3\end{bmatrix}$$ and $
7878

7979
Similarly, the dimension of ***Null space is the number of free variable***. So the dimension of Null space of A is 2.
8080

81+
## Bases of Matrices
82+
Until now we have talked about column space and row space which are made by a linear combination of columns vectors and row vectors but there is another form of vector space and that is matrix space. For example, all 2*2 matrices give space M and matrices inside M satisfy rules i.e. we can add them, multiply them by a scalar, some combination of matrices might give zero matrices. **Subspace of the matrix space M are symmetric matrices, upper triangular matrices, diagonal matrices.**
83+
84+
One of the basis for 2*2 matrices is $A_1$, $A_2$, $A_3$, $A_4$ $$\begin{bmatrix}1 & 0\\ 0 & 0\end{bmatrix}$$ , $$\begin{bmatrix}0 & 1\\ 0 & 0\end{bmatrix}$$ , $$\begin{bmatrix}0 & 0\\ 1 & 0\end{bmatrix}$$ , $$\begin{bmatrix}0 & 0\\ 0 & 1\end{bmatrix}$$
85+
86+
These matrices are linearly independent as we are seeing the entire matrix not just a single column and a linear combination of these bases will span the entire matrix space.
87+
88+
Combination of basis matrices $c_1A_1+c_1A_1+c_1A_1+c_1A_1$ = $$\begin{bmatrix}c_1 & c_2\\ c_3 & c_4\end{bmatrix}$$ = $A$
89+
90+
A is zero only if the c's are all zero and this proves independence of $A_1$, $A_2$, $A_3$, $A_4$. The three matrices $A_1$, $A_2$, $A_4$ are a basis for a subspace-the upper triangular matrices. Its dimension is 3. $A_1$ and $A_4$ are a basis for the diagonal matrices. What is a basis for the symmetric matrices? Keep $A_1$ and $A_4$ , and throw in $A_2$+$A_3$.
91+
92+
To push this further, think about the space of all n by n matrices. One possible basis uses matrices that have only a single nonzero entry (that entry is 1). There are $n^2$ positions for that 1, so there are $n^2$ basis matrices and the dimension is $n^2$. Similarly dimension of the subspace of symmetric and upper triangular matrices is $\frac{1}{2} n^2+\frac{1}{2} n$. The dimension of the subspace of Diagonal matrices is $n$
93+
8194
## Four fundamental subspaces
8295

8396
As we already know, subspaces can be described in two ways: a set of vectors that span the space (example: The Columns span the column space) and the space that satisfy certain conditions (example: Null space consists of all vectors that satisfy Ax = 0.)
@@ -88,13 +101,13 @@ As we already know, subspaces can be described in two ways: a set of vectors tha
88101
The four fundamental subspaces are:
89102
1. Row space, $C(A^T)$:
90103

91-
The row space of A is the column space of $A^T$. For the echelon matrix U obtained from A in our example above, the row space is all combinations of rows. And we can see that the last row contributes nothing. The first two rows are the basis for the row space. So the nonzero rows are basis and the row space has dimension r. As we perform elimination, we do not change row space so $A$ has the same dimension $r$ as the row space of $U$. It has the same bases.
104+
The row space of A is the column space of $A^T$. For the echelon matrix U obtained from A in our example above, the row space is all combinations of rows. And we can see that the last row contributes nothing. The first two rows are the basis for the row space. So the nonzero rows are basis and the row space has dimension r. As we perform elimination, we do not change row space so $A$ has the same dimension $r$ as the row space of $U$. It has the same bases. Basis for row space is first r rows of R where R is row reduce echelon form of A.
92105

93106
2. Column space, $C(A)$:
94107

95108
If we look at this space from domain and range view, we see that C(A) is the range (set of all possible values $f(x)$; $x$ is in the domain). So our function is $f(x) = Ax$ and has domain all $x$ in $R^n$.
96109

97-
Columns $C_1$ and $C_3$ of $U$ are the basis for its column space as they are the pivot columns. This is true for A as well even though they have different column space. The dimension of the column space is rank $r$.
110+
Columns $C_1$ and $C_3$ of $U$ are the basis for its column space as they are the pivot columns. This is true for A as well even though they have different column space. The dimension of the column space is rank $r$ which equals the dimension of the row space. The number of independent columns equals the number of independent rows. Performing elimination on matrix changes Columns space i.e $C(U)\not ={}C(A)$.
98111

99112

100113
3. Null space $N(A)$:
Loading

0 commit comments

Comments
 (0)