I have been reading some books on functional analysis, and many of them keep talking about a vector space along with a dense proper subspace of it (especially when constructing counterexamples). But to me, it is kind of hard to imagine what such a dense proper subspace would look like, Nor am I convinced that such a structure actually exists at all.
So can anybody help giving an example of it, or alternatively, give a proof that such a subspace actually exists (though I guess the existence would quite likely just follow from a construction)?
Thank you!!
It's not possible to find an example in a finite dimensional linear normed space. For example, there is the entry on PlanetMath: Every finite dimensional subspace of a normed space is closed. Or this question Finite-dimensional subspace normed vector space is closed. (But this result can be found in many places.)
Perhaps the fact that you have to work with infinite-dimensional spaces (and subspaces) is what makes it difficult. (Until you get used to working in infinite-dimensions and acquire sufficient intuition for such spaces.)
Take $X=c_0$, i.e., the space of all real sequences convergent to zero with the sup-norm $\|x\|=\sup\{|x_n|; n\in\mathbb N\}$.
Take $Y=$the set of all sequences, which have only finitely many non-zero values. (Sequences with finite support.)
Clearly $Y$ is a subspace of $X$, and it is not difficult to show that $Y$ is dense in $X$. Indeed, for any $x\in X$ and any $\varepsilon>0$ there is an $N$ such that $|x_n|<\varepsilon$ for $n>N$. Now if you take $y=(x_1,x_2,\dots,x_N,0,0,\dots)$, then $y\in Y$ and $\|y-x\|=\sup_{n>N}|x_n|<\varepsilon$.