In general if $X$ and $Y$ are independent random variables and $f,g:\mathbb R\to\mathbb R$ are Borel-measurable functions then $f(X)$ and $g(Y)$ are also independent random variables.
Observe that:$$P\left(f(X)\in A,g(Y)\in B\right)=P\left(X\in f^{-1}(A),Y\in g^{-1}(B)\right)=$$$$P\left(X\in f^{-1}(A)\right)P\left(Y\in g^{-1}(B)\right)=P\left(f(X)\in A\right)P\left(g(Y)\in B\right)$$where the second equality is based on independence of $X$ and $Y$.
This proves directly what is stated: $f(X)$ and $g(Y)$ are also independent.
No further conditions on $f$ and $g$ are needed, and of course this also works if $f=g$.