If $f$ is continuous on $\mathbb{R}$ any of the following conditions are satisfied then $f$ must be a constant.
(1).$f(x)=f(mx),\forall x\in \mathbb{R},|m|≠1,m\in \mathbb{R}$
(2).$f(x)=f(2x+1),\forall x\in \mathbb{R}$
(3).$f(x)=f(x^2),\forall x\in \mathbb{R}$.
Suppose $f$ satisfy (1). I assumed, $f$ is not a constant, since f is not defined in the closed and bounded interval I am not able to use the major theorems of continuity.
Similarly I tried to apply the same theorems to (2) and (3). I am not able to proceed. Please help me to solve this question.
For each of these, you have something of the form $f(x) = f(g(x))$ where $g^n(x) \to 0$ (where $g^n$ is the repeated application of $g$) or $g^n(x) \to 1$ (e.g. $g$ is a contraction to some point, let's call it $y$ in general), you can use this and continuity to show that we have $$ f(x) = f(g^n(x)) \to f(y), \forall x, n\to \infty. $$
In this case, consider the following:
(1) Assume $|m| > 1$ then $g(x) = x/m$, now we know $f(x) = f(x/m) = f(x/m^2) = \dots \to f(0), \forall x$ by continuity of $f$. A similar case follows for $|m| < 1$, using $g(x) = mx$.
(2) Assume $g(x) = (x-1)/2$, then note that $g^n(x) \to 0, n\to \infty$ for every $x$, so a similar proof $f(x) = f(g^n(x)) \to f(0)$ holds.
(3) Assume that $g(x) = \sqrt{x}$ if $x>0$ else $-\sqrt{x}$ will work. Note that $g^n(x) \to 1, \forall x$ so here we are done as well by noting that $f(x) = f(g^n(x)) \to f(1)$ again by continuity of $f$.