Let $T$ be a linear operator on a vector space $V$, and let $x$ be a non-zero vector in $V$.
The subspace,
$$W = \operatorname{span}(\{x,T(x),T^2(x),\ldots\})$$
I have to prove that $W$ is a $T$-invariant subspace of $V$ and also that it is the smallest such subspace of $V$ containing $x$.
I don't really know how to proceed with this?
Is it correct to proceed like this,
For the given non zero vector $x \in V$, we have, by definition of $W$ given above, that,
$x \in W$ ,$T(x) \in W$, for this $T(x) \in W$, $T(T(x)) \in W$, and hence $T^2(x)$ is in $W$... so $W$ is a $T$-invariant subspace of $V$ ?
Also to show that it is the smallest one, is it correct to proceed as follows :
If I suppose that S is any other $T$-invariant subspace of $V$ ,then,
if the given non zero vector $x \in S$, $T(x)$ will also be in $S$.
Now, since $T(x) \in S$, then $T(T(x)) = T^2(x) \in S$...
So $\operatorname{span}(\{x,T(x),T^2(x), \ldots\})$ will also be in $S$.
Hence $W$ will be contained in $S$ and hence $W$ is the smallest $T$-invariant subspace of $V$ containing the vector $x$.