[Math] Finding the dimension of a vector space, and determing if it is the subspace of a parent space.

linear algebraproblem solvingvector-spaces

How could one determine the dimension of a some space which is the subspace of a particular vector space (or consider it a subspace of a particular space to begin with), say for instance given some spaces such as:

$V_1$, the vector space of all $3\times3$ diagonal matrices.

$V_2$, the vector space of all $3\times3$ lower triangular matrices.

$V_3$, the subspace of $P_3$ given by $H = \{a+bx^3:a,b\in\mathbb{R}\}$

$V_4$, the subspace of $P_3$ given by $\{p\in P_3:p(1)=0\}$, (and how could one for instance show that $V_4$ is a subspace of $P_3$)?

Note: $P_n$ is the vector space composed of the $n^{th}$ degree polynomial.

Best Answer

Hint:

Te first step is to determine if the given subset is really a vector space, this means that it have to be closed under the addition and the scalar product, and contains the zero vector and the opposite of his elements.

Than, to find his dimension, we have to find a basis for this subspace, and the number of vectors in this basis is the dimension. The way to do this is, in general, different, for different vector spaces.

As an example, for your case $V_1$, we can see that any diagonal matrix can be expressed as: $$ \begin{bmatrix} a&0&0\\ 0&b&0\\ 0&0&c \end{bmatrix}= a\begin{bmatrix} 1&0&0\\ 0&0&0\\ 0&0&0 \end{bmatrix} +b\begin{bmatrix} 0&0&0\\ 0&1&0\\ 0&0&0 \end{bmatrix} +c\begin{bmatrix} 0&0&0\\ 0&0&0\\ 0&0&1 \end{bmatrix}= ae_{11}+be_{22}+ce_{33} $$ where the three matrices $e_{11},e_{22},e_{33}$ on LHS are linearly independent, so the dimension of $V_1$ is $3$.

Can you do something similar for the other cases?


Note that in the example the kay fact is that three matrices that are a basis for the space $V_1$, and, by definition, the dimension of a vector space is the cardinality of a basis.

The comment of @Abstraction points out that a vector space is well defined only if we specifies not only the set of vectors (the set $V_1$ in this case) but also the field of scalars used for the scalar product. So, as an example the set of complex numbers $\mathbb{C}$ can be seen as a vector space over the field $\mathbb{C}$, and in this case it has dimension $1$, or over the field $\mathbb{R}$, and in this case has dimension $2$ or over $\mathbb{Q}$ and in this case his dimension is uncountably infinite. Anyway the given definition of dimension is the same: the cardinality of a basis. And I suppose thet the OP refers to the simpler and common case of vector spaces over $\mathbb{R}$.

For $V_2$, as another example, we can easily see that a basis for lower triangular matrices on $M_3(\mathbb{R})$ is: $$ \begin{bmatrix} 1&0&0\\ 0&0&0\\ 0&0&0 \end{bmatrix} \quad \begin{bmatrix} 0&0&0\\ 1&0&0\\ 0&0&0 \end{bmatrix} \quad \begin{bmatrix} 0&0&0\\ 0&1&0\\ 0&0&0 \end{bmatrix} \quad \begin{bmatrix} 0&0&0\\ 0&0&0\\ 1&0&0 \end{bmatrix} \quad\begin{bmatrix} 0&0&0\\ 0&0&0\\ 0&1&0 \end{bmatrix} \quad \begin{bmatrix} 0&0&0\\ 0&0&0\\ 0&0&1 \end{bmatrix} $$ and this means that the dimension of $V_2$ is $6$

In a similar way, a basis for $V_3$ is done by the monomials $\{1\},\{x^3\}$, so the dimension of $V_3$ is $2$.

For $V_4$ note that a polynomial of $P_3$ such that $p(1)=0$ has the form: $(x-1)(ax^2+bx+c)=ax^3+b(x^2-x)+c(x-1)$ and, since $x^3,(x^2-x),(x-1)$ are linearly independent they form a basis of $V_4$ and its dimension is $3$.

Related Question