Let $f:\mathbb{R}^n\to\mathbb{R}$ be a nonzero linear map. Let $\alpha \in \mathbb{R}$ e define $A=\{x\in \mathbb{R}^n:f(x)<\alpha\}$. By continuity of $f$, $A$ is open in $\mathbb{R}^n$.
How can I prove (rigorously) that $A$ and $\mathbb{R}^n$ are homeomorphic ?
I have some thoughts but I'm not able to make them rigorous. Intuitively I see that $\{x\in \mathbb{R}^n:f(x)=\alpha\}$ is an hyperplane in $\mathbb{R}^n$ which divides $\mathbb{R}^n$ into to "open rectangles" homeomorphics between them, and one of this "rectangles" is $A$.
For example, if $n=2$, I think I can show that $A$ is homeomorphic with $\mathbb{R}\times(-\infty,\alpha)$ maybe using some rotation, and then I easily can show that $\mathbb{R}\times(-\infty,\alpha)$ is homeomrphic to $\mathbb{R}^2$ since I know that $(-\infty,\alpha)$ is homeomrphic to $\mathbb{R}$. For example if $(a,b)\in \mathbb{R}^2$ is the vector such that $f(x,y)=ax+by$, such homeomorphism could be the linear map $\mathbb{R}\times(-\infty,\alpha)\to A$ represented by the matrix \begin{pmatrix} \cos(b/a)& -\sin(b/a) \\\sin(p/a) & \cos(b/a) \end{pmatrix}
What is a rigorous (and possibly elegant) way to prove that $A$ and $\mathbb{R}^n$ are homeomorphic for general $n$?
Suppose also that $\beta\in \mathbb{R}$ and $\beta<\alpha$. Let $B=\{x\in \mathbb{R}^n:f(x)>\beta\}$.
How can I prove that $A \cap B$ is non empty and homoemorphic to $\mathbb{R}^n$ ?
Since $f$ is non-zero, $ker(f)$ is an $(n-1)$-dimensional subspace of $\mathbb{R}^n$. Choose any basis $b_1,\dots,b_{n-1}$ of $ker(f)$ and any $b_n$ such that $f(b_n) =1$ (which is possible because $f$ is non-zero linear map). Then $b_1,\dots,b_n$ are linearly independent, thus form a basis of $\mathbb{R}^n$.
The unique linear map $\phi : \mathbb{R}^n \to \mathbb{R}^n$ such that $\phi(e_i) = b_i$, where $e_1,\dots,e_n$ is the standard basis of $\mathbb{R}^n$, is a linear isomorphism and hence a homeomorphism (since linear maps are continuous).
Let $x \in \mathbb{R}$. Write $x = (x',t)$ with $x' \in \mathbb{R}^{n-1}$ and $t \in \mathbb{R}$. Then $\phi(x',t) = \phi(x',0) + \phi(0,t)$, where $\phi(x',0) \in ker(f)$ and $\phi(0,t) = \phi(te_n) = tb_n$. Hence $f(\phi(x',t)) = t$. This shows that for any $J \subset \mathbb{R}$
$$\phi(\mathbb{R}^{n-1} \times J) = \{ x \in \mathbb{R}^n \mid f(x) \in J \} .$$
Therefore $A(\alpha) = \phi(\mathbb{R}^{n-1} \times (\alpha,\infty))$. Similarly, with $A(\alpha,\beta) = \{x \in \mathbb{R}^n \mid \beta < f(x) < \alpha \}$, $A(\alpha,\beta) = \phi(\mathbb{R}^{n-1} \times (\beta,\alpha))$. Since $(\alpha,\infty)$ and $(\beta,\alpha)$ are homeomorphic to $\mathbb{R}$, we are done.