A real-valued function $f$ defined on the $\mathbb{R}\setminus\{1\}$ by \begin{equation*} f(x) = \frac{3x + 1}{x - 1} = 3 + \frac{4}{x - 1} \end{equation*} is invertible, and \begin{equation*} f^{-1}(x) = \frac{x + 1}{x - 3} = 1 + \frac{4}{x - 3} . \end{equation*} Evaluate constants $A$, $B$, and $C$ such that \begin{equation*} f(2x) = \frac{Af(x) + B}{f(x) + C} \end{equation*} for every real number $x$ distinct from $1/2$ and 1.
This is a problem from a past high school competition given in a county - Monroe County - in New York. (I will post a solution to the problem.) Does every rational function that is equal to the quotient of two linear functions have such a property? Can $f(3x)$ be expressed analogously? How about $f(kx)$ for any positive integer $k$? Is there any advantage to such an expression over substituting "$2x$" in for "$x$"?