Let $\hspace{0.05cm}f:\mathbb{R^2}\to\mathbb{R^2}$ $\hspace{0.05cm}$ and $\hspace{0.05cm}$$g:\mathbb{R^2}\to\mathbb{R^2}$ $\hspace{0.05cm}$ be such that$\hspace{0.05cm}$ $g\circ f$$\hspace{0.05cm}$ is constant,then which of the following must be constant?
$1.f$ $\hspace{0.8cm}$ $2.g$ $\hspace{0.8cm}$ $3.f\circ g$ $\hspace{0.8cm}$ $4$.None
What i did:For $\hspace{0.05cm}f:\mathbb{R}\to\mathbb{R}$ $\hspace{0.05cm}$ and $\hspace{0.05cm}$$g:\mathbb{R}\to\mathbb{R}$ $\hspace{0.05cm}$
I find example $$f(x) = \begin{cases} 1 & x\in\mathbb{Q} \\ -1 &x\notin\mathbb{Q} \end{cases}$$
$$g(x) = x^2, \,\,\, \forall x \in \mathbb{R}$$
According to this example my answer for $\mathbb{R}$ is option D.
But for $\mathbb{R^2}$ i try to find such an example but i could not find such an example.Please someone help me to solve this.
Let $f(0,0)=(-1,0)$, and $f(x,y)=(1,0)$ if $(x,y)\neq (0,0)$. Let $g(x,y)=(x^2,0)$.