Prove that there exists $f,g : \mathbb{R}$ to $\mathbb{R}$ such that $f(g(x))$ is strictly increasing and $g(f(x))$ is strictly decreasing.
Prove that there exists $f,g : \mathbb{R}$ to $\mathbb{R}$ such that $f(g(x))$ is strictly increasing and $g(f(x))$ is strictly decreasing.
I tried cases by taking $f(x)$ as an increasing function and $g(x)$ as a decreasing function then I am getting both $f(g(x))$ and $g(f(x))$ as decreasing functions. Further I took both of them as increasing functions, but none of them are yielding results. Help
Here is a construction that uses the axiom of choice. I'm not sure if it can be avoided.
Let $p$ be an increasing bijection ${\mathbb R} \to \mathbb R$ such that $p(0)=0$ and $0$ is the only fixed point of any iterate of $p$ (for example, $p(x)=2017x$ will do).
Let also $q$ be a decreasing bijection ${\mathbb R} \to \mathbb R$ such that $q(0)=0$ and $0$ is the only fixed point of any iterate of $q$ (for example, $q(x)=-2017x$ will do).
The iterates of $p$ form a group under composition which we call $P$. Then $P$ acts on ${\mathbb R}^*$. By the axiom of choice, there is a transversal $T_p\subseteq {\mathbb R}^*$ containing exactly one element from each orbit, then the map ${\mathbb Z} \times T_p \to {\mathbb R}^*, (k,x)\mapsto p^k(x)$ is bijective.
Similarly, there is a $T_q\subseteq {\mathbb R}$ such that ${\mathbb Z} \times T_q \to {\mathbb R}^*, (k,x)\mapsto q^k(x)$ is bijective.
By a well-known result in cardinality theory, since $T_q$ and $\mathbb Z$ are both infinite and $|T_q|>|{\mathbb Z}|$, we have $|{\mathbb Z} \times T_q|=|T_q|$. It follows that there is a bijective map $b:T_q \to T_p$.
Now, define $f$ by $f(0)=0$ and for nonzero $r$, say $r=q^{k}(t)$ with $t\in T_q$, put $f(r)=p^{k}(b(t))$. Similary, define $g$ by $g(0)=0$ and for nonzero $r$, say $r=p^{k}(b(t))$ with $t\in T_q$, put $g(r)=q^{k+1}(t)$.
By construction, one then has $f\circ g=p$ and $g\circ f=q$.
To satisfy strict monotonicity in the composites, both functions must be injective (1-to-1). However to product opposite monotonicity, $f$ and $g$ must be discontinuous everywhere, since even a short stretch of monotone behaviour will produce the same behaviour in both compositions.
Also, although this is less certain, since $f \circ g$ and $g\circ f$ are strictly monotone, they are continuous almost everywhere. So essentially we need to disassemble the real number line into points, and then reassemble it.
This suggests we need to have something like functions that split by eg. rational and irrational numbers in an apparently chaotic fashion. However in the end I think this will be an existence proof rather than a demonstrated example.
EDITED
Let the domain and range of both $f$ and $g$ be the real line. Furthermore assume that the derivatives exist. Also, assume that they do not have inflexions with zero derivative. If we do not assume that the whole line is the domain then counterexample(s) can be created. (See Han de Bruijn's comment to this post.)
In order for $f(g(x))$ to be strictly increasing we need that the derivative wrt $x$ be positive
$$f(g(x))'= f'(g(x))g'(x)>0.$$
So, both $f'(g(x)$ and $g'(x)$ have to be positive xor negative.
In order for $g(f(x))$ to be strictly decreasing we need that the derivative wrt $x$ be negative. $$g(f(x))'= g'(g(x))f'(x)<0.$$
One of the components has to be negative and the other one has to be positive but not the same sign at the same time.
Above we requested the opposite.