I am reviewing my previous exams, and I completely missed the following two-part question. It deals with closed subgroups of topological groups under certain situations. I am having trouble working it out. I'm not sure where to begin.
A. Let $f: \mathbb{R} \rightarrow G$ be an injective homomorphism of topological groups. Is is true that $f(\mathbb{R})$ must be a closed subgroup of $G$?
B. Suppose that a topological group $G$ has a subgroup $H$ which is isomorphic (as a topological group) to $\mathbb{R}$. Does is follow that $H$ is closed in $G$?
Many thanks, and I really appreciate any help!
$\newcommand{\cl}{\operatorname{cl}}\newcommand{\int}{\operatorname{int}}$An affirmative answer to (B) follows immediately from the theorem that a locally compact subgroup of a Hausdorff topological group is closed, since $\Bbb R$ is locally compact.
Added: Martin has provided a negative answer to (A) in the comments below; I take the liberty of repeating it here to make the answer self-contained. Let $\alpha$ be any irrational number, and define $f:\Bbb R\to\Bbb R^2:x\mapsto\alpha x$. Let $q:\Bbb R^2\to\Bbb R^2/\Bbb Z^2$ be the quotient map, and let $h=q\circ f$. Then $h$ is in injective homomorphism of $\Bbb R$ into the torus $\Bbb R^2/\Bbb Z^2$. The fact that $h$ is injective follows from the irrationality of $\alpha$. The irrationality of $\alpha$ also implies that $h[\Bbb R]$ is dense in $\Bbb R^2/\Bbb Z^2$. In fact, pick any $x\in(0,1)$ such that $\alpha x$ is also irrational; this proof that $\{nx:n\in\Bbb Z\}$ is dense in $\Bbb R/\Bbb Z$ can easily be adapted to show that $\{h(nx):n\in\Bbb Z\}$ is dense in $\Bbb R^2/\Bbb Z^2$.