Non-monotic Function $f(x)$ such that $f\circ f(x) =9x+4$

70 Views Asked by At

I have to construct a non-monotonic function (defined on any interval) such that $f\circ f(x)=9x+4$. I tried making a $2$ branch function with $f(x)=3x+1$ and $f(x)=-3x-2$, but I don't know how to choose the intervals. Can someone please give me an idea?