1. Enter your matrix A in MATLAB.
2. Find
.
3. Non-zero rows of
form a basis for
4. Find
it should be equal to the number of the non-zero rows of
Example 2
Enter
in MATLAB and find
you should get
So, as you were expecting, there are two non-zero rows in
That means the row space of A is a 2 -dimensional subspace of
. One basis for this subspace ( row(A) ) is formed by the vectors
and
.
If you find
it will give you
which is the dimension of the
Example 3
Enter
or type
and find
you should get
So the row space of
is a 2-dimentional subspace of
That is
(why?). And the non-zero row of D form a basis for
.
If you find
it will be 2.
Notice that the matrix in example 3 is the transpose of the matrix in example 2. Both sub spaces have the same dimension ( = 2 ) but they are subspaces of different vector spaces.
The
in example 2 is a two-dimensional subspace of
But
in example 3 is a two-dimensional subspace of
Also note that the subspace in example 3,
is the column space of the matrix in example 2. In general one can prove that dimension of the row space of a matrix is equal to the dimension of the column space of the matrix, which is called
NOTE
1. Row operations do not change the solution set of a matrix.
2. Row operations do not change the row space of a matrix.
2. Row operations can change the column space of a matrix.